2014-08-29 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobdcec1f4146230bd9af7b696cdec5ef174d84e88d
1 2014-08-29  Richard Biener  <rguenther@suse.de>
3         PR middle-end/62292
4         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
5         from previous refactoring.
6         (gimple_fold_builtin_strncpy): Likewise.
8 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
10         PR bootstrap/62300
11         * function.c (assign_parm_setup_reg): Remove erroneous checked
12         cast to rtx_insn * on result of gen_extend_insn in favor of
13         introducing a new local rtx "pat".
15 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
18         to silence warning.
19         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
21 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
23         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
24         (next_insn): Likewise.
25         * emit-rtl.c (next_insn): Likewise.
26         (previous_insn): Likewise.
27         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
28         "insn" and "next" from rtx to rtx_insn *.
29         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
30         "insn", "insn1", "vliw_start",  "prologue_end_note",
31         "last_insn_in_packet".
33 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
35         * shrink-wrap.h (active_insn_between): Strengthen both params from
36         rtx to rtx_insn *.
37         * function.c (active_insn_between): Likewise.
39 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
41         * genattr.c (main): When writing out insn-attr.h, strengthen param
42         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
43         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
44         writing out the definition of dfa_clear_single_insn_cache to the
45         generated insn-automata.c
47 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
49         * resource.h (clear_hashed_info_for_insn): Strengthen param from
50         rtx to rtx_insn *.
51         (incr_ticks_for_insn): Likewise.
52         (init_resource_info): Likewise.
54         * resource.c (init_resource_info): Likewise.
55         (clear_hashed_info_for_insn): Likewise.
56         (incr_ticks_for_insn): Likewise.
58         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
59         rtx to rtx_insn *.
60         (steal_delay_list_from_target): Use methods of "seq".
61         (try_merge_delay_insns): Use methods of "merged_insns".
62         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
63         (reorg_redirect_jump): Likewise for param "jump".
65 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
67         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
68         rtx to rtx_insn *.
69         * config/s390/s390.c (s390_split_branches): Eliminate top-level
70         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
71         "set_insn".
72         (s390_mainpool_finish): In three places, split out a local rtx
73         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
74         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
75          and split another local rtx "insn" out into rtx "pat" and
76         rtx_insn * "insn".
77         * config/sh/sh.c (output_branchy_insn): Rather than working
78         directly on operands[9], introduce local rtx_code_label *
79         variables named "lab" in two places, working on them, and then
80         assigning them to operands[9], so that the intervening operations
81         are known by the type system to be on insns.
83 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
85         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
86         const rtx_insn *.
88         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
89         in invocation of INSN_HAS_LOCATION.
91 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
93         * config/rs6000/altivec.h (vec_xl): New #define.
94         (vec_xst): Likewise.
95         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
96         (XXSPLTD_V2DI): Likewise.
97         (DIV_V2DI): Likewise.
98         (UDIV_V2DI): Likewise.
99         (MUL_V2DI): Likewise.
100         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
101         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
102         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
103         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
104         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
105         (UNSPEC_VSX_DIVSD): Likewise.
106         (UNSPEC_VSX_DIVUD): Likewise.
107         (UNSPEC_VSX_MULSD): Likewise.
108         (vsx_mul_v2di): New insn-and-split.
109         (vsx_div_v2di): Likewise.
110         (vsx_udiv_v2di): Likewise.
111         (vsx_xxspltd_<mode>): New insn.
113 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
115         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
116         NEXT_INSN.
117         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
118         (NEXT_INSN): Likewise.
119         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
120         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
121         const rtx_insn *.
122         (no_labels_between_p): Likewise for both params.
124         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
125         cast when using NEXT_INSN on operands[2].
126         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
127         "insn" from rtx to rtx_insn *, adding a checked cast.
128         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
129         rtx_insn *.
130         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
131         for third param.
132         (arc_text_label): Likewise for param "insn".
133         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
134         "insn".
135         (arc_ccfsm_record_condition): Likewise for param "jump".
136         (arc_text_label): Likewise for local "label".
137         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
138         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
139         a method for typesafety.  Add a checked cast.
140         * config/arc/constraints.md (Clb): Add a checked cast when getting
141         the CODE_LABEL from a LABEL_REF.
142         * config/arm/arm.c (require_pic_register): Strengthen locals
143         "seq", "insn" from rtx to rtx_insn *.
144         (create_fix_barrier): Likewise for locals "selected", "next".
145         (thumb1_reorg): Likewise for locals "prev", "insn".
146         (arm_expand_prologue): Likewise for local "last".
147         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
148         operands[0].
149         (thumb2_output_casesi): Likewise for operands[2].
150         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
151         strengthen local "insn" from rtx to rtx_insn *.
152         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
153         type and param "insn".
154         (find_prev_insn_start): Likewise.
155         (hwloop_optimize): Likewise for locals "insn", "last_insn",
156         "prev".
157         (gen_one_bundle): Likewise for loal "t".
158         (find_load): Likewise for param "insn".
159         (workaround_speculation): Likewise for locals "insn", "next",
160         "target", "next_tgt".
161         * config/c6x/c6x.c (assign_reservations): Likewise for both params
162         and for locals "insn", "within", "last".
163         (count_unit_reqs): Likewise for params "head", "tail" and local
164         "insn".
165         (try_rename_operands): Likewise for params "head", "tail".
166         (reshuffle_units): Likewise for locals "head", "tail", "insn".
167         (struct c6x_sched_context): Likewise for fields
168         "last_scheduled_insn", "last_scheduled_iter0".
169         (init_sched_state): Replace NULL_RTX with NULL.
170         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
171         to rtx_insn *.
172         (undo_split_delayed_nonbranch): Likewise for param and for local
173         "prev".
174         (conditionalize_after_sched): Likewise for local "insn".
175         (bb_earliest_end_cycle): Likewise.
176         (filter_insns_above): Likewise for locals "insn", "next".
177         (hwloop_optimize): Remove redundant checked cast.
178         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
179         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
180         NULL_RTX with NULL.
181         (cris_simple_epilogue): Likewise.
182         (cris_expand_prologue): Likewise.
183         (cris_expand_epilogue): Likewise.
184         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
185         local "insn" from rtx to rtx_insn *.
186         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
187         (struct frv_packet_group): Likewise for the elements within array
188         fields "insns", "sorted", and for field "nop".
189         (frv_packet): Likewise for the elements within array field
190         "insns".
191         (frv_add_insn_to_packet): Likewise for param "insn".
192         (frv_insert_nop_in_packet): Likewise for param "insn" and local
193         "last".
194         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
195         (frv_sort_insn_group_1): Likewise for local "insn".
196         (frv_optimize_membar_local): Likewise.
197         (frv_align_label): Likewise for locals "x", "last", "barrier",
198         "label".
199         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
200         local.
201         (ia64_sched_init): Likewise for local "insn".
202         (scheduled_good_insn): Likewise for param "last".
203         (struct _ia64_sched_context): Likewise for field
204         "last_scheduled_insn".
205         (ia64_init_sched_context): Replace NULL_RTX with NULL.
206         (struct bundle_state): Likewise for field "insn".
207         (issue_nops_and_insn): Likewise for param "insn".
208         (get_next_important_insn): Likewise for return type and both
209         params.
210         (ia64_add_bundle_selector_before): Likewise for param "insn".
211         (bundling): Likewise for params "prev_head_insn", "tail" and
212         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
213         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
214         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
215         Strengthen final param from rtx to rtx_insn *.
216         (iq2000_move_1word): Likewise for second param.
217         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
218         param "cur_insn" and local "next_insn".
219         (iq2000_move_1word): Likewise for param "insn".
220         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
221         casts when using NEXT_INSN on operands[1].
222         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
223         "insn" from rtx to rtx_insn *.
224         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
225         "x", introducing local rtx_insn * "insn" for when working with the
226         CODE_LABEL of the LABEL_REF.
227         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
228         rtx_insn *.
229         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
230         param.
231         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
232         type.
233         (conditionalize_block): Likewise for return type and param.
234         (mcore_is_dead): Likewise for param "first" and local "insn".
235         (emit_new_cond_insn): Likewise for return type.
236         (conditionalize_block): Likewise for return type, param, and
237         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
238         "newinsn".
239         (conditionalize_optimization): Likewise for local "insn".
240         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
241         using NEXT_INSN.
242         * config/microblaze/microblaze.md: Add checked casts when using
243         NEXT_INSN.
244         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
245         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
246         and rtx_insn * "insn".
247         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
248         checked cast when using NEXT_INSN on operands[2].
249         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
250         local "insn" from rtx to rtx_insn *.
251         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
252         Likewise.
253         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
254         Add a checked cast when using NEXT_INSN on operands[1].
255         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
256         rtx to rtx_insn *.
257         (pa_output_cbranch): Likewise for final param.
258         (pa_output_lbranch): Likewise for second param.
259         (pa_output_bb): Likewise for third param.
260         (pa_output_bvb): Likewise.
261         (pa_output_dbra): Likewise for second param.
262         (pa_output_movb): Likewise.
263         (pa_output_parallel_movb): Likewise.
264         (pa_output_parallel_addb): Likewise.
265         (pa_output_millicode_call): Likewise for first param.
266         (pa_output_mul_insn): Likewise for second param.
267         (pa_output_div_insn): Likewise for third param.
268         (pa_output_mod_insn): Likewise for second param.
269         (pa_jump_in_call_delay): Likewise for param.
270         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
271         (pa_output_div_insn): Likewise.
272         (pa_output_mod_insn): Likewise.
273         (pa_output_cbranch): Likewise.
274         (pa_output_lbranch): Likewise.
275         (pa_output_bb): Likewise.
276         (pa_output_bvb): Likewise.
277         (pa_output_dbra): Likewise.
278         (pa_output_movb): Likewise.
279         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
280         to simplify and for typesafety.
281         (pa_output_call): Use method of rtx_sequence *.
282         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
283         (pa_jump_in_call_delay): Likewise.
284         (pa_output_parallel_movb): Likewise.
285         (pa_output_parallel_addb): Likewise.
286         (pa_following_call): Likewise.
287         (pa_combine_instructions): Likewise for locals "anchor",
288         "floater".
289         (pa_can_combine_p): Likewise for params "anchor", "floater" and
290         locals "start", "end".
291         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
292         param "insn" and local "local_insn".
293         (picochip_final_prescan_insn): Likewise for local "local_insn".
294         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
295         local "insn".
296         (uses_TOC): Likewise.
297         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
298         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
299         splitting out to more tightly-scoped locals, 3 as rtx and one as
300         rtx_insn *.
301         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
302         to rtx_insn *.
303         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
304         where needed.
305         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
306         to rtx_insn *.
307         (fixup_addr_diff_vecs): Likewise.
308         (reg_unused_after): Likewise for param 2.
309         (sh_can_redirect_branch): Likewise for both params.
310         (check_use_sfunc_addr): Likewise for param 1.
311         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
312         (find_barrier): Likewise for local "last_got".
313         (gen_block_redirect): Likewise for return type, param "jump" and
314         locals "prev", "scan", "next", "insn".
315         (struct far_branch): Likewise for fields "near_label",
316         "insert_place", "far_label".
317         (gen_far_branch): Likewise for local "jump".
318         (fixup_addr_diff_vecs): Likewise for param "first" and locals
319         "insn", "prev".
320         (barrier_align): Likewise for param and for locals "prev", "x".
321         Introduce local rtx_sequence * "prev_seq" and use insn method for
322         typesafety and clarity.
323         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
324         (get_dest_uid): Likewise for local "dest".
325         (split_branches): Likewise for locals "next", "beyond", "label",
326         "block", "far_label".  Add checked casts when assigning to
327         bp->far_label and "far_label".
328         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
329         (sequence_insn_p): Likewise.
330         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
331         more loop-scoped rtx "insn" when walking LABEL_REFS.
332         (sh_can_redirect_branch): Strengthen both params from rtx to
333         rtx_insn *.
334         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
335         new local rtx_sequence * "seq" via a dyn_cast, and use a method
336         for clarity and typesafety.
337         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
338         "insn" from rtx to rtx_insn *.
339         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
340         when using NEXT_INSN on the CODE_LABEL in operands[2].
341         (define_insn "casesi_worker_2"): Likewise.
342         (define_insn "casesi_shift_media"): Likewise.
343         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
344         operands[3].
345         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
346         Strengthen field "insn" from rtx to rtx_insn *.
347         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
348         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
349         param "start_insn" and local "start_insn".
350         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
351         field "insn".
352         (find_set_of_reg_bb): Likewise for param "insn".
353         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
354         (trace_reg_uses): Likewise for param "start_insn".
355         (sh_treg_combine::cbranch_trace): Likewise for field
356         "cbranch_insn".
357         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
358         param "insn".
359         (sh_treg_combine::record_set_of_reg): Likewise for param
360         "start_insn" and local "i".
361         (sh_treg_combine::can_remove_cstore): Likewise for local
362         "prev_insn".
363         (sh_treg_combine::try_optimize_cbranch): Likewise for param
364         "insn".
365         (sh_treg_combine::execute): Likewise for local "i".
366         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
367         param.
368         (sparc_check_64): Likewise for second param.
369         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
370         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
371         dyn_cast, using its insn method for typesafety and clarity.
372         (empty_delay_slot): Strengthen param "insn" from rtx to
373         rtx_insn *.
374         (set_extends): Likewise.
375         (sparc_check_64): Likewise.
376         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
377         for locals "seq", "last_insn".
378         (combine_bnp): Likewise for param "insn".
379         (xstormy16_reorg): Likewise for local "insn".
380         * config/v850/v850.c (substitute_ep_register): Likewise for params
381         "first_insn", "last_insn" and local "insn".
382         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
383         elements of "regs" array, and local "insn".
384         * except.c (emit_note_eh_region_end): Likewise for param "insn".
385         * final.c (final_sequence): Strengthen this global from rtx to
386         rtx_sequence *.
387         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
388         rtx_insn *.
389         (final_scan_insn): Update assignment to "final_sequence" to be
390         from "seq", the cast version of "body", for type-safety.
391         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
392         "insns" from rtx to rtx_insn *.
393         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
394         * genattr.c (main): When writing out generated insn-attr.h,
395         strengthen params 1 and 3 of eligible_for_delay,
396         eligible_for_annul_true, eligible_for_annul_false from rtx to
397         rtx_insn *.
398         * genattrtab.c (write_eligible_delay): Likewise when writing out
399         generated insn-attrtab.c; also local "insn" the generated
400         functions.
401         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
402         to rtx_insn *.
403         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
404         "start_label" from rtx to rtx_insn *.
405         * ira.c (decrease_live_ranges_number): Likewise for local "p".
406         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
407         "insns" and local "insn".
408         (validate_equiv_mem): Likewise for param "start" and local "insn".
409         (memref_used_between_p): Likewise for params "start", "end" and
410         local "insn".
411         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
412         final param.
413         * loop-doloop.c (doloop_optimize): Within region guarded by
414         INSN_P (doloop_pat), introduce a new local rtx_insn *
415         "doloop_insn" via a checked cast, and use it for typesafety,
416         eventually writing the value back into doloop_pat.
417         * output.h (final_sequence): Strengthen this global from rtx to
418         rtx_sequence *.
419         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
420         reintroducing "insn" as an rtx_insn * via a checked cast.
421         Strengthen param "attempt" and local "new_insn"from rtx to
422         rtx_insn *.
423         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
424         to rtx_insn *.
425         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
426         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
427         "p" in favor of more tightly-scoped replacements, sometimes rtx
428         and sometimes rtx_insn *, as appropriate.
429         (delete_output_reload): Eliminate top-level rtx "i1", splitting
430         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
431         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
432         local "trial" from rtx to rtx_insn *.
433         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
434         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
435         rtx_sequence * and use methods for clarity and typesafety.
436         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
437         rtx to rtx_insn *.  Strenghten local "li" from rtx to
438         rtx_insn_list * and use its methods for clarity and typesafety.
439         (steal_delay_list_from_target): Strengthen param "insn" from rtx
440         to rtx_insn *.
441         (steal_delay_list_from_fallthrough): Likewise.
442         (try_merge_delay_insns): Likewise for param "thread" and locals
443         "trial", "next_trial", "delay_insn".
444         (redundant_insn): Likewise for param "target" and local "trial".
445         (own_thread_p): Likewise for param "thread" and locals
446         "active_insn", "insn".
447         (get_label_before): Likewise for param "insn".
448         (fill_simple_delay_slots): Likewise for local "new_label"; use
449         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
450         (label_before_next_insn): Strengthen return type and local "insn"
451         from rtx to rtx_insn *.
452         (relax_delay_slots): Likewise for locals "other", "tmp".
453         (make_return_insns): Likewise for param "first" and locals "insn",
454         "jump_insn", "prev".  Move declaration of "pat" to its assignment
455         and strengthen from rtx to rtx_sequence *.  Use its methods for
456         clarity and typesafety.
457         * rtlanal.c (no_labels_between_p): Strengthen params from
458         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
459         rtx_insn *.
460         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
461         from const_rtx to const rtx_insn *.
462         (reg_set_between_p): Rename param "from_insn" to
463         "uncast_from_insn", and reintroduce "from_insn" as a
464         const rtx_insn * via a checked cast.
465         (modified_between_p): Likewise for param "start" as "uncast_start".
466         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
467         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
468         "tmp", head" from rtx to rtx_insn *.
469         (recompute_rev_top_order): Likewise for local "insn".
470         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
471         * store-motion.c (build_store_vectors): Likewise for local "insn".
472         Strengthen local "st" from rtx to rtx_insn_list * and use methods
473         for clarity and typesafety.
474         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
475         rtx to rtx_insn *.
476         (computation_cost): Likewise for local "seq".
477         (get_address_cost): Likewise.
479 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
481         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
482         const rtx_insn *.
483         (label_is_jump_target_p): Likewise for second param.
485         * rtlanal.c (tablejump_p): Likewise for param "insn".
486         (label_is_jump_target_p): Likewise for param "jump_insn".
488 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
490         * rtl.h (find_first_parameter_load): Strengthen return type and
491         both params from rtx to rtx_insn *.
492         * rtlanal.c (find_first_parameter_load): Strengthen return type,
493         both params and locals "before", "first_set" from rtx to
494         rtx_insn *.  Remove now-redundant cast.
495         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
497 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
499         * rtl.h (find_last_value): Delete.
500         * rtlanal.c (find_last_value): Delete.
502 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
504         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
505         from rtx to rtx_insn *.
506         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
507         rtx "note" with new local rtx_insn * "new_head" when calculating
508         head insn of new basic block.
509         * combine.c (combine_split_insns): Strengthen return type and local
510         "ret" from rtx to rtx_insn *.
511         (likely_spilled_retval_p): Likewise for locals "use" and "p".
512         (try_combine): Eliminate local "m_split", splitting into new
513         locals "m_split_insn" and "m_split_pat".
514         (find_split_point): Strengthen local "seq" from rtx into
515         rtx_insn *.
516         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
517         locals "label", "branch".
518         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
519         for local "insn".
520         (define_expand "umulsi3_highpart"): Likewise for local "insn".
521         * dse.c (note_add_store_info): Likewise for fields "first",
522         "current".
523         (note_add_store): Likewise for local "insn".
524         (emit_inc_dec_insn_before): Likewise for locals "insn",
525         "new_insn", "cur".
526         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
527         (replace_read): Likewise for locals "insns", "this_insn".
528         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
529         (notice_eh_throw): Likewise for param "insn".
530         (before_next_cfi_note): Likewise for return type, param, and local
531         "prev".
532         (connect_traces): Likewise for local "note".
533         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
534         (verify_rtl_sharing): Likewise.
535         (unshare_all_rtl_in_chain): Likewise for param "insn".
536         (get_first_nonnote_insn): Likewise for local "insn".
537         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
538         "seq" and use its methods to clarify things.
539         (next_insn): Strengthen return type from rtx to rtx_insn *.
540         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
541         local rtx_insn * using a checked cast, dropping a checked cast
542         made redundant by this change.  Use a cast to and method of
543         rtx_sequence to clarify the code.
544         (previous_insn): Rename param "insn" to "uncast_insn" and
545         reintroduce "insn" as a local rtx_insn * using a checked cast,
546         dropping a checked cast made redundant by this change.  Use a cast
547         to and method of rtx_sequence to clarify the code.
548         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
549         reintroduce "insn" as a local rtx_insn * using a checked cast,
550         dropping a checked cast made redundant by this change.
551         (next_nonnote_insn_bb): Likewise.
552         (prev_nonnote_insn): Likewise.
553         (prev_nonnote_insn_bb): Likewise.
554         (next_nondebug_insn): Likewise.
555         (prev_nondebug_insn): Likewise.
556         (next_nonnote_nondebug_insn): Likewise.
557         (prev_nonnote_nondebug_insn): Likewise.
558         (next_real_insn): Likewise.
559         (prev_real_insn): Likewise.
560         (next_active_insn): Likewise.
561         (prev_active_insn): Likewise.
562         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
563         clarity.
564         (prev_cc0_setter): Likewise.
565         (try_split): Rename param "trial" to "uncast_trial" and
566         reintroduce "insn" as a local rtx_insn * using a checked cast,
567         dropping checked casts made redundant by this change.
568         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
569         rtx to rtx_insn *.
570         (remove_insn): Rename param "insn" to "uncast_insn" and
571         reintroduce "insn" as a local rtx_insn * using a checked cast.
572         (emit_pattern_after_setloc): Likewise for param "after", as
573         "uncast_after".
574         (emit_pattern_after): Likewise.  Strengthen local "prev" from
575         rtx to rtx_insn *.
576         (emit_pattern_before_setloc): Rename param "before" to
577         "uncast_before" and reintroduce "before" as a local rtx_insn *
578         using a checked cast.  Strengthen locals "first", "last" from
579         rtx to rtx_insn *.
580         (emit_pattern_before): Likewise rename/cast param "before" to
581         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
582         * except.c (copy_reg_eh_region_note_forward): Strengthen param
583         "first" and local "insn" from rtx to rtx_insn *.
584         (copy_reg_eh_region_note_backward): Likewise for param "last"
585         and local "insn".
586         * expr.c (fixup_args_size_notes): Rename param "last" to
587         "uncast_last" and reintroduce "last" as a local rtx_insn *
588         using a checked cast.  Strengthen local "insn" from rtx to
589         rtx_insn *.
590         * function.c (set_insn_locations): Strengthen param "insn" from
591         rtx to rtx_insn *.
592         (record_insns): Likewise for param "insns" and local "tmp".
593         (active_insn_between): Rename param "tail" to
594         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
595         using a checked cast.
596         (thread_prologue_and_epilogue_insns): Split out top-level local
597         rtx "seq" into three different rtx_insn * locals.  Strengthen
598         local "prologue_seq" from rtx to rtx_insn *.
599         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
600         from rtx to rtx_insn *.
601         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
602         (priority): Likewise for locals "prev_first", "twin".
603         (setup_insn_max_reg_pressure): Likewise for param "after".
604         (sched_setup_bb_reg_pressure_info): Likewise.
605         (no_real_insns_p): Strengthen params from const_rtx to
606         const rtx_insn *.
607         (schedule_block): Strengthen local "next_tail" from rtx to
608         rtx_insn *.
609         * ifcvt.c (find_active_insn_before): Strengthen return type and
610         param "insn" from rtx to rtx_insn *.
611         (find_active_insn_after): Likewise.
612         (cond_exec_process_insns): Likewise for param "start" and local "insn".
613         (cond_exec_process_if_block): Likewise for locals "then_start",
614         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
615         (noce_process_if_block): Likewise for local "jump".
616         (merge_if_block): Likewise for two locals named "end".
617         (cond_exec_find_if_block): Likewise for local "last_insn".
618         * jump.c (delete_related_insns): Rename param "insn" to
619         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
620         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
621         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
622         NULL.
623         (split_reg): Likewise.
624         * lra.c (lra_process_new_insns): Likewise.
625         * modulo-sched.c (permute_partial_schedule): Strengthen param
626         "last" from rtx to rtx_insn *.
627         * optabs.c (add_equal_note): Likewise for param "insns" and local
628         "last_insn".
629         (expand_binop_directly): Add checked casts to rtx_insn * within
630         NEXT_INSN (pat) uses.
631         (expand_unop_direct): Likewise.
632         (maybe_emit_unop_insn): Likewise.
633         * recog.c (peep2_attempt): Strengthen locals "last",
634         "before_try", "x" from rtx to rtx_insn *.
635         * reorg.c (optimize_skip): Strengthen return type and local
636         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
637         and locals "trial", "next_trial" from rtx to rtx_insn *.
638         * resource.c (next_insn_no_annul): Strengthen return type and
639         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
640         rtx_sequence to clarify the code.
641         (mark_referenced_resources): Add a checked cast to rtx_insn *
642         within PREV_INSN (x).
643         (find_dead_or_set_registers): Strengthen return type, param
644         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
645         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
646         to rtx_insn **.
647         (mark_target_live_regs): Strengthen params "insns" and "target",
648         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
649         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
650         the code.
651         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
652         from rtx to rtx_insn *.
653         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
654         from rtx to rtx_insn *.
655         (copy_reg_eh_region_note_backward): Likewise.
656         (unshare_all_rtl_in_chain): Likewise for sole param.
657         (dump_rtl_slim): Strengthen second and third params from const_rtx
658         to const rtx_insn *.
659         * sched-deps.c (sched_free_deps): Strengthen params "head" and
660         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
661         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
662         "next_tail" from rtx to rtx_insn *.
663         (begin_move_insn): Likewise for local "next".
664         * sched-int.h (sched_free_deps): Likewise for first and second
665         params.
666         (no_real_insns_p): Strengthen both params from const_rtx to
667         const rtx_insn *.
668         (sched_setup_bb_reg_pressure_info): Strengthen second params from
669         rtx to rtx_insn *.
670         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
671         "next_tail".
672         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
673         and locals "insn", "tail" from const_rtx to const rtx_insn *.
674         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
675         rtx_insn *.
676         (debug_rtl_slim): Strengthen params "first" and "last" from
677         const_rtx to const rtx_insn *.
678         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
679         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
680         (convert_to_simple_return): Likewise for param "returnjump".
681         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
682         "prologue_seq".
683         (convert_to_simple_return): Likewise for param "returnjump".
684         * valtrack.c (propagate_for_debug): Likewise for params
685         "insn", "last".
686         * valtrack.h (propagate_for_debug): Likewise for second param.
688 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
690         * output.h (insn_current_reference_address): Strengthen param
691         from rtx to rtx_insn *.
692         * final.c (insn_current_reference_address): Likewise.
694 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
696         * basic-block.h (inside_basic_block_p): Strengthen param from
697         const_rtx to const rtx_insn *.
698         * cfgbuild.c (inside_basic_block_p): Likewise.
700 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
702         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
703         rtx_insn *.
704         (get_trace_info): Likewise for param "insn".
705         (save_point_p): Likewise.
706         (maybe_record_trace_start): Likewise for both params.
707         (maybe_record_trace_start_abnormal): Likewise.
708         (create_trace_edges): Likewise for sole param and for three of the
709         locals named "lab".
710         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
711         to rtx_insn *, and update a call to pat->element to pat->insn.
713 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
715         * function.h (struct expr_status): Convert field "x_forced_labels"
716         from rtx_expr_list * to rtx_insn_list *.
718         * cfgbuild.c (make_edges): Convert local "x" from an
719         rtx_expr_list * to an rtx_insn_list *, replacing use of
720         "element" method with "insn" method.
721         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
722         * except.c (sjlj_emit_dispatch_table): Replace use of
723         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
724         forced_labels.
725         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
726         rtx_expr_list * to an rtx_insn_list *, replacing use of
727         "element" method with "insn" method.
728         * reload1.c (set_initial_label_offsets): Likewise for local "x".
729         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
730         rtx_insn *, adding a checked cast.  Replace use of
731         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
732         forced_labels.
733         (expand_label): Likewise for local "label_r".
735 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
737         * function.h (struct rtl_data): Convert field
738         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
739         rtx_insn_list *.
740         * rtl.h (remove_node_from_insn_list): New prototype.
742         * builtins.c (expand_builtin): When prepending to
743         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
744         gen_rtx_EXPR_LIST.
745         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
746         to rtx_insn_list *, and use its "insn" method rather than
747         "element" method.
748         * cfgrtl.c (delete_insn): Use new function
749         remove_node_from_insn_list rather than
750         remove_node_from_expr_list.
751         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
752         to rtx_insn_list *, and use its "insn" method rather than
753         "element" method.
754         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
755         * reload1.c (set_initial_label_offsets): Likewise for local "x".
756         * rtlanal.c (remove_node_from_insn_list): New function, adapted
757         from remove_node_from_expr_list.
758         * stmt.c (expand_label): When prepending to
759         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
760         gen_rtx_EXPR_LIST.
762 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
764         * function.h (struct rtl_data): Strengthen fields "x_return_label"
765         and "x_naked_return_label" from rtx to rtx_code_label *.
767 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
769         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
770         (SET_NEXT_INSN): Likewise.
771         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
773         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
774         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
775         to split out the SEQUENCE from local "bundle", strengthening the
776         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
777         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
778         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
779         and the type of the elements of the "slot" array from rtx to
780         rtx_insn *.
781         (reorg_split_calls): Likewise for locals "insn" and "next", and
782         the type of the elements of the "slot" array.
784         * config/frv/frv.c (frv_nops): Likewise for the elements of this
785         array.
786         (frv_function_prologue): Likewise for locals "insn", "next",
787         "last_call".
788         (frv_register_nop): Introduce a local "nop_insn" to be the
789         rtx_insn * containing rtx "nop".
791         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
792         used as an insn and sometimes as a pattern, so rename it to
793         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
794         using it where dealing with the core insn.
796         * config/picochip/picochip.c (reorder_var_tracking_notes):
797         Strengthen locals "insn", "next", "last_insn", "queue",
798         "next_queue", "prev" from rtx to rtx_insn *.
800         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
801         the second param is an rtx_insn ** rather than an rtx **.
802         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
803         from rtx to rtx_sequence *, and introduce local named "sequence",
804         using methods of rtx_sequence to clarify the code.
805         (remove_insn): Introduce local rtx_sequence * named "sequence" and
806         use its methods.
807         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
808         Rename param "after" to "uncast_after", reintroducing "after" as a
809         local rtx_insn * with a checked cast.
810         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
811         reintroducing "after" as a local rtx_insn * with a checked cast.
812         Strengthen local "last" from rtx to rtx_insn * and remove the
813         now-redundant checked casts.
814         (copy_delay_slot_insn): Strengthen return type and param from rtx
815         to rtx_insn *.
817         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
818         "last" from rtx to rtx_insn *.
820 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
822         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
823         param from rtx to rtx_insn *.
825         * emit-rtl.c (copy_delay_slot_insn): Likewise.
827         * reorg.c (skip_consecutive_labels): Strengthen return type, param
828         and local "insn" from rtx to rtx_insn *.
829         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
830         (unfilled_slots_next): Likewise.
831         (function_return_label): Strengthen from rtx to rtx_code_label *.
832         (function_simple_return_label): Likewise.
833         (first_active_target_insn): Strengthen return type and param from
834         rtx to rtx_insn *.
835         (find_end_label): Strengthen return type from rtx to
836         rtx_code_label *; strengthen locals as appropriate.
837         (emit_delay_sequence): Strengthen return type, param "insn" and
838         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
839         and local "li" from rtx to rtx_insn_list *, using methods of
840         rtx_insn_list for clarity and typesafety.
841         (add_to_delay_list): Strengthen return type and param "insn" from
842         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
843         rtx_insn_list * and use methods of rtx_insn_list.
844         (delete_from_delay_slot): Strengthen return type, param "insn",
845         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
846         Strengthen local "seq" from rtx to rtx_sequence *, and local
847         "delay_list" from rtx to rtx_insn_list *, using methods of
848         rtx_sequence for clarity and type-safety.
849         (delete_scheduled_jump): Add checked cast when invoking
850         delete_from_delay_slot.  Strengthen local "trial" from rtx to
851         rtx_insn *.
852         (optimize_skip): Strengthen return type and local "delay_list"
853         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
854         rtx_insn *.
855         (steal_delay_list_from_target): Strengthen return type, param
856         "delay_list" and local "new_delay_list" from rtx to
857         rtx_insn_list *.  Strengthen param "seq" from rtx to
858         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
859         rtx_insn **.
860         Split out local "temp" into multiple more-tightly scoped locals:
861         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
862         of rtx_insn_list and rtx_sequence for clarity and typesafety.
863         Strengthen locals named "trial" from rtx to rtx_insn *.
864         (steal_delay_list_from_fallthrough): Strengthen return type and
865         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
866         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
867         Strengthen local "trial" from rtx to rtx_insn *.
868         (try_merge_delay_insns): Strength local "merged_insns" from rtx
869         to rtx_insn_list * and use its methods.  Strengthen local "pat"
870         from rtx to rtx_sequence * and use its methods.  Strengthen locals
871         "dtrial" and "new_rtx" from rtx to rtx_insn *.
872         (get_label_before): Strengthen return type and local "label" from
873         rtx to rtx_insn *.
874         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
875         "next_trial", "next", prev".  Strengthen local "delay_list" from
876         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
877         rtx_insn **.
878         (follow_jumps): Strengthen return type, param "label" and locals
879         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
880         (fill_slots_from_thread): Strengthen return type, param
881         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
882         "insn", "thread", "opposite_thread" and locals "new_thread",
883         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
884         "sequence" from a checked cast to rtx_sequence so that we can call
885         steal_delay_list_from_target and steal_delay_list_from_fallthrough
886         with an rtx_sequence *.
887         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
888         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
889         Strengthen local "delay_list" from rtx to rtx_insn_list *.
890         (relax_delay_slots): Strengthen param "first" and locals "insn",
891         "next", "trial", "delay_insn", "target_label" from rtx to
892         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
893         Introduce a local "trial_seq" for PATTERN (trial) of type
894         rtx_sequence *, in both cases using methods of rtx_sequence.
895         (dbr_schedule): Strengthen param "first" and locals "insn",
896         "next", "epilogue_insn" from rtx to rtx_insn *.
898 2014-08-28  Richard Biener  <rguenther@suse.de>
900         PR tree-optimization/62283
901         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
902         Do not peel loops for alignment where the vector loop likely
903         doesn't run at least VF times.
905 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
907         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
908         important_candidates.  Consider all important candidates if
909         IVS doesn't give any result.  Remove check on ivs->upto.
910         (try_add_cand_for): Call iv_ca_add_use only once.
912 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
913             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
914             Anna Tikhonova  <anna.tikhonova@intel.com>
915             Ilya Tocar  <ilya.tocar@intel.com>
916             Andrey Turetskiy  <andrey.turetskiy@intel.com>
917             Ilya Verbin  <ilya.verbin@intel.com>
918             Kirill Yukhin  <kirill.yukhin@intel.com>
919             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
921         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
922         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
923         masking.
924         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
925         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
926         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
927         (define_insn "*mul<mode>3"): Add EVEX version.
929 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
930             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
931             Anna Tikhonova  <anna.tikhonova@intel.com>
932             Ilya Tocar  <ilya.tocar@intel.com>
933             Andrey Turetskiy  <andrey.turetskiy@intel.com>
934             Ilya Verbin  <ilya.verbin@intel.com>
935             Kirill Yukhin  <kirill.yukhin@intel.com>
936             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
938         * config/i386/sse.md
939         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
940         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
941         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
942         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
943         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
944         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
945         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
946         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
947         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
948         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
949         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
950         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
951         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
952         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
953         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
954         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
956 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
957             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
958             Anna Tikhonova  <anna.tikhonova@intel.com>
959             Ilya Tocar  <ilya.tocar@intel.com>
960             Andrey Turetskiy  <andrey.turetskiy@intel.com>
961             Ilya Verbin  <ilya.verbin@intel.com>
962             Kirill Yukhin  <kirill.yukhin@intel.com>
963             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
965         * config/i386/sse.md
966         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
967         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
968         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
970 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
971             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
972             Anna Tikhonova  <anna.tikhonova@intel.com>
973             Ilya Tocar  <ilya.tocar@intel.com>
974             Andrey Turetskiy  <andrey.turetskiy@intel.com>
975             Ilya Verbin  <ilya.verbin@intel.com>
976             Kirill Yukhin  <kirill.yukhin@intel.com>
977             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
979         * config/i386/sse.md
980         (define_mode_iterator VI128_256): New.
981         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
983 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
984             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
985             Anna Tikhonova  <anna.tikhonova@intel.com>
986             Ilya Tocar  <ilya.tocar@intel.com>
987             Andrey Turetskiy  <andrey.turetskiy@intel.com>
988             Ilya Verbin  <ilya.verbin@intel.com>
989             Kirill Yukhin  <kirill.yukhin@intel.com>
990             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
992         * config/i386/sse.md
993         (define_mode_iterator VI8_256_512): New.
994         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
995         Ditto.
996         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
997         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
998         Ditto.
999         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
1001 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1003         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
1004         pointer to the cumulative reloc value and return the value for
1005         this reloc instead.
1006         (compute_reloc_for_rtx): Take a const_rtx.  Call
1007         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
1008         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
1009         for_each_rtx for the CONST case.
1011 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1013         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
1014         (mark_constants_in_pattern): ...this new function to iterate over
1015         all the subrtxes.
1016         (mark_constants): Update accordingly.
1018 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1020         * varasm.c: Include rtl-iter.h.
1021         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
1022         Remove the pointer to the cumulative hashval_t and just return
1023         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
1024         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1025         Accumulate the hashval_ts here instead of const_rtx_hash_1.
1027 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1029         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
1030         Give real type of data parameter.  Remove return value.
1031         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
1032         to iterate over subrtxes.
1034 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1036         * var-tracking.c (use_narrower_mode_test): Turn from being a
1037         for_each_rtx callback to being a function that examines each
1038         subrtx itself.
1039         (adjust_mems): Update accordingly.
1041 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1043         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
1044         callback to being a function that examines each subrtx itself.
1045         Remove handling of null rtxes.
1046         (add_uses): Update accordingly.
1048 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1050         * var-tracking.c: Include rtl-iter.h.
1051         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
1052         to being a function that examines each subrtx itself.
1053         (use_type): Update accordingly.
1055 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1057         * store-motion.c: Include rtl-iter.h.
1058         (extract_mentioned_regs_1): Delete.
1059         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
1060         for_each_rtx to iterate over subrtxes.
1062 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1064         * sel-sched.c: Include rtl-iter.h
1065         (count_occurrences_1): Delete.
1066         (count_occurrences_equiv): Turn rtxes into const_rtxes.
1067         Use FOR_EACH_SUBRTX rather than for_each_rtx.
1069 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1071         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
1072         * rtlanal.c (tls_referenced_p_1): Delete.
1073         (tls_referenced_p): Take a const_rtx rather than an rtx.
1074         Use FOR_EACH_SUBRTX rather than for_each_rtx.
1076 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1078         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
1079         (for_each_inc_dec): Take an rtx rather than an rtx *.
1080         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
1081         (cselib_record_sets): Likewise.
1082         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
1083         (check_for_inc_dec): Likewise.
1084         * rtlanal.c (for_each_inc_dec_ops): Delete.
1085         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
1086         rather than a pointer to the memory address.  Replace
1087         for_each_inc_dec_ops argument with separate function and data
1088         arguments.  Abort on non-autoinc addresses.
1089         (for_each_inc_dec_find_mem): Delete.
1090         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
1091         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
1093 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1095         * rtl.h (find_all_hard_regs): Declare.
1096         * rtlanal.c (find_all_hard_regs): New function.
1097         (record_hard_reg_uses_1): Delete.
1098         (record_hard_reg_uses): Use find_all_hard_regs.
1100 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1102         * rtl.h (replace_label_data): Delete.
1103         (replace_label): Take the old label, new label and update-nuses flag
1104         as direct arguments.  Return void.
1105         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
1106         * rtlanal.c (replace_label): Update interface as above.  Handle
1107         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
1108         iterator.  Use FOR_EACH_SUBRTX_PTR.
1110 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1112         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
1113         with const_rtx parameters.
1114         * varasm.c (get_pool_constant): Likewise.
1115         * rtlanal.c (rtx_referenced_p_1): Delete.
1116         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1117         Assert that the rtx we're looking for is nonnull.  Allow searches
1118         for constant pool SYMBOL_REFs.
1120 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1122         * reload1.c: Include rtl-iter.h.
1123         (note_reg_elim_costly): Turn from being a for_each_rtx callback
1124         to being a function that examines each subrtx itself.
1125         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
1127 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1129         * regcprop.c (cprop_find_used_regs_1): Delete.
1130         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1132 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1134         * regcprop.c: Include rtl-iter.h.
1135         (kill_value): Take a const_rtx.
1136         (kill_autoinc_value): Turn from being a for_each_rtx callback
1137         to being a function that examines each subrtx itself.
1138         (copyprop_hardreg_forward_1): Update accordingly.
1140 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1142         * reg-stack.c: Include rtl-iter.h.
1143         (subst_stack_regs_in_debug_insn): Delete.
1144         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
1145         instead of for_each_rtx.
1147 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1149         * lower-subreg.c (find_decomposable_subregs): Turn from being
1150         a for_each_rtx callback to being a function that examines each
1151         subrtx itself.  Remove handling of null rtxes.
1152         (decompose_multiword_subregs): Update accordingly.
1154 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1156         * lower-subreg.c (adjust_decomposed_uses): Delete.
1157         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
1158         Remove handling of null rtxes.
1160 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1162         * lower-subreg.c: Include rtl-iter.h.
1163         (resolve_subreg_use): Turn from being a for_each_rtx callback
1164         to being a function that examines each subrtx itself.  Remove
1165         handling of null rtxes.
1166         (resolve_reg_notes, resolve_simple_move): Update accordingly.
1167         (decompose_multiword_subregs): Likewise.
1169 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1171         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
1172         to being a function that examines each subrtx itself.
1173         (simplify_using_condition, simplify_using_initial_values): Update
1174         accordingly.
1176 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1178         * loop-iv.c: Include rtl-iter.h.
1179         (find_single_def_src): New function.
1180         (replace_single_def_regs): Turn from being a for_each_rtx callback
1181         to being a function that examines each subrtx itself.
1182         (replace_in_expr, simplify_using_initial_values): Update accordingly.
1184 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1186         * jump.c (eh_returnjump_p_1): Delete.
1187         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1188         Remove handling of null rtxes.
1190 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1192         * jump.c: Include rtl-iter.h.
1193         (returnjump_p_1): Delete.
1194         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1195         Remove handling of null rtxes.
1197 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1199         * ira.c: Include rtl-iter.h.
1200         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
1201         to being a function that examines each subrtx itself.  Remove
1202         handling of null rtxes.
1203         (update_equiv_regs): Update call accordingly.
1205 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1207         * fwprop.c: Include rtl-iter.h.
1208         (varying_mem_p): Turn from being a for_each_rtx callback to being
1209         a function that examines each subrtx itself.
1210         (propagate_rtx): Update accordingly.
1212 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1214         * function.c: Include rtl-iter.h
1215         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
1216         callback to being a function that examines each subrtx itself.
1217         Return the changed flag.
1218         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
1219         (instantiate_virtual_regs): Update calls accordingly.
1221 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1223         * final.c: Include rtl-iter.h.
1224         (mark_symbol_ref_as_used): Delete.
1225         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
1226         for_each_rtx.
1228 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1230         * emit-rtl.c: Include rtl-iter.h.
1231         (find_auto_inc): Turn from being a for_each_rtx callback to being
1232         a function that examines each subrtx itself.  Assume the first operand
1233         to an RTX_AUTOINC is the automodified register.
1234         (try_split): Update call accordingly.
1236 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1238         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
1239         Return a bool, inverting the result so that 0/false means "not ok".
1240         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
1241         subrtxes of a CONST.
1242         (mem_loc_descriptor, add_const_value_attribute)
1243         (resolve_addr_in_expr): Update calls accordingly.
1245 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1247         * dwarf2out.c: Include rtl-iter.h.
1248         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
1249         Remove unused data parameter.  Return a bool, inverting the result
1250         so that 0/false means "not ok".
1251         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
1252         instead of for_each_rtx.
1254 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1256         * dse.c: Include rtl-iter.h.
1257         (check_mem_read_rtx): Change void * parameter to real type.
1258         Remove return value.
1259         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
1260         for_each_rtx.  Don't handle null rtxes.
1262 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1264         * df-problems.c: Include rtl-iter.h.
1265         (find_memory): Turn from being a for_each_rtx callback to being
1266         a function that examines each subrtx itself.  Continue to look for
1267         volatile references even after a nonvolatile one has been found.
1268         (can_move_insns_across): Update calls accordingly.
1270 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1272         * ddg.c (walk_mems_2, walk_mems_1): Delete.
1273         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
1274         to iterate over subrtxes.  Return a bool rather than an int.
1276 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1278         * ddg.c: Include rtl-iter.h.
1279         (mark_mem_use_1): Rename to...
1280         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
1281         instead of for_each_rtx.
1282         (mem_read_insn_p): Update accordingly.
1284 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1286         * cse.c (change_cc_mode_args): Delete.
1287         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
1288         a function that examines each subrtx itself.  Take the fields of
1289         change_cc_mode_args as argument and return void.
1290         (cse_change_cc_mode_insn): Update calls accordingly.
1292 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1294         * cse.c (is_dead_reg): Change argument to const_rtx.
1295         (dead_debug_insn_data): Delete.
1296         (is_dead_debug_insn): Expand commentary.  Turn from being a
1297         for_each_rtx callback to being a function that examines
1298         each subrtx itself.  Take the fields of dead_debug_insn_data
1299         as argument.
1300         (delete_trivially_dead_insns): Update call accordingly.
1302 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1304         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
1305         being a for_each_rtx callback to being a function that examines
1306         each subrtx itself.
1307         (cse_extended_basic_block): Update call accordingly.
1309 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1311         * cse.c (check_dependence_data): Delete.
1312         (check_dependence): Change from being a for_each_rtx callback to being
1313         a function that examines all subrtxes itself.  Don't handle null rtxes.
1314         (invalidate): Update call accordingly.
1316 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1318         * cse.c: Include rtl-iter.h.
1319         (approx_reg_cost_1): Delete.
1320         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1321         Don't handle null rtxes.
1323 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1325         * cfgcleanup.c: Include rtl-iter.h.
1326         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
1327         to being a function that examines each subrtx itself.
1328         (thread_jump): Update accordingly.
1330 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1332         * combine-stack-adj.c: Include rtl-iter.h.
1333         (record_stack_refs_data): Delete.
1334         (record_stack_refs): Turn from being a for_each_rtx callback
1335         to being a function that examines each subrtx itself.
1336         Take a pointer to the reflist.  Invert sense of return value
1337         so that true means success and false means failure.  Don't
1338         handle null rtxes.
1339         (combine_stack_adjustments_for_block): Update accordingly.
1341 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1343         * combine.c (record_truncated_value): Turn from being a for_each_rtx
1344         callback to a function that takes an rtx and returns a bool
1345         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
1346         for_each_rtx.
1348 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1350         * combine.c: Include rtl-iter.h.
1351         (unmentioned_reg_p_1): Delete.
1352         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1353         Don't handle null rtxes.
1355 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1357         * calls.c: Include rtl-iter.h.
1358         (internal_arg_pointer_based_exp_1): Delete.
1359         (internal_arg_pointer_based_exp): Take a const_rtx.
1360         Use FOR_EACH_SUBRTX to iterate over subrtxes.
1362 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1364         * caller-save.c: Include rtl-iter.h.
1365         (add_used_regs_1): Delete.
1366         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
1367         to iterate over subrtxes.  Assert that any remaining pseudos
1368         have been spilled.
1370 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1372         * bt-load.c: Include rtl-iter.h.
1373         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
1374         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
1375         to iterate over subrtxes.
1376         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
1377         find_btr_use rather than btr_referenced_p.
1379 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1381         * alias.c: Include rtl-iter.h.
1382         (refs_newer_value_cb): Delete.
1383         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1385 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1387         * rtl-iter.h: New file.
1388         * rtlanal.c: Include it.
1389         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
1390         (generic_subrtx_iterator <T>::add_single_to_queue)
1391         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
1392         (generic_subrtx_iterator <T>::free_array): New functions.
1393         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
1394         (generic_subrtx_iterator <const_rtx_accessor>)
1395         (generic_subrtx_iterator <rtx_var_accessor>
1396         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
1397         (setup_reg_subrtx_bounds): New function.
1398         (init_rtlanal): Call it.
1400 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
1402         PR target/62261
1403         * config/sh/sh.md (ashlsi3): Handle negative shift count for
1404         TARGET_SHMEDIA.
1405         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
1407 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
1409         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
1411 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1413         * rtl.h (JUMP_LABEL_AS_INSN): New.
1415 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1417         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
1418         rtx_expr_list **.
1419         (alloc_EXPR_LIST): Strengthen return type from rtx to
1420         rtx_expr_list *.
1421         (remove_free_EXPR_LIST_node): Likewise for param.
1422         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
1423         from rtx to rtx_expr_list *.
1424         * sched-int.h (struct deps_desc): Strengthen fields
1425         "pending_read_mems" and "pending_write_mems" from rtx to
1426         rtx_expr_list *.
1428         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
1429         rtx to rtx_expr_list *.
1430         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
1431         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
1432         rtx_expr_list **.
1433         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
1434         from rtx to rtx_expr_list *.
1435         * loop-iv.c (simplify_using_initial_values): Strengthen local
1436         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
1437         "pnote_next" from rtx * to rtx_expr_list **.
1438         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
1439         param "exprp" from rtx * to rtx_expr_list **.
1440         (add_insn_mem_dependence): Strengthen local "mem_list" from
1441         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
1442         to rtx_expr_list *.
1443         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
1444         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
1445         param "old_mems_p" from rtx * to rtx_expr_list **.
1446         * var-tracking.c (struct adjust_mem_data): Strengthen field
1447         "side_effects" from rtx to rtx_expr_list *.
1448         (adjust_insn): Replace NULL_RTX with NULL when assigning to
1449         rtx_expr_list *.
1450         (prepare_call_arguments): Likewise.
1452 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1454         * function.h (struct rtl_data): Strengthen field
1455         "x_stack_slot_list" from rtx to rtx_expr_list *.
1457         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
1458         when assigning to stack_slot_list.
1460 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1462         * function.h (struct rtl_data): Strengthen field
1463         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
1464         * rtl.h (remove_node_from_expr_list): Strengthen second param from
1465         rtx * to rtx_expr_list **.
1467         * cfgbuild.c (make_edges): In loop over
1468         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
1469         rtx_expr_list *, and use methods of the latter class to clarify
1470         the code.
1471         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
1472         rtx_expr_list *, and use methods of the latter class to clarify
1473         the code.
1474         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1475         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1476         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
1477         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
1478         to rtx_expr_list *.  Use methods of the latter class to clarify
1479         the code.
1481 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1483         * function.h (struct expr_status): Strengthen field
1484         "x_forced_labels" from rtx to rtx_expr_list *.
1486         * cfgbuild.c (make_edges): Split local "x" into two locals,
1487         strengthening one from rtx to rtx_expr_list *, and using methods
1488         of said class.
1489         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
1490         loop over forced_labels, introduce strengthen it from rtx to
1491         rtx_expr_list *, using methods to clarify the code.
1492         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
1493         to rtx_expr_list *, using methods of said class to clarify the
1494         code.
1495         * reload1.c (set_initial_label_offsets): Split local "x" into two
1496         per-loop variables, strengthening the first from rtx to
1497         rtx_expr_list * and using methods.
1499 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1501         * coretypes.h (class rtx_expr_list): Add forward declaration.
1502         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
1503         * gengenrtl.c (special_rtx): Add EXPR_LIST.
1504         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
1505         invariant: GET_CODE (X) == EXPR_LIST.
1506         (is_a_helper <rtx_expr_list *>::test): New.
1507         (rtx_expr_list::next): New.
1508         (rtx_expr_list::element): New.
1509         (gen_rtx_EXPR_LIST): New.
1511 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1513         * varasm.c (mark_constants): Convert a GET_CODE check into a
1514         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1515         Use methods of rtx_sequence to clarify the code.
1517 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1519         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
1520         local "seq" via a checked cast, and use methods of rtx_sequence
1521         to simplify the code.
1523 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1525         * resource.c (mark_referenced_resources): Strengthen local
1526         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
1527         using methods of rtx_sequence to clarify the code.
1528         (find_dead_or_set_registers): Within the switch statement, convert
1529         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
1530         the JUMP_P handling, introduce another local "seq", adding a
1531         checked cast to rtx_sequence *.  In both cases, use methods of
1532         rtx_sequence to clarify the code.
1533         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
1534         via a checked cast, and use methods of rtx_sequence to simplify
1535         the code.
1537 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1539         * reorg.c (redundant_insn): In two places in the function, replace
1540         a check of GET_CODE with a dyn_cast, introducing local "seq", and
1541         usings methods of rtx_sequence to clarify the code.
1543 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1545         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
1546         local "seq" with a checked cast, and use methods of rtx_sequence
1547         to clarify the code.
1549 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1551         * function.c (contains): Introduce local "seq" for PATTERN (insn),
1552         with a checked cast, in the region for where we know it's a
1553         SEQUENCE.  Use methods of rtx_sequence.
1555 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1557         * final.c (get_attr_length_1): Replace GET_CODE check with a
1558         dyn_cast, introducing local "seq" and the use of methods of
1559         rtx_sequence.
1560         (shorten_branches): Likewise, introducing local "body_seq".
1561         Strengthen local "inner_insn" from rtx to rtx_insn *.
1562         (reemit_insn_block_notes): Replace GET_CODE check with a
1563         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
1564         Use methods of rtx_sequence.
1565         (final_scan_insn): Likewise, introducing local "seq" for when
1566         "body" is known to be a SEQUENCE, using its methods.
1568 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1570         * except.c (can_throw_external): Strengthen local "seq" from rtx
1571         to rtx_sequence *.  Use methods of rtx_sequence.
1572         (insn_nothrow_p): Likewise.
1574 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1576         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
1577         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1578         Use methods of rtx_sequence.
1579         (scan_trace): Likewise for local "pat".
1581 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1583         * coretypes.h (class rtx_sequence): Add forward declaration.
1584         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
1585         invariant: GET_CODE (X) == SEQUENCE.
1586         (is_a_helper <rtx_sequence *>::test): New.
1587         (is_a_helper <const rtx_sequence *>::test): New.
1588         (rtx_sequence::len): New.
1589         (rtx_sequence::element): New.
1590         (rtx_sequence::insn): New.
1592 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1594         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
1595         rtx_insn_list **.
1596         (alloc_INSN_LIST): Strengthen return type from rtx to
1597         rtx_insn_list *.
1598         (copy_INSN_LIST): Likewise for return type and param.
1599         (concat_INSN_LIST): Likewise for both params and return type.
1600         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
1601         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
1602         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
1603         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
1605         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
1606         "implicit_sets", "control_uses", "clobbers" from rtx to
1607         rtx_insn_list *.
1608         (struct deps_desc): Likewise for fields "pending_read_insns",
1609         "pending_write_insns", "pending_jump_insns",
1610         "last_pending_memory_flush", "last_function_call",
1611         "last_function_call_may_noreturn", "sched_before_next_call",
1612         "sched_before_next_jump".
1613         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
1614         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
1616         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
1617         from rtx to rtx_insn_list *.
1618         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
1619         rtx_insn_list *.
1621         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
1622         to rtx_insn_list **.
1623         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
1624         rtx_insn_list *.
1625         (queue_insn): Likewise for local "link".
1626         (struct haifa_saved_data): Strengthen field "insn_queue" from
1627         rtx * to rtx_insn_list **.
1628         (save_backtrack_point): Update allocation of save->insn_queue to
1629         reflect the strengthening of elements from rtx to rtx_insn_list *.
1630         (queue_to_ready): Strengthen local "link" from rtx to
1631         rtx_insn_list *; use methods "next" and "insn" when traversing the
1632         list.
1633         (early_queue_to_ready): Likewise for locals "link", "next_link",
1634         "prev_link".
1635         (schedule_block): Update allocation of insn_queue to reflect the
1636         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
1637         local "link" from rtx to rtx_insn_list *, and use methods when
1638         working it.
1639         (add_to_speculative_block): Strengthen locals "twins" and
1640         "next_node" from rtx to rtx_insn_list *, and use methods when
1641         working with them.  Strengthen local "twin" from rtx to
1642         rtx_insn *, eliminating a checked cast.
1643         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
1644         from rtx to rtx_insn_list *, and use methods when working with
1645         them.
1647         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
1648         from rtx to rtx_insn_list *, adding a checked cast.
1649         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
1650         rtx_insn_list **.
1651         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
1652         "newlink" from rtx to rtx_insn_list *.  Strengthen local
1653         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
1654         from rtx to rtx_insn *.
1655         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
1656         from rtx to rtx_insn_list *.  Use methods of the latter class.
1657         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
1658         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
1659         (remove_free_INSN_LIST_node): Strengthen return type and local
1660         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
1661         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
1662         rtx_insn_list *, using "insn" method.
1664         * sched-deps.c (add_dependence_list):  Strengthen param "list"
1665         from rtx to rtx_insn_list *, and use methods when working with it.
1666         (add_dependence_list_and_free):  Strengthen param "listp" from
1667         rtx * to rtx_insn_list **.
1668         (remove_from_dependence_list): Strenghten param "listp" from rtx *
1669         to rtx_insn_list **, and use methods when working with *listp.
1670         (remove_from_both_dependence_lists): Strengthen param "listp" from
1671         rtx * to rtx_insn_list **
1672         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
1673         to rtx_insn_list **.  Eliminate local "link", in favor of two new
1674         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
1675         respectively.
1676         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
1677         by introducing local "cond_deps".
1678         (remove_from_deps): Strengthen param "insn" from rtx to
1679         rtx_insn *.
1681         * sched-rgn.c (concat_insn_mem_list): Strengthen param
1682         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
1683         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
1684         Use methods of rtx_insn_list.
1686         * store-motion.c (struct st_expr): Strengthen fields
1687         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
1688         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
1689         rtx_insn_list *.
1690         (find_moveable_store): Split out "tmp" into multiple more-tightly
1691         scoped locals.  Use methods of rtx_insn_list *.
1692         (compute_store_table): Strengthen local "tmp" from rtx to
1693         rtx_insn *.  Use methods of rtx_insn_list *.
1695 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1697         * coretypes.h (class rtx_insn_list): Add forward declaration.
1698         * rtl.h (class rtx_insn_list): New subclass of rtx_def
1699         (is_a_helper <rtx_insn_list *>::test): New.
1700         (rtx_insn_list::next): New.
1701         (rtx_insn_list::insn): New.
1702         (gen_rtx_INSN_LIST): Add prototype.
1703         * emit-rtl.c (gen_rtx_INSN_LIST): New.
1704         * gengenrtl.c (special_rtx): Add INSN_LIST.
1706 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1708         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
1709         "prev" from rtx to rtx_insn *.
1711 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1713         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
1714         functions.  Require merely an rtx for now, not an rtx_insn *.
1715         (BLOCK_FOR_INSN): Likewise.
1716         (INSN_LOCATION): Likewise.
1717         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
1719 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1721         * rtl.h (PATTERN): Convert this macro into a pair of inline
1722         functions, for now, requiring const_rtx and rtx.
1724 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1726         * target.def (unwind_emit): Strengthen param "insn" from rtx to
1727         rtx_insn *.
1728         (final_postscan_insn): Likewise.
1729         (adjust_cost): Likewise.
1730         (adjust_priority): Likewise.
1731         (variable_issue): Likewise.
1732         (macro_fusion_pair_p): Likewise.
1733         (dfa_post_cycle_insn): Likewise.
1734         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
1735         (first_cycle_multipass_issue): Likewise.
1736         (dfa_new_cycle): Likewise.
1737         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
1738         (speculate_insn): Likewise for param "insn".
1739         (gen_spec_check): Likewise for params "insn" and "label".
1740         (get_insn_spec_ds): Likewise for param "insn".
1741         (get_insn_checked_ds): Likewise.
1742         (dispatch_do): Likewise.
1743         (dispatch): Likewise.
1744         (cannot_copy_insn_p): Likewise.
1745         (invalid_within_doloop): Likewise.
1746         (legitimate_combined_insn): Likewise.
1747         (needed): Likewise.
1748         (after): Likewise.
1750         * doc/tm.texi: Automatically updated to reflect changes to
1751         target.def.
1753         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
1754         working with insn.
1755         (schedule_block): Likewise.
1756         (sched_init): Likewise.
1757         (sched_speculate_insn): Strengthen param "insn" from rtx to
1758         rtx_insn *.
1759         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
1760         working with insn.
1761         * hooks.c (hook_bool_rtx_true): Rename to...
1762         hook_bool_rtx_insn_true): ...this, and strengthen first param from
1763         rtx to rtx_insn *.
1764         (hook_constcharptr_const_rtx_null): Rename to...
1765         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
1766         first param from const_rtx to const rtx_insn *.
1767         (hook_bool_rtx_int_false): Rename to...
1768         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
1769         param from rtx to rtx_insn *.
1770         (hook_void_rtx_int): Rename to...
1771         (hook_void_rtx_insn_int): ...this, and strengthen first param from
1772         rtx to rtx_insn *.
1774         * hooks.h (hook_bool_rtx_true): Rename to...
1775         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
1776         rtx to rtx_insn *.
1777         (hook_bool_rtx_int_false): Rename to...
1778         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
1779         param from rtx to rtx_insn *.
1780         (hook_void_rtx_int): Rename to...
1781         (hook_void_rtx_insn_int): ...this, and strengthen first param from
1782         rtx to rtx_insn *.
1783         (hook_constcharptr_const_rtx_null): Rename to...
1784         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
1785         first param from const_rtx to const rtx_insn *.
1787         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
1788         and local "prev" from rtx to rtx_insn *.
1790         * sched-int.h (sched_speculate_insn): Strengthen first param from
1791         rtx to rtx_insn *.
1793         * sel-sched.c (create_speculation_check): Likewise for local "label".
1794         * targhooks.c (default_invalid_within_doloop): Strengthen param
1795         "insn" from const_rtx to const rtx_insn *.
1796         * targhooks.h (default_invalid_within_doloop): Strengthen param
1797         from const_rtx to const rtx_insn *.
1799         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
1800         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
1802         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
1803         "insn".
1804         (arc_invalid_within_doloop): Likewise, with const.
1806         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
1807         (arm_cannot_copy_insn_p): Likewise for param "insn".
1808         (arm_unwind_emit): Likewise.
1810         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
1811         "dep_insn".
1813         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
1814         (c6x_variable_issue): Likewise.  Removed now-redundant checked
1815         cast.
1816         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
1818         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
1819         Likewise for param "insn".
1820         (epiphany_mode_after): Likewise.
1821         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
1822         params "insn", "dep_insn".
1823         (epiphany_mode_needed): Likewise for param "insn".
1824         (epiphany_mode_after): Likewise.
1826         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
1827         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1828         (ix86_avx_u128_mode_needed): Likewise.
1829         (ix86_i387_mode_needed): Likewise.
1830         (ix86_mode_needed): Likewise.
1831         (ix86_avx_u128_mode_after): Likewise.
1832         (ix86_mode_after): Likewise.
1833         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
1834         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
1835         (ix86_adjust_priority): Likewise for param "insn".
1836         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
1837         (do_dispatch): Likewise.
1838         (has_dispatch): Likewise.
1839         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
1841         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
1842         reflect renaming of default hook implementation from
1843         hook_constcharptr_const_rtx_null to
1844         hook_constcharptr_const_rtx_insn_null.
1845         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
1846         rtx to rtx_insn *.
1847         (ia64_variable_issue): Likewise for param "insn".
1848         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
1849         (ia64_dfa_new_cycle): Likewise.
1850         (ia64_get_insn_spec_ds): Likewise.
1851         (ia64_get_insn_checked_ds): Likewise.
1852         (ia64_speculate_insn): Likewise.
1853         (ia64_gen_spec_check): Likewise for params "insn", "label".
1854         (ia64_asm_unwind_emit): Likewise for param "insn".
1856         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
1858         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
1859         "insn", "def_insn".
1860         (m68k_sched_variable_issue): Likewise for param "insn".
1862         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
1863         "def_insn".
1865         * config/microblaze/microblaze.c (microblaze_adjust_cost):
1866         Likewise for params "insn", "dep".
1868         * config/mips/mips.c (mips_adjust_cost): Likewise.
1869         (mips_variable_issue): Likewise for param "insn".
1870         (mips_final_postscan_insn): Likewise.
1872         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
1873         for params "insn", "dep".
1875         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
1876         "dep_insn".
1877         (pa_adjust_priority): Likewise for param "insn".
1879         * config/picochip/picochip.c (picochip_sched_adjust_cost):
1880         Likewise for params "insn", "dep_insn".
1882         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
1883         param "insn".
1884         (rs6000_variable_issue): Likewise.
1885         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
1886         (rs6000_debug_adjust_cost): Likewise.
1887         (rs6000_adjust_priority): Likewise for param "insn".
1888         (rs6000_use_sched_lookahead_guard): Likewise.
1889         (get_next_active_insn): Likewise for return type and both params.
1890         (redefine_groups): Likewise for params "prev_head_insn", "tail"
1891         and locals "insn", "next_insn".
1892         (pad_groups): Likewise.
1894         * config/s390/s390.c (s390_adjust_priority): Likewise for param
1895         "insn".
1896         (s390_cannot_copy_insn_p): Likewise.
1897         (s390_sched_variable_issue): Likewise for third param, eliminating
1898         checked cast.
1899         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
1900         default hook implementation from hook_constcharptr_const_rtx_null
1901         to hook_constcharptr_const_rtx_insn_null.
1903         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
1904         from rtx to rtx_insn *.
1905         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
1906         (sh_variable_issue): Likewise for param "insn".
1907         (sh_dfa_new_cycle): Likewise.
1908         (sh_mode_needed): Likewise.
1909         (sh_mode_after): Likewise.
1911         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
1912         params "insn", "dep_insn".
1913         (hypersparc_adjust_cost): Likewise.
1914         (sparc_adjust_cost): Likewise.
1916         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
1917         param, eliminated checked cast.
1918         (spu_sched_adjust_cost): Likewise for first and third params.
1920         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
1921         params "insn" and "dep_insn" from rtx to rtx_insn *.
1923         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
1925 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1927         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
1928         (set_is_load_p): ...this, updating to work on a SET pattern rather
1929         than an insn.
1930         (is_store_insn): Rename to...
1931         (set_is_store_p): ...this, updating to work on a SET pattern
1932         rather than an insn.
1933         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
1934         top of function to where it is needed.  Rewrite the bogus
1935         condition that checks for "insn" and "dep" being PARALLEL to
1936         instead use single_set, introducing locals "insn_set" and
1937         "dep_set".  Given that we only ever returned "cost" for a non-pair
1938         of SETs, bail out early if we don't have a pair of SET.
1939         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
1940         use the new locals "insn_set" and "dep_set", and update calls to
1941         is_load_insn and is_store_insn to be calls to set_is_load_p and
1942         set_is_store_p.
1944 2014-08-27  Guozhi Wei  <carrot@google.com>
1946         PR target/62262
1947         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
1948         amount before using it.
1950 2014-08-27  Richard Biener  <rguenther@suse.de>
1952         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
1953         get_maxval_strlen inside a more useful API.
1954         (gimple_fold_builtin_with_strlen): Remove and fold into ...
1955         (gimple_fold_builtin): ... caller.
1956         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
1957         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
1958         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
1959         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
1960         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
1961         gimple_fold_builtin_sprintf): Adjust to compute maxval
1962         themselves.
1964 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
1966         PR other/62248
1967         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
1969 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1970             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1971             Anna Tikhonova  <anna.tikhonova@intel.com>
1972             Ilya Tocar  <ilya.tocar@intel.com>
1973             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1974             Ilya Verbin  <ilya.verbin@intel.com>
1975             Kirill Yukhin  <kirill.yukhin@intel.com>
1976             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1978         * config/i386/sse.md
1979         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
1980         Use `concat_tg_mode' attribute to determine asm register size.
1982 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1983             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1984             Anna Tikhonova  <anna.tikhonova@intel.com>
1985             Ilya Tocar  <ilya.tocar@intel.com>
1986             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1987             Ilya Verbin  <ilya.verbin@intel.com>
1988             Kirill Yukhin  <kirill.yukhin@intel.com>
1989             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1991         * config/i386/sse.md
1992         (define_mode_iterator VI48_AVX512VL): New.
1993         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
1994         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
1995         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
1996         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1997         with VI1): Change mode iterator.
1998         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1999         with VI_ULOADSTORE_BW_AVX512VL): New.
2000         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2001         with VI_ULOADSTORE_F_AVX512VL): Ditto.
2002         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2003         with VI1): Change mode iterator.
2004         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2005         with VI_ULOADSTORE_BW_AVX512VL): New.
2006         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2007         with VI_ULOADSTORE_F_AVX512VL): Ditto.
2008         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2009         with VI1): Change mode iterator.
2010         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2011         with VI_ULOADSTORE_BW_AVX512VL): New.
2012         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2013         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
2014         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
2015         (define_insn "<avx512>_storedqu<mode>_mask" with
2016         VI48_AVX512VL): New.
2017         (define_insn "<avx512>_storedqu<mode>_mask" with
2018         VI12_AVX512VL): Ditto.
2020 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2021             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2022             Anna Tikhonova  <anna.tikhonova@intel.com>
2023             Ilya Tocar  <ilya.tocar@intel.com>
2024             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2025             Ilya Verbin  <ilya.verbin@intel.com>
2026             Kirill Yukhin  <kirill.yukhin@intel.com>
2027             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2029         * config/i386/sse.md
2030         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
2031         (define_mode_iterator VI48_AVX512BW): New.
2032         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
2033         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2034         with VI48_AVX2_48_AVX512F): New.
2035         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2036         with VI2_AVX512VL): Ditto.
2038 2014-08-27  Richard Biener  <rguenther@suse.de>
2040         PR middle-end/62239
2041         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
2042         (fold_builtin_3): Do not fold strcat_chk here.
2043         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
2044         from builtins.c.
2045         (gimple_fold_builtin): Fold strcat_chk here.
2047 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
2049         * dwarf2out.h (dwarf2out_decl): Remove prototype.
2050         * dwarf2out.c (dwarf2out_decl): Make static.
2052 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
2054         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
2056 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2058         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
2059         from rtx to rtx_insn *.
2060         (cselib_lookup_from_insn): Likewise for final param.
2061         (cselib_subst_to_values_from_insn): Likewise.
2062         (cselib_add_permanent_equiv): Likewise.
2064         * cselib.c (cselib_current_insn): Likewise for this variable.
2065         (cselib_subst_to_values_from_insn): Likewise for param "insn".
2066         (cselib_lookup_from_insn): Likewise.
2067         (cselib_add_permanent_equiv): Likewise for param "insn" and local
2068         "save_cselib_current_insn".
2069         (cselib_process_insn): Replace use of NULL_RTX with NULL.
2071         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
2072         from rtx to rtx_insn *.
2074 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2076         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
2077         rtx_insn *.
2079 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2081         * df.h (df_dump_insn_problem_function): Strengthen first param of
2082         this callback from const_rtx to const rtx_insn *.
2083         (struct df_insn_info): Strengthen field "insn" from rtx to
2084         rtx_insn *.
2085         (DF_REF_INSN): Eliminate this function, reinstating the older
2086         macro definition.
2087         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
2088         (df_reg_defined): Likewise.
2089         (df_find_use): Likewise.
2090         (df_reg_used): Likewise.
2091         (df_dump_insn_top): Strengthen param 1 from const_rtx to
2092         const rtx_insn *.
2093         (df_dump_insn_bottom): Likewise.
2094         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
2095         (df_insn_debug_regno): Likewise.
2096         (debug_df_insn): Likewise.
2097         (df_rd_simulate_one_insn): Likewise for param 2.
2098         (df_word_lr_simulate_defs): Likewise for param 1.
2099         (df_word_lr_simulate_uses): Likewise.
2100         (df_md_simulate_one_insn): Likewise for param 2.
2101         (df_simulate_find_noclobber_defs): Likewise for param 1.
2102         (df_simulate_find_defs): Likewise.
2103         (df_simulate_defs): Likewise.
2104         (df_simulate_uses): Likewise.
2105         (df_simulate_one_insn_backwards): Likewise for param 2.
2106         (df_simulate_one_insn_forwards): Likewise.
2107         (df_uses_create): Likewise for param 2.
2108         (df_insn_create_insn_record): Likewise for param 1.
2109         (df_insn_delete): Likewise.
2110         (df_insn_rescan): Likewise.
2111         (df_insn_rescan_debug_internal): Likewise.
2112         (df_insn_change_bb): Likewise.
2113         (df_notes_rescan): Likewise.
2114         * rtl.h (remove_death): Likewise for param 2.
2115         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
2116         const rtx_insn *.
2117         * sched-int.h (reemit_notes): Strengthen param from rtx to
2118         rtx_insn *.
2119         * valtrack.h (propagate_for_debug): Likewise for param 1.
2121         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
2122         local "tmp_rtx" from const_rtx to const rtx_insn *.
2123         * combine.c (remove_death): Strengthen param "insn" from rtx to
2124         rtx_insn *.
2125         (move_deaths): Likewise for local "where_dead".
2126         * cse.c (delete_trivially_dead_insns): Introduce local
2127         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
2128         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
2129         rtx_insn *.
2130         (df_reg_defined): Likewise.
2131         (df_find_use): Likewise.
2132         (df_reg_used): Likewise.
2133         (df_dump_insn_problem_data): Strengthen param "insn" from
2134         const_rtx to const rtx_insn *.
2135         (df_dump_insn_top): Likewise.
2136         (df_dump_insn_bottom): Likewise.
2137         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
2138         (df_insn_debug_regno): Likewise.
2139         (debug_df_insn): Likewise.
2140         (DF_REF_INSN): Delete.
2141         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
2142         from rtx to rtx_insn *.
2143         (df_chain_insn_top_dump): Strengthen param "insn" from
2144         const_rtx to const rtx_insn *.
2145         (df_chain_insn_bottom_dump): Likewise.
2146         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
2147         rtx_insn *.
2148         (df_word_lr_simulate_uses): Likewise.
2149         (df_print_note): Likewise.
2150         (df_remove_dead_and_unused_notes): Likewise.
2151         (df_set_unused_notes_for_mw): Likewise.
2152         (df_set_dead_notes_for_mw): Likewise.
2153         (df_create_unused_note): Likewise.
2154         (df_simulate_find_defs): Likewise.
2155         (df_simulate_find_uses): Likewise.
2156         (df_simulate_find_noclobber_defs): Likewise.
2157         (df_simulate_defs): Likewise.
2158         (df_simulate_uses): Likewise.
2159         (df_simulate_one_insn_backwards): Likewise.
2160         (df_simulate_one_insn_forwards): Likewise.
2161         (df_md_simulate_one_insn): Likewise.
2162         * df-scan.c (df_uses_create): Likewise.
2163         (df_insn_create_insn_record): Likewise.
2164         (df_insn_delete): Likewise.
2165         (df_insn_rescan): Likewise.
2166         (df_insn_rescan_debug_internal): Likewise.
2167         (df_insn_change_bb): Likewise.
2168         (df_notes_rescan): Likewise.
2169         (df_refs_add_to_chains): Likewise.
2170         (df_insn_refs_verify): Likewise.
2171         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
2172         when invoking df_insn_delete.
2173         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
2174         (set_unique_reg_note): Add checked cast.
2175         * final.c (cleanup_subreg_operands): Likewise.
2176         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
2177         "insn" from rtx to rtx_insn *.
2178         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
2179         "last" from rtx to rtx_insn *.
2180         * ira-emit.c (change_regs_in_insn): New function.
2181         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
2182         Invoke change_regs_in_insn rather than change_regs.
2183         * ira.c (update_equiv_regs): Strengthen locals "insn",
2184         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
2185         for_each_rtx_in_insn rather than for_each_rtx.
2186         * recog.c (confirm_change_group): Add checked casts.
2187         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
2188         Add checked cast.
2189         (peep2_fill_buffer): Add checked cast.
2190         * rtlanal.c (remove_note): Likewise.
2191         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
2192         locals "next" "end" from rtx to rtx_insn *.
2194 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2196         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
2197         to rtx_insn *.
2198         (struct reg_use_data): Likewise for field "insn".
2199         (insn_cost): Likewise for param.
2200         (real_insn_for_shadow): Likewise for return type and param.
2201         (increase_insn_priority): Likewise for param 1.
2202         (debug_dependencies): Likewise for both params.
2204         * haifa-sched.c (insn_delay): Likewise for param "insn".
2205         (real_insn_for_shadow): Likewise for return type and param "insn".
2206         (update_insn_after_change): Likewise for param "insn".
2207         (recompute_todo_spec): Likewise for param "next" and locals "pro",
2208         "other".
2209         (insn_cost): Likewise for param "insn".
2210         (increase_insn_priority): Likewise.
2211         (calculate_reg_deaths): Likewise.
2212         (setup_insn_reg_pressure_info): Likewise.
2213         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
2214         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
2215         (model_recompute): Likewise.
2216         (must_restore_pattern_p): Likewise for param "next".
2217         (model_excess_cost): Likewise for param "insn".
2218         (queue_remove): Likewise.
2219         (adjust_priority): Likewise for param "prev".
2220         (update_register_pressure): Likewise for param "insn".
2221         (setup_insn_max_reg_pressure): Likewise for local "insn".
2222         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
2223         (model_add_to_schedule): Likewise.
2224         (model_reset_queue_indices): Likewise for local "insn".
2225         (unschedule_insns_until): Strengthen local "recompute_vec" from
2226         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
2227         "con" from rtx to rtx_insn *.
2228         (restore_last_backtrack_point): Likewise for both locals "x". Add
2229         checked casts.
2230         (estimate_insn_tick): Likewise for param "insn".
2231         (commit_schedule): Likewise for params "prev_head", "tail" and
2232         local "x".
2233         (verify_shadows): Likewise for locals "i1", "i2".
2234         (dump_insn_stream): Likewise for params "head", "tail" and locals
2235         "next_tail", "insn".
2236         (schedule_block): Likewise for locals "insn", "x".  Add a checked
2237         cast.
2238         (fix_inter_tick): Likewise for params "head", "tail".
2239         (create_check_block_twin): Likewise for local "jump".
2240         (haifa_change_pattern): Likewise for param "insn".
2241         (haifa_speculate_insn): Likewise.
2242         (dump_new_block_header): Likewise for params "head", "tail".
2243         (fix_jump_move): Likewise for param "jump".
2244         (move_block_after_check): Likewise.
2245         (sched_init_insn_luid): Likewise for param "insn".
2246         (sched_init_luids): Likewise for local "insn".
2247         (insn_luid): Likewise for param "insn".
2248         (init_h_i_d): Likewise.
2249         (haifa_init_h_i_d): Likewise for local "insn".
2250         (haifa_init_insn): Likewise for param "insn".
2251         * sched-deps.c (add_dependence): Likewise for local "real_pro",
2252         "other".
2253         (create_insn_reg_use): Likewise for param "insn".
2254         (setup_insn_reg_uses): Likewise.  Add a checked cast.
2255         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
2256         "tail" from rtx to rtx_insn *.
2257         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
2258         "insn", "next_tail".
2260 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2262         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
2263         from rtx to rtx_insn *.
2264         (model_add_to_schedule): Likewise for locals "start", "end",
2265         "iter".
2267 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2269         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
2270         rtx_insn *.
2271         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
2272         "to" and locals "insn", "next", "copy".  Remove now-redundant
2273         checked cast.
2275 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2277         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
2278         rtx_insn * and param 4 from rtx * to rtx_insn **.
2279         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
2280         param 2 from rtx * to rtx_insn **.
2282         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
2283         rtx_insn * and final param from rtx * to rtx_insn **.
2285         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
2286         from rtx to rtx_insn *.
2287         (try_head_merge_bb): Likewise for both locals named "move_upto".
2288         * df-problems.c (can_move_insns_across): Likewise for params
2289         "from", "to", "across_from", "across_to" and locals "insn",
2290         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
2291         rtx_insn **.
2292         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
2293         from rtx to rtx_insn *.
2294         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
2295         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
2296         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
2297         rtx_insn *.
2298         (noce_try_abs): Likewise.
2299         (noce_get_condition): Likewise for param "jump".  Strengthen param
2300         "earliest" from rtx * to rtx_insn **.
2301         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
2302         rtx_insn *.
2303         (find_cond_trap): Likewise.
2304         (dead_or_predicable): Likewise for local "earliest".
2305         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
2306         checked cast.
2307         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
2308         and local "prev".  Strengthen param "earliest" from rtx * to
2309         rtx_insn **.
2310         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
2311         Strengthen param "earliest" from rtx * to rtx_insn **.
2313 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2315         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
2316         "to" and local "insn" from rtx to rtx_insn *.
2318 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2320         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
2321         from rtx to rtx_insn *.
2322         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
2323         (code_motion_path_driver): Likewise for local "last_insn".
2324         (simplify_changed_insns): Likewise for local "insn".
2326 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2328         * rtl.h (push_to_sequence): Strengthen param from rtx to
2329         rtx_insn *.
2330         (push_to_sequence2): Likewise for both params.
2331         (delete_insns_since): Likewise for param.
2332         (reorder_insns_nobb): Likewise for all three params.
2333         (set_new_first_and_last_insn): Likewise for both params.
2335         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
2336         rtx_insn *.  Remove now-redundant cast.
2337         (set_last_insn): Likewise.
2339         * builtins.c (expand_builtin_return): Strengthen local
2340         "call_fusage" from rtx to rtx_insn *.
2341         * cfgrtl.c (create_basic_block_structure): Likewise for local
2342         "after".
2343         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
2344         "first", "last" and local "insn".
2345         (delete_insns_since): Likewise for param "from".
2346         (reorder_insns_nobb): Likewise for params "from", "to", "after"
2347         and local "x".
2348         (push_to_sequence): Likewise for param "first" and local "last".
2349         (push_to_sequence2): Likewise for params "first" and "last".
2350         * lra.c (emit_add3_insn): Likewise for local "last".
2351         (lra_emit_add): Likewise.
2352         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
2353         "last_insn".
2354         (process_address_1): Likewise for locals "insn", last".
2355         * modulo-sched.c (ps_first_note): Likewise for return type.
2356         * optabs.c (expand_binop_directly): Likewise for param "last".
2358 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2360         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
2361         to rtx_insn*.
2362         * emit-rtl.c (get_last_insn_anywhere): Likewise.
2364 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2366         * function.h (struct sequence_stack): Strengthen fields "first"
2367         and "last" from rtx to rtx_insn *.
2368         (struct emit_status): Likewise for fields "x_first_insn" and
2369         "x_last_insn".
2371         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
2372         (set_first_insn): Add checked cast.
2373         (get_last_insn): Remove now-redundant checked cast.
2374         (set_last_insn): Add checked cast.
2376         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
2377         "saved_first" and "saved_last" from rtx to rtx_insn *.
2379 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2381         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
2382         (unlink_insn_chain): Strengthen both params from rtx to
2383         rtx_insn *.
2385         * cfgrtl.c (cfg_layout_function_header): Likewise for this
2386         variable.
2387         (unlink_insn_chain): Likewise for params "first" and "last".
2388         Remove now-redundant checked cast.
2389         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
2390         (fixup_reorder_chain): Strengthen local "insn" from rtx to
2391         rtx_insn *.
2392         * emit-rtl.c (link_insn_into_chain): Likewise for all three
2393         params.
2394         (add_insn): Likewise for param "insn" and local "prev".
2395         (add_insn_after_nobb): Likewise for both params and local "next".
2396         (add_insn_before_nobb): Likewise for both params and local "prev".
2397         (add_insn_after): Rename param "after" to "uncast_after",
2398         introducing local "after" with another checked cast.
2399         (add_insn_before): Rename params "insn" and "before", giving them
2400         "uncast_" prefixes, adding the old names back using checked casts.
2401         (emit_note_after): Likewise for param "after".
2402         (emit_note_before): Likewise for param "before".
2403         (emit_label): Add a checked cast.
2405 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2407         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
2408         "insn" from rtx to rtx_insn *.
2410         * cselib.c (cselib_record_sets_hook): Likewise.
2412         * var-tracking.c (add_with_sets): Likewise, renaming back from
2413         "uncast_insn" to "insn" and eliminating the checked cast from rtx
2414         to rtx_insn *.
2416 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2418         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
2419         and "header_" from rtx to rtx_insn *.
2420         (struct basic_block_d): Likewise for field "head_" within "x"
2421         field of union basic_block_il_dependent.
2422         (BB_HEAD): Drop function...
2423         (SET_BB_HEAD): ...and this function in favor of...
2424         (BB_HEAD): ...reinstate macro.
2425         (BB_END): Drop function...
2426         (SET_BB_END): ...and this function in favor of...
2427         (BB_END): ...reinstate macro.
2428         (BB_HEADER): Drop function...
2429         (SET_BB_HEADER): ...and this function in favor of...
2430         (BB_HEADER): ...reinstate macro.
2432         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
2433         (fix_crossing_unconditional_branches): Likewise.
2434         * caller-save.c (save_call_clobbered_regs): Likewise.
2435         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
2436         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
2437         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2438         (merge_blocks_move_successor_nojumps): Likewise.
2439         (outgoing_edges_match): Update use of for_each_rtx to
2440         for_each_rtx_in_insn.
2441         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
2442         (expand_gimple_cond): Likewise.
2443         (expand_gimple_tailcall): Likewise.
2444         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
2445         SET_BB_END.
2446         (construct_exit_block): Drop use of SET_BB_END.
2447         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
2448         rtx_insn *.
2449         (delete_insn): Rename param "insn" to "uncast_insn", introducing
2450         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
2451         SET_BB_HEAD and SET_BB_END.
2452         (create_basic_block_structure): Drop use of SET_BB_HEAD and
2453         SET_BB_END.
2454         (rtl_delete_block): Drop use of SET_BB_HEAD.
2455         (rtl_split_block): Drop use of SET_BB_END.
2456         (emit_nop_for_unique_locus_between): Likewise.
2457         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
2458         (block_label): Drop use of SET_BB_HEAD.
2459         (fixup_abnormal_edges): Drop use of SET_BB_END.
2460         (record_effective_endpoints): Drop use of SET_BB_HEADER.
2461         (relink_block_chain): Likewise.
2462         (fixup_reorder_chain): Drop use of SET_BB_END.
2463         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
2464         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
2465         rtx_insn **.  Drop use of SET_BB_HEADER.
2466         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
2467         SET_BB_HEAD.
2468         (BB_HEAD): Delete this function.
2469         (SET_BB_HEAD): Likewise.
2470         (BB_END): Likewise.
2471         (SET_BB_END): Likewise.
2472         (BB_HEADER): Likewise.
2473         (SET_BB_HEADER): Likewise.
2474         * emit-rtl.c (add_insn_after):  Rename param "insn" to
2475         "uncast_insn", adding a new local "insn" and a checked cast to
2476         rtx_insn *.  Drop use of SET_BB_END.
2477         (remove_insn): Strengthen locals "next" and "prev" from rtx to
2478         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
2479         (reorder_insns): Drop use of SET_BB_END.
2480         (emit_insn_after_1): Strengthen param "first" and locals "last",
2481         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
2482         (emit_pattern_after_noloc): Add checked cast.
2483         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
2484         (restore_other_notes): Likewise.
2485         (move_insn): Likewise.
2486         (sched_extend_bb): Likewise.
2487         (fix_jump_move): Likewise.
2488         * ifcvt.c (noce_process_if_block): Likewise.
2489         (dead_or_predicable): Likewise.
2490         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
2491         * reg-stack.c (change_stack): Drop use of SET_BB_END.
2492         * sel-sched-ir.c (sel_move_insn): Likewise.
2493         * sel-sched.c (move_nop_to_previous_block): Likewise.
2495         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
2496         SET_BB_END.
2497         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2499 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2501         * basic-block.h (create_basic_block_structure): Strengthen params
2502         1 "head" and 2 "end" from rtx to rtx_insn *.
2503         * cfgrtl.c (create_basic_block_structure): Likewise.
2504         (rtl_create_basic_block): Update casts from void * to rtx to
2505         rtx_insn *, so that we can pass them as rtx_insn * to
2506         create_basic_block_structure.
2507         * sel-sched-ir.c (sel_create_basic_block): Likewise.
2509 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2511         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
2512         rtx_insn **.
2513         (check_for_inc_dec): Strengthen param "insn" from rtx to
2514         rtx_insn *.
2516         * cselib.h (cselib_process_insn): Likewise.
2518         * cselib.c (cselib_record_sets): Likewise.
2519         (cselib_process_insn): Likewise.
2521         * dse.c (struct insn_info): Likewise for field "insn".
2522         (check_for_inc_dec_1): Likewise for local "insn".
2523         (check_for_inc_dec): Likewise for param "insn".
2524         (scan_insn): Likewise.
2525         (dse_step1): Likewise for local "insn".
2527         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
2528         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
2530 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2532         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
2533         from rtx to rtx_insn *.
2534         (DEP_PRO): Delete this function and...
2535         (SET_DEP_PRO): ...this function in favor of...
2536         (DEP_PRO): ...reinstate this macro.
2537         (DEP_CON): Delete this function and...
2538         (SET_DEP_CON): ...this function in favor of...
2539         (DEP_CON): ...reinstate this old macro.
2540         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
2541         (init_dep): Likewise.
2542         (set_priorities): Likewise for both params.
2543         (sd_copy_back_deps): Likewise for params 1 and 2.
2545         * haifa-sched.c (priority): Likewise for param "insn" and local
2546         "next".
2547         (set_priorities): Likewise for params "head" and "tail" and local
2548         "insn".
2549         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
2550         local "consumer".
2551         (add_to_speculative_block): Add a checked cast.
2552         (create_check_block_twin): Drop use of SET_DEP_CON.
2553         (add_jump_dependencies): Strengthen params "insn" and "jump" from
2554         rtx to rtx_insn *.
2556         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
2557         Drop use of SET_DEP_PRO
2558         (init_dep): Strengthen params "pro" and "con" from rtx to
2559         rtx_insn *.
2560         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
2561         use of SET_DEP_CON.
2562         (DEP_PRO): Delete.
2563         (DEP_CON): Delete.
2564         (SET_DEP_PRO): Delete.
2565         (SET_DEP_CON): Delete.
2567 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2569         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
2570         from rtx to rtx_insn *.
2571         (VINSN_INSN_RTX): Eliminate rvalue function and...
2572         (SET_VINSN_INSN): ...lvalue function in favor of...
2573         (VINSN_INSN_RTX): reinstate this old macro.
2575         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
2576         in favor of VINSN_INSN_RTX.
2577         (VINSN_INSN_RTX): Delete this function.
2578         (SET_VINSN_INSN_RTX): Likewise.
2580 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2582         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
2583         (BND_TO): Delete this function and...
2584         (SET_BND_TO): ...this functions in favor of...
2585         (BND_TO): ...reinstating this macro.
2586         (struct _fence): Strengthen field "executing_insns" from
2587         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
2588         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
2589         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
2590         and param "insn" from rtx to insn_t.
2591         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
2592         rtx_insn *.
2594         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
2595         vec<rtx_insn *> .
2596         (rtx_vec_t): Likewise.
2597         (struct sched_deps_info_def): Strengthen param of "start_insn"
2598         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
2599         "note_mem_dep" callback and first param of "note_dep" callback.
2601         * haifa-sched.c (add_to_speculative_block): Strengthen param
2602         "insn" from rtx to rtx_insn *.
2603         (clear_priorities): Likewise.
2604         (calc_priorities): Likewise for local "insn".
2606         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
2607         Remove redundant checked cast.
2608         (haifa_note_mem_dep): Likewise for param "pending_insn".
2609         (haifa_note_dep): Likewise for param "elem".
2610         (note_mem_dep): Likewise for param "e".
2611         (sched_analyze_1): Add checked casts.
2612         (sched_analyze_2): Likewise.
2614         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
2615         from rtx to rtx_insn *.
2616         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
2617         from vec<rtx> * to vec<rtx_insn *> *.
2619         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
2620         scaffolding.
2621         (flist_add): Strengthen param "executing_insns" from
2622         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
2623         (advance_deps_context): Remove now-redundant checked cast.
2624         (init_fences): Replace uses of NULL_RTX with NULL.
2625         (merge_fences): Strengthen params "last_scheduled_insn" and
2626         "sched_next" from rtx to rtx_insn * and "executing_insns" from
2627         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
2628         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
2629         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
2630         an instruction, rather than doing double-duty as a pattern.
2631         (return_nop_to_pool): Update for change of insn_t.
2632         (deps_init_id): Remove now-redundant checked cast.
2633         (struct sched_scan_info_def): Strengthen param of "init_insn"
2634         callback from rtx to insn_t.
2635         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
2636         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
2637         NULL.
2638         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
2639         "end" from rtx to rtx_insn *.
2640         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
2641         (rtx insn_rtx, bool force_unique_p)
2642         (BND_TO): Delete function.
2643         (SET_BND_TO): Delete function.
2645         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
2646         rtx to rtx_insn *.
2647         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
2648         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
2649         rtx to rtx_insn *.
2650         (undo_transformations): Likewise for param "insn".
2651         (update_liveness_on_insn): Likewise.
2652         (compute_live_below_insn): Likewise for param "insn" and local
2653         "succ".
2654         (update_data_sets): Likewise for param "insn".
2655         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
2656         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
2657         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
2658         rtx_insn *.
2659         (move_cond_jump): Likewise for param "insn".
2660         (move_cond_jump): Drop use of SET_BND_TO.
2661         (compute_av_set_on_boundaries): Likewise.
2662         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
2663         (update_and_record_unavailable_insns): Strengthen local "bb_end"
2664         from rtx to rtx_insn *.
2665         (maybe_emit_renaming_copy): Likewise for param "insn".
2666         (maybe_emit_speculative_check): Likewise.
2667         (handle_emitting_transformations): Likewise.
2668         (remove_insn_from_stream): Likewise.
2669         (code_motion_process_successors): Strengthen local "succ" from rtx
2670         to insn_t.
2672 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2674         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
2675         ilist_t, not _xlist_t;
2676         (ILIST_INSN): Define in terms of new union field "insn".
2677         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
2678         _XLIST_NEXT.
2679         (struct _list_node): Add new field "insn" to the union, of type
2680         insn_t.
2681         (ilist_add): Replace macro with an inline function, requiring an
2682         insn_t.
2683         (ilist_remove): Define this macro directly in terms of
2684         _list_remove, rather than indirectly via _xlist_remove.
2685         (ilist_clear): Likewise, in terms of _list_clear rather than
2686         _xlist_clear.
2687         (ilist_is_in_p): Replace macro with an inline function, requiring
2688         an insn_t.
2689         (_list_iter_cond_insn): New function.
2690         (ilist_iter_remove): Define this macro directly in terms of
2691         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
2692         (ilist_iterator): Define directly in terms of _list_iterator
2693         rather than indirectly through _xlist_iterator.
2694         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
2695         than in terms of _FOR_EACH_X.
2696         (FOR_EACH_INSN_1): Likewise.
2698 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
2700         PR target/60606
2701         PR target/61330
2702         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
2703         DECL_HARD_REGISTER and return for invalid register specifications.
2704         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
2705         DECL_HARD_REGISTER, call expand_one_error_var.
2706         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
2707         CC_REGNUM with non-MODE_CC modes.
2708         (arm_regno_class): Return NO_REGS for PC_REGNUM.
2710 2014-08-26  Marek Polacek  <polacek@redhat.com>
2712         PR c/61271
2713         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
2715 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
2717         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
2718         qi cost; add di cost.
2719         (cortexa57_addrcost_table): Likewise.
2721 2014-08-26  Marek Polacek  <polacek@redhat.com>
2723         PR c/61271
2724         * expr.c (is_aligning_offset): Remove logical not.
2726 2014-08-26  Marek Polacek  <polacek@redhat.com>
2728         PR c/61271
2729         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
2730         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
2732 2014-08-26  Richard Biener  <rguenther@suse.de>
2734         PR tree-optimization/62175
2735         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2736         expand possibly trapping operations.
2738 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2740         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
2741         "insn" from rtx to rtx_insn *.
2742         (permute_load): Likewise for param "insn".
2743         (permute_store): Likewise.
2744         (handle_special_swappables): Likewise for local "insn".
2745         (replace_swap_with_copy): Likewise for locals "insn" and
2746         "new_insn".
2747         (rs6000_analyze_swaps): Likewise for local "insn".
2749 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2751         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
2752         to rtx_insn *.
2754 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2756         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
2757         "note_list" from rtx to rtx_insn *.
2758         (BB_NOTE_LIST): Replace this function and...
2759         (SET_BB_NOTE_LIST): ...this function with...
2760         (BB_NOTE_LIST): ...the former macro implementation.
2762         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
2763         local "from_start" from rtx to rtx_insn *.  Strengthen param
2764         "to_endp" from rtx * to rtx_insn **.
2766         * haifa-sched.c (concat_note_lists): Likewise.
2767         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
2768         BB_NOTE_LIST.
2769         (sel_restore_notes): Likewise.
2770         (move_bb_info): Likewise.
2771         (BB_NOTE_LIST): Delete this function.
2772         (SET_BB_NOTE_LIST): Delete this function.
2773         * sel-sched.c (create_block_for_bookkeeping): Eliminate
2774         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
2776 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2778         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
2779         from rtx * to rtx_insn **.
2780         (reorder2): Likewise.
2781         (dependencies_evaluation_hook): Strengthen params "head", "tail"
2782         from rtx to rtx_insn *.
2784         * doc/tm.texi: Update mechanically for above change to target.def.
2786         * sched-int.h (note_list): Strengthen this variable from rtx to
2787         rtx_insn *.
2788         (remove_notes): Likewise for both params.
2789         (restore_other_notes): Likewise for return type and first param.
2790         (struct ready_list): Strengthen field "vec" from rtx * to
2791         rtx_insn **.
2792         (struct dep_replacement): Strenghten field "insn" from rtx to
2793         rtx_insn *.
2794         (struct deps_desc): Likewise for fields "last_debug_insn",
2795         "last_args_size".
2796         (struct haifa_sched_info): Likewise for callback field
2797         "can_schedule_ready_p"'s param, for first param of "new_ready"
2798         callback field, for both params of "rank" callback field, for
2799         first field of "print_insn" callback field (with a const), for
2800         both params of "contributes_to_priority" callback, for param
2801         of "insn_finishes_block_p" callback, for fields "prev_head",
2802         "next_tail", "head", "tail", for first param of "add_remove_insn"
2803         callback, for first param of "begin_schedule_ready" callback, for
2804         both params of "begin_move_insn" callback, and for second param
2805         of "advance_target_bb" callback.
2806         (add_dependence): Likewise for params 1 and 2.
2807         (sched_analyze): Likewise for params 2 and 3.
2808         (deps_analyze_insn): Likewise for param 2.
2809         (ready_element): Likewise for return type.
2810         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
2811         (try_ready): Strenghten param from rtx to rtx_insn *.
2812         (sched_emit_insn): Likewise for return type.
2813         (record_delay_slot_pair): Likewise for params 1 and 2.
2814         (add_delay_dependencies): Likewise for param.
2815         (contributes_to_priority): Likewise for both params.
2816         (find_modifiable_mems): Likewise.
2818         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
2819         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
2820         "first_older_only_insn" from rtx to rtx_insn *.
2821         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
2822         rtx_insn **.
2824         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
2825         "last_scheduled_iter0" from rtx to rtx_insn *.
2826         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
2827         (c6x_sched_reorder_1): Strengthen param "ready" and locals
2828         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
2829         "insn" from rtx to rtx_insn *.
2830         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
2831         rtx_insn **.
2832         (c6x_sched_reorder2): Strengthen param "ready" and locals
2833         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
2834         "insn" from rtx to rtx_insn *.
2835         (c6x_variable_issue):  Add a checked cast when assigning from insn
2836         to ss.last_scheduled_iter0.
2837         (split_delayed_branch): Strengthen param "insn" and local "i1"
2838         from rtx to rtx_insn *.
2839         (split_delayed_nonbranch): Likewise.
2840         (undo_split_delayed_nonbranch): Likewise for local "insn".
2841         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
2842         "entry_after", "end_packet", "head_insn", "tail_insn",
2843         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
2844         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
2845         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
2846         but add a checked cast on loop->start_label.  Consolidate calls to
2847         avoid assigning result of gen_spkernel to "insn", now an
2848         rtx_insn *.
2850         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
2851         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
2852         rtx to rtx_insn *.
2853         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
2854         rtx_insn **.  Strengthen locals "top", "next" from rtx to
2855         rtx_insn *.
2856         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
2857         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
2858         (add_parameter_dependencies): Strengthen params "call", "head" and
2859         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
2860         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
2861         (add_dependee_for_func_arg): Likewise for param "arg" and local
2862         "insn".
2863         (ix86_dependencies_evaluation_hook): Likewise for params "head",
2864         "tail" and locals "insn", "first_arg".
2866         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
2867         for params "head", "tail" and locals "insn", "next", "next_tail".
2868         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
2869         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
2870         "insn", "lowest", "highest" from rtx to rtx_insn *.
2871         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
2872         rtx_insn **.
2873         (ia64_sched_reorder2): Likewise.
2875         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
2876         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
2877         from rtx * to rtx_insn **.
2878         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
2879         rtx_insn **.
2880         (mep_print_sched_insn): Strengthen param "insn" from rtx to
2881         rtx_insn *.
2882         (mep_sched_reorder): Strengthen param "ready" from rtx * to
2883         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
2884         to rtx_insn *.
2886         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
2887         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
2888         to rtx_insn *.
2889         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
2890         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
2891         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
2892         rtx_insn **.
2893         (vr4130_reorder): Likewise.
2894         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
2895         rtx to rtx_insn *.
2896         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
2897         rtx_insn **.
2898         (mips_sched_reorder): Likewise.
2899         (mips_sched_reorder2): Likewise.
2901         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
2903         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
2904         Strengthen local "tmp" from rtx to rtx_insn *.
2905         (rs6000_sched_reorder2): Likewise.
2907         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
2908         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
2909         (s390_sched_reorder): Strengthen param "ready" from rtx * to
2910         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
2912         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
2913         "tmp2" from rtx to rtx_insn *.
2914         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
2915         Strengthen local "insn" from rtx to rtx_insn *.
2916         (ready_reorder): Strengthen param "ready" from rtx * to
2917         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
2918         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
2919         (sh_reorder2): Likewise.
2921         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
2922         local "insn" from rtx to rtx_insn *.
2924         * haifa-sched.c (note_list): Strengthen this variable from rtx to
2925         rtx_insn *.
2926         (scheduled_insns): Strengthen this variable from vec<rtx> to
2927         vec<rtx_insn *>.
2928         (set_modulo_params): Likewise for locals "i1", "i2".
2929         (record_delay_slot_pair): Likewise for params "i1", "i2".
2930         (add_delay_dependencies): Likewise for param "insn".
2931         (cond_clobbered_p): Likewise.
2932         (recompute_todo_spec): Likewise for local "prev".
2933         (last_scheduled_insn): Likewise for this variable.
2934         (nonscheduled_insns_begin): Likewise.
2935         (model_set_excess_costs): Strengthen param "insns" from rtx * to
2936         rtx_insn **.
2937         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
2938         rtx_insn *.
2939         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
2940         Strengthen local "insn" from rtx to rtx_insn *.
2941         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
2942         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
2943         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
2944         (ready_remove_first): Likewise for return type and local "t".
2945         (ready_element): Likewise for return type.
2946         (ready_remove): Likewise for return type and local "t".
2947         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
2948         (check_clobbered_conditions): Strengthen local "x" from rtx to
2949         rtx_insn *, adding a checked cast.
2950         (schedule_insn): Likewise for param "insn".
2951         (remove_notes): Likewise for params "head", "tail" and locals
2952         "next_tail", "insn", "next".
2953         (struct haifa_saved_data): Likewise for fields
2954         "last_scheduled_insn", "nonscheduled_insns_begin".
2955         (save_backtrack_point): Update for change to field "vec" of
2956         struct ready_list.
2957         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
2958         rtx_insn **.
2959         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
2960         from rtx to rtx_insn *
2961         (resolve_dependencies): Strengthen param "insn" from rtx to
2962         rtx_insn *
2963         (restore_other_notes): Likewise for return type, for param "head"
2964         and local "note_head".
2965         (undo_all_replacements): Likewise for local "insn".
2966         (first_nonscheduled_insn): Likewise for return type and local "insn".
2967         (queue_to_ready): Likewise for local "insn", adding checked casts.
2968         (early_queue_to_ready): Likewise for local "insn".
2969         (debug_ready_list_1): Strengthen local "p" from rtx * to
2970         rtx_insn **.
2971         (move_insn): Strengthen param "insn" and local "note" from rtx to
2972         rtx_insn *
2973         (insn_finishes_cycle_p): Likewise for param "insn".
2974         (max_issue): Likewise for local "insn".
2975         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
2976         to rtx_insn **.
2977         (commit_schedule): Strengthen param "prev_head" and local "insn"
2978         from rtx to rtx_insn *
2979         (prune_ready_list): Likewise for local "insn".
2980         (schedule_block): Likewise for locals "prev_head", "head", "tail",
2981         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
2982         (set_priorities): Likewise for local "prev_head".
2983         (try_ready): Likewise for param "next".
2984         (fix_tick_ready): Likewise.
2985         (change_queue_index): Likewise.
2986         (sched_extend_ready_list): Update for change to field "vec" of
2987         struct ready_list.
2988         (generate_recovery_code): Strengthen param "insn" from rtx to
2989         rtx_insn *.
2990         (begin_speculative_block): Likewise.
2991         (create_check_block_twin): Likewise for param "insn" and locals
2992         "label", "check", "twin".  Introduce local "check_pat" to avoid
2993         "check" being used as a plain rtx before being used as an insn.
2994         (fix_recovery_deps): Add a checked cast to rtx_insn * when
2995         extracting elements from ready_list.
2996         (sched_remove_insn): Strengthen param "insn" from rtx to
2997         rtx_insn *.
2998         (sched_emit_insn): Likewise for return type.
2999         (ready_remove_first_dispatch): Likewise for return type and local
3000         "insn".
3002         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
3004         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
3005         const rtx_insn *.
3007         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
3008         from rtx to rtx_insn *.
3009         (add_dependence_list): Likewise for param "insn".  Add a checked
3010         cast.
3011         (add_dependence_list_and_free): Strengthen param "insn" from rtx
3012         to rtx_insn *.  Strengthen param "list_p" from rtx * to
3013         rtx_insn **.
3014         (chain_to_prev_insn): Strengthen param "insn" and locals
3015         "prec_nonnote", "i" from rtx to rtx_insn *.
3016         (flush_pending_lists): Likewise for param "insn".
3017         (cur_insn): Likewise for this variable.
3018         (haifa_start_insn): Add a checked cast.
3019         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
3020         (sched_analyze_reg): Likewise for param "insn".
3021         (sched_analyze_1): Likewise.
3022         (sched_analyze_2): Likewise.  Add checked casts.
3023         (sched_analyze_insn): Likewise.  Also for local "prev".
3024         (deps_analyze_insn): Likewise for param "insn".
3025         (sched_analyze): Likewise for params "head", "tail" and local "insn".
3026         (add_dependence_1): Likewise for params "insn", "elem".
3027         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
3028         (parse_add_or_inc): Likewise for param "insn".
3029         (find_inc): Likewise for local "inc_cand".
3030         (find_modifiable_mems): Likewise for params "head", "tail" and
3031         locals "insn", "next_tail".
3033         * sched-ebb.c (init_ready_list): Likewise for local "insn".
3034         (begin_schedule_ready): Likewise for param "insn".
3035         (begin_move_insn): Likewise for params "insn" and "last".
3036         (ebb_print_insn): Strengthen param "insn" from const_rtx to
3037         const rtx_insn *.
3038         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
3039         (ebb_contributes_to_priority): Likewise for params "next", "insn".
3040         (ebb_add_remove_insn): Likewise for param "insn".
3041         (advance_target_bb): Likewise.
3043         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
3044         "insn".
3045         (check_live): Likewise for param "insn".
3046         (init_ready_list): Likewise for local "insn".
3047         (can_schedule_ready_p): Likewise for param "insn".
3048         (begin_schedule_ready): Likewise.
3049         (new_ready): Likewise for param "next".
3050         (rgn_print_insn): Likewise for param "insn".
3051         (rgn_rank): Likewise for params "insn1", "insn2".
3052         (contributes_to_priority): Likewise for params "next", "insn".
3053         (rgn_insn_finishes_block_p): Likewise for param "insn".
3054         (add_branch_dependences): Likewise for params "head", "tail" and
3055         locals "insn", "last".
3056         (rgn_add_remove_insn): Likewise for param "insn".
3057         (advance_target_bb): Likewise.
3059         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
3060         const_rtx to const rtx_insn *.
3062         * sel-sched-dump.h (sel_print_insn): Likewise.
3064         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
3065         (deps_init_id): Likewise.
3067         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
3068         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
3069         rtx_insn **.
3071 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3073         * output.h (final_start_function): Strengthen param 1 from rtx to
3074         rtx_insn *.
3076         * final.c (final_start_function): Likewise, renaming back from
3077         "uncast_first" to "first", and dropping the checked cast from rtx
3078         to rtx_insn *.
3080 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3082         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
3083         * final.c (final): Likewise.  Rename param back from
3084         "uncast_first" to "first" and eliminate the checked cast from rtx
3085         to rtx_insn *.
3087 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3089         * output.h (shorten_branches): Strengthen param from rtx to
3090         rtx_insn *.
3092         * final.c (shorten_branches): Likewise, renaming param back from
3093         "uncast_first" to "first", and dropping the checked cast from rtx
3094         to rtx_insn *.
3096         * genattr.c (gen_attr): Likewise when writing out the prototype of
3097         shorten_branches.
3099 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3101         * sched-int.h (struct haifa_sched_info): Strengthen fields
3102         "prev_head" and "next_tail" from rtx to rtx_insn *.
3104 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3106         * rtl.h (rtx_jump_table_data::get_labels): New method.
3107         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
3108         with use of the new rtx_jump_table_data::get_labels method.
3109         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
3110         to rtx_jump_table_data *.  Simplify by using get_labels method.
3111         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
3112         a dyn_cast, introducing local "table", using it to replace
3113         label-lookup logic with a get_labels method call.
3114         (patch_jump_insn): Simplify using get_labels method.
3115         * dwarf2cfi.c (create_trace_edges): Likewise.
3116         * rtlanal.c (label_is_jump_target_p): Likewise.
3118 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3120         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
3121         to rtx_insn *.
3123         * emit-rtl.c (unshare_all_rtl_1): Likewise.
3124         (unshare_all_rtl_again): Likewise, also for local "p".
3126 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3128         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
3129         to rtx_insn *.
3130         * cfgrtl.c (delete_insn_and_edges): Likewise.
3132 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3134         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
3135         from rtx to rtx_insn *.
3137         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
3139 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3141         * function.c (thread_prologue_and_epilogue_insns): Likewise for
3142         locals "returnjump", "epilogue_end", "insn", "next".
3144         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
3145         "returnjump" from rtx * to rtx_insn **.
3146         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
3148 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3150         * basic-block.h (struct edge_def). Strengthen "r" within
3151         union edge_def_insns from rtx to rtx_insn *.
3153         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
3154         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
3155         rtx_insn *.
3156         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
3157         from rtx to rtx_insn *.
3158         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
3159         rtx_insn *.
3160         * postreload-gcse.c (reg_killed_on_edge): Likewise.
3161         (reg_used_on_edge): Likewise.
3162         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
3163         (gt_pch_nx): New overload for rtx_insn *&.
3164         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
3165         from rtx to rtx_insn *.
3167 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3169         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
3170         from rtx to rtx_insn *.
3171         (BB_FOOTER): Replace function with access macro.
3172         (SET_BB_FOOTER): Delete.
3174         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
3175         with BB_FOOTER.
3176         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3177         (emit_barrier_after_bb): Likewise.
3178         (record_effective_endpoints): Likewise.
3179         (relink_block_chain): Likewise.
3180         (fixup_fallthru_exit_predecessor): Likewise.
3181         (cfg_layout_duplicate_bb): Likewise.
3182         (cfg_layout_split_block): Likewise.
3183         (cfg_layout_delete_block): Likewise.
3184         (cfg_layout_merge_blocks): Likewise.
3185         (BB_FOOTER): Delete function.
3186         (SET_BB_FOOTER): Delete function.
3187         * combine.c (update_cfg_for_uncondjump): Replace uses of
3188         SET_BB_FOOTER with BB_FOOTER.
3190 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3192         * except.h (struct eh_landing_pad_d): Strengthen field
3193         "landing_pad" from rtx to rtx_code_label *.
3195         * except.c (sjlj_emit_dispatch_table): Likewise for param
3196         "dispatch_label"
3197         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
3199 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3201         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
3202         first param from rtx to rtx_insn *.
3203         * config/xtensa/xtensa.c (struct machine_function): Likewise for
3204         field "set_frame_ptr_insn".
3205         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
3206         "csend" from rtx to rtx_code_label *.
3207         (xtensa_expand_atomic): Likewise for local "csloop".
3208         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
3209         rtx_insn *.
3210         (xtensa_call_tls_desc): Likewise for return type and locals
3211         "call_insn", "insns".
3212         (xtensa_legitimize_tls_address): Likewise for local "insns".
3213         (xtensa_expand_prologue): Likewise for locals "insn", "first".
3215 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3217         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
3218         first param from rtx to rtx_insn *.
3219         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
3220         "insn".
3222 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3224         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
3225         Strengthen param 1 from rtx to rtx_insn *.
3226         (tilepro_output_cbranch): Likewise.
3227         (tilepro_adjust_insn_length): Likewise.
3228         (tilepro_final_prescan_insn): Likewise for sole param.
3230         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
3231         Likewise for local "last".
3232         (cbranch_predicted_p): Likewise for param "insn".
3233         (tilepro_output_simple_cbranch_with_opcode): Likewise.
3234         (tilepro_output_cbranch_with_opcode): Likewise.
3235         (tilepro_output_cbranch): Likewise.
3236         (frame_emit_load): Likewise for return type and locals "seq",
3237         "insn".
3238         (emit_sp_adjust): Likewise for return type and local "insn".
3239         (tilepro_expand_epilogue): Likewise for locals "last_insn",
3240         "insn".
3241         (tilepro_adjust_insn_length): Likewise for param "insn".
3242         (next_insn_to_bundle): Likewise for return type and params
3243         "r", "end".
3244         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
3245         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
3246         local "new_insns".
3247         (match_addli_pcrel): Likewise for param "insn".
3248         (replace_addli_pcrel): Likewise.
3249         (match_auli_pcrel): Likewise.
3250         (replace_auli_pcrel): Likewise.
3251         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
3252         "next_insn".
3253         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3254         "queue", "next_queue", "prev".
3255         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
3256         (tilepro_final_prescan_insn): Likewise for param "insn".
3258 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3260         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
3261         Strengthen param 1 from rtx to rtx_insn *.
3262         (tilegx_output_cbranch): Likewise.
3263         (tilegx_adjust_insn_length): Likewise.
3264         (tilegx_final_prescan_insn): Likewise for sole param.
3266         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
3267         or local "last".
3268         (cbranch_predicted_p): Likewise for param "insn".
3269         (tilegx_output_simple_cbranch_with_opcode): Likewise.
3270         (tilegx_output_cbranch_with_opcode): Likewise.
3271         (tilegx_output_cbranch): Likewise.
3272         (frame_emit_load): Likewise for return type.
3273         (set_frame_related_p): Likewise for locals "seq", "insn".
3274         (emit_sp_adjust): Likewise for return type, and for local "insn".
3275         Introduce local "pat" for use in place of "insn" where the latter
3276         isn't an instruction.
3277         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
3278         from rtx to rtx_insn *.
3279         (tilegx_adjust_insn_length): Likewise for param "insn".
3280         (next_insn_to_bundle): Likewise for return type and params "r" and
3281         "end".
3282         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
3283         "end".
3284         (replace_insns): Likewise for params "old_insn", "new_insns".
3285         (replace_mov_pcrel_step1): Likewise for param "insn" and local
3286         "new_insns".
3287         (replace_mov_pcrel_step2): Likewise.
3288         (replace_mov_pcrel_step3): Likewise.
3289         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
3290         "next_insn".
3291         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3292         "queue", "next_queue", "prev".
3293         (tilegx_output_mi_thunk): Likewise for local "insn".
3294         (tilegx_final_prescan_insn): Likewise for param "insn".
3296 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3298         * config/spu/spu.c (frame_emit_store): Strengthen return type from
3299         rtx to rtx_insn *.
3300         (frame_emit_load): Likewise.
3301         (frame_emit_add_imm): Likewise, also for local "insn".
3302         (spu_expand_prologue): Likewise for local "insn".
3303         (struct spu_bb_info): Likewise for field "prop_jump".
3304         (emit_nop_for_insn): Likewise for param "insn" and local
3305         "new_insn".
3306         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
3307         "hbr_insn".
3308         (spu_emit_branch_hint): Likewise for params "before", "branch" and
3309         locals "hint", "insn".
3310         (get_branch_target): Likewise for param "branch".
3311         (insn_clobbers_hbr): Likewise for param "insn".
3312         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
3313         locals "insn", "before_4", "before_16".
3314         (insert_hbrp): Likewise for local "insn".
3315         (spu_machine_dependent_reorg): Likewise for locals "branch",
3316         "insn", "next", "bbend".
3317         (uses_ls_unit): Likewise for param "insn".
3318         (get_pipe): Likewise.
3319         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
3320         introducing a checked cast.
3321         (spu_sched_adjust_cost): Likewise for params "insn" and
3322         "dep_insn".
3323         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
3324         (spu_sms_res_mii): Likewise.
3326 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3328         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
3329         from rtx to rtx_insn *.
3330         (output_cbranch): Likewise for param 6.
3331         (output_return): Likewise for param 1.
3332         (output_sibcall): Likewise.
3333         (output_v8plus_shift): Likewise.
3334         (output_v8plus_mult): Likewise.
3335         (output_v9branch): Likewise for param 7.
3336         (output_cbcond):  Likewise for param 3.
3338         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
3339         for local "insn".
3340         (sparc_legitimize_pic_address): Likewise.
3341         (sparc_emit_call_insn): Likewise.
3342         (emit_save_or_restore_regs): Likewise.
3343         (emit_window_save): Likewise for return type and local "insn".
3344         (sparc_expand_prologue): Likewise for local "insn".
3345         (sparc_flat_expand_prologue): Likewise.
3346         (output_return): Likewise for param "insn".
3347         (output_sibcall): Likewise for param "insn" and local "delay".
3348         (output_ubranch): Likewise for param "insn".
3349         (output_cbranch): Likewise.
3350         (output_cbcond): Likewise.
3351         (output_v9branch): Likewise.
3352         (output_v8plus_shift): Likewise.
3353         (sparc_output_mi_thunk): Likewise for local "insn".
3354         (get_some_local_dynamic_name): Likewise.
3355         (output_v8plus_mult): Likewise for param "insn".
3357 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3359         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
3360         from rtx to rtx_insn *.
3361         (output_branchy_insn): Likewise for param 3.
3362         (output_far_jump): Likewise for param 1.
3363         (final_prescan_insn): Likewise.
3364         (sh_insn_length_adjustment): Likewise for sole param.
3366         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
3367         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
3368         rtx_code_label *.
3369         (sh_emit_compare_and_set): Likewise for local "lab".
3370         (output_far_jump): Strengthen param "insn" and local "prev" from
3371         rtx to rtx_insn *.
3372         (output_branchy_insn): Likewise for param "insn" and local
3373         "next_insn".
3374         (output_ieee_ccmpeq): Likewise for param "insn".
3375         (struct label_ref_list_d): Strengthen field "label" from rtx to
3376         rtx_code_label *.
3377         (pool_node): Likewise.
3378         (pool_window_label): Likewise for this global.
3379         (add_constant): Likewise for return type and locals "lab", "new_rtx".
3380         (dump_table): Strengthen params "start", "barrier" and local
3381         "scan" from rtx to rtx_insn *.
3382         (broken_move): Likewise for param "insn".
3383         (untangle_mova): Likewise for params "first_mova" and "new_mova".
3384         Strengthen param "first_mova" from rtx * to rtx_insn **.
3385         (mova_p): Likewise for param "insn".
3386         (fixup_mova): Likewise for param "mova".
3387         (find_barrier): Likewise for return type, params "mova" and
3388         "from", and locals "barrier_before_mova", "found_barrier",
3389         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
3390         "label" from rtx to rtx_code_label *.
3391         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
3392         rtx to rtx_insn *.
3393         (sh_reorg): Likewise for locals "link", "scan", "barrier".
3394         (split_branches): Likewise for param "first" and local "insn".
3395         (final_prescan_insn): Likewise for param "insn".
3396         (sequence_insn_p): Likewise for locals "prev", "next".
3397         (sh_insn_length_adjustment): Likewise for param "insn".
3398         (sh_can_redirect_branch): Likewise for local "insn".
3399         (find_r0_life_regions): Likewise for locals "end", "insn".
3400         (sh_output_mi_thunk): Likewise for local "insns".
3402 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3404         * config/score/score.c (score_output_mi_thunk): Strengthen local
3405         "insn" from rtx to rtx_insn *.
3406         (score_prologue): Likewise.
3408 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3410         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
3411         1 from rtx to rtx_insn *.
3412         (s390_emit_jump): Likewise for return type.
3413         (s390_emit_call): Likewise.
3414         (s390_load_got): Likewise.
3416         * config/s390/s390.c (last_scheduled_insn): Likewise for this
3417         variable.
3418         (s390_match_ccmode): Likewise for param "insn".
3419         (s390_emit_jump): Likewise for return type.
3420         (s390_split_branches): Likewise for local "label".
3421         (struct constant): Strengthen field "label" from rtx to
3422         rtx_code_label *.
3423         (struct constant_pool): Likewise for field "label".  Strengthen
3424         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
3425         rtx_insn *.
3426         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
3427         insns.
3428         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
3429         (s390_end_pool): Likewise.
3430         (s390_dump_pool): Likewise for local "insn".
3431         (s390_mainpool_start): Likewise.
3432         (s390_chunkify_start): Likewise.
3433         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
3434         with insns.  Strengthen locals "label", "jump", "barrier", "next",
3435         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
3436         (s390_chunkify_finish): Strengthen local "insn" from rtx to
3437         rtx_insn *.
3438         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
3439         "jump", "label", "next_insn".
3440         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
3441         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
3442         "tbegin_insn".
3443         (s390_load_got): Likewise for return type and local "insns".
3444         (s390_save_gprs_to_fprs): Likewise for local "insn".
3445         (s390_restore_gprs_from_fprs): Likewise.
3446         (pass_s390_early_mach::execute): Likewise.
3447         (s390_emit_prologue): Likewise for local "insns".
3448         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
3449         rtx_code_label *.
3450         (s390_emit_call): Strengthen return type and local "insn" from
3451         rtx to rtx_insn *.
3452         (s390_emit_tpf_eh_return): Likewise for local "insn".
3453         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
3454         "next_insn", introducing locals "s_pat", "rpat" to allow this.
3455         (s390_fix_long_loop_prediction): Likewise for param "insn" and
3456         local "cur_insn".
3457         (s390_non_addr_reg_read_p): Likewise for param "insn".
3458         (find_cond_jump): Likewise for return type and param "insn".
3459         (s390_swap_cmp): Likewise for param "insn".
3460         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
3461         "prev_insn", "next_insn".
3462         (s390_reorg): Likewise for locals "insn", "target".
3463         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
3464         (s390_sched_variable_issue): For now, rename param "insn" to
3465         "uncast_insn", introducing a checked cast.
3466         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
3467         insn.
3468         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
3469         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
3471 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3473         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
3474         param from rtx to rtx_insn *.
3475         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
3477 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3479         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
3480         4 from rtx to rtx_insn *.
3481         (rs6000_final_prescan_insn): Likewise for first param.
3482         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
3483         local "insn".
3484         (rs6000_get_some_local_dynamic_name): Likewise.
3485         (output_cbranch): Likewise for param "insn".
3486         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
3487         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
3488         (rs6000_emit_allocate_stack): Likewise for local "insn".
3489         (load_cr_save): Likewise.
3490         (restore_saved_cr): Likewise.
3491         (restore_saved_lr): Likewise.
3492         (emit_cfa_restores): Likewise.
3493         (rs6000_output_function_epilogue): Likewise for locals "insn" and
3494         "deleted_debug_label".
3495         (rs6000_output_mi_thunk): Likewise for local "insn".
3496         (rs6000_final_prescan_insn): Likewise for param "insn".
3498 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3500         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
3501         Strengthen param "insn" from rtx to rtx_insn *.
3502         * config/picochip/picochip.c (picochip_current_prescan_insn):
3503         Likewise for this variable.
3504         (picochip_final_prescan_insn): Likewise for param "insn".
3506 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3508         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
3509         from rtx to rtx_insn *.
3510         (pa_output_indirect_call): Likewise.
3511         (pa_adjust_insn_length): Likewise.
3512         (pa_attr_length_millicode_call): Likewise.
3513         (pa_attr_length_call): Likewise.
3514         (pa_attr_length_indirect_call): Likewise.
3516         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
3517         "insn".
3518         (pa_attr_length_millicode_call): Likewise.
3519         (pa_attr_length_call): Likewise.
3520         (pa_output_call): Likewise.
3521         (pa_attr_length_indirect_call): Likewise.
3522         (pa_output_indirect_call): Likewise.
3524 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3526         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
3527         Strengthen first param from rtx to rtx_insn *.
3528         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
3529         param "insn".
3531 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3533         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
3534         type from rtx to rtx_insn *.
3535         (mips_expand_call): Likewise.
3536         (mips_adjust_insn_length): Likewise for first param.
3537         (mips_output_conditional_branch): Likewise.
3538         (mips_output_order_conditional_branch): Likewise.
3539         (mips_final_prescan_insn): Likewise.
3541         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
3542         rtx_insn * for the SEQUENCE case.
3543         (SEQ_END): Likewise.
3544         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
3545         (mips_emit_call_insn): Likewise, also for local "insn".
3546         (mips16_gp_pseudo_reg): Likewise for local "scan".
3547         (mips16_build_call_stub): Likewise for return type and for local
3548         "insn".  Introduce a new local "pattern" so that "insn" can indeed
3549         be an insn.
3550         (mips_expand_call): Strengthen return type and local "insn" from
3551         rtx to rtx_insn *.
3552         (mips_block_move_loop): Strengthen local "label" from rtx to
3553         rtx_code_label *.
3554         (mips_expand_synci_loop): Likewise for locals "label",
3555         "end_label".
3556         (mips_set_frame_expr): Strengthen local "insn" from rtx to
3557         rtx_insn *.
3558         (mips16e_collect_argument_saves): Likewise for locals "insn",
3559         "next".
3560         (mips_find_gp_ref): Likewise for param of callback for "pred"
3561         param, and for local "insn".
3562         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
3563         (mips_insn_has_flexible_gp_ref_p): Likewise.
3564         (mips_epilogue_emit_cfa_restores): Likewise for return type and
3565         local "insn".
3566         (mips_epilogue_set_cfa): Likewise for local "insn".
3567         (mips_expand_epilogue): Likewise.
3568         (mips_adjust_insn_length): Likewise for param "insn".
3569         (mips_output_conditional_branch): Likewise.
3570         (mips_output_order_conditional_branch): Likewise.
3571         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
3572         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
3573         "falu2_turn_enabled_insn".
3574         (mips_builtin_branch_and_move): Strengthen locals "true_label",
3575         "done_label" from rtx to rtx_code_label *.
3576         (struct mips16_constant): Likewise for field "label".
3577         (mips16_add_constant): Likewise for return type.
3578         (mips16_emit_constants_1): Strengthen return type and param "insn"
3579         from rtx to rtx_insn *.
3580         (mips16_emit_constants): Likewise for param "insn".
3581         (mips16_insn_length): Likewise.
3582         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
3583         to rtx_code_label *.
3584         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
3585         from rtx to rtx_insn *.
3586         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
3587         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
3588         (r10k_simplify_address): Strengthen param "insn" and local
3589         "def_insn" from rtx to rtx_insn *.
3590         (r10k_safe_address_p): Strengthen param "insn" from rtx to
3591         rtx_insn *.
3592         (r10k_needs_protection_p_1): Update target type of cast of data
3593         from to rtx to rtx_insn *.
3594         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
3595         rtx * to rtx_insn **.
3596         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
3597         rtx_insn *.
3598         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
3599         (mips_call_expr_from_insn): Likewise for param "insn".
3600         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
3601         (mips_find_pic_call_symbol): Likewise for param "insn".
3602         (mips_annotate_pic_calls): Likewise for local "insn".
3603         (mips_sim_insn): Likewise for this variable.
3604         (struct mips_sim): Likewise for field "insn" within elements of
3605         last_set array.
3606         (mips_sim_wait_reg): Likewise for param "insn".
3607         (mips_sim_wait_regs): Likewise.
3608         (mips_sim_wait_units): Likewise.
3609         (mips_sim_wait_insn): Likewise.
3610         (mips_sim_issue_insn): Likewise.
3611         (mips_sim_finish_insn): Likewise.
3612         (mips_seq_time): Likewise for param "seq" and local "insn".
3613         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
3614         locals "first", "second".
3615         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
3616         "last", "last2", "next".
3617         (mips_avoid_hazard): Likewise for params "after", "insn".
3618         (mips_reorg_process_insns): Likewise for locals "insn",
3619         "last_insn", "subinsn", "next_insn".
3620         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
3621         (mips16_split_long_branches): Likewise for locals "insn" "jump",
3622         "jump_sequence".
3623         (mips_output_mi_thunk): Likewise for local "insn".
3624         (mips_final_prescan_insn): Likewise for param "insn".
3626 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3628         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
3629         Strengthen return type and local "insns" from rtx to rtx_insn *.
3630         (microblaze_legitimize_tls_address): Likewise for local "insns".
3631         (microblaze_block_move_loop): Strengthen local "label" from rtx
3632         to rtx_code_label *.
3633         (microblaze_expand_prologue): Strengthen two locals named "insn"
3634         from rtx to rtx_insn *.
3635         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
3636         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
3637         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
3638         to rtx_code_label *.
3640 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3642         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
3643         param from rtx to rtx_insn *.
3644         (mep_reuse_lo): Likewise for third param.
3645         (mep_use_post_modify_p): Likewise for first param.
3646         (mep_core_address_length): Likewise.
3647         (mep_cop_address_length): Likewise.
3648         (mep_final_prescan_insn): Likewise.
3649         (mep_store_data_bypass_p): Likewise for both params.
3650         (mep_mul_hilo_bypass_p): Likewise.
3651         (mep_ipipe_ldc_p): Likewise for param.
3653         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
3654         (mep_rewrite_mult): Likewise.
3655         (mep_rewrite_mulsi3): Likewise.
3656         (mep_rewrite_maddsi3): Likewise.
3657         (mep_reuse_lo_p_1): Likewise.
3658         (mep_reuse_lo_p): Likewise.
3659         (mep_frame_expr): Likewise.
3660         (mep_make_parallel): Likewise for both params.
3661         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
3662         local "insn".
3663         (mep_use_post_modify_p): Likewise for param "insn".
3664         (mep_core_address_length): Likewise.
3665         (mep_cop_address_length): Likewise.
3666         (mep_reg_set_in_function): Likewise for local "insn".
3667         (mep_asm_without_operands_p): Likewise.
3668         (F): Likewise for return type and param "x".
3669         (add_constant): Likewise for local "insn".
3670         (maybe_dead_move): Likewise for return type and local "insn".
3671         (mep_expand_prologue): Likewise for local "insn".
3672         (mep_final_prescan_insn): Likewise for param "insn".
3673         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
3674         "next", "follow", "x".
3675         (mep_insert_repeat_label_last): Likewise for return type, param
3676         "last_insn", and locals "next", "prev".  Strengthen param "label"
3677         from rtx to rtx_code_label *.
3678         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
3679         rtx_insn *.
3680         (struct mep_doloop_end): Likewise for fields "insn" and
3681         "fallthrough".
3682         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
3683         Strengthen local "repeat_label" from rtx to rtx_code_label *.
3684         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
3685         rtx_insn *.
3686         (mep_invert_branch): Likewise for params "insn" and "after".
3687         (mep_reorg_erepeat): Likewise for param "insns" and locals
3688         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
3689         "l" from rtx to rtx_code_label *.
3690         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
3691         from rtx to rtx_insn *.
3692         (mep_reorg_addcombine): Likewise for param "insns" and locals
3693         "i", "n".
3694         (add_sp_insn_p): Likewise for param "insn".
3695         (mep_reorg_noframe): Likewise for param "insns" and locals
3696         "start_frame_insn", "end_frame_insn", "next".
3697         (mep_reorg): Likewise for local "insns".
3698         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
3699         cast.
3700         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
3701         (mep_mul_hilo_bypass_p): Likewise.
3702         (mep_ipipe_ldc_p): Likewise for param "insn".
3703         (mep_make_bundle): Likewise for return type, param "cop" and local
3704         "insn", splitting out the latter into a new local "seq" for when it
3705         is a SEQUENCE rather than an insn.
3706         (core_insn_p): Likewise for param "insn".
3707         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
3708         "last", "first", "note", "prev", "core_insn".
3710 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3712         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
3713         rtx to rtx_insn *.
3714         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
3715         (m68k_final_prescan_insn): Likewise for first param.
3717         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
3718         (m68k_set_frame_related): Likewise for param "insn".
3719         (output_btst): Likewise for param "insn".
3720         (m68k_final_prescan_insn): Likewise.
3721         (m68k_move_to_reg): Likewise for local "insn".
3722         (m68k_call_tls_get_addr): Likewise for local "insns".
3723         (m68k_call_m68k_read_tp): Likewise.
3724         (strict_low_part_peephole_ok): Likewise for param "first_insn".
3725         (m68k_output_mi_thunk): Likewise for local "insn".
3727 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3729         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
3730         first param from rtx to rtx_insn *.
3731         (iq2000_adjust_insn_length): Likewise.
3732         (iq2000_output_conditional_branch): Likewise.
3733         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
3734         "insn" and local "nop_insn".
3735         (iq2000_annotate_frame_insn): Likewise for param "insn".
3736         (iq2000_expand_prologue): Likewise for both locals "insn".
3737         (iq2000_adjust_insn_length): Likewise for param "insn".
3738         (iq2000_output_conditional_branch): Likewise.
3740 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3742         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
3743         "insns" from rtx to rtx_insn *.
3744         (ia64_emit_cond_move): Likewise for locals "insn", "first".
3745         (struct spill_fill_data): Likewise for field "init_after" and for
3746         elements of array field "prev_insn".
3747         (spill_restore_mem): Likewise for locals "insn", "first".
3748         (do_spill): Likewise for local "insn".
3749         (do_restore): Likewise.
3750         (ia64_expand_prologue): Likewise.
3751         (ia64_expand_epilogue): Likewise.
3752         (emit_insn_group_barriers): Likewise for locals "insn",
3753         "last_label".
3754         (emit_all_insn_group_barriers): Likewise for locals "insn",
3755         "last".
3756         (dfa_stop_insn): Likewise for this global.
3757         (dfa_pre_cycle_insn): Likewise.
3758         (ia64_nop): Likewise.
3759         (final_emit_insn_group_barriers): Likewise for locals "insn",
3760         "last".
3761         (emit_predicate_relation_info): Likewise for locals "head", "n",
3762         "insn", "b", "a".
3763         (ia64_reorg): Likewise for local "insn".
3764         (ia64_output_mi_thunk): Likewise.
3765         (expand_vec_perm_interleave_2): Likewise for local "seq".
3767 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3769         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
3770         param 1 "insn" from rtx to rtx_insn *.
3771         (ix86_use_lea_for_mov): Likewise.
3772         (ix86_avoid_lea_for_addr): Likewise.
3773         (ix86_split_lea_for_addr): Likewise.
3774         (ix86_lea_for_add_ok): Likewise.
3775         (ix86_output_call_insn): Likewise.
3777         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
3778         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
3779         (ix86_output_function_epilogue): Likewise for locals "insn",
3780         "deleted_debug_label".
3781         (legitimize_tls_address): Likewise for local "insn".
3782         (get_some_local_dynamic_name): Likewise.
3783         (increase_distance): Likewise for params "prev", "next".
3784         (distance_non_agu_define_in_bb): Likewise for params "insn",
3785         "start" and locals "prev", "next".
3786         (distance_non_agu_define): Likewise for param "insn".
3787         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
3788         locals "next", "prev".
3789         (distance_agu_use): Likewise for param "insn".
3790         (ix86_lea_outperforms): Likewise.
3791         (ix86_ok_to_clobber_flags): Likewise.
3792         (ix86_avoid_lea_for_add): Likewise.
3793         (ix86_use_lea_for_mov): Likewise.
3794         (ix86_avoid_lea_for_addr): Likewise.
3795         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
3796         (ix86_split_lea_for_addr): Likewise for param "insn".
3797         (ix86_lea_for_add_ok): Likewise for param "insn".
3798         (ix86_expand_carry_flag_compare): Likewise for local
3799         "compare_seq".
3800         (ix86_expand_int_movcc): Likewise.
3801         (ix86_output_call_insn): Likewise for param "insn".
3802         (ix86_output_call_insn): Likewise for local "i".
3803         (x86_output_mi_thunk): Introduce local "insn", using it in place
3804         of "tmp" when dealing with insns.
3805         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
3806         "start".
3807         (ix86_pad_returns): Likewise for locals "ret", "prev".
3808         (ix86_count_insn_bb): Likewise for local "insn".
3809         (ix86_pad_short_function): Likewise for locals "ret", "insn".
3810         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
3811         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
3812         (expand_vec_perm_interleave2): Likewise for local "seq".
3813         (expand_vec_perm_vperm2f128_vblend): Likewise.
3814         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
3815         call to for_each_rtx with for_each_rtx_in_insn.
3817 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3819         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
3820         "label" from rtx to rtx_code_label *.
3821         (ix86_expand_prologue): Likewise.
3822         (ix86_expand_split_stack_prologue): Likewise for locals "label",
3823         "varargs_label".
3824         (ix86_split_idivmod): Likewise for locals "end_label" and
3825         "qimode_label".
3826         (ix86_expand_branch): Likewise for local "label2".
3827         (ix86_expand_aligntest): Likewise for return type and local "label".
3828         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
3829         "top_label".
3830         (expand_movmem_epilogue): Likewise for the various locals named
3831         "label".
3832         (expand_setmem_epilogue): Likewise.
3833         (expand_small_movmem_or_setmem): Likewise for local "label".
3834         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
3835         Strengthen param "done_label" from rtx * to rtx_code_label **.
3836         Strengthen locals "loop_label" and "label" from rtx to
3837         rtx_code_label *.
3838         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
3839         Likewise for locals "loop_label", "label".
3840         (ix86_expand_set_or_movmem): Likewise for locals "label",
3841         "jump_around_label", "hot_label".
3842         (ix86_expand_strlensi_unroll_1): Likewise for locals
3843         "align_2_label", align_3_label", "align_4_label", "end_0_label",
3844         "end_2_label".
3845         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
3846         (void ix86_emit_i387_log1p): Likewise for locals "label1",
3847         "label2", "jump_label".
3848         (ix86_expand_sse_compare_and_jump): Likewise for return type and
3849         local "label".
3850         (ix86_expand_lfloorceil): Likewise for local "label".
3851         (ix86_expand_rint): Likewise.
3852         (ix86_expand_floorceildf_32): Likewise.
3853         (ix86_expand_floorceil): Likewise.
3854         (ix86_expand_rounddf_32): Likewise.
3855         (ix86_expand_trunc): Likewise.
3856         (ix86_expand_truncdf_32): Likewise.
3857         (ix86_expand_round): Likewise.
3859 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3861         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
3862         first param from rtx to rtx_insn *.
3863         (h8300_insn_length_from_table): Likewise.
3864         * config/h8300/h8300.c (F): Likewise for return type and param
3865         "x".
3866         (Fpa): Add a checked cast to rtx_insn *.
3867         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
3868         rtx_insn *.
3869         (final_prescan_insn): Likewise for param "insn".
3870         (h8300_binary_length): Likewise.
3871         (h8300_insn_length_from_table): Likewise.
3873 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3875         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
3876         Strengthen first param "insn" from rtx to rtx_insn *.
3878         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
3879         Likewise.
3880         (frame_insn): Likewise for return type.  Introduce local "insn"
3881         for use in place of local "x" for use as an rtx_insn *.
3882         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
3883         (epiphany_expand_prologue): Likewise for local "insn".
3884         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
3885         * config/epiphany/resolve-sw-modes.c
3886         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
3887         "seq".
3889 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3891         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
3892         param from rtx to rtx_insn *.
3893         (c6x_final_prescan_insn): Likewise for first param.
3895         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
3896         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
3897         (c6x_expand_compare): Strengthen local "insns" from rtx to
3898         rtx_insn *.
3899         (c6x_get_unit_specifier): Likewise for param "insn".
3900         (c6x_print_unit_specifier_field): Likewise.
3901         (c6x_final_prescan_insn): Likewise.
3902         (emit_add_sp_const): Likewise for local "insn".
3903         (c6x_expand_prologue): Likewise.
3905 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3907         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
3908         param 1 from rtx to rtx_insn *.
3909         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
3910         the various locals named "insn".
3911         (expand_epilogue_reg_restore): Likewise.
3912         (frame_related_constant_load): Likewise.
3913         (add_to_reg): Likewise.
3914         (emit_link_insn): Likewise.
3915         (do_link): Likewise.
3916         (expand_interrupt_handler_prologue): Likewise.
3917         (branch_dest): Likewise for param "branch".
3918         (asm_conditional_branch): Likewise for param "insn".
3919         (gen_one_bundle): Likewise for elements of param "slot" and local
3920         "t".
3921         (bfin_gen_bundles): Likewise for locals "insn", "next" and
3922         elements of local "slot".
3923         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3924         "queue", "next_queue", "prev".
3925         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
3926         (add_sched_insns_for_speculation): Likewise for local "insn".
3928 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3930         * config/avr/avr-protos.h (output_movqi): Strengthen first param
3931         from rtx to rtx_insn *.
3932         (output_movhi): Likewise.
3933         (output_movsisf): Likewise.
3934         (avr_out_tstsi): Likewise.
3935         (avr_out_tsthi): Likewise.
3936         (avr_out_tstpsi): Likewise.
3937         (avr_out_compare): Likewise.
3938         (avr_out_compare64): Likewise.
3939         (avr_out_movpsi): Likewise.
3940         (ashlqi3_out): Likewise.
3941         (ashlhi3_out): Likewise.
3942         (ashlsi3_out): Likewise.
3943         (ashrqi3_out): Likewise.
3944         (ashrhi3_out): Likewise.
3945         (ashrsi3_out): Likewise.
3946         (lshrqi3_out): Likewise.
3947         (lshrhi3_out): Likewise.
3948         (lshrsi3_out): Likewise.
3949         (avr_out_ashlpsi3): Likewise.
3950         (avr_out_ashrpsi3): Likewise.
3951         (avr_out_lshrpsi3): Likewise.
3952         (avr_out_fract): Likewise.
3953         (avr_out_sbxx_branch): Likewise.
3954         (avr_out_round): Likewise.
3955         (avr_out_xload): Likewise.
3956         (avr_out_movmem): Likewise.
3957         (adjust_insn_length): Likewise.
3958         (avr_out_lpm): Likewise.
3959         (reg_unused_after): Likewise.
3960         (_reg_unused_after): Likewise.
3961         (avr_jump_mode): Likewise for second param.
3962         (jump_over_one_insn): Likewise for first param.
3963         (avr_final_prescan_insn): Likewise.
3964         (out_shift_with_cnt): Likewise for second param.
3966         * config/avr/avr.c (get_sequence_length): Likewise for param
3967         "insns" and local "insn".
3968         (emit_push_byte): Likewise for local "insn".
3969         (emit_push_sfr): Likewise.
3970         (avr_prologue_setup_frame): Likewise for locals "insn",
3971         "fp_plus_insns", "sp_plus_insns".
3972         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
3973         "sp_plus_insns".
3974         (avr_jump_mode): Likewise for param "insn".
3975         (avr_final_prescan_insn): Likewise.
3976         (avr_find_unused_d_reg): Likewise.
3977         (avr_out_lpm_no_lpmx): Likewise.
3978         (avr_out_lpm): Likewise.
3979         (avr_out_xload): Likewise.
3980         (output_movqi): Likewise.
3981         (output_movhi): Likewise.
3982         (out_movqi_r_mr): Likewise.
3983         (out_movhi_r_mr): Likewise.
3984         (out_movsi_r_mr): Likewise.
3985         (out_movsi_mr_r): Likewise.
3986         (output_movsisf): Likewise.
3987         (avr_out_load_psi): Likewise.
3988         (avr_out_store_psi): Likewise.
3989         (avr_out_movpsi): Likewise.
3990         (out_movqi_mr_r): Likewise.
3991         (avr_out_movhi_mr_r_xmega): Likewise.
3992         (out_movhi_mr_r): Likewise.
3993         (compare_condition): Likewise for param "insn" and local "next".
3994         (compare_sign_p): Likewise for param "insn".
3995         (compare_diff_p): Likewise.
3996         (compare_eq_p): Likewise.
3997         (avr_out_compare): Likewise.
3998         (avr_out_compare64): Likewise.
3999         (avr_out_tsthi): Likewise.
4000         (avr_out_tstpsi): Likewise.
4001         (avr_out_tstsi): Likewise.
4002         (out_shift_with_cnt): Likewise.
4003         (ashlqi3_out): Likewise.
4004         (ashlhi3_out): Likewise.
4005         (avr_out_ashlpsi3): Likewise.
4006         (ashlsi3_out): Likewise.
4007         (ashrqi3_out): Likewise.
4008         (ashrhi3_out): Likewise.
4009         (avr_out_ashrpsi3): Likewise.
4010         (ashrsi3_out): Likewise.
4011         (lshrqi3_out): Likewise.
4012         (lshrhi3_out): Likewise.
4013         (avr_out_lshrpsi3): Likewise.
4014         (lshrsi3_out): Likewise.
4015         (avr_out_fract): Likewise.
4016         (avr_out_round): Likewise.
4017         (avr_adjust_insn_length): Likewise.
4018         (reg_unused_after): Likewise.
4019         (_reg_unused_after): Likewise.
4020         (avr_compare_pattern): Likewise.
4021         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
4022         and locals "branch1", "branch2", "insn2", "jump".
4023         (avr_reorg): Likewise for local "insn".
4024         (avr_2word_insn_p): Likewise for param "insn".
4025         (jump_over_one_insn_p): Likewise.
4026         (avr_out_sbxx_branch): Likewise.
4027         (avr_out_movmem): Likewise.
4029 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4031         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
4032         param from rtx to rtx_insn *.
4033         (thumb1_final_prescan_insn): Likewise.
4034         (thumb2_final_prescan_insn): Likewise.
4036         * config/arm/arm.c (emit_set_insn): Strengthen return type from
4037         rtx to rtx_insn *.
4038         (struct minipool_node): Likewise for field "insn".
4039         (dump_minipool): Likewise for param "scan".
4040         (create_fix_barrier): Likewise for local "from".  Strengthen local
4041         "label" from rtx to rtx_code_label *.
4042         (push_minipool_barrier): Strengthen param "insn" from rtx to
4043         rtx_insn *.
4044         (push_minipool_fix): Likewise.
4045         (note_invalid_constants): Likewise.
4046         (thumb2_reorg): Likewise for local "insn".
4047         (arm_reorg): Likewise.
4048         (thumb2_final_prescan_insn): Likewise for param
4049         "insn" and local "first_insn".
4050         (arm_final_prescan_insn): Likewise for param "insn" and locals
4051         "start_insn", "this_insn".
4052         (arm_debugger_arg_offset): Likewise for param "insn".
4053         (thumb1_emit_multi_reg_push): Likewise for return type and local
4054         "insn".
4055         (thumb1_final_prescan_insn): Likewise for param "insn".
4056         (thumb_far_jump_used_p): Likewise for local "insn".
4057         (thumb1_expand_prologue): Likewise.
4058         (arm_expand_epilogue_apcs_frame): Likewise.
4059         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
4060         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
4061         from rtx to rtx_code_label *.
4062         (arm_split_atomic_op): Likewise for local "label".
4063         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
4065 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4067         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
4068         first param from rtx to rtx_insn *.
4069         (arc_verify_short): Likewise.
4070         (arc_short_long): Likewise.
4071         (arc_need_delay): Likewise.
4073         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
4074         "target_insn".
4075         (arc_ccfsm_advance): Likewise for param "insn" and locals
4076         "start_insn", "this_insn".
4077         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
4078         (arc_ccfsm_post_advance): Likewise for param "insn".
4079         (arc_next_active_insn): Likewise for return type and param "insn".
4080         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
4081         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
4082         (output_short_suffix): Likewise for local "insn".
4083         (arc_final_prescan_insn): Likewise for param "insn".  Remove
4084         now-redundant checked cast.
4085         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
4086         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
4087         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
4088         for use where lc_set became an insn.
4089         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
4090         rtx to rtx_insn *.
4091         (arc_get_insn_variants): Likewise for local "prev".
4092         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
4093         "next".
4094         (arc_predicate_delay_insns): Likewise for local "insn".
4095         (arc_pad_return): Likewise for local "prev".  For now, add a
4096         checked cast when extracting the insn from "final_sequence".
4097         (arc_short_long): Likewise for param "insn".
4098         (arc_need_delay): Likewise for param "insn" and local "next".
4099         (arc_label_align): Likewise for locals "prev", "next".
4101 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4103         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
4104         "insn" from rtx to rtx_insn *.
4105         (alpha_gp_save_rtx): Likewise for local "seq".
4106         (alpha_instantiate_decls): Likewise for local "top".
4107         (get_some_local_dynamic_name): Likewise for local "insn".
4108         (alpha_does_function_need_gp): Likewise.
4109         (set_frame_related_p): Likewise for return type and for locals
4110         "seq" and "insn".
4111         (emit_frame_store_1): Likewise for local "insn".
4112         (alpha_expand_prologue): Likewise for locals "insn", "seq".
4113         (alpha_end_function): Likewise for local "insn".
4114         (alpha_output_mi_thunk_osf): Likewise.
4115         (alphaev4_insn_pipe): Likewise for param "insn".
4116         (alphaev5_insn_pipe): Likewise.
4117         (alphaev4_next_group): Likewise for return type and param 1
4118         "insn".
4119         (alphaev5_next_group): Likewise.
4120         (alpha_align_insns_1): Likewise for return type and param 1 of
4121         callback param "next_group", and for locals "i", "next", "prev",
4122         "where", "where2", "insn".
4124 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4126         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
4127         rather than modifying the stmt.
4129 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4131         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
4132         cgraph_state conversion.
4134 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4136         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4137         Strengthen local "insns" from rtx to rtx_insn *.
4138         (aarch64_set_frame_expr): Likewise for local "insn".
4139         (aarch64_save_or_restore_fprs): Likewise.
4140         (aarch64_save_or_restore_callee_save_registers): Likewise.
4141         (aarch64_expand_prologue): Likewise.
4142         (aarch64_expand_epilogue): Likewise.
4143         (aarch64_output_mi_thunk): Likewise.
4144         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
4145         "label2" from rtx to rtx_code_label *.
4146         (aarch64_split_atomic_op): Likewise for local "label".
4148 2014-08-25  Martin Liska  <mliska@suse.cz>
4150         * cgraph.h (symtab_node):
4151         (bool needed_p (void)): created from decide_is_symbol_needed
4152         (bool referred_to_p (void)): created from referred_to_p
4153         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
4154         * cgraph.h (cgraph_node):
4155         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
4156         (void expand (void)): created from expand_function
4157         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
4158         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
4159         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
4160         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
4161         * cgraph.h (varpool_node):
4162         (static void add (tree decl): created from varpool_add_new_variable
4163         * cgraph.h (cgraph_edge):
4164         void remove (void);
4165         (void remove_caller (void)): created from cgraph_edge_remove_caller
4166         (void remove_callee (void)): created from cgraph_edge_remove_callee
4167         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
4168           created from cgraph_set_call_stmt
4169         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
4170         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
4171         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
4172           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
4173         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
4174           created from cgraph_speculative_call_info
4175         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
4176           int freq_scale, bool update_original)): created from cgraph_clone_edge
4177         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
4178         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
4179         (bool recursive_p (void)): created from cgraph_edge_recursive_p
4180         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
4181         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
4182         (static void rebuild_references (void)): created from cgraph_rebuild_references
4183         * cgraph.h (symbol_table):
4184         (create_reference): renamed from add_reference
4185         (maybe_create_reference): renamed from maybe_add_reference
4186         (void register_symbol (symtab_node *node)): new function
4187         (void clear_asm_symbols (void)): new function
4188         (void unregister (symtab_node *node)): new function
4189         (void release_symbol (cgraph_node *node, int uid)): new function
4190         (cgraph_node * allocate_cgraph_symbol (void)): new function
4191         (void initialize (void)): created from cgraph_init
4192         (symtab_node *first_symbol (void)):new function
4193         (asm_node *first_asm_symbol (void)):new function
4194         (symtab_node *first_defined_symbol (void)):new function
4195         (varpool_node *first_variable (void)):new function
4196         (varpool_node *next_variable (varpool_node *node)):new function
4197         (varpool_node *first_static_initializer (void)):new function
4198         (varpool_node *next_static_initializer (varpool_node *node)):new function
4199         (varpool_node *first_defined_variable (void)):new function
4200         (varpool_node *next_defined_variable (varpool_node *node)):new function
4201         (cgraph_node *first_defined_function (void)):new function
4202         (cgraph_node *next_defined_function (cgraph_node *node)):new function
4203         (cgraph_node *first_function (void)):new function
4204         (cgraph_node *next_function (cgraph_node *node)):new function
4205         (cgraph_node *first_function_with_gimple_body (void)):new function
4206         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
4207         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
4208           created from symtab_remove_unreachable_nodes
4209         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
4210         (void process_new_functions (void)): created from cgraph_process_new_functions
4211         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
4212         (bool output_variables (void)): created from varpool_node::output_variables
4213         (void output_asm_statements (void)): created from output_asm_statements
4214         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
4215         (void compile (void)): created from compile
4216         (void output_weakrefs (void)): created from output_weakrefs
4217         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
4218         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
4219           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
4220         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
4221         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
4222           created from cgraph_next_function_with_gimple_body
4223         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
4224           created from cgraph_remove_edge_removal_hook
4225         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
4226           created from cgraph_add_node_removal_hook
4227         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
4228           created from cgraph_remove_node_removal_hook
4229         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
4230           created from varpool_add_node_removal_hook
4231         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
4232           created from varpool_remove_node_removal_hook
4233         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
4234           created from cgraph_add_function_insertion_hook
4235         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
4236           created from cgraph_remove_function_insertion_hook
4237         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
4238           created from varpool_add_variable_insertion_hook
4239         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
4240           created from varpool_remove_variable_insertion_hook
4241         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
4242           created from cgraph_add_edge_duplication_hook
4243         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
4244           created from cgraph_remove_edge_duplication_hook
4245         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
4246           created from cgraph_add_node_duplication_hook
4247         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
4248           created from cgraph_remove_node_duplication_hook
4249         (void call_edge_removal_hooks (cgraph_edge *e)):
4250           created from cgraph_call_edge_removal_hooks
4251         (void call_cgraph_insertion_hooks (cgraph_node *node)):
4252           created from call_function_insertion_hooks 
4253         (void call_cgraph_removal_hooks (cgraph_node *node)):
4254           created from cgraph_call_node_removal_hooks 
4255         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
4256           created from cgraph_node::call_duplication_hooks 
4257         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
4258           created from cgraph_call_edge_duplication_hooks
4259         (void call_varpool_removal_hooks (varpool_node *node)):
4260           created from varpool_call_node_removal_hooks
4261         (void call_varpool_insertion_hooks (varpool_node *node)):
4262           created from varpool_call_variable_insertion_hooks
4263         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
4264           created from insert_to_assembler_name_hash
4265         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
4266           created from unlink_from_assembler_name_hash
4267         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
4268           created from symtab_prevail_in_asm_name_hash
4269         (void symtab_initialize_asm_name_hash (void)):
4270           created from symtab_initialize_asm_name_hash
4271         (void change_decl_assembler_name (tree decl, tree name)):
4272           created from change_decl_assembler_name
4273         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
4274         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
4275           created from decl_assembler_name_hash
4276         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
4277           created from decl_assembler_name_equal
4278         (static hashval_t hash_node_by_assembler_name (const void *p)):
4279           created from hash_node_by_assembler_name
4280         (static int eq_assembler_name (const void *p1, const void *p2)):
4281           created from eq_assembler_name
4283 2014-08-25  Marek Polacek  <polacek@redhat.com>
4285         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
4287 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
4289         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
4290         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
4291         SWI1248_AVX512BW mode iterator.
4293 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
4295         PR target/62111
4296         * config/sh/predicates.md (general_extend_operand): Disable
4297         TRUNCATE before reload completes.
4299 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
4301         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
4303 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
4305         PR target/61996
4306         * config/sh/sh.opt (musermode): Allow negative form.
4307         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
4308         targets that don't support it.
4309         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
4310         Document -mno-usermode option.
4312 2014-08-24  Kito Cheng  <kito@0xlab.org>
4314         * system.h (CALLER_SAVE_PROFITABLE): Poison.
4315         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
4316         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
4317         * doc/tm.texi: Regenerate.
4319 2014-08-24  Kito Cheng  <kito@0xlab.org>
4321         * ira.c: Fix typo in comment.
4323 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
4325         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
4326         Deprecate c++1y. Change language to reflect greater confidence in C++14.
4328 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
4330         PR target/62038
4331         * config/pa/pa.c (pa_output_function_epilogue): Don't set
4332         last_address when the current function is a thunk.
4333         (pa_asm_output_mi_thunk): When we don't have named sections or they
4334         are not being used, check that thunk can reach the stub table with a
4335         short branch.
4337 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4339         * web.c (union_match_dups): Strengthen param "insn" from rtx to
4340         rtx_insn *.
4341         (pass_web::execute): Likewise for local "insn".
4343 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4345         * var-tracking.c (struct micro_operation_def): Strengthen field
4346         "insn" from rtx to rtx_insn *.
4347         (struct emit_note_data_def): Likewise.
4348         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
4349         (vt_stack_adjustments): Likewise for local "insn".
4350         (adjust_insn): Likewise for param "insn".
4351         (val_store): Likewise.
4352         (val_resolve): Likewise.
4353         (struct count_use_info): Likewise for field "insn".
4354         (log_op_type): Likewise for param "insn".
4355         (reverse_op): Likewise.
4356         (prepare_call_arguments): Likewise.
4357         (add_with_sets):  The initial param takes an insn, but we can't
4358         yet strengthen it from rtx to rtx_insn * since it's used as a
4359         cselib_record_sets_hook callback.  For now rename initial param
4360         from "insn" to "uncast_insn", and introduce a local "insn" of
4361         the stronger rtx_insn * type, with a checked cast.
4362         (compute_bb_dataflow): Strengthen local "insn" from rtx to
4363         rtx_insn *.
4364         (emit_note_insn_var_location): Likewise.
4365         (emit_notes_for_changes): Likewise.
4366         (emit_notes_for_differences): Likewise.
4367         (next_non_note_insn_var_location): Likewise for return type and
4368         for param "insn".
4369         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
4370         (vt_initialize): Likewise for local "insn".
4371         (delete_debug_insns): Likewise for locals "insn" and "next".
4373 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4375         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
4376         rtx_insn *.
4377         (mark_constant_pool): Likewise for local "insn".
4379 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4381         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
4382         rtx to rtx_insn *.
4383         (dead_debug_promote_uses): Likewise.
4384         (dead_debug_insert_temp): Likewise.
4386 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4388         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
4389         from const_rtx to const rtx_insn *.
4390         (store_killed_after): Likewise.  Strengthen locals "last", "act"
4391         from rtx to rtx_insn *.
4392         (store_killed_before): Strengthen param "insn" from const_rtx to
4393         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
4394         (find_moveable_store): Strengthen param "insn" from rtx to
4395         rtx_insn *.
4396         (compute_store_table): Likewise for local "insn".
4397         (insert_insn_start_basic_block): Likewise for param "insn" and
4398         locals "prev", "before", "insn".
4399         (insert_store): For now, add a checked cast to rtx_insn * on the
4400         result of gen_move_insn.
4401         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
4402         to rtx_insn *.
4403         (replace_store_insn): Likewise.  For now, add a checked cast to
4404         rtx_insn * on the result of gen_move_insn.
4406 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4408         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
4409         rtx_insn *.
4410         (expand_sjlj_dispatch_table): Likewise.
4412 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4414         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
4415         "insn" from rtx to rtx_insn *.
4417 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4419         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
4420         "insn" from rtx to rtx_insn *.
4421         (dup_block_and_redirect): Likewise for param 3 "before".
4423         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
4424         from rtx to rtx_insn *.
4425         (move_insn_for_shrink_wrap): Likewise.
4426         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
4427         (dup_block_and_redirect): Likewise for param "before" and local
4428         "insn".
4429         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
4430         "end".
4431         (convert_to_simple_return): Likewise for local "start".
4433         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
4434         Strengthen local "insn" from rtx to rtx_insn *, for use when
4435         invoking requires_stack_frame_p.
4437 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4439         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
4440         rtx_insn *.
4441         (speculate_expr): Likewise for locals "orig_insn_rtx",
4442         "spec_insn_rtx".
4443         (eq_transformed_insns): Likewise for locals "i1", "i2".
4444         (check_for_new_jump): Likewise for return type and local "end".
4445         (find_new_jump): Likewise for return type and local "jump".
4446         (sel_split_edge): Likewise for local "jump".
4447         (sel_create_recovery_block): Likewise.
4448         (sel_redirect_edge_and_branch_force): Likewise.
4449         (sel_redirect_edge_and_branch): Likewise.
4451 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4453         * sel-sched.c (substitute_reg_in_expr): Strengthen local
4454         "new_insn" from rtx to rtx_insn *.
4455         (create_insn_rtx_with_rhs): Likewise for return type and for local
4456         "insn_rtx".
4457         (create_insn_rtx_with_lhs): Likewise.
4458         (create_speculation_check): Likewise for local "insn_rtx".
4459         (implicit_clobber_conflict_p): Likewise for local "insn".
4460         (get_expr_cost): Likewise.
4461         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
4462         (move_cond_jump): Likewise for locals "next", "prev", "link",
4463         "head", "from", "to".
4465 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4467         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
4468         "next" from rtx to rtx_insn *.
4469         (find_conditional_protection): Likewise for local "next".
4470         (is_conditionally_protected): Likewise for local "insn1".
4471         (is_pfree): Likewise for locals "insn1", "insn2".
4473 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4475         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
4476         from rtx to rtx_insn *.
4478         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
4479         locals "insn1", "insn2" from rtx to rtx_insn *.
4480         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
4481         locals "insn", "prev", "last_jump", "next_tail".
4482         (schedule_ebb): Likewise for params "head", "tail".
4483         (schedule_ebbs): Likewise for locals "tail", "head".
4485         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
4486         to rtx_insn on "last_insn" in one of the invocations of
4487         schedule_ebb.
4489 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4491         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
4492         "elem", "insn" from rtx to rtx_insn *.
4493         (change_spec_dep_to_hard): Likewise.
4494         (get_back_and_forw_lists): Likewise for local "con".
4495         (sd_add_dep): Likewise for locals "elem", "insn".
4496         (sd_resolve_dep): Likewise for locals "pro", "con".
4497         (sd_unresolve_dep): Likewise.
4498         (sd_delete_dep): Likewise.
4499         (chain_to_prev_insn): Likewise for local "pro".
4500         (find_inc): Likewise for locals "pro", "con".
4502 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4504         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
4505         to rtx_insn *.
4506         (reg_set_between_p): Strengthen local "insn" from const_rtx to
4507         const rtx_insn *.
4508         (modified_between_p): Strengthen local "insn" from rtx to
4509         rtx_insn *.
4510         (remove_reg_equal_equiv_notes_for_regno): Likewise.
4511         (keep_with_call_p): Strengthen local "i2" from const_rtx to
4512         const rtx_insn *.
4514 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4516         * resource.c (next_insn_no_annul): Strengthen local "next" from
4517         rtx to rtx_insn *.
4518         (mark_referenced_resources): Likewise for local "insn".
4520 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4522         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
4523         to rtx_insn *.
4524         (find_reloads): Likewise for param 1.
4525         (subst_reloads): Likewise for sole param.
4526         (find_equiv_reg): Likwise for param 2.
4527         (regno_clobbered_p): Likwise for param 2.
4528         (reload): Likewise for param 1.
4530         * caller-save.c (save_call_clobbered_regs): Strengthen local
4531         "insn" from rtx to rtx_insn *.
4532         (insert_one_insn): Likewise for local "insn".
4534         * reload.c (this_insn): Likewise for this global.
4535         (find_reloads): Likewise for param "insn".
4536         (find_reloads_toplev): Likewise.
4537         (find_reloads_address): Likewise.
4538         (subst_reg_equivs): Likewise.
4539         (update_auto_inc_notes): Likewise.
4540         (find_reloads_address_1): Likewise.
4541         (find_reloads_subreg_address): Likewise.
4542         (subst_reloads): Likewise.
4543         (find_equiv_reg): Likewise, also for local "p".
4544         (regno_clobbered_p): Likewise for param "insn".
4546         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
4547         array.
4548         (spill_reg_store): Likewise for the elements of this array.
4549         (remove_init_insns): Likewise for local "equiv_insn".
4550         (will_delete_init_insn_p): Likewise for param "insn".
4551         (reload): Likewise for param ""first" and local "insn".
4552         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
4553         rtx_insn *.
4554         (calculate_elim_costs_all_insns): Likewise.
4555         (delete_caller_save_insns): Likewise.
4556         (spill_failure): Likewise for param "insn".
4557         (delete_dead_insn): Likewise.
4558         (set_label_offsets): Likewise.
4559         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
4560         "prev_insn".
4561         (elimination_costs_in_insn): Likewise for param "insn".
4562         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
4563         when referring to an insn.
4564         (set_initial_label_offsets): Likewise.
4565         (set_offsets_for_label): Strengthen param "insn" from rtx to
4566         rtx_insn *.
4567         (init_eliminable_invariants): Likewise for param "first" and local
4568         "insn".
4569         (fixup_eh_region_note): Likewise for param "insn".
4570         (reload_as_needed): Likewise for locals "prev", "insn",
4571         "old_next", "old_prev", "next".
4572         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
4573         "last".
4574         (reload_inheritance_insn): Strengthen elements of this array from
4575         rtx to rtx_insn *.
4576         (failed_reload): Likewise for param "insn".
4577         (choose_reload_regs): Likewise for local "insn".  Replace use of
4578         NULL_RTX with NULL when referring to an insn.
4579         (input_reload_insns): Strengthen elements of this array from rtx
4580         to rtx_insn *.
4581         (other_input_address_reload_insns): Likewise for this global.
4582         (other_input_reload_insns): Likewise for this global.
4583         (input_address_reload_insns): Likwise for the elements of this
4584         array.
4585         (inpaddr_address_reload_insns): Likwise for the elements of this
4586         array.
4587         (output_reload_insns): Likewise for the elements of this array.
4588         (output_address_reload_insns): Likewise for the elements of this
4589         array.
4590         (outaddr_address_reload_insns): Likewise for the elements of this
4591         array.
4592         (operand_reload_insns): Likewise for this global.
4593         (other_operand_reload_insns): Likewise for this global.
4594         (other_output_reload_insns): Likewise for the elements of this
4595         array.
4596         (new_spill_reg_store): Likewise for the elements of this
4597         array.
4598         (emit_input_reload_insns): Likewise for locals "insn", "temp".
4599         Strengthen local "where" from rtx * to rtx_insn **.
4600         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
4601         from rtx to rtx_insn *.
4602         (do_input_reload): Likewise for local "insn".
4603         (do_output_reload): Likewise for local "insn".
4604         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
4605         (emit_insn_if_valid_for_reload): Likewise for return type and local
4606         "last".  Add checked cast to rtx_insn when returning "insn" since
4607         this has been through emit_insn.
4608         (gen_reload): Strengthen return type and locals "last", "insn", "set"
4609         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
4610         returning "insn" since it's been through
4611         emit_insn_if_valid_for_reload at this point.
4612         (delete_output_reload): Strengthen param "insn" and locals
4613         "output_reload_insn", "i2" from rtx to rtx_insn *.
4614         (delete_address_reloads): Likewise for params "dead_insn",
4615         "current_insn" and locals "prev", "next".
4616         (delete_address_reloads_1): Likewise for params "dead_insn",
4617         "current_insn" and locals "prev", "i2".
4618         (inc_for_reload): Likewise for locals "last", "add_insn".
4619         (add_auto_inc_notes): Strengthen param "insn" from rtx to
4620         rtx_insn *.
4622         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
4623         param of this duplicate of the prototype from reload.h
4625 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4627         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
4628         rtx to rtx_insn *.
4629         (regstat_bb_compute_calls_crossed): Likewise.
4631 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4633         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
4634         to rtx_insn *.
4635         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
4636         with an insn.
4637         (regrename_analyze): Strengthen local "insn" from rtx to
4638         rtx_insn *.
4639         (scan_rtx_reg): Likewise for param "insn".
4640         (scan_rtx_address): Likewise.
4641         (scan_rtx): Likewise.
4642         (restore_operands): Likewise.
4643         (record_out_operands): Likewise.
4644         (build_def_use): Likewise for local "insn".  Replace use of
4645         NULL_RTX with NULL when dealing with an insn.
4647 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4649         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
4650         * reginfo.c (reg_scan): Likewise, also for local "insn".
4651         (reg_scan_mark_refs): Likewise for param "insn".
4652         (init_subregs_of_mode): Likewise for local "insn".
4654 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4656         * regcprop.c (struct queued_debug_insn_change): Strengthen field
4657         "insn" from rtx to rtx_insn *.
4658         (replace_oldest_value_reg): Likewise for param "insn".
4659         (replace_oldest_value_addr): Likewise.
4660         (replace_oldest_value_mem): Likewise.
4661         (apply_debug_insn_changes): Likewise for local "last_insn".
4662         (copyprop_hardreg_forward_1): Likewise for local "insn".
4664 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4666         * reg-stack.c (next_flags_user): Strengthen return type and param
4667         "insn" from rtx to rtx_insn *.
4668         (straighten_stack): Likewise for param "insn".
4669         (check_asm_stack_operands): Likewise.
4670         (remove_regno_note): Likewise.
4671         (emit_pop_insn): Likewise for return type, param "insn", local
4672         "pop_insn".
4673         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
4674         "limit" from rtx to rtx_insn *.
4675         (swap_to_top): Likewise for param "insn".
4676         (move_for_stack_reg): Likewise.
4677         (move_nan_for_stack_reg): Likewise.
4678         (swap_rtx_condition): Likewise.
4679         (compare_for_stack_reg): Likewise.
4680         (subst_all_stack_regs_in_debug_insn): Likewise.
4681         (subst_stack_regs_pat): Likewise, and local "insn2".
4682         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
4683         rtx_insn *.
4684         (subst_stack_regs): Likewise.
4685         (change_stack): Likewise.
4686         (convert_regs_1): Likewise for locals "insn", "next".
4688 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4690         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
4691         rtx_insn *.
4692         (combine_set_extension): Likewise for param "curr_insn".
4693         (transform_ifelse): Likewise for param "def_insn".
4694         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
4695         from vec<rtx> * to vec<rtx_insn *> *.
4696         (is_cond_copy_insn): Likewise for param "insn".
4697         (struct ext_state): Strengthen the four vec fields from vec<rtx>
4698         to vec<rtx_insn *>.
4699         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
4700         local "def_insn" from rtx to rtx_insn *.
4701         (get_sub_rtx): Likewise for param "def_insn".
4702         (merge_def_and_ext): Likewise.
4703         (combine_reaching_defs): Likewise.
4704         (add_removable_extension): Likewise for param "insn".
4705         (find_removable_extensions): Likewise for local "insn".
4706         (find_and_remove_re): Likewise for locals "curr_insn" and
4707         "def_insn".  Strengthen locals "reinsn_del_list" and
4708         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
4710 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4712         * recog.c (split_insn): Strengthen param "insn" and locals
4713         "first", "last" from rtx to rtx_insn *.
4714         (split_all_insns): Likewise for locals "insn", "next".
4715         (split_all_insns_noflow): Likewise.
4717 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4719         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
4720         const rtx_insn *.
4721         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
4722         (debug_rtx_find): Likewise for param 1 "x".
4724         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
4725         const_rtx to const rtx_insn *.  Likewise for local "insn".
4726         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
4727         (debug_rtx_find): Likewise for param 1 "x".
4728         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
4729         from const_rtx to const rtx_insn * within the appropriate cases of
4730         the switch statement.
4732         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
4733         Strengthen local "insns" from rtx to rtx_insn * since this is
4734         passed to a call to debug_rtx_list.
4736 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4738         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
4739         to rtx_insn *.
4741         * function.c (stack_protect_epilogue): Add checked cast to
4742         rtx_insn for now when invoking predict_insn_def.
4744         * predict.c (predict_insn): Strengthen param "insn" from rtx to
4745         rtx_insn *.
4746         (predict_insn_def): Likewise.
4747         (rtl_predict_edge): Likewise for local "last_insn".
4748         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
4749         const rtx_insn *.
4750         (combine_predictions_for_insn): Strengthen param "insn" from rtx
4751         to rtx_insn *.
4752         (bb_estimate_probability_locally): Likewise for local "last_insn".
4753         (expensive_function_p): Likewise for local "insn".
4755         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
4756         local "jmp", since this is used when invoking predict_insn_def.
4758 2014-08-22  Marek Polacek  <polacek@redhat.com>
4760         PR c++/62199
4761         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
4763 2014-08-22  Marek Polacek  <polacek@redhat.com>
4765         PR c/61271
4766         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
4767         a comparison in parens.
4768         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
4769         in parens.
4771 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4773         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
4774         rtx_insn *.
4776         * cprop.c (fis_get_condition): Likewise.
4778         * postreload.c (reload_cse_regs): Likewise for param "first".
4779         (reload_cse_simplify): Likewise for param "insn".
4780         (reload_cse_regs_1): Likewise for local "insn".
4781         (reload_cse_simplify_set): Likewise for param "insn".
4782         (reload_cse_simplify_operands): Likewise.
4783         (struct reg_use): Likewise for field "insn".
4784         (reload_combine_purge_insn_uses): Likewise for param "insn".
4785         (fixup_debug_insns): Likewise for params "from", "to" and local
4786         "insn".
4787         (try_replace_in_use): Likewise for local "use_insn".
4788         (reload_combine_recognize_const_pattern): Likewise for param
4789         "insn" and locals "add_moved_after_insn", "use_insn".
4790         (reload_combine_recognize_pattern): Likewise for param "insn" and
4791         local "prev".
4792         (reload_combine): Likewise for locals "insn", "prev".
4793         (reload_combine_note_use): Likewise for param "insn".
4794         (move2add_use_add2_insn): Likewise.
4795         (move2add_use_add3_insn): Likewise.
4796         (reload_cse_move2add): Likewise, also for local "next".
4797         (move2add_note_store): Likewise for local "insn".
4799 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4801         * postreload-gcse.c (struct occr): Strengthen field "insn" from
4802         rtx to rtx_insn *.
4803         (struct unoccr): Likewise.
4804         (struct modifies_mem): Likewise.
4805         (alloc_mem): Likewise for local "insn".
4806         (insert_expr_in_table): Likewise for param "insn".
4807         (dump_expr_hash_table_entry): Likewise for local "insn".
4808         (oprs_unchanged_p): Likewise for param "insn".
4809         (load_killed_in_block_p): Likewise for local "setter".
4810         (record_last_reg_set_info): Likewise for param "insn".
4811         (record_last_reg_set_info_regno): Likewise.
4812         (record_last_mem_set_info): Likewise.
4813         (record_last_set_info): Likewise for local "last_set_insn".
4814         (record_opr_changes): Likewise for param "insn".
4815         (hash_scan_set): Likewise.
4816         (compute_hash_table): Likewise for local "insn".
4817         (get_avail_load_store_reg): Likewise for param "insn".
4818         (eliminate_partially_redundant_load): Likewise, also for locals
4819         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
4820         RTX for insns.
4821         (eliminate_partially_redundant_loads): Likewise for local "insn".
4823 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4825         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
4826         rtx to rtx_insn *.
4827         (expand_binop): Likewise for locals "entry_last", "last", "insns"
4828         (expand_twoval_unop): Likewise for locals entry_last", "last".
4829         (expand_twoval_binop): Likewise.
4830         (expand_twoval_binop_libfunc): Likewise for local "insns".
4831         (widen_leading): Likewise for local "last".
4832         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
4833         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
4834         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
4835         (expand_parity): Likewise for locals "last" and "seq".
4836         (expand_ffs): Likewise for local "seq".  Strengthen local
4837         "nonzero_label" from rtx to rtx_code_label *.
4838         (expand_absneg_bit): Strengthen local "insns" from rtx to
4839         rtx_insn *.
4840         (expand_unop_direct): Likewise for local "last".
4841         (expand_unop): Likewise for locals "last", "insns".
4842         (expand_abs_nojump): Likewise for local "last".
4843         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
4844         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
4845         rtx_insn *.
4846         (expand_copysign_absneg): Strengthen local "label" from rtx to
4847         rtx_code_label *.
4848         (expand_copysign_bit): Strengthen local "insns" from rtx to
4849         rtx_insn *.
4850         (struct no_conflict_data): Likewise for fields "first", "insn".
4851         (emit_libcall_block_1): Likewise for param "insns" and locals
4852         "next", "last", "insn".
4853         (emit_libcall_block): For now, add a checked cast to rtx_insn *
4854         on "insns" when invoking emit_libcall_block_1.  Ultimately we
4855         want to strengthen insns itself.
4856         (prepare_cmp_insn): Strengthen local "last" from rtx to
4857         rtx_insn *.
4858         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
4859         (prepare_float_lib_cmp): Likewise for local "insns".
4860         (emit_conditional_move): Likewise for local "last".
4861         (emit_conditional_add): Likewise.
4862         (have_sub2_insn): Likewise for local "seq".
4863         (expand_float): Likewise for local "insns".  Strengthen locals
4864         "label", "neglabel" from rtx to rtx_code_label *.
4865         (expand_fix): Likewise for locals "last", "insn", "insns" (to
4866         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
4867         (expand_fixed_convert): Likewise for local "insns" (to
4868         rtx_insn *).
4869         (expand_sfix_optab): Likewise for local "last".
4870         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
4871         to rtx_code_label *.
4872         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
4873         from rtx to rtx_insn *.
4874         (expand_atomic_fetch_op): Likewise for local "insn".
4875         (maybe_legitimize_operand_same_code): Likewise for local "last".
4876         (maybe_legitimize_operands): Likewise.
4878 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4880         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
4881         "insn" from rtx to rtx_insn *.
4882         (ps_rtl_insn): Likewise for return type.
4883         (doloop_register_get): Likewise for params "head", "tail" and
4884         locals "insn", "first_insn_not_to_check".
4885         (schedule_reg_move): Likewise for local "this_insn".
4886         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
4887         of gen_move_insn for now.
4888         (reset_sched_times): Strengthen local "insn" from rtx to
4889         rtx_insn *.
4890         (permute_partial_schedule): Likewise.
4891         (duplicate_insns_of_cycles): Likewise for local "u_insn".
4892         (dump_insn_location): Likewise for param "insn".
4893         (loop_canon_p): Likewise for local "insn".
4894         (sms_schedule): Likewise.
4895         (print_partial_schedule): Likewise.
4896         (ps_has_conflicts): Likewise.
4898 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4900         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
4901         "tailp" from rtx * to rtx_insn **.
4903         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
4904         from rtx to rtx_insn *.
4905         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
4906         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
4907         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
4908         rtx to rtx_insn *.
4909         * modulo-sched.c (const_iteration_count): Strengthen return type
4910         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
4911         use of NULL_RTX with NULL when working with insns.
4912         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
4913         to rtx_insn *.
4914         (sms_schedule): Likewise.
4915         * sched-rgn.c (init_ready_list): Likewise, also for locals
4916         "src_head" and "src_next_tail".
4917         (compute_block_dependences): Likewise.
4918         (free_block_dependencies): Likewise.
4919         (debug_rgn_dependencies): Likewise.
4920         (free_rgn_deps): Likewise.
4921         (compute_priorities): Likewise.
4922         (schedule_region): Likewise.
4923         * sel-sched.c (find_ebb_boundaries): Likewise.
4925         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
4926         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
4928 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4930         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
4931         from rtx to rtx_insn *.
4932         (new_seginfo): Likewise for param "insn".
4933         (create_pre_exit): Likewise for locals "last_insn",
4934         "before_return_copy", "return_copy".
4935         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
4936         "mode_set".
4938 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4940         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
4941         from rtx to rtx_insn *.
4942         (lra_push_insn): Likewise for 1st param.
4943         (lra_push_insn_and_update_insn_regno_info): Likewise.
4944         (lra_pop_insn): Likewise for return type.
4945         (lra_invalidate_insn_data): Likewise for 1st param.
4946         (lra_set_insn_deleted): Likewise.
4947         (lra_delete_dead_insn): Likewise.
4948         (lra_process_new_insns): Likewise for first 3 params.
4949         (lra_set_insn_recog_data): Likewise for 1st param.
4950         (lra_update_insn_recog_data): Likewise.
4951         (lra_set_used_insn_alternative): Likewise.
4952         (lra_invalidate_insn_regno_info): Likewise.
4953         (lra_update_insn_regno_info): Likewise.
4954         (lra_former_scratch_operand_p): Likewise.
4955         (lra_eliminate_regs_1): Likewise.
4956         (lra_get_insn_recog_data): Likewise.
4958         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
4959         rtx to rtx_insn *.
4961         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
4962         "mv1" and "mv2".
4963         (substitute_within_insn): New.
4964         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
4965         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
4966         Replace call to "substitute" with call to substitute_within_insn.
4968         * lra-constraints.c (curr_insn): Strengthen from rtx to
4969         rtx_insn *.
4970         (get_equiv_with_elimination): Likewise for param "insn".
4971         (match_reload): Strengthen params "before" and "after" from rtx *
4972         to rtx_insn **.
4973         (emit_spill_move): Likewise for return type.  Add a checked cast
4974         to rtx_insn * on result of gen_move_insn for now.
4975         (check_and_process_move): Likewise for local "before".  Replace
4976         NULL_RTX with NULL when referring to insns.
4977         (process_addr_reg): Strengthen params "before" and "after" from
4978         rtx * to rtx_insn **.
4979         (insert_move_for_subreg): Likewise.
4980         (simplify_operand_subreg): Strengthen locals "before" and "after"
4981         from rtx to rtx_insn *.
4982         (process_address_1): Strengthen params "before" and "after" from
4983         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
4984         rtx to rtx_insn *.
4985         (process_address): Strengthen params "before" and "after" from
4986         rtx * to rtx_insn **.
4987         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
4988         (curr_insn_transform): Strengthen locals "before" and "after"
4989         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
4990         to insns.
4991         (loc_equivalence_callback): Update cast of "data", changing
4992         resulting type from rtx to rtx_insn *.
4993         (substitute_pseudo_within_insn): New.
4994         (inherit_reload_reg): Strengthen param "insn" from rtx to
4995         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
4996         NULL when referring to insns.  Add a checked cast to rtx_insn *
4997         when using usage_insn to invoke lra_update_insn_regno_info.
4998         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
4999         likewise for locals "restore", "save".  Add checked casts to
5000         rtx_insn * when using usage_insn to invoke
5001         lra_update_insn_regno_info and lra_process_new_insns.  Replace
5002         NULL_RTX with NULL when referring to insns.
5003         (split_if_necessary): Strengthen param "insn" from rtx to
5004         rtx_insn *.
5005         (update_ebb_live_info): Likewise for params "head", "tail" and local
5006         "prev_insn".
5007         (get_last_insertion_point): Likewise for return type and local "insn".
5008         (get_live_on_other_edges): Likewise for local "last".
5009         (inherit_in_ebb): Likewise for params "head", "tail" and locals
5010         "prev_insn", "next_insn", "restore".
5011         (remove_inheritance_pseudos): Likewise for local "prev_insn".
5012         (undo_optional_reloads): Likewise for local "insn".
5014         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
5015         "insn".
5016         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
5017         insns.
5018         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
5019         rtx_insn *.
5020         (spill_pseudos): Likewise for local "insn".
5021         (init_elimination): Likewise.
5022         (process_insn_for_elimination): Likewise for param "insn".
5024         * lra-lives.c (curr_insn): Likewise.;
5026         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
5027         (remove_pseudos): Likewise for param "insn".
5028         (spill_pseudos): Likewise for local "insn".
5029         (lra_final_code_change): Likewise for locals "insn", "curr".
5031         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
5032         (lra_set_insn_deleted): Likewise.
5033         (lra_delete_dead_insn): Likewise, and for local "prev".
5034         (new_insn_reg): Likewise for param "insn".
5035         (lra_set_insn_recog_data): Likewise.
5036         (lra_update_insn_recog_data): Likewise.
5037         (lra_set_used_insn_alternative): Likewise.
5038         (get_insn_freq): Likewise.
5039         (invalidate_insn_data_regno_info): Likewise.
5040         (lra_invalidate_insn_regno_info): Likewise.
5041         (lra_update_insn_regno_info): Likewise.
5042         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
5043         vec<rtx_insn *>.
5044         (lra_push_insn_1): Strengthen param "insn" from rtx to
5045         rtx_insn *.
5046         (lra_push_insn): Likewise.
5047         (lra_push_insn_and_update_insn_regno_info): Likewise.
5048         (lra_pop_insn): Likewise for return type and local "insn".
5049         (push_insns): Likewise for params "from", "to", and local "insn".
5050         (setup_sp_offset): Likewise for params "from", "last" and locals
5051         "before", "insn".
5052         (lra_process_new_insns): Likewise for params "insn", "before",
5053         "after" and local "last".
5054         (struct sloc): Likewise for field "insn".
5055         (lra_former_scratch_operand_p): Likewise for param "insn".
5056         (remove_scratches): Likewise for locals "insn", "last".
5057         (check_rtl): Likewise for local "insn".
5058         (add_auto_inc_notes): Likewise for param "insn".
5059         (update_inc_notes): Likewise for local "insn".
5060         (lra): Replace NULL_RTX with NULL when referring to insn.
5062 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5064         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
5065         to rtx_insn *.
5066         (resolve_reg_notes): Likewise.
5067         (resolve_simple_move): Likewise for return type, param "insn", and
5068         locals "insns", "minsn".
5069         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
5070         (resolve_use): Likewise.
5071         (resolve_debug): Likewise.
5072         (find_decomposable_shift_zext): Likewise.
5073         (resolve_shift_zext): Likewise for return type, param "insn", and
5074         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
5075         (decompose_multiword_subregs): Likewise for local "insn",
5076         "orig_insn", "decomposed_shift", "end".
5078 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5080         * basic-block.h (basic_block split_edge_and_insert): Strengthen
5081         param "insns" from rtx to rtx_insn *.
5083         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
5084         rtx to rtx_insn *.
5085         (struct iv_to_split): Likewise.
5086         (loop_exit_at_end_p): Likewise for local "insn".
5087         (split_edge_and_insert): Likewise for param "insns".
5088         (compare_and_jump_seq): Likewise for return type, param "cinsn",
5089         and locals "seq", "jump".
5090         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
5091         "branch_code"; update invocations of compare_and_jump_seq to
5092         eliminate NULL_RTX in favor of NULL.
5093         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
5094         rtx to rtx_insn *.
5095         (reset_debug_uses_in_loop): Likewise.
5096         (analyze_insn_to_expand_var): Likewise for param "insn".
5097         (analyze_iv_to_split_insn): Likewise.
5098         (analyze_insns_in_loop): Likewise for local "insn".
5099         (insert_base_initialization): Likewise for param
5100         "insn" and local "seq".
5101         (split_iv): Likewise for param "insn" and local "seq".
5102         (expand_var_during_unrolling): Likewise for param "insn".
5103         (insert_var_expansion_initialization): Likewise for local "seq".
5104         (combine_var_copies_in_loop_exit): Likewise.
5105         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
5106         "insn".
5107         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
5108         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
5109         "next".
5111 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5113         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
5114         rtx_insn *.
5115         (iv_analyze_result): Likewise.
5116         (iv_analyze_expr): Likewise.
5117         (biv_p): Likewise.
5119         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
5120         local "def_insn" from rtx to rtx_insn *.
5121         (get_biv_step_1): Likewise for local "insn".
5122         (iv_analyze_expr): Likewise for param "insn".
5123         (iv_analyze_def): Likewise for local "insn".
5124         (iv_analyze_op): Likewise for param "insn".
5125         (iv_analyze): Likewise.
5126         (iv_analyze_result): Likewise.
5127         (biv_p): Likewise.
5128         (suitable_set_for_replacement): Likewise.
5129         (simplify_using_initial_values): Likewise for local "insn".
5130         (iv_number_of_iterations): Likewise for param "insn".
5131         (check_simple_exit): Add checked cast to rtx_insn when invoking
5132         iv_number_of_iterations for now (until get_condition is
5133         strengthened).
5135         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
5136         "insn" from rtx to rtx_insn *.
5137         (analyze_insns_in_loop): Likewise for local "insn".
5139 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5141         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
5142         to rtx_insn *.
5143         (struct invariant): Likewise.
5144         (hash_invariant_expr_1): Likewise for param "insn".
5145         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
5146         (find_exits): Likewise for local "insn".
5147         (create_new_invariant): Likewise for param "insn".
5148         (check_dependencies): Likewise.
5149         (find_invariant_insn): Likewise.
5150         (record_uses): Likewise.
5151         (find_invariants_insn): Likewise.
5152         (find_invariants_bb): Likewise for local "insn".
5153         (get_pressure_class_and_nregs): Likewise for param "insn".
5154         (calculate_loop_reg_pressure): Likewise for local "insn".
5156 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5158         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
5159         to rtx_insn *.
5160         (add_test): Likewise for locals "seq", "jump".
5161         (doloop_modify): Likewise for locals "sequence", "jump_insn".
5163 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5165         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
5166         rtx_insn *.
5167         (rebuild_jump_labels_chain): Likewise for param "chain".
5169         * cfgexpand.c (pass_expand::execute): Add checked cast to
5170         rtx_insn * when calling rebuild_jump_labels_chain in region where
5171         we know e->insns.r is non-NULL.
5173         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
5174         rtx_insn *.
5175         (rebuild_jump_labels): Likewise.
5176         (rebuild_jump_labels_chain): Likewise for param "chain".
5177         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
5178         (init_label_info): Likewise for param "f".
5179         (maybe_propagate_label_ref): Likewise for params "jump_insn",
5180         "prev_nonjump_insn".
5181         (mark_all_labels): Likewise for param "f" and locals "insn",
5182         "prev_nonjump_insn".
5184 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5186         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
5187         from rtx to rtx_insn *insn.
5188         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
5189         (ira_add_allocno_copy): Likewise.
5190         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
5191         rtx to rtx_insn *.
5192         (ira_create_copy): Likewise.
5193         (ira_add_allocno_copy): Likewise.
5194         (create_bb_allocnos): Likewise for local "insn".
5195         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
5196         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
5197         process_regs_for_copy for rtx_insn * param.
5198         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
5199         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
5200         process_regs_for_copy for rtx_insn * param.
5201         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
5202         * ira-costs.c (record_reg_classes): Likewise for param "insn".
5203         (record_operand_costs): Likewise.
5204         (scan_one_insn): Likewise for return type, and for param "insn".
5205         (process_bb_for_costs): Likewise for local "insn".
5206         (process_bb_node_for_hard_reg_moves): Likewise.
5207         * ira-emit.c (struct move): Likewise for field "insn".
5208         (create_move): Eliminate use of NULL_RTX when dealing with an
5209         rtx_insn *.
5210         (emit_move_list): Strengthen return type and locals "result",
5211         "insn" from rtx to rtx_insn *insn.
5212         (emit_moves): Likewise for locals "insns", "tmp".
5213         (ira_emit): Likewise for local "insn".
5214         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
5215         "insn".
5216         (find_call_crossed_cheap_reg): Likewise.
5217         (process_bb_node_lives): Likewise for local "insn".
5218         * ira.c (decrease_live_ranges_number): Likewise.
5219         (compute_regs_asm_clobbered): Likewise.
5220         (build_insn_chain): Likewise.
5221         (find_moveable_pseudos): Likewise, also locals "def_insn",
5222         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
5223         to rtx_insn **.  Add a checked cast when assigning from
5224         "closest_use" into closest_uses array in a region where we know
5225         it's a non-NULL insn.
5226         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
5227         to rtx_insn *.
5228         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
5229         "last_interesting_insn", "uin".
5230         (move_unallocated_pseudos): Likewise for locals "def_insn",
5231         "move_insn", "newinsn".
5233 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5235         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
5236         Strengthen locals "done_label", "do_error" from rtx to
5237         rtx_code_label *.
5238         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
5239         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
5240         rtx_code_label *.
5241         (ubsan_expand_si_overflow_neg_check): Likewise for locals
5242         "done_label", "do_error" to rtx_code_label * and local  "last" to
5243         rtx_insn *.
5244         (ubsan_expand_si_overflow_mul_check): Likewise for locals
5245         "done_label", "do_error", "large_op0", "small_op0_large_op1",
5246         "one_small_one_large", "both_ops_large", "after_hipart_neg",
5247         "after_lopart_neg", "do_overflow", "hipart_different"  to
5248         rtx_code_label * and local  "last" to rtx_insn *.
5250 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5252         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
5253         "insn" and "move_insn" from rtx to rtx_insn *.
5255 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5257         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
5258         rtx_insn *.
5259         (cheap_bb_rtx_cost_p): Likewise.
5260         (first_active_insn): Likewise for return type and local "insn".
5261         (last_active_insn):  Likewise for return type and locals "insn",
5262         "head".
5263         (struct noce_if_info): Likewise for fields "jump", "insn_a",
5264         "insn_b".
5265         (end_ifcvt_sequence): Likewise for return type and locals "insn",
5266         "seq".
5267         (noce_try_move): Likewise for local "seq".
5268         (noce_try_store_flag): Likewise.
5269         (noce_try_store_flag_constants): Likewise.
5270         (noce_try_addcc): Likewise.
5271         (noce_try_store_flag_mask): Likewise.
5272         (noce_try_cmove): Likewise.
5273         (noce_try_minmax): Likewise.
5274         (noce_try_abs): Likewise.
5275         (noce_try_sign_mask): Likewise.
5276         (noce_try_bitop): Likewise.
5277         (noce_can_store_speculate_p): Likewise for local "insn".
5278         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
5279         seq".
5280         (check_cond_move_block): Likewise for local "insn".
5281         (cond_move_convert_if_block): Likewise.
5282         (cond_move_process_if_block): Likewise for locals "seq",
5283         "loc_insn".
5284         (noce_find_if_block): Likewise for local "jump".
5285         (merge_if_block): Likewise for local "last".
5286         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
5287         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
5288         (block_has_only_trap): Likewise for return type and local "trap".
5289         (find_if_case_1): Likewise for local "jump".
5290         (dead_or_predicable): Likewise for locals "head", "end", "jump",
5291         "insn".
5293 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5295         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
5296         "last_insn", "loop_end" from rtx to rtx_insn *.
5298         * hw-doloop.c (scan_loop): Likewise for local "insn".
5299         (discover_loop): Likewise for param "tail_insn".
5300         (discover_loops): Likewise for local "tail".
5302         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
5303         cast to rtx_insn * when assigning from an rtx local to a
5304         hwloop_info's "last_insn" field.
5306 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5308         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
5309         (add_delay_dependencies): Strengthen local "pro" from rtx to
5310         rtx_insn *.
5311         (recompute_todo_spec): Likewise.
5312         (dep_cost_1): Likewise for locals "insn", "used".
5313         (schedule_insn): Likewise for local "dbg".
5314         (schedule_insn): Likewise for locals "pro", "next".
5315         (unschedule_insns_until): Likewise for local "con".
5316         (restore_pattern): Likewise for local "next".
5317         (estimate_insn_tick): Likewise for local "pro".
5318         (resolve_dependencies): Likewise for local "next".
5319         (fix_inter_tick): Likewise.
5320         (fix_tick_ready): Likewise for local "pro".
5321         (add_to_speculative_block): Likewise for locals "check", "twin",
5322         "pro".
5323         (sched_extend_bb): Likewise for locals "end", "insn".
5324         (init_before_recovery): Likewise for local "x".
5325         (sched_create_recovery_block): Likewise for local "barrier".
5326         (create_check_block_twin): Likewise for local "pro".
5327         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
5328         "consumer".
5329         (unlink_bb_notes): Update for change to type of bb_header.
5330         Strengthen locals "prev", "label", "note", "next" from rtx to
5331         rtx_insn *.
5332         (clear_priorities): Likewise for local "pro".
5334 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5336         * gcse.c (struct occr): Strengthen field "insn" from rtx to
5337         rtx_insn *.
5338         (test_insn): Likewise for this global.
5339         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
5340         const rtx_insn *.
5341         (oprs_anticipatable_p): Likewise.
5342         (oprs_available_p): Likewise.
5343         (insert_expr_in_table): Strengthen param "insn" from  rtx to
5344         rtx_insn *.
5345         (hash_scan_set): Likewise.
5346         (hash_scan_clobber): Likewise.
5347         (hash_scan_call): Likewise.
5348         (hash_scan_insn): Likewise.
5349         (compute_hash_table_work): Likewise for local "insn".
5350         (process_insert_insn): Likewise for return type and local "pat".
5351         (insert_insn_end_basic_block): Likewise for locals "new_insn",
5352         "pat", "pat_end", "maybe_cc0_setter".
5353         (pre_edge_insert): Likewise for local "insn".
5354         (pre_insert_copy_insn): Likewise for param "insn".
5355         (pre_insert_copies): Likewise for local "insn".
5356         (struct set_data): Likewise for field "insn".
5357         (single_set_gcse): Likewise for param "insn".
5358         (gcse_emit_move_after): Likewise.
5359         (pre_delete): Likewise for local "insn".
5360         (update_bb_reg_pressure): Likewise for param "from" and local
5361         "insn".
5362         (should_hoist_expr_to_dom): Likewise for param "from".
5363         (hoist_code): Likewise for local "insn".
5364         (get_pressure_class_and_nregs): Likewise for param "insn".
5365         (calculate_bb_reg_pressure): Likewise for local "insn".
5366         (compute_ld_motion_mems): Likewise.
5368 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5370         * genpeep.c (main): Rename param back from "uncast_ins1" to
5371         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
5372         checked cast.
5374         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
5376 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5378         PR target/62195
5379         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
5380         documentation to state it is only for VSX operations.
5382         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
5383         constraint only active if VSX.
5385         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
5386         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
5387         (lfiwzx): Likewise.
5389 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5391         * fwprop.c (single_def_use_dom_walker::before_dom_children):
5392         Strengthen local "insn" from rtx to rtx_insn *.
5393         (use_killed_between): Likewise for param "target_insn".
5394         (all_uses_available_at): Likewise for param "target_insn" and
5395         local "next".
5396         (update_df_init): Likewise for params "def_insn", "insn".
5397         (update_df): Likewise for param "insn".
5398         (try_fwprop_subst): Likewise for param "def_insn" and local
5399         "insn".
5400         (free_load_extend): Likewise for param "insn".
5401         (forward_propagate_subreg): Likewise for param "def_insn" and
5402         local "use_insn".
5403         (forward_propagate_asm): Likewise for param "def_insn" and local
5404         "use_insn".
5405         (forward_propagate_and_simplify): Likewise for param "def_insn"
5406         and local "use_insn".
5407         (forward_propagate_into): Likewise for locals "def_insn" and
5408         "use_insn".
5410 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5412         * function.c (emit_initial_value_sets): Strengthen local "seq"
5413         from rtx to rtx_insn *.
5414         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
5415         local "seq".
5416         (instantiate_virtual_regs): Likewise for local "insn".
5417         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
5418         (reorder_blocks_1): Likewise for param "insns" and local "insn".
5419         (expand_function_end): Likewise for locals "insn" and "seq".
5420         (epilogue_done): Likewise for local "insn".
5421         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
5422         "last", "trial".
5423         (reposition_prologue_and_epilogue_notes): Likewise for locals
5424         "insn", "last", "note", "first".
5425         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
5426         (pass_match_asm_constraints::execute): Likewise for local "insn".
5428 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5430         * output.h (final_scan_insn): Strengthen return type from rtx to
5431         rtx_insn *.
5432         (final_forward_branch_p): Likewise for param.
5433         (current_output_insn): Likewise for this global.
5435         * final.c (rtx debug_insn): Likewise for this variable.
5436         (current_output_insn): Likewise.
5437         (get_attr_length_1): Rename param "insn" to "uncast_insn",
5438         adding "insn" back in as an rtx_insn * with a checked cast, so
5439         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
5440         first param.
5441         (compute_alignments): Strengthen local "label" from rtx to
5442         rtx_insn *.
5443         (shorten_branches): Rename param from "first" to "uncast_first",
5444         introducing a new local rtx_insn * "first" using a checked cast to
5445         effectively strengthen "first" from rtx to rtx_insn * without
5446         affecting the type signature.  Strengthen locals "insn", "seq",
5447         "next", "label" from rtx to rtx_insn *.
5448         (change_scope): Strengthen param "orig_insn" and local "insn" from
5449         rtx to rtx_insn *.
5450         (final_start_function): Rename param from "first" to "uncast_first",
5451         introducing a new local rtx_insn * "first" using a checked cast to
5452         effectively strengthen "first" from rtx to rtx_insn * without
5453         affecting the type signature.  Strengthen local "insn" from rtx to
5454         rtx_insn *.
5455         (dump_basic_block_info): Strengthen param "insn" from rtx to
5456         rtx_insn *.
5457         (final): Rename param from "first" to "uncast_first",
5458         introducing a new local rtx_insn * "first" using a checked cast to
5459         effectively strengthen "first" from rtx to rtx_insn * without
5460         affecting the type signature.  Strengthen locals "insn", "next"
5461         from rtx to rtx_insn *.
5462         (output_alternate_entry_point): Strengthen param "insn" from rtx to
5463         rtx_insn *.
5464         (call_from_call_insn): Strengthen param "insn" from rtx to
5465         rtx_call_insn *.
5466         (final_scan_insn): Rename param from "insn" to "uncast_insn",
5467         introducing a new local rtx_insn * "insn" using a checked cast to
5468         effectively strengthen "insn" from rtx to rtx_insn * without
5469         affecting the type signature.  Strengthen return type and locals
5470         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
5471         now-redundant checked cast to rtx_insn * from both invocations of
5472         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
5473         introducing a local "call_insn" for use when invoking
5474         call_from_call_insn.
5475         (notice_source_line): Strengthen param "insn" from rtx to
5476         rtx_insn *.
5477         (leaf_function_p): Likewise for local "insn".
5478         (final_forward_branch_p): Likewise.
5479         (leaf_renumber_regs): Likewise for param "first".
5480         (rest_of_clean_state): Likewise for locals "insn" and "next".
5481         (self_recursive_call_p): Likewise for param "insn".
5482         (collect_fn_hard_reg_usage): Likewise for local "insn".
5483         (get_call_fndecl): Likewise for param "insn".
5484         (get_call_cgraph_rtl_info): Likewise.
5485         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
5486         introducing a new local rtx_insn * "insn" using a checked cast to
5487         effectively strengthen "insn" from rtx to rtx_insn * without
5488         affecting the type signature.
5490         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
5491         cast when assigning from param "insn" to current_output_insn.
5492         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
5493         so that we can assign it back to current_output_insn.
5495 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5497         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
5498         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
5499         atmxt540s and atmxt540sreva devices.
5500         * config/avr/avr-tables.opt: Regenerate.
5501         * config/avr/t-multilib: Regenerate.
5502         * doc/avr-mmcu.texi: Regenerate.
5504 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5506         * expr.c (convert_move): Strengthen local "insns" from rtx to
5507         rtx_insn *.
5508         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
5509         "top_label" from rtx to rtx_code_label *.
5510         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
5511         rtx_insn *.
5512         (emit_single_push_insn): Likewise for locals "prev", "last".
5513         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
5514         to rtx_code_label *.
5515         (store_constructor): Likewise for locals "loop_start", "loop_end".
5516         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
5517         rtx_insn *.
5518         (expand_expr_real_2): Likewise.
5519         (expand_expr_real_1): Strengthen local "label" from rtx to
5520         rtx_code_label *.
5522 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5524         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
5525         from rtx to rtx_insn *.
5526         (store_bit_field_1): Likewise.
5527         (extract_bit_field_1): Likewise.
5528         (expand_mult_const): Likewise for local "insns".
5529         (expmed_mult_highpart): Strengthen local "label" from rtx to
5530         rtx_code_label *.
5531         (expand_smod_pow2): Likewise.
5532         (expand_sdiv_pow2): Likewise.
5533         (expand_divmod): Strengthen locals "last", "insn" from rtx to
5534         rtx_insn *.  Strengthen locals "label", "label1", "label2",
5535         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
5536         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
5537         (emit_store_flag): Likewise.
5538         (emit_store_flag_force): Strengthen local "label" from rtx to
5539         rtx_code_label *.
5540         (do_cmp_and_jump): Likewise for param "label".
5542 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5544         * explow.c (force_reg): Strengthen local "insn" from rtx to
5545         rtx_insn *.
5546         (adjust_stack_1): Likewise.
5547         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
5548         "final_label", "available_label", "space_available" from rtx to
5549         rtx_code_label *.
5550         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
5551         (anti_adjust_stack_and_probe): Likewise.
5553 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5555         * except.h (sjlj_emit_function_exit_after): Strengthen param
5556         "after" from rtx to rtx_insn *.  This is only called with
5557         result of get_last_insn (in function.c) so type-change should be
5558         self-contained.
5560         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
5561         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
5562         to rtx_insn *.  These fields are only used from except.c so this
5563         type-change should be self-contained to this patch.
5565         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
5566         local "last" from rtx to rtx_insn *.
5567         (dw2_build_landing_pads): Likewise for local "seq".
5568         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
5569         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
5570         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
5571         rtx to rtx_insn *.
5572         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
5573         to rtx_insn *.
5574         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
5575         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
5576         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
5577         referring to an insn.  Strengthen local "dispatch_label" from
5578         rtx to rtx_code_label *.
5579         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
5580         rtx_insn *.
5581         (expand_eh_return): Strengthen local "around_label" from
5582         rtx to rtx_code_label *.
5583         (convert_to_eh_region_ranges): Strengthen locals "iter",
5584         "last_action_insn", "first_no_action_insn",
5585         "first_no_action_insn_before_switch",
5586         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
5588 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5590         * dwarf2out.c (last_var_location_insn): Strengthen this variable
5591         from rtx to rtx_insn *.
5592         (cached_next_real_insn): Likewise.
5593         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
5594         working with insns.
5595         (dwarf2out_var_location): Strengthen locals "next_real",
5596         "next_note", "expected_next_loc_note", "last_start", "insn" from
5597         rtx to rtx_insn *.
5599 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5601         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
5602         from rtx to rtx_insn *.
5603         (create_pseudo_cfg): Likewise for local "insn".
5605 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5607         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
5608         from rtx to rtx_insn *.
5609         (df_bb_regno_last_def_find): Likewise.
5611         * df-problems.c (df_rd_bb_local_compute): Likewise.
5612         (df_lr_bb_local_compute): Likewise.
5613         (df_live_bb_local_compute): Likewise.
5614         (df_chain_remove_problem): Likewise.
5615         (df_chain_create_bb): Likewise.
5616         (df_word_lr_bb_local_compute): Likewise.
5617         (df_remove_dead_eq_notes): Likewise for param "insn".
5618         (df_note_bb_compute): Likewise for local "insn".
5619         (simulate_backwards_to_point): Likewise.
5620         (df_md_bb_local_compute): Likewise.
5622         * df-scan.c (df_scan_free_bb_info): Likewise.
5623         (df_scan_start_dump): Likewise.
5624         (df_scan_start_block): Likewise.
5625         (df_install_ref_incremental): Likewise for local "insn".
5626         (df_insn_rescan_all): Likewise.
5627         (df_reorganize_refs_by_reg_by_insn): Likewise.
5628         (df_reorganize_refs_by_insn_bb): Likewise.
5629         (df_recompute_luids): Likewise.
5630         (df_bb_refs_record): Likewise.
5631         (df_update_entry_exit_and_calls): Likewise.
5632         (df_bb_verify): Likewise.
5634 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5636         * ddg.h (struct ddg_node): Strengthen fields "insn" and
5637         "first_note" from rtx to rtx_insn *.
5638         (get_node_of_insn): Likewise for param 2 "insn".
5639         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
5641         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
5642         rtx_insn *.
5643         (mem_write_insn_p): Likewise.
5644         (mem_access_insn_p): Likewise.
5645         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
5646         (def_has_ccmode_p): Likewise for param "insn".
5647         (add_cross_iteration_register_deps): Likewise for locals
5648         "def_insn" and "use_insn".
5649         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
5650         (build_intra_loop_deps): Likewise for local "src_insn".
5651         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
5652         to rtx_insn *.
5653         (get_node_of_insn): Likewise for param "insn".
5655 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5657         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
5658         (deletable_insn_p): Strengthen param "insn" from rtx to
5659         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
5660         find_call_stack_args, since this is guarded by CALL_P (insn).
5661         (marked_insn_p): Strengthen param "insn" from rtx to
5662         rtx_insn *.
5663         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
5664         invoking find_call_stack_args, since this is guarded by
5665         CALL_P (insn).
5666         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
5667         rtx_insn *; we know this is an insn since this was called by
5668         mark_nonreg_stores.
5669         (mark_nonreg_stores_2): Likewise.
5670         (mark_nonreg_stores): Strengthen param "insn" from rtx to
5671         rtx_insn *.
5672         (find_call_stack_args): Strengthen param "call_insn" from rtx to
5673         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
5674         to rtx_insn *.
5675         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
5676         from rtx to rtx_insn *.
5677         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
5678         "next", "ref_insn".
5679         (delete_unmarked_insns): Likewise for locals "insn", "next".
5680         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
5681         (mark_reg_dependencies): Likewise for param "insn".
5682         (rest_of_handle_ud_dce): Likewise for local "insn".
5683         (word_dce_process_block): Likewise.
5684         (dce_process_block): Likewise.
5686 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5688         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
5689         from rtx to rtx_insn *.
5690         (struct change_cc_mode_args): Likewise for field "insn".
5691         (this_insn): Strengthen from rtx to rtx_insn *.
5692         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
5693         with insn.
5694         (validate_canon_reg): Strengthen param "insn" from rtx to
5695         rtx_insn *.
5696         (canon_reg): Likewise.
5697         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
5698         dealing with insn.
5699         (record_jump_equiv): Strengthen param "insn" from rtx to
5700         rtx_insn *.
5701         (try_back_substitute_reg): Likewise, also for locals "prev",
5702         "bb_head".
5703         (find_sets_in_insn): Likewise for param "insn".
5704         (canonicalize_insn): Likewise.
5705         (cse_insn): Likewise.  Add a checked cast.
5706         (invalidate_from_clobbers): Likewise for param "insn".
5707         (invalidate_from_sets_and_clobbers): Likewise.
5708         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
5709         dealing with insn.
5710         (cse_prescan_path): Strengthen local "insn" from rtx to
5711         rtx_insn *.
5712         (cse_extended_basic_block): Likewise for locals "insn" and
5713         "prev_insn".
5714         (cse_main): Likewise for param "f".
5715         (check_for_label_ref): Likewise for local "insn".
5716         (set_live_p): Likewise for second param ("insn").
5717         (insn_live_p): Likewise for first param ("insn") and for local
5718         "next".
5719         (cse_change_cc_mode_insn): Likewise for first param "insn".
5720         (cse_change_cc_mode_insns): Likewise for first and second params
5721         "start" and "end".
5722         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
5723         and "end".
5724         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
5725         "cc_src_insn".
5727 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5728             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5729             Anna Tikhonova  <anna.tikhonova@intel.com>
5730             Ilya Tocar  <ilya.tocar@intel.com>
5731             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5732             Ilya Verbin  <ilya.verbin@intel.com>
5733             Kirill Yukhin  <kirill.yukhin@intel.com>
5734             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5736         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
5737         New.
5738         * config/i386/sse.md
5739         (define_mode_iterator VI248_AVX2): Delete.
5740         (define_mode_iterator VI2_AVX2_AVX512BW): New.
5741         (define_mode_iterator VI48_AVX2): Ditto.
5742         (define_insn <shift_insn><mode>3): Delete.
5743         (define_insn "<shift_insn><mode>3<mask_name>" with
5744         VI2_AVX2_AVX512BW): New.
5745         (define_insn "<shift_insn><mode>3<mask_name>" with
5746         VI48_AVX2): Ditto.
5748 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5749             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5750             Anna Tikhonova  <anna.tikhonova@intel.com>
5751             Ilya Tocar  <ilya.tocar@intel.com>
5752             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5753             Ilya Verbin  <ilya.verbin@intel.com>
5754             Kirill Yukhin  <kirill.yukhin@intel.com>
5755             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5757         * config/i386/sse.md
5758         (define_mode_iterator VI4F_BRCST32x2): New.
5759         (define_mode_attr 64x2_mode): Ditto.
5760         (define_mode_attr 32x2mode): Ditto.
5761         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
5762         with VI4F_BRCST32x2): Ditto.
5763         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
5764         with V16FI mode iterator): Ditto.
5765         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
5766         with V16FI): Ditto.
5767         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
5768         with VI8F_BRCST64x2): Ditto.
5770 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5771             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5772             Anna Tikhonova  <anna.tikhonova@intel.com>
5773             Ilya Tocar  <ilya.tocar@intel.com>
5774             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5775             Ilya Verbin  <ilya.verbin@intel.com>
5776             Kirill Yukhin  <kirill.yukhin@intel.com>
5777             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5779         * config/i386/sse.md
5780         (define_mode_iterator VI8_AVX512VL): New.
5781         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
5783 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5785         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
5786         (define_mode_iterator V48_AVX512VL): New.
5787         (define_mode_iterator V12_AVX512VL): Ditto.
5788         (define_insn <avx512>_load<mode>_mask): Split into two similar
5789         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
5790         Refactor output template.
5791         (define_insn "<avx512>_store<mode>_mask"): Ditto.
5793 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5795         * cprop.c (struct occr): Strengthen field "insn" from rtx to
5796         rtx_insn *.
5797         (reg_available_p): Likewise for param "insn".
5798         (insert_set_in_table): Likewise.
5799         (hash_scan_set): Likewise.
5800         (hash_scan_insn): Likewise.
5801         (make_set_regs_unavailable): Likewise.
5802         (compute_hash_table_work): Likewise for local "insn".
5803         (reg_not_set_p): Strengthen param "insn" from const_rtx to
5804         const rtx_insn *.
5805         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
5806         (try_replace_reg): Likewise.
5807         (find_avail_set): Likewise.
5808         (cprop_jump): Likewise for params "setcc", "jump".
5809         (constprop_register): Likewise for param "insn".
5810         (cprop_insn): Likewise.
5811         (do_local_cprop): Likewise.
5812         (local_cprop_pass): Likewise for local "insn".
5813         (bypass_block): Likewise for params "setcc" and "jump".
5814         (bypass_conditional_jumps): Likewise for locals "setcc" and
5815         "insn".
5816         (one_cprop_pass): Likewise for local "insn".
5818 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5820         * compare-elim.c (struct comparison_use): Strengthen field "insn"
5821         from rtx to rtx_insn *.
5822         (struct comparison): Likewise, also for field "prev_clobber".
5823         (conforming_compare): Likewise for param "insn".
5824         (arithmetic_flags_clobber_p): Likewise.
5825         (find_flags_uses_in_insn): Likewise.
5826         (find_comparison_dom_walker::before_dom_children): Likewise for
5827         locals "insn", "next", "last_clobber".
5828         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
5830 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5832         * combine-stack-adj.c (struct csa_reflist): Strengthen field
5833         "insn" from rtx to rtx_insn *.
5834         (single_set_for_csa): Likewise for param "insn".
5835         (record_one_stack_ref): Likewise.
5836         (try_apply_stack_adjustment): Likewise.
5837         (struct record_stack_refs_data): Likewise for field "insn".
5838         (maybe_move_args_size_note): Likewise for params "last" and "insn".
5839         (prev_active_insn_bb): Likewise for return type and param "insn".
5840         (next_active_insn_bb): Likewise.
5841         (force_move_args_size_note): Likewise for params "prev" and "last"
5842         and locals "test", "next_candidate", "prev_candidate".
5843         (combine_stack_adjustments_for_block): Strengthen locals
5844         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
5845         rtx_insn *.
5847 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
5849         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
5850         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
5851         (subst_insn): Likewise for this variable.
5852         (added_links_insn): Likewise.
5853         (struct insn_link): Likewise for field "insn".
5854         (alloc_insn_link): Likewise for param "insn".
5855         (struct undobuf): Likewise for field "other_insn".
5856         (find_single_use): Likewise for param "insn" and local "next".
5857         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
5858         (delete_noop_moves): Likewise for locals "insn", "next".
5859         (create_log_links): Likewise for locals "insn", "use_insn".
5860         Strengthen local "next_use" from rtx * to rtx_insn **.
5861         (insn_a_feeds_b): Likewise for params "a", "b".
5862         (combine_instructions): Likewise for param "f" and locals "insn",
5863         "next", "prev", "first", "last_combined_insn", "link", "link1",
5864         "temp".  Replace use of NULL_RTX with NULL when referring to
5865         insns.
5866         (setup_incoming_promotions): Likewise for param "first"
5867         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
5868         (can_combine_p): Likewise for params "insn", "i3", "pred",
5869         "pred2", "succ", "succ2" and for local "p".
5870         (combinable_i3pat): Likewise for param "i3".
5871         (cant_combine_insn_p): Likewise for param "insn".
5872         (likely_spilled_retval_p): Likewise.
5873         (adjust_for_new_dest): Likewise.
5874         (update_cfg_for_uncondjump): Likewise, also for local "insn".
5875         (try_combine): Likewise for return type and for params "i3", "i2",
5876         "i1", "i0", "last_combined_insn", and for locals "insn",
5877         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
5878         "i0_insn".  Eliminate local "tem" in favor of new locals
5879         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
5880         checked cast for now to rtx_insn * on the return type of
5881         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
5882         insns.
5883         (find_split_point): Strengthen param "insn" from rtx to
5884         rtx_insn *.
5885         (simplify_set): Likewise for local "other_insn".
5886         (recog_for_combine): Likewise for param "insn".
5887         (record_value_for_reg): Likewise.
5888         (record_dead_and_set_regs_1): Likewise for local
5889         "record_dead_insn".
5890         (record_dead_and_set_regs): Likewise for param "insn".
5891         (record_promoted_value): Likewise.
5892         (check_promoted_subreg): Likewise.
5893         (get_last_value_validate): Likewise.
5894         (reg_dead_at_p): Likewise.
5895         (move_deaths): Likewise for param "to_insn".
5896         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
5897         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
5898         in favor of new locals "tem_note" and "tem_insn", the latter being
5899         an rtx_insn *.
5900         (distribute_links): Strengthen locals "place", "insn" from rtx to
5901         rtx_insn *.
5903 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
5905         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
5906         than a const_rtx.
5907         (can_delete_label_p): Require a const rtx_code_label * rather than
5908         a const_rtx.
5909         (delete_insn): Add checked cast to rtx_code_label * when we know
5910         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
5911         rtx to rtx_insn *.
5912         (delete_insn_chain): Strengthen locals "prev" and "current" from
5913         rtx to rtx_insn *.  Add a checked cast when assigning from
5914         "finish" (strengthening the params will come later).  Add a
5915         checked cast to rtx_note * in region where we know
5916         NOTE_P (current).
5917         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
5918         rtx_insn *.
5919         (compute_bb_for_insn): Likewise.
5920         (free_bb_for_insn): Likewise for local "insn".
5921         (compute_bb_for_insn): Likewise.
5922         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
5923         local "insn" from rtx to rtx_insn *
5924         (flow_active_insn_p): Require a const rtx_insn * rather than a
5925         const_rtx.
5926         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
5927         rtx_insn *.
5928         (can_fallthru): Likewise for locals "insn" and "insn2".
5929         (bb_note): Likewise for local "note".
5930         (first_insn_after_basic_block_note): Likewise for local "note" and
5931         for return type.
5932         (rtl_split_block): Likewise for locals "insn" and "next".
5933         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
5934         "end".
5935         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
5936         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
5937         "prev", "tmp".
5938         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
5939         them), "kill_from", "barrier", "new_insn".
5940         (patch_jump_insn): Likewise for params "insn", "old_label".
5941         (redirect_branch_edge): Likewise for locals "old_label", "insn".
5942         (force_nonfallthru_and_redirect): Likewise for locals "insn",
5943         "old_label", "new_label".
5944         (rtl_tidy_fallthru_edge): Likewise for local "q".
5945         (rtl_split_edge): Likewise for locals "before", "last".
5946         (commit_one_edge_insertion): Likewise for locals "before",
5947         "after", "insns", "tmp", "last", adding a checked cast where
5948         currently necessary.
5949         (commit_edge_insertions): Likewise.
5950         (rtl_dump_bb): Likewise for locals "insn", "last".
5951         (print_rtl_with_bb): Likewise for local "x".
5952         (rtl_verify_bb_insns): Likewise for local "x".
5953         (rtl_verify_bb_pointers): Likewise for local "insn".
5954         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
5955         "head", "end".
5956         (rtl_verify_fallthru): Likewise for local "insn".
5957         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
5958         (purge_dead_edges): Likewise for local "insn".
5959         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
5960         (skip_insns_after_block): Likewise for return type and for locals
5961         "insn", "last_insn", "next_head", "prev".
5962         (record_effective_endpoints): Likewise for locals "next_insn",
5963         "insn", "end".
5964         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
5965         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
5966         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
5967         (duplicate_insn_chain): For now, add checked cast from rtx to
5968         rtx_insn * when returning insn.
5969         (cfg_layout_duplicate_bb): Likewise for local "insn".
5970         (cfg_layout_delete_block): Likewise for locals "insn", "next",
5971         "prev", "remaints".
5972         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
5973         (rtl_block_empty_p): Likewise.
5974         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
5975         "split_point", "last".
5976         (rtl_block_ends_with_call_p): Likewise for local "insn".
5977         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
5978         const rtx_insn *.
5979         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
5980         "split_at_insn" from rtx to rtx_insn *.
5981         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
5982         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
5983         to const rtx_insn *.
5984         (rtl_account_profile_record): Likewise.
5986 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
5988         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
5989         rtx to rtx_insn *.
5990         (average_num_loop_insns): Likewise.
5991         (init_set_costs): Likewise for local "seq".
5992         (seq_cost): Likewise for param "seq", from const_rtx to const
5993         rtx_insn *.
5995 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
5997         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
5998         rtx to rtx_insn *.
6000 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6002         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
6003         "f1" and "f2" from rtx * to rtx_insn **.
6004         (flow_find_head_matching_sequence): Likewise.
6006         * cfgcleanup.c (try_simplify_condjump): Strengthen local
6007         "cbranch_insn" from rtx to rtx_insn *.
6008         (thread_jump): Likewise for local "insn".
6009         (try_forward_edges): Likewise for local "last".
6010         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
6011         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
6012         "real_b_end".
6013         (can_replace_by): Likewise for params "i1", "i2".
6014         (old_insns_match_p): Likewise.
6015         (merge_notes): Likewise.
6016         (walk_to_nondebug_insn): Likewise for param "i1".
6017         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
6018         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
6019         "afterlast1", "afterlast2" from rtx to rtx_insn *.
6020         (flow_find_head_matching_sequence): Strengthen params "f1" and
6021         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
6022         "last1", "last2", "beforelast1", "beforelast2" from rtx to
6023         rtx_insn *.
6024         (outgoing_edges_match): Likewise for locals "last1", "last2".
6025         (try_crossjump_to_edge): Likewise for local "insn".
6026         Replace call to for_each_rtx with for_each_rtx_in_insn.
6028         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
6029         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
6030         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
6031         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
6032         (try_optimize_cfg): Strengthen local "last" from rtx to
6033         rtx_insn *.
6034         (delete_dead_jumptables): Likewise for locals "insn", "next",
6035         "label".
6037         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
6038         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
6039         "rtx else_first_tail", to reflect the basic-block.h changes above.
6041 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6043         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
6044         rtx_insn *.
6045         (purge_dead_tablejump_edges): Likewise.
6046         (find_bb_boundaries): Likewise for locals "insn", "end",
6047         "flow_transfer_insn".
6049 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6051         * caller-save.c (save_call_clobbered_regs): Strengthen locals
6052         "ins" and "prev" from rtx to rtx_insn *.
6054 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6056         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
6057         rtx_insn *.
6058         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
6059         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
6060         "scan_start".
6061         (load_register_parameters): Likewise for local "before_arg".
6062         (check_sibcall_argument_overlap): Likewise for param "insn".
6063         (expand_call): Likewise for locals "normal_call_insns",
6064         "tail_call_insns", "insns", "before_call", "after_args",
6065         "before_arg", "last", "prev".  Strengthen one of the "last" from
6066         rtx to rtx_call_insn *.
6067         (fixup_tail_calls): Strengthen local "insn" from rtx to
6068         rtx_insn *.
6069         (emit_library_call_value_1): Likewise for locals "before_call" and
6070         "last".
6072 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6074         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
6075         and "last" from rtx to rtx_insn *.
6076         (expand_builtin_nonlocal_goto): Likewise for local "insn".
6077         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
6078         rtx_call_insn *.
6079         (expand_errno_check): Strengthen local "lab" from rtx to
6080         rtx_code_label *.
6081         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
6082         rtx_insn *.
6083         (expand_builtin_mathfn_2): Likewise.
6084         (expand_builtin_mathfn_ternary): Likewise.
6085         (expand_builtin_mathfn_3): Likewise.
6086         (expand_builtin_interclass_mathfn): Likewise for local "last".
6087         (expand_builtin_int_roundingfn): Likewise for local "insns".
6088         (expand_builtin_int_roundingfn_2): Likewise.
6089         (expand_builtin_strlen): Likewise for local "before_strlen".
6090         (expand_builtin_strncmp): Likewise for local "seq".
6091         (expand_builtin_signbit): Likewise for local "last".
6092         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
6093         from rtx to rtx_code_label *.
6094         (expand_stack_restore):  Strengthen local "prev" from rtx to
6095         rtx_insn *.
6097 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6099         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
6100         to rtx_insn *.
6101         (struct btr_def_s): Likewise.
6102         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
6103         const rtx_insn *.
6104         (add_btr_def): Likewise.
6105         (new_btr_user): Likewise.
6106         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
6107         rtx to rtx_insn *.
6108         (link_btr_uses): Likewise.
6109         (move_btr_def): Likewise for locals "insp", "old_insn",
6110         "new_insn".  Add checked cast to rtx_insn * for now on result of
6111         gen_move_insn.
6112         (can_move_up): Strengthen param "insn" from const_rtx to
6113         const rtx_insn *.
6115 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6117         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
6118         rtx_insn *.
6119         (get_uncond_jump_length): Likewise for locals "label", "jump".
6120         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
6121         "jump", "insn".
6122         (add_labels_and_missing_jumps): Likewise for local "new_jump".
6123         (fix_up_fall_thru_edges): Likewise for local "old_jump".
6124         (find_jump_block): Likewise for local "insn".
6125         (fix_crossing_conditional_branches): Likewise for locals
6126         "old_jump", "new_jump".
6127         (fix_crossing_unconditional_branches): Likewise for locals
6128         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
6129         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
6131 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6133         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
6134         rtx to rtx_insn *.
6135         (struct mem_insn): Likewise for field "insn".
6136         (reg_next_use): Strengthen from rtx * to rtx_insn **.
6137         (reg_next_inc_use): Likewise.
6138         (reg_next_def): Likewise.
6139         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
6140         from rtx to rtx_insn *.
6141         (move_insn_before): Likewise for param "next_insn" and local "insns".
6142         (attempt_change): Likewise for local "mov_insn".
6143         (try_merge): Likewise for param "last_insn".
6144         (get_next_ref): Likewise for return type and local "insn".
6145         Strengthen param "next_array" from rtx * to rtx_insn **.
6146         (parse_add_or_inc): Strengthen param "insn" from rtx to
6147         rtx_insn *.
6148         (find_inc): Likewise for locals "insn" and "other_insn" (three of
6149         the latter).
6150         (merge_in_block): Likewise for locals "insn", "curr",
6151         "other_insn".
6152         (pass_inc_dec::execute): Update allocations of the arrays to
6153         reflect the stronger types.
6155 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6157         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
6158         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
6159         from rtx to rtx_code_label *.
6161 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6163         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
6164         to rtx_insn *.
6166 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6168         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
6169         generated a warning and prevented bootstrapping the compiler.
6171 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6173         * rtl.h (delete_related_insns): Strengthen return type from rtx to
6174         rtx_insn *.
6176         * jump.c (delete_related_insns): Likewise, also for locals "next"
6177         and "prev".
6179 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6181         * genautomata.c (output_internal_insn_latency_func): When writing
6182         the function "internal_insn_latency" to insn-automata.c,
6183         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
6184         allowing the optional guard function of (define_bypass) clauses to
6185         expect a pair of rtx_insn *, rather than a pair of rtx.
6186         (output_insn_latency_func): When writing the function
6187         "insn_latency", add an "uncast_" prefix to params "insn" and
6188         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
6189         using checked casts from the params, thus enabling the above
6190         change to the generated "internal_insn_latency" function.
6192 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
6194         PR tree-optimization/62091
6195         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
6196         handle correctly arrays.
6197         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
6198         inheritance binfos.
6199         (record_known_type): Walk into inner type.
6200         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
6201         condition on no type changes.
6203 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6205         * genattrtab.c (write_attr_get): Within the generated get_attr_
6206         functions, rename param "insn" to "uncast_insn" and reintroduce
6207         "insn" as an local rtx_insn * using a checked cast, so that "insn"
6208         is an rtx_insn * within insn-attrtab.c
6210 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6212         * output.h (peephole): Strengthen return type from rtx to
6213         rtx_insn *.
6214         * rtl.h (delete_for_peephole): Likewise for both params.
6215         * genpeep.c (main): In generated "peephole" function, strengthen
6216         return type and local "insn" from rtx to rtx_insn *.  For now,
6217         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
6218         rtx_insn *, with a checked cast.
6219         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
6220         locals "insn", "next", "prev" from rtx to rtx_insn *.
6222 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
6224         PR tree-optimization/62112
6225         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
6226         * gimple-iterator.h (gsi_replace): Return bool.
6227         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
6228         moved from ref_may_alias_global_p.
6229         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
6230         New overloads.
6231         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
6232         (stmt_kills_ref_p_1): Rename...
6233         (stmt_kills_ref_p): ... to this.
6234         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
6235         stmt_kills_ref_p): Declare.
6236         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
6237         Move the self-assignment case...
6238         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
6240 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6242         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
6244         * emit-rtl.c (try_split): Likewise, also for locals "before" and
6245         "after".  For now, don't strengthen param "trial", which requires
6246         adding checked casts when returning it.
6248 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6250         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
6251         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
6252         "var_location" hook from rtx to rtx_insn *.
6253         (debug_nothing_rtx): Delete in favor of...
6254         (debug_nothing_rtx_code_label): New prototype.
6255         (debug_nothing_rtx_rtx): Delete unused prototype.
6256         (debug_nothing_rtx_insn): New prototype.
6258         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
6259         invoking debug_hooks->var_location (in two places, one in a NOTE
6260         case of a switch statement, the other guarded by a CALL_P
6261         conditional.  Add checked cast to rtx_code_label * when invoking
6262         debug_hooks->label (within CODE_LABEL case of switch statement).
6264         * dbxout.c (dbx_debug_hooks): Update "label" hook from
6265         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
6266         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
6267         (xcoff_debug_hooks): Likewise.
6268         * debug.c (do_nothing_debug_hooks): Likewise.
6269         (debug_nothing_rtx): Delete in favor of...
6270         (debug_nothing_rtx_insn): New function.
6271         (debug_nothing_rtx_rtx): Delete unused function.
6272         (debug_nothing_rtx_code_label): New function.
6273         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
6274         debug_nothing_rtx to debug_nothing_rtx_code_label.
6275         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
6276         to rtx_insn *.
6277         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
6278         debug_nothing_rtx to debug_nothing_rtx_insn.
6279         (sdbout_label): Strengthen param "insn" from rtx to
6280         rtx_code_label *.
6281         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
6282         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
6283         "var_location" hook from debug_nothing_rtx to
6284         debug_nothing_rtx_insn.
6286 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6288         * recog.h (insn_output_fn): Update this function typedef to match
6289         the changes below to the generated output functions, strengthening
6290         the 2nd param from rtx to rtx_insn *.
6292         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
6293         insn when invoking an output function, to match the new signature
6294         of insn_output_fn with a stronger second param.
6296         * genconditions.c (write_header): In the generated code for
6297         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
6298         to match the other changes in this patch.
6300         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
6301         the generated "gen_" functions from rtx to rtx_insn * within their
6302         implementations.
6304         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
6305         the subfunctions within the generated "recog_", "split", "peephole2"
6306         function trees from rtx to rtx_insn *.  For now, the top-level
6307         generated functions ("recog", "split", "peephole2") continue to
6308         take a plain rtx for "insn", to avoid introducing dependencies on
6309         other patches.  Rename this 2nd param from "insn" to
6310         "uncast_insn", and reintroduce "insn" as a local variable of type
6311         rtx_insn *, initialized at the top of the generated function with
6312         a checked cast on "uncast_insn".
6313         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
6314         the generated "gen_" functions from rtx to rtx_insn * within their
6315         prototypes.
6317         * genoutput.c (process_template): Strengthen the 2nd param within
6318         the generated "output_" functions "insn" from rtx to rtx_insn *.
6320 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
6322         * tree-profile.c (tree_profiling): Skip external functions
6323         when doing coverage instrumentation.
6324         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
6326 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6328         * config/rs6000/altivec.h (vec_cpsgn): New #define.
6329         (vec_mergee): Likewise.
6330         (vec_mergeo): Likewise.
6331         (vec_cntlz): Likewise.
6332         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
6333         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
6334         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
6335         VMRGEW, and VMRGOW.
6336         * doc/extend.texi: Document various forms of vec_cpsgn,
6337         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
6338         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
6339         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
6340         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
6341         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
6343 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6345         * config/rs6000/rs6000.c (context.h): New include.
6346         (tree-pass.h): Likewise.
6347         (make_pass_analyze_swaps): New decl.
6348         (rs6000_option_override): Register pass_analyze_swaps.
6349         (swap_web_entry): New subsclass of web_entry_base (df.h).
6350         (special_handling_values): New enum.
6351         (union_defs): New function.
6352         (union_uses): Likewise.
6353         (insn_is_load_p): Likewise.
6354         (insn_is_store_p): Likewise.
6355         (insn_is_swap_p): Likewise.
6356         (rtx_is_swappable_p): Likewise.
6357         (insn_is_swappable_p): Likewise.
6358         (chain_purpose): New enum.
6359         (chain_contains_only_swaps): New function.
6360         (mark_swaps_for_removal): Likewise.
6361         (swap_const_vector_halves): Likewise.
6362         (adjust_subreg_index): Likewise.
6363         (permute_load): Likewise.
6364         (permute_store): Likewise.
6365         (handle_special_swappables): Likewise.
6366         (replace_swap_with_copy): Likewise.
6367         (dump_swap_insn_table): Likewise.
6368         (rs6000_analyze_swaps): Likewise.
6369         (pass_data_analyze_swaps): New pass_data.
6370         (pass_analyze_swaps): New rtl_opt_pass.
6371         (make_pass_analyze_swaps): New function.
6372         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
6374 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6376         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
6377         type from rtx to rtx_insn *.
6378         (create_copy_of_insn_rtx): Likewise.
6379         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
6380         (create_copy_of_insn_rtx): Likewise, also for local "res".
6382 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6384         * rtl.h (find_first_parameter_load): Strengthen return type from
6385         rtx to rtx_insn *.
6386         * rtlanal.c (find_first_parameter_load): Strengthen return type
6387         from rtx to rtx_insn *.  Add checked cast for now, to postpone
6388         strengthening the params.
6390 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6392         PR fortran/44054
6393         * diagnostic.c: Set default caret.
6394         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
6395         line is needed.
6396         * diagnostic.h (struct diagnostic_context):
6398 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6400         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
6401         (sel_bb_head): Strengthen return type insn_t (currently just an
6402         rtx) to rtx_insn *.
6403         (sel_bb_end): Likewise.
6405         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
6406         (sel_bb_head): Strengthen return type and local "head" from
6407         insn_t (currently just an rtx) to rtx_insn *.
6408         (sel_bb_end): Likewise for return type.
6409         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
6410         working with insn.
6412 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6414         * basic-block.h (get_last_bb_insn): Strengthen return type from
6415         rtx to rtx_insn *.
6416         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
6417         end".
6419 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6421         PR fortran/44054
6422         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
6423          to here ...
6424         (diagnostic_report_diagnostic): ... from here.
6425         * toplev.c (general_init): Move code to c-family.
6427 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6429         * df.h (web_entry_base): Replace existing struct web_entry with a
6430         new class web_entry_base with only the predecessor member.
6431         (unionfind_root): Remove declaration and move to class member.
6432         (unionfind_union): Remove declaration and move to friend
6433         function.
6434         (union_defs): Remove declaration.
6435         * web.c (web_entry_base::unionfind_root): Modify to be member
6436         function and adjust accessors.
6437         (unionfind_union): Modify to be friend function and adjust
6438         accessors.
6439         (web_entry): New subclass of web_entry_base containing the reg
6440         member.
6441         (union_match_dups): Modify for struct -> class changes.
6442         (union_defs): Likewise.
6443         (entry_register): Likewise.
6444         (pass_web::execute): Likewise.
6446 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
6448         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
6449         builtin define __VEC_ELEMENT_REG_ORDER__.
6451 2014-08-20  Martin Jambor  <mjambor@suse.cz>
6452             Wei Mi  <wmi@google.com>
6454         PR ipa/60449
6455         PR middle-end/61776
6456         * tree-ssa-operands.c (update_stmt_operands): Remove
6457         MODIFIED_NORETURN_CALLS.
6458         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
6459         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
6460         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
6461         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
6462         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
6463         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
6464         (gimple_call_set_ctrl_altering): New func.
6465         (gimple_call_ctrl_altering_p): Ditto.
6466         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
6467         (make_blocks): Use gimple_call_initialize_ctrl_altering.
6468         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
6469         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
6470         remove MODIFIED_NORETURN_CALLS.
6472 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
6474         * coverage.c (coverage_compute_profile_id): Return non-0;
6475         also handle symbols with unique name.
6476         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
6478 2014-08-20  Steve Ellcey  <sellcey@mips.com>
6480         PR middle-end/49191
6481         * doc/sourcebuild.texi (non_strict_align): New.
6483 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
6485         * cgraphunit.c (ipa_passes, compile): Reshedule
6486         symtab_remove_unreachable_nodes passes; update comments.
6487         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
6488         TODO_remove_functions before the pass; the functions ought to be
6489         already removed.
6490         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
6491         TODO_remove_functions.
6492         * passes.c (pass_data_early_local_passes): Do not schedule function
6493         removal.
6494         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
6496 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6498         PR c/59304
6499         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
6500         before setting the option.
6501         * diagnostic.c (diagnostic_classify_diagnostic): Record
6502         command-line status.
6504 2014-08-20  Richard Biener  <rguenther@suse.de>
6506         PR lto/62190
6507         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
6508         to build uint{16,32,64}_type_node.
6510 2014-08-20  Terry Guo  <terry.guo@arm.com>
6512         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
6513         with immediate_operand.
6515 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
6517         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
6518         "insn" from an as_a to a safe_as_a, for the case when "insn" is
6519         NULL.
6521 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6523         PR preprocessor/51303
6524         * incpath.c (remove_duplicates): Use cpp_warning.
6526 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6528         PR c/60975
6529         PR c/53063
6530         * doc/options.texi (CPP): Document it.
6531         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
6532         * optc-gen.awk: Handle CPP.
6533         * opth-gen.awk: Likewise.
6535 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6537         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
6538         rtx_insn *.
6539         (duplicate_insn_chain): Likewise.
6540         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
6541         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
6542         checked cast for now (until we can strengthen the params in the
6543         same way).
6544         (duplicate_insn_chain): Likewise.
6546 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6548         * rtl.h (next_cc0_user): Strengthen return type from rtx to
6549         rtx_insn *.
6550         (prev_cc0_setter): Likewise.
6552         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
6553         rtx_insn *, adding checked casts for now as necessary.
6554         (prev_cc0_setter): Likewise.
6556 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6558         * expr.h (emit_move_insn): Strengthen return type from rtx to
6559         rtx_insn *.
6560         (emit_move_insn_1): Likewise.
6561         (emit_move_complex_push): Likewise.
6562         (emit_move_complex_parts): Likewise.
6564         * expr.c (emit_move_via_integer): Strengthen return type from rtx
6565         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
6566         with insns.
6567         (emit_move_complex_push): Strengthen return type from rtx to
6568         rtx_insn *.
6569         (emit_move_complex): Likewise, also for local "ret".
6570         (emit_move_ccmode): Likewise.
6571         (emit_move_multi_word): Likewise for return type and locals
6572         "last_insn", "seq".
6573         (emit_move_insn_1): Likewise for return type and locals "result",
6574         "ret".
6575         (emit_move_insn): Likewise for return type and local "last_insn".
6576         (compress_float_constant): Likewise.
6578 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6580         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
6581         from rtx to rtx_insn *.
6583         * rtl.h (emit_insn_before): Likewise.
6584         (emit_insn_before_noloc): Likewise.
6585         (emit_insn_before_setloc): Likewise.
6586         (emit_jump_insn_before): Likewise.
6587         (emit_jump_insn_before_noloc): Likewise.
6588         (emit_jump_insn_before_setloc): Likewise.
6589         (emit_call_insn_before): Likewise.
6590         (emit_call_insn_before_noloc): Likewise.
6591         (emit_call_insn_before_setloc): Likewise.
6592         (emit_debug_insn_before): Likewise.
6593         (emit_debug_insn_before_noloc): Likewise.
6594         (emit_debug_insn_before_setloc): Likewise.
6595         (emit_label_before): Likewise.
6596         (emit_insn_after): Likewise.
6597         (emit_insn_after_noloc): Likewise.
6598         (emit_insn_after_setloc): Likewise.
6599         (emit_jump_insn_after): Likewise.
6600         (emit_jump_insn_after_noloc): Likewise.
6601         (emit_jump_insn_after_setloc): Likewise.
6602         (emit_call_insn_after): Likewise.
6603         (emit_call_insn_after_noloc): Likewise.
6604         (emit_call_insn_after_setloc): Likewise.
6605         (emit_debug_insn_after): Likewise.
6606         (emit_debug_insn_after_noloc): Likewise.
6607         (emit_debug_insn_after_setloc): Likewise.
6608         (emit_label_after): Likewise.
6609         (emit_insn): Likewise.
6610         (emit_debug_insn): Likewise.
6611         (emit_jump_insn): Likewise.
6612         (emit_call_insn): Likewise.
6613         (emit_label): Likewise.
6614         (gen_clobber): Likewise.
6615         (emit_clobber): Likewise.
6616         (gen_use): Likewise.
6617         (emit_use): Likewise.
6618         (emit): Likewise.
6620         (emit_barrier_before): Strengthen return type from rtx to
6621         rtx_barrier *.
6622         (emit_barrier_after): Likewise.
6623         (emit_barrier): Likewise.
6625         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
6626         from rtx to rtx_insn *.  Add checked casts for now when converting
6627         "last" from rtx to rtx_insn *.
6628         (emit_insn_before_noloc): Likewise for return type.
6629         (emit_jump_insn_before_noloc): Likewise.
6630         (emit_call_insn_before_noloc): Likewise.
6631         (emit_debug_insn_before_noloc): Likewise.
6632         (emit_barrier_before): Strengthen return type and local "insn"
6633         from rtx to rtx_barrier *.
6634         (emit_label_before): Strengthen return type from rtx to
6635         rtx_insn *.  Add checked cast for now when returning param
6636         (emit_pattern_after_noloc): Strengthen return type from rtx to
6637         rtx_insn *.  Add checked casts for now when converting "last" from
6638         rtx to rtx_insn *.
6639         (emit_insn_after_noloc): Strengthen return type from rtx to
6640         rtx_insn *.
6641         (emit_jump_insn_after_noloc): Likewise.
6642         (emit_call_insn_after_noloc): Likewise.
6643         (emit_debug_insn_after_noloc): Likewise.
6644         (emit_barrier_after): Strengthen return type from rtx to
6645         rtx_barrier *.
6646         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
6647         Add checked cast for now when converting "label" from rtx to
6648         rtx_insn *.
6649         (emit_pattern_after_setloc): Strengthen return type from rtx to
6650         rtx_insn *.  Add checked casts for now when converting "last" from
6651         rtx to rtx_insn *.
6652         (emit_pattern_after): Strengthen return type from rtx to
6653         rtx_insn *.
6654         (emit_insn_after_setloc): Likewise.
6655         (emit_insn_after): Likewise.
6656         (emit_jump_insn_after_setloc): Likewise.
6657         (emit_jump_insn_after): Likewise.
6658         (emit_call_insn_after_setloc): Likewise.
6659         (emit_call_insn_after): Likewise.
6660         (emit_debug_insn_after_setloc): Likewise.
6661         (emit_debug_insn_after): Likewise.
6662         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
6663         when converting "last" from rtx to rtx_insn *.
6664         (emit_pattern_before): Strengthen return type from rtx to
6665         rtx_insn *.
6666         (emit_insn_before_setloc): Likewise.
6667         (emit_insn_before): Likewise.
6668         (emit_jump_insn_before_setloc): Likewise.
6669         (emit_jump_insn_before): Likewise.
6670         (emit_call_insn_before_setloc): Likewise.
6671         (emit_call_insn_before): Likewise.
6672         (emit_debug_insn_before_setloc): Likewise.
6673         (emit_debug_insn_before): Likewise.
6674         (emit_insn): Strengthen return type and locals "last", "insn",
6675         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
6676         within cases where we know we have an insn.
6677         (emit_debug_insn): Likewise.
6678         (emit_jump_insn): Likewise.
6679         (emit_call_insn): Strengthen return type and local "insn" from rtx
6680         to rtx_insn *.
6681         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
6682         a checked cast to rtx_insn * for now on "label".
6683         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
6684         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
6685         (emit_use): Likewise.
6686         (gen_use): Likewise, also for local "seq".
6687         (emit): Likewise for return type and local "insn".
6688         (rtx_insn): Likewise for return type and local "new_rtx".
6690         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
6691         from rtx to rtx_barrier *.
6693         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
6694         changed return type from rtx to rtx_insn *, we must update
6695         "emit_fn" type, and this in turn means updating...
6696         (frame_insn): ...this.  Strengthen return type from rtx to
6697         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
6699 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6701         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
6702         rtx to rtx_jump_table_data *.  Also for local.
6703         * rtl.h (emit_jump_table_data): Likewise.
6705 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6707         * basic-block.h (create_basic_block_structure): Strengthen third
6708         param "bb_note" from rtx to rtx_note *.
6709         * rtl.h (emit_note_before): Strengthen return type from rtx to
6710         rtx_note *.
6711         (emit_note_after): Likewise.
6712         (emit_note): Likewise.
6713         (emit_note_copy): Likewise.  Also, strengthen param similarly.
6714         * function.h (struct rtl_data): Strengthen field
6715         "x_stack_check_probe_note" from rtx to rtx_note *.
6717         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
6718         from rtx to rtx_note *.
6719         * cfgrtl.c (create_basic_block_structure): Strengthen third param
6720         "bb_note" from rtx to rtx_note *.
6721         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
6722         when calling emit_note_copy.
6723         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
6724         rtx_note *.
6725         (emit_note_after): Likewise.
6726         (emit_note_before): Likewise.
6727         (emit_note_copy): Likewise.  Also, strengthen param similarly.
6728         (emit_note): Likewise.
6729         * except.c (emit_note_eh_region_end): Likewise for return type.
6730         Strengthen local "next" from rtx to rtx_insn *.
6731         (convert_to_eh_region_ranges): Strengthen local "note"
6732         from rtx to rtx_note *.
6733         * final.c (change_scope): Likewise.
6734         (reemit_insn_block_notes): Likewise, for both locals named "note".
6735         Also, strengthen local "insn" from rtx to rtx_insn *.
6736         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
6737         rtx to rtx_note *.
6738         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
6739         strengthen local "seq" from rtx to rtx_insn *.
6740         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
6741         to rtx_note *.
6742         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
6743         vec<rtx_note *>.
6744         (get_bb_note_from_pool): Strengthen return type from rtx to
6745         rtx_note *.
6746         (sel_create_basic_block): Strengthen local "new_bb_note" from
6747         insn_t to rtx_note *.
6748         * var-tracking.c (emit_note_insn_var_location): Strengthen local
6749         "note" from rtx to rtx_note *.
6750         (emit_notes_in_bb): Likewise.
6752 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6754         * function.h (struct rtl_data): Strengthen field
6755         "x_parm_birth_insn" from rtx to rtx_insn *.
6756         * function.c (struct assign_parm_data_all): Strengthen fields
6757         "first_conversion_insn" and "last_conversion_insn" from rtx to
6758         rtx_insn *.
6760 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6762         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
6763         to rtx_insn *; also for local "var_end_seq".
6764         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
6765         (maybe_cleanup_end_of_block): Likewise for param "last" and local
6766         "insn".
6767         (expand_gimple_cond): Likewise for locals "last2" and "last".
6768         (mark_transaction_restart_calls): Likewise for local "insn".
6769         (expand_gimple_stmt): Likewise for return type and locals "last"
6770         and "insn".
6771         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
6772         (avoid_complex_debug_insns): Likewise for param "insn".
6773         (expand_debug_locations): Likewise for locals "insn", "last",
6774         "prev_insn" and "insn2".
6775         (expand_gimple_basic_block): Likewise for local "last".
6776         (construct_exit_block): Likewise for locals "head", "end",
6777         "orig_end".
6778         (pass_expand::execute): Likewise for locals "var_seq",
6779         "var_ret_seq", "next".
6781 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6783         * asan.h (asan_emit_stack_protection): Strengthen return type from
6784         rtx to rtx_insn *.
6785         * asan.c (asan_emit_stack_protection): Likewise.  Add local
6786         "insns" to hold the return value.
6788 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6790         * basic-block.h (bb_note): Strengthen return type from rtx to
6791         rtx_note *.
6792         * sched-int.h (bb_note): Likewise.
6793         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
6795 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6797         * rtl.h (make_insn_raw): Strengthen return type from rtx to
6798         rtx_insn *.
6800         * emit-rtl.c (make_insn_raw): Strengthen return type and local
6801         "insn" from rtx to rtx_insn *.
6802         (make_debug_insn_raw): Strengthen return type from rtx to
6803         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
6804         (make_jump_insn_raw):  Strengthen return type from rtx to
6805         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
6806         (make_call_insn_raw):  Strengthen return type from rtx to
6807         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
6808         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
6809         callback from rtx to rtx_insn *; likewise for local "insn" and
6810         "next", adding a checked cast to rtx_insn in the relevant cases of
6811         the switch statement.
6812         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
6813         callback from rtx to rtx_insn *.
6814         (emit_pattern_after_setloc): Likewise.
6815         (emit_pattern_after): Likewise.
6816         (emit_pattern_before_setloc): Likewise.
6817         (emit_pattern_before): Likewise.
6819 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6821         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
6822         rtx_call_insn *.
6823         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
6824         accepting an rtx_insn *.
6825         (last_call_insn): Strengthen return type from rtx to
6826         rtx_call_insn *.
6828 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6830         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
6831         "insns" from rtx to rtx_insn *.
6832         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
6833         locals "insn" and "prev".
6835 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6837         * rtl.h (tablejump_p): Strengthen third param from rtx * to
6838         rtx_jump_table_data **.
6840         * cfgbuild.c (make_edges): Introduce local "table", using it in
6841         place of "tmp" for jump table data.
6842         (find_bb_boundaries): Strengthen local "table" from rtx to
6843         rtx_jump_table_data *.
6844         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6845         (outgoing_edges_match): Likewise for locals "table1" and "table2".
6846         (try_crossjump_to_edge): Likewise.
6847         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
6848         "table".
6849         (patch_jump_insn): Introduce local "table", using it in place of
6850         "tmp" for jump table data.
6851         (force_nonfallthru_and_redirect): Introduce local "table", so that
6852         call to tablejump_p can receive an rtx_jump_table_data **.  Update
6853         logic around the call to overwrite "note" appropriately if
6854         tablejump_p returns non-zero.
6855         (get_last_bb_insn): Introduce local "table", using it in place of
6856         "tmp" for jump table data.
6857         * dwarf2cfi.c (create_trace_edges): Likewise.
6859         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
6860         from rtx to rtx_jump_table_data *.
6861         (create_fix_barrier): Strengthen local "tmp" from rtx to
6862         rtx_jump_table_data *.
6863         (arm_reorg): Likewise for local "table".
6865         * config/s390/s390.c (s390_chunkify_start): Likewise.
6867         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
6869         * jump.c (delete_related_insns): Strengthen local "lab_next" from
6870         rtx to rtx_jump_table_data *.
6872         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
6873         rtx_jump_table_data **.  Add a checked cast when writing through
6874         the pointer: we know there that local "table" is non-NULL and that
6875         JUMP_TABLE_DATA_P (table) holds.
6876         (label_is_jump_target_p): Introduce local "table", using it in
6877         place of "tmp" for jump table data.
6879 2014-08-19  Marek Polacek  <polacek@redhat.com>
6881         PR c++/62153
6882         * doc/invoke.texi: Document -Wbool-compare.
6884 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6886         * rtl.h (entry_of_function): Strengthen return type from rtx to
6887         rtx_insn *.
6888         * cfgrtl.c (entry_of_function): Likewise.
6890 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6892         * emit-rtl.h (get_insns): Strengthen return type from rtx to
6893         rtx_insn *, adding a checked cast for now.
6894         (get_last_insn): Likewise.
6896 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6898         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
6899         rtx_code_label *.
6901         * emit-rtl.c (gen_label_rtx): Likewise.
6903 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6905         * rtl.h (previous_insn): Strengthen return type from rtx to
6906         rtx_insn *.
6907         (next_insn): Likewise.
6908         (prev_nonnote_insn): Likewise.
6909         (prev_nonnote_insn_bb): Likewise.
6910         (next_nonnote_insn): Likewise.
6911         (next_nonnote_insn_bb): Likewise.
6912         (prev_nondebug_insn): Likewise.
6913         (next_nondebug_insn): Likewise.
6914         (prev_nonnote_nondebug_insn): Likewise.
6915         (next_nonnote_nondebug_insn): Likewise.
6916         (prev_real_insn): Likewise.
6917         (next_real_insn): Likewise.
6918         (prev_active_insn): Likewise.
6919         (next_active_insn): Likewise.
6921         * emit-rtl.c (next_insn): Strengthen return type from rtx to
6922         rtx_insn *, adding a checked cast.
6923         (previous_insn): Likewise.
6924         (next_nonnote_insn): Likewise.
6925         (next_nonnote_insn_bb): Likewise.
6926         (prev_nonnote_insn): Likewise.
6927         (prev_nonnote_insn_bb): Likewise.
6928         (next_nondebug_insn): Likewise.
6929         (prev_nondebug_insn): Likewise.
6930         (next_nonnote_nondebug_insn): Likewise.
6931         (prev_nonnote_nondebug_insn): Likewise.
6932         (next_real_insn): Likewise.
6933         (prev_real_insn): Likewise.
6934         (next_active_insn): Likewise.
6935         (prev_active_insn): Likewise.
6937         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
6938         param "stepfunc" so that it returns an rtx_insn * rather than an
6939         rtx, to track the change to prev_nonnote_insn_bb, which is the
6940         only function this is called with.
6941         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
6943 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
6945         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
6946         assert.
6948 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6950         * coretypes.h (class rtx_debug_insn): Add forward declaration.
6951         (class rtx_nonjump_insn): Likewise.
6952         (class rtx_jump_insn): Likewise.
6953         (class rtx_call_insn): Likewise.
6954         (class rtx_jump_table_data): Likewise.
6955         (class rtx_barrier): Likewise.
6956         (class rtx_code_label): Likewise.
6957         (class rtx_note): Likewise.
6959         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
6960         adding the invariant DEBUG_INSN_P (X).
6961         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
6962         the invariant NONJUMP_INSN_P (X).
6963         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
6964         the invariant JUMP_P (X).
6965         (class rtx_call_insn): New, a subclass of rtx_insn, adding
6966         the invariant CALL_P (X).
6967         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
6968         invariant JUMP_TABLE_DATA_P (X).
6969         (class rtx_barrier): New, a subclass of rtx_insn, adding the
6970         invariant BARRIER_P (X).
6971         (class rtx_code_label): New, a subclass of rtx_insn, adding
6972         the invariant LABEL_P (X).
6973         (class rtx_note): New, a subclass of rtx_insn, adding
6974         the invariant NOTE_P(X).
6975         (is_a_helper <rtx_debug_insn *>::test): New.
6976         (is_a_helper <rtx_nonjump_insn *>::test): New.
6977         (is_a_helper <rtx_jump_insn *>::test): New.
6978         (is_a_helper <rtx_call_insn *>::test): New.
6979         (is_a_helper <rtx_jump_table_data *>::test): New functions,
6980         overloaded for both rtx and rtx_insn *.
6981         (is_a_helper <rtx_barrier *>::test): New.
6982         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
6983         for both rtx and rtx_insn *.
6984         (is_a_helper <rtx_note *>::test): New.
6986 2014-08-19  Marek Polacek  <polacek@redhat.com>
6988         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
6989         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6990         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
6991         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6993 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6995         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
6996         rtx_insn *.  To help with transition, for now, convert from an
6997         access macro into a pair of functions: BND_TO, returning an
6998         rtx_insn *, and...
6999         (SET_BND_TO): New function, for use where BND_TO is used as an
7000         lvalue.
7002         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
7003         SET_BND_TO.
7004         (BND_TO): New function, adding a checked cast.
7005         (SET_BND_TO): New function.
7007         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
7008         SET_BND_TO.
7009         (compute_av_set_on_boundaries): Likewise.
7011 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7013         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
7014         destination if it is used in source.
7015         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
7016         (*popcount<mode>2_falsedep_1): Likewise.
7018 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7020         PR other/62168
7021         * configure.ac: Set install_gold_as_default to no first.
7022         * configure: Regenerated.
7024 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7026         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
7027         "note_list" field will eventually be an rtx_insn *.  To help with
7028         transition, for now, convert from an access macro into a pair of
7029         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
7030         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
7031         used as an lvalue.
7033         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
7034         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
7036         * sel-sched-ir.c (init_bb): Likewise.
7037         (sel_restore_notes): Likewise.
7038         (move_bb_info): Likewise.
7039         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
7040         (SET_BB_NOTE_LIST): New function.
7042 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7044         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
7045         field will eventually be an rtx_insn *.  To help with transition,
7046         for now, convert from an access macro into a pair of functions:
7047         VINSN_INSN_RTX, returning an rtx_insn *, and...
7048         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
7049         is used as an lvalue.
7051         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
7052         SET_VINSN_INSN_RTX where it's used as an lvalue.
7053         (VINSN_INSN_RTX): New function.
7054         (SET_VINSN_INSN_RTX): New function.
7056 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7058         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
7059         eventually be rtx_insn *, but to help with transition, for now,
7060         convert from an access macro into a pair of functions: DEP_PRO
7061         returning an rtx_insn * and...
7062         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
7063         lvalue, returning an rtx&.
7064         (DEP_CON): Analogous changes to DEP_PRO above.
7065         (SET_DEP_CON): Likewise.
7067         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
7068         an lvalue to SET_DEP_CON.
7069         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
7070         (sd_copy_back_deps): Likewise for DEP_CON.
7071         (DEP_PRO): New function, adding a checked cast for now.
7072         (DEP_CON): Likewise.
7073         (SET_DEP_PRO): New function.
7074         (SET_DEP_CON): Likewise.
7076 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
7078         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
7079         (extra_options): Add i386/cygwin.opt.
7080         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
7081         (CPP_SPEC): Accept -pthread.
7082         (LINK_SPEC): Ditto.
7083         (GOMP_SELF_SPECS): Update comment.
7084         * config/i386/cygwin.opt: New file for -pthread flag.
7086 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7088         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
7089         * df.h (DF_REF_INSN): Convert from a macro to a function, so
7090         that we can return an rtx_insn *.
7092 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
7094         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
7095         when building executables, not DLLs.  Add --large-address-aware
7096         under the same conditions.
7097         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
7098         when building executables, not DLLs.  Add --large-address-aware
7099         under the same conditions when using -m32.
7101         * config/i386/cygwin-stdint.h: Throughout, make type
7102         definitions dependent on target architecture, not host.
7104 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7106         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
7107         the return type from rtx to rtx_insn *,  which will enable various
7108         conversions in followup patches.  For now this is is done by a
7109         checked cast.
7110         (NEXT_INSN): Likewise.
7111         (SET_PREV_INSN): Convert to an inline function.  This is intended
7112         for use as an lvalue, and so returns an rtx& to allow in-place
7113         modification.
7114         (SET_NEXT_INSN): Likewise.
7116 2014-07-08  Mark Wielaard  <mjw@redhat.com>
7118         PR debug/59051
7119         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
7121 2014-08-19  Marek Polacek  <polacek@redhat.com>
7123         PR c/61271
7124         * cgraphunit.c (handle_alias_pairs): Fix condition.
7126 2014-08-19  Richard Biener  <rguenther@suse.de>
7128         * gimple-fold.c (fold_gimple_assign): Properly build a
7129         null-pointer constant when devirtualizing addresses.
7131 2014-07-07  Mark Wielaard  <mjw@redhat.com>
7133         * dwarf2out.c (decl_quals): New function.
7134         (modified_type_die): Take one cv_quals argument instead of two,
7135         one for const and one for volatile.
7136         (add_type_attribute): Likewise.
7137         (generic_parameter_die): Call add_type_attribute with one modifier
7138         argument.
7139         (base_type_for_mode): Likewise.
7140         (add_bounds_info): Likewise.
7141         (add_subscript_info): Likewise.
7142         (gen_array_type_die): Likewise.
7143         (gen_descr_array_type_die): Likewise.
7144         (gen_entry_point_die): Likewise.
7145         (gen_enumeration_type_die): Likewise.
7146         (gen_formal_parameter_die): Likewise.
7147         (gen_subprogram_die): Likewise.
7148         (gen_variable_die): Likewise.
7149         (gen_const_die): Likewise.
7150         (gen_field_die): Likewise.
7151         (gen_pointer_type_die): Likewise.
7152         (gen_reference_type_die): Likewise.
7153         (gen_ptr_to_mbr_type_die): Likewise.
7154         (gen_inheritance_die): Likewise.
7155         (gen_subroutine_type_die): Likewise.
7156         (gen_typedef_die): Likewise.
7157         (force_type_die): Likewise.
7159 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7161         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
7162         if unset.
7163         * configure: Regenerate.
7165 2014-08-19  Richard Biener  <rguenther@suse.de>
7167         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
7168         DECL_EXTERNALs in BLOCKs as non-references.
7169         * tree-streamer-out.c (streamer_write_chain): Likewise.
7171 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7172             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7173             Anna Tikhonova  <anna.tikhonova@intel.com>
7174             Ilya Tocar  <ilya.tocar@intel.com>
7175             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7176             Ilya Verbin  <ilya.verbin@intel.com>
7177             Kirill Yukhin  <kirill.yukhin@intel.com>
7178             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7180         * config/i386/sse.md
7181         (define_mode_iterator VI48_AVX512F): Delete.
7182         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
7183         (define_mode_iterator VI2_AVX512VL): Ditto.
7184         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
7185         Delete.
7186         (define_insn
7187         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
7188         New.
7189         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
7190         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
7191         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7192         with VI48_AVX512F_AVX512VL): New.
7193         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7194         with VI2_AVX512VL): Ditto.
7196 2014-08-19  Marek Polacek  <polacek@redhat.com>
7198         * doc/invoke.texi: Document -Wc99-c11-compat.
7200 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7202         * rtl.h (PREV_INSN): Split macro in two: the existing one,
7203         for rvalues, and...
7204         (SET_PREV_INSN): New macro, for use as an lvalue.
7205         (NEXT_INSN, SET_NEXT_INSN): Likewise.
7207         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
7208         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
7209         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7210         (fixup_abnormal_edges): Likewise.
7211         (unlink_insn_chain): Likewise.
7212         (fixup_reorder_chain): Likewise.
7213         (cfg_layout_delete_block): Likewise.
7214         (cfg_layout_merge_blocks): Likewise.
7215         * combine.c (update_cfg_for_uncondjump): Likewise.
7216         * emit-rtl.c (link_insn_into_chain): Likewise.
7217         (remove_insn): Likewise.
7218         (delete_insns_since): Likewise.
7219         (reorder_insns_nobb): Likewise.
7220         (emit_insn_after_1): Likewise.
7221         * final.c (rest_of_clean_state): Likewise.
7222         (final_scan_insn): Likewise.
7223         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
7224         * haifa-sched.c (concat_note_lists): Likewise.
7225         (remove_notes): Likewise.
7226         (restore_other_notes): Likewise.
7227         (move_insn): Likewise.
7228         (unlink_bb_notes): Likewise.
7229         (restore_bb_notes): Likewise.
7230         * jump.c (delete_for_peephole): Likewise.
7231         * optabs.c (emit_libcall_block_1): Likewise.
7232         * reorg.c (emit_delay_sequence): Likewise.
7233         (fill_simple_delay_slots): Likewise.
7234         * sel-sched-ir.c (sel_move_insn): Likewise.
7235         (sel_remove_insn): Likewise.
7236         (get_bb_note_from_pool): Likewise.
7237         * sel-sched.c (move_nop_to_previous_block): Likewise.
7239         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
7240         * config/c6x/c6x.c (gen_one_bundle): Likewise.
7241         (c6x_gen_bundles): Likewise.
7242         (hwloop_optimize): Likewise.
7243         * config/frv/frv.c (frv_function_prologue): Likewise.
7244         (frv_register_nop): Likewise.
7245         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
7246         (ia64_reorg): Likewise.
7247         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
7248         (mep_make_bundle): Likewise.
7249         (mep_bundle_insns): Likewise.
7250         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
7251         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
7252         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
7254 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7256         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
7257         return type from rtx to rtx_insn *.
7258         (BB_END): Likewise.
7259         (BB_HEADER): Likewise.
7260         (BB_FOOTER): Likewise.
7261         (SET_BB_HEAD): Convert to a function.
7262         (SET_BB_END): Likewise.
7263         (SET_BB_HEADER): Likewise.
7264         (SET_BB_FOOTER): Likewise.
7266         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
7267         Strengthen the return type from rtx to rtx_insn *.  For now, this
7268         is done by adding a checked cast, but this will eventually
7269         become a field lookup.
7270         (BB_END): Likewise.
7271         (BB_HEADER): Likewise.
7272         (BB_FOOTER): Likewise.
7273         (SET_BB_HEAD): New function, from macro of same name.  This is
7274         intended for use as an lvalue, and so returns an rtx& to allow
7275         in-place modification.
7276         (SET_BB_END): Likewise.
7277         (SET_BB_HEADER): Likewise.
7278         (SET_BB_FOOTER): Likewise.
7280 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
7282         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
7283         for rvalues, and...
7284         (SET_BB_HEAD): New macro, for use as a lvalue.
7285         (BB_END, SET_BB_END): Likewise.
7286         (BB_HEADER, SET_BB_HEADER): Likewise.
7287         (BB_FOOTER, SET_BB_FOOTER): Likewise.
7289         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
7290         of BB_* macros into SET_BB_* macros.
7291         (fix_crossing_unconditional_branches): Likewise.
7292         * caller-save.c (save_call_clobbered_regs): Likewise.
7293         (insert_one_insn): Likewise.
7294         * cfgbuild.c (find_bb_boundaries): Likewise.
7295         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7296         (outgoing_edges_match): Likewise.
7297         (try_optimize_cfg): Likewise.
7298         * cfgexpand.c (expand_gimple_cond): Likewise.
7299         (expand_gimple_tailcall): Likewise.
7300         (expand_gimple_basic_block): Likewise.
7301         (construct_exit_block): Likewise.
7302         * cfgrtl.c (delete_insn): Likewise.
7303         (create_basic_block_structure): Likewise.
7304         (rtl_delete_block): Likewise.
7305         (rtl_split_block): Likewise.
7306         (emit_nop_for_unique_locus_between): Likewise.
7307         (rtl_merge_blocks): Likewise.
7308         (block_label): Likewise.
7309         (try_redirect_by_replacing_jump): Likewise.
7310         (emit_barrier_after_bb): Likewise.
7311         (fixup_abnormal_edges): Likewise.
7312         (record_effective_endpoints): Likewise.
7313         (relink_block_chain): Likewise.
7314         (fixup_reorder_chain): Likewise.
7315         (fixup_fallthru_exit_predecessor): Likewise.
7316         (cfg_layout_duplicate_bb): Likewise.
7317         (cfg_layout_split_block): Likewise.
7318         (cfg_layout_delete_block): Likewise.
7319         (cfg_layout_merge_blocks): Likewise.
7320         * combine.c (update_cfg_for_uncondjump): Likewise.
7321         * emit-rtl.c (add_insn_after): Likewise.
7322         (remove_insn): Likewise.
7323         (reorder_insns): Likewise.
7324         (emit_insn_after_1): Likewise.
7325         * haifa-sched.c (get_ebb_head_tail): Likewise.
7326         (restore_other_notes): Likewise.
7327         (move_insn): Likewise.
7328         (sched_extend_bb): Likewise.
7329         (fix_jump_move): Likewise.
7330         * ifcvt.c (noce_process_if_block): Likewise.
7331         (dead_or_predicable): Likewise.
7332         * ira.c (update_equiv_regs): Likewise.
7333         * reg-stack.c (change_stack): Likewise.
7334         * sel-sched-ir.c (sel_move_insn): Likewise.
7335         * sel-sched.c (move_nop_to_previous_block): Likewise.
7337         * config/c6x/c6x.c (hwloop_optimize): Likewise.
7338         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7340 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
7342         * rtl.h (for_each_rtx_in_insn): New function.
7343         * rtlanal.c (for_each_rtx_in_insn): Likewise.
7345 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
7347         * coretypes.h (class rtx_insn): Add forward declaration.
7349         * rtl.h: Include is-a.h.
7350         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
7351         workaround to ensure gengtype knows inheritance is occurring,
7352         whilst continuing to use the pre-existing special-casing for
7353         rtx_def.
7354         (class rtx_insn): New subclass of rtx_def, adding the
7355         invariant that we're dealing with something we can sanely use
7356         INSN_UID, NEXT_INSN, PREV_INSN on.
7357         (is_a_helper <rtx_insn *>::test): New.
7358         (is_a_helper <const rtx_insn *>::test): New.
7360 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
7362         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
7364 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
7366         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
7367         comdats as extern.
7369 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
7371         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
7372         to BUILT_IN_UNREACHABLE.
7374 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
7376         PR target/62011
7377         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
7378         New tune flag.
7379         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
7380         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
7381         (ffs<mode>2): Do not expand with tzcnt for
7382         TARGET_AVOID_FALSE_DEP_FOR_BMI.
7383         (ffssi2_no_cmove): Ditto.
7384         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
7385         (ctz<mode>2): New expander.
7386         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
7387         (*ctz<mode>2_falsedep): New insn.
7388         (*ctz<mode>2): Rename from ctz<mode>2.
7389         (clz<mode>2_lzcnt): New expander.
7390         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
7391         (*clz<mode>2_lzcnt_falsedep): New insn.
7392         (*clz<mode>2): Rename from ctz<mode>2.
7393         (popcount<mode>2): New expander.
7394         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
7395         (*popcount<mode>2_falsedep): New insn.
7396         (*popcount<mode>2): Rename from ctz<mode>2.
7397         (*popcount<mode>2_cmp): Remove.
7398         (*popcountsi2_cmp_zext): Ditto.
7400 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
7402         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
7403         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
7404         * config/microblaze/microblaze.h
7405         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
7407 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7409         PR other/62168
7410         * configure.ac: Set install_gold_as_default to no for
7411          --enable-gold=no.
7412          * configure: Regenerated.
7414 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
7416         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
7417         * config.in: Add undef of HAVE_isl.
7418         * configure: Regenerate.
7419         * configure.ac: Add definition of HAVE_isl.
7420         * graphite-blocking.c: Add checking of HAVE_isl.
7421         * graphite-dependences.c: Likewise.
7422         * graphite-interchange.c: Likewise.
7423         * graphite-isl-ast-to-gimple.c: Likewise.
7424         * graphite-optimize-isl.c: Likewise.
7425         * graphite-poly.c: Likewise.
7426         * graphite-scop-detection.c: Likewise.
7427         * graphite-sese-to-poly.c: Likewise.
7428         * graphite.c: Likewise.
7429         * toplev.c: Replace the checking of HAVE_cloog with the checking
7430         of HAVE_isl.
7432 2014-08-18  Richard Biener  <rguenther@suse.de>
7434         PR tree-optimization/62090
7435         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
7436         (fold_builtin_3): Do not fold snprintf.
7437         (fold_builtin_4): Likewise.
7438         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
7439         moved from builtins.c.
7440         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
7441         (gimple_fold_builtin): Do not fold sprintf here.
7443 2014-08-18  Richard Biener  <rguenther@suse.de>
7445         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
7446         code to ...
7447         (maybe_canonicalize_mem_ref_addr): ... this function.
7448         (fold_stmt_1): Apply it here before all simplification.
7450 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
7452         PR ipa/61800
7453         * cgraph.h (cgraph_node::create_indirect_edge): Add
7454         compute_indirect_info param.
7455         * cgraph.c (cgraph_node::create_indirect_edge): Compute
7456         indirect_info only when it is required.
7457         * cgraphclones.c (cgraph_clone_edge): Do not recompute
7458         indirect_info fore cloned indirect edge.
7460 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7461             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7462             Anna Tikhonova  <anna.tikhonova@intel.com>
7463             Ilya Tocar  <ilya.tocar@intel.com>
7464             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7465             Ilya Verbin  <ilya.verbin@intel.com>
7466             Kirill Yukhin  <kirill.yukhin@intel.com>
7467             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7469         * config/i386/sse.md
7470         (define_mode_iterator VI8_AVX2_AVX512BW): New.
7471         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
7473 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7474             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7475             Anna Tikhonova  <anna.tikhonova@intel.com>
7476             Ilya Tocar  <ilya.tocar@intel.com>
7477             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7478             Ilya Verbin  <ilya.verbin@intel.com>
7479             Kirill Yukhin  <kirill.yukhin@intel.com>
7480             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7482         * config/i386/sse.md
7483         (define_mode_iterator VF1_AVX512VL): New.
7484         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
7485         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
7486         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/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
7498         * config/i386/i386.md
7499         (define_code_iterator any_float): New.
7500         (define_code_attr floatsuffix): New.
7501         * config/i386/sse.md
7502         (define_mode_iterator VF1_128_256VL): New.
7503         (define_mode_iterator VF2_512_256VL): New.
7504         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
7505         TARGET check.
7506         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
7507         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
7508         New.
7509         (define_mode_attr qq2pssuff): New.
7510         (define_mode_attr sselongvecmode): New.
7511         (define_mode_attr sselongvecmodelower): New.
7512         (define_mode_attr sseintvecmode3): New.
7513         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
7514         New.
7515         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
7516         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
7517         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
7518         (define_insn "ufloatv2siv2df2<mask_name>"): New.
7520 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7521             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7522             Anna Tikhonova  <anna.tikhonova@intel.com>
7523             Ilya Tocar  <ilya.tocar@intel.com>
7524             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7525             Ilya Verbin  <ilya.verbin@intel.com>
7526             Kirill Yukhin  <kirill.yukhin@intel.com>
7527             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7529         * config/i386/sse.md
7530         (define_mode_iterator VF2_AVX512VL): New.
7531         (define_mode_attr sseintvecmode2): New.
7532         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
7533         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
7534         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
7535         (define_insn
7536         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
7537         Ditto.
7538         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7539         Ditto.
7540         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7541         Ditto.
7543 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7544             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7545             Anna Tikhonova  <anna.tikhonova@intel.com>
7546             Ilya Tocar  <ilya.tocar@intel.com>
7547             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7548             Ilya Verbin  <ilya.verbin@intel.com>
7549             Kirill Yukhin  <kirill.yukhin@intel.com>
7550             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7552         * config/i386/i386.md
7553         (define_insn "*movoi_internal_avx"): Add evex version.
7554         (define_insn "*movti_internal"): Ditto.
7556 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7557             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7558             Anna Tikhonova  <anna.tikhonova@intel.com>
7559             Ilya Tocar  <ilya.tocar@intel.com>
7560             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7561             Ilya Verbin  <ilya.verbin@intel.com>
7562             Kirill Yukhin  <kirill.yukhin@intel.com>
7563             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7565         * config/i386/i386.md
7566         (define_attr "isa"): Add avx512dq, noavx512dq.
7567         (define_attr "enabled"): Ditto.
7568         * config/i386/sse.md
7569         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
7571 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7572             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7573             Anna Tikhonova  <anna.tikhonova@intel.com>
7574             Ilya Tocar  <ilya.tocar@intel.com>
7575             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7576             Ilya Verbin  <ilya.verbin@intel.com>
7577             Kirill Yukhin  <kirill.yukhin@intel.com>
7578             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7580         * config/i386/i386.c
7581         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
7582         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
7583         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
7584         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
7585         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
7586         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
7587         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
7588         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
7589         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
7590         * config/i386/sse.md
7591         (define_mode_iterator VMOVE): Allow V4TI mode.
7592         (define_mode_iterator V_AVX512VL): New.
7593         (define_mode_iterator V): New handling for AVX512VL.
7594         (define_insn "avx512f_load<mode>_mask"): Delete.
7595         (define_insn "<avx512>_load<mode>_mask"): New.
7596         (define_insn "avx512f_store<mode>_mask"): Delete.
7597         (define_insn "<avx512>_store<mode>_mask"): New.
7600 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
7602         PR sanitizer/62089
7603         * asan.c (instrument_derefs): Fix bitfield check.
7605 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
7607         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
7608         * config/rs6000/htm.md (ttest): Remove clobber.
7609         * config/rs6000/predicates.md (any_mask_operand): New predicate.
7610         (and_operand): Reformat.
7611         (and_2rld_operand): New predicate.
7612         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
7613         parameter.
7614         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
7615         parameter.  Handle AND directly.
7616         (rs6000_split_logical_di): Remove last parameter.
7617         (rs6000_split_logical): Remove last parameter.  Remove obsolete
7618         comment.
7619         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
7620         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
7621         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
7622         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
7623         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
7624         and 5 anonymous splitters):  Delete.
7625         (and<mode>3): New expander.
7626         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
7627         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
7628         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
7629         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
7630         (floatdisf2_internal1): Remove clobbers.
7631         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
7632         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
7633         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
7634         (and<mode>3 for BOOL_128): Remove clobber.
7635         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
7636         rs6000_split_logical.
7637         (*bool<mode>3_internal for BOOL_128): Adjust call of
7638         rs6000_split_logical.
7639         (*boolc<mode>3_internal1 for BOOL_128,
7640         *boolc<mode>3_internal2 for BOOL_128,
7641         *boolcc<mode>3_internal1 for BOOL_128,
7642         *boolcc<mode>3_internal2 for BOOL_128,
7643         *eqv<mode>3_internal1 for BOOL_128,
7644         *eqv<mode>3_internal2 for BOOL_128,
7645         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
7646         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
7647         clobber.
7648         (*vec_reload_and_reg_<mptrsize>): Delete.
7650 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
7652         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
7653         and split, *boolccsi3_internal3 and split): Delete.
7654         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
7655         *boolccdi3_internal3 and split): Delete.
7656         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
7657         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
7659 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
7661         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
7662         and split, *boolcsi3_internal3 and split): Delete.
7663         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
7664         *boolcdi3_internal3 and split): Delete.
7665         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
7667 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
7669         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
7670         <'u'>: Also support printing the low-order 16 bits.
7671         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
7672         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
7673         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
7674         *booldi3_internal3 and split): Delete.
7675         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
7676         *bool<mode>3_dot2): New.
7677         (two anonymous define_splits for non_logical_cint_operand): Merge.
7679 2014-08-17  Marek Polacek  <polacek@redhat.com>
7680             Manuel López-Ibáñez  <manu@gcc.gnu.org>
7682         PR c/62059
7683         * diagnostic.c (adjust_line): Add gcc_checking_assert.
7684         (diagnostic_show_locus): Don't print caret diagnostic
7685         if a column is larger than the line_width.
7687 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
7689         * common.opt: Make the ISL AST generator to be the main code generator
7690         of Graphite.
7692 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
7694         * wide-int.h (generic_wide_int): Declare as class instead of struct.
7696 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
7698         PR target/61641
7699         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
7700         Declare.
7701         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
7702         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
7703         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
7704         Define.
7705         * config/pa/pa.md (begin_brtab): Delete insn.
7706         (end_brtab): Likewise.
7708 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7710         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
7712 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
7714         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
7715         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
7716         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
7717         (get_dynamic_type): Remove.
7718         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
7719         (clear_speculation): Bring to ipa-deivrt.h
7720         (get_class_context): Rename to ...
7721         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
7722         (contains_type_p): Update.
7723         (get_dynamic_type): Rename to ...
7724         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
7725         (possible_polymorphic_call_targets): UPdate.
7726         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
7727         * ipa-prop.c (ipa_analyze_call_uses): Update.
7729 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
7731         * doc/invoke.texi (SH options): Document missing processor variant
7732         options.  Remove references to Hitachi.  Undocument deprecated mspace
7733         option.
7735 2014-08-15  Jason Merrill  <jason@redhat.com>
7737         * tree.c (type_hash_canon): Uncomment assert.
7739 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7741         * input.h (in_system_header_at): Add comment.
7743 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7745         PR fortran/44054
7746         * diagnostic.c (build_message_string): Make it extern.
7747         * diagnostic.h (build_message_string): Make it extern.
7749 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
7751         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
7752         load/store from/to non-floating class pseudo.
7754 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7756         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
7758 2014-08-15  Richard Biener  <rguenther@suse.de>
7760         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
7761         (get_constraint_for_ssa_var): Remove dead code.
7762         (get_constraint_for_1): Adjust.
7763         (find_what_var_points_to): Likewise.
7764         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
7766 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
7768         PR target/61878
7769         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
7770         (_mm512_mask_cmpge_epu32_mask): Ditto.
7771         (_mm512_cmpge_epu32_mask): Ditto.
7772         (_mm512_mask_cmpge_epi64_mask): Ditto.
7773         (_mm512_cmpge_epi64_mask): Ditto.
7774         (_mm512_mask_cmpge_epu64_mask): Ditto.
7775         (_mm512_cmpge_epu64_mask): Ditto.
7776         (_mm512_mask_cmple_epi32_mask): Ditto.
7777         (_mm512_cmple_epi32_mask): Ditto.
7778         (_mm512_mask_cmple_epu32_mask): Ditto.
7779         (_mm512_cmple_epu32_mask): Ditto.
7780         (_mm512_mask_cmple_epi64_mask): Ditto.
7781         (_mm512_cmple_epi64_mask): Ditto.
7782         (_mm512_mask_cmple_epu64_mask): Ditto.
7783         (_mm512_cmple_epu64_mask): Ditto.
7784         (_mm512_mask_cmplt_epi32_mask): Ditto.
7785         (_mm512_cmplt_epi32_mask): Ditto.
7786         (_mm512_mask_cmplt_epu32_mask): Ditto.
7787         (_mm512_cmplt_epu32_mask): Ditto.
7788         (_mm512_mask_cmplt_epi64_mask): Ditto.
7789         (_mm512_cmplt_epi64_mask): Ditto.
7790         (_mm512_mask_cmplt_epu64_mask): Ditto.
7791         (_mm512_cmplt_epu64_mask): Ditto.
7792         (_mm512_mask_cmpneq_epi32_mask): Ditto.
7793         (_mm512_mask_cmpneq_epu32_mask): Ditto.
7794         (_mm512_cmpneq_epu32_mask): Ditto.
7795         (_mm512_mask_cmpneq_epi64_mask): Ditto.
7796         (_mm512_cmpneq_epi64_mask): Ditto.
7797         (_mm512_mask_cmpneq_epu64_mask): Ditto.
7798         (_mm512_cmpneq_epu64_mask): Ditto.
7799         (_mm512_castpd_ps): Ditto.
7800         (_mm512_castpd_si512): Ditto.
7801         (_mm512_castps_pd): Ditto.
7802         (_mm512_castps_si512): Ditto.
7803         (_mm512_castsi512_ps): Ditto.
7804         (_mm512_castsi512_pd): Ditto.
7805         (_mm512_castpd512_pd128): Ditto.
7806         (_mm512_castps512_ps128): Ditto.
7807         (_mm512_castsi512_si128): Ditto.
7808         (_mm512_castpd512_pd256): Ditto.
7809         (_mm512_castps512_ps256): Ditto.
7810         (_mm512_castsi512_si256): Ditto.
7811         (_mm512_castpd128_pd512): Ditto.
7812         (_mm512_castps128_ps512): Ditto.
7813         (_mm512_castsi128_si512): Ditto.
7814         (_mm512_castpd256_pd512): Ditto.
7815         (_mm512_castps256_ps512): Ditto.
7816         (_mm512_castsi256_si512): Ditto.
7817         (_mm512_cmpeq_epu32_mask): Ditto.
7818         (_mm512_mask_cmpeq_epu32_mask): Ditto.
7819         (_mm512_mask_cmpeq_epu64_mask): Ditto.
7820         (_mm512_cmpeq_epu64_mask): Ditto.
7821         (_mm512_cmpgt_epu32_mask): Ditto.
7822         (_mm512_mask_cmpgt_epu32_mask): Ditto.
7823         (_mm512_mask_cmpgt_epu64_mask): Ditto.
7824         (_mm512_cmpgt_epu64_mask): Ditto.
7825         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
7826         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
7827         * config/i386/i386.c (enum ix86_builtins): Add
7828         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
7829         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
7830         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
7831         (bdesc_args): Add __builtin_ia32_si512_256si,
7832         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
7833         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
7834         __builtin_ia32_pd512_pd.
7835         (ix86_expand_args_builtin): Handle new FTYPEs.
7836         * config/i386/sse.md (castmode): Add 512-bit modes.
7837         (AVX512MODE2P): New.
7838         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
7839         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
7841 2014-08-15  Richard Biener  <rguenther@suse.de>
7843         * fold-const.c (tree_swap_operands_p): Put all constants
7844         last, also strip sign-changing NOPs when considering further
7845         canonicalization.  Canonicalize also when optimizing for size.
7847 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7849         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
7850         one_match > zero_match case to just before simple_sequence.
7852 2014-08-15  Richard Biener  <rguenther@suse.de>
7854         * data-streamer.h (streamer_string_index, string_for_index):
7855         Remove.
7856         * data-streamer-out.c (streamer_string_index): Make static.
7857         * data-streamer-in.c (string_for_index): Likewise.
7858         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
7859         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
7861 2014-08-15  Richard Biener  <rguenther@suse.de>
7863         PR tree-optimization/62031
7864         * tree-data-ref.c (dr_analyze_indices): Do not set
7865         DR_UNCONSTRAINED_BASE.
7866         (dr_may_alias_p): All indirect accesses have to go the
7867         formerly DR_UNCONSTRAINED_BASE path.
7868         * tree-data-ref.h (struct indices): Remove
7869         unconstrained_base member.
7870         (DR_UNCONSTRAINED_BASE): Remove.
7872 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
7874         PR middle-end/62092
7875         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
7876         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
7877         in OMP_CLAUSE_MAP in some outer target region.
7879 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
7881         * tree-ssa-loop-ivopts.c (ivopts_data): New field
7882         name_expansion_cache.
7883         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
7884         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
7885         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
7886         (difference_cannot_overflow_p): New parameter.  Use affine
7887         expansion for equality check.
7888         (iv_elimination_compare_lt): Pass new argument.
7890 2014-08-14  DJ Delorie  <dj@redhat.com>
7892         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
7893         variables to the accumulator.
7895         * config/rl78/predicates.md (rl78_near_mem_operand): New.
7896         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
7897         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
7898         with far-far moves.
7900         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
7901         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
7902         (umulqihi3_virt): Likewise.
7903         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
7904         (umulqihi3_real): Likewise.
7906         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
7908 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
7910         PR tree-optimization/62091
7911         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
7912         function_entry_reached.
7913         (walk_aliased_vdefs): Clear it here.
7914         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
7916 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
7918         * ipa-utils.h (compare_virtual_tables): Declare.
7919         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
7921 2014-08-14  Marek Polacek  <polacek@redhat.com>
7923         DR 458
7924         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
7925         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
7927 2014-08-14  Tom de Vries  <tom@codesourcery.com>
7929         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
7931 2014-08-14  Tom de Vries  <tom@codesourcery.com>
7933         PR rtl-optimization/62004
7934         PR rtl-optimization/62030
7935         * ifcvt.c (rtx_interchangeable_p): New function.
7936         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
7937         * emit-rtl.h (mem_attrs_eq_p): Declare.
7939 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
7941         * graphite-scop-detection.c:
7942         Add inclusion of cp-tree.h.
7943         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
7944         in case they are pointers to object types
7946 2014-08-14  Richard Biener  <rguenther@suse.de>
7948         * BASE-VER: Change to 5.0.0
7950 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7951             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7952             Anna Tikhonova  <anna.tikhonova@intel.com>
7953             Ilya Tocar  <ilya.tocar@intel.com>
7954             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7955             Ilya Verbin  <ilya.verbin@intel.com>
7956             Kirill Yukhin  <kirill.yukhin@intel.com>
7957             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7959         * config/i386/sse.md (define_mode_attr avx512): New.
7960         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
7961         V4DI modes.
7962         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
7963         (define_mode_attr ssse3_avx2): Ditto.
7964         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
7965         (define_mode_attr avx2_avx512bw): New.
7966         (define_mode_attr ssedoublemodelower): New.
7967         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
7968         V32HI, V64QI modes.
7969         (define_mode_attr ssebytemode): Allow V8DI modes.
7970         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
7971         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
7972         (define_mode_attr ssePSmode2): New.
7973         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
7974         V16HI, V32HI modes.
7975         (define_mode_attr dbpsadbwmode): New.
7976         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
7977         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
7978         (vi8_sse4_1_avx2_avx512): New.
7979         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
7980         mode attribute.
7981         (define_mode_attr blendbits): Move before its immediate use.
7983 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7984             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7985             Anna Tikhonova  <anna.tikhonova@intel.com>
7986             Ilya Tocar  <ilya.tocar@intel.com>
7987             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7988             Ilya Verbin  <ilya.verbin@intel.com>
7989             Kirill Yukhin  <kirill.yukhin@intel.com>
7990             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7992         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
7993         * config/i386/subst.md
7994         (define_mode_iterator SUBST_V): Update.
7995         (define_mode_iterator SUBST_A): Ditto.
7996         (define_subst_attr "mask_operand7"): New.
7997         (define_subst_attr "mask_operand10"): New.
7998         (define_subst_attr "mask_operand_arg34") : New.
7999         (define_subst_attr "mask_expand_op3"): New.
8000         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
8001         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
8002         (define_subst_attr "mask_avx512vl_condition"): New.
8003         (define_subst_attr "round_mask_operand4"): Ditto.
8004         (define_subst_attr "round_mask_scalar_op3"): Delete.
8005         (define_subst_attr "round_mask_op4"): New.
8006         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
8007         V16SImode.
8008         (define_subst_attr "round_modev8sf_condition"): New.
8009         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
8010         <MODE>mode.
8011         (define_subst_attr "round_saeonly_mask_operand4"): New.
8012         (define_subst_attr "round_saeonly_mask_op4"): New.
8013         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
8014         V8DImode, V16SImode.
8015         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
8016         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
8017         (define_subst_attr "mask_expand4_args"): New.
8018         (define_subst "mask_expand4"): New.
8020 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8021             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8022             Anna Tikhonova  <anna.tikhonova@intel.com>
8023             Ilya Tocar  <ilya.tocar@intel.com>
8024             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8025             Ilya Verbin  <ilya.verbin@intel.com>
8026             Kirill Yukhin  <kirill.yukhin@intel.com>
8027             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8029         * config/i386/i386.md
8030         (define_attr "isa"): Add avx512bw,noavx512bw.
8031         (define_attr "enabled"): Ditto.
8032         (define_split): Add 32/64-bit mask logic.
8033         (define_insn "*k<logic>qi"): New.
8034         (define_insn "*k<logic>hi"): New.
8035         (define_insn "*anddi_1"): Add mask version.
8036         (define_insn "*andsi_1"): Ditto.
8037         (define_insn "*<code><mode>_1"): Ditto.
8038         (define_insn "*<code>hi_1"): Ditto.
8039         (define_insn "kxnor<mode>"): New.
8040         (define_insn "kunpcksi"): New.
8041         (define_insn "kunpckdi"): New.
8042         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
8043         (define_insn "*one_cmplhi2_1"): Ditto.
8045 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8046             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8047             Anna Tikhonova  <anna.tikhonova@intel.com>
8048             Ilya Tocar  <ilya.tocar@intel.com>
8049             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8050             Ilya Verbin  <ilya.verbin@intel.com>
8051             Kirill Yukhin  <kirill.yukhin@intel.com>
8052             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8054         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
8055         V32HImode.
8057 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8058             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8059             Anna Tikhonova  <anna.tikhonova@intel.com>
8060             Ilya Tocar  <ilya.tocar@intel.com>
8061             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8062             Ilya Verbin  <ilya.verbin@intel.com>
8063             Kirill Yukhin  <kirill.yukhin@intel.com>
8064             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8066         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
8067         registers.
8068         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
8069         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
8070         xmm/ymm16+ when availble.
8071         * config/i386/i386.h
8072         (HARD_REGNO_NREGS): Add mask regs.
8073         (VALID_AVX512F_REG_MODE): Ditto.
8074         (VALID_AVX512F_REG_MODE) : Define.
8075         (VALID_MASK_AVX512BW_MODE): Ditto.
8076         (reg_class) (MASK_REG_P(X)): Define.
8077         * config/i386/i386.md: Do not split long moves with mask register,
8078         use kmovb if avx512bw is availible.
8079         (movdi_internal): Handle mask registers.
8081 2014-08-14  Richard Biener  <rguenther@suse.de>
8083         PR tree-optimization/62081
8084         * tree-ssa-loop.c (pass_fix_loops): New pass.
8085         (pass_tree_loop::gate):  Do not fixup loops here.
8086         * tree-pass.h (make_pass_fix_loops): Declare.
8087         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
8089 2014-08-14  Richard Biener  <rguenther@suse.de>
8091         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
8092         (type_hash_canon): ... this and avoid 2nd lookup for the add.
8094 2014-08-14  Richard Biener  <rguenther@suse.de>
8096         PR tree-optimization/62090
8097         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
8098         (fold_builtin_2): Do not fold sprintf.
8099         (fold_builtin_3): Likewise.
8100         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
8101         moved from builtins.c.
8102         (gimple_fold_builtin): Fold sprintf.
8104 2014-08-14  Richard Biener  <rguenther@suse.de>
8106         PR rtl-optimization/62079
8107         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
8108         run cleanup_cfg.
8110 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
8112         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
8113         current_function_decl.
8115 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
8117         * cgraph.c (cgraph_node::function_symbol): Fix wrong
8118         cgraph_function_node to cgraph_node::function_symbol
8119         refactoring.
8121 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8123         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
8124         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
8126 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
8128         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
8129         warning.
8131 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
8133         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
8134         generator.
8136 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
8138         PR target/62025
8139         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
8140         any registers that are used in mem_insn.
8142 2014-08-12  Steve Ellcey  <sellcey@mips.com>
8144         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
8146 2014-08-12  Steve Ellcey  <sellcey@mips.com>
8148         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
8149         (MULTILIB_DIRNAMES): Ditto.
8150         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
8151         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
8152         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
8153         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
8154         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
8155         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
8157 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8159         PR target/61413
8160         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
8161         of __ARM_SIZEOF_WCHAR_T.
8163 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8165         PR target/62098
8166         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
8167         Remove unnecessary attributes.
8169 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
8171         * internal-fn.c (init_internal_fns): Fix off-by-one.
8173 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8174             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8175             Anna Tikhonova  <anna.tikhonova@intel.com>
8176             Ilya Tocar  <ilya.tocar@intel.com>
8177             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8178             Ilya Verbin  <ilya.verbin@intel.com>
8179             Kirill Yukhin  <kirill.yukhin@intel.com>
8180             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8182         * config/i386/i386.c (standard_sse_constant_opcode): Use
8183         vpxord/vpternlog if avx512 is availible.
8185 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8187         PR middle-end/62103
8188         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
8189         bitfields, that is when size doesn't match the size of type or the
8190         size of the constructor.
8192 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8194         * config/rs6000/constraints.md (wh constraint): New constraint,
8195         for FP registers if direct move is available.
8196         (wi constraint): New constraint, for VSX/FP registers that can
8197         handle 64-bit integers.
8198         (wj constraint): New constraint for VSX/FP registers that can
8199         handle 64-bit integers for direct moves.
8200         (wk constraint): New constraint for VSX/FP registers that can
8201         handle 64-bit doubles for direct moves.
8202         (wy constraint): Make documentation match implementation.
8204         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
8205         scalar_in_vmx_p field to simplify tests of whether SFmode or
8206         DFmode can go in the Altivec registers.
8207         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
8208         (rs6000_setup_reg_addr_masks): Likewise.
8209         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
8210         field, and wh/wi/wj/wk constraints.
8211         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
8212         the wh/wi/wj/wk constraints.
8213         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
8214         upper registers, prefer VSX registers unless the operation is a
8215         memory operation with REG+OFFSET addressing.
8217         * config/rs6000/vsx.md (VSr mode attribute): Add support for
8218         DImode.  Change SFmode to use ww constraint instead of d to allow
8219         SF registers in the upper registers.
8220         (VSr2): Likewise.
8221         (VSr3): Likewise.
8222         (VSr5): Fix thinko in comment.
8223         (VSa): New mode attribute that is an alternative to wa, that
8224         returns the VSX register class that a mode can go in, but may not
8225         be the preferred register class.
8226         (VS_64dm): New mode attribute for appropriate register classes for
8227         referencing 64-bit elements of vectors for direct moves and normal
8228         moves.
8229         (VS_64reg): Likewise.
8230         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
8231         register allocator to only registers the data type can handle.
8232         (vsx_le_perm_load_<mode>): Likewise.
8233         (vsx_le_perm_store_<mode>): Likewise.
8234         (vsx_xxpermdi2_le_<mode>): Likewise.
8235         (vsx_xxpermdi4_le_<mode>): Likewise.
8236         (vsx_lxvd2x2_le_<mode>): Likewise.
8237         (vsx_lxvd2x4_le_<mode>): Likewise.
8238         (vsx_stxvd2x2_le_<mode>): Likewise.
8239         (vsx_add<mode>3): Likewise.
8240         (vsx_sub<mode>3): Likewise.
8241         (vsx_mul<mode>3): Likewise.
8242         (vsx_div<mode>3): Likewise.
8243         (vsx_tdiv<mode>3_internal): Likewise.
8244         (vsx_fre<mode>2): Likewise.
8245         (vsx_neg<mode>2): Likewise.
8246         (vsx_abs<mode>2): Likewise.
8247         (vsx_nabs<mode>2): Likewise.
8248         (vsx_smax<mode>3): Likewise.
8249         (vsx_smin<mode>3): Likewise.
8250         (vsx_sqrt<mode>2): Likewise.
8251         (vsx_rsqrte<mode>2): Likewise.
8252         (vsx_tsqrt<mode>2_internal): Likewise.
8253         (vsx_fms<mode>4): Likewise.
8254         (vsx_nfma<mode>4): Likewise.
8255         (vsx_eq<mode>): Likewise.
8256         (vsx_gt<mode>): Likewise.
8257         (vsx_ge<mode>): Likewise.
8258         (vsx_eq<mode>_p): Likewise.
8259         (vsx_gt<mode>_p): Likewise.
8260         (vsx_ge<mode>_p): Likewise.
8261         (vsx_xxsel<mode>): Likewise.
8262         (vsx_xxsel<mode>_uns): Likewise.
8263         (vsx_copysign<mode>3): Likewise.
8264         (vsx_float<VSi><mode>2): Likewise.
8265         (vsx_floatuns<VSi><mode>2): Likewise.
8266         (vsx_fix_trunc<mode><VSi>2): Likewise.
8267         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
8268         (vsx_x<VSv>r<VSs>i): Likewise.
8269         (vsx_x<VSv>r<VSs>ic): Likewise.
8270         (vsx_btrunc<mode>2): Likewise.
8271         (vsx_b2trunc<mode>2): Likewise.
8272         (vsx_floor<mode>2): Likewise.
8273         (vsx_ceil<mode>2): Likewise.
8274         (vsx_<VS_spdp_insn>): Likewise.
8275         (vsx_xscvspdp): Likewise.
8276         (vsx_xvcvspuxds): Likewise.
8277         (vsx_float_fix_<mode>2): Likewise.
8278         (vsx_set_<mode>): Likewise.
8279         (vsx_extract_<mode>_internal1): Likewise.
8280         (vsx_extract_<mode>_internal2): Likewise.
8281         (vsx_extract_<mode>_load): Likewise.
8282         (vsx_extract_<mode>_store): Likewise.
8283         (vsx_splat_<mode>): Likewise.
8284         (vsx_xxspltw_<mode>): Likewise.
8285         (vsx_xxspltw_<mode>_direct): Likewise.
8286         (vsx_xxmrghw_<mode>): Likewise.
8287         (vsx_xxmrglw_<mode>): Likewise.
8288         (vsx_xxsldwi_<mode>): Likewise.
8289         (vsx_xscvdpspn): Tighten constraints to only use register classes
8290         the types use.
8291         (vsx_xscvspdpn): Likewise.
8292         (vsx_xscvdpspn_scalar): Likewise.
8294         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
8295         wj, and wk constraints.
8296         (GPR_REG_CLASS_P): New helper macro for register classes targeting
8297         general purpose registers.
8299         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
8300         direct moves.
8301         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
8302         DImode instead of wm.  Use wk constraint for direct move of DFmode
8303         instead of wm.
8304         (extendsidi2_lfiwax): Likewise.
8305         (lfiwax): Likewise.
8306         (lfiwzx): Likewise.
8307         (movdi_internal64): Likewise.
8309         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
8310         wk constraints. Make the wy constraint documentation match them
8311         implementation.
8313 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
8315         Replacement of isl_int by isl_val
8316         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
8317         (compute_bounds_for_param): use isl_val instead of isl_int
8318         (compute_bounds_for_loop): likewise
8319         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
8320         (build_linearized_memory_access): use isl_val instead of isl_int
8321         (pdr_stride_in_loop): likewise
8322         * graphite-optimize-isl.c:
8323         (getPrevectorMap): use isl_val instead of isl_int
8324         * graphite-poly.c:
8325         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
8326         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
8327         (extern the_isl_ctx): declare
8328         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
8329         (extract_affine_gmp): likewise
8330         (wrap): likewise
8331         (build_loop_iteration_domains): likewise
8332         (add_param_constraints): likewise
8334 2014-08-11  Richard Biener  <rguenther@suse.de>
8336         PR tree-optimization/62075
8337         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
8338         handle uses in patterns.
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_AVX512VL_SET): Define.
8351         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
8352         (ix86_handle_option): Handle OPT_mavx512vl.
8353         * config/i386/cpuid.h (bit_AVX512VL): Define.
8354         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
8355         set -mavx512vl accordingly.
8356         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8357         OPTION_MASK_ISA_AVX512VL.
8358         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
8359         (ix86_option_override_internal): Define PTA_AVX512VL, handle
8360         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
8361         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
8362         * config/i386/i386.h (TARGET_AVX512VL): Define.
8363         (TARGET_AVX512VL_P(x)): Ditto.
8364         * config/i386/i386.opt: Add mavx512vl.
8366 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
8368         PR tree-optimization/62073
8369         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
8370         a basic block.
8372 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8373             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8374             Anna Tikhonova  <anna.tikhonova@intel.com>
8375             Ilya Tocar  <ilya.tocar@intel.com>
8376             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8377             Ilya Verbin  <ilya.verbin@intel.com>
8378             Kirill Yukhin  <kirill.yukhin@intel.com>
8379             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8381         * common/config/i386/i386-common.c
8382         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
8383         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
8384         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
8385         (ix86_handle_option): Handle OPT_mavx512bw.
8386         * config/i386/cpuid.h (bit_AVX512BW): Define.
8387         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
8388         set -mavx512bw accordingly.
8389         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8390         OPTION_MASK_ISA_AVX512BW.
8391         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
8392         (ix86_option_override_internal): Define PTA_AVX512BW, handle
8393         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
8394         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
8395         * config/i386/i386.h (TARGET_AVX512BW): Define.
8396         (TARGET_AVX512BW_P(x)): Ditto.
8397         * config/i386/i386.opt: Add mavx512bw.
8399 2014-08-11  Richard Biener  <rguenther@suse.de>
8401         PR tree-optimization/62070
8402         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
8403         Remove SSA checking.
8405 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
8407         * asan.c (asan_check_flags): New enum.
8408         (build_check_stmt_with_calls): Removed function.
8409         (build_check_stmt): Split inlining logic to
8410         asan_expand_check_ifn.
8411         (instrument_derefs): Rename parameter.
8412         (instrument_mem_region_access): Rename parameter.
8413         (instrument_strlen_call): Likewise.
8414         (asan_expand_check_ifn): New function.
8415         (asan_instrument): Remove old code.
8416         (pass_sanopt::execute): Change handling of
8417         asan-instrumentation-with-call-threshold.
8418         (asan_clear_shadow): Fix formatting.
8419         (asan_function_start): Likewise.
8420         (asan_emit_stack_protection): Likewise.
8421         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
8422         Update description.
8423         * internal-fn.c (expand_ASAN_CHECK): New function.
8424         * internal-fn.def (ASAN_CHECK): New internal function.
8425         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
8426         Update description.
8427         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
8428         * tree.c: Small comment fix.
8430 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
8432         * gimple.c (gimple_call_fnspec): Support internal functions.
8433         (gimple_call_return_flags): Use const.
8434         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
8435         * internal-fn.def: Add fnspec information.
8436         * internal-fn.h (internal_fn_fnspec): New function.
8437         (init_internal_fns): Declare new function.
8438         * internal-fn.c (internal_fn_fnspec_array): New global variable.
8439         (init_internal_fns): New function.
8440         * tree-core.h: Update macro call.
8441         * tree.c (build_common_builtin_nodes): Initialize internal fns.
8443 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
8445         * lto-streamer.h (struct output_block::symbol): Change from
8446         struct symtab_node to plain symtab_node.
8447         (referenced_from_this_partition_p): Change first parameter
8448         from struct symtab_node to plain symtab_node.
8450 2014-08-10  Marek Polacek  <polacek@redhat.com>
8452         PR c/51849
8453         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
8455 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
8457         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
8458         DECL correctly; do not give up on types in static storage.
8460 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
8462         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
8464 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
8466         * graphite-isl-ast-to-gimple.c:
8467         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
8469         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
8471 2014-08-08  Guozhi Wei  <carrot@google.com>
8473         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
8475 2014-08-08  Cary Coutant  <ccoutant@google.com>
8477         * dwarf2out.c (get_skeleton_type_unit): Remove.
8478         (output_skeleton_debug_sections): Remove skeleton type units.
8479         (output_comdat_type_unit): Likewise.
8480         (dwarf2out_finish): Likewise.
8482 2014-08-07  Yi Yang  <ahyangyi@google.com>
8484         * predict.c (expr_expected_value_1): Remove the redundant assignment.
8486 2014-08-08  Richard Biener  <rguenther@suse.de>
8488         * lto-streamer.h (struct lto_input_block): Make it a class
8489         with a constructor.
8490         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
8491         (struct lto_function_header, struct lto_simple_header,
8492         struct lto_simple_header_with_strings,
8493         struct lto_decl_header, struct lto_function_header): Make
8494         a simple inheritance hieararchy.  Remove unused fields.
8495         (struct lto_asm_header): Remove.
8496         * lto-streamer-out.c (produce_asm): Adjust.
8497         (lto_output_toplevel_asms): Likewise.
8498         (produce_asm_for_decls): Likewise.
8499         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8500         * data-streamer-in.c (string_for_index): Likewise.
8501         * ipa-inline-analysis.c (inline_read_section): Likewise.
8502         * ipa-prop.c (ipa_prop_read_section): Likewise.
8503         (read_replacements_section): Likewise.
8504         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
8505         * lto-section-in.c (lto_create_simple_input_block): Likewise.
8506         (lto_destroy_simple_input_block): Likewise.
8507         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
8508         (lto_input_toplevel_asms): Likewise.
8510 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8511             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8512             Anna Tikhonova  <anna.tikhonova@intel.com>
8513             Ilya Tocar  <ilya.tocar@intel.com>
8514             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8515             Ilya Verbin  <ilya.verbin@intel.com>
8516             Kirill Yukhin  <kirill.yukhin@intel.com>
8517             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8519         * common/config/i386/i386-common.c
8520         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
8521         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
8522         (ix86_handle_option): Handle OPT_mavx512dq.
8523         * config/i386/cpuid.h (bit_AVX512DQ): Define.
8524         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
8525         set -mavx512dq accordingly.
8526         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8527         OPTION_MASK_ISA_AVX512DQ.
8528         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
8529         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
8530         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
8531         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
8532         * config/i386/i386.h (TARGET_AVX512DQ): Define.
8533         (TARGET_AVX512DQ_P(x)): Ditto.
8534         * config/i386/i386.opt: Add mavx512dq.
8536 2014-08-08  Richard Biener  <rguenther@suse.de>
8538         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
8539         target_percent, target_percent_s): Export.
8540         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
8541         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
8542         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
8543         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
8544         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
8545         Move to gimple-fold.c.
8546         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
8547         strcat and strcpy.
8548         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
8549         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
8550         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
8551         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
8552         (rewrite_call_expr_array): Remove.
8553         (fold_builtin_sprintf_chk): Likewise.
8554         (fold_builtin_snprintf_chk): Likewise.
8555         (fold_builtin_varargs): Remove handling of sprintf_chk,
8556         vsprintf_chk, snprintf_chk and vsnprintf_chk.
8557         (gimple_fold_builtin_sprintf_chk): Remove.
8558         (gimple_fold_builtin_snprintf_chk): Likewise.
8559         (gimple_fold_builtin_varargs): Likewise.
8560         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
8561         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
8562         * gimple.c (gimple_seq_add_seq_without_update): New function.
8563         * gimple.h (gimple_seq_add_seq_without_update): Declare.
8564         * gimple-fold.c: Include output.h.
8565         (gsi_replace_with_seq_vops): New function, split out from ...
8566         (gimplify_and_update_call_from_tree): ... here.
8567         (replace_call_with_value): New function.
8568         (replace_call_with_call_and_fold): Likewise.
8569         (var_decl_component_p): Moved from builtins.c.
8570         (gimple_fold_builtin_memory_op): Moved from builtins.c
8571         fold_builtin_memory_op and rewritten to GIMPLE.
8572         (gimple_fold_builtin_memset): Likewise.
8573         (gimple_fold_builtin_strcpy): Likewise.
8574         (gimple_fold_builtin_strncpy): Likewise.
8575         (gimple_fold_builtin_strcat): Likewise.
8576         (gimple_fold_builtin_fputs): Likewise.
8577         (gimple_fold_builtin_memory_chk): Likewise.
8578         (gimple_fold_builtin_stxcpy_chk): Likewise.
8579         (gimple_fold_builtin_stxncpy_chk): Likewise.
8580         (gimple_fold_builtin_snprintf_chk): Likewise.
8581         (gimple_fold_builtin_sprintf_chk): Likewise.
8582         (gimple_fold_builtin_strlen): New function.
8583         (gimple_fold_builtin_with_strlen): New function split out from
8584         gimple_fold_builtin.
8585         (gimple_fold_builtin): Change signature and handle
8586         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
8587         here.  Call gimple_fold_builtin_with_strlen.
8588         (gimple_fold_call): Adjust.
8590 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
8592         * calls.c (precompute_arguments): Check
8593          promoted_for_signed_and_unsigned_p and set the promoted mode.
8594         (promoted_for_signed_and_unsigned_p): New function.
8595         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
8596         and set the promoted mode.
8597         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
8598         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
8599         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
8602 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
8604         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
8605         instead of SUBREG_PROMOTED_UNSIGNED_SET.
8606         (expand_call): Likewise.
8607         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
8608         to get promoted mode.
8609         * combine.c (record_promoted_value): Skip > 0 comparison with
8610         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
8611         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
8612         of SUBREG_PROMOTED_UNSIGNED_P.
8613         (convert_modes): Likewise.
8614         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
8615         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
8616         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
8617         SUBREG_PROMOTED_UNSIGNED_SET.
8618         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
8619         instead of SUBREG_PROMOTED_UNSIGNED_SET.
8620         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
8621         SUBREG_PROMOTED_SET.
8622         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
8623         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
8624         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
8625         of SUBREG_PROMOTED_UNSIGNED_P.
8626         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
8627         (SUBREG_PROMOTED_SET): New define.
8628         (SUBREG_PROMOTED_GET): Likewise.
8629         (SUBREG_PROMOTED_SIGN): Likewise.
8630         (SUBREG_PROMOTED_SIGNED_P): Likewise.
8631         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
8632         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
8633         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
8634         instead of SUBREG_PROMOTED_UNSIGNED_GET.
8635         (nonzero_bits1): Skip > 0 comparison with the results as
8636         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
8637         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
8638         of !SUBREG_PROMOTED_UNSIGNED_P.
8639         * simplify-rtx.c (simplify_unary_operation_1): Use new
8640         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
8641         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
8642         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
8643         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
8645 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
8647         * ipa-devirt.c: Include gimple-pretty-print.h
8648         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
8649         further tests.
8650         (decl_maybe_in_construction_p): Fix conditional on cdtor check
8651         (get_polymorphic_call_info): Fix return value
8652         (type_change_info): New sturcture based on ipa-prop
8653         variant.
8654         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
8655         based on ipa-prop variant.
8656         (extr_type_from_vtbl_ptr_store): New function
8657         based on ipa-prop variant.
8658         (record_known_type): New function.
8659         (check_stmt_for_type_change): New function.
8660         (get_dynamic_type): New function.
8661         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
8662         * tree-ssa-pre.c: ipa-utils.h
8663         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
8664         machinery; sanity check with ipa-prop devirtualization.
8665         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
8666         polymorphic flag.
8668 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
8670         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
8671         * alias.c, cfgexpand.c, cgraphbuild.c,
8672         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
8673         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
8674         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
8675         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
8676         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
8677         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8678         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
8679         dse.c, except.c, gengtype.c, gimple-expr.c,
8680         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
8681         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
8682         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
8683         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
8684         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
8685         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
8686         pointer-set.h.
8687         * pointer-set.c: Remove file.
8688         * pointer-set.h: Remove file.
8690 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8692         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
8693         * config/arm/types.md (f_sels, f_seld): Delete.
8695 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8697         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
8698         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
8699         (aarch64_movdi_<mode>high): Likewise.
8700         (aarch64_mov<mode>high_di): Likewise.
8701         (aarch64_movdi_<mode>low): Likewise.
8702         (aarch64_mov<mode>low_di): Likewise.
8703         (aarch64_movtilow_tilow): Likewise.
8704         Add comment explaining usage of fp,simd attributes and of
8705         TARGET_FLOAT and TARGET_SIMD.
8707 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
8708             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8710         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
8711         Use MOVN when one of the half-words is 0xffff.
8713 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
8715         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
8717 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8719         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
8720         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
8721         (rfs_str): String corresponding to RFS_* constants.
8722         (rank_for_schedule_stats_t): New typedef.
8723         (rank_for_schedule_stats): New static variable.
8724         (rfs_result): New static function.
8725         (rank_for_schedule): Track statistics for deciding heuristics.
8726         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
8727         static functions.
8728         (ready_sort): Use them for debug printouts.
8729         (schedule_block): Init statistics state.  Print statistics on
8730         rank_for_schedule decisions.
8732 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8734         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
8736 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
8738         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
8739         constraint.
8741 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
8743         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
8744         function to not conflict.
8745         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
8746         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
8747         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
8748         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
8749         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
8750         of pointer_map.
8752 2014-08-07  Marek Polacek  <polacek@redhat.com>
8754         * fold-const.c (fold_binary_loc): Add folding of
8755         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
8757 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
8759         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
8760         instead of type size.
8761         (ASM_FINISH_DECLARE_OBJECT): Likewise.
8763 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
8765         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
8766         (*thumb1_movqi_insn): Likewise.
8767         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
8769 2014-08-07  Tom de Vries  <tom@codesourcery.com>
8771         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8772         (glibc_2_11_or_earlier): Remove effective-target keywords.
8774 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
8776         * config/arm/arm.c (bdesc_2arg): Fix typo.
8777         (arm_atomic_assign_expand_fenv): Remove The default implementation.
8779 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8781         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
8783 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
8785         PR debug/61923
8786         * haifa-sched.c (advance_one_cycle): Fix dump.
8787         (schedule_block): Don't advance cycle if we are already at the
8788         beginning of the cycle.
8790 2014-08-06  Martin Jambor  <mjambor@suse.cz>
8792         PR ipa/61393
8793         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
8795 2014-08-06  Richard Biener  <rguenther@suse.de>
8797         PR lto/62034
8798         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
8799         SCCs here.
8800         (lto_input_tree): Pop SCCs here.
8802 2014-08-06  Richard Biener  <rguenther@suse.de>
8804         PR tree-optimization/61320
8805         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
8806         handle misaligned loads.
8808 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
8810         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
8811         (aarch64_expand_vec_perm_const): Check for dup before zip.
8813 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8815         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
8816         CONST_INT_P instead of GET_CODE and compare.
8817         (aarch64_select_cc_mode): Likewise.
8818         (aarch64_print_operand): Likewise.
8819         (aarch64_rtx_costs): Likewise.
8820         (aarch64_simd_valid_immediate): Likewise.
8821         (aarch64_simd_check_vect_par_cnst_half): Likewise.
8822         (aarch64_simd_emit_pair_result_insn): Likewise.
8824 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
8826         * gdbhooks.py (find_gcc_source_dir): New helper function.
8827         (class PassNames): New class, locating and parsing passes.def.
8828         (class BreakOnPass): New command "break-on-pass".
8830 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
8832         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
8833         getting olde.
8835 2014-08-05  Richard Biener  <rguenther@suse.de>
8837         PR rtl-optimization/61672
8838         * emit-rtl.h (mem_attrs_eq_p): Declare.
8839         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
8840         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
8841         * cfgcleanup.c (merge_memattrs): Likewise.
8842         Include emit-rtl.h.
8844 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8846         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
8847         rather than singleton vectors.
8848         (vqdmlsls_lane_s32): Likewise.
8850 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8852         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
8853         Use VSDQ_HSI mode iterator.
8854         (aarch64_sqrdmulh_laneq<mode>): Likewise.
8855         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
8856         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
8857         Use BUILTIN_VDQHS macro.
8858         (sqrdmulh_laneq): Likewise.
8859         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
8860         (vqdmlals_laneq_s32): Likewise.
8861         (vqdmlslh_laneq_s16): Likewise.
8862         (vqdmlsls_laneq_s32): Likewise.
8863         (vqdmulhh_laneq_s16): Likewise.
8864         (vqdmulhs_laneq_s32): Likewise.
8865         (vqrdmulhh_laneq_s16): Likewise.
8866         (vqrdmulhs_laneq_s32): Likewise.
8868 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8870         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
8871         (vmuld_laneq_f64): Likewise.
8872         (vmuls_laneq_f32): Likewise.
8873         (vmul_n_f64): Likewise.
8874         (vmuld_lane_f64): Reimplement in C.
8875         (vmuls_lane_f32): Likewise.
8877 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8879         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
8880         to reservation.
8881         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
8883 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8885         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
8886         (rbitsi2): Likewise.
8887         (*arm_rev): Set predicable and predicable_short_it attributes.
8889 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8891         * convert.c (convert_to_integer): Guard transformation to lrint by
8892         -fno-math-errno.
8894 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
8896         * config/aarch64/aarch64-builtins.c
8897         (aarch64_simd_builtin_type_mode): Delete.
8898         (v8qi_UP): Remap to V8QImode.
8899         (v4hi_UP): Remap to V4HImode.
8900         (v2si_UP): Remap to V2SImode.
8901         (v2sf_UP): Remap to V2SFmode.
8902         (v1df_UP): Remap to V1DFmode.
8903         (di_UP): Remap to DImode.
8904         (df_UP): Remap to DFmode.
8905         (v16qi_UP):V16QImode.
8906         (v8hi_UP): Remap to V8HImode.
8907         (v4si_UP): Remap to V4SImode.
8908         (v4sf_UP): Remap to V4SFmode.
8909         (v2di_UP): Remap to V2DImode.
8910         (v2df_UP): Remap to V2DFmode.
8911         (ti_UP): Remap to TImode.
8912         (ei_UP): Remap to EImode.
8913         (oi_UP): Remap to OImode.
8914         (ci_UP): Map to CImode.
8915         (xi_UP): Remap to XImode.
8916         (si_UP): Remap to SImode.
8917         (sf_UP): Remap to SFmode.
8918         (hi_UP): Remap to HImode.
8919         (qi_UP): Remap to QImode.
8920         (aarch64_simd_builtin_datum): Make mode a machine_mode.
8921         (VAR1): Build builtin name.
8922         (aarch64_init_simd_builtins): Remove dead code.
8924 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
8926         * graphite-isl-ast-to-gimple.c:
8927         (set_options): New function.
8928         (scop_to_isl_ast): Add calling of set_options.
8930 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
8932         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
8933         (analyze_iv_to_split_insn): Don't initialize them.
8934         (get_ivts_expr): Removed.
8935         (allocate_basic_variable, insert_base_initialization): Use
8936         SET_SRC instead of *get_ivts_expr.
8937         (split_iv): Use &SET_SRC instead of get_ivts_expr.
8939 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
8941         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
8942         (translate_isl_ast_for_loop): Add checking of the
8943         flag_loop_parallelize_all.
8944         (ast_build_before_for): New function.
8945         (scop_to_isl_ast): Add checking of the
8946         flag_loop_parallelize_all.
8947         * graphite-dependences.c: Move the defenition of the
8948         scop_get_dependences from graphite-optimize-isl.c to this file.
8949         (apply_schedule_on_deps): Add checking of the ux's emptiness.
8950         (carries_deps): Add checking of the x's value.
8951         * graphite-optimize-isl.c: Move the defenition of the
8952         scop_get_dependences to graphite-dependences.c.
8953         * graphite-poly.h: Add declarations of scop_get_dependences
8954         and carries_deps.
8956 2014-08-04  Rohit  <rohitarulraj@freescale.com>
8958         PR target/60102
8959         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
8960         names.
8961         (alt_reg_names): Likewise.
8962         (rs6000_dwarf_register_span): For SPE high registers, replace
8963         dwarf register numbers with GCC hard register numbers.
8964         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
8965         (rs6000_dbx_register_number): For SPE high registers, return dwarf
8966         register number for the corresponding GCC hard register number.
8967         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
8968         newly added GCC hard register numbers for SPE high registers.
8969         (DWARF_FRAME_REGISTERS):  Likewise.
8970         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
8971         (DWARF_FRAME_REGNUM): Likewise.
8972         (FIXED_REGISTERS): Likewise.
8973         (CALL_USED_REGISTERS): Likewise.
8974         (CALL_REALLY_USED_REGISTERS): Likewise.
8975         (REG_ALLOC_ORDER): Likewise.
8976         (enum reg_class): Likewise.
8977         (REG_CLASS_NAMES): Likewise.
8978         (REG_CLASS_CONTENTS): Likewise.
8979         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
8981 2014-08-04  Richard Biener  <rguenther@suse.de>
8983         * gimple-fold.h (gimple_fold_builtin): Remove.
8984         * gimple-fold.c (gimple_fold_builtin): Make static.
8985         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
8986         fold_stmt, not gimple_fold_builtin.
8988 2014-08-04  Martin Liska <mliska@suse.cz>
8990         * cgraph.h (csi_end_p): Removed.
8991         (csi_next): Likewise.
8992         (csi_node): Likewise.
8993         (csi_start): Likewise.
8994         (cgraph_node_in_set_p): Likewise.
8995         (cgraph_node_set_size): Likewise.
8996         (vsi_end_p): Likewise.
8997         (vsi_next): Likewise.
8998         (vsi_node): Likewise.
8999         (vsi_start): Likewise.
9000         (varpool_node_set_size): Likewise.
9001         (cgraph_node_set_nonempty_p): Likewise.
9002         (varpool_node_set_nonempty_p): Likewise.
9003         * cgraphunit.c (cgraph_process_new_functions): vec replaces
9004         cgraph_node_set.
9005         * ipa-inline-transform.c: Likewise.
9006         * ipa-utils.c (cgraph_node_set_new): Removed.
9007         (cgraph_node_set_add): Likewise.
9008         (cgraph_node_set_remove): Likewise.
9009         (cgraph_node_set_find): Likewise.
9010         (dump_cgraph_node_set): Likewise.
9011         (debug_cgraph_node_set): Likewise.
9012         (free_cgraph_node_set): Likewise.
9013         (varpool_node_set_new): Likewise.
9014         (varpool_node_set_add): Likewise.
9015         (varpool_node_set_remove): Likewise.
9016         (varpool_node_set_find): Likewise.
9017         (dump_varpool_node_set): Likewise.
9018         (free_varpool_node_set): Likewise.
9019         (debug_varpool_node_set): Likewise.
9020         * tree-emutls.c (struct tls_var_data):
9021         (emutls_index): Removed.
9022         (emutls_decl): Likewise.
9023         (gen_emutls_addr): Function implementation uses newly added
9024         hash_map<varpool_node *, tls_var_data>.
9025         (clear_access_vars): Likewise.
9026         (create_emultls_var): Likewise.
9027         (ipa_lower_emutls): Likewise.
9028         (reset_access): New function.
9030 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9032         * config/i386/i386.c (ix86_option_override_internal): Add
9033         PTA_RDRND and PTA_MOVBE for bdver4.
9035 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9036             James Greenhalgh  <james.greenhalgh@arm.com>
9038         * doc/md.texi (clrsb): Document.
9039         (clz): Change reference to x into operand 1.
9040         (ctz): Likewise.
9041         (popcount): Likewise.
9043 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9045         PR target/61713
9046         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
9047         move to subtarget in serial version if result is ignored.
9049 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9050             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9052         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
9053         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
9054         (sched_analyze_insn): Update use of try_group_insn to
9055         sched_macro_fuse_insns.
9056         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
9057         arguments that are not conditional jumps.
9059 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9061         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
9062         family information. Handle BTVER2 cpu with cpuid family value.
9064 2014-08-04  Tom de Vries  <tom@codesourcery.com>
9066         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9067         (glibc_2_11_or_earlier): Document effective-target keywords.
9069 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
9071         * ipa-devirt.c (odr_type_warn_count): Add type.
9072         (possible_polymorphic_call_targets): Set it.
9073         (ipa_devirt): Use it.
9075 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
9077         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
9078         Document.
9079         * ipa-devirt.c: Include hash-map.h
9080         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
9081         (clear_speculation): Break out of ...
9082         (get_class_context): ... here; speed up handling obviously useless
9083         speculations.
9084         (odr_type_warn_count, decl_warn_count): New structures.
9085         (final_warning_record): New structure.
9086         (final_warning_records): New static variable.
9087         (possible_polymorphic_call_targets): Cleanup handling of
9088         speculative info; do not build speculation when user do not care;
9089         record info about warnings when asked for.
9090         (add_decl_warning): New function.
9091         (type_warning_cmp): New function.
9092         (decl_warning_cmp): New function.
9093         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
9094         (gate): Enable pass when warnings are requested.
9095         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
9096         options.
9098 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
9100         * hash-map.h (default_hashmap_traits::mark_key_deleted):
9101         Fix cast.
9102         (hash_map::remove): New method.
9103         (hash_map::traverse): New method.
9104         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
9105         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
9106         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
9107         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
9108         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
9109         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
9110         pointer_map.
9112 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
9114         * hash-set.h: new File.
9115         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
9116         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
9117         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
9118         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
9119         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
9120         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
9121         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
9122         varpool.c: Use hash_set instead of pointer_set.
9124 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
9126         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
9128 2014-08-01  Jiong Wang <jiong.wang@arm.com>
9130         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
9131         for frame access when strict_p is false.
9133 2014-08-01  Renlin Li <renlin.li@arm.com>
9134 2014-08-01  Jiong Wang <jiong.wang@arm.com>
9136         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
9137         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
9138         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
9139         Declaration.
9140         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
9141         predicate.
9142         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
9143         aarch64_mem_pair_offset.
9145 2014-08-01  Jiong Wang <jiong.wang@arm.com>
9147         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
9148         offset.
9149         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
9150         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
9152 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
9154         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
9156 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
9158         PR regression/61510
9159         * cgraphunit.c (analyze_functions): Use get_create rather than get
9160         for decls which are clones of abstract functions.
9162 2014-08-01  Martin Liska  <mliska@suse.cz>
9164         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
9165         * ipa-prop.h (count_formal_params): Global function created from static.
9166         * ipa-prop.c (count_formal_params): Likewise.
9167         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
9168         profiles for semantically equivalent functions.
9169         * passes.c (do_per_function): If we load body of a function
9170         during WPA, this condition should behave same.
9171         * varpool.c (ctor_for_folding): More tolerant assert for variable
9172         aliases created during WPA.
9174 2014-08-01  Martin Liska  <mliska@suse.cz>
9176         * doc/invoke.texi (Options That Control Optimization): Documentation
9177         for -foptimize-strlen introduced. Optimization levels default options
9178         fixed.
9180 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
9182         * opts.c (common_handle_option): Handle -fsanitize=alignment.
9183         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
9184         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
9185         type to bool.
9186         * stor-layout.h (min_align_of_type): New prototype.
9187         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
9188         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
9189         check.
9190         * ubsan.c: Include builtins.h.
9191         (ubsan_expand_bounds_ifn): Change return type to bool,
9192         always return true.
9193         (ubsan_expand_null_ifn): Change return type to bool, change
9194         argument to gimple_stmt_iterator *.  Handle both null and alignment
9195         sanitization, take type from ckind argument's type rather than
9196         first argument.
9197         (instrument_member_call): Removed.
9198         (instrument_mem_ref): Remove t argument, add mem and base arguments.
9199         Handle both null and alignment sanitization, don't say whole
9200         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
9201         call instead of 2 argument.
9202         (instrument_null): Adjust instrument_mem_ref caller.  Don't
9203         instrument calls here.
9204         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
9205         like SANITIZE_NULL.
9206         * stor-layout.c (min_align_of_type): New function.
9207         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
9208         Or it into SANITIZE_UNDEFINED.
9209         * doc/invoke.texi (-fsanitize=alignment): Document.
9211 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9213         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
9215 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9217         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
9218         inchash.
9219         (vn_reference_compute_hash): Dito.
9220         (vn_nary_op_compute_hash): Dito.
9221         (vn_phi_compute_hash): Dito.
9222         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
9224 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9226         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
9227         Rename to inchash:add_expr_commutative. Convert to inchash.
9228         (iterative_hash_hashable_expr): Rename to
9229         inchash:add_hashable_expr. Convert to inchash.
9230         (avail_expr_hash): Dito.
9232 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9234         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
9235         Convert to inchash.
9237 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9239         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
9241 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9243         * Makefile.in (OBJS): Add rtlhash.o
9244         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
9245         (loc_checksum): Dito.
9246         (loc_checksum_ordered): Dito.
9247         (hash_loc_operands): Dito.
9248         (hash_locs): Dito.
9249         (hash_loc_list): Dito.
9250         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
9251         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
9252         * rtlhash.c: New file.
9253         * rtlhash.h: New file.
9255 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9257         * inchash.h (inchash): Change inchash class to namespace.
9258         (class hash): ... Rename from inchash.
9259         (add_object): Move from macro to class template.
9260         * lto-streamer-out.c (hash_tree): Change inchash
9261         to inchash::hash.
9262         * tree.c (build_type_attribute_qual_variant): Dito.
9263         (type_hash_list): Dito.
9264         (attribute_hash_list): Dito.
9265         (iterative_hstate_expr): Rename to inchash::add_expr
9266         (build_range_type_1): Change inchash to inchash::hash
9267         and use hash::add_expr.
9268         (build_array_type_1): Dito.
9269         (build_function_type): Dito
9270         (build_method_type_directly): Dito.
9271         (build_offset_type): Dito.
9272         (build_complex_type): Dito.
9273         (make_vector_type): Dito.
9274         * tree.h (iterative_hash_expr): Dito.
9276 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
9278         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
9280 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
9282         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
9283         correct alphabetical position.
9284         (vpaddd_f64): Rewrite using builtins.
9285         (vpaddd_s64): Move to correct alphabetical position.
9286         (vpaddd_u64): New.
9288 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
9290         PR target/61844
9291         * config/sh/sh.c (sh_legitimate_address_p,
9292         sh_legitimize_reload_address): Handle reg+reg address modes when
9293         ALLOW_INDEXED_ADDRESS is false.
9294         * config/sh/predicates.md (general_movsrc_operand,
9295         general_movdst_operand): Likewise.
9297 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
9299         * config/aarch64/aarch64-builtins.c
9300         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
9301         BYTES_BIG_ENDIAN.
9303 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
9305         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
9306         the generated mask based on BYTES_BIG_ENDIAN.
9307         (aarch64_simd_check_vect_par_cnst_half): New.
9308         * config/aarch64/aarch64-protos.h
9309         (aarch64_simd_check_vect_par_cnst_half): New.
9310         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
9311         the check out to aarch64_simd_check_vect_par_cnst_half.
9312         (vect_par_cnst_lo_half): Likewise.
9313         * config/aarch64/aarch64-simd.md
9314         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
9315         (move_hi_quad_<mode>): Always generate a low mask.
9317 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9319         * doc/invoke.texi (AVR Options): Add documentation about
9320         __AVR_DEVICE_NAME__ built-in macro.
9322 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
9324         PR target/61948
9325         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
9326         constraints are satisfied.
9327         (<shift>di3_neon): Likewise.
9329 2014-07-31  Richard Biener  <rguenther@suse.de>
9331         PR tree-optimization/61964
9332         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
9333         by structural equality.
9335 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
9337         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
9338         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
9339         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
9340         New enums.
9341         * gcc.c (sanitize_spec_function): Support new option.
9342         (SANITIZER_SPEC): Remove now redundant check.
9343         * opts.c (common_handle_option): Support new option.
9344         (finish_options): Check for incompatibilities.
9345         * toplev.c (process_options): Split userspace-specific checks.
9347 2014-07-31  Richard Biener  <rguenther@suse.de>
9349         * lto-streamer.h (struct output_block): Remove global.
9350         (struct data_in): Remove labels, num_named_labels and
9351         num_unnamed_labels.
9352         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
9353         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
9355 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
9357         PR c++/60517
9358         * common.opt (-Wreturn-local-addr): Moved from c.opt.
9359         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
9360         (isolate_path): New argument to avoid inserting a trap.
9361         (find_implicit_erroneous_behaviour): Handle returning the address
9362         of a local variable.
9363         (find_explicit_erroneous_behaviour): Likewise.
9365 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
9367         PR lto/61868
9368         * toplev.c (init_random_seed): Move piece of code never called to
9369         set_random_seed.
9370         (set_random_seed): see above.
9372 2014-07-31  Tom de Vries  <tom@codesourcery.com>
9374         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
9376 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
9378         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
9379         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
9381 2014-07-31  Richard Biener  <rguenther@suse.de>
9383         * data-streamer.h (streamer_write_data_stream): Declare here,
9384         renamed from ...
9385         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
9386         * lto-cgraph.c (lto_output_node): Adjust.
9387         (lto_output_varpool_node): Likewise.
9388         * data-streamer-out.c (streamer_string_index): Likewise.
9389         (streamer_write_data_stream, lto_append_block): Move from ...
9390         * lto-section-out.c (lto_output_data_stream,
9391         lto_append_block): ... here.
9393 2014-07-30  Mike Stump  <mikestump@comcast.net>
9395         * configure.ac: Also check for popen.
9396         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
9397         * configure: Regenerate.
9398         * config.in:  Regenerate.
9400 2014-07-30  Martin Jambor  <mjambor@suse.cz>
9402         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
9403         parameter to gimple.
9405 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9407         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
9408         address as second parameter to __tpf_eh_return routine.
9410 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
9412         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
9413         Thumb2.
9415 2014-07-30  Tom Tromey  <tromey@redhat.com>
9417         PR c/59855
9418         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
9419         * doc/extend.texi (Type Attributes): Document designated_init
9420         attribute.
9422 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
9424         * graphite-isl-ast-to-gimple.c:
9425         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
9426         (gcc_expression_from_isl_expression): Pass type to
9427         gcc_expression_from_isl_ast_expr_id.
9429 2014-07-30  Richard Biener  <rguenther@suse.de>
9431         * lto-streamer.h (lto_write_data): New function.
9432         * langhooks.c (lhd_append_data): Do not free block.
9433         * lto-section-out.c (lto_write_data): New function writing
9434         raw data to the current section.
9435         (lto_write_stream): Adjust for langhook semantic change.
9436         (lto_destroy_simple_output_block): Write header directly.
9437         * lto-opts.c (lto_write_options): Write options directly.
9438         * lto-streamer-out.c (produce_asm): Write heaeder directly.
9439         (lto_output_toplevel_asms): Likewise.
9440         (copy_function_or_variable): Copy data directly.
9441         (write_global_references): Output index table directly.
9442         (lto_output_decl_state_refs): Likewise.
9443         (write_symbol): Write data directly.
9444         (produce_symtab): Adjust.
9445         (produce_asm_for_decls): Output header and refs directly.
9447 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
9449         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
9450         to speculative_targets
9451         (get_class_context): Fix handling of contextes without outer type;
9452         avoid matching non-polymorphic types in LTO.
9453         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
9454         parameter to speculative_targetsp; handle speculation.
9455         (dump_possible_polymorphic_call_targets): Update dumping.
9457 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
9459         * common.opt (Wodr): Enable by default.
9461 2014-07-29  Olivier Hainque  <hainque@adacore.com>
9463         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
9465 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
9467         PR bootstrap/61914
9468         * gengtype.c (strtoken): New function.
9469         (create_user_defined_type): Replace strtok with strtoken.
9471 2014-07-29  Nathan Sidwell  <nathan@acm.org>
9473         * gcov-io.c (gcov_var): Make hidden.
9474         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
9475         (gcov_do_dump): Declare.
9476         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
9478 2014-07-29  Martin Jambor  <mjambor@suse.cz>
9480         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
9481         parameter to gimple.
9482         (sra_modify_assign): Likewise.
9484 2014-07-29  Richard Biener  <rguenther@suse.de>
9486         PR middle-end/52478
9487         * expr.c (expand_expr_real_2): Revert last change.
9489 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
9491         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
9492         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
9493         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
9494         call.
9495         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
9496         (contains_type_p): Forward declare.
9497         (polymorphic_call_target_hasher::hash): Hash speculative info.
9498         (polymorphic_call_target_hasher::equal): Compare speculative info.
9499         (get_class_context): Handle speuclation.
9500         (contains_type_p): Update.
9501         (get_polymorphic_call_info_for_decl): Update.
9502         (walk_ssa_copies): Break out from ...
9503         (get_polymorphic_call_info): ... here; set speculative context
9504         before giving up.
9505         * ipa-prop.c (ipa_write_indirect_edge_info,
9506         ipa_read_indirect_edge_info): Stream speculative context.
9507         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
9508         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
9509         SPECULATIVE_MAYBE_DERIVED_TYPE).
9510         (possible_polymorphic_call_targets overriders): Update.
9511         (dump_possible_polymorphic_call_targets overriders): Update.
9512         (dump_possible_polymorphic_call_target_p overriders): Update.
9514 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
9516         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
9517         ipa-devirt path; fix thinko there.
9519 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
9521         * config/i386/i386.c (ix86_return_in_memory): Replace one
9522         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
9524 2014-07-28  Marek Polacek  <polacek@redhat.com>
9526         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
9528 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
9530         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
9531         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
9532         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
9533         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9534         (USE_LD_AS_NEEDED): Likewise.
9535         (ASM_APP_ON): Likewise.
9536         (ASM_APP_OFF): Likewise.
9537         (TARGET_POSIX_IO): Likewise.
9538         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
9539         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9540         (USE_LD_AS_NEEDED): Likewise.
9541         (ASM_APP_ON): Likewise.
9542         (ASM_APP_OFF): Likewise.
9543         (TARGET_POSIX_IO): Likewise.
9545 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
9547         PR middle-end/61734
9548         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
9549         operators other than the equality operators.
9551 2014-07-28  Richard Biener  <rguenther@suse.de>
9553         PR middle-end/52478
9554         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
9555         sure to register SImode ones, not only >= word_mode ones.
9556         * expr.c (expand_expr_real_2): When expanding -ftrapv
9557         binops do not use OPTAB_LIB_WIDEN.
9559 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
9561         PR middle-end/61919
9562         * tree-outof-ssa.c (insert_partition_copy_on_edge)
9563         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
9564         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
9565         inserting them in the insn stream.
9567 2014-07-28  Marek Polacek  <polacek@redhat.com>
9569         PR middle-end/61913
9570         * common.opt (Wodr): Add Var.
9572 2014-07-28  Richard Biener  <rguenther@suse.de>
9574         PR tree-optimization/61921
9575         * tree-ssa-structalias.c (create_variable_info_for_1): Check
9576         if there is a varpool node before dereferencing it.
9578 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
9580         * graphite-sese-to-poly.c:
9581         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
9582         id of the pbb), which contains pointer to the pbb1.
9584         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
9586 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
9588         * graphite-isl-ast-to-gimple.c:
9589         (graphite_create_new_guard): New function.
9590         (translate_isl_ast_node_if): New function.
9591         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
9593         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
9595 2014-07-27  Anthony Green  <green@moxielogic.com>
9597         * config.gcc: Add moxie-*-moxiebox* configuration.
9598         * config/moxie/moxiebox.h: New file.
9600 2014-07-26  Andrew Pinski  <apinski@cavium.com>
9602         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
9603         from the read only register.
9605 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
9607         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
9608         as the allocation class if it isn't likely to be spilled.
9610 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
9612         * rtl.h (tls_referenced_p): Declare.
9613         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
9614         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
9615         (mips_cannot_force_const_mem): Use tls_referenced_p.
9616         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
9617         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
9618         instead of pa_tls_referenced_p.
9619         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
9620         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
9621         (pa_legitimate_constant_p): Likewise.
9622         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
9623         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
9624         (rs6000_cannot_force_const_mem, rs6000_emit_move)
9625         (rs6000_address_for_altivec): Use tls_referenced_p instead of
9626         rs6000_tls_referenced_p.
9627         (rs6000_tls_symbol_ref_1): Delete.
9629 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
9631         PR target/44551
9632         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9633         Optimize inverse of a VEC_CONCAT.
9635 2014-07-25  Xinliang David Li  <davidxl@google.com>
9637         * params.def: New parameter.
9638         * coverage.c (get_coverage_counts): Check new flag.
9639         (coverage_compute_profile_id): Check new flag.
9640         (coverage_begin_function): Check new flag.
9641         (coverage_end_function): Check new flag.
9642         * value-prof.c (coverage_node_map_initialized_p): New function.
9643         (init_node_map): Populate map with all functions.
9644         * doc/invoke.texi: Document new parameter.
9646 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
9647             Richard Biener <rguenther@suse.de>
9649         * lto-streamer-out.c (struct sccs): Turn to ...
9650         (class DFS): ... this one; refactor the DFS walk so it can
9651         be re-done on per-SCC basis.
9652         (DFS::DFS): New constructor.
9653         (DFS::~DFS): New destructor.
9654         (hash_tree): Add new MAP argument holding in-SCC hash values;
9655         remove POINTER_TYPE hashing hack.
9656         (scc_entry_compare): Rename to ...
9657         (DFS::scc_entry_compare): ... this one.
9658         (hash_scc): Rename to ...
9659         (DFS::hash_scc): ... this one; pass output_block instead
9660         of streamer_cache; work harder to get unique and stable SCC
9661         hashes.
9662         (DFS_write_tree): Rename to ...
9663         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
9664         (lto_output_tree): Update.
9666 2014-07-25  Andi Kleen  <ak@linux.intel.com>
9668         * lto-streamer-out.c (hash_tree): Convert to inchash.
9670 2014-07-25  Andi Kleen  <ak@linux.intel.com>
9672         * tree.c (build_type_attribute_qual_variant): Use inchash.
9673         (type_hash_list): Dito.
9674         (attribute_hash_list): Dito
9675         (iterative_hstate_expr): Dito.
9676         (iterative_hash_expr): Dito.
9677         (build_range_type_1): Dito.
9678         (build_array_type_1): Dito.
9679         (build_function_type): Dito.
9680         (build_method_type_directly): Dito.
9681         (build_offset_type): Dito.
9682         (build_complex_type): Dito.
9683         (make_vector_type): Dito.
9684         * tree.h (iterative_hash_expr): Add compat wrapper.
9685         (iterative_hstate_expr): Add.
9687 2014-07-25  Andi Kleen  <ak@linux.intel.com>
9689         * Makefile.in (OBJS): Add inchash.o.
9690         (PLUGIN_HEADERS): Add inchash.h.
9691         * ipa-devirt.c: Include inchash.h.
9692         * lto-streamer-out.c: Dito.
9693         * tree-ssa-dom.c: Dito.
9694         * tree-ssa-pre.c: Dito.
9695         * tree-ssa-sccvn.c: Dito.
9696         * tree-ssa-tail-merge.c: Dito.
9697         * asan.c: Dito.
9698         * tree.c (iterative_hash_hashval_t): Move to ...
9699         (iterative_hash_host_wide_int): Move to ...
9700         * inchash.c: Here. New file.
9701         * tree.h (iterative_hash_hashval_t): Move to ...
9702         (iterative_hash_host_wide_int): Move to ...
9703         * inchash.h: Here. New file.
9705 2014-07-25  Richard Biener  <rguenther@suse.de>
9707         PR middle-end/61762
9708         PR middle-end/61894
9709         * fold-const.c (native_encode_int): Add and handle offset
9710         parameter to do partial encodings of expr.
9711         (native_encode_fixed): Likewise.
9712         (native_encode_real): Likewise.
9713         (native_encode_complex): Likewise.
9714         (native_encode_vector): Likewise.
9715         (native_encode_string): Likewise.
9716         (native_encode_expr): Likewise.
9717         * fold-const.c (native_encode_expr): Add offset parameter
9718         defaulting to -1.
9719         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
9720         (fold_ctor_reference): Handle all reads from tcc_constant
9721         ctors.
9723 2014-07-25  Richard Biener  <rguenther@suse.de>
9725         * tree-inline.c (estimate_move_cost): Mark speed_p argument
9726         as possibly unused.
9728 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9730         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
9732 2014-07-24  Kyle McMartin  <kyle@redhat.com>
9734         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
9736 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9738         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
9739         Add prototype.
9740         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
9741         function.
9742         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
9743         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9744         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
9746 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9748         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
9749         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
9750         aggregate types.  Instead, *all* aggregate types, except for single-
9751         element or homogeneous float/vector aggregates, are quadword-aligned
9752         if required by their type alignment.  Issue -Wpsabi note when a type
9753         is now treated differently than before.
9755 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9757         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
9758         does not fit fully into floating-point registers, and there is still
9759         space in the register parameter area, use GPRs to pass those parts
9760         of the argument.  Issue -Wpsabi note if any parameter is now treated
9761         differently than before.
9762         (rs6000_arg_partial_bytes): Update.
9764 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
9766         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
9768 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
9770         * rtl.h (target_rtl): Remove lang_dependent_initialized.
9771         * toplev.c (initialize_rtl): Don't use it.  Move previously
9772         "language-dependent" calls to...
9773         (backend_init): ...here.
9774         (lang_dependent_init_target): Don't set lang_dependent_initialized.
9775         Assert that RTL initialization hasn't happend yet.
9777 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
9779         PR rtl-optimization/61629
9780         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
9781         they have already been initialized.
9783 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
9785         PR middle-end/61268
9786         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
9787         DECL_INCOMING_RTL and entry_parm.
9788         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
9789         * calls.c (load_register_parameters): Likewise argument values.
9790         (emit_library_call_value_1, store_one_arg): Likewise argument
9791         save areas.
9792         * config/i386/i386.c (assign_386_stack_local): Likewise the local
9793         stack slot.
9794         * explow.c (validize_mem): Modify the argument in-place.
9796 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
9798         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
9799         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
9801 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
9803         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
9804         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
9806 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
9808         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
9809         (aarch64_save_callee_saves): New parameter "skip_wb".
9810         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
9812 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
9814         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
9815         "wb_candidate2".
9816         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
9818 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
9820         * graphite-isl-ast-to-gimple.c:
9821         (graphite_create_new_loop): Add calling of isl_id_free to properly
9822         decrement reference counts.
9824         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
9826 2014-07-24  Martin Liska  <mliska@suse.cz>
9827         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
9828         function used.
9829         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
9830         (rs6000_code_end): Likewise.
9832 2014-07-24  Martin Liska  <mliska@suse.cz>
9834         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
9835         symtab_node funtion used.
9836         (rs6000_xcoff_declare_object_name): Likewise.
9838 2014-07-24  Martin Liska  <mliska@suse.cz>
9840         * cgraphunit.c (compile): Correct function used.
9842 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
9844         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
9845         as non-indexable.
9847 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
9849         PR lto/61802
9850         * varasm.c (bss_initializer_p): Handle offlined ctors.
9851         (align_variable, get_variable_align): Likewise.
9852         (make_decl_one_only): Likewise.
9853         (default_binds_local_p_1): Likewise.
9854         (decl_binds_to_current_def_p): Likewise.
9855         (get_variable_section): Get constructor if it is offlined.
9856         (assemble_variable_contents): Sanity check that the caller
9857         streamed in the ctor in LTO.
9859 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
9861         * graphite-isl-ast-to-gimple.c:
9862         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
9863         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
9864         isl_ast_op_pdiv_r to the different case.
9866         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
9868 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9870         PR middle-end/61876
9871         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
9872         when flag_errno_math is on.
9874 2014-07-24  Martin Liska  <mliska@suse.cz>
9876         * cgraph.h (varpool_node):
9877         (availability get_availability (void)):
9878         created from cgraph_variable_initializer_availability
9879         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
9880         created from: cgraph_variable_initializer_availability
9881         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
9882         (void finalize_named_section_flags (void)):
9883         created from varpool_finalize_named_section_flags
9884         (bool assemble_decl (void)): created from varpool_assemble_decl
9885         (void analyze (void)): created from varpool_analyze_node
9886         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
9887         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
9888         (void remove_initializer (void)): created from varpool_remove_initializer
9889         (tree get_constructor (void)): created from varpool_get_constructor
9890         (bool externally_visible_p (void)): created from varpool_externally_visible_p
9891         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
9892         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
9893         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
9894         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
9895         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
9896         (static bool output_variables (void)): created from varpool_output_variables
9897         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
9898         created from varpool_extra_name_alias
9899         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
9900         (static void dump_varpool (FILE *f)): created from dump_varpool
9901         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
9902         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
9903         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
9904         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
9905         (void assemble_aliases (void)): created from assemble_aliases
9907 2014-07-24  Martin Liska  <mliska@suse.cz>
9909         * cgraph.h (symtab_node):
9910         (void register_symbol (void)): created from symtab_register_node
9911         (void remove (void)): created from symtab_remove_node
9912         (void dump (FILE *f)): created from dump_symtab_node
9913         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
9914         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
9915         (struct ipa_ref *add_reference (symtab_node *referred_node,
9916         enum ipa_ref_use use_type)): created from add_reference 
9917         (struct ipa_ref *add_reference (symtab_node *referred_node,
9918         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
9919         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
9920         gimple stmt)): created from maybe_add_reference
9921         (bool semantically_equivalent_p (symtab_node *target)): created from
9922         symtab_semantically_equivalent_p
9923         (void remove_from_same_comdat_group (void)): created from
9924         remove_from_same_comdat_group
9925         (void add_to_same_comdat_group (symtab_node *old_node)): created from
9926         symtab_add_to_same_comdat_group
9927         (void dissolve_same_comdat_group_list (void)): created from
9928         symtab_dissolve_same_comdat_group_list
9929         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
9930         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
9931         created from symtab_alias_ultimate_target
9932         (inline symtab_node *next_defined_symbol (void)): created from
9933         symtab_next_defined_symbol
9934         (bool resolve_alias (symtab_node *target)): created from
9935         symtab_resolve_alias
9936         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
9937         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
9938         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
9939         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
9940         (void set_section (const char *section)): created from set_section_1 
9941         (enum availability get_availability (void)): created from symtab_node_availability
9942         (void make_decl_local (void)): created from symtab_make_decl_local
9943         (bool real_symbol_p (void)): created from symtab_read_node
9944         (can_be_discarded_p (void)): created from symtab_can_be_discarded
9945         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
9946         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
9947         symtab_in_same_comdat_p;
9948         (bool address_taken_from_non_vtable_p (void)): created from
9949         address_taken_from_non_vtable_p
9950         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
9951         (static void dump_table (FILE *)): created from dump_symtab
9952         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
9953         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
9954         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
9955         symtab_used_from_object_file_p 
9956         (void dump_base (FILE *)): created from dump_symtab_base
9957         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
9958         (void unregister (void)): created from symtab_unregister_node
9959         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
9960         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
9961         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
9962         symtab_nonoverwritable_alias_1
9963         * cgraph.h (cgraph_node):
9964         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
9965         created from cgraph_remove_node_and_inline_clones
9966         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
9967         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
9968         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
9969         (cgraph_node *function_symbol (enum availability *avail = NULL)):
9970         created from cgraph_function_node
9971         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
9972         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
9973         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
9974         created from cgraph_create_clone 
9975         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
9976         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
9977         created from cgraph_create_virtual_clone
9978         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
9979         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
9980         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
9981         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
9982         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
9983         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
9984         created from cgraph_function_version_info
9985         (struct cgraph_function_version_info *insert_new_function_version (void)):
9986         created from insert_new_cgraph_node_version
9987         (struct cgraph_function_version_info *function_version (void)): created from
9988         get_cgraph_node_version
9989         (void analyze (void)): created from analyze_function
9990         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
9991         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
9992         tree real_alias) cgraph_add_thunk
9993         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
9994         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
9995         created from cgraph_function_or_thunk_node
9996         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
9997         created from expand_thunk
9998         (void reset (void)): created from cgraph_reset_node
9999         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
10000         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
10001         (void remove (void)): created from cgraph_remove_node
10002         (void dump (FILE *f)): created from dump_cgraph_node
10003         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
10004         (bool get_body (void)): created from cgraph_get_body
10005         (void release_body (void)): created from cgraph_release_function_body
10006         (void unnest (void)): created from cgraph_unnest_node
10007         (void make_local (void)): created from cgraph_make_node_local
10008         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
10009         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
10010         gcov_type count, int freq)): created from cgraph_create_edge
10011         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
10012         gcov_type count, int freq)): created from cgraph_create_indirect_edge
10013         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
10014         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
10015         created from cgraph_create_edge_including_clones
10016         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
10017         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
10018         (void remove_callers (void)): created from cgraph_node_remove_callers
10019         (void remove_callees (void)): created from cgraph_node_remove_callees
10020         (enum availability get_availability (void)): created from cgraph_function_body_availability
10021         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
10022         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
10023         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
10024         (void call_duplication_hooks (cgraph_node *node2)): created from
10025         cgraph_call_node_duplication_hooks
10026         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
10027         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
10028         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
10029         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
10030         (void call_function_insertion_hooks (void)):
10031         created from cgraph_call_function_insertion_hooks
10032         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
10033         (bool local_p (void)): created from cgraph_local_node
10034         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
10035         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
10036         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
10037         (inline bool only_called_directly_or_aliased_p (void)):
10038         created from cgraph_only_called_directly_or_aliased_p
10039         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
10040         created from cgraph_will_be_removed_from_program_if_no_direct_calls
10041         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
10042         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
10043         (bool can_remove_if_no_direct_calls_p (void)):
10044         created from cgraph_can_remove_if_no_direct_calls_p
10045         (inline bool has_gimple_body_p (void)):
10046         created from cgraph_function_with_gimple_body_p
10047         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
10048         (static void dump_cgraph (FILE *f)): created from dump_cgraph
10049         (static inline void debug_cgraph (void)): created from debug_cgraph
10050         (static void record_function_versions (tree decl1, tree decl2)):
10051         created from record_function_versions
10052         (static void delete_function_version (tree decl)):
10053         created from delete_function_version
10054         (static void add_new_function (tree fndecl, bool lowered)):
10055         created from cgraph_add_new_function
10056         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
10057         (static cgraph_node * create (tree decl)): created from cgraph_create_node
10058         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
10059         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
10060         (static cgraph_node *get_for_asmname (tree asmname)):
10061         created from cgraph_node_for_asm
10062         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
10063         created from cgraph_same_body_alias 
10064         (static bool used_from_object_file_p_worker (cgraph_node *node,
10065         void *): new function
10066         (static bool non_local_p (cgraph_node *node, void *)):
10067         created from cgraph_non_local_node_p_1
10068         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
10069         created from verify_cgraph
10070         (static bool make_local (cgraph_node *node, void *)):
10071         created from cgraph_make_node_local
10072         (static cgraph_node *create_alias (tree alias, tree target)):
10073         created from cgraph_create_function_alias
10074         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
10075         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
10076         created from cgraph_create_edge_1
10077         * cgraph.h (varpool_node):
10078         (void remove (void)): created from varpool_remove_node
10079         (void dump (FILE *f)): created from dump_varpool_node
10081 2014-07-24  Richard Biener  <rguenther@suse.de>
10083         PR ipa/61823
10084         * tree-ssa-structalias.c (create_variable_info_for_1):
10085         Use varpool_get_constructor.
10086         (create_variable_info_for): Likewise.
10088 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10090         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
10091         subtract outgoing area size when restoring stack_pointer_rtx.
10093 2014-07-24  Nick Clifton  <nickc@redhat.com>
10095         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
10096         that operations are taking place in parallel.
10097         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
10099 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
10101         * omp-low.c (extract_omp_for_data): Add missing break statement.
10103 2014-07-24  Richard Biener  <rguenther@suse.de>
10105         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
10106         * tree-inline.c (estimate_move_cost): Add speed_p parameter
10107         and adjust MOVE_RATIO query accordingly.
10108         (estimate_num_insns): Adjust callers.
10109         * ipa-prop.c (ipa_populate_param_decls): Likewise.
10110         * ipa-cp.c (gather_context_independent_values,
10111         estimate_local_effects): Likewise.
10112         * ipa-split.c (consider_split): Likewise.
10114 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
10116         * config/i386/driver-i386.c: Remove names of unused arguments and
10117         unnecessary unused attributes.
10118         * config/i386/host-mingw32.c: Likewise.
10119         * config/i386/i386.c: Likewise.
10120         * config/i386/winnt-stubs.c: Likewise.
10121         * config/i386/winnt.c: Likewise.
10123 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10125         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
10126         (aarch64_gen_loadwb_pair): New helper function.
10127         (aarch64_expand_epilogue): Simplify code using new helper functions.
10128         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
10130 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10132         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
10133         (aarch64_gen_storewb_pair): New helper function.
10134         (aarch64_expand_prologue): Simplify code using new helper functions.
10135         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
10137 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10139         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
10140         Rename to aarch64_save_callee_saves, remove restore code.
10141         (aarch64_restore_callee_saves): New function.
10143 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10145         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
10146         (aarch64_save_callee_saves): New function to handle reg save
10147         for both core and vectore regs.
10149 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10151         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
10152         (aarch64_gen_store_pair): New helper function.
10153         (aarch64_save_or_restore_callee_save_registers)
10154         (aarch64_save_or_restore_fprs): Use new helper functions.
10156 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10158         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
10159         (aarch64_save_or_restore_callee_save_registers)
10160         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
10162 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10164         * config/aarch64/aarch64.c
10165         (aarch64_save_or_restore_callee_save_registers)
10166         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
10168 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10170         * config/aarch64/aarch64.c
10171         (aarch64_save_or_restore_callee_save_registers)
10172         (aarch64_save_or_restore_fprs): Remove 'increment'.
10174 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10176         * config/aarch64/aarch64.c
10177         (aarch64_save_or_restore_callee_save_registers)
10178         (aarch64_save_or_restore_fprs): Use register offset in
10179         cfun->machine->frame.reg_offset.
10181 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10183         * config/aarch64/aarch64.c
10184         (aarch64_save_or_restore_callee_save_registers)
10185         (aarch64_save_or_restore_fprs): Remove base_rtx.
10187 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10189         * config/aarch64/aarch64.c
10190         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
10191         to 'start_offset'.  Remove local variable 'start_offset'.
10193 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10195         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
10196         type to HOST_WIDE_INT.
10198 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10200         * config/aarch64/aarch64.c (aarch64_expand_prologue)
10201         (aarch64_save_or_restore_fprs)
10202         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
10204 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10206         * config/arm/t-rtems-eabi: Add
10207         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
10208         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
10209         mbig-endian/mthumb/march=armv7-r, and
10210         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
10211         multilibs.
10213 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10214             Chris Johns <chrisj@rtems.org>
10215             Joel Sherrill <joel.sherrill@oarcorp.com>
10217         * config.gcc: Add nios2-*-rtems*.
10218         * config/nios2/rtems.h: New file.
10219         * gcc/config/nios2/t-rtems: New file.
10221 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
10223         PR target/61396
10224         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
10225         constant numbers, not general constants.
10226         (rs6000_expand_vector_init): Ditto.
10228 2014-07-23  Nathan Sidwell  <nathan@acm.org>
10230         * gcov-tool.c (gcov_list): Declare here.
10231         (set_gcov_list): Remove.
10232         (gcov_output_files): Set gcov_list directly.
10234 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
10236         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
10238 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10240         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
10241         callee-saved registers are available for padding purpose
10242         and r3 is not mandatory, then prefer use those callee-saved
10243         instead of r3.
10245 2014-07-23  Richard Biener  <rguenther@suse.de>
10247         * params.def (PARAM_MAX_COMBINE_INSNS): New.
10248         * combine.c: Include statistics.h and params.h.
10249         (combine_instructions): Guard three and four insn combines
10250         with max-combine-insns value.  Record statistics for combines
10251         performed.
10252         * doc/invoke.texi (max-combine-insns): Document new param.
10254 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
10256         * graphite-isl-ast-to-gimple.c:
10257         (translate_isl_ast_node_block): New function.
10258         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
10260         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
10261         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
10263 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
10265         * graphite-isl-ast-to-gimple.c:
10266         (get_max_schedule_dimensions): New function.
10267         (extend_schedule): Likewise.
10268         (generate_isl_schedule): Add calling of extend_schedule and
10269         get_max_schedule_dimensions.
10271 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10273         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
10274         (case UNSPEC): Handle UNSPEC_RBIT.
10276 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10278         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
10279         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
10281 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10283         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
10285 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
10287         * graphite-isl-ast-to-gimple.c:
10288         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
10289         (ivs_params_clear):
10290         (build_iv_mapping): New function.
10291         (translate_isl_ast_node_user): Likewise.
10292         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
10294         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
10295         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
10296         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
10298 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
10300         PR target/55701
10301         * config/arm/arm.md (setmem): New pattern.
10302         * config/arm/arm-protos.h (struct tune_params): New fields.
10303         (arm_gen_setmem): New prototype.
10304         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
10305         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10306         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10307         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
10308         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
10309         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
10310         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
10311         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10312         (arm_const_inline_cost): New function.
10313         (arm_block_set_max_insns): New function.
10314         (arm_block_set_non_vect_profit_p): New function.
10315         (arm_block_set_vect_profit_p): New function.
10316         (arm_block_set_unaligned_vect): New function.
10317         (arm_block_set_aligned_vect): New function.
10318         (arm_block_set_unaligned_non_vect): New function.
10319         (arm_block_set_aligned_non_vect): New function.
10320         (arm_block_set_vect, arm_gen_setmem): New functions.
10322 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
10324         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
10326 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
10328         PR target/61855
10329         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
10330         out of #ifdef __OPTIMIZE__.
10332 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
10334         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
10335         different trapping status if -fnon-call-exceptions is enabled.
10337 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
10339         * expr.c (store_field): Handle VOIDmode for calls that return values
10340         in multiple locations.
10342 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10344         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
10345         (altivec_vsldoi_<mode>): Likewise.
10347 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
10349         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
10350         to the number of characters in the line.
10352 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
10354         * graphite-isl-ast-to-gimple.c: Add using of
10355         build_nonstandard_integer_type instead of int128_integer_type_node.
10357 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
10359         * toplev.c (output_stack_usage): Adjust the location of the warning.
10361 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
10363         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
10364         (*membar_storeload): Disable for LEON3.
10366 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10368         PR rtl-optimization/61461
10369         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
10371 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
10373         PR target/61794
10374         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
10375         Fix instruction constraint.
10376         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
10378 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
10380         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
10382 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
10384         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
10385         GNU coding standards.
10386         (nds32_register_move_cost): Likewise.
10387         (nds32_memory_move_cost): Likewise.
10388         (nds32_address_cost): Likewise.
10390 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10392         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
10394 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
10396         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
10397         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
10398         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
10399         (HAVE_sync_compare_and_swapqi): Define.
10400         (HAVE_sync_compare_and_swaphi): Likewise.
10401         (HAVE_sync_compare_and_swapsi): Likewise.
10403 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
10405         * config/mips/p5600.md: Add missing cpu tests.
10407 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10409         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
10410         (vmla_f64): Likewise.
10411         (vfms_f64): Likewise.
10412         (vmls_f64): Likewise.
10414 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10416         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
10417         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
10419 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10421         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
10422         (vmlal_high_lane_s32): Likewise.
10423         (vmlal_high_lane_u16): Likewise.
10424         (vmlal_high_lane_u32): Likewise.
10425         (vmlsl_high_lane_s16): Likewise.
10426         (vmlsl_high_lane_s32): Likewise.
10427         (vmlsl_high_lane_u16): Likewise.
10428         (vmlsl_high_lane_u32): Likewise.
10430 2014-07-17  Terry Guo  <terry.guo@arm.com>
10432         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
10433         (alus_reg): Renamed to alus_sreg.
10434         * config/arm/arm-fixed.md: Change type of non-dsp instructions
10435         from alu_reg to alu_sreg.  Change type of dsp instructions from
10436         alu_reg to alu_dsp_reg.
10437         * config/arm/thumb1.md: Likewise.
10438         * config/arm/thumb2.md: Likewise.
10439         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
10440         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
10441         with alu_sreg and alus_sreg.
10442         * config/arm/arm1026ejs.md (alu_op): Likewise.
10443         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10444         * config/arm/arm926ejs.md (9_alu_op): Likewise.
10445         * config/arm/fa526.md (526_alu_op): Likewise.
10446         * config/arm/fa606te.md (606te_alu_op): Likewise.
10447         * config/arm/fa626te.md (626te_alu_op): Likewise.
10448         * config/arm/fa726te.md (726te_alu_op): Likewise.
10449         * config/arm/fmp626.md (mp626_alu_op): Likewise.
10450         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
10451         alu_sreg, alu_dsp_reg and alus_sreg.
10452         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10453         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10454         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10455         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
10456         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10457         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10458         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10459         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
10460         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
10461         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
10462         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
10463         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
10464         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
10465         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
10466         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
10467         alus_reg to alus_sreg.
10469 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
10471         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
10472         infinity format.
10474 2014-07-17  Richard Biener  <rguenther@suse.de>
10476         PR rtl-optimization/61801
10477         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
10478         don't set reg_pending_barrier if it appears in a debug-insn.
10480 2014-07-16  DJ Delorie  <dj@redhat.com>
10482         * config/rx/rx.c (rx_option_override): Fix alignment values.
10483         (rx_align_for_label): Likewise.
10485 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
10487         PR target/61737.
10488         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
10489         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10490         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
10491         functions.
10492         (cris_print_index, cris_print_operand, cris_constant_index_p)
10493         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
10494         (cris_address_cost): Ditto last CONSTANT_P.
10495         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
10496         callers changed.  Yield cris_offsettable_symbol for non-PIC
10497         constant symbolic expressions including labels.  Yield cris_unspec
10498         for all unspecs.
10499         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
10500         target to pic_offset_table_rtx for calls that will likely go
10501         through PLT, const0_rtx when they can't.  All callers changed.
10502         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
10503         symbolic expressions to be PICified.  Remove second, redundant,
10504         assert on can_create_pseudo_p returning non-zero.  Use
10505         replace_equiv_address_nv, not replace_equiv_address, for final
10506         operand update.
10507         * config/cris/cris.md ("movsi"): Move variable t to pattern
10508         toplevel. Adjust assert for new cris_symbol_type member.  Use
10509         CONSTANT_P instead of CONSTANT_ADDRESS_P.
10510         ("*movsi_internal") <case 9>: Make check for valid unspec operands
10511         for lapc stricter.
10512         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
10513         ("call", "call_value"): Use second incoming operand as a marker
10514         for pic-offset-table-register being used.
10515         ("*expanded_call_non_v32", "*expanded_call_v32")
10516         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
10517         second incoming operand to CALL, match cris_call_type_marker.
10518         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
10519         ("*expanded_call_side"): Ditto.  Fix typo in comment.
10520         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
10521         CONSTANT_P.
10522         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
10523         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
10524         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
10525         users changed.  Add members cris_offsettable_symbol and cris_unspec.
10526         (cris_symbol_type): Rename from cris_pic_symbol_type.
10527         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
10528         just CONSTANT_P.
10529         * config/cris/cris-protos.h (cris_symbol_type_of,
10530         cris_expand_pic_call_address): Adjust prototypes.
10531         (cris_legitimate_constant_p): New prototype.
10533         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
10534         an existing tmake_file.  Don't add t-slibgcc and t-linux.
10536 2014-07-17  Jason Merrill  <jason@redhat.com>
10538         PR c++/61623
10539         * symtab.c (symtab_remove_from_same_comdat_group): Also
10540         set_comdat_group to NULL_TREE.
10541         (verify_symtab): Fix diagnostic.
10543 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
10545         PR target/61662
10546         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
10548 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
10550         Support location tracking for built-in macro tokens
10551         * input.h (is_location_from_builtin_token): New function declaration.
10552         * input.c (is_location_from_builtin_token): New function definition.
10553         * toplev.c (general_init): Tell libcpp what the pre-defined
10554         spelling location for built-in tokens is.
10556 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
10558         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
10559         on the FUNCTION_DECL.
10561 2014-07-16  Richard Biener  <rguenther@suse.de>
10563         PR other/61782
10564         * doc/extend.texi (always_inline): Clarify.
10566 2014-07-15  Eric Christopher  <echristo@gmail.com>
10568         * doc/invoke.texi (Link Options): Document -z option.
10570 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
10572         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
10573         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10575 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
10577         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
10579 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
10581         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
10582         varpool_assemble_decl.
10583         * varpool.c (varpool_assemble_decl): Assert that node->definition is
10584         true.
10586 2014-07-15  Michael Matz  <matz@suse.de>
10588         PR rtl-optimization/61772
10589         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
10591 2014-07-15  Richard Biener  <rguenther@suse.de>
10593         * opts.c (default_options_table): Disable bit-ccp at -Og.
10595 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
10597         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
10599 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
10601         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
10602         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
10603         call langhook for unknown declaration.
10604         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
10605         * tree.h (DECL_ARGUMENTS): Update.
10606         * print-tree.c (print_node): Update.
10607         * tree-core.h (tree_decl_non_common): Remove arguments.
10608         (tree_function_decl): Add arguments.
10610 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
10612         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
10614 2014-07-14  Richard Biener  <rguenther@suse.de>
10616         PR tree-optimization/61779
10617         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
10618         simplifying a condition.
10620 2014-07-14  Richard Biener  <rguenther@suse.de>
10622         * builtins.c (c_strlen): Make only_value == 2 really only
10623         affect warning generation.
10625 2014-07-14  Richard Biener  <rguenther@suse.de>
10627         PR tree-optimization/61757
10628         PR tree-optimization/61783
10629         PR tree-optimization/61787
10630         * tree-ssa-dom.c (record_equality): Revert canonicalization
10631         change and add comment.
10632         (propagate_rhs_into_lhs): Revert previous fix, removing
10633         loop depth restriction again.
10635 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10637         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
10638         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10639         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10640         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
10641         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10642         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10643         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
10645 2014-07-14  Richard Biener  <rguenther@suse.de>
10647         * cgraph.h (decl_in_symtab_p): Make inline.
10649 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
10651         PR middle-end/61294
10652         * doc/invoke.texi (-Wmemset-transposed-args): Document.
10654         PR target/61656
10655         * config/i386/i386.c (classify_argument): Don't merge classes above
10656         number of words.
10658 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
10660         * cgraph.h (symtab_node): Add nonzero_address.
10661         (decl_in_symtab_p): Break out from ...
10662         (symtab_get_node): ... here.
10663         * fold-const.c: Include cgraph.h
10664         (tree_single_nonzero_warnv_p): Use symtab to determine
10665         if symbol is non-zero.
10666         * symtab.c (symtab_node::nonzero_address): New method.
10668 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
10670         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
10671         forgotten in previous commit.
10673 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
10675         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
10676         on builtin types.
10677         * ipa-devirt.c: Include stor-layout.h and intl.h
10678         (odr_subtypes_equivalent_p): New function.
10679         (warn_odr): New function.
10680         (warn_type_mismatch): New function.
10681         (odr_types_equivalent_p): New function.
10682         (add_type_duplicate): Use it.
10683         * common.opt (Wodr): New flag.
10684         * doc/invoke.texi (Wodr): Document new warning.
10686 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
10688         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
10689         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
10690         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
10691         (varpool_get_constructor): Push CTORS_IN timevar.
10692         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
10694 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
10696         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
10697         Remove VOID_FTYPE_PUSHORT.
10698         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
10699         Change code to USHORT_FTYPE_VOID.
10700         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
10701         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
10702         (ix86_atomic_assign_expand_fenv): Update for
10703         __builtin_ia32_fnstsw changes.
10704         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
10705         (fnstsw): Change operand 0 to nonimmediate operand.
10707 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
10709         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
10710         (varpool_get_constructor): New function.
10711         (varpool_ctor_useable_for_folding_p): Break out from ...
10712         (ctor_for_folding): ... here; use varpool_get_constructor.
10713         (varpool_assemble_decl): Likewise.
10714         * lto-streamer.h (struct output_block): Turn cgraph_node
10715         to symbol filed.
10716         (lto_input_variable_constructor): Declare.
10717         * ipa-visibility.c (function_and_variable_visibility): Use
10718         varpool_get_constructor.
10719         * cgraph.h (varpool_get_constructor): Declare.
10720         (varpool_ctor_useable_for_folding_p): New function.
10721         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
10722         parameter; return error_mark_node for non-trivial constructors.
10723         (lto_write_tree_1, DFS_write_tree): Update use of
10724         get_symbol_initial_value.
10725         (output_function): Update initialization of symbol.
10726         (output_constructor): New function.
10727         (copy_function): Rename to ..
10728         (copy_function_or_variable): ... this one; handle vars too.
10729         (lto_output): Output variable sections.
10730         * lto-streamer-in.c (input_constructor): New function.
10731         (lto_read_body): Rename from ...
10732         (lto_read_body_or_constructor): ... this one; handle vars too.
10733         (lto_input_variable_constructor): New function.
10734         * ipa-prop.c (ipa_prop_write_jump_functions,
10735         ipa_prop_write_all_agg_replacement): Update.
10736         * lto-cgraph.c (compute_ltrans_boundary): Use it.
10737         (output_cgraph_opt_summary): Set symbol to NULL.
10739 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
10741         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
10742         non-polymorphic types.
10743         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
10744         * ipa-devirt.c (types_same_for_odr): Do not explode when one
10745         of types is not polymorphic.
10747 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
10749         * lra-constraints.c (remove_inheritance_pseudos): Process
10750         destination pseudo too.
10752 2014-07-11  Rong Xu  <xur@google.com>
10754         * gcov-tool.c (gcov_output_files): Fix build error introduced in
10755         commit r212448.
10757 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
10759         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
10760         * config/avr/avr-devices.c (AVR_MCU): Same.
10761         (avr_mcu_types): add text start value to end of device list.
10762         * config/avr/avr-mcus.def: Add text section start for all devices.
10763         (ata5782): Add new avr5 device.
10764         (ata5831): Same.
10765         * config/avr/avr-tables.opt: Regenerate.
10766         * config/avr/avr.h: Add declaration for text section start handler.
10767         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
10768         SPEC functions.
10769         (LINK_SPEC): Include text section start handler to linker spec.
10770         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
10771         pass -Ttext option to linker if the text section start for the device
10772         is not zero.
10773         * config/avr/t-multilib: Regenerate.
10774         * doc/avr-mmcu.texi: Regenerate.
10776 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
10778         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
10779         * config/rs6000/aix52.h (LINK_SPEC): Same.
10780         * config/rs6000/aix53.h (LINK_SPEC): Same.
10781         * config/rs6000/aix61.h (LINK_SPEC): Same.
10782         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
10784 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
10786         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
10787         (graphite_verify): New function.
10788         (ivs_params_clear): New function.
10789         (gcc_expression_from_isl_ast_expr_id): New function.
10790         (gcc_expression_from_isl_expr_int): New function.
10791         (binary_op_to_tree): New function.
10792         (ternary_op_to_tree): New function.
10793         (unary_op_to_tree): New function.
10794         (nary_op_to_tree): New function.
10795         (gcc_expression_from_isl_expr_op): New function.
10796         (gcc_expression_from_isl_expression): New function.
10797         (graphite_create_new_loop): New function.
10798         (translate_isl_ast_for_loop): New function.
10799         (get_upper_bound): New function.
10800         (graphite_create_new_loop_guard): New function.
10801         (translate_isl_ast_node_for): New function.
10802         (translate_isl_ast): New function.
10803         (add_parameters_to_ivs_params): New function.
10804         (scop_to_isl_ast): New parameter ip.
10805         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
10807 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
10809         * config/xtensa/predicates.md (call expander): Update for
10810         DECL_SECTION_NAME being string.
10812 2014-07-11  Richard Biener  <rguenther@suse.de>
10814         PR middle-end/61473
10815         * builtins.c (fold_builtin_memory_op): Inline memory moves that
10816         can be implemented with a single load followed by a single store.
10817         (c_strlen): Only warn when only_value is not 2.
10819 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
10821         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
10823 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
10825         PR target/61561
10826         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
10827         (*movhi_bytes): Likewise.
10828         (*arm_movqi_insn): Likewise.
10830 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
10832         PR target/56858
10833         * config/alpha/alpha.c: Include tree-pass.h, context.h
10834         and pass_manager.h.
10835         (pass_data_handle_trap_shadows): New pass.
10836         (pass_handle_trap_shadows::gate): New pass gate function.
10837         (make_pass_handle_trap_shadows): New function.
10838         (rest_of_handle_trap_shadows): Ditto.
10840         (alpha_align_insns_1): Rename from alpha_align_insns.
10841         (pass_data_align_insns): New pass.
10842         (pass_align_insns::gate): New pass gate function.
10843         (make_pass_aling_insns): New function.
10844         (rest_of_align_insns): Ditto.
10845         (alpha_align_insns): Ditto.
10847         (alpha_option_override): Declare handle_trap_shadows info
10848         and align_insns_info.  Register handle_trap_shadows and align_insns
10849         passes here.
10850         (alpha_reorg): Do not call alpha_trap_shadows and
10851         alpha_align_insn from here.
10853         (alpha_pad_function_end): Do not skip BARRIERs.
10855 2014-07-10  Rong Xu  <xur@google.com>
10857         Add gcov-tool: an offline gcda profile processing tool support.
10858         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
10859         (gcov_is_error): Ditto.
10860         (gcov_read_string): Ditto.
10861         (gcov_read_sync): Ditto.
10862         * gcov-io.h: Move counter defines to gcov-counter.def.
10863         * gcov-dump.c (tag_counters): Use gcov-counter.def.
10864         * coverage.c: Ditto.
10865         * gcov-tool.c: Offline gcda profile processing tool.
10866         (unlink_gcda_file): Remove one gcda file.
10867         (unlink_profile_dir): Remove gcda files from the profile path.
10868         (gcov_output_files): Output gcda files to an output dir.
10869         (profile_merge): Merge two profiles in directory.
10870         (print_merge_usage_message): Print merge usage.
10871         (merge_usage): Print merge usage and exit.
10872         (do_merge): Driver for profile merge sub-command.
10873         (profile_rewrite): Rewrite profile.
10874         (print_rewrite_usage_message): Print rewrite usage.
10875         (rewrite_usage): Print rewrite usage and exit.
10876         (do_rewrite): Driver for profile rewrite sub-command.
10877         (print_usage): Print gcov-info usage and exit.
10878         (print_version): Print gcov-info version.
10879         (process_args): Process arguments.
10880         (main): Main routine for gcov-tool.
10881         * Makefile.in: Build and install gcov-tool.
10882         * gcov-counter.def: New file split from gcov-io.h.
10883         * doc/gcc.texi: Include gcov-tool.texi.
10884         * doc/gcov-tool.texi: Document for gcov-tool.
10886 2014-07-10  Richard Biener  <rguenther@suse.de>
10888         PR tree-optimization/61757
10889         * tree-ssa-dom.c (loop_depth_of_name): Restore.
10890         (propagate_rhs_into_lhs): Revert part of last change.
10892 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
10894         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
10895         FUNCTION_DECLs.
10897 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
10899         PR middle-end/53590
10900         * function.c (allocate_struct_function): Revert r188667 change.
10902         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
10904 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
10906         * doc/install.texi: Remove links to defunct package providers for
10907         Solaris.
10909 2014-07-09  Tom de Vries  <tom@codesourcery.com>
10911         * final.c (get_call_fndecl): Declare.
10912         (self_recursive_call_p): New function.
10913         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
10915 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
10917         * ipa-devirt.c (record_node): Walk through aliases.
10919 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
10921         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
10923 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
10925         Revert:
10926         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10928 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
10930         * ipa-visibility.c (function_and_variable_visibility): Remove
10931         temporary hack disabling local aliases on AIX.
10933 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
10935         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
10936         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
10938 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
10940         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
10941         * rs6000/rs6000.c: Inline output of .set instruction.
10942         (declare_alias_data): New struct.
10943         (rs6000_declare_alias): New function.
10944         (rs6000_xcoff_declare_function_name): Use it.
10945         (rs6000_xcoff_declare_object_name): New function.
10946         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
10947         (ASM_OUTPUT_DEF): Turn to empty definition.
10949 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
10951         PR bootstrap/61679
10952         * hash-table.h: use hash_table::value_type instead of
10953         Descriptor::value_type in the return types of several methods.
10955 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
10957         * tree-pass.h (pass_data): Remove has_execute member.
10958         * passes.c (execute_one_pass): Don't check pass->has_execute.
10959         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
10960         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
10961         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
10962         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
10963         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
10964         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
10965         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
10966         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
10967         gimple-low.c, gimple-ssa-isolate-paths.c,
10968         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
10969         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
10970         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
10971         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
10972         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
10973         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
10974         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
10975         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
10976         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
10977         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
10978         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
10979         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
10980         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10981         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10982         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
10983         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
10984         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
10985         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10986         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10987         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
10988         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
10989         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
10990         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
10991         web.c: Remove initializer for pass_data::has_execute.
10993 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
10995         * graphite-htab.h: Use hash_map instead of hash_table.
10996         * graphite-clast-to-gimple.c: Adjust.
10997         * passes.c: Use hash_map instead of hash_table.
10998         * sese.c: Likewise.
10999         * sese.h: Remove now unused code.
11001 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
11003         PR target/61599
11004         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
11005         than zero.
11007 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
11009         PR rtl-optimization/61673
11010         * combine.c (simplify_comparison): Test just mode's sign bit
11011         in tmode rather than the sign bit and any bits above it.
11013 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
11015         * graphite-isl-ast-to-gimple.c (generate_isl_context):
11016         Add __isl_give to the declaration.
11017         (generate_isl_schedule): Likewise.
11018         (scop_to_isl_ast): Likewise.
11020 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11022         * config/arm/arm.c (cortexa5_extra_costs): New table.
11023         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
11025 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
11027         PR tree-optimization/61725
11028         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
11029         range, use range_includes_zerop_p instead of integer_zerop on
11030         vr0->min, only use log2 of max if min is not negative.
11032 2014-07-08  Richard Biener  <rguenther@suse.de>
11034         * tree-ssa-dom.h (loop_depth_of_name): Remove.
11035         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
11036         restriction on loop depth difference.
11037         (record_equality): Likewise.
11038         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
11039         (loop_depth_of_name): Remove.
11040         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
11041         restriction on loop depth difference.
11042         (init_copy_prop): Likewise.
11044 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11046         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
11047         parameter.
11048         (walk_aliased_vdefs): Likewise.
11049         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
11050         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
11051         (detect_type_change_from_memory_writes): Check if entry was reached.
11053 2014-07-08  Richard Biener  <rguenther@suse.de>
11055         PR tree-optimization/61681
11056         * tree-ssa-structalias.c (find_what_var_points_to): Expand
11057         NONLOCAL inside ESCAPED.
11059 2014-07-08  Richard Biener  <rguenther@suse.de>
11061         PR tree-optimization/61680
11062         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11063         Handle properly all read-write dependences with group accesses.
11065 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11067         PR tree-optimization/61576
11068         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
11069         block containing reduction statement is predecessor of phi basi block.
11071 2014-07-08  Marek Polacek  <polacek@redhat.com>
11073         PR c/60226
11074         * fold-const.c (round_up_loc): Change the parameter type.
11075         Remove assert.
11076         * fold-const.h (round_up_loc): Adjust declaration.
11077         * stor-layout.c (finalize_record_size): Check for too large types.
11079 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
11081         * symtab.c: Include calls.h.
11082         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
11084 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
11086         * config/rs6000/rs6000.c (output_vec_const_move): Handle
11087         little-endian code generation.
11088         * config/rs6000/spe.md (spe_evmergehi): Rename to...
11089         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
11090         (spe_evmergehilo): Rename to...
11091         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
11092         (spe_evmergelo): Rename to...
11093         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
11094         (spe_evmergelohi): Rename to...
11095         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
11096         (spe_evmergehi, spe_evmergehilo): New expanders.
11097         (spe_evmergelo, spe_evmergelohi): Likewise.
11098         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
11099         (*frob_tf_ti): Likewise.
11100         (*frob_<mode>_di_2): Likewise.
11101         (*frob_tf_di_8_2): Likewise.
11102         (*frob_di_<mode>): Likewise.
11103         (*frob_ti_tf): Likewise.
11104         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
11105         (*frob_ti_<mode>_8_2): Likewise.
11106         (*frob_ti_tf_2): Likewise.
11107         (mov_si<mode>_e500_subreg0): Rename to...
11108         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
11109         endianness only.
11110         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
11111         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
11112         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
11113         the big endianness only.
11114         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
11115         (*mov_si<mode>_e500_subreg0_2): Rename to...
11116         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
11117         big big endianness only.
11118         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
11119         (*mov_si<mode>_e500_subreg4): Rename to...
11120         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
11121         endianness only.
11122         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
11123         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
11124         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
11125         the big endianness only.
11126         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
11127         pattern.
11128         (*mov_si<mode>_e500_subreg4_2): Rename to...
11129         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
11130         endianness only.
11131         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
11132         (*mov_sitf_e500_subreg8): Rename to...
11133         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
11134         endianness only.
11135         (*mov_sitf_e500_subreg8_le): New instruction pattern.
11136         (*mov_sitf_e500_subreg8_2): Rename to...
11137         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
11138         endianness only.
11139         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
11140         (*mov_sitf_e500_subreg12): Rename to...
11141         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
11142         endianness only.
11143         (*mov_sitf_e500_subreg12_le): New instruction pattern.
11144         (*mov_sitf_e500_subreg12_2): Rename to...
11145         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
11146         endianness only.
11147         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
11149 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11151         * asan.c (instrument_strlen_call): Do not instrument first byte
11152         in strlen if already instrumented.
11154 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11156         * config/arm/arm.opt (mwords-little-endian): Delete.
11157         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
11158         of TARGET_LITTLE_WORDS.
11159         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
11160         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
11161         warning.
11162         * doc/invoke.texi: Remove references to -mwords-little-endian.
11164 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
11166         * expmed.c (struct init_expmed_rtl): Change all fields but
11167         pow2 and cint from struct rtx_def to rtx.
11168         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
11169         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
11170         at the end again.
11172 2014-07-06  Marek Polacek  <polacek@redhat.com>
11174         PR c/6940
11175         * doc/invoke.texi: Document -Wsizeof-array-argument.
11177 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
11179         * wide-int.h (wide_int_storage): Change declaration from struct
11180         to class.
11182 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
11184         * cgraph.c (cgraph_create_indirect_edge): Update call of
11185         get_polymorphic_call_info.
11186         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
11187         (possible_polymorphic_call_targets): Add parameter call.
11188         (decl_maybe_in_construction_p): New predicate.
11189         (get_polymorphic_call_info): Add parameter call;
11190         use decl_maybe_in_construction_p.
11191         * gimple-fold.c (fold_gimple_assign): Update use of
11192         possible_polymorphic_call_targets.
11193         (gimple_fold_call): Likewise.
11194         * ipa-prop.c: Inlcude calls.h
11195         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
11196         (param_type_may_change_p): New predicate.
11197         (detect_type_change_from_memory_writes): Break out from ...
11198         (detect_type_change): ... this one; use param_type_may_change_p.
11199         (detect_type_change_ssa): Use param_type_may_change_p.
11200         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
11202 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
11204         PR target/49423
11205         * config/arm/arm-protos.h (arm_legitimate_address_p,
11206         arm_is_constant_pool_ref): Add prototypes.
11207         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
11208         (arm_is_constant_pool_ref) New function.
11209         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
11210         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
11211         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
11212         operand. Remove pool_range and neg_pool_range attributes.
11213         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
11214         pool_range and neg_pool_range attributes.
11215         * config/arm/constraints.md (Uh): New constraint.
11216         (Uq): Don't allow constant pool references.
11218 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
11220         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
11221         (move_lo_quad_internal_be_<mode>): Likewise.
11222         (move_lo_quad_<mode>): Convert to define_expand.
11223         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
11224         (aarch64_simd_move_hi_quad_be_<mode>): New.
11225         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
11226         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
11227         (aarch64_combinez_be<mode>): New.
11228         (aarch64_combine<mode>): Convert to define_expand.
11229         (aarch64_combine_internal<mode>): New.
11230         (aarch64_simd_combine<mode>): Remove bogus RTL description.
11232 2014-07-04  Tom de Vries  <tom@codesourcery.com>
11234         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
11235         combination of earlyclobber and read/write modifiers.
11237 2014-07-04  Tom de Vries  <tom@codesourcery.com>
11239         * config/aarch64/aarch64-simd.md
11240         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
11242 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
11244         PR target/61714
11245         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
11247 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
11249         PR middle-end/61654
11250         * cgraphunit.c (expand_thunk): Call free_dominance_info.
11252         PR tree-optimization/61684
11253         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
11254         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
11256 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11257             Kito Cheng  <kito@0xlab.org>
11258             Monk Chiang  <sh.chiang04@gmail.com>
11260         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
11261         (nds32_symbol_load_store_p): Move to ...
11262         (nds32_fp_as_gp_check_available): Move to ...
11263         * config/nds32/nds32-fp-as-gp.c: ... here.
11264         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
11265         extern declaration.
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_expand_load_multiple): Move to ...
11272         (nds32_expand_store_multiple): Move to ...
11273         (nds32_expand_movmemqi): Move to ...
11274         * config/nds32/nds32-memory-manipulation.c: ... here.
11276 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11277             Kito Cheng  <kito@0xlab.org>
11278             Monk Chiang  <sh.chiang04@gmail.com>
11280         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
11281         (nds32_output_casesi_pc_relative): Move to ...
11282         (nds32_output_casesi): Move to ...
11283         (nds32_mem_format): Move to ...
11284         (nds32_output_16bit_store): Move to ...
11285         (nds32_output_16bit_load): Move to ...
11286         (nds32_output_32bit_store): Move to ...
11287         (nds32_output_32bit_load): Move to ...
11288         (nds32_output_32bit_load_s): Move to ...
11289         (nds32_output_stack_push): Move to ...
11290         (nds32_output_stack_pop): Move to ...
11291         * config/nds32/nds32-md-auxiliary.c: ... here.
11293 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11294             Ling-Hua Tseng  <uranus@tinlans.org>
11296         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
11297         the purpose of this file.
11299 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11300             Kito Cheng  <kito@0xlab.org>
11301             Monk Chiang  <sh.chiang04@gmail.com>
11303         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
11304         (nds32_address_cost): Move implementation to ...
11305         * config/nds32/nds32-cost.c: ... here.
11306         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
11307         (nds32_address_cost_impl): Declare.
11309 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11310             Kito Cheng  <kito@0xlab.org>
11311             Monk Chiang  <sh.chiang04@gmail.com>
11313         * config/nds32/nds32.c
11314         (nds32_consecutive_registers_load_store_p): Move to ...
11315         (nds32_valid_multiple_load_store): Move to ...
11316         (nds32_valid_stack_push_pop): Move to ...
11317         (nds32_can_use_bclr_p): Move to ...
11318         (nds32_can_use_bset_p): Move to ...
11319         (nds32_can_use_btgl_p): Move to ...
11320         (nds32_can_use_bitci_p): Move to ...
11321         * config/nds32/nds32-predicates.c: ... here.
11323 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11324             Kito Cheng  <kito@0xlab.org>
11325             Monk Chiang  <sh.chiang04@gmail.com>
11327         * config/nds32/nds32.c
11328         (nds32_expand_builtin_null_ftype_reg): Move to ...
11329         (nds32_expand_builtin_reg_ftype_imm): Move to ...
11330         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
11331         (nds32_init_builtins): Move implementation to ...
11332         (nds32_expand_builtin): Move implementation to ...
11333         * config/nds32/nds32-intrinsic.c: ... here.
11334         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
11335         (nds32_expand_builtin_impl): Declare.
11337 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11338             Kito Cheng  <kito@0xlab.org>
11339             Monk Chiang  <sh.chiang04@gmail.com>
11341         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
11342         (nds32_emit_section_tail_template): Move to ...
11343         (nds32_emit_isr_jmptbl_section): Move to ...
11344         (nds32_emit_isr_vector_section): Move to ...
11345         (nds32_emit_isr_reset_conten): Move to ...
11346         (nds32_check_isr_attrs_conflict): Move to ...
11347         (nds32_construct_isr_vectors_information): Move to ...
11348         (nds32_asm_file_start): Move implementation to ...
11349         (nds32_asm_file_end): Move implementation to ...
11350         * config/nds32/nds32-isr.c: ... here.
11351         * config/nds32/nds32-protos.h
11352         (nds32_check_isr_attrs_conflict): Declare.
11353         (nds32_construct_isr_vectors_information): Declare.
11354         (nds32_asm_file_start_for_isr): Declare.
11355         (nds32_asm_file_end_for_isr): Declare.
11357 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11358             Kito Cheng  <kito@0xlab.org>
11359             Monk Chiang  <sh.chiang04@gmail.com>
11361         * config.gcc (nds32*): Add new modules to extra_objs.
11362         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
11363         (nds32be-*-*): Likewise.
11364         * config/nds32/nds32-cost.c: New file.
11365         * config/nds32/nds32-fp-as-gp.c: New file.
11366         * config/nds32/nds32-intrinsic.c: New file.
11367         * config/nds32/nds32-isr.c: New file.
11368         * config/nds32/nds32-md-auxiliary.c: New file.
11369         * config/nds32/nds32-memory-manipulation.c: New file.
11370         * config/nds32/nds32-pipelines-auxiliary.c: New file.
11371         * config/nds32/nds32-predicates.c: New file.
11372         * config/nds32/t-nds32: New file.
11374 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
11376         PR tree-optimization/61682
11377         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
11378         using cases and when one of the operands is equal to 1.
11380 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
11382         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
11383         ashr<mode>3): Correct mode of operands[2].
11384         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
11385         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
11386         Correct mode of operands[2].  Fix split condition.
11388 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
11390         * arm.md (arch): Add armv6_or_vfpv3.
11391         (arch_enabled): Add test for the above.
11392         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
11393         on VFP9.
11394         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
11396 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
11398         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
11399         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
11400         HWI 1 and negate the unsigned value.
11401         * expmed.c (expand_sdiv_pow2): For modes wider than word always
11402         use AND instead of shift.
11403         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
11405 2014-07-03  Marek Polacek  <polacek@redhat.com>
11407         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
11408         (-fsanitize=float-divide-by-zero): Move to the table with
11409         -fsanitize=undefined suboptions.
11410         (-fsanitize=float-cast-overflow): Likewise.
11412 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
11414         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
11415         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
11416         endianness.
11418 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11420         * loop-invariant.c (struct invariant): Add a new member: eqno;
11421         (find_identical_invariants): Update eqno;
11422         (create_new_invariant): Init eqno;
11423         (get_inv_cost): Compute comp_cost with eqno;
11425 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
11427         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
11428         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
11429         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
11430         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
11431         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
11433 2014-07-02  Christian Bruel  <christian.bruel@st.com>
11435         PR target/29349
11436         PR target/53513
11437         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
11438         (make_preds_opaque): Delete.
11439         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
11440         (commit_mode_sets): New function.
11441         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
11442         Process all modes at once.
11443         * basic-block.h (pre_edge_lcm_avs): Declare.
11444         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
11445         Call clear_aux_for_edges. Fix comments.
11446         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
11447         (pre_edge_rev_lcm): Idem.
11448         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
11449         parameter.
11450         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
11451         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11452         Idem.
11453         * config/i386/i386.c (x96_emit_mode_set): Idem.
11454         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
11455         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
11456         (fpscr_toggle) Disallow from delay slot.
11457         * target.def (emit_mode_set): Add prev_mode parameter.
11458         * doc/tm.texi: Regenerate.
11460 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11462         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
11463         variable i.
11465 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
11467         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
11468         vtable_pointer_value_to_vtable): Constify.
11469         (contains_polymorphic_type_p): Declare.
11470         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
11471         vtable_pointer_value_to_vtable): Constify.
11472         (contains_polymorphic_type_p): New predicate.
11473         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
11474         polymorphic types.
11475         (ipa_set_ancestor_jf): Likewise.
11476         (detect_type_change): Return false in easy cases.
11477         (compute_complex_assign_jump_func): Require type to contain
11478         polymorphic type.
11479         (compute_known_type_jump_func): Likewise.
11481 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
11483         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
11484         Remove.
11485         (type_in_anonymous_namespace_p): Constify argument.
11486         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
11487         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
11488         (main_odr_variant): New function.
11489         (hash_type_name): Make static; update assert; do not ICE on
11490         non-records.
11491         (types_same_for_odr): Bring here from tree.c; simplify and remove
11492         old structural comparing code that doesn't work for templates.
11493         (odr_hasher::equal): Update assert.
11494         (add_type_duplicate): Return true when bases should be computed;
11495         replace incomplete loader by complete; do not output duplicated
11496         warnings; do not ICE on non-records; set odr_violated flag.
11497         (get_odr_type): Be ready to replace incomplete type by complete
11498         one; work on ODR variants instead of main variants; reorder item
11499         in array so bases have still smaller indexes.
11500         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
11501         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
11503 2014-07-01  Cary Coutant  <ccoutant@google.com>
11505         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
11506         lookup.
11507         (resolve_addr_in_expr): When replacing the rtx in a location list
11508         entry, get a new address table entry.
11509         (dwarf2out_finish): Call index_location_lists even if there are no
11510         addr_index_table entries yet.
11512 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
11514         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
11515         change for not being obvious.
11517 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
11519         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
11520         unused argument.
11522 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11524         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
11525         (vcagt_f64): Likewise.
11526         (vcale_f64): Likewise.
11527         (vcaled_f64): Likewise.
11528         (vcales_f32): Likewise.
11529         (vcalt_f64): Likewise.
11530         (vcaltd_f64): Likewise.
11531         (vcalts_f32): Likewise.
11533 2014-07-01  Marek Polacek  <polacek@redhat.com>
11535         * doc/invoke.texi: Document -Wint-conversion.
11537 2014-07-01  Marek Polacek  <polacek@redhat.com>
11539         PR c/58286
11540         * doc/invoke.texi: Document -Wincompatible-pointer-types.
11542 2014-07-01  Martin Liska  <mliska@suse.cz>
11544         IPA REF alias refactoring
11545         * cgraph.h (iterate_direct_aliases): New function.
11546         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
11547         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
11548         FOR_EACH_ALIAS added.
11549         (cgraph_for_node_and_aliases): Likewise.
11550         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
11551         * ipa-inline.c (reset_edge_caches): Likewise.
11552         (update_caller_keys): Likewise.
11553         * trans-mem.c (ipa_tm_execute): Likewise.
11554         *varpool.c (varpool_analyze_node): Likewise.
11555         (varpool_for_node_and_aliases): Likewise.
11556         * ipa-ref.h (first_alias): New function.
11557         (last_alias): Likewise.
11558         (has_aliases_p): Likewise.
11559         * ipa-ref.c (ipa_ref::remove_reference): Removal function
11560         is sensitive to IPA_REF_ALIASes.
11561         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
11562         are put at the beginning of the list.
11563         (symtab_node::iterate_direct_aliases): New function.
11565 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
11567         Revert:
11568         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
11569         type is complete.
11570         (write_ts_type_common_tree_pointers): Do not stream fields not set
11571         for incomplete types; do not stream duplicated fields for variants;
11572         sanity check that variant and type match.
11573         (write_ts_type_non_common_tree_pointers): Likewise.
11574         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
11575         TYPE_SIZE whether type is complete.
11576         (lto_input_ts_type_common_tree_pointers): Do same changes as in
11577         write_ts_type_common_tree_pointers
11578         (lto_input_ts_type_non_common_tree_pointers): Likewise.
11580 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
11582         * var-tracking.c (add_stores): Return instead of asserting if old
11583         and new values for conditional store are the same.
11585 2014-06-30  Richard Henderson  <rth@redhat.com>
11587         PR rtl-opt/61608
11588         PR target/39284
11589         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
11590         the cfg if there were any changes.
11591         * passes.def: Revert move of peephole2 after reorder_blocks;
11592         move duplicate_computed_gotos before peephole2.
11594 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
11596         * except.c (emit_note_eh_region_end): New helper function.
11597         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
11598         emit EH_REGION_END note.
11599         * jump.c (cleanup_barriers): Do not split a call and its
11600         corresponding CALL_ARG_LOCATION note.
11602 2014-06-30  Jeff Law  <law@redhat.com>
11604         PR tree-optimization/61607
11605         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
11606         deeper into the SSA_NAME_VALUE chain.
11608 2014-06-30  Marek Polacek  <polacek@redhat.com>
11610         * convert.c (convert_to_integer): Don't instrument conversions if the
11611         function has no_sanitize_undefined attribute.
11612         * ubsan.c: Don't run the ubsan pass if the function has
11613         no_sanitize_undefined attribute.
11615 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
11617         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
11618         -fsanitize=undefined suboptions.
11620 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
11622         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
11623         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
11624         against bigendian and adjust indices.
11626 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
11628         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
11630 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11632         PR target/61633
11633         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
11634         Add alternative; make early clobber.  Adjust both split patterns
11635         to use operand 0 as the working register.
11637 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
11639         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
11640         as ira_object_id_map might be NULL, or 1.
11642 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11644         * loop-invariant.c (get_inv_cost): Handle register class.
11645         (gain_for_invariant): Check the register pressure of the inv
11646         and its overlapped register class, other than all.
11648 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
11650         * doc/invoke.texi (Optimize Options): Fix descriptions of
11651         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
11653 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
11655         * doc/extend.texi (Function Attributes): Update 'naked' attribute
11656         documentation.
11658 2014-06-29  Tobias Grosser <tobias@grosser.es>
11660         PR bootstrap/61650
11661         * graphite-isl-ast-to-gimple.c: Add missing guards.
11663 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
11665         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
11666         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
11667         * flag-types.h: Add new enum fgraphite_generator.
11668         * graphite-isl-ast-to-gimple.c: New.
11669         * graphite-isl-ast-to-gimple.h: New.
11670         * graphite.c (graphite_transform_loops): Add choice of Graphite
11671         code generator, which depends on flag_graphite_code_gen.
11673 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
11675         * graphite-dependences.c (subtract_commutative_associative_deps):
11676         Add NULL checking of the following variables: must_raw_no_source,
11677         may_raw_no_source, must_war_no_source, may_war_no_source,
11678         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
11679         must_war, may_war, must_waw, may_waw.
11681 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
11683         * graphite-clast-to-gimple.c: gloog is renamed to
11684         graphite_regenerate_ast_cloog.  gloog_error is renamed to
11685         graphite_regenerate_error.
11686         * graphite-clast-to-gimple.h: The definition of the struct
11687         bb_pbb_def is moved to graphite-htab.h.
11688         Add inclusion of the hash-table.h.
11689         * graphite-htab.h: The declaration of the function gloog is moved
11690         to graphite-clast-to-gimple.h and renamed to
11691         graphite_regenerate_ast_cloog.
11692         * graphite.c (graphite_transform_loops): gloog is renamed
11693         to graphite_regenerate_ast_cloog.
11695 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
11697         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
11698         type is complete.
11699         (write_ts_type_common_tree_pointers): Do not stream fields not set
11700         for incomplete types; do not stream duplicated fields for variants;
11701         sanity check that variant and type match.
11702         (write_ts_type_non_common_tree_pointers): Likewise.
11703         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
11704         TYPE_SIZE whether type is complete.
11705         (lto_input_ts_type_common_tree_pointers): Do same changes as in
11706         write_ts_type_common_tree_pointers
11707         (lto_input_ts_type_non_common_tree_pointers): Likewise.
11709 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
11711         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
11713 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
11715         * tree-inline.c (remap_type_1): Do not duplicate fields
11716         that are shared in between type and its main variant.
11718 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
11720         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
11721         of the type.
11722         (ipa_set_ancestor_jf) Likewise.
11723         (check_stmt_for_type_change): Check that we work on main variant.
11724         (detect_type_change): Look into main variant.
11725         (compute_known_type_jump_func): Check that main variant has BINFO.
11727 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
11729         * ipa-devirt.c (set_type_binfo): New function.
11730         (add_type_duplicate): Use it.
11731         (get_odr_type): Sanity check that binfos points to main variants.
11732         (get_class_context): Be sure the context's outer_type is main variant.
11733         (contains_type_p): Walk main variant.
11734         (get_polymorphic_call_info_for_decl): Set outer_type to be
11735         main variant.
11736         (get_polymorphic_call_info): Likewise.
11737         (possible_polymorphic_call_targets): Sanity check that we operate
11738         on main variant.
11740 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
11742         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11744 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11746         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
11747         accidental change due to wide-int branch merge.
11749 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11751         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
11752         compressed debug support.
11753         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
11754         * configure: Regenerate.
11755         * config.in: Regenerate.
11756         * common.opt (compressed_debug_sections): New enum.
11757         (gz, gz=): New options.
11758         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
11759         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
11760         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
11761         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
11762         LINK_COMPRESS_DEBUG_SPEC.
11763         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
11764         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
11765         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
11766         (Debugging Options): Document -gz[=type].
11768 2014-06-27  Martin Jambor  <mjambor@suse.cz>
11770         PR ipa/61160
11771         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
11772         args_to_skip, use those from node instead.  Copy args_to_skip and
11773         combined_args_to_skip from node to the new thunk.
11774         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
11775         (cgraph_create_virtual_clone): Moved computation of
11776         combined_args_to_skip...
11777         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
11779 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
11781         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
11782         redundant diagnostic machinary.
11784 2014-06-27  Richard Biener  <rguenther@suse.de>
11786         * tree-ssa-math-opts.c (bswap_replace): Fix
11787         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
11789 2014-06-27  Martin Liska  <mliska@suse.cz>
11791         * gimple.h (gimple_location_safe): New function introduced.
11792         * cgraphunit.c (walk_polymorphic_call_targets): Usage
11793         of gimple_location_safe replaces gimple_location.
11794         (gimple_fold_call): Likewise.
11795         * ipa-devirt.c (ipa_devirt): Likewise.
11796         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11797         * ipa.c (walk_polymorphic_call_targets): Likewise.
11798         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
11800 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
11802         PR tree-optimization/57233
11803         PR tree-optimization/61299
11804         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
11805         functions.
11806         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
11807         would be lowered to scalar shifts, check if corresponding
11808         shifts and vector BIT_IOR_EXPR are supported and don't lower
11809         or lower just to narrower vector type in that case.
11810         * expmed.c (expand_shift_1): Fix up handling of vector
11811         shifts and rotates.
11813 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
11815         PR target/61586
11816         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
11818 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
11820         * doc/invoke.texi (-fsemantic-interposition): Document.
11821         * common.opt (fsemantic-interposition): New flag.
11822         * varasm.c (decl_replaceable_p): Use it.
11824 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11826         PR target/61542
11827         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
11828         extraction other than index 3.
11830 2014-06-26  Teresa Johnson  <tejohnson@google.com>
11832         * doc/invoke.texi: Fix typo.
11833         * dumpfile.c: Add support for documented -fdump-* options
11834         optimized/missed/note/optall.
11836 2014-06-26  Martin Jambor  <mjambor@suse.cz>
11838         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
11839         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
11840         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
11841         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
11842         * opts.c (default_options_optimization): Set
11843         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
11844         * doc/invoke.texi (allow-load-data-races)
11845         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
11846         (allow-store-data-races): Document the new default.
11848 2014-06-26  Martin Jambor  <mjambor@suse.cz>
11850         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
11851         renamed to ipa_impossible_devirt_target.  Fix typo.
11852         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
11853         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
11854         ipa_impossible_devirt_target.
11856 2014-06-26  Richard Biener  <rguenther@suse.de>
11858         PR tree-optimization/61607
11859         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
11860         explaining why we restrict copies on loop depth.
11861         * tree-ssa-dom.c (cprop_operand): Remove restriction on
11862         on loop depth.
11863         (record_equivalences_from_phis): Instead add it here.
11865 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
11867         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
11868         (LTO_WRAPPER_OBJS): New variable.
11869         (lto-wrapper$(exeext)): Use it.
11870         * collect2.c: Include "collect-utils.h".
11871         (verbose, debug): Remove variables.
11872         (at_file_supplied): No longer static.
11873         (tool_name): New variable.
11874         (do_wait, fork_execute, maybe_unlink): Don't declare.
11875         (tool_cleanup): No longer static.
11876         (notice): Remove function.
11877         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
11878         fork_execute calls.
11879         (collect_wait, do_wait, collect_execute): Remove functions.
11880         (maybe_unlink): No longer static.
11881         * collect2.h (verbose, debug): Don't declare.
11882         (at_file_supplied): Declare.
11883         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
11884         changed.
11885         (collect_execute): Replace with implementation from collect2, plus a
11886         new arg use_atfile.  All callers changed.
11887         (collect_wait): Replace with implementation from collect2.
11888         (maybe_unlink_file): Remove function.
11889         (fork_execute): Replace with implementation from collect2, plus a
11890         new arg use_atfile.  All callers changed.
11891         (do_wait): Add call to utils_cleanup to the error path.
11892         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
11893         (tool_cleanup): Adjust declarations.
11894         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
11895         * tlink.c: Include "collect-utils.h".
11896         (tlink_execute): New arg use_atfile.  All callers changed.
11897         (tlink_init, tlink_execute): Remove declarations.
11899         * collect-utils.c (save_temps): New variable.
11900         (do_wait): Use it instead of debug.  Use fatal_error.
11901         * collect-utils.h (save_temps): Declare.
11902         * collect2.c (verbose): Rename from vflag.  All uses changed.
11903         (tool_cleanup): New function, copied from collect_atexit.
11904         (collect_atexit, handler): Just call it.
11905         * collect2.h (verbose): Declaration renamed from vflag.
11906         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
11907         debug.
11909         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
11910         (lto-wrapper$(exeext)): Link with collect-utils.o.
11911         * collect-utils.c: New file.
11912         * collect-utils.h: New file.
11913         * lto-wrapper.c: Include "collect-utils.h".
11914         (args_name): Delete variable.
11915         (tool_name): New variable.
11916         (tool_cleanup): New function.
11917         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
11918         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
11919         (fork_execute): Remove functions.
11921 2014-06-26  Nick Clifton  <nickc@redhat.com>
11923         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
11925         * doc/extend.texi (Function Attributes): Fix typo in description
11926         of RX vector attribute.
11928 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
11930         * config.gcc (supported_defaults): Error when passing either
11931         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
11933 2014-06-26  Richard Biener  <rguenther@suse.de>
11935         * tree-ssa-dom.c (cprop_operand): Remove restriction on
11936         propagating volatile pointers.
11938 2014-06-26  Richard Biener  <rguenther@suse.de>
11940         PR tree-optimization/61607
11941         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
11942         loop if we redirected its latch edge.
11943         (thread_block_1): Do not cancel loops prematurely.
11945 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
11947         * toplev.c (backend_init_target): Move init_emit_regs and
11948         init_regs to...
11949         (backend_init) ... here; skip ira_init_once and backend_init_target.
11950         (target_reinit) ... and here; clear
11951         this_target_rtl->lang_dependent_initialized.
11952         (lang_dependent_init_target): Clear
11953         this_target_rtl->lang_dependent_initialized;
11954         break out rtl initialization to ...
11955         (initialize_rtl): ... here; call also backend_init_target
11956         and ira_init_once.
11957         * toplev.h (initialize_rtl): New function.
11958         * function.c: Include toplev.h
11959         (init_function_start): Call initialize_rtl.
11960         * rtl.h (target_rtl): Add target_specific_initialized,
11961         lang_dependent_initialized.
11963 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
11964             Jakub Jelinek  <jakub@redhat.com>
11966         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
11968 2014-06-25  Tom de Vries  <tom@codesourcery.com>
11970         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
11972 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11974         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
11975         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
11976         Issue a strict overflow warning if appropriate.
11978 2014-06-25  Martin Liska  <mliska@suse.cz>
11980         IPA REF refactoring
11981         * Makefile.in: Removed header file (ipa-ref-inline.h).
11982         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
11983         called.
11984         (cgraph_speculative_call_info): Likewise.
11985         (cgraph_for_node_thunks_and_aliases): Likewise.
11986         (cgraph_for_node_and_aliases): Likewise.
11987         (verify_cgraph_node): Likewise.
11988         * cgraph.h: Batch of IPA REF functions become member functions of
11989         symtab_node: add_reference, maybe_add_reference, clone_references,
11990         clone_referring, clone_reference, find_reference,
11991         remove_stmt_references, remove_all_references,
11992         remove_all_referring, dump_references, dump_referring,
11993         has_alias_p, iterate_reference, iterate_referring.
11994         * cgraphbuild.c (record_reference): New IPA REF function used.
11995         (record_type_list): Likewise.
11996         (record_eh_tables): Likewise.
11997         (mark_address): Likewise.
11998         (mark_load): Likewise.
11999         (mark_store): Likewise.
12000         (pass_build_cgraph_edges): Likewise.
12001         (rebuild_cgraph_edge): Likewise.
12002         (cgraph_rebuild_references): Likewise.
12003         (pass_remove_cgraph_callee_edges): Likewise.
12004         * cgraphclones.c (cgraph_clone_node): Likewise.
12005         (cgraph_create_virtual_clone): Likewise.
12006         (cgraph_materialize_clone): Likewise.
12007         (cgraph_materialize_all_clones): Likewise.
12008         * cgraphunit.c (cgraph_reset_node): Likewise.
12009         (cgraph_reset_node): Likewise.
12010         (analyze_function): Likewise.
12011         (assemble_thunks_and_aliases): Likewise.
12012         (expand_function): Likewise.
12013         * ipa-comdats.c (propagate_comdat_group): Likewise.
12014         (enqueue_references): Likewise.
12015         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
12016         (create_specialized_node): Likewise.
12017         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
12018         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
12019         * ipa-inline.c (reset_edge_caches): Likewise.
12020         (update_caller_keys): Likewise.
12021         (execute): Likewise.
12022         * ipa-prop.c (remove_described_reference): Likewise.
12023         (propagate_controlled_uses): Likewise.
12024         (ipa_edge_duplication_hook): Likewise.
12025         (ipa_modify_call_arguments): Likewise.
12026         * ipa-pure-const.c (propagate_pure_const): Likewise.
12027         * ipa-ref-inline.h: Header file removed, functions moved
12028         to symtab_node class.
12029         * ipa-ref.c (remove_reference): New class member function.
12030         (cannot_lead_to_return): New class member function.
12031         (referring_ref_list): Likewise.
12032         (referred_ref_list): Likewise.
12033         Rest of functions moved to symtab_node class.
12034         * ipa-ref.h: New member functions remove_reference,
12035         cannot_lead_to_return, referring_ref_list, referred_ref_list added
12036         to ipa_ref class.
12037         ipa_ref_list class has new member functions: first_reference,
12038         first_referring, clear, nreferences.
12039         * ipa-reference.c (analyze_function): New IPA REF function used.
12040         (write_node_summary_p): Likewise.
12041         (ipa_reference_write_optimization_summary): Likewise.
12042         * ipa-split.c (split_function): Likewise.
12043         * ipa-utils.c (ipa_reverse_postorder): Likewise.
12044         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
12045         (function_and_variable_visibility): Likewise.
12046         * ipa.c (has_addr_references_p): Likewise.
12047         (process_references): Argument type changed.
12048         (symtab_remove_unreachable_nodes): New IPA REF function used.
12049         (process_references): Likewise.
12050         (set_writeonly_bit): Likewise.
12051         * lto-cgraph.c: Implementation of new symtab_node member functions
12052         that uses new IPA REF functions.
12053         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
12054         function used.
12055         * lto-streamer-out.c (output_symbol_p): Likewise.
12056         * lto-streamer.h (referenced_from_this_partition_p): Argument type
12057         changed.
12058         * symtab.c: Implementation of new IPA REF API.
12059         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
12060         (ipa_tm_create_version): Likewise.
12061         (ipa_tm_execute): Likewise.
12062         * tree-emutls.c (gen_emutls_addr): Likewise.
12063         * tree-inline.c (copy_bb): Likewise.
12064         (delete_unreachable_blocks_update_callgraph): Likewise.
12065         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
12066         (varpool_for_node_and_aliases): Likewise.
12068 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
12070         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
12072 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
12074         PR bootstrap/61598
12075         * fold-const.c (fold_checksum_tree): Use a hash_table of const
12076         tree_node * instead of tree_node *.
12077         (fold): Adjust.
12078         (print_fold_checksum): Likewise.
12079         (fold_check_failed): Likewise.
12080         (debug_fold_checksum): Likewise.
12081         (fold_build1_stat_loc): Likewise.
12082         (fold_build2_stat_loc): Likewise.
12083         (fold_build3_stat_loc): Likewise.
12084         (fold_build_call_array_loc): Likewise.
12086 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
12088         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
12089         implementation with call to...
12090         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
12091         function.
12092         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
12093         Declare.
12095 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
12097         PR tree-optimization/57742
12098         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
12099         after replacing the statement.
12101 2014-06-25  Nick Clifton  <nickc@redhat.com>
12103         * config/v850/v850.c (GHS_default_section_names): Change to const
12104         char * type.
12105         (GHS_current_section_names): Likewise.
12106         (v850_insert_attributes): Do not build strings, just assign the
12107         names directly.  Change the type of 'chosen_section' to const
12108         char*.
12109         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
12110         directly to the array entry.
12111         * config/v850/v850.h (GHS_default_section_names): Change to const
12112         char * type.
12113         (GHS_current_section_names): Likewise.
12115 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
12117         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
12118         (LANG_HOOKS_DECLS): Add it.
12119         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
12120         has correct type.
12121         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
12122         * langhooks.h (struct lang_hooks_for_decls): Add
12123         omp_clause_linear_ctor hook.
12124         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
12125         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
12126         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
12127         combined simd loop use omp_clause_linear_ctor hook.
12129 2014-06-24  Cong Hou  <congh@google.com>
12131         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
12132         pattern recognition.
12133         (type_conversion_p): PROMOTION is true if it's a type promotion
12134         conversion, and false otherwise.  Return true if the given expression
12135         is a type conversion one.
12136         * tree-vectorizer.h: Adjust the number of patterns.
12137         * tree.def: Add SAD_EXPR.
12138         * optabs.def: Add sad_optab.
12139         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
12140         * expr.c (expand_expr_real_2): Likewise.
12141         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12142         * gimple.c (get_gimple_rhs_num_ops): Likewise.
12143         * optabs.c (optab_for_tree_code): Likewise.
12144         * tree-cfg.c (estimate_operator_cost): Likewise.
12145         * tree-ssa-operands.c (get_expr_operands): Likewise.
12146         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
12147         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
12148         * doc/generic.texi: Add document for SAD_EXPR.
12149         * doc/md.texi: Add document for ssad and usad.
12151 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
12153         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
12154         qualification in cast.
12156 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
12158         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
12159         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
12160         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
12161         (tree_function_decl): ... here.
12162         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
12163         streaming of vindex to ...
12164         (write_ts_function_decl_tree_pointers): ... here.
12165         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
12166         Do not stream DECL_VINDEX.
12167         (lto_input_ts_function_decl_tree_pointers): Stream it here.
12169 2014-06-24  Catherine Moore  <clm@codesourcery.com>
12170             Sandra Loosemore  <sandra@codesourcery.com>
12172         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
12173         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
12174         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
12176 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
12178         * doc/invoke.texi (Warning Options): Remove duplicated
12179         -Wmaybe-uninitialized.
12181 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
12183         PR tree-optimization/57742
12184         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
12185         (handle_builtin_malloc, handle_builtin_memset): New functions.
12186         (strlen_optimize_stmt): Call them.
12187         * passes.def: Move strlen after loop+dom but before vrp.
12189 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12191         PR target/61570
12192         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
12193         model family 6 CPU with has_longmode never use a CPU without
12194         64-bit support.
12196 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12198         PR target/61570
12199         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
12200         the last change.
12202 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
12204         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
12205         * dominance.c (iterate_fix_dominators): Use hash_map instead of
12206         pointer_map.
12207         * hash-map.h: New file.
12208         * ipa-comdats.c: Use hash_map instead of pointer_map.
12209         * ipa.c: Likewise.
12210         * lto-section-out.c: Adjust.
12211         * lto-streamer.h: Replace pointer_map with hash_map.
12212         * symtab.c (verify_symtab): Likewise.
12213         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
12214         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
12215         * tree-streamer.h: Likewise.
12216         * tree-streamer.c: Adjust.
12217         * pointer-set.h: Remove pointer_map.
12219 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
12221         * hash-table.h: Add a template arg to choose between storing values
12222         and storing pointers to values, and then provide partial
12223         specializations for both.
12224         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
12225         should store, not the type values should point to.
12226         * tree-into-ssa.c (var_info_hasher): Likewise.
12227         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12228         * tree-complex.c: Adjust.
12229         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
12230         table instead of int_tree_map *.
12231         * tree-parloops.c: Adjust.
12232         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
12233         type is being stored.
12234         * tree-vectorizer.c: Adjust.
12236 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
12238         * hash-table.h: Remove a layer of indirection from hash_table so that
12239         it contains the hash table's data instead of a pointer to the data.
12240         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
12241         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
12242         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
12243         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
12244         fold-const.c, gcse.c, ggc-common.c,
12245         gimple-ssa-strength-reduction.c, gimplify.c,
12246         graphite-clast-to-gimple.c, graphite-dependences.c,
12247         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
12248         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
12249         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
12250         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
12251         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
12252         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
12253         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
12254         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
12255         tree-ssa-live.c, tree-ssa-loop-im.c,
12256         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
12257         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
12258         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
12259         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
12260         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
12261         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
12262         vtable-verify.c, vtable-verify.h: Adjust.
12264 2014-06-24  Richard Biener  <rguenther@suse.de>
12266         PR tree-optimization/61572
12267         * tree-ssa-sink.c (statement_sink_location): Do not sink
12268         loads from hard registers.
12270 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12272         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
12273         not mentioned in clauses use private clause if the iterator is
12274         declared in #pragma omp for simd, and when adding lastprivate
12275         instead, add it to the outer #pragma omp for too.  Diagnose
12276         if the variable is private in outer context.  For simd collapse > 1
12277         loops, replace all iterators with temporaries.
12278         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
12279         same even in collapse > 1 loops.
12281         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
12282         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
12283         non-NULL.
12284         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
12285         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
12286         non-NULL.
12287         (gimplify_adjust_omp_clauses): Likewise.
12288         * omp-low.c (lower_rec_simd_input_clauses,
12289         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
12290         safelen the same as safelen(1).
12291         * tree-nested.c (convert_nonlocal_omp_clauses,
12292         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
12293         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
12294         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
12295         Fixup handling of GIMPLE_OMP_TARGET.
12296         (convert_tramp_reference_stmt, convert_gimple_call): Handle
12297         GIMPLE_OMP_TARGET.
12299 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
12301         PR tree-optimization/61554
12302         * tree-ssa-propagate.c: Include "bitmap.h".
12303         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
12304         properly update constructor/destructor.
12305         (substitute_and_fold_dom_walker::before_dom_children):
12306         Remove call to gimple_purge_dead_eh_edges, add bb->index to
12307         need_eh_cleaup instead.
12308         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
12309         need_eh_cleanup.
12311 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
12313         * varpool.c (dump_varpool_node): Dump used_by_single_function.
12314         * tree-pass.h (make_pass_ipa_single_use): New pass.
12315         * cgraph.h (used_by_single_function): New flag.
12316         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
12317         Stream it.
12318         * passes.def (pass_ipa_single_use): Scedule.
12319         * ipa.c (BOTTOM): New macro.
12320         (meet): New function
12321         (propagate_single_user): New function.
12322         (ipa_single_use): New function.
12323         (pass_data_ipa_single_use): New pass.
12324         (pass_ipa_single_use): New pass.
12325         (pass_ipa_single_use::gate): New gate.
12326         (make_pass_ipa_single_use): New function.
12328 2014-06-23  Kai Tietz  <ktietz@redhat.com>
12330         PR target/39284
12331         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
12332         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
12334 2014-06-23  Richard Biener  <rguenther@suse.de>
12336         * tree-ssa-loop.c (gate_loop): New function.
12337         (pass_tree_loop::gate): Call it.
12338         (pass_data_tree_no_loop, pass_tree_no_loop,
12339         make_pass_tree_no_loop): New.
12340         * tree-vectorizer.c: Include tree-scalar-evolution.c
12341         (pass_slp_vectorize::execute): Initialize loops and SCEV if
12342         required.
12343         (pass_slp_vectorize::clone): New method.
12344         * timevar.def (TV_TREE_NOLOOP): New.
12345         * tree-pass.h (make_pass_tree_no_loop): Declare.
12346         * passes.def (pass_tree_no_loop): New pass group with
12347         SLP vectorizer.
12349 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
12351         PR target/61570
12352         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
12353         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
12355 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
12357         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
12358         "yes" where needed.
12360 2014-06-23  Alan Modra  <amodra@gmail.com>
12362         PR bootstrap/61583
12363         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
12364         to zero on debug statements.
12366 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
12368         PR target/60825
12369         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
12370         Ignore third operand if present by marking qualifier_internal.
12372         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
12374         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
12375         vector extension.
12376         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
12377         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
12378         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
12379         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
12380         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
12381         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
12382         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
12383         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
12384         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
12385         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
12386         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
12387         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
12388         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
12389         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
12390         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
12391         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
12392         logic in GCC vector extensions
12394         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
12395         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
12396         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
12397         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
12398         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
12399         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
12400         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
12401         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
12402         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
12403         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
12405         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
12407         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
12408         extensions.
12410         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
12411         (vget_low_s64): Use __GET_LOW macro.
12412         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
12413         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
12414         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
12415         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
12416         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
12418         (vcombine_s64): Use GCC vector extensions; remove cast.
12419         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
12420         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
12421         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
12422         Fix type signature; remove cast.
12424 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
12426         PR target/60825
12427         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
12428         V1DFmode.
12429         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
12430         add V1DFmode
12431         (BUILTIN_VD1): New.
12432         (BUILTIN_VD_RE): Remove.
12433         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
12434         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
12435         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
12436         variant but not df.
12437         (vreinterpretv1df*, vreinterpret*v1df): New.
12438         (vreinterpretdf*, vreinterpret*df): Remove.
12439         * config/aarch64/aarch64-simd.md (aarch64_create,
12440         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
12441         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
12442         (VD1): New.
12443         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
12444         (vcreate_f64): Remove cast, use v1df builtin.
12445         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
12446         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
12447         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
12448         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
12449         vmov_n_f64, vst1_f64): Use gcc vector extensions.
12450         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
12451         add range check using __builtin_aarch64_im_lane_boundsi.
12452         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
12453         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
12454         type signature, use gcc vector extensions.
12455         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
12456         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
12457         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
12458         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
12459         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
12460         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
12461         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
12462         vreinterpret_u64_f64): Use v1df builtin not df.
12464 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
12466         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
12467         vector registers.
12469 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
12471         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
12472         priority directly.
12474 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12476         * loop-invariant.c (pre_check_invariant_p): New function.
12477         (find_invariant_insn): Call pre_check_invariant_p.
12479 2014-06-22  Richard Henderson  <rth@redhat.com>
12481         PR target/61565
12482         * compare-elim.c (struct comparison): Add eh_note.
12483         (find_comparison_dom_walker::before_dom_children): Don't eliminate
12484         a redundant comparison in a different EH region.  Purge EH edges if
12485         necessary.
12487 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12489         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
12490         (var_shift): Use it.
12491         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
12492         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
12493         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
12494         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
12495         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
12496         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
12497         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
12498         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
12499         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
12500         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
12501         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
12502         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
12503         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
12504         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
12505         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
12506         *rotldi3_internal15be): Use the new attribute.  Merge register and
12507         integer alternatives.
12509 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12511         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
12512         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
12513         split, *ashrdi3_internal3 and split): Delete, merge into...
12514         (ashr<mode>3): New expander.
12515         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
12516         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
12518 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12520         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
12521         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
12522         *rotldi3_internal3 and split): Delete, merge into...
12523         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
12524         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
12525         Use "rotlw" extended mnemonic.
12527 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12529         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
12530         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
12531         and split, *ashldi3_internal3 and split): Delete, merge into...
12532         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
12533         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
12535 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12537         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
12538         (lshrsi3, two anonymous define_insns and define_splits,
12539         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
12540         *lshrdi3_internal3 and split): Delete, merge into...
12541         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
12542         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
12544 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12546         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
12547         Remove "O" alternative.
12549 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
12551         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
12552         (mips_move_from_gpr_cost): Likewise.
12553         (mips_register_move_cost): Update accordingly.
12554         (mips_secondary_reload_class): Remove name of in_p.
12556 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
12558         PR target/61503
12559         * config/i386/i386.md (x86_64_shrd, x86_shrd,
12560         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
12562 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12564         * config/nios2/nios2.c: Include "builtins.h".
12566 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
12568         * cgraph.h (tls_model_names): New variable.
12569         * print-tree.c (print_node): Simplify.
12570         * varpool.c (tls_model_names): New variable.
12571         (dump_varpool_node): Output tls model.
12573 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
12575         * ipa-visibility.c (function_and_variable_visibility): Disable
12576         temporarily local aliases for some targets.
12578 2014-06-20  Marek Polacek  <polacek@redhat.com>
12580         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
12581         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
12582         into SANITIZE_UNDEFINED.
12583         * doc/invoke.texi: Describe -fsanitize=bounds.
12584         * gimplify.c (gimplify_call_expr): Add gimplification of internal
12585         functions created in the FEs.
12586         * internal-fn.c: Move "internal-fn.h" after "tree.h".
12587         (expand_UBSAN_BOUNDS): New function.
12588         * internal-fn.def (UBSAN_BOUNDS): New internal function.
12589         * internal-fn.h: Don't define internal functions here.
12590         * opts.c (common_handle_option): Add -fsanitize=bounds.
12591         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
12592         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
12593         * tree-core.h: Define internal functions here.
12594         (struct tree_base): Add ifn field.
12595         * tree-pretty-print.c: Include "internal-fn.h".
12596         (dump_generic_node): Handle functions without CALL_EXPR_FN.
12597         * tree.c (get_callee_fndecl): Likewise.
12598         (build_call_expr_internal_loc): New function.
12599         * tree.def (CALL_EXPR): Update description.
12600         * tree.h (CALL_EXPR_IFN): Define.
12601         (build_call_expr_internal_loc): Declare.
12602         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
12603         types.
12604         (ubsan_type_descriptor): Change bool parameter to enum
12605         ubsan_print_style.  Adjust the code.  Add handling of
12606         UBSAN_PRINT_ARRAY.
12607         (ubsan_expand_bounds_ifn): New function.
12608         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
12609         (ubsan_build_overflow_builtin): Likewise.
12610         (instrument_bool_enum_load): Likewise.
12611         (ubsan_instrument_float_cast): Likewise.
12612         * ubsan.h (enum ubsan_print_style): New enum.
12613         (ubsan_expand_bounds_ifn): Declare.
12614         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
12616 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
12618         * config/rs6000/rs6000.md: Append `DONE' to preparation
12619         statements of `bswap' pattern splitters.
12621 2014-06-20  Tom de Vries  <tom@codesourcery.com>
12623         * target.def (call_fusage_contains_non_callee_clobbers): Update
12624         definition.
12625         * doc/tm.texi: Regenerate.
12627 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
12628             Max Ostapenko  <m.ostapenko@partner.samsung.com>
12630         PR sanitizer/61547
12631         * asan.c (instrument_strlen_call): Fixed instrumentation of
12632         trailing byte.
12634 2014-06-20  Martin Jambor  <mjambor@suse.cz>
12636         PR ipa/61540
12637         * ipa-prop.c (impossible_devirt_target): New function.
12638         (try_make_edge_direct_virtual_call): Use it, also instead of
12639         asserting.
12641 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
12642             Max Ostapenko  <m.ostapenko@partner.samsung.com>
12644         PR sanitizer/61530
12645         * asan.c (build_check_stmt): Add condition.
12647 2014-06-20  Martin Jambor  <mjambor@suse.cz>
12649         PR ipa/61211
12650         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
12651         expanded clones.
12653 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12655         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
12656         Update comments.
12657         (VCONQ): Make comment more helpful.
12658         (VCON): Delete.
12659         * config/aarch64/aarch64-simd.md
12660         (aarch64_sqdmulh_lane<mode>):
12661         Use VCOND for operands 2.  Update lane checking and flipping logic.
12662         (aarch64_sqrdmulh_lane<mode>): Likewise.
12663         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
12664         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
12665         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
12666         attribute of operand 3 to VCOND.
12667         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
12668         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12669         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
12670         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
12671         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12672         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
12673         define_insn.
12674         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
12675         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
12676         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
12677         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
12678         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
12679         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
12680         operand to VCOND.  Update lane flipping and bounds checking logic.
12681         (aarch64_sqdmlal2_lane<mode>): Likewise.
12682         (aarch64_sqdmlsl_lane<mode>): Likewise.
12683         (aarch64_sqdmull_lane<mode>): Likewise.
12684         (aarch64_sqdmull2_lane<mode>): Likewise.
12685         (aarch64_sqdmlal_laneq<mode>):
12686         Replace VCON usage with VCONQ.
12687         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
12688         (aarch64_sqdmlal2_laneq<mode>): Emit
12689         aarch64_sqdmlal2_laneq<mode>_internal insn.
12690         Replace VCON with VCONQ.
12691         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
12692         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12693         (aarch64_sqdmull_laneq<mode>): Emit
12694         aarch64_sqdmull_laneq<mode>_internal insn.
12695         Replace VCON with VCONQ.
12696         (aarch64_sqdmull2_laneq<mode>): Emit
12697         aarch64_sqdmull2_laneq<mode>_internal insn.
12698         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
12699         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
12700         of 3rd argument to int16x4_t.
12701         (vqdmlalh_lane_s16): Likewise.
12702         (vqdmlslh_lane_s16): Likewise.
12703         (vqdmull_high_lane_s16): Likewise.
12704         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
12705         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
12706         (vqdmlsl_lane_s16): Likewise.
12707         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
12708         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
12709         (vqdmlals_lane_s32): Likewise.
12710         (vqdmlsls_lane_s32): Likewise.
12711         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
12712         (vqdmulls_lane_s32): Likewise.
12713         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
12714         (vqdmlsl_lane_s32): Likewise.
12715         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
12716         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
12717         (vqrdmulhh_lane_s16): Likewise.
12718         (vqdmlsl_high_lane_s16): Likewise.
12719         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
12720         (vqdmlsl_high_lane_s32): Likewise.
12721         (vqrdmulhs_lane_s32): Likewise.
12723 2014-06-20  Tom de Vries  <tom@codesourcery.com>
12725         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
12726         get_call_reg_set_usage.
12728 2014-06-20  Tom de Vries  <tom@codesourcery.com>
12730         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
12731         it contains all call_used_regs.
12733 2014-06-20  Tom de Vries  <tom@codesourcery.com>
12735         * final.c (collect_fn_hard_reg_usage): Add and use variable
12736         function_used_regs.
12738 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
12740         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
12741         (set_init_priority, get_init_priority, set_fini_priority,
12742         get_fini_priority): New methods.
12743         * tree.c (init_priority_for_decl): Remove.
12744         (init_ttree): Do not initialize init priority.
12745         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
12746         (decl_priority_info): Remove.
12747         (decl_init_priority_insert): Rewrite.
12748         (decl_fini_priority_insert): Rewrite.
12749         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
12750         tree_priority_map_marked_p): Remove.
12751         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
12752         * lto-streamer-out.c (hash_tree): Do not hash priorities.
12753         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
12754         not output priorities.
12755         (pack_ts_function_decl_value_fields): Likewise.
12756         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12757         not input priorities.
12758         (unpack_ts_function_decl_value_fields): Likewise.
12759         * symtab.c (symbol_priority_map): Declare.
12760         (init_priority_hash): Declare.
12761         (symtab_unregister_node): Unregister from priority hash, too.
12762         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
12763         New methods.
12764         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
12765         (symbol_priority_info): New function.
12766         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
12767         New methods.
12768         * tree-core.h (tree_priority_map): Remove.
12770 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
12772         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
12773         0xff to uint64_t before shifting it up.
12775 2014-06-20  Julian Brown  <julian@codesourcery.com>
12776             Chung-Lin Tang  <cltang@codesourcery.com>
12778         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
12779         TARGET_THUMB1_ONLY. Add comments.
12781 2014-06-19  Tom de Vries  <tom@codesourcery.com>
12783         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
12784         return type to void.
12785         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
12787 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12789         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
12790         as "move", from depends_on.
12792 2014-06-19  Terry Guo  <terry.guo@arm.com>
12794         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
12795         stage.
12797 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
12799         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
12800         Remove cr5.
12801         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
12803 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12805         PR target/61550
12806         * config/sh/sh.c (prepare_move_operands): Don't process TLS
12807         addresses here if reload in progress or completed.
12809 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
12811         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
12812         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
12813         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
12814         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
12815         (mips_register_priority): New function that implements the target
12816         hook TARGET_REGISTER_PRIORITY.
12817         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
12818         (mips_lra_p): Likewise for TARGET_LRA_P.
12819         (TARGET_REGISTER_PRIORITY): Define macro.
12820         (TARGET_SPILL_CLASS): Likewise.
12821         (TARGET_LRA_P): Likewise.
12822         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
12823         classes.
12824         (REG_CLASS_NAMES): Likewise.
12825         (REG_CLASS_CONTENTS): Likewise.
12826         (BASE_REG_CLASS): Use M16_SP_REGS.
12827         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
12828         New set attribute to enable alternatives depending on the register
12829         allocator used.
12830         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
12831         (*lea64): Disable pattern for MIPS16.
12832         * config/mips/mips.opt (mlra): New option.
12834 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
12836         * lra-constraints.c (base_to_reg): New function.
12837         (process_address): Use new function.
12839 2014-06-18  Tom de Vries  <tom@codesourcery.com>
12841         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
12842         * config/aarch64/aarch64.c
12843         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
12844         (aarch64_emit_call_insn): New function.
12845         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
12846         of emit_call_insn.
12847         * config/aarch64/aarch64.md (define_expand "call_internal")
12848         (define_expand "call_value_internal", define_expand "sibcall_internal")
12849         (define_expand "sibcall_value_internal"): New.
12850         (define_expand "call", define_expand "call_value")
12851         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
12852         expand variant and aarch64_emit_call_insn.
12854 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
12855             Tom de Vries  <tom@codesourcery.com>
12857         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
12858         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
12859         Redefine to true.
12860         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
12861         clobbers to CALL_INSN_FUNCTION_USAGE.
12862         (define_expand "sibcall_internal")
12863         (define_expand "sibcall_value_internal"): New.
12864         (define_expand "call", define_expand "call_value"): Add argument to
12865         arm_emit_call_insn.
12866         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
12867         (define_expand "sibcall_value"): Use sibcall_value_internal and
12868         arm_emit_call_insn.
12870 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12872         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
12874 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12876         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
12877         __udivmoddi4.
12879 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12881         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
12882         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
12883         annotations. Fix DWARF information.
12885 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12887         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
12888         __udivmoddi4, and fixups for negative operands.
12890 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12892         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
12894 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12896         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
12897         to __udivmoddi4.
12899 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12901         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
12902         manipulation.
12904 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12906         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
12907         describing register usage on function entry and exit.
12909 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12911         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
12912         (__aeabi_ldivmod): Fix whitespace.
12914 2014-06-18  Andreas Schwab  <schwab@suse.de>
12916         * doc/md.texi (Standard Names): Use @itemx for grouped items.
12917         Remove blank line after @item.
12919 2014-06-18  Richard Henderson  <rth@redhat.com>
12921         PR target/61545
12922         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
12924 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
12926         * config/arm/arm.c (neon_vector_mem_operand): Allow register
12927         POST_MODIFY for neon loads and stores.
12928         (arm_print_operand): Output post-index register for neon loads and
12929         stores.
12931 2014-06-18  Richard Biener  <rguenther@suse.de>
12933         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
12935 2014-06-18  Richard Biener  <rguenther@suse.de>
12937         * tree-pass.h (make_pass_dce_loop): Remove.
12938         * passes.def: Replace pass_dce_loop with pass_dce.
12939         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
12940         changed free niter estimates and reset the scev cache.
12941         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
12942         make_pass_dce_loop): Remove.
12943         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
12944         (fini_copy_prop): Return whether something changed.  Always
12945         let substitute_and_fold perform DCE and free niter estimates
12946         and reset the scev cache if so.
12947         (execute_copy_prop): If sth changed schedule cleanup-cfg.
12948         (pass_data_copy_prop): Do not unconditionally schedule
12949         cleanup-cfg or update-ssa.
12951 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
12953         PR tree-optimization/61518
12954         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12955         reduction var is used in reduction stmt or phi-function only.
12957 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12959         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
12961 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12963         PR tree-optimization/61517
12964         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
12965         whose rhs's first tree is the source expression instead of the
12966         expression itself.
12967         (find_bswap_or_nop): Likewise.
12968         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
12969         gimple stmt whose rhs's first tree is the source. In the memory source
12970         case, move the stmt to be replaced close to one of the original load to
12971         avoid the problem of a store between the load and the stmt's original
12972         location.
12973         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
12974         signature.
12976 2014-06-18  Andreas Schwab  <schwab@suse.de>
12978         PR rtl-optimization/54555
12979         * postreload.c (move2add_use_add2_insn): Substitute
12980         STRICT_LOW_PART only if it is cheaper.
12982 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
12984         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
12985         Do not use unspec as call operand.  Use memory_operand instead of
12986         memory_nox32_operand and add "m" operand constraint.  Disable
12987         pattern for TARGET_X32.
12988         (*sibcall_pop_memory): Ditto.
12989         (*sibcall_value_memory): Ditto.
12990         (*sibcall_value_pop_memory): Ditto.
12991         (sibcall peepholes): Merge SImode and DImode patterns using
12992         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
12993         Disable pattern for TARGET_X32.  Check if eliminated register is
12994         really dead after call insn.  Generate call RTX without unspec operand.
12995         (sibcall_value peepholes): Ditto.
12996         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
12997         instead of memory_nox32_operand.  Check if eliminated register is
12998         really dead after call insn. Generate call RTX without unspec operand.
12999         (sibcall_value_pop peepholes): Ditto.
13000         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
13002 2014-06-18  Terry Guo  <terry.guo@arm.com>
13004         PR target/61544
13005         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
13006         reach the head.
13008 2014-06-18  Olivier Hainque  <hainque@adacore.com>
13010         * tree-core.h (tree_block): Add an "end_locus" field, allowing
13011         memorization of the end of block source location.
13012         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
13013         * gimplify.c (gimplify_bind_expr): Propagate the block start and
13014         end source location info we have on the block entry/exit code we
13015         generate.
13017 2014-06-18  Richard Biener  <rguenther@suse.de>
13019         * common.opt (fssa-phiopt): New option.
13020         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
13021         but not with -Og.
13022         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
13023         * doc/invoke.texi (-fssa-phiopt): Document.
13025 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13027         * genattrtab.c (n_bypassed): New variable.
13028         (process_bypasses): Initialise n_bypassed.
13029         Count number of bypassed reservations.
13030         (make_automaton_attrs): Allocate space for bypassed reservations
13031         rather than number of bypasses.
13033 2014-06-18  Richard Biener  <rguenther@suse.de>
13035         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
13036         we propagated anything.
13037         (substitute_and_fold_dom_walker::before_dom_children): Something
13038         changed if we propagated into PHI arguments.
13039         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
13040         we removed a stmt.
13042 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
13044         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
13045         vector case.
13046         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
13047         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
13048         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
13049         Introduces alternative way of loads group permutaions.
13050         (vect_transform_grouped_load): Try alternative way of permutations.
13052 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
13054         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
13055         changed in ORT_TARGET region, don't jump to do_outer.
13056         (struct gimplify_adjust_omp_clauses_data): New type.
13057         (gimplify_adjust_omp_clauses_1): Adjust for data being
13058         a struct gimplify_adjust_omp_clauses_data pointer instead
13059         of tree *.  Pass pre_p as a new argument to
13060         lang_hooks.decls.omp_finish_clause hook.
13061         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
13062         splay_tree_foreach to pass both list_p and pre_p.
13063         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
13064         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
13065         gimplify_adjust_omp_clauses callers.
13066         * langhooks.c (lhd_omp_finish_clause): New function.
13067         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
13068         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
13069         * langhooks.h (struct lang_hooks_for_decls): Add a new
13070         gimple_seq * argument to omp_finish_clause hook.
13071         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
13072         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
13073         (scan_omp_parallel, lower_omp_for): When adding
13074         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
13075         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
13076         * tree-nested.c (convert_nonlocal_omp_clauses,
13077         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
13078         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
13080 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
13082         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
13083         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
13085 2014-06-17  Xinliang David Li  <davidxl@google.com>
13087         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
13088         * passes.c (pass_init_dump_file): Do not set initialize
13089         flag to false unconditionally.
13091 2014-06-17  Richard Biener  <rguenther@suse.de>
13093         * genopinit.c (main): Use vec<>::qsort method.
13094         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
13095         Likewise.
13096         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
13098 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
13100         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
13101         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
13102         (mips_move_to_gpr_cost): Remove ST_REGS case.
13103         (mips_move_from_gpr_cost): Likewise.
13104         (mips_register_move_cost): Likewise.
13105         (mips_secondary_reload_class): Likewise.
13107 2014-06-17  Richard Biener  <rguenther@suse.de>
13109         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
13110         (pass_all_optimizations): Move 3rd copy-prop pass from after
13111         fre to before ifcombine/phiopt.
13113 2014-06-17  Richard Biener  <rguenther@suse.de>
13115         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
13116         and allow all blocks to be forwarders.
13118 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
13120         PR target/61483
13121         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
13122         variable 'size'; calculate 'size' right in the front; use
13123         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
13124         pcum->aapcs_stack_words.
13126 2014-06-17  Nick Clifton  <nickc@redhat.com>
13128         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
13129         (umulhi3, mulsidi3, umulsidi3): Likewise.
13131 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
13133         PR middle-end/61508
13134         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
13135         check for section name.
13137 2014-06-17  Richard Biener  <rguenther@suse.de>
13139         * tree-ssa-propagate.c: Include domwalk.h.
13140         (substitute_and_fold): Outline main worker into a domwalker ...
13141         (substitute_and_fold_dom_walker::before_dom_children): ... here.
13142         Schedule stmts we can fully propagate for removal.  Remove
13143         poor-mans DCE.
13144         (substitute_and_fold): Apply a dominator walk to perform
13145         substitution.  Process stmts scheduled for removal here.
13147 2014-06-17  Richard Biener  <rguenther@suse.de>
13149         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
13150         of PHI node moving.
13152 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13154         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
13155         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
13156         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13157         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
13158         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
13159         TARGET_HARD_FLOAT.
13160         (get_fpscr) : Likewise.
13162 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
13164         PR rtl-optimization/61325
13165         * lra-constraints.c (valid_address_p): Add forward declaration.
13166         (simplify_operand_subreg): Check address validity before and after
13167         alter_reg of memory subreg.
13169 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
13171         * config/i386/i386.c (decide_alg): Correctly handle
13172         maximum size of stringop algorithm.
13174 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
13176         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
13178 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
13180         PR rtl-optimization/61522
13181         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
13183 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
13185         Revert:
13186         * symtab.c (symtab_node::reset_section): New method.
13187         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13188         for localization.
13189         * cgraph.h (reset_section): Declare.
13190         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13191         do not consider comdat locals.
13192         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13193         for new symbol.
13194         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13195         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13196         reset sections of symbols dragged out of the comdats.
13197         (function_and_variable_visibility): Reset sections of
13198         localized symbols.
13200 2014-06-16  Richard Biener  <rguenther@suse.de>
13202         PR tree-optimization/61482
13203         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
13204         [-INF(OVF), +INF(OVF)] range.
13206 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13208         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
13209         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
13210         handling 32-bit multiplication.
13212 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
13214         PR middle-end/61430
13215         * lra-lives.c (process_bb_lives): Skip creating copy during
13216         insn scan when src/dest has constrained to same regno.
13218 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
13220         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
13221         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
13223 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
13225         * asan.c (check_func): New function.
13226         (maybe_create_ssa_name): Likewise.
13227         (build_check_stmt_with_calls): Likewise.
13228         (use_calls_p): Likewise.
13229         (report_error_func): Change interface.
13230         (build_check_stmt): Allow non-integer lengths; add support
13231         for new parameter.
13232         (asan_instrument): Likewise.
13233         (instrument_mem_region_access): Moved code to build_check_stmt.
13234         (instrument_derefs): Likewise.
13235         (instrument_strlen_call): Likewise.
13236         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
13237         * doc/invoke.texi: Describe new parameter.
13238         * params.def: Define new parameter.
13239         * params.h: Likewise.
13240         * sanitizer.def: Describe new builtins.
13242 2014-06-16  Richard Biener  <rguenther@suse.de>
13244         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13245         Make all defs available at the end.
13246         (eliminate): If we remove a PHI node schedule cfg-cleanup.
13248 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
13250         PR plugins/45078
13251         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
13253 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
13255         PR bootstrap/61516
13256         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
13257         initialization.  Replace remaining use of uid.
13259 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
13261         * c-family/c-common.c (handle_tls_model_attribute): Use
13262         set_decl_tls_model.
13263         * c-family/c-common.c (handle_tls_model_attribute): Use
13264         set_decl_tls_model.
13265         * cgraph.h (struct varpool_node): Add tls_model.
13266         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
13267         * tree.h (DECL_TLS_MODEL): Update.
13268         (DECL_THREAD_LOCAL_P): Check that variable is static.
13269         (decl_tls_model): Declare.
13270         (set_decl_tls_model): Declare.
13271         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
13272         set symbol prorperties.
13273         (get_emutls_init_templ_addr): Cleanup.
13274         (new_emutls_decl): Update.
13275         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
13276         (lto_input_varpool_node): Likewise.
13277         * lto-streamer-out.c (hash_tree): Likewise.
13278         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13279         not stream DECL_TLS_MODEL.
13280         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
13281         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
13283 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13285         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
13287 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13289         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
13290         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
13291         lists.
13292         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
13293         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
13294         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
13295         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
13296         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
13297         (df_get_artificial_defs, df_get_artificial_uses)
13298         (df_single_def, df_single_use): Update accordingly.
13299         (df_refs_chain_dump): Take the first element in a linked list as
13300         parameter, rather than a pointer to an array of pointers.
13301         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
13302         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
13303         (df_chain_create_bb_process_use): Likewise.
13304         (df_md_bb_local_compute_process_def): Likewise.
13305         * fwprop.c (process_defs, process_uses): Likewise.
13306         (register_active_defs, update_uses): Likewise.
13307         (forward_propagate_asm): Update for new df_ref linking.
13308         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
13309         (df_null_ref_rec, df_null_mw_rec): Likewise.
13310         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
13311         explicitly.
13312         (df_scan_free_bb_info): Remove check for null artificial_defs.
13313         (df_install_ref_incremental): Adjust for new df_ref linking.
13314         Use a single-element insertion rather than a full sort.
13315         (df_ref_chain_delete_du_chain): Take the first element
13316         in a linked list as parameter, rather than a pointer to an array of
13317         pointers.
13318         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
13319         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
13320         (df_insn_info_delete): Remove check for null defs and call to
13321         df_scan_free_mws_vec.
13322         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
13323         null rather than df_null_*_rec.
13324         (df_insn_rescan_debug_internal): Likewise, and update null
13325         checks in the same way.  Remove check for null defs.
13326         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
13327         Move a single element rather doing a full sort.
13328         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
13329         linking.
13330         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
13331         Initialize df_ref and df_mw_hardreg lists to null rather than
13332         df_null_*_rec.
13333         (df_ref_compare): Take df_refs as parameter, transferring the
13334         old interface to...
13335         (df_ref_ptr_compare): ...this new function.
13336         (df_sort_and_compress_refs): Update accordingly.
13337         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
13338         old interface to...
13339         (df_mw_ptr_compare): ...this new function.
13340         (df_sort_and_compress_mws): Update accordingly.
13341         (df_install_refs, df_install_mws): Return a linked list rather than
13342         an array of pointers.
13343         (df_refs_add_to_chains): Assert that old lists are empty rather
13344         than freeing them.
13345         (df_insn_refs_verify): Don't handle null defs speciailly.
13346         * web.c (union_match_dups): Update for new df_ref linking.
13348 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13350         * df.h (df_ref_create, df_ref_remove): Delete.
13351         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
13352         (df_ref_remove): Likewise.
13354 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13356         * df.h (df_single_def, df_single_use): New functions.
13357         * ira.c (find_moveable_pseudos): Use them.
13359 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13361         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
13362         * df-problems.c (df_note_bb_compute): Use it.
13363         * regstat.c (regstat_bb_compute_ri): Likewise.
13365 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13367         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
13368         * cse.c (cse_extended_basic_block): Use them.
13369         * dce.c (mark_artificial_use): Likewise.
13370         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
13371         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13372         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
13373         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
13374         (df_simulate_initialize_backwards): Likewise.
13375         (df_simulate_finalize_backwards): Likewise.
13376         (df_simulate_initialize_forwards): Likewise.
13377         (df_md_simulate_artificial_defs_at_top): Likewise.
13378         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13379         * regrename.c (init_rename_info): Likewise.
13380         * regstat.c (regstat_bb_compute_ri): Likewise.
13381         (regstat_bb_compute_calls_crossed): Likewise.
13383 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13385         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
13386         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
13387         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
13388         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
13389         * combine.c (create_log_links): Likewise.
13390         * compare-elim.c (find_flags_uses_in_insn): Likewise.
13391         (try_eliminate_compare): Likewise.
13392         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
13393         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
13394         (remove_reg_equal_equiv_notes_for_defs): Likewise.
13395         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
13396         (word_dce_process_block, dce_process_block): Likewise.
13397         * ddg.c (def_has_ccmode_p): Likewise.
13398         * df-core.c (df_bb_regno_first_def_find): Likewise.
13399         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
13400         * df-problems.c (df_rd_simulate_one_insn): Likewise.
13401         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13402         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
13403         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
13404         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
13405         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
13406         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
13407         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
13408         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
13409         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13410         * fwprop.c (local_ref_killed_between_p): Likewise.
13411         (all_uses_available_at, free_load_extend): Likewise.
13412         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
13413         * hw-doloop.c (scan_loop): Likewise.
13414         * ifcvt.c (dead_or_predicable): Likewise.
13415         * init-regs.c (initialize_uninitialized_regs): Likewise.
13416         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
13417         (process_bb_node_lives): Likewise.
13418         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
13419         (find_moveable_pseudos): Likewise.
13420         * loop-invariant.c (check_dependencies, record_uses): Likewise.
13421         * recog.c (peep2_find_free_register): Likewise.
13422         * ree.c (get_defs): Likewise.
13423         * regstat.c (regstat_bb_compute_ri): Likewise.
13424         (regstat_bb_compute_calls_crossed): Likewise.
13425         * sched-deps.c (find_inc, find_mem): Likewise.
13426         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
13427         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
13428         * shrink-wrap.c (requires_stack_frame_p): Likewise.
13429         (prepare_shrink_wrap): Likewise.
13430         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
13431         * web.c (union_defs, pass_web::execute): Likewise.
13432         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
13433         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
13435 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
13437         * lra-assign.c (assign_by_spills): Add code to assign vector regs
13438         to inheritance pseudos.
13439         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
13441 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
13443         PR target/61415
13444         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
13445         (BU_MISC_2): Rename to ...
13446         (BU_LDBL128_2): ... this.
13447         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
13448         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
13449         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13450         RS6000_BTM_LDBL128.
13451         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
13452         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
13453         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
13454         (unpacktf_1): Likewise.
13455         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
13456         (__builtin_longdouble_dw1): Likewise.
13457         * doc/sourcebuild.texi (longdouble128): Document.
13459 2014-06-13  Jeff Law  <law@redhat.com>
13461         PR rtl-optimization/61094
13462         PR rtl-optimization/61446
13463         * ree.c (combine_reaching_defs): Get the mode for the copy from
13464         the extension insn rather than the defining insn.
13466 2014-06-13  Dehao Chen  <dehao@google.com>
13468         * dwarf2out.c (add_linkage_name): Emit more linkage name.
13470 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
13472         * doc/install.texi (--enable-linker-plugin-configure-flags)
13473         (--enable-linker-plugin-flags): Document new flags.
13475 2014-06-13  Martin Jambor  <mjambor@suse.cz>
13477         PR ipa/61186
13478         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
13479         cache_token if returning early.
13481 2014-06-13  Nick Clifton  <nickc@redhat.com>
13483         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
13484         requested alignment is active.
13485         (LABEL_ALIGN): Likewise.
13486         (LOOP_ALIGN): Likewise.
13488 2014-06-13  Richard Biener  <rguenther@suse.de>
13490         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13491         Rewrite to propagate the VN result into all uses where
13492         possible and to remove stmts becoming dead because of that.
13493         (eliminate): Generalize stmt removal handling, remove in
13494         reverse dominator order to support proper debug stmt
13495         generation.  Update stmts before removing stmts.
13496         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
13498 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13500         PR tree-optimization/61375
13501         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
13502         symbolic number cannot be represented in an uint64_t.
13503         (find_bswap_or_nop_1): Likewise.
13505 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
13507         * symtab.c (symtab_node::reset_section): New method.
13508         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13509         for localization.
13510         * cgraph.h (reset_section): Declare.
13511         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13512         do not consider comdat locals.
13513         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13514         for new symbol.
13515         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13516         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13517         reset sections of symbols dragged out of the comdats.
13518         (function_and_variable_visibility): Reset sections of
13519         localized symbols.
13521 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
13523         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
13524         to use symtab and decl_binds_to_current_def_p
13525         * tree-vectorizer.c (increase_alignment): Increase alignment
13526         of alias target, too.
13528 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
13530         PR middle-end/61486
13531         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
13532         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
13533         if outer combined construct is distribute.
13534         (gimplify_omp_for): For OMP_DISTRIBUTE set
13535         gimplify_omp_ctxp->distribute.
13536         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
13537         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
13538         mapping into decl map.
13540 2014-06-12  Jason Merrill  <jason@redhat.com>
13542         * common.opt (fabi-version): Change default to 0.
13544 2014-06-12  Jason Merrill  <jason@redhat.com>
13546         * toplev.c (process_options): Reject -fabi-version=1.
13548 2014-06-12  Jeff Law  <law@redhat.com>
13550         PR tree-optimization/61009
13551         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
13552         value when we stop processing a block due to problematic PHIs.
13554 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
13556         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
13557         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
13558         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
13559         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
13560         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
13561         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
13562         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
13563         are not in the spec.
13565 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
13567         PR target/59843
13568         * config/aarch64/aarch64-modes.def: Add V1DFmode.
13569         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
13570         Support V1DFmode.
13572 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
13574         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
13576 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
13578         PR target/61443
13579         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
13580         loading from address spaces.
13582 2014-06-12  Martin Liska  <mliska@suse.cz>
13584         PR ipa/61462
13585         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
13586         statement is reachable.
13588 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
13590         * symtab.c (section_hash): New hash.
13591         (symtab_unregister_node): Clear section before freeing.
13592         (hash_section_hash_entry): New haser.
13593         (eq_sections): New function.
13594         (symtab_node::set_section_for_node): New method.
13595         (set_section_1): Update.
13596         (symtab_node::set_section): Take string instead of tree as parameter.
13597         (symtab_resolve_alias): Update.
13598         * cgraph.h (section_hash_entry_d): New structure.
13599         (section_hash_entry): New typedef.
13600         (cgraph_node): Change comdat_group_ to x_comdat_group,
13601         change section_ to x_section and turn into section_hash_entry;
13602         update accestors; put set_section_for_node offline.
13603         * tree.c (decl_section_name): Turn into string.
13604         (set_decl_section_name): Change parameter to be string.
13605         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
13606         * sdbout.c (sdbout_one_type): Update.
13607         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
13608         * varasm.c (IN_NAMED_SECTION, get_named_section,
13609         resolve_unique_section, hot_function_section, get_named_text_section,
13610         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
13611         make_decl_rtl, default_unique_section): Update.
13612         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
13613         (c6x_elf_unique_section): Update.
13614         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
13615         * config/pa/pa.c (pa_function_section): Update.
13616         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
13617         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
13618         * config/arc/arc.c (arc_in_small_data_p): Update.
13619         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
13620         * config/mcore/mcore.c (mcore_unique_section): Update.
13621         * config/mips/mips.c (mips16_build_function_stub): Update.
13622         (mips16_build_call_stub): Update.
13623         (mips_function_rodata_section): Update.
13624         (mips_in_small_data_p): Update.
13625         * config/score/score.c (score_in_small_data_p): Update.
13626         * config/rx/rx.c (rx_in_small_data): Update.
13627         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
13628         (rs6000_xcoff_asm_named_section): Update.
13629         (rs6000_xcoff_unique_section): Update.
13630         * config/frv/frv.c (frv_string_begins_with): Update.
13631         (frv_in_small_data_p): Update.
13632         * config/v850/v850.c (v850_encode_data_area): Update.
13633         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
13634         (bfin_handle_l1_data_attribute): Update.
13635         (bfin_handle_l2_attribute): Update.
13636         * config/mep/mep.c (mep_unique_section): Update.
13637         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
13638         Update.
13639         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
13640         (h8300_handle_tiny_data_attribute): Update.
13641         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
13642         (m32r_in_small_data_p): Update.
13643         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
13644         * config/i386/i386.c (ix86_in_large_data_p): Update.
13645         * config/i386/winnt.c (i386_pe_unique_section): Update.
13646         * config/darwin.c (darwin_function_section): Update.
13647         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
13648         * tree-emutls.c (get_emutls_init_templ_addr): Update.
13649         (new_emutls_decl): Update.
13650         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
13651         input_varpool_node): Update.
13652         (ead_string_cst): Turn to ...
13653         (read_string): ... this one.
13654         * dwarf2out.c (secname_for_decl): Update.
13655         * asan.c (asan_protect_global): Update.
13657 2014-06-11  DJ Delorie  <dj@redhat.com>
13659         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
13660         cache lines.
13661         * config/rx/rx.c (rx_option_override): Likewise.
13662         (rx_align_for_label): Likewise.
13664         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
13666 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
13668         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
13669         prototype.
13671 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
13673         * common.md: New file.
13674         * doc/md.texi: Update description of generic, machine-independent
13675         constraints.
13676         * config/s390/constraints.md (e): Delete.
13677         * Makefile.in (md_file): Include common.md.
13678         * config/m32c/t-m32c (md_file): Likewise.
13679         * genpreds.c (general_mem): New array.
13680         (generic_constraint_letters): Remove constraints now defined by
13681         common.md.
13682         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
13683         Allow the first character to be '<' or '>' as well.
13684         * genoutput.c (general_mem): New array.
13685         (indep_constraints): Remove constraints now defined by common.md.
13686         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
13687         Remove special handling of 'm'.
13688         * ira-costs.c (record_reg_classes): Remove special handling of
13689         constraints now defined by common.md.
13690         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13691         * ira-lives.c (single_reg_class): Likewise.
13692         (ira_implicitly_set_insn_hard_regs): Likewise.
13693         * lra-constraints.c (reg_class_from_constraints): Likewise.
13694         (process_alt_operands, process_address, curr_insn_transform): Likewise.
13695         * postreload.c (reload_cse_simplify_operands): Likewise.
13696         * reload.c (push_secondary_reload, scratch_reload_class)
13697         (find_reloads, alternative_allows_const_pool_ref): Likewise.
13698         * reload1.c (maybe_fix_stack_asms): Likewise.
13699         * targhooks.c (default_secondary_reload): Likewise.
13700         * stmt.c (parse_output_constraint): Likewise.
13701         * recog.c (preprocess_constraints): Likewise.
13702         (constrain_operands, peep2_find_free_register): Likewise.
13703         (asm_operand_ok): Likewise, but add a comment saying why 'o'
13704         must be handled specially.
13706 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
13708         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
13709         * genpreds.c (have_const_dbl_constraints): Delete.
13710         (add_constraint): Don't set it.
13711         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
13712         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
13713         constraints using the lookup_constraint logic.
13714         * ira-lives.c (single_reg_class): Likewise.
13715         * ira.c (ira_setup_alts): Likewise.
13716         * lra-constraints.c (process_alt_operands): Likewise.
13717         * recog.c (asm_operand_ok, constrain_operands): Likewise.
13718         * reload.c (find_reloads): Likewise.
13720 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
13722         * genpreds.c (const_int_start, const_int_end): New variables.
13723         (choose_enum_order): Output CONST_INT constraints before memory
13724         constraints.
13725         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
13726         Add CT_CONST_INT.
13727         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
13728         * ira.c (ira_setup_alts): Likewise.
13729         * lra-constraints.c (process_alt_operands): Likewise.
13730         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
13731         * reload.c (find_reloads): Likewise.
13733 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
13735         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
13736         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
13737         * recog.c (preprocess_constraints): Update accordingly.
13739 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
13741         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
13742         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
13743         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
13744         * genpreds.c (print_type_tree): New function.
13745         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
13746         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
13747         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
13748         Write out enum constraint_type and get_constraint_type.
13749         * lra-constraints.c (satisfies_memory_constraint_p): Take a
13750         constraint_num rather than a constraint string.
13751         (satisfies_address_constraint_p): Likewise.
13752         (reg_class_from_constraints): Avoid old constraint macros.
13753         (process_alt_operands, process_address_1): Likewise.
13754         (curr_insn_transform): Likewise.
13755         * ira-costs.c (record_reg_classes): Likewise.
13756         (record_operand_costs): Likewise.
13757         * ira-lives.c (single_reg_class): Likewise.
13758         (ira_implicitly_set_insn_hard_regs): Likewise.
13759         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13760         * postreload.c (reload_cse_simplify_operands): Likewise.
13761         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
13762         (constrain_operands, peep2_find_free_register): Likewise.
13763         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
13764         (find_reloads, alternative_allows_const_pool_ref): Likewise.
13765         * reload1.c (maybe_fix_stack_asms): Likewise.
13766         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
13767         * targhooks.c (default_secondary_reload): Likewise.
13768         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
13769         to EXTRA_CONSTRAINT_STR.
13770         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
13772 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
13774         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
13775         (write_constraint_satisfied_p_array): ...this new function.
13776         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
13777         an array.
13778         (write_insn_preds_c): Update accordingly.
13780 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
13782         * genpreds.c (write_lookup_constraint): Rename to...
13783         (write_lookup_constraint_1): ...this.
13784         (write_lookup_constraint_array): New function.
13785         (write_tm_preds_h): Define lookup_constraint as an inline function
13786         that uses write_lookup_constraint_array where possible.
13787         (write_insn_preds_c): Update for the changes above.
13789 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
13791         * doc/md.texi (regclass_for_constraint): Rename to...
13792         (reg_class_for_constraint): ...this.
13793         * genpreds.c (num_constraints, enum_order, register_start)
13794         (register_end, satisfied_start, memory_start, memory_end)
13795         (address_start, address_end): New variables.
13796         (add_constraint): Count the number of constraints.
13797         (choose_enum_order): New function.
13798         (write_enum_constraint_num): Iterate over enum_order.
13799         (write_regclass_for_constraint): Rename to...
13800         (write_reg_class_for_constraint_1): ...this and update output
13801         accordingly.
13802         (write_constraint_satisfied_p): Rename to...
13803         (write_constraint_satisfied_p_1): ...this and update output
13804         accordingly.  Do nothing if all extra constraints are register
13805         constraints.
13806         (write_insn_extra_memory_constraint): Delete.
13807         (write_insn_extra_address_constraint): Delete.
13808         (write_range_function): New function.
13809         (write_tm_preds_h): Define constraint_satisfied_p and
13810         reg_class_for_constraint as inline functions that do a range check
13811         before calling the out-of-line function.  Use write_range_function
13812         to implement insn_extra_{register,memory,address}_constraint,
13813         the first of which is new.
13814         (write_insn_preds_c): Update after above changes to write_* functions.
13815         (main): Call choose_enum_order.
13817 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13819         PR tree-optimization/61306
13820         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
13821         expression instead of its size.
13822         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
13823         false to prevent optimization when the result is unpredictable due to
13824         arithmetic right shift of signed type with highest byte is set.
13825         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
13826         (init_symbolic_number): Likewise.
13827         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
13828         when the result is unpredictable due to sign extension.
13830 2014-06-11  Terry Guo  <terry.guo@arm.com>
13832         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
13833         (*thumb1_addsi3): Ditto.
13834         (*thumb_subdi3): Ditto.
13835         (thumb1_subsi3_insn): Ditto.
13836         (*thumb_mulsi3): Ditto.
13837         (*thumb_mulsi3_v6): Ditto.
13838         (*thumb1_andsi3_insn): Ditto.
13839         (thumb1_bicsi3): Ditto.
13840         (*thumb1_iorsi3_insn): Ditto.
13841         (*thumb1_xorsi3_insn): Ditto.
13842         (*thumb1_ashlsi3): Ditto.
13843         (*thumb1_ashrsi3): Ditto.
13844         (*thumb1_lshrsi3): Ditto.
13845         (*thumb1_rotrsi3): Ditto.
13846         (*thumb1_negdi2): Ditto.
13847         (*thumb1_negsi2): Ditto.
13848         (*thumb1_abssi2): Ditto.
13849         (*thumb1_neg_abssi2): Ditto.
13850         (*thumb1_one_cmplsi2): Ditto.
13851         (*thumb1_zero_extendhisi2): Ditto.
13852         (*thumb1_zero_extendqisi2): Ditto.
13853         (*thumb1_zero_extendqisi2_v6): Ditto.
13854         (thumb1_extendhisi2): Ditto.
13855         (thumb1_extendqisi2): Ditto.
13856         (*thumb1_movdi_insn): Ditto.
13857         (*thumb1_movsi_insn): Ditto.
13858         (*thumb1_movhi_insn): Ditto.
13859         (thumb_movhi_clobber): Ditto.
13860         (*thumb1_movqi_insn): Ditto.
13861         (*thumb1_movhf): Ditto.
13862         (*thumb1_movsf_insn): Ditto.
13863         (*thumb_movdf_insn): Ditto.
13864         (movmem12b): Ditto.
13865         (movmem8b): Ditto.
13866         (cbranchqi4): Ditto.
13867         (cbranchsi4_insn): Ditto.
13868         (cbranchsi4_scratch): Ditto.
13869         (*negated_cbranchsi4): Ditto.
13870         (*tbit_cbranch): Ditto.
13871         (*tlobits_cbranch): Ditto.
13872         (*tstsi3_cbranch): Ditto.
13873         (*cbranchne_decr1): Ditto.
13874         (*addsi3_cbranch): Ditto.
13875         (*addsi3_cbranch_scratch): Ditto.
13876         (*thumb_cmpdi_zero): Ditto.
13877         (cstoresi_eq0_thumb1): Ditto.
13878         (cstoresi_ne0_thumb1): Ditto.
13879         (*cstoresi_eq0_thumb1_insn): Ditto.
13880         (*cstoresi_ne0_thumb1_insn): Ditto.
13881         (cstoresi_nltu_thumb1): Ditto.
13882         (cstoresi_ltu_thumb1): Ditto.
13883         (thumb1_addsi3_addgeu): Ditto.
13884         (*thumb_jump): Ditto.
13885         (*call_reg_thumb1_v5): Ditto.
13886         (*call_reg_thumb1): Ditto.
13887         (*call_value_reg_thumb1_v5): Ditto.
13888         (*call_value_reg_thumb1): Ditto.
13889         (*call_insn): Ditto.
13890         (*call_value_insn): Ditto.
13891         (thumb1_casesi_internal_pic): Ditto.
13892         (thumb1_casesi_dispatch): Ditto.
13893         (*thumb1_indirect_jump): Ditto.
13894         (prologue_thumb1_interwork): Ditto.
13895         (*epilogue_insns): Ditto.
13896         (consttable_1): Ditto.
13897         (consttable_2): Ditto.
13898         (tablejump): Ditto.
13899         (*thumb1_tablejump): Ditto.
13900         (thumb_eh_return): Ditto.
13901         (define_peephole2): Two of them are thumb1 only and got moved into
13902         new file thumb1.md.
13903         (define_split): Six of them are thumb1 only and got moved into new
13904         file thumb1.md.
13905         * config/arm/thumb1.md: New file comprised of above thumb1 only
13906         patterns.
13908 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13910         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
13911         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
13912         dependencies.
13913         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
13914         (aarch64_crc_builtin_datum): New struct.
13915         (aarch64_crc_builtin_data): New.
13916         (aarch64_init_crc32_builtins): New function.
13917         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
13918         (aarch64_crc32_expand_builtin): New.
13919         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
13920         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13921         __ARM_FEATURE_CRC32 when appropriate.
13922         (TARGET_CRC32): Define.
13923         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
13924         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
13925         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
13926         (aarch64_<crc_variant>): New pattern.
13927         * config/aarch64/arm_acle.h: New file.
13928         * config/aarch64/iterators.md (CRC): New int iterator.
13929         (crc_variant, crc_mode): New int attributes.
13930         * doc/aarch64-acle-intrinsics.texi: New file.
13931         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
13932         Include aarch64-acle-intrinsics.texi.
13934 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
13936         * tree-vect-data-refs.c (vect_grouped_store_supported): New
13937         check for stores group of length 3.
13938         (vect_permute_store_chain): New permutations for stores group of
13939         length 3.
13940         * tree-vect-stmts.c (vect_model_store_cost): Change cost
13941         of vec_perm_shuffle for the new permutations.
13943 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
13945         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
13946         table rewriting temporarily on targets not supporting ONE_ONLY.
13948 2014-06-11  Richard Biener  <rguenther@suse.de>
13950         PR middle-end/61437
13951         Revert
13952         2014-06-04  Richard Biener  <rguenther@suse.de>
13954         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13955         TREE_PUBLIC and DECL_EXTERNAL decls.
13957 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
13959         * varasm.c (set_implicit_section): New function.
13960         (resolve_unique_section): Use it to set implicit section
13961         for aliases, too.
13962         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
13963         (default_function_section): Likewise.
13964         (decl_binds_to_current_def_p): Constify argument.
13965         * varasm.h (decl_binds_to_current_def_p): Update prototype.
13966         * asan.c (asan_protect_global): Use
13967         symtab_get_node (decl)->implicit_section.
13968         * symtab.c (dump_symtab_base): Dump implicit sections.
13969         (verify_symtab_base): Verify sanity of sectoins and comdats.
13970         (symtab_resolve_alias): Alias share the section of its target.
13971         (set_section_1): New function.
13972         (symtab_node::set_section): Move here, recurse to aliases.
13973         (verify_symtab): Check for duplicated symtab lists.
13974         * tree-core.h (implicit_section_name_p): Remove.
13975         * tree-vect-data-refs.c: Include varasm.h.
13976         (vect_can_force_dr_alignment_p): Fix conditional on when
13977         decl bints to current definition; use
13978         symtab_get_node (decl)->implicit_section.
13979         * cgraph.c (cgraph_make_node_local_1): Fix section set.
13980         * cgraph.h (struct symtab_node): Add implicit_section.
13981         (set_section): Rename to ...
13982         (set_section_for_node): ... this one.
13983         (set_section): Declare.
13984         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
13985         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
13986         input_overwrite_node, input_varpool_node): Stream implicit_section.
13987         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
13988         removal; it will fail in LTO.
13990 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13992         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
13993         Change second alternative type to f_mcr.
13994         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
13995         and 12th alternatives' types to f_mcr and f_mrc.
13996         (*movdi_aarch64): Same for 12th and 13th alternatives.
13997         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
13998         (aarch64_movtilow_tilow): Change type to fmov.
14000 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
14002         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
14003         (aarch64_save_or_restore_callee_save_registers): Fix layout.
14005 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14007         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
14008         New expander.
14009         (aarch64_sqrdmulh_lane<mode>): Likewise.
14010         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14011         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14012         (aarch64_sqdmulh_laneq<mode>): New expander.
14013         (aarch64_sqrdmulh_laneq<mode>): Likewise.
14014         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
14015         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
14016         (aarch64_sqdmulh_lane<mode>): New expander.
14017         (aarch64_sqrdmulh_lane<mode>): Likewise.
14018         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14019         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14020         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
14021         (aarch64_sqdmlal_laneq<mode>): Likewise.
14022         (aarch64_sqdmlsl_lane<mode>): Likewise.
14023         (aarch64_sqdmlsl_laneq<mode>): Likewise.
14024         (aarch64_sqdmlal2_lane<mode>): Likewise.
14025         (aarch64_sqdmlal2_laneq<mode>): Likewise.
14026         (aarch64_sqdmlsl2_lane<mode>): Likewise.
14027         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14028         (aarch64_sqdmull_lane<mode>): Likewise.
14029         (aarch64_sqdmull_laneq<mode>): Likewise.
14030         (aarch64_sqdmull2_lane<mode>): Likewise.
14031         (aarch64_sqdmull2_laneq<mode>): Likewise.
14033 2014-06-10  Richard Biener  <rguenther@suse.de>
14035         PR tree-optimization/61438
14036         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
14037         (eliminate_dom_walker::before_dom_children): Only try to inhibit
14038         insertion of IVs if running PRE.
14039         (eliminate): Adjust.
14040         (pass_pre::execute): Likewise.
14041         (pass_fre::execute): Likewise.
14043 2014-06-10  Richard Biener  <rguenther@suse.de>
14045         PR middle-end/61456
14046         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14047         Do not use the main variant for the type comparison.
14048         (ncr_compar): Likewise.
14049         (nonoverlapping_component_refs_p): Likewise.
14051 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14053         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
14054         REG_CFA_RESTORE mode.
14056 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
14058         * config/i386/i386.c (expand_vec_perm_pblendv): New.
14059         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
14060         expand_vec_perm_pblendv.
14062 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14064         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
14065         available.
14066         Simplify description of __crc32d and __crc32cd intrinsics.
14067         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
14068         availability.
14070 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
14072         PR lto/61334
14073         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
14074         * config.in: Regenerate.
14075         * configure: Likewise.
14077 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
14079         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
14080         and public vars.
14081         (intersect_static_var_sets): Remove.
14082         (propagate): Do not prune local statics.
14084 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
14086         PR fortran/60928
14087         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
14088         Set lastprivate_firstprivate even if omp_private_outer_ref
14089         langhook returns true.
14090         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
14091         langhook, call unshare_expr on new_var and call
14092         build_outer_var_ref to get the last argument.
14094 2014-06-10  Marek Polacek  <polacek@redhat.com>
14096         PR c/60988
14097         * doc/extend.texi: Add cindex for transparent_union.
14099 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14101         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
14102         init_symbolic_number ().
14104 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
14106         PR middle-end/61141
14107         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
14108         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
14109         (verify_rtl_sharing): Likewise.
14111 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
14113         PR c++/54442
14114         * tree.c (build_qualified_type): Use a canonical type for
14115         TYPE_CANONICAL.
14117 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14119         * config/arm/arm-modes.def: Remove XFmode.
14121 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
14123         PR target/61062
14124         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
14125         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
14126         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
14127         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
14128         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
14129         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
14130         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
14131         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
14132         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
14134 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
14136         * tree-core.h (tree_decl_with_vis): Remove section_name.
14138 2014-06-09  Kito Cheng  <kito@0xlab.org>
14140         * ira.c (ira): Don't call init_caller_save if LRA enabled
14141         since LRA use its own infrastructure to handle that.
14143 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14145         * symtab.c (dump_symtab_base): Update dumping.
14146         (symtab_make_decl_local): Clear only DECL_COMDAT.
14147         * tree-vect-data-refs.c (Check that variable is static before
14148         tampering with sections.
14149         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
14150         (cgraph_create_virtual_clone): Likewise.
14151         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
14152         (decl_section_name, set_decl_section_name): New accessors.
14153         (find_decls_types_r): Do not walk section name
14154         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
14155         (decl_comdat_group, decl_comdat_group_id): Constify.
14156         (decl_section_name, set_decl_section_name): Update.
14157         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
14158         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
14159         (cgraph_make_node_local_1): Clear section and comdat group.
14160         * cgraph.h (set_comdat_group): Sanity check.
14161         (get_section, set_section): New.
14162         * ipa-comdats.c (ipa_comdats): Use get_section.
14163         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
14164         * lto-streamer-out.c: Do not follow section names.
14165         * c-family/c-common.c (handle_section_attribute): Update.
14166         * lto-cgraph.c (lto_output_node): Output section.
14167         (lto_output_varpool_node): Likewise.
14168         (read_comdat_group): Rename to ...
14169         (read_identifier): ... this one.
14170         (read_string_cst): New function.
14171         (input_node, input_varpool_node): Input section names.
14172         * tree-emutls.c (get_emutls_init_templ_addr): Update.
14173         (new_emutls_decl): Update.
14174         (secname_for_decl): Check section names only of static vars.
14175         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
14176         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
14177         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14178         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14179         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
14180         * config/mcore/mcore.c (mcore_unique_section): Likewise.
14181         * config/mips/mips.c (mips16_build_function_stub): Likewise.
14182         * config/v850/v850.c (v850_insert_attributes): Likewise.
14183         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
14184         Likewise.
14185         (h8300_handle_tiny_data_attribute): Likewise.
14186         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
14187         (bfin_handle_l2_attribute): Likewise.
14189 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14191         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
14192         remove static initializer.
14194 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14196         * varasm.c (use_blocks_for_decl_p): Check symbol table
14197         instead of alias attribute.
14198         (place_block_symbol): Recurse on aliases.
14200 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14202         * ipa-visibility.c: Include varasm.h
14203         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
14205 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14207         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
14208         outputting aliases.
14210 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
14212         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
14213         from test_insn into GGC space escape via SET_SRC.
14215 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
14217         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
14218         call statement, if any.
14219         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
14220         statements, if any.  Tidy up.
14222 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14224         PR target/61431
14225         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
14226         iterators, VSX_D that handles 64-bit types, and VSX_LE that
14227         handles swapping the two 64-bit double words on little endian
14228         systems.  Include V1TImode and optionally TImode in VSX_LE so that
14229         these types are properly swapped.  Change all of the insns and
14230         splits that do the 64-bit swaps to use VSX_LE.
14231         (vsx_le_perm_load_<mode>): Likewise.
14232         (vsx_le_perm_store_<mode>): Likewise.
14233         (splitters for little endian memory operations): Likewise.
14234         (vsx_xxpermdi2_le_<mode>): Likewise.
14235         (vsx_lxvd2x2_le_<mode>): Likewise.
14236         (vsx_stxvd2x2_le_<mode>): Likewise.
14238 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
14240         PR target/61423
14241         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
14242         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
14243         and corresponding splitters.  Zero extend general register
14244         or memory input operand to XMM temporary.  Enable for
14245         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
14246         (floatunssi<mode>2): Update expander predicate.
14248 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
14250         PR rtl-optimization/61325
14251         * lra-constraints.c (process_address_1): Check scale equal to one
14252         to prevent transformation: base + scale * index => base + new_reg.
14254 2014-06-06  Richard Biener  <rguenther@suse.de>
14256         PR tree-optimization/59299
14257         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
14258         a def operand.
14259         (nearest_common_dominator_of_uses): Likewise.
14260         (statement_sink_location): Adjust.  Support sinking loads.
14262 2014-06-06  Martin Jambor  <mjambor@suse.cz>
14264         * ipa-prop.c (get_place_in_agg_contents_list): New function.
14265         (build_agg_jump_func_from_list): Likewise.
14266         (determine_known_aggregate_parts): Renamed to
14267         determine_locally_known_aggregate_parts.  Moved some functionality
14268         to the two functions above, removed bound checks.
14270 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
14272         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
14273         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
14274         (aarch64_progress_pointer): Likewise.
14275         (aarch64_copy_one_part_and_move_pointers): Likewise.
14276         (aarch64_expand_movmen): Likewise.
14277         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
14278         * config/aarch64/aarch64.md (movmem<mode>): New.
14280 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
14282         * targhooks.c (default_add_stmt_cost): Call target specific
14283         hook instead of default one.
14285 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14287         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
14288         endianness instead of host endianness.
14289         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
14290         comments.
14292 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14294         PR debug/53927
14295         * function.c (instantiate_decls): Process the saved static chain.
14296         (expand_function_start): If not optimizing, save the static chain
14297         onto the stack.
14298         * tree-nested.c (convert_all_function_calls): Always create the static
14299         chain for nested functions if not optimizing.
14301 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14303         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
14305 2014-06-06  Richard Biener  <rguenther@suse.de>
14307         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
14308         (construct_init_block): Likewise.
14309         (construct_exit_block): Likewise.
14310         (pass_expand::execute): Likewise.
14311         * graphite.c (graphite_transforms): Replace check for current_loops
14312         with a check for > 1 loops.
14313         (pass_graphite_transforms::execute): Adjust.
14314         * ipa-split.c (split_function): Remove check for current_loops.
14315         * omp-low.c (expand_parallel_call): Likewise.
14316         (expand_omp_for_init_counts): Likewise.
14317         (extract_omp_for_update_vars): Likewise.
14318         (expand_omp_for_generic): Likewise.
14319         (expand_omp_sections): Likewise.
14320         (expand_omp_target): Likewise.
14321         * tracer.c (tail_duplicate): Likewise.
14322         (pass_tracer::execute): Likewise.
14323         * trans-mem.c (expand_transaction): Likewise.
14324         * tree-complex.c (expand_complex_div_wide): Likewise.
14325         * tree-eh.c (lower_resx): Likewise.
14326         (cleanup_empty_eh_merge_phis): Likewise.
14327         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
14328         current_loops with a check for > 1 loops.
14329         (pass_predcom::execute): Adjust.
14330         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
14331         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
14332         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
14333         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
14334         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14335         * tree-switch-conversion.c (process_switch): Likewise.
14336         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
14337         * tree-vrp.c (vrp_visit_phi_node): Likewise.
14338         (execute_vrp): Likewise.
14339         * ubsan.c (ubsan_expand_null_ifn): Likewise.
14341 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14343         * rtl.h (insn_location): Declare.
14344         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
14345         with UNKNOWN_LOCATION.
14346         * emit-rtl.c (insn_location): New function.
14347         * final.c (notice_source_line): Check that the instruction has a
14348         location before retrieving it and use insn_location.
14349         * modulo-sched.c (loop_single_full_bb_p): Likewise.
14350         * print-rtl.c (print_rtx): Likewise.
14352 2014-06-06  Richard Biener  <rguenther@suse.de>
14354         * passes.def: Move 2nd VRP pass before phi-only-cprop.
14356 2014-06-06  Christian Bruel  <christian.bruel@st.com>
14358         PR tree-optimization/43934
14359         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
14360         cost.
14362 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
14364         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
14365         return NO_REGS for extra address and memory constraints.  Handle
14366         operands that match (or are equivalent to something that matches)
14367         extra constant constraints.  Ignore other non-register operands.
14369 2014-06-06  Alan Modra  <amodra@gmail.com>
14371         PR target/61300
14372         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
14373         * doc/tm.texi: Regenerate.
14374         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
14375         Use throughout in place of REG_PARM_STACK_SPACE.
14376         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
14377         "incoming" param.  Pass to rs6000_function_parms_need_stack.
14378         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
14379         prototype_p when incoming.  Use function decl when incoming
14380         to handle K&R style functions.
14381         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
14382         (INCOMING_REG_PARM_STACK_SPACE): Define.
14384 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14386         PR target/52472
14387         * cfgexpand.c (expand_debug_expr): Use address space of nested
14388         TREE_TYPE for ADDR_EXPR and MEM_REF.
14390 2014-06-05  Jeff Law  <law@redhat.com>
14392         PR tree-optimization/61289
14393         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
14394         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
14395         looking for those which match LHS.  All callers changed.
14396         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
14397         parameters and code which manipulated them.  All callers changed.
14398         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
14399         and DST_MAP parameters.  Simplify invalidation code by just calling
14400         invalidate_equivalences.  All callers changed.
14401         (thread_across_edge): Simplify now that we don't need to maintain
14402         the map of equivalences to invalidate.
14404 2014-06-05  Kai Tietz  <ktietz@redhat.com>
14405             Richard Henderson  <rth@redhat.com>
14407         PR target/46219
14408         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
14409         checking for !TARGET_X32.
14410         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
14411         (sibcall_intern): New define_insn, plus required peepholes.
14412         (sibcall_pop_intern): Likewise.
14413         (sibcall_value_intern): Likewise.
14414         (sibcall_value_pop_intern): Likewise.
14416 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
14418         * tree-inline.c (tree_function_versioning): Check DF info existence
14419         before accessing it.
14421 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14423         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
14424         frame_size.
14425         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
14426         aarch64_frame hard_fp_offset and frame_size.
14427         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
14428         frame_size; remove original_frame_size.
14429         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
14430         (aarch64_initial_elimination_offset): Remove frame_size and
14431         offset.  Use aarch64_frame frame_size.
14433 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14434             Jiong Wang  <jiong.wang@arm.com>
14435             Renlin  <renlin.li@arm.com>
14437         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
14438         initialization of R30 offset.  Update offset.  Iterate core
14439         regisers upto X30.  Remove X29, X30 specific code.
14441 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14442             Jiong Wang  <jiong.wang@arm.com>
14444         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
14445         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
14446         (aarch64_register_saved_on_entry): Adjust test.
14448 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14450         * config/aarch64/aarch64.h (machine_function): Move
14451         saved_varargs_size from here...
14452         (aarch64_frame): ... to here.
14454         * config/aarch64/aarch64.c (aarch64_expand_prologue)
14455         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
14456         (aarch64_initial_elimination_offset)
14457         (aarch64_setup_incoming_varargs): Adjust location of
14458         saved_varargs_size.
14460 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14462         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
14463         layout comment.
14465 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
14466             Prachi Godbole  <Prachi.Godbole@imgtec.com>
14468         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
14469         mips32r5 entry to use PROCESSOR_P5600.
14470         * config/mips/mips-tables.opt: Regenerate.
14471         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
14472         * config/mips/mips.c (mips_fmadd_bypass): New function.
14473         (mips_rtx_cost_data): Add costs for p5600.
14474         (mips_issue_rate): Add support for p5600.
14475         (mips_multipass_dfa_lookahead): Likewise.
14476         * config/mips/mips.h (TUNE_P5600): New define.
14477         (TUNE_MACC_CHAINS): Add TUNE_P5600.
14478         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
14479         * config/mips/mips.md: Include p5600.md.
14480         (processor): Add p5600.
14481         * config/mips/p5600.md: New file.
14483 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
14485         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
14486         * config/i386/predicates.md (palignr_operand): New.
14487         Indicates if permutation is suitable for palignr instruction.
14489 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
14491         PR tree-optimization/61319
14492         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14493         stmt belongs to loop.
14495 2014-06-05  Richard Biener  <rguenther@suse.de>
14497         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
14498         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
14499         (lookup_tmp_var): Adjust.
14500         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
14502 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14504         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
14506 2014-06-05  Marek Polacek  <polacek@redhat.com>
14508         PR c/49706
14509         * doc/invoke.texi: Document -Wlogical-not-parentheses.
14511 2014-06-04  Tom de Vries  <tom@codesourcery.com>
14513         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
14514         CONST_INT.
14516 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
14518         PR tree-optimization/61385
14519         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
14521 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
14523         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
14524         changed to use fatal_error.
14525         (main): Ensure lto_wrapper_cleanup is run atexit.
14527 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14529         * lra-constraints.c (valid_address_p): Move earlier in file.
14530         (address_eliminator): New structure.
14531         (satisfies_memory_constraint_p): New function.
14532         (satisfies_address_constraint_p): Likewise.
14533         (process_alt_operands, process_address, curr_insn_transform): Use them.
14535 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14537         * lra-int.h (lra_static_insn_data): Make operand_alternative a
14538         const pointer.
14539         (target_lra_int, default_target_lra_int, this_target_lra_int)
14540         (op_alt_data): Delete.
14541         * lra.h (lra_init): Delete.
14542         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
14543         (init_insn_code_data_once): Remove op_alt_data handling.
14544         (finish_insn_code_data_once): Likewise.
14545         (init_op_alt_data): Delete.
14546         (get_static_insn_data): Initialize operand_alternative to null.
14547         (free_insn_recog_data): Cast operand_alternative before freeing it.
14548         (setup_operand_alternative): Take the operand_alternative as
14549         parameter and assume it isn't already cached in the static
14550         insn data.
14551         (lra_set_insn_recog_data): Update accordingly.
14552         (lra_init): Delete.
14553         * ira.c (ira_init): Don't call lra_init.
14554         * target-globals.h (this_target_lra_int): Declare.
14555         (target_globals): Remove lra_int.
14556         (restore_target_globals): Update accordingly.
14557         * target-globals.c: Don't include lra-int.h.
14558         (default_target_globals, save_target_globals): Remove lra_int.
14560 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14562         * recog.h (operand_alternative): Convert reg_class, reject,
14563         matched and matches into bitfields.
14564         (preprocess_constraints): New overload.
14565         (preprocess_insn_constraints): New function.
14566         (preprocess_constraints): Take the insn as parameter.
14567         (recog_op_alt): Change into a pointer.
14568         (target_recog): Add x_op_alt.
14569         * recog.c (asm_op_alt): New variable.
14570         (recog_op_alt): Change into a pointer.
14571         (preprocess_constraints): New overload, replacing the old function
14572         definition with one that doesn't use global state.
14573         (preprocess_insn_constraints): New function.
14574         (preprocess_constraints): Use them.  Take the insn as parameter.
14575         Use asm_op_alt for asms.
14576         (recog_init): Free existing x_op_alt entries.
14577         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
14578         pointer const.
14579         (make_early_clobber_and_input_conflicts): Likewise.
14580         (process_bb_node_lives): Pass the insn to process_constraints.
14581         * reg-stack.c (check_asm_stack_operands): Likewise.
14582         (subst_asm_stack_regs): Likewise.
14583         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
14584         * regrename.c (build_def_use): Likewise.
14585         * sched-deps.c (sched_analyze_insn): Likewise.
14586         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
14587         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
14588         (note_invalid_constants): Likewise.
14589         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14590         (ix86_legitimate_combined_insn): Make operand_alternative pointer
14591         const.
14593 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14595         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
14596         * ira-lives.c (check_and_make_def_conflict): Check for disabled
14597         alternatives.
14598         (make_early_clobber_and_input_conflicts): Likewise.
14599         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14601 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14603         * recog.h (alternative_class): New function.
14604         (which_op_alt): Return a const recog_op_alt.
14605         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
14606         (subst_asm_stack_regs): Likewise.
14607         * config/arm/arm.c (note_invalid_constants): Likewise.
14608         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
14609         the operand_alternative; use alternative class instead.
14610         * sel-sched.c (get_reg_class): Likewise.
14611         * regrename.c (build_def_use): Likewise.
14612         (hide_operands, restore_operands, record_out_operands): Update type
14613         accordingly.
14615 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14617         * recog.h (recog_op_alt): Convert to a flat array.
14618         (which_op_alt): New function.
14619         * recog.c (recog_op_alt): Convert to a flat array.
14620         (preprocess_constraints): Update accordingly, grouping all
14621         operands of the same alternative together, rather than the
14622         other way around.
14623         * ira-lives.c (check_and_make_def_conflict): Likewise.
14624         (make_early_clobber_and_input_conflicts): Likewise.
14625         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14626         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
14627         (subst_asm_stack_regs): Likewise.
14628         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
14629         * regrename.c (hide_operands, record_out_operands): Likewise.
14630         (build_def_use): Likewise.
14631         * sel-sched.c (get_reg_class): Likewise.
14632         * config/arm/arm.c (note_invalid_constants): Likewise.
14634 2014-06-04  Jason Merrill  <jason@redhat.com>
14636         PR c++/51253
14637         PR c++/61382
14638         * gimplify.c (gimplify_arg): Non-static.
14639         * gimplify.h: Declare it.
14641 2014-06-04  Richard Biener  <rguenther@suse.de>
14643         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14644         TREE_PUBLIC and DECL_EXTERNAL decls.
14646 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
14648         * regcprop.c (copyprop_hardreg_forward_1): Account for
14649         HARD_REGNO_CALL_PART_CLOBBERED.
14651 2014-06-04  Richard Biener  <rguenther@suse.de>
14653         * configure.ac: Check whether the underlying type of int64_t
14654         is long or long long.
14655         * configure: Regenerate.
14656         * config.in: Likewise.
14657         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
14658         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14660 2014-06-04  Richard Biener  <rguenther@suse.de>
14662         PR tree-optimization/60098
14663         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
14664         we hit a kill.
14665         (dse_optimize_stmt): Simplify, now that we found a kill
14666         earlier.
14668 2014-06-04  Richard Biener  <rguenther@suse.de>
14670         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
14671         of accesses with non-invariant address.
14673 2014-06-04  Martin Liska  <mliska@suse.cz>
14675         * cgraph.h (cgraph_make_wrapper): New function introduced.
14676         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
14677         * ipa-inline.h (inline_analyze_function): The function is global.
14678         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
14680 2014-06-04  Martin Liska  <mliska@suse.cz>
14682         * tree.h (private_lookup_attribute_starting): New function.
14683         (lookup_attribute_starting): Likewise.
14684         * tree.c (private_lookup_attribute_starting): Likewise.
14686 2014-06-04  Martin Liska  <mliska@suse.cz>
14688         * cgraph.h (expand_thunk): New argument added.
14689         (address_taken_from_non_vtable_p): New global function.
14690         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
14691         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
14692         * cgraphunit.c (analyze_function): Likewise.
14693         (assemble_thunks_and_aliases): Argument added to call.
14694         (expand_thunk): New argument forces to produce GIMPLE thunk.
14696 2014-06-04  Martin Liska  <mliska@suse.cz>
14698         * coverage.h (coverage_compute_cfg_checksum): Argument added.
14699         * coverage.c (coverage_compute_cfg_checksum): Likewise.
14700         * profile.c (branch_prob): Likewise.
14702 2014-06-04  Martin Jambor  <mjambor@suse.cz>
14704         PR ipa/61340
14705         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
14706         handler for switch on an ipa_ref_use enum.
14707         * ipa-reference.c (analyze_function): Likewise.
14709 2014-06-04  Kai Tietz  <ktietz@redhat.com>
14711         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
14712         from old call-instruction.
14714 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
14716         * config/aarch64/aarch64.c (aarch64_classify_address)
14717         (aarch64_legitimize_reload_address): Support full addressing modes
14718         for vector modes.
14719         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
14720         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
14722 2014-06-03  Andrew Pinski  <apinski@cavium.com>
14724         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
14725         for OP0.
14727 2014-06-03  Andrew Pinski  <apinski@cavium.com>
14729         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
14730         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
14732 2014-06-03  Kai Tietz  <ktietz@redhat.com>
14734         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
14735         for 64-bit ms-abi.
14737 2014-06-03  Dehao Chen  <dehao@google.com>
14739         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
14740         the same loop.
14742 2014-06-03  Marek Polacek  <polacek@redhat.com>
14744         PR c/60439
14745         * doc/invoke.texi: Document -Wswitch-bool.
14746         * function.c (stack_protect_epilogue): Cast controlling expression of
14747         the switch to int.
14748         * gengtype.c (walk_type): Generate switch expression with its
14749         controlling expression cast to int.
14751 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
14753         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
14754         and attiny841.
14755         * config/avr/avr-tables.opt: Regenerate.
14756         * config/avr/t-multilib: Regenerate.
14757         * doc/avr-mmcu.texi: Regenerate.
14759 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
14760             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
14762         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
14763         (ata6617c, ata664251): Add new avr35 devices.
14764         (ata6612c): Add new avr4 device.
14765         (ata6613c, ata6614q): Add new avr5 devices.
14766         * config/avr/avr-tables.opt: Regenerate.
14767         * config/avr/t-multilib: Regenerate.
14768         * doc/avr-mmcu.texi: Regenerate.
14770 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
14772         * gcc/config/aarch64/aarch64-builtins.c
14773         (aarch64_types_binop_ssu_qualifiers): New static data.
14774         (TYPES_BINOP_SSU): Define.
14775         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
14776         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
14777         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
14778         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
14779         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
14780         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
14781         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
14782         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
14783         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
14784         suffix to builtin function name, remove cast.
14785         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
14786         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
14787         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
14789 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
14791         * gcc/config/aarch64/aarch64-builtins.c
14792         (aarch64_types_binop_uus_qualifiers,
14793         aarch64_types_shift_to_unsigned_qualifiers,
14794         aarch64_types_unsigned_shiftacc_qualifiers): Define.
14795         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
14796         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
14797         sqshlu_n, uqshl_n): Update qualifiers.
14798         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
14799         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
14800         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
14801         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
14802         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
14803         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
14804         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
14805         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
14806         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
14807         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
14808         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
14809         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
14810         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
14811         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
14812         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
14813         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
14814         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
14815         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
14816         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
14817         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
14818         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
14819         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
14820         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
14821         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
14822         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
14823         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
14824         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
14826 2014-06-03  Teresa Johnson  <tejohnson@google.com>
14828         * tree-sra.c (modify_function): Record caller nodes after rebuild.
14830 2014-06-02  Jason Merrill  <jason@redhat.com>
14832         PR c++/61020
14833         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
14835 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
14837         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
14838         location == 0.
14840 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
14842         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
14843         New pattern.
14844         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
14845         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
14846         * config/aarch64/iterators.md (REVERSE): New iterator.
14847         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
14848         (rev_op): New int_attribute.
14849         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
14850         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
14851         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
14852         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
14853         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
14854         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
14855         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
14856         Replace temporary __asm__ with __builtin_shuffle.
14858 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
14860         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
14861         mips64r5.
14862         * config/mips/mips-tables.opt: Regenerate.
14863         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
14864         to use mips_isa_rev rather than ISA_MIPS32R2.
14865         * config/mips/mips.h (ISA_MIPS32R3): New define.
14866         (ISA_MIPS32R5): New define.
14867         (ISA_MIPS64R3): New define.
14868         (ISA_MIPS64R5): New define.
14869         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
14870         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
14871         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
14872         and mips64r5.
14873         (MIPS_ISA_SYNCI_SPEC): Likewise.
14874         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
14875         (LINK_SPEC): Added mips32r3 and mips32r5.
14876         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
14877         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
14878         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
14879         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
14880         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
14881         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
14882         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
14884 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
14886         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
14887         options.
14888         * config/mips/mips.opt (mxpa): New option.
14889         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
14890         assembler.
14892 2014-06-03  Martin Jambor  <mjambor@suse.cz>
14894         PR ipa/61160
14895         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
14896         thunks.
14898 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14900         PR tree-optimization/61328
14901         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
14902         initialization from find_bswap_or_nop_1.
14903         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
14904         in source_expr2 before using the size value the function sets. Also
14905         make use of init_symbolic_number () in both the old place and
14906         find_bswap_or_nop_load () to avoid reading uninitialized memory when
14907         doing recursion in the GIMPLE_BINARY_RHS case.
14909 2014-06-03  Richard Biener  <rguenther@suse.de>
14911         PR tree-optimization/61383
14912         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
14913         stmts can't trap.
14915 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
14917         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
14918         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
14919         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
14920         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
14921         in this file.
14922         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
14923         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
14924         * system.h: ...here and make it unconditional.
14925         * target.def (conditional_register_usage): Mention
14926         define_register_constraint instead of old-style constraint macros.
14927         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
14928         * doc/tm.texi: Regenerate.
14929         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
14930         protected by !USE_MD_CONSTRAINTS.
14931         * config/frv/frv.md: Remove quote from old version of documentation.
14932         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
14933         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
14934         CONST_DOUBLE_OK_FOR_LETTER.
14935         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
14937 2014-06-02  Andrew Pinski  <apinski@cavium.com>
14939         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
14940         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
14941         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
14942         file whose name depends on -mabi= and -mbig-endian.
14943         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
14944         Handle LP64 better and handle ilp32 too.
14945         (MULTILIB_OPTIONS): Delete.
14946         (MULTILIB_DIRNAMES): Delete.
14948 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
14950         * expr.h: Remove prototypes of functions defined in builtins.c.
14951         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
14952         Remove prototypes of functions defined in builtins.c.
14953         * builtins.h: Update prototype list to include all exported functions.
14954         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
14955         no_c99_libc_has_function): Move to targhooks.c
14956         (build_string_literal, build_call_expr_loc_array,
14957         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
14958         to tree.c.
14959         (expand_builtin_object_size, fold_builtin_object_size): Make static.
14960         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
14961         no_c99_libc_has_function): Relocate from builtins.c.
14962         * tree.c: Include builtins.h.
14963         (build_call_expr_loc_array, build_call_expr_loc_vec,
14964         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
14965         from builtins.c.
14966         * fold-const.h (fold_fma): Move prototype to builtins.h.
14967         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
14968         * asan.c: Include builtins.h.
14969         * cfgexpand.c: Likewise.
14970         * convert.c: Likewise.
14971         * emit-rtl.c: Likewise.
14972         * except.c: Likewise.
14973         * expr.c: Likewise.
14974         * fold-const.c: Likewise.
14975         * gimple-fold.c: Likewise.
14976         * gimple-ssa-strength-reduction.c: Likewise.
14977         * gimplify.c: Likewise.
14978         * ipa-inline.c: Likewise.
14979         * ipa-prop.c: Likewise.
14980         * lto-streamer-out.c: Likewise.
14981         * stmt.c: Likewise.
14982         * tree-inline.c: Likewise.
14983         * tree-object-size.c: Likewise.
14984         * tree-sra.c: Likewise.
14985         * tree-ssa-ccp.c: Likewise.
14986         * tree-ssa-forwprop.c: Likewise.
14987         * tree-ssa-loop-ivcanon.c: Likewise.
14988         * tree-ssa-loop-ivopts.c: Likewise.
14989         * tree-ssa-math-opts.c: Likewise.
14990         * tree-ssa-reassoc.c: Likewise.
14991         * tree-ssa-threadedge.c: Likewise.
14992         * tree-streamer-in.c: Likewise.
14993         * tree-vect-data-refs.c: Likewise.
14994         * tree-vect-patterns.c: Likewise.
14995         * tree-vect-stmts.c: Likewise.
14996         * config/aarch64/aarch64.c: Likewise.
14997         * config/alpha/alpha.c: Likewise.
14998         * config/arc/arc.c: Likewise.
14999         * config/arm/arm.c: Likewise.
15000         * config/avr/avr.c: Likewise.
15001         * config/bfin/bfin.c: Likewise.
15002         * config/c6x/c6x.c: Likewise.
15003         * config/cr16/cr16.c: Likewise.
15004         * config/cris/cris.c: Likewise.
15005         * config/epiphany/epiphany.c: Likewise.
15006         * config/fr30/fr30.c: Likewise.
15007         * config/frv/frv.c: Likewise.
15008         * config/h8300/h8300.c: Likewise.
15009         * config/i386/i386.c: Likewise.
15010         * config/i386/winnt.c: Likewise.
15011         * config/ia64/ia64.c: Likewise.
15012         * config/iq2000/iq2000.c: Likewise.
15013         * config/lm32/lm32.c: Likewise.
15014         * config/m32c/m32c.c: Likewise.
15015         * config/m32r/m32r.c: Likewise.
15016         * config/m68k/m68k.c: Likewise.
15017         * config/mcore/mcore.c: Likewise.
15018         * config/mep/mep.c: Likewise.
15019         * config/microblaze/microblaze.c: Likewise.
15020         * config/mips/mips.c: Likewise.
15021         * config/mmix/mmix.c: Likewise.
15022         * config/mn10300/mn10300.c: Likewise.
15023         * config/moxie/moxie.c: Likewise.
15024         * config/msp430/msp430.c: Likewise.
15025         * config/nds32/nds32.c: Likewise.
15026         * config/pa/pa.c: Likewise.
15027         * config/pdp11/pdp11.c: Likewise.
15028         * config/picochip/picochip.c: Likewise.
15029         * config/rl78/rl78.c: Likewise.
15030         * config/rs6000/rs6000.c: Likewise.
15031         * config/rx/rx.c: Likewise.
15032         * config/s390/s390.c: Likewise.
15033         * config/score/score.c: Likewise.
15034         * config/sh/sh.c: Likewise.
15035         * config/sparc/sparc.c: Likewise.
15036         * config/spu/spu.c: Likewise.
15037         * config/stormy16/stormy16.c: Likewise.
15038         * config/tilegx/tilegx.c: Likewise.
15039         * config/tilepro/tilepro.c: Likewise.
15040         * config/v850/v850.c: Likewise.
15041         * config/vax/vax.c: Likewise.
15042         * config/xtensa/xtensa.c: Likewise.
15044 2014-06-02  Jeff Law  <law@redhat.com>
15046         PR rtl-optimization/61094
15047         * ree.c (combine_reaching_defs): Do not reextend an insn if it
15048         was marked as do_no_reextend.  If a copy is needed to eliminate
15049         an extension, then mark it as do_not_reextend.
15051 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15053         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
15055 2014-06-02  Richard Henderson  <rth@redhat.com>
15057         PR target/61336
15058         * config/alpha/alpha.c (print_operand_address): Allow symbolic
15059         addresses inside asms.  Use output_operand_lossage instead of
15060         gcc_unreachable.
15062 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
15064         PR target/61239
15065         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
15066         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
15068 2014-06-02  Tom de Vries  <tom@codesourcery.com>
15070         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
15071         case that x has VOIDmode.
15073 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
15075         * varasm.c (copy_constant): Delete function.
15076         (build_constant_desc): Don't call it.
15078 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15080         PR target/61154
15081         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
15082         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
15083         with immediate_operand.
15085 2014-06-02  Andreas Schwab  <schwab@suse.de>
15087         * config/ia64/ia64.c
15088         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
15089         pending_data_specs first.
15091 2014-06-02  Richard Biener  <rguenther@suse.de>
15093         PR tree-optimization/61378
15094         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
15095         valueized_anything.
15097 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
15099         * config/i386/constraints.md (Bw): Rename from 'w'.
15100         (Bz): Rename from 'z'.
15101         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
15103 2014-06-01  Kai Tietz  <ktietz@redhat.com>
15105         PR target/61377
15106         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
15107         * config/i386/i386.md (sibcall_insn_operand): Use Bs
15108         instead of m constraint.
15110 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
15112         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
15113         a separate alternative where the scratch operand 2 is marked as
15114         early clobber.
15116 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
15118         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15119         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
15120         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
15121         and __builtins_arm_get_fpscr.
15122         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15123         __builtins_arm_get_fpscr.
15124         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
15125         __builtins_arm_ldfpscr.
15126         (arm_atomic_assign_expand_fenv): New function.
15127         * config/arm/vfp.md (set_fpscr): New pattern.
15128         (get_fpscr) : Likewise.
15129         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
15130         VUNSPEC_SET_FPSCR.
15131         * doc/extend.texi (AARCH64 Built-in Functions) : Document
15132         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
15134 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
15136         * asan.c (report_error_func): Add SLOW_P argument, use
15137         BUILT_IN_ASAN_*_N if set.
15138         (build_check_stmt): Likewise.
15139         (instrument_derefs): If T has insufficient alignment,
15140         force same handling as for odd sizes.
15142         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
15143         BUILT_IN_ASAN_REPORT_STORE_N): New.
15144         * asan.c (struct asan_mem_ref): Change access_size type to
15145         HOST_WIDE_INT.
15146         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
15147         update_mem_ref_hash_table): Likewise.
15148         (asan_mem_ref_hasher::hash): Hash in a HWI.
15149         (report_error_func): Change size_in_bytes argument to HWI.
15150         Use *_N builtins if size_in_bytes is larger than 16 or not power of
15151         two.
15152         (build_shadow_mem_access): New function.
15153         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
15154         Handle size_in_bytes not power of two or larger than 16.
15155         (instrument_derefs): Don't give up if size_in_bytes is not
15156         power of two or is larger than 16.
15158 2014-05-30  Kai Tietz  <ktietz@redhat.com>
15160         PR target/60104
15161         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
15162         for sibling-tail-calls.
15163         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
15164         to its use.
15165         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
15166         (sibcall_insn_operand): Add check for sibcall_memory_operand.
15168 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15170         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
15171         * config/avr/avr-tables.opt: Regenerate.
15172         * config/avr/t-multilib: Regenerate.
15173         * doc/avr-mmcu.texi: Regenerate.
15175 2014-05-30  Ian Lance Taylor  <iant@google.com>
15177         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
15178         target("sse").
15180 2014-05-30  Tom de Vries  <tom@codesourcery.com>
15182         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15183         Redefine as true.
15185 2014-05-30  Tom de Vries  <tom@codesourcery.com>
15187         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15188         * lra.c (initialize_lra_reg_info_element): Add init of
15189         actual_call_used_reg_set field.
15190         (lra): Call lra_create_live_ranges before lra_inheritance for
15191         -fuse-caller-save.
15192         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15193         -fuse-caller-save.
15194         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
15195         instead of call_used_reg_set for -fuse-caller-save.
15196         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15198 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15200         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
15201         to mov_imm.
15202         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
15204 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
15206         * ira.c (ira_get_dup_out_num): Check for output operands at
15207         the start of the loop.  Handle cases where an included alternative
15208         follows an excluded one.
15210 2014-05-29  Mike Stump  <mikestump@comcast.net>
15212         PR debug/61352
15213         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
15214         post ld passes when lto is used.
15216 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
15218         PR rtl-optimization/61325
15219         * lra-constraints.c (process_address): Rename to process_address_1.
15220         (process_address): New function.
15222 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
15224         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
15225         TYPES_BINOPV): New static data.
15226         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
15227         New builtin.
15228         * config/aarch64/aarch64-simd.md (aarch64_ext,
15229         aarch64_im_lane_boundsi): New patterns.
15230         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
15231         patterns for EXT.
15232         (aarch64_evpc_ext): New function.
15234         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
15236         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
15237         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
15238         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
15239         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
15240         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
15242 2014-05-29  Tom de Vries  <tom@codesourcery.com>
15244         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
15246 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
15247             Richard Sandiford  <rdsandiford@googlemail.com>
15249         * arm/iterators.md (shiftable_ops): New code iterator.
15250         (t2_binop0, arith_shift_insn): New code attributes.
15251         * arm/predicates.md (shift_nomul_operator): New predicate.
15252         * arm/arm.md (insn_enabled): Delete.
15253         (enabled): Remove insn_enabled test.
15254         (*arith_shiftsi): Delete.  Replace with ...
15255         (*<arith_shift_insn>_multsi): ... new pattern.
15256         (*<arith_shift_insn>_shiftsi): ... new pattern.
15257         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
15259 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
15260             Tom de Vries  <tom@codesourcery.com>
15262         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
15263         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
15264         clobber.
15265         (mips_split_call): Use POST_CALL_TMP_REG.
15266         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
15268 2014-05-29  Tom de Vries  <tom@codesourcery.com>
15270         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
15271         with #ifdef STACK_REGS.
15273 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
15275         * varasm.c (get_variable_section): Walk aliases.
15276         (place_block_symbol): Walk aliases.
15278 2014-05-28  Tom de Vries  <tom@codesourcery.com>
15280         Revert:
15281         2014-05-28  Tom de Vries  <tom@codesourcery.com>
15283         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15284         * lra.c (initialize_lra_reg_info_element): Add init of
15285         actual_call_used_reg_set field.
15286         (lra): Call lra_create_live_ranges before lra_inheritance for
15287         -fuse-caller-save.
15288         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15289         -fuse-caller-save.
15290         * lra-constraints.c (need_for_call_save_p): Use
15291         actual_call_used_reg_set instead of call_used_reg_set for
15292         -fuse-caller-save.
15293         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15295 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15297         * doc/md.texi: Document that the % constraint character must
15298         be at the beginning of the string.
15299         * genoutput.c (validate_insn_alternatives): Check that '=',
15300         '+' and '%' only appear at the beginning of a constraint.
15301         * ira.c (commutative_constraint_p): Delete.
15302         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
15303         at the start of the string.
15304         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
15305         duplicate '='s.
15306         * config/arm/neon.md (bicdi3_neon): Likewise.
15307         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
15308         (slt_si, sltu_si): Likewise.
15309         * config/vax/vax.md (sbcdi3): Likewise.
15310         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
15311         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
15312         (mul64): Move '%' to beginning of constraint.
15313         * config/arm/arm.md (*xordi3_insn): Likewise.
15314         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
15315         (xorsi3): Likewise.
15317 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15319         * doc/md.texi: Document the restrictions on the "enabled" attribute.
15321 2014-05-28  Jason Merrill  <jason@redhat.com>
15323         PR c++/47202
15324         * cgraph.h (symtab_node::get_comdat_group_id): New.
15325         * cgraphunit.c (analyze_functions): Call it.
15326         * symtab.c (dump_symtab_node): Likewise.
15327         * tree.c (decl_comdat_group_id): New.
15328         * tree.h: Declare it.
15329         * lto-streamer-out.c (write_symbol): Use it.
15330         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
15332 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15334         PR bootstrap/PR61146
15335         * wide-int.cc: Do not include longlong.h when compiling with clang.
15337 2014-05-28  Richard Biener  <rguenther@suse.de>
15339         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
15340         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
15341         (vrp_visit_assignment_or_call): Print less vertical space.
15342         (vrp_visit_stmt): Likewise.
15343         (vrp_visit_phi_node): Likewise.  For a PHI argument with
15344         VR_VARYING range consider recording it as copy.
15346 2014-05-28  Richard Biener  <rguenther@suse.de>
15348         Revert
15349         2014-05-28  Richard Biener  <rguenther@suse.de>
15351         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15353 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15355         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
15356         sufficiently aligned and an offset is used at the same time.
15357         (expand_expr_real_1): Likewise.
15359 2014-05-28  Richard Biener  <rguenther@suse.de>
15361         PR middle-end/61045
15362         * fold-const.c (fold_comparison): When folding
15363         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
15364         the sign of the remaining constant operand stays the same.
15366 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
15368         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15369         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
15370         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
15371         to the assembler.
15372         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
15373         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
15374         (m32bit-doubles) Likewise.
15375         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
15376         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
15377         option for RL78.
15379 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15381         * configure.ac ($gcc_cv_ld_clearcap): New test.
15382         * configure: Regenerate.
15383         * config.in: Regenerate.
15384         * config/sol2.opt (mclear-hwcap): New option.
15385         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
15386         * config/sol2-clearcap.map: Moved here from
15387         testsuite/gcc.target/i386/clearcap.map.
15388         * config/sol2-clearcapv2.map: Move here from
15389         gcc.target/i386/clearcapv2.map.
15390         * config/t-sol2 (install): Depend on install-clearcap-map.
15391         (install-clearcap-map): New target.
15392         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
15393         -mclear-hwcap.
15395 2014-05-28  Richard Biener  <rguenther@suse.de>
15397         * hwint.h (*_HALF_WIDE_INT*): Move to ...
15398         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
15399         ... here and remove the rest.
15400         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15402 2014-05-28  Richard Biener  <rguenther@suse.de>
15404         PR tree-optimization/61335
15405         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
15406         new range fails, drop to varying.
15408 2014-05-28  Olivier Hainque  <hainque@adacore.com>
15410         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
15411         (CPP_SPEC): Add entry for -mcpu=8548.
15412         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
15413         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
15415 2014-05-28  Tom de Vries  <tom@codesourcery.com>
15417         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15418         * lra.c (initialize_lra_reg_info_element): Add init of
15419         actual_call_used_reg_set field.
15420         (lra): Call lra_create_live_ranges before lra_inheritance for
15421         -fuse-caller-save.
15422         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15423         -fuse-caller-save.
15424         * lra-constraints.c (need_for_call_save_p): Use
15425         actual_call_used_reg_set instead of call_used_reg_set for
15426         -fuse-caller-save.
15427         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15429 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
15430             Tom de Vries  <tom@codesourcery.com>
15432         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
15433         to gccoptlist.
15434         (@item -fuse-caller-save): New item.
15436 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
15437             Tom de Vries  <tom@codesourcery.com>
15439         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
15440         OPT_fuse_caller_save.
15442 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
15443             Tom de Vries  <tom@codesourcery.com>
15445         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
15446         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
15447         get_call_reg_set_usage.
15448         * resource.c (mark_set_resources, mark_target_live_regs): Use
15449         get_call_reg_set_usage.
15450         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
15451         field.
15452         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
15453         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
15454         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15455         * ira-build.c (ira_create_allocno): Init
15456         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15457         (create_cap_allocno, propagate_allocno_info)
15458         (propagate_some_info_from_allocno)
15459         (copy_info_to_removed_store_destinations): Handle
15460         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15461         * ira-costs.c (ira_tune_allocno_costs): Use
15462         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
15464 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
15465             Tom de Vries  <tom@codesourcery.com>
15467         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
15468         and function_used_regs_valid fields.
15469         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
15470         find_all_hard_reg_sets.
15471         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
15472         (get_call_reg_set_usage): New function.
15473         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
15474         * regs.h (get_call_reg_set_usage): Declare.
15476 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
15478         PR libgcc/61152
15479         * config/dbx.h (License): Add Runtime Library Exception.
15480         * config/newlib-stdint.h (License): Same.
15481         * config/rtems.h (License): Same
15482         * config/initfini-array.h (License): Same
15483         * config/v850/v850.h (License): Same.
15484         * config/v850/v850-opts.h (License): Same
15485         * config/v850/rtems.h (License): Same.
15487 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
15489         PR target/61044
15490         * doc/extend.texi (Local Labels): Note that label differences are
15491         not supported for AVR.
15493 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15494             Olivier Hainque  <hainque@adacore.com>
15496         * rtl.h (set_for_reg_notes): Declare.
15497         * emit-rtl.c (set_for_reg_notes): New function.
15498         (set_unique_reg_note): Use it.
15499         * optabs.c (add_equal_note): Likewise
15501 2014-05-27  Andrew Pinski  <apinski@cavium.com>
15503         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
15504         Use <w> for the register in assembly template.
15505         (stack_protect_test): Use the mode of operands[0] for the result.
15506         (stack_protect_test_<mode>): Use <w> for the register
15507         in assembly template.
15509 2014-05-27  DJ Delorie  <dj@redhat.com>
15511         * config/rx/rx.c (add_vector_labels): New.
15512         (rx_output_function_prologue): Call it.
15513         (rx_handle_func_attribute): Don't require empty arguments.
15514         (rx_handle_vector_attribute): New.
15515         (rx_attribute_table): Add "vector" attribute.
15516         * doc/extend.texi (interrupt, vector): Document new/changed
15517         RX-specific attributes.
15519         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
15521 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15523         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
15524         predicate to detect a negative quotient.
15526 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15528         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
15529         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
15530         Add X - Y CMP 0 to X CMP Y transformation.
15531         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
15533 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
15535         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
15536         before printing.
15538 2014-05-27  Steve Ellcey  <sellcey@mips.com>
15540         * config/mips/mips.c: Add include of cgraph.h.
15542 2014-05-27  Richard Biener  <rguenther@suse.de>
15544         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
15546 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
15548         PR libgcc/61152
15549         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
15550         * config/arm/arm-cores.def (License): Same.
15551         * config/arm/arm-opts.h (License): Same.
15552         * config/arm/aout.h (License): Same.
15553         * config/arm/bpabi.h (License): Same.
15554         * config/arm/elf.h (License): Same.
15555         * config/arm/linux-elf.h (License): Same.
15556         * config/arm/linux-gas.h (License): Same.
15557         * config/arm/netbsd-elf.h (License): Same.
15558         * config/arm/uclinux-eabi.h (License): Same.
15559         * config/arm/uclinux-elf.h (License): Same.
15560         * config/arm/vxworks.h (License): Same.
15562 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15564         * config/arm/neon.md (neon_bswap<mode>): New pattern.
15565         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
15566         (arm_init_neon_builtins): Handle NEON_BSWAP.
15567         Define required type nodes.
15568         (arm_expand_neon_builtin): Handle NEON_BSWAP.
15569         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
15570         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
15571         * config/arm/iterators.md (VDQHSD): New mode iterator.
15573 2014-05-27  Richard Biener  <rguenther@suse.de>
15575         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15576         Try using literal operands when comparing value-ranges failed.
15578 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
15580         * ira.c (commutative_operand): Adjust for change to recog_data.
15581         [Missing from previous commit.]
15583 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
15585         * system.h (TEST_BIT): New macro.
15586         * recog.h (alternative_mask): New type.
15587         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
15588         (recog_data_d): Replace alternative_enabled_p array with
15589         enabled_alternatives.
15590         (target_recog): New structure.
15591         (default_target_recog, this_target_recog): Declare.
15592         (get_enabled_alternatives, recog_init): Likewise.
15593         * recog.c (default_target_recog, this_target_recog): New variables.
15594         (get_enabled_alternatives): New function.
15595         (extract_insn): Use it.
15596         (recog_init): New function.
15597         (preprocess_constraints, constrain_operands): Adjust for change to
15598         recog_data.
15599         * postreload.c (reload_cse_simplify_operands): Likewise.
15600         * reload.c (find_reloads): Likewise.
15601         * ira-costs.c (record_reg_classes): Likewise.
15602         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
15603         all alternatives after a disabled one would be skipped.
15604         (ira_implicitly_set_insn_hard_regs): Likewise.
15605         * ira.c (ira_setup_alts): Adjust for change to recog_data.
15606         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
15607         with enabled_alternatives.
15608         * lra.c (free_insn_recog_data): Update accordingly.
15609         (lra_update_insn_recog_data): Likewise.
15610         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
15611         * lra-constraints.c (process_alt_operands): Likewise.  Handle
15612         only_alternative as part of the enabled mask.
15613         * target-globals.h (this_target_recog): Declare.
15614         (target_globals): Add a recog field.
15615         (restore_target_globals): Restore this_target_recog.
15616         * target-globals.c: Include recog.h.
15617         (default_target_globals): Initialize recog field.
15618         (save_target_globals): Likewise.
15619         * reginfo.c (reinit_regs): Call recog_init.
15620         * toplev.c (backend_init_target): Likewise.
15622 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
15624         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
15625         rather than any named insn's code.
15627 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
15629         PR libgcc/61152
15630         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
15631         * config/arm/arm-cores.def (License): Same.
15633 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
15635         * tree.h (decl_comdat_group): Declare.
15636         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
15637         * tree.c (decl_comdat_group): Here.
15639 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
15641         PR rtl-optimization/61222
15642         * combine.c (simplify_shift_const_1): When moving a PLUS outside
15643         the shift, truncate the PLUS operand to the result mode.
15645 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
15647         PR target/61271
15648         * config/i386/i386.c (ix86_rtx_costs)
15649         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
15650         Fix condition.
15652 2014-05-26  Martin Jambor  <mjambor@suse.cz>
15654         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
15655         subreg uses.
15657 2014-05-26  Richard Biener  <rguenther@suse.de>
15659         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
15660         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
15661         Provide specializations.
15662         (wi::int_traits <HOST_WIDE_INT>,
15663         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
15665 2014-05-26  Alan Modra  <amodra@gmail.com>
15667         PR target/61098
15668         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
15669         params and return a bool.  Remove dead code.  Update comment.
15670         Assert we have a const_int source.  Remove bogus code from
15671         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
15672         handling of constants > 2G and reg_equal note, from..
15673         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
15674         return value.  Update comment.  If we can, use a new pseudo
15675         for intermediate calculations.
15676         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
15677         prototype.
15678         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
15679         call to rs6000_emit_set_const in splitter.
15680         (movdi_internal64+2, +3): Likewise.
15682 2014-05-26  Richard Biener  <rguenther@suse.de>
15684         * system.h: Define __STDC_FORMAT_MACROS before
15685         including inttypes.h.
15686         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
15687         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
15688         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
15689         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
15690         HOST_WIDEST_INT_C): Remove.
15691         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
15692         if C99 inttypes.h is not available.
15693         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
15694         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
15695         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
15696         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
15697         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
15698         (struct output_info): Likewise.
15699         (print_statistics): Adjust.
15700         (dump_bitmap_statistics): Likewise.
15701         * bt-load.c (migrate_btr_defs): Print with PRId64.
15702         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
15703         (MAX_SAFE_MULTIPLIER): Adjust.
15704         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
15705         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
15706         dump_cgraph_node): Likewise.
15707         * final.c (dump_basic_block_info): Likewise.
15708         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
15709         * gcov.c (format_gcov): Likewise.
15710         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
15711         for calculation.
15712         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
15713         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
15714         (inline_small_functions, dump_overall_stats, dump_inline_stats):
15715         Use PRId64 for dumping.
15716         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
15717         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
15718         (add_allocno_hard_regs): Adjust.
15719         * loop-doloop.c (doloop_modify): Print using PRId64.
15720         * loop-iv.c (inverse): Compute in uint64_t.
15721         (determine_max_iter, iv_number_of_iterations): Likewise.
15722         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
15723         Print using PRId64.
15724         * lto-streamer-out.c (write_symbol): Use uint64_t.
15725         * mcf.c (CAP_INFINITY): Use int64_t maximum.
15726         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
15727         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
15728         * modulo-sched.c (const_iteration_count): Use int64_t.
15729         (sms_schedule): Dump using PRId64.
15730         * predict.c (dump_prediction): Likewise.
15731         * pretty-print.h (pp_widest_integer): Remove.
15732         * profile.c (get_working_sets, is_edge_inconsistent,
15733         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
15734         * tree-pretty-print.c (pp_double_int): Remove case handling
15735         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
15736         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
15737         and adjust users.
15738         (pass_optimize_bswap::execute): Remove restriction on hosts.
15739         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
15740         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
15741         * tree.c (widest_int_cst_value): Remove.
15742         * tree.h (widest_int_cst_value): Likewise.
15743         * value-prof.c (dump_histogram_value): Print using PRId64.
15744         * gengtype.c (main): Also inject int64_t.
15745         * ggc-page.c (struct max_alignment): Use int64_t.
15746         * alloc-pool.c (struct allocation_object_def): Likewise.
15747         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
15748         for computation.
15749         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
15750         * doc/tm.texi: Regenerated.
15751         * gengtype-lex.l (IWORD): Handle [u]int64_t.
15752         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
15753         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
15754         mmix_output_register_setting): Use [u]int64_t in prototypes.
15755         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
15756         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
15757         mmix_output_octa, mmix_output_shifted_value): Adjust.
15758         (mmix_intval): Adjust.  Remove unreachable case.
15759         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
15761 2014-05-26  Richard Biener  <rguenther@suse.de>
15763         * configure.ac: Drop __int64 type check.  Insist that we
15764         found uint64_t and int64_t.
15765         * hwint.h (HOST_BITS_PER___INT64): Remove.
15766         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
15767         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
15768         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
15769         (HOST_WIDEST_FAST_INT): Remove __int64 case.
15770         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
15771         for dst_q_src_df_rms_cdt.
15772         * configure: Regenerate.
15773         * config.in: Likewise.
15775 2014-05-26  Michael Tautschnig  <mt@debian.org>
15777         PR target/61249
15778         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
15779         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
15781 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15783         PR rtl-optimization/61278
15784         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
15786 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15788         PR rtl-optimization/61220
15789         Part of PR rtl-optimization/61225
15790         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
15791         insn; skip split_edge for a block with only one successor.
15793 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
15795         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
15796         for variables.
15798 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
15800         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
15801         (update_vtable_references): New function.
15802         (function_and_variable_visibility): Rewrite also vtable initializers.
15803         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
15805 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
15807         * ggc.h (ggc_grow): New function.
15808         * ggc-none.c (ggc_grow): New function.
15809         * ggc-page.c (ggc_grow): Likewise.
15811 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
15813         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
15814         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
15815         comdat_can_be_unshared_p, cgraph_externally_visible_p,
15816         varpool_externally_visible_p, can_replace_by_local_alias,
15817         update_visibility_by_resolution_info, function_and_variable_visibility,
15818         pass_data_ipa_function_and_variable_visibility,
15819         make_pass_ipa_function_and_variable_visibility,
15820         whole_program_function_and_variable_visibility,
15821         pass_data_ipa_whole_program_visibility,
15822         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
15823         * cgraph.h (cgraph_local_node_p): Declare.
15824         * ipa-visibility.c: New file.
15825         * Makefile.in (OBJS): Add ipa-visiblity.o
15827 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
15829         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
15830         that var decl is available.
15832 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
15834         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
15835         symtab_node pointer.
15836         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
15837         (find_decls_types_r): Do not walk COMDAT_GROUP.
15838         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
15839         * varasm.c (make_decl_one_only): Use set_comdat_group;
15840         create node if needed.
15841         * ipa-inline-transform.c (save_inline_function_body): Update
15842         way we decl->symtab mapping.
15843         * symtab.c (symtab_hash, hash_node, eq_node
15844         symtab_insert_node_to_hashtable): Remove.
15845         (symtab_register_node): Update.
15846         (symtab_unregister_node): Update.
15847         (symtab_get_node): Reimplement as inline function.
15848         (symtab_add_to_same_comdat_group): Update.
15849         (symtab_dissolve_same_comdat_group_list): Update.
15850         (dump_symtab_base): Update.
15851         (verify_symtab_base): Update.
15852         (symtab_make_decl_local): Update.
15853         (fixup_same_cpp_alias_visibility): Update.
15854         (symtab_nonoverwritable_alias): Update.
15855         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
15856         * ipa.c (update_visibility_by_resolution_info): UPdate.
15857         * bb-reorder.c: Include cgraph.h
15858         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
15859         with comdat groups.
15860         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
15861         * cgraph.c (cgraph_get_create_node): Update.
15862         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
15863         and comdat_group_.
15864         (symtab_get_node): Make inline.
15865         (symtab_insert_node_to_hashtable): Remove.
15866         (symtab_can_be_discarded): Update.
15867         (decl_comdat_group): New function.
15868         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
15869         Update.
15870         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
15871         comdat group name.
15872         (read_comdat_group): New function.
15873         (input_node, input_varpool_node): Use it.
15874         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
15875         comdat groups.
15876         * mips.c (mips_start_unique_function): Likewise.
15877         (ix86_code_end): Likewise.
15878         (rs6000_code_end): Likweise.
15879         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
15881 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
15883         * gengtype-state.c (fatal_reading_state): Bring offline.
15884         * optabs.c (widening_optab_handler): Bring offline.
15885         * optabs.h (widening_optab_handler): Likewise.
15886         * final.c (get_attr_length_1): Likewise.
15888 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
15890         * sched-int.h (sd_iterator_cond): Manually tail recurse.
15892 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
15894         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
15895         (ppc440-compare): Include shift with dot.
15896         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
15897         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
15898         without dot.
15899         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
15900         without dot.
15901         (e6500_sfx2): Include it.
15902         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
15903         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
15904         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
15905         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
15906         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
15907         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
15908         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
15909         *lshiftrt_internal1le, *lshiftrt_internal1be,
15910         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
15911         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
15912         *rotldi3_internal10le, *rotldi3_internal10be,
15913         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
15914         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
15915         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
15916         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
15917         define_insns): Use type "shift" in the appropriate alternatives.
15919 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
15921         * config/rs6000/rs6000.md (type): Add "logical".  Delete
15922         "fast_compare".
15923         (dot): Adjust comment.
15924         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
15925         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
15926         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
15927         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
15928         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
15929         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
15930         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
15931         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15933         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15934         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15935         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15936         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15937         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15938         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15939         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15940         * config/rs6000/8540.md (ppc8540_su): Adjust.
15941         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15942         cell-cmp-microcoded): Adjust.
15943         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15944         * config/rs6000/e500mc.md (e500mc_su): Adjust.
15945         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15946         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15947         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15948         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15949         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15950         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15951         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15952         Adjust.
15953         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15954         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
15955         Adjust.  Adjust comment.
15956         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15957         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15959 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
15961         * config/rs6000/rs6000.md (type): Add "add".
15962         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
15963         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
15964         define_insns): Use it.
15965         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15967         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15968         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15969         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15970         * config/rs6000/601.md (ppc601-integer): Adjust.
15971         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15972         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15973         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15974         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15975         * config/rs6000/8540.md (ppc8540_su): Adjust.
15976         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15977         cell-cmp-microcoded): Adjust.
15978         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15979         * config/rs6000/e500mc.md (e500mc_su): Adjust.
15980         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15981         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15982         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15983         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15984         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15985         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15986         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15987         Adjust.
15988         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15989         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
15990         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15991         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15993 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
15995         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
15996         "delayed_compare", "var_delayed_compare".
15997         (var_shift): New attribute.
15998         (cell_micro): Adjust.
15999         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
16000         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
16001         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
16002         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16003         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16004         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16005         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16006         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
16007         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
16008         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
16009         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
16010         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
16011         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
16012         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
16013         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
16014         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
16015         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
16016         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
16017         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
16018         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
16019         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
16020         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
16021         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
16022         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16023         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16025         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16026         * config/rs6000/440.md (ppc440-integer): Adjust.
16027         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16028         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
16029         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16030         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16031         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16032         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16033         * config/rs6000/8540.md (ppc8540_su): Adjust.
16034         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16035         cell-cmp-microcoded): Adjust.
16036         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
16037         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16038         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
16039         e500mc64_delayed): Adjust.
16040         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
16041         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
16042         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16043         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
16044         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
16045         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
16046         power6-delayed-compare, power6-var-delayed-compare): Adjust.
16047         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
16048         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
16049         Adjust comment.
16050         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16051         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16053 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16055         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
16056         (bits): New mode_attr.
16057         (idiv_ldiv): Delete mode_attr.
16058         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
16059         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16060         rs6000_adjust_priority, is_nonpipeline_insn,
16061         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16063         * config/rs6000/40x.md (ppc403-idiv): Adjust.
16064         * config/rs6000/440.md (ppc440-idiv): Adjust.
16065         * config/rs6000/476.md (ppc476-idiv): Adjust.
16066         * config/rs6000/601.md (ppc601-idiv): Adjust.
16067         * config/rs6000/603.md (ppc603-idiv): Adjust.
16068         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
16069         ppc620-ldiv): Adjust.
16070         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
16071         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
16072         * config/rs6000/8540.md (ppc8540_divide): Adjust.
16073         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
16074         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
16075         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
16076         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
16077         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
16078         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
16079         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
16080         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
16081         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
16082         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
16083         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
16084         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
16085         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
16086         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
16087         * config/rs6000/titan.md (titan_fxu_div): Adjust.
16089 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16091         * config/rs6000/rs6000.md (type): Delete "insert_word",
16092         "insert_dword".  Add "insert".
16093         (size): Update comment.
16094         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16095         insn_must_be_first_in_group): Adjust.
16096         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16097         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16098         *insvsi_internal6, insvdi_internal): Adjust.
16100         * config/rs6000/40x.md (ppc403-integer): Adjust.
16101         * config/rs6000/440.md (ppc440-integer): Adjust.
16102         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
16103         * config/rs6000/601.md (ppc601-integer): Adjust.
16104         * config/rs6000/603.md (ppc603-integer): Adjust.
16105         * config/rs6000/6xx.md (ppc604-integer): Adjust.
16106         * config/rs6000/7450.md (ppc7450-integer): Adjust.
16107         * config/rs6000/7xx.md (ppc750-integer): Adjust.
16108         * config/rs6000/8540.md (ppc8540_su): Adjust.
16109         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
16110         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
16111         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16112         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
16113         * config/rs6000/e5500.md (e5500_sfx): Adjust.
16114         * config/rs6000/e6500.md (e6500_sfx): Adjust.
16115         * config/rs6000/mpc.md (mpccore-integer): Adjust.
16116         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
16117         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
16118         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
16119         * config/rs6000/power7.md (power7-integer): Adjust.
16120         * config/rs6000/power8.md (power8-1cyc): Adjust.
16121         * config/rs6000/rs64.md (rs64a-integer): Adjust.
16122         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16124 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16126         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
16127         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
16128         (size): New attribute.
16129         (dot): New attribute.
16130         (cell_micro): Adjust.
16131         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
16132         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
16133         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
16134         umuldi3_highpart): Adjust.
16135         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16136         rs6000_adjust_priority, is_nonpipeline_insn,
16137         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16139         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
16140         ppc405-imul3): Adjust.
16141         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
16142         * config/rs6000/476.md (ppc476-imul): Adjust.
16143         * config/rs6000/601.md (ppc601-imul): Adjust.
16144         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
16145         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
16146         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
16147         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
16148         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
16149         Adjust.
16150         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
16151         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
16152         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
16153         cell-imul): Adjust.
16154         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
16155         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
16156         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
16157         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
16158         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
16159         * config/rs6000/mpc.md (mpccore-imul): Adjust.
16160         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
16161         power4-lmul, power4-imul, power4-imul3): Adjust.
16162         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
16163         power5-lmul, power5-imul, power5-imul3): Adjust.
16164         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
16165         power6-lmul, power6-imul, power6-imul3): Adjust.
16166         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
16167         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
16169         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
16170         rs64a-lmul): Adjust.
16171         * config/rs6000/titan.md (titan_imul): Adjust.
16173 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16175         * config/rs6000/rs6000.md (type): Add new value "halfmul".
16176         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
16177         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
16178         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
16179         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
16180         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
16181         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
16182         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
16183         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
16184         * config/rs6000/titan.md: Delete nonsensical comment.
16185         (titan_imul): Add type imul3.
16186         (titan_mulhw): Remove type imul3; add type halfmul.
16188 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16190         * config/rs6000/rs6000.md (type): Reorder, reformat.
16192 2014-05-23  Martin Jambor  <mjambor@suse.cz>
16194         PR tree-optimization/53787
16195         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
16196         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
16197         analysis_done, update all uses.
16198         * ipa-prop.c: Include domwalk.h
16199         (param_analysis_info): Removed.
16200         (param_aa_status): New type.
16201         (ipa_bb_info): Likewise.
16202         (func_body_info): Likewise.
16203         (ipa_get_bb_info): New function.
16204         (aa_overwalked): Likewise.
16205         (find_dominating_aa_status): Likewise.
16206         (parm_bb_aa_status_for_bb): Likewise.
16207         (parm_preserved_before_stmt_p): Changed to use new param AA info.
16208         (load_from_unmodified_param): Accept func_body_info as a parameter
16209         instead of parms_ainfo.
16210         (parm_ref_data_preserved_p): Changed to use new param AA info.
16211         (parm_ref_data_pass_through_p): Likewise.
16212         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
16213         (compute_complex_assign_jump_func): Changed to use new param AA info.
16214         (compute_complex_ancestor_jump_func): Likewise.
16215         (ipa_compute_jump_functions_for_edge): Likewise.
16216         (ipa_compute_jump_functions): Removed.
16217         (ipa_compute_jump_functions_for_bb): New function.
16218         (ipa_analyze_indirect_call_uses): Likewise, moved variable
16219         declarations down.
16220         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
16221         and info, moved variable declarations down.
16222         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
16223         node and info.
16224         (ipa_analyze_stmt_uses): Likewise.
16225         (ipa_analyze_params_uses): Removed.
16226         (ipa_analyze_params_uses_in_bb): New function.
16227         (ipa_analyze_controlled_uses): Likewise.
16228         (free_ipa_bb_info): Likewise.
16229         (analysis_dom_walker): New class.
16230         (ipa_analyze_node): Handle node-specific forbidden analysis,
16231         initialize and free func_body_info, use dominator walker.
16232         (ipcp_modif_dom_walker): New class.
16233         (ipcp_transform_function): Create and free func_body_info, use
16234         ipcp_modif_dom_walker, moved a lot of functionality there.
16236 2014-05-23  Marek Polacek  <polacek@redhat.com>
16237             Jakub Jelinek  <jakub@redhat.com>
16239         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
16240         * gcc.c (sanitize_spec_function): Likewise.
16241         * convert.c (convert_to_integer): Include "ubsan.h".  Add
16242         floating-point to integer instrumentation.
16243         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
16244         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
16245         SANITIZE_NONDEFAULT.
16246         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
16247         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
16248         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
16249         * ubsan.c: Include "realmpfr.h" and "dfp.h".
16250         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
16251         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
16252         float/double/long double.
16253         (ubsan_instrument_float_cast): New function.
16254         * ubsan.h (ubsan_instrument_float_cast): Declare.
16256 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
16258         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
16259         predicate.
16260         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
16261         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
16262         Adjust for tailcalling through registers.
16263         * config/aarch64/aarch64.h (enum reg_class): New caller save
16264         register class.
16265         (REG_CLASS_NAMES): Likewise.
16266         (REG_CLASS_CONTENTS): Likewise.
16267         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
16268         Allow tailcalling without decls.
16270 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
16272         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16273         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
16275         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
16276         gsi, and variables v_* to v*.
16278 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
16280         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
16282 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
16284         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
16285         * omp-low.c: Update accordingly.
16287         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
16288         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
16289         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
16290         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
16291         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
16292         GF_OMP_TARGET_KIND_UPDATE.
16294         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16295         Explicitly enumerate the expected region types.
16297 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16299         PR other/56955
16300         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
16301         documentation; the old documentation didn't clearly state the
16302         constraints on the contents of the pointed-to storage.
16304 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16306         Fix bootstrap error on ia64
16307         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
16308         Return default value.
16310 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16312         PR tree-optimization/54733
16313         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
16314         (CMPNOP): Define.
16315         (find_bswap_or_nop_load): New.
16316         (find_bswap_1): Renamed to ...
16317         (find_bswap_or_nop_1): This. Also add support for memory source.
16318         (find_bswap): Renamed to ...
16319         (find_bswap_or_nop): This. Also add support for memory source and
16320         detection of bitwise operations equivalent to load in target
16321         endianness.
16322         (execute_optimize_bswap): Likewise. Also move its leading comment back
16323         in place and split statement transformation into ...
16324         (bswap_replace): This.
16326 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
16328         PR rtl-optimization/61215
16329         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
16330         simplify_gen_subreg until final substitution.
16332 2014-05-23  Alan Modra  <amodra@gmail.com>
16334         PR target/61231
16335         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
16336         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
16337         Use "Y" constraint rather than "m".
16339 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
16341         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
16342         define.
16343         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
16344         New function declaration.
16345         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
16346         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
16347         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
16348         (aarch64_init_builtins) : Initialize builtins
16349         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16350         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16351         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
16352         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
16353         and __builtins_aarch64_set_fpsr.
16354         (aarch64_atomic_assign_expand_fenv): New function.
16355         * config/aarch64/aarch64.md (set_fpcr): New pattern.
16356         (get_fpcr) : Likewise.
16357         (set_fpsr) : Likewise.
16358         (get_fpsr) : Likewise.
16359         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
16360          and UNSPECV_SET_FPSR.
16361         * doc/extend.texi (AARCH64 Built-in Functions) : Document
16362         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16363         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16365 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
16367         PR rtl-optimization/60969
16368         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
16369         constraints.  Set up mem cost for NO_REGS case.
16371 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
16373         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
16375 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
16377         * config/darwin.c: Include "lto-section-names.h".
16378         (LTO_SEGMENT_NAME): Don't define.
16379         * config/i386/winnt.c: Include "lto-section-names.h".
16380         * lto-streamer.c: Include "lto-section-names.h".
16381         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
16382         * lto-wrapper.c: Include "lto-section-names.h".
16383         (LTO_SECTION_NAME_PREFIX): Don't define.
16384         * lto-section-names.h: New file.
16385         * cgraphunit.c: Include "lto-section-names.h".
16387 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
16389         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
16391 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
16393         PR target/61208
16394         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
16396 2014-05-22  Nick Clifton  <nickc@redhat.com>
16398         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
16400 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16402         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
16403         -> (T)A transformation to integer types.
16405 2014-05-22  Teresa Johnson  <tejohnson@google.com>
16407         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
16408         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
16409         (gcov_rewrite): Use gcov_nonruntime_assert.
16410         (gcov_open): Ditto.
16411         (gcov_write_words): Ditto.
16412         (gcov_write_length): Ditto.
16413         (gcov_read_words): Use gcov_nonruntime_assert, and remove
16414         gcc_assert from IN_LIBGCOV code.
16415         (gcov_read_summary): Use gcov_error to flag profile corruption.
16416         (gcov_sync): Use gcov_nonruntime_assert.
16417         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
16418         (gcov_histo_index): Use gcov_nonruntime_assert.
16419         (static void gcov_histogram_merge): Ditto.
16420         (compute_working_sets): Ditto.
16421         * gcov-io.h (gcov_nonruntime_assert): Define.
16422         (gcov_error): Define for !IN_LIBGCOV
16424 2014-05-22  Richard Biener  <rguenther@suse.de>
16426         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16427         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
16428         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
16429         and deallocation site.
16430         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16431         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
16432         passing through the incoming points-to set.
16433         (handle_lhs_call): Use flags argument instead of recomputing it.
16434         (find_func_aliases_for_call): Call handle_lhs_call with proper
16435         call return flags.
16437 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
16439         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
16440         all padding bits in REAL_VALUE_TYPE are cleared.
16442 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16444         Cleanup and improve multipass_dfa_lookahead_guard
16445         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
16446         (core2i7_first_cycle_multipass_begin,)
16447         (core2i7_first_cycle_multipass_issue,)
16448         (core2i7_first_cycle_multipass_backtrack): Update signature.
16449         * config/ia64/ia64.c
16450         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
16451         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
16452         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
16453         hook definition.
16454         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
16455         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
16456         values.
16457         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
16458         return values.
16459         * doc/tm.texi: Regenerate.
16460         * doc/tm.texi.in
16461         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
16462         * haifa-sched.c (ready_try): Make signed to allow negative values.
16463         (rebug_ready_list_1): Update.
16464         (choose_ready): Simplify.
16465         (sched_extend_ready_list): Update.
16467 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16469         Remove IA64 speculation tweaking flags
16470         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
16471         speculation tuning flags.
16472         (msched-prefer-non-data-spec-insns,)
16473         (msched-prefer-non-control-spec-insns): Obsolete options.
16474         * haifa-sched.c (choose_ready): Remove handling of
16475         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16476         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
16477         and PREFER_NON_DATA_SPEC.
16478         * sel-sched.c (process_spec_exprs): Remove handling of
16479         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16481 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16483         Improve scheduling debug output
16484         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
16485         (advance_one_cycle): Update.
16486         (schedule_insn, queue_to_ready): Add debug printouts.
16487         (debug_ready_list_1): New static function.
16488         (debug_ready_list): Update.
16489         (max_issue): Add debug printouts.
16490         (dump_insn_stream): New static function.
16491         (schedule_block): Use it.  Also better indent printouts.
16493 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16495         Fix sched_insn debug counter
16496         * haifa-sched.c (schedule_insn): Update.
16497         (struct haifa_saved_data): Add nonscheduled_insns_begin.
16498         (save_backtrack_point, restore_backtrack_point): Update.
16499         (first_nonscheduled_insn): New static function.
16500         (queue_to_ready, choose_ready): Use it.
16501         (schedule_block): Init nonscheduled_insns_begin.
16502         (sched_emit_insn): Update.
16505 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
16507         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
16508         to GENERAL_REGS.
16509         (aarch64_secondary_reload) : LikeWise.
16510         (aarch64_class_max_nregs) : Remove CORE_REGS.
16511         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
16512         (REG_CLASS_NAMES) : Likewise.
16513         (REG_CLASS_CONTENTS) : LikeWise.
16514         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
16516 2014-05-21  Guozhi Wei  <carrot@google.com>
16518         PR target/61202
16519         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
16520         constraint.
16521         (vqdmulhq_n_s16): Likewise.
16523 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
16525         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
16527 2014-05-21  Marek Polacek  <polacek@redhat.com>
16529         PR sanitizer/61272
16530         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
16532 2014-05-21  Martin Jambor  <mjambor@suse.cz>
16534         * doc/invoke.texi (Optimize Options): Document parameters
16535         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
16536         ipa-cp-array-index-hint-bonus.
16538 2014-05-21  Mark Wielaard  <mjw@redhat.com>
16540         PR debug/16063
16541         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
16542         version >= 3 or not strict DWARF.
16543         * langhooks.h (struct lang_hooks_for_types): Add
16544         enum_underlying_base_type.
16545         * langhooks.c (lhd_enum_underlying_base_type): New function.
16546         * gcc/langhooks.h (struct lang_hooks_for_types): Add
16547         enum_underlying_base_type.
16548         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
16549         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
16550         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
16552 2014-05-21  Richard Biener  <rguenther@suse.de>
16554         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
16556 2014-05-21  John Marino  <gnugcc@marino.st>
16558         * config.gcc (*-*-dragonfly*): New target.
16559         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
16560         * configure: Regenerate.
16561         * config/dragonfly-stdint.h: New.
16562         * config/dragonfly.h: New.
16563         * config/dragonfly.opt: New.
16564         * config/i386/dragonfly.h: New.
16565         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
16567 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
16569         * tree.def (VOID_CST): New.
16570         * tree-core.h (TI_VOID): New.
16571         * tree.h (void_node): New.
16572         * tree.c (tree_node_structure_for_code, tree_code_size)
16573         (iterative_hash_expr): Handle VOID_CST.
16574         (build_common_tree_nodes): Initialize void_node.
16576 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
16578         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
16579         functions.
16580         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
16582         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
16583         more places.
16585         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
16586         flag_reorder_blocks_and_partition.
16587         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
16589 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
16591         PR target/54236
16592         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
16593         constraints.
16594         (*addc_r_t): Add new insn_and_split.
16596 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16598         PR middle-end/61252
16599         * omp-low.c (handle_simd_reference): New function.
16600         (lower_rec_input_clauses): Use it.  Defer adding reference
16601         initialization even for reduction without placeholder if in simd,
16602         handle it properly later on.
16604 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
16606         PR tree-optimization/60899
16607         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
16608         assume all static symbols will have definition wile parsing and
16609         check the do have definition later in compilation; check that
16610         variable referring symbol will be output before concluding that
16611         reference is safe; be conservative for referring local statics;
16612         be more precise about when comdat is output in other partition.
16614 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
16616         PR bootstrap/60984
16617         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
16618         parameter.
16619         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
16620         (ipa_inline): Loop inline_to_all_callers until no more aliases
16621         are removed.
16623 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
16625         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
16626         set writeonly flag only for vars actually written to.
16628 2014-05-20  Dehao Chen  <dehao@google.com>
16630         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
16631         and callee count to get clone count.
16632         * tree-inline.c (expand_call_inline): Use callee count instead of bb
16633         count in copy_body.
16635 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
16637         PR rtl-optimization/61243
16638         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
16640 2014-05-20  Xinliang David Li  <davidxl@google.com>
16642         * cgraphunit.c (walk_polymorphic_call_targets): Add
16643         dbgcnt and fopt-info support.
16644         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
16645         * ipa-devirt.c (ipa_devirt): Ditto.
16646         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
16647         * ipa.c (walk_polymorphic_call_targets): Ditto.
16648         * gimple-fold.c (fold_gimple_assign): Ditto.
16649         (gimple_fold_call): Ditto.
16650         * dbgcnt.def: New counter.
16652 2014-05-20  DJ Delorie  <dj@redhat.com>
16654         * config/msp430/msp430.md (split): Don't allow subregs when
16655         splitting SImode adds.
16656         (andneghi): Fix subtraction logic.
16657         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
16659 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
16661         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
16662         symbols.
16663         * except.c (switch_to_exception_section, resolve_unique_section,
16664         get_named_text_section, default_function_rodata_section,
16665         align_variable, get_block_for_decl, default_section_type_flags):
16666         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
16667         * symtab.c (symtab_add_to_same_comdat_group,
16668         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
16669         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
16670         Likewise.
16671         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
16672         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
16673         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16674         (c6x_function_in_section_p): Likewise.
16675         * config/darwin.c (machopic_select_section): Likewise.
16676         * config/arm/arm.c (arm_function_in_section_p): Likewise.
16677         * config/mips/mips.c (mips_function_rodata_section): Likewise.
16678         * config/mep/mep.c (mep_select_section): LIkewise.
16679         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16681 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
16683         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
16684         EH region of calls to pure functions that can throw an exception.
16685         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
16686         (copy_reference_ops_from_call): Also copy the EH region of the call if
16687         it can throw an exception.
16689 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16691         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
16692         nested VEC_SELECTs that are inverses of each other.
16694 2014-05-20  Richard Biener  <rguenther@suse.de>
16696         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
16697         (extract_and_process_scc_for_name): not here.
16698         (cond_dom_walker::before_dom_children): Only process
16699         stmts that end the BB in interesting ways.
16700         (run_scc_vn): Mark param uses as visited.
16702 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16704         * config/arm/arm.md (arith_shiftsi): Do not predicate for
16705         arm_restrict_it.
16707 2014-05-20  Nick Clifton  <nickc@redhat.com>
16709         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
16710         (msp430_gimplify_va_arg_expr): New function.
16711         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
16713         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
16714         operand 0 in order to prevent confusion about the number of
16715         registers involved.
16717 2014-05-20  Richard Biener  <rguenther@suse.de>
16719         PR tree-optimization/61221
16720         * tree-ssa-pre.c (el_to_update): Remove.
16721         (eliminate_dom_walker::before_dom_children): Handle released
16722         VDEFs by value-numbering them to the associated VUSE.  Update
16723         stmt immediately for substituted call address.
16724         (eliminate): Remove delayed stmt updating code.
16725         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
16726         possibly late re-numbered vuses.
16727         (vn_reference_lookup_2): Adjust.
16728         (vn_reference_lookup_pieces): Likewise.
16729         (vn_reference_lookup): Likewise.
16731 2014-05-20  Richard Biener  <rguenther@suse.de>
16733         * config.gcc: Remove need_64bit_hwint.
16734         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
16735         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
16736         it to be true.
16737         * config.in: Regenerate.
16738         * configure: Likewise.
16740 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
16742         * doc/extend.texi: Create Label Attributes section,
16743         move all label attributes into it and reference it.
16745 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
16747         * arm.c (thumb1_reorg): When scanning backwards skip anything
16748         that's not a proper insn.
16750 2014-05-19  Richard Biener  <rguenther@suse.de>
16752         PR tree-optimization/61221
16753         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16754         Do nothing for unreachable blocks.
16755         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
16756         Improve unreachability detection.
16758 2014-05-19  Richard Biener  <rguenther@suse.de>
16760         PR tree-optimization/61209
16761         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
16763 2014-05-19  Nick Clifton  <nickc@redhat.com>
16765         * except.c (init_eh): Fix computation of builtin setjmp buffer
16766         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
16768 2014-05-19  Richard Biener  <rguenther@suse.de>
16770         PR tree-optimization/61184
16771         * tree-vrp.c (is_negative_overflow_infinity): Use
16772         TREE_OVERFLOW_P and do that check first.
16773         (is_positive_overflow_infinity): Likewise.
16774         (is_overflow_infinity): Likewise.
16775         (vrp_operand_equal_p): Properly treat operands with
16776         differing overflow as not equal.
16778 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
16780         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
16781         shift simplification where it was intended.
16783 2014-05-19  Christian Bruel  <christian.bruel@st.com>
16785         PR target/61195
16786         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
16788 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
16790         PR target/61084
16791         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
16792         than wide_int.
16794 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
16796         * reg-notes.def (CROSSING_JUMP): Likewise.
16797         * rtl.h (rtx_def): Update comment for jump flag.
16798         (CROSSING_JUMP_P): Define.
16799         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
16800         of a REG_CROSSING_JUMP note.
16801         * cfghooks.c (tidy_fallthru_edges): Likewise.
16802         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
16803         * emit-rtl.c (try_split): Likewise.
16804         * haifa-sched.c (sched_create_recovery_edges): Likewise.
16805         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
16806         * jump.c (redirect_jump_2): Likewise.
16807         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
16808         (relax_delay_slots): Likewise.
16809         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
16810         (bbit_di): Likewise.
16811         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
16812         * config/sh/sh.md (jump_compact): Likewise.
16813         * bb-reorder.c (rotate_loop): Likewise.
16814         (pass_duplicate_computed_gotos::execute): Likewise.
16815         (add_reg_crossing_jump_notes): Rename to...
16816         (update_crossing_jump_flags): ...this.
16817         (pass_partition_blocks::execute): Update accordingly.
16819 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
16821         * tree.h: Remove extraneous template <>.
16823 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
16825         * ipa.c (symtab_remove_unreachable_nodes): Remove
16826         symbol from comdat group if its body was eliminated.
16827         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
16828         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
16829         (symtab_unregister_node): ... this one.
16830         (verify_symtab_base): More strict checking of comdats.
16831         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
16833 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
16835         * tree-pass.h (make_pass_ipa_comdats): New pass.
16836         * timevar.def (TV_IPA_COMDATS): New timevar.
16837         * passes.def (pass_ipa_comdats): Add.
16838         * Makefile.in (OBJS): Add ipa-comdats.o
16839         * ipa-comdats.c: New file.
16841 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
16843         * ipa.c (update_visibility_by_resolution_info): New function.
16844         (function_and_variable_visibility): Use it.
16846 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
16848         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
16849         New functions.
16850         (FOR_EACH_DEFINED_SYMBOL): New macro.
16851         (varpool_first_static_initializer, varpool_next_static_initializer,
16852         varpool_first_defined_variable, varpool_next_defined_variable):
16853         Fix comments.
16854         (symtab_in_same_comdat_p): Correctly deal with inline functions.
16856 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
16858         * ggc-page.c (ggc_handle_finalizers): Add comment.
16860 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
16862         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
16863         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
16864         (ggc_internal_cleared_alloc): Likewise.
16865         * ggc-page.c (finalizer): New class.
16866         (vec_finalizer): Likewise.
16867         (globals::finalizers): New member.
16868         (globals::vec_finalizers): Likewise.
16869         (ggc_internal_alloc): Record the finalizer if any for the block being
16870         allocated.
16871         (ggc_handle_finalizers): New function.
16872         (ggc_collect): Call ggc_handle_finalizers.
16873         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
16874         finalizer.
16875         (ggc_internal_cleared_alloc): Likewise.
16876         (finalize): New function.
16877         (need_finalization_p): Likewise.
16878         (ggc_alloc): Install the type's destructor as the finalizer if it
16879         might do something.
16880         (ggc_cleared_alloc): Likewise.
16881         (ggc_vec_alloc): Likewise.
16882         (ggc_cleared_vec_alloc): Likewise.
16884 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
16886         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
16888 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
16890         * alias.c (record_alias_subset): Adjust.
16891         * bitmap.c (bitmap_element_allocate): Likewise.
16892         (bitmap_gc_alloc_stat): Likewise.
16893         * cfg.c (init_flow): Likewise.
16894         (alloc_block): Likewise.
16895         (unchecked_make_edge): Likewise.
16896         * cfgloop.c (alloc_loop): Likewise.
16897         (flow_loops_find): Likewise.
16898         (rescan_loop_exit): Likewise.
16899         * cfgrtl.c (init_rtl_bb_info): Likewise.
16900         * cgraph.c (insert_new_cgraph_node_version): Likewise.
16901         (cgraph_allocate_node): Likewise.
16902         (cgraph_create_edge_1): Likewise.
16903         (cgraph_allocate_init_indirect_info): Likewise.
16904         * cgraphclones.c (cgraph_clone_edge): Likewise.
16905         * cgraphunit.c (add_asm_node): Likewise.
16906         (init_lowered_empty_function): Likewise.
16907         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
16908         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
16909         (alpha_use_linkage): Likewise.
16910         * config/arc/arc.c (arc_init_machine_status): Likewise.
16911         * config/arm/arm.c (arm_init_machine_status): Likewise.
16912         * config/avr/avr.c (avr_init_machine_status): Likewise.
16913         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
16914         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
16915         * config/cris/cris.c (cris_init_machine_status): Likewise.
16916         * config/darwin.c (machopic_indirection_name): Likewise.
16917         (darwin_build_constant_cfstring): Likewise.
16918         (darwin_enter_string_into_cfstring_table): Likewise.
16919         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
16920         * config/frv/frv.c (frv_init_machine_status): Likewise.
16921         * config/i386/i386.c (get_dllimport_decl): Likewise.
16922         (ix86_init_machine_status): Likewise.
16923         (assign_386_stack_local): Likewise.
16924         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16925         (i386_pe_maybe_record_exported_symbol): Likewise.
16926         (i386_pe_record_stub): Likewise.
16927         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16928         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16929         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16930         (m32c_note_pragma_address): Likewise.
16931         * config/mep/mep.c (mep_init_machine_status): Likewise.
16932         (mep_note_pragma_flag): Likewise.
16933         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16934         (mips16_local_alias): Likewise.
16935         (mips_init_machine_status): Likewise.
16936         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16937         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16938         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
16939         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
16940         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
16941         * config/pa/pa.c (pa_init_machine_status): Likewise.
16942         (pa_get_deferred_plabel): Likewise.
16943         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
16944         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16945         (rs6000_init_machine_status): Likewise.
16946         (output_toc): Likewise.
16947         * config/s390/s390.c (s390_init_machine_status): Likewise.
16948         * config/score/score.c (score_output_external): Likewise.
16949         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16950         * config/spu/spu.c (spu_init_machine_status): Likewise.
16951         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
16952         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
16953         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16954         * coverage.c (coverage_end_function): Likewise.
16955         * dbxout.c (dbxout_init): Likewise.
16956         * doc/gty.texi: Don't mention variable_size attribute.
16957         * dwarf2cfi.c (new_cfi): Adjust.
16958         (new_cfi_row): Likewise.
16959         (copy_cfi_row): Likewise.
16960         (create_cie_data): Likewise.
16961         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
16962         (new_loc_descr): Likewise.
16963         (find_AT_string_in_table): Likewise.
16964         (add_addr_table_entry): Likewise.
16965         (new_die): Likewise.
16966         (add_var_loc_to_decl): Likewise.
16967         (clone_die): Likewise.
16968         (clone_as_declaration): Likewise.
16969         (break_out_comdat_types): Likewise.
16970         (new_loc_list): Likewise.
16971         (add_loc_descr_to_each): Likewise.
16972         (add_location_or_const_value_attribute): Likewise.
16973         (add_linkage_name): Likewise.
16974         (lookup_filename): Likewise.
16975         (dwarf2out_var_location): Likewise.
16976         (new_line_info_table): Likewise.
16977         (dwarf2out_init): Likewise.
16978         (mem_loc_descriptor): Likewise.
16979         (loc_descriptor): Likewise.
16980         (add_const_value_attribute): Likewise.
16981         (tree_add_const_value_attribute): Likewise.
16982         (comp_dir_string): Likewise.
16983         (dwarf2out_vms_debug_main_pointer): Likewise.
16984         (string_cst_pool_decl): Likewise.
16985         * emit-rtl.c (set_mem_attrs): Likewise.
16986         (get_reg_attrs): Likewise.
16987         (start_sequence): Likewise.
16988         (init_emit): Likewise.
16989         (init_emit_regs): Likewise.
16990         * except.c (init_eh_for_function): Likewise.
16991         (gen_eh_region): Likewise.
16992         (gen_eh_region_catch): Likewise.
16993         (gen_eh_landing_pad): Likewise.
16994         (add_call_site): Likewise.
16995         * function.c (add_frame_space): Likewise.
16996         (insert_temp_slot_address): Likewise.
16997         (assign_stack_temp_for_type): Likewise.
16998         (get_hard_reg_initial_val): Likewise.
16999         (allocate_struct_function): Likewise.
17000         (prepare_function_start): Likewise.
17001         (types_used_by_var_decl_insert): Likewise.
17002         * gengtype.c (variable_size_p): Remove function.
17003         (enum alloc_quantity): Remove enum.
17004         (write_typed_alloc_def): Remove function.
17005         (write_typed_struct_alloc_def): Likewise.
17006         (write_typed_typedef_alloc_def): Likewise.
17007         (write_typed_alloc_defns): Likewise.
17008         (main): Adjust.
17009         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
17010         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
17011         * ggc.h (ggc_alloc): new function.
17012         (ggc_cleared_alloc): Likewise.
17013         (ggc_vec_alloc): Template on type of vector element, and remove
17014         element size argument.
17015         (ggc_cleared_vec_alloc): Likewise.
17016         * gimple.c (gimple_build_omp_for): Adjust.
17017         (gimple_copy): Likewise.
17018         * ipa-cp.c (get_replacement_map): Likewise.
17019         (find_aggregate_values_for_callers_subset): Likewise.
17020         (known_aggs_to_agg_replacement_list): Likewise.
17021         * ipa-devirt.c (get_odr_type): Likewise.
17022         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
17023         (read_agg_replacement_chain): Likewise.
17024         * loop-iv.c (get_simple_loop_desc): Likewise.
17025         * lto-cgraph.c (input_node_opt_summary): Likewise.
17026         * lto-section-in.c (lto_new_in_decl_state): Likewise.
17027         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17028         (input_eh_region): Likewise.
17029         (input_eh_lp): Likewise.
17030         (input_cfg): Likewise.
17031         * optabs.c (set_optab_libfunc): Likewise.
17032         (init_tree_optimization_optabs): Likewise.
17033         (set_conv_libfunc): Likewise.
17034         * passes.c (do_per_function_toporder): Likewise.
17035         * rtl.h: Don't use variable_size gty attribute.
17036         * sese.c (if_region_set_false_region): Adjust.
17037         * stringpool.c (gt_pch_save_stringpool): Likewise.
17038         * target-globals.c (save_target_globals): Likewise.
17039         * toplev.c (general_init): Likewise.
17040         * trans-mem.c (record_tm_replacement): Likewise.
17041         (split_bb_make_tm_edge): Likewise.
17042         * tree-cfg.c (move_sese_region_to_fn): Likewise.
17043         * tree-data-ref.h (lambda_vector_new): Likewise.
17044         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17045         * tree-iterator.c (tsi_link_before): Likewise.
17046         (tsi_link_after): Likewise.
17047         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17048         * tree-ssa-loop-niter.c (record_estimate): Likewise.
17049         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17050         * tree-ssa-operands.h: Don't use variable_size gty attribute.
17051         * tree-ssa.c (init_tree_ssa): Adjust.
17052         * tree-ssanames.c (set_range_info): Likewise.
17053         (get_ptr_info): Likewise.
17054         (duplicate_ssa_name_ptr_info): Likewise.
17055         (duplicate_ssa_name_range_info): Likewise.
17056         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
17057         (unpack_ts_fixed_cst_value_fields): Likewise.
17058         * tree.c (build_fixed): Likewise.
17059         (build_real): Likewise.
17060         (build_string): Likewise.
17061         (decl_priority_info): Likewise.
17062         (decl_debug_expr_insert): Likewise.
17063         (decl_value_expr_insert): Likewise.
17064         (decl_debug_args_insert): Likewise.
17065         (type_hash_add): Likewise.
17066         (build_omp_clause): Likewise.
17067         * ubsan.c (decl_for_type_insert): Likewise.
17068         * varasm.c (get_unnamed_section): Likewise.
17069         (get_noswitch_section): Likewise.
17070         (get_section): Likewise.
17071         (get_block_for_section): Likewise.
17072         (create_block_symbol): Likewise.
17073         (build_constant_desc): Likewise.
17074         (create_constant_pool): Likewise.
17075         (force_const_mem): Likewise.
17076         (record_tm_clone_pair): Likewise.
17077         * varpool.c (varpool_create_empty_node): Likewise.
17079 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17081         * dwarf2out.c (tree_add_const_value_attribute): Call
17082         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
17083         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
17084         instead of ggc_internal_<x>alloc_stat.
17085         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
17086         (ggc_realloc): Likewise.
17087         * ggc-none.c (ggc_internal_alloc): Likewise.
17088         (ggc_internal_cleared_alloc): Likewise.
17089         * ggc-page.c: Likewise.
17090         * ggc.h (ggc_internal_alloc_stat): Likewise.
17091         (ggc_internal_alloc): Remove macro.
17092         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
17093         (ggc_internal_cleared_alloc): Remove macro.
17094         (GGC_RESIZEVEC): Adjust.
17095         (ggc_resizevar): Remove macro.
17096         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
17097         (ggc_internal_cleared_vec_alloc_stat): Likewise.
17098         (ggc_internal_vec_cleared_alloc): Remove macro.
17099         (ggc_alloc_atomic_stat): Drop _stat suffix.
17100         (ggc_alloc_atomic): Remove macro.
17101         (ggc_alloc_cleared_atomic): Remove macro.
17102         (ggc_alloc_string_stat): Drop _stat suffix.
17103         (ggc_alloc_string): Remove macro.
17104         (ggc_alloc_rtx_def_stat): Adjust.
17105         (ggc_alloc_tree_node_stat): Likewise.
17106         (ggc_alloc_cleared_tree_node_stat): Likewise.
17107         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
17108         (ggc_alloc_cleared_simd_clone_stat): Likewise.
17109         * gimple.c (gimple_build_omp_for): Likewise.
17110         (gimple_copy): Likewise.
17111         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
17112         * toplev.c (realloc_for_line_map): Adjust.
17113         * tree-data-ref.h (lambda_vector_new): Likewise.
17114         * tree-phinodes.c (allocate_phi_node): Likewise.
17115         * tree.c (grow_tree_vec_stat): Likewise.
17116         * vec.h (va_gc::reserve): Adjust.
17118 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
17120         * config/microblaze/microblaze.c (break_handler): New Declaration.
17121         (microblaze_break_function_p,microblaze_is_break_handler): New.
17122         (compute_frame_size): Use microblaze_break_function_p.
17123         Add the test of break_handler.
17124         (microblaze_function_prologue) : Add the test of variable
17125         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
17126         (microblaze_function_epilogue) : Add the test of break_handler.
17127         (microblaze_globalize_label) : Add the test of break_handler.
17128         Check the name by BREAK_HANDLER_NAME.
17130         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
17132         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
17133         microblaze_is_break_handler test.
17134         (call_internal1,call_value_intern): Use microblaze_break_function_p.
17135         Use SYMBOL_REF_DECL.
17137         * config/microblaze/microblaze-protos.h
17138         (microblaze_break_function_p,microblaze_is_break_handler):
17139         New Declaration.
17141         * doc/extend.texi (MicroBlaze break_handler Functions): Document
17142         new MicroBlaze break_handler functions.
17144 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
17146         * doc/extend.texi (Size of an asm): Move node text according
17147         to its @menu entry position.
17149 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
17151         PR tree-optimization/61140
17152         PR tree-optimization/61150
17153         PR tree-optimization/61197
17154         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
17156 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
17158         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
17160 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
17162         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
17163         __SIZEOF_INT128__ is defined.
17165 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
17167         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
17168         (rs6000_delegitimize_address): Use it.
17170 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
17172         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
17173         inplace argument.  Store the new address in the original MEM when true.
17174         * emit-rtl.c (change_address_1): Likewise.
17175         (adjust_address_1, adjust_automodify_address_1, offset_address):
17176         Update accordingly.
17177         * rtl.h (plus_constant): Add an inplace argument.
17178         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
17179         when true.  Avoid generating (plus X (const_int 0)).
17180         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
17181         in-place.  Pass true to plus_constant.
17182         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
17184 2014-05-16  Dehao Chen  <dehao@google.com>
17186         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
17188 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
17190         PR target/54089
17191         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
17192         patterns.
17193         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
17195 2014-05-16  Dehao Chen  <dehao@google.com>
17197         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
17198         optimize_function_for_size_p.
17199         * regs.h (REG_FREQ_FROM_BB): Likewise.
17201 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
17203         PR target/51244
17204         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
17205         negt_reg_operand cases.
17206         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
17207         predicate.
17208         * config/sh/predicates.md (cbranch_treg_value): Simplify.
17210 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
17212         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
17213         target variants.
17215 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
17217         Revert:
17218         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
17220         * tree-cfg.c (dump_function_to_file): Dump the return type of
17221         functions, in a line to itself before the function body, mimicking
17222         the layout of a C function.
17224 2014-05-16  Dehao Chen  <dehao@google.com>
17226         * cfghooks.c (make_forwarder_block): Use direct computation to
17227         get fall-through edge's count and frequency.
17229 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
17231         * config/arc/arc.c (arc_init): Fix typo in error message.
17232         * config/i386/i386.c (ix86_expand_builtin): Likewise.
17233         (split_stack_prologue_scratch_regno): Likewise.
17234         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
17235         word from error message.
17237 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17239         * ira-costs.c: Fix typo in comment.
17241 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
17243         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
17245 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
17247         * varpool.c (dump_varpool_node): Dump write-only flag.
17248         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
17249         write-only flag.
17250         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
17251         write-only variables.
17252         * ipa.c (process_references): New function.
17253         (set_readonly_bit): New function.
17254         (set_writeonly_bit): New function.
17255         (clear_addressable_bit): New function.
17256         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
17257         fix handling of aliases.
17258         * cgraph.h (struct varpool_node): Add writeonly flag.
17260 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
17262         PR rtl-optimization/60969
17263         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
17264         Calculate costs for this case.
17266 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
17268         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
17269         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
17271 2014-05-16  Richard Biener  <rguenther@suse.de>
17273         PR tree-optimization/61194
17274         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
17275         bool patterns ending in a COND_EXPR.
17277 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17279         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
17281 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17283         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
17284         where we were unable to cost an RTX.
17286 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17288         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
17289         HIGH, LO_SUM.
17291 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17292             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17294         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
17296 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17297             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17299         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
17300         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
17302 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17303             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17305         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
17306         operators.
17308 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17309             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17311         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17312         DIV/MOD.
17314 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17315             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17317         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
17318         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
17320 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17321             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17323         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17324         rotates and shifts.
17326 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17327             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17329         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
17330         ZERO_EXTEND and SIGN_EXTEND better.
17332 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17333             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17335         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
17336         logical operations.
17338 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17339             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17341         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
17342         costs when costing loads and stores to memory.
17344 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17345             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
17347         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
17348         for SET RTX.
17350 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17352         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
17354 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17355             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17357         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
17358         to...
17359         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
17360         well formed.
17361         (aarch64_rtx_mult_cost): New.
17362         (aarch64_rtx_costs): Use it, refactor as appropriate.
17364 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17365             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17367         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
17368         emit instructions, return number of instructions which would
17369         be emitted.
17370         (aarch64_add_constant): Update call to aarch64_build_constant.
17371         (aarch64_output_mi_thunk): Likewise.
17372         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
17373         a CONST_DOUBLE.
17375 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17377         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
17378         (TARGET_RTX_COSTS): Call it.
17380 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17382         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
17383         (cortexa57_vector_cost): Likewise.
17384         (cortexa57_tunings): Use them.
17386 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17388         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
17389         (cpu_addrcost_table): Use it.
17390         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
17391         (aarch64_address_cost): Rewrite using aarch64_classify_address,
17392         move it.
17394 2014-05-16  Richard Biener  <rguenther@suse.de>
17396         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
17397         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
17398         (visit_phi): Ignore edges marked as not executable.
17399         (class cond_dom_walker): New.
17400         (cond_dom_walker::before_dom_children): Value-number
17401         control statements and mark successor edges as not
17402         executable if possible.
17403         (run_scc_vn): First walk all control statements in
17404         dominator order, marking edges as not executable.
17405         * tree-inline.c (copy_edges_for_bb): Be not confused
17406         about random edge flags.
17408 2014-05-16  Richard Biener  <rguenther@suse.de>
17410         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
17412 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
17414         PR target/61193
17415         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
17416         (__TM_simple_begin): Use it.
17417         (__TM_begin): Likewise.
17419 2014-05-15  Martin Jambor  <mjambor@suse.cz>
17421         PR ipa/61085
17422         * ipa-prop.c (update_indirect_edges_after_inlining): Check
17423         type_preserved flag when the indirect edge is polymorphic.
17425 2014-05-15  Martin Jambor  <mjambor@suse.cz>
17427         PR tree-optimization/61090
17428         * tree-sra.c (sra_modify_expr): Pass the current gsi to
17429         build_ref_for_model.
17431 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17433         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
17434         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
17436 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
17438         PR tree-optimization/61158
17439         * fold-const.c (fold_binary_loc): If X is zero-extended and
17440         shiftc >= prec, make sure zerobits is all ones instead of
17441         invoking undefined behavior.
17443 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17445         * regcprop.h: New file.
17446         * regcprop.c (skip_debug_insn_p): New decl.
17447         (replace_oldest_value_reg): Check skip_debug_insn_p.
17448         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
17449         * shrink-wrap.c: Include regcprop.h.
17450         (prepare_shrink_wrap): Call
17451         copyprop_hardreg_forward_bb_without_debug_insn.
17453 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17455         * shrink-wrap.h: Update comment.
17456         * shrink-wrap.c: Update comment.
17457         (next_block_for_reg): Rename to live_edge_for_reg.
17458         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
17459         (move_insn_for_shrink_wrap): Split live_edge.
17460         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
17462 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17464         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
17465         Delete.
17466         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
17467         * config/sparc/sparc.md (fptype_ut699): New attribute.
17468         (in_branch_delay): Return false if -mfix-ut699 is specified and
17469         fptype_ut699 is set to single.
17470         (truncdfsf2): Add fptype_ut699 attribute.
17471         (fix_truncdfsi2): Likewise.
17472         (floatsisf2): Change fptype attribute.
17473         (fix_truncsfsi2): Likewise.
17474         (negtf2_notv9): Delete.
17475         (negtf2_v9): Likewise.
17476         (negtf2_hq): New instruction.
17477         (negtf2): New instruction and splitter.
17478         (negdf2_notv9): Rewrite.
17479         (abstf2_notv9): Delete.
17480         (abstf2_hq_v9): Likewise.
17481         (abstf2_v9): Likewise.
17482         (abstf2_hq): New instruction.
17483         (abstf2): New instruction and splitter.
17484         (absdf2_notv9): Rewrite.
17486 2014-05-14  Cary Coutant  <ccoutant@google.com>
17488         PR debug/61013
17489         * opts.c (common_handle_option): Don't special-case "-g".
17490         (set_debug_level): Default to at least level 2 with "-g".
17492 2014-05-14  DJ Delorie  <dj@redhat.com>
17494         * config/msp430/msp430.c (msp430_builtin): Add
17495         MSP430_BUILTIN_DELAY_CYCLES.
17496         (msp430_init_builtins): Register void __delay_cycles(long long).
17497         (msp430_builtin_decl): Add it.
17498         (cg_magic_constant): New.
17499         (msp430_expand_delay_cycles): New.
17500         (msp430_expand_builtin): Call it.
17501         (msp430_print_operand_raw): Change integer printing from "int" to
17502         HOST_WIDE_INT.
17503         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
17504         (delay_cycles_start): New.
17505         (delay_cycles_end): New.
17506         (delay_cycles_32): New.
17507         (delay_cycles_32x): New.
17508         (delay_cycles_16): New.
17509         (delay_cycles_16x): New.
17510         (delay_cycles_2): New.
17511         (delay_cycles_1): New.
17512         * doc/extend.texi: Document __delay_cycles().
17514 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
17516         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
17517         length attribute computation.
17519 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
17521         PR debug/61188
17522         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
17524 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
17526         PR target/61084
17527         * config/sparc/sparc.md: Fix types of low and high in DI constant
17528         splitter.  Use gen_int_mode in some other splitters.
17530 2014-05-14  Martin Jambor  <mjambor@suse.cz>
17532         PR ipa/60897
17533         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
17535 2014-05-14  James Norris  <jnorris@codesourcery.com>
17537         * omp-low.c (expand_parallel_call): Remove shadow variable.
17538         (expand_omp_taskreg): Likewise.
17540 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
17542         * common/config/i386/i386-common.c
17543         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
17544         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
17545         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
17546         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
17547         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
17548         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
17549         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
17550         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
17551         xsavecintrin.h, xsavesintrin.h.
17552         (x86_64-*-*): Ditto.
17553         * config/i386/clflushoptintrin.h: New.
17554         * config/i386/xsavecintrin.h: Ditto.
17555         * config/i386/xsavesintrin.h: Ditto.
17556         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
17557         (bit_XSAVES): Ditto.
17558         (bit_XSAVES): Ditto.
17559         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
17560         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
17561         -mno-clflushopt.
17562         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17563         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
17564         OPTION_MASK_ISA_XSAVES.
17565         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
17566         -mxsavec, -mxsaves.
17567         (PTA_CLFLUSHOPT) Define.
17568         (PTA_XSAVEC): Ditto.
17569         (PTA_XSAVES): Ditto.
17570         (ix86_option_override_internal): Handle new options.
17571         (ix86_valid_target_attribute_inner_p): Ditto.
17572         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
17573         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
17574         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
17575         (bdesc_special_args): Add __builtin_ia32_xsaves,
17576         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
17577         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
17578         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
17579         (ix86_expand_builtin): Handle new builtins.
17580         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
17581         (TARGET_CLFLUSHOPT_P): Ditto.
17582         (TARGET_XSAVEC): Ditto.
17583         (TARGET_XSAVEC_P): Ditto.
17584         (TARGET_XSAVES): Ditto.
17585         (TARGET_XSAVES_P): Ditto.
17586         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
17587         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
17588         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
17589         (ANY_XRSTOR): New.
17590         (ANY_XRSTOR64): Ditto.
17591         (xrstor): Ditto.
17592         (xrstor): Change into <xrstor>.
17593         (xrstor_rex64): Change into <xrstor>_rex64.
17594         (xrstor64): Change into <xrstor>64
17595         (clflushopt): New.
17596         * config/i386/i386.opt (mclflushopt): New.
17597         (mxsavec): Ditto.
17598         (mxsaves): Ditto.
17599         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
17600         xsavecintrin.h.
17601         * doc/invoke.texi: Document new options.
17603 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
17605         PR rtl-optimization/60866
17606         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
17607         Default it to -1.  Pass it down to init_simplejump_data.
17608         (init_simplejump_data): New parameter old_seqno.  Pass it down
17609         to get_seqno_for_a_jump.
17610         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
17611         initializing new jump seqno as a last resort.  Add comment.
17612         (sel_redirect_edge_and_branch): Save old seqno of the conditional
17613         jump and pass it down to sel_init_new_insn.
17614         (sel_redirect_edge_and_branch_force): Likewise.
17616 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
17618         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
17619         shifted values to avoid build warning.
17621 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17623         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
17624         * cfgrtl.c (rtl_merge_blocks): Fix comment.
17625         (cfg_layout_merge_blocks): Likewise.
17626         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
17628 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
17630         PR rtl-optimization/60901
17631         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
17632         bb predecessor belongs to the same scheduling region.  Adjust comment.
17634 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
17636         * doc/sourcebuild.texi: (dfp_hw): Document.
17637         (p8vector_hw): Likewise.
17638         (powerpc_eabi_ok): Likewise.
17639         (powerpc_elfv2): Likewise.
17640         (powerpc_htm_ok): Likewise.
17641         (ppc_recip_hw): Likewise.
17642         (vsx_hw): Likewise.
17644 2014-05-13  Cary Coutant  <ccoutant@google.com>
17646         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
17648 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
17650         * gengtype-parse.c (require3): Eliminate in favor of...
17651         (require4): New.
17652         (require_template_declaration): Update to support optional single *
17653         on a type.
17655         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
17656         (create_user_defined_type): Handle a single level of explicit
17657         pointerness within template arguments.
17658         (struct write_types_data): Add field "kind".
17659         (filter_type_name): Handle "*" character.
17660         (write_user_func_for_structure_ptr): Require a write_types_data
17661         rather than just a prefix string, so that we can look up the kind
17662         of the wtd and use it as an index into wrote_user_func_for_ptr,
17663         ensuring that such functions are written at most once.  Support
17664         subclasses by invoking the marking function of the ultimate base class.
17665         (write_user_func_for_structure_body): Require a write_types_data
17666         rather than just a prefix string, so that we can pass this to
17667         write_user_func_for_structure_ptr.
17668         (write_func_for_structure): Likewise.
17669         (ggc_wtd): Add initializer of new "kind" field.
17670         (pch_wtd): Likewise.
17672         * gengtype.h (enum write_types_kinds): New.
17673         (struct type): Add field wrote_user_func_for_ptr to the "s"
17674         union member.
17676 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
17678         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
17679         instead of const_binop.
17680         (fold_binary_loc): Likewise.
17682 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
17684         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
17685         calculation to match get_ref_base_and_extent.
17687 2014-05-13  Catherine Moore  <clm@codesourcery.com>
17688             Sandra Loosemore  <sandra@codesourcery.com>
17690         * configure.ac: Fix assembly for explicit JALR relocation check.
17691         * configure: Regenerate.
17693 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17695         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
17696         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
17697         Remove associated type declarations and initialisations.
17698         (arm_expand_neon_builtin): Likewise.
17699         (neon_emit_pair_result_insn): Delete.
17700         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
17701         * config/arm/neon.md (neon_vtrn<mode>): Delete.
17702         (neon_vzip<mode>): Likewise.
17703         (neon_vuzp<mode>): Likewise.
17705 2014-05-13  Richard Biener  <rguenther@suse.de>
17707         PR ipa/60973
17708         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
17709         it needs revisiting whether the call still may be tail-called.
17711 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
17713         * rtl.def (SYMBOL_REF): Remove middle "0" field.
17714         * rtl.h (block_symbol): Reduce number of fields to 2.
17715         (rtx_def): Add u2.symbol_ref_flags.
17716         (SYMBOL_REF_FLAGS): Use it.
17717         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
17718         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
17719         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
17720         Lower index of SYMBOL_REF_DATA.
17721         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
17722         Print SYMBOL_REF_FLAGS at the same time.
17723         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
17725 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
17727         * rtl.def (VAR_LOCATION): Remove "i" field.
17728         * rtl.h (rtx_def): Add u2.var_location_status.
17729         (PAT_VAR_LOCATION_STATUS): Use it.
17730         (gen_rtx_VAR_LOCATION): Declare.
17731         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
17732         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
17733         * var-tracking.c (emit_note_insn_var_location): Remove casts.
17735 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
17737         * rtl.def (scratch): Fix outdated comment and remove "0" field.
17738         * gengtype.c (adjust_field_rtx_def): Update accordingly.
17740 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
17742         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
17743         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
17744         * rtl.h (rtx_def): Add insn_uid to u2 field.
17745         (RTX_FLAG_CHECK8): Delete in favor of...
17746         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
17747         (INSN_DELETED_P): Update accordingly.
17748         (INSN_UID): Use u2.insn_uid.
17749         (INSN_CHAIN_CODE_P): Define.
17750         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
17751         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
17752         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
17753         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
17754         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
17755         indices accordingly.
17756         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
17757         Update indices for insn-chain rtxes.
17758         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
17759         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
17760         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
17761         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
17762         * combine.c (try_combine): Likewise.
17763         * ira.c (setup_prohibited_mode_move_regs): Likewise.
17765 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
17767         * rtl.def (REG): Remove middle field.
17768         * rtl.h (rtx_def): Add orignal_regno to u2.
17769         (ORIGINAL_REGNO): Use it instead of field 1.
17770         (REG_ATTRS): Lower field index accordingly.
17771         * gengtype.c (adjust_field_rtx_def): Remove handling of
17772         ORIGINAL_REGNO.  Move REG_ATTRS index down.
17773         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
17774         code that prints the REGNO.
17776 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
17778         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
17779         GENERATOR_FILE.
17781 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
17783         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
17785 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
17787         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
17788         (alloc_iv): Lower base expressions containing ADDR_EXPR.
17790 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
17792         * config/aarch64/aarch64-protos.h
17793         (aarch64_hard_regno_caller_save_mode): New prototype.
17794         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
17795         New function.
17796         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
17798 2014-05-13  Christian Bruel  <christian.bruel@st.com>
17800         * target.def (mode_switching): New hook vector.
17801         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
17802         (mode_exit, modepriority_to_mode): Likewise.
17803         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
17804         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17805         * target.h: Include tm.h and hard-reg-set.h.
17806         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
17807         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
17808         * doc/tm.texi Regenerate.
17809         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
17810         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17811         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
17812         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
17813         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
17814         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17815         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
17816         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
17817         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
17818         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
17819         (ix86_emit_mode_set): Hookify.
17820         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
17821         Delete.
17822         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17823         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
17824         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
17825         (epiphany_mode_priority_to_mode): Remove declaration.
17826         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
17827         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
17828         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
17829         Likewise.
17830         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
17831         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
17832         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
17834 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
17836         PR target/61060
17837         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
17838         is const0_rtx, return immediately.  Don't test count == 0 when
17839         it is always true.
17841 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17843         * Makefile.in: add shrink-wrap.o.
17844         * config/i386/i386.c: include "shrink-wrap.h"
17845         * function.c: Likewise.
17846         (requires_stack_frame_p, next_block_for_reg,
17847         move_insn_for_shrink_wrap, prepare_shrink_wrap,
17848         dup_block_and_redirect): Move to shrink-wrap.c
17849         (thread_prologue_and_epilogue_insns): Extract three code segments
17850         as functions in shrink-wrap.c
17851         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
17852         shrink-wrap.h
17853         * shrink-wrap.c: New file.
17854         * shrink-wrap.h: New file.
17856 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
17858         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
17859         reference to Solaris.
17861 2014-05-12  Mike Stump  <mikestump@comcast.net>
17863         PR other/31778
17864         * genattrtab.c (filename): Add.
17865         (convert_set_attr_alternative): Improve error message.
17866         (check_defs): Restore read_md_filename for error messages.
17867         (gen_insn): Save filename.
17869 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
17871         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
17872         -fno-local-ivars and -fivar-visibility.
17873         * c-family/c.opt: Make -Wshadow also implicitly enable
17874         -Wshadow-ivar.
17876 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
17878         * doc/tm.texi: Remove reference to deleted macro.
17879         * doc/tm.texi.in: Likewise.
17881 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17883         PR target/60991
17884         * config/avr/avr.c (avr_out_store_psi): Use correct constant
17885         to restore Y.
17887 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
17889         PR libgcc/61152
17890         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
17891         * config/arm/aout.h (License): Same.
17892         * config/arm/bpabi.h (License): Same.
17893         * config/arm/elf.h (License): Same.
17894         * config/arm/linux-elf.h (License): Same.
17895         * config/arm/linux-gas.h (License): Same.
17896         * config/arm/netbsd-elf.h (License): Same.
17897         * config/arm/uclinux-eabi.h (License): Same.
17898         * config/arm/uclinux-elf.h (License): Same.
17899         * config/arm/vxworks.h (License): Same.
17901 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
17903         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
17904         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
17905         number of operands to 3.
17906         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
17907         * tree-nested.c (convert_nonlocal_omp_clauses,
17908         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
17909         * gimplify.c (gimplify_scan_omp_clauses): Handle
17910         OMP_CLAUSE_LINEAR_STMT.
17911         * omp-low.c (lower_rec_input_clauses): Fix typo.
17912         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
17913         cast between Fortran boolean_type_node and C _Bool if
17914         needed.
17916 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
17918         PR tree-optimization/61136
17919         * wide-int.h (multiple_of_p): Define a version that doesn't return
17920         the quotient.
17921         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
17922         integer_zerop/const_binop pair.
17923         (multiple_of_p): Likewise, converting both operands to widest_int
17924         precision.
17926 2014-05-09  Teresa Johnson  <tejohnson@google.com>
17928         * cgraphunit.c (analyze_functions): Use correct dump file.
17930 2014-05-09  Florian Weimer  <fweimer@redhat.com>
17932         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
17933         expand_used_vars.
17934         (stack_protect_return_slot_p): New function.
17935         (expand_used_vars): Call stack_protect_decl_p and
17936         stack_protect_return_slot_p for -fstack-protector-strong.
17938 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
17939         Andrew Haley <aph@redhat.com>
17940         Richard Sandiford <rdsandiford@googlemail.com>
17942         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
17943         pages.
17945 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
17947         PR middle-end/61111
17948         * fold-const.c (fold_binary_loc): Changed width of mask.
17950 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
17952         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
17953         unsigned int initializers for regno_in, regno_out.
17955 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
17957         PR target/61055
17958         * config/avr/avr.md (cc): Add new attribute set_vzn.
17959         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
17960         Set cc insn attribute to set_vzn instead of set_zn for alternatives
17961         with INC, DEC or NEG.
17962         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
17963         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
17964         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
17966 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17968         Revert:
17969         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17971         * wide-int.cc (UTItype): Define.
17972         (UDWtype): Define for appropriate W_TYPE_SIZE.
17974 2014-05-09  Richard Biener  <rguenther@suse.de>
17976         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
17977         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
17978         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
17979         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
17980         ssa_propagate): Adjust.
17982 2014-05-08  Jeff Law  <law@redhat.com>
17984         PR tree-optimization/61009
17985         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
17986         tri-state rather than a boolean.  When a block is too big to
17987         thread through, inform caller via negative return value.
17988         (thread_across_edge): If a block was too big for normal threading,
17989         then it's too big for a joiner too, so remove temporary equivalences
17990         and return immediately.
17992 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17993             Matthias Klose  <doko@ubuntu.com>
17995         PR driver/61106
17996         * optc-gen.awk: Fix option handling for -Wunused-parameter.
17998 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
18000         PR target/59952
18001         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
18003 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
18005         PR target/61092
18006         * config/alpha/alpha.c: Include gimple-iterator.h.
18007         (alpha_gimple_fold_builtin): New function.  Move
18008         ALPHA_BUILTIN_UMULH folding from ...
18009         (alpha_fold_builtin): ... here.
18010         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
18012 2014-05-08  Wei Mi  <wmi@google.com>
18014         PR target/58066
18015         * config/i386/i386.c (ix86_compute_frame_layout): Update
18016         preferred_stack_boundary for call, expanded from tls descriptor.
18017         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
18018         to depend on SP register.
18019         (*tls_local_dynamic_base_32_gnu): Ditto.
18020         (*tls_local_dynamic_32_once): Ditto.
18021         (tls_global_dynamic_64_<mode>): Set
18022         ix86_tls_descriptor_calls_expanded_in_cfun.
18023         (tls_local_dynamic_base_64_<mode>): Ditto.
18024         (tls_global_dynamic_32): Set
18025         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
18026         to depend on SP register.
18027         (tls_local_dynamic_base_32): Ditto.
18029 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18031         * config/arm/arm_neon.h: Update comment.
18032         * config/arm/neon-docgen.ml: Delete.
18033         * config/arm/neon-gen.ml: Delete.
18034         * doc/arm-neon-intrinsics.texi: Update comment.
18036 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18038         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
18039         and v4sf versions.
18040         (vand, vorr, veor, vorn, vbic): Remove.
18041         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
18042         iterator.
18043         (neon_vsub_unspec): Likewise.
18044         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
18046 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18048         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
18049         (vadd_s16): Likewise.
18050         (vadd_s32): Likewise.
18051         (vadd_f32): Likewise.
18052         (vadd_u8): Likewise.
18053         (vadd_u16): Likewise.
18054         (vadd_u32): Likewise.
18055         (vadd_s64): Likewise.
18056         (vadd_u64): Likewise.
18057         (vaddq_s8): Likewise.
18058         (vaddq_s16): Likewise.
18059         (vaddq_s32): Likewise.
18060         (vaddq_s64): Likewise.
18061         (vaddq_f32): Likewise.
18062         (vaddq_u8): Likewise.
18063         (vaddq_u16): Likewise.
18064         (vaddq_u32): Likewise.
18065         (vaddq_u64): Likewise.
18066         (vmul_s8): Likewise.
18067         (vmul_s16): Likewise.
18068         (vmul_s32): Likewise.
18069         (vmul_f32): Likewise.
18070         (vmul_u8): Likewise.
18071         (vmul_u16): Likewise.
18072         (vmul_u32): Likewise.
18073         (vmul_p8): Likewise.
18074         (vmulq_s8): Likewise.
18075         (vmulq_s16): Likewise.
18076         (vmulq_s32): Likewise.
18077         (vmulq_f32): Likewise.
18078         (vmulq_u8): Likewise.
18079         (vmulq_u16): Likewise.
18080         (vmulq_u32): Likewise.
18081         (vsub_s8): Likewise.
18082         (vsub_s16): Likewise.
18083         (vsub_s32): Likewise.
18084         (vsub_f32): Likewise.
18085         (vsub_u8): Likewise.
18086         (vsub_u16): Likewise.
18087         (vsub_u32): Likewise.
18088         (vsub_s64): Likewise.
18089         (vsub_u64): Likewise.
18090         (vsubq_s8): Likewise.
18091         (vsubq_s16): Likewise.
18092         (vsubq_s32): Likewise.
18093         (vsubq_s64): Likewise.
18094         (vsubq_f32): Likewise.
18095         (vsubq_u8): Likewise.
18096         (vsubq_u16): Likewise.
18097         (vsubq_u32): Likewise.
18098         (vsubq_u64): Likewise.
18099         (vand_s8): Likewise.
18100         (vand_s16): Likewise.
18101         (vand_s32): Likewise.
18102         (vand_u8): Likewise.
18103         (vand_u16): Likewise.
18104         (vand_u32): Likewise.
18105         (vand_s64): Likewise.
18106         (vand_u64): Likewise.
18107         (vandq_s8): Likewise.
18108         (vandq_s16): Likewise.
18109         (vandq_s32): Likewise.
18110         (vandq_s64): Likewise.
18111         (vandq_u8): Likewise.
18112         (vandq_u16): Likewise.
18113         (vandq_u32): Likewise.
18114         (vandq_u64): Likewise.
18115         (vorr_s8): Likewise.
18116         (vorr_s16): Likewise.
18117         (vorr_s32): Likewise.
18118         (vorr_u8): Likewise.
18119         (vorr_u16): Likewise.
18120         (vorr_u32): Likewise.
18121         (vorr_s64): Likewise.
18122         (vorr_u64): Likewise.
18123         (vorrq_s8): Likewise.
18124         (vorrq_s16): Likewise.
18125         (vorrq_s32): Likewise.
18126         (vorrq_s64): Likewise.
18127         (vorrq_u8): Likewise.
18128         (vorrq_u16): Likewise.
18129         (vorrq_u32): Likewise.
18130         (vorrq_u64): Likewise.
18131         (veor_s8): Likewise.
18132         (veor_s16): Likewise.
18133         (veor_s32): Likewise.
18134         (veor_u8): Likewise.
18135         (veor_u16): Likewise.
18136         (veor_u32): Likewise.
18137         (veor_s64): Likewise.
18138         (veor_u64): Likewise.
18139         (veorq_s8): Likewise.
18140         (veorq_s16): Likewise.
18141         (veorq_s32): Likewise.
18142         (veorq_s64): Likewise.
18143         (veorq_u8): Likewise.
18144         (veorq_u16): Likewise.
18145         (veorq_u32): Likewise.
18146         (veorq_u64): Likewise.
18147         (vbic_s8): Likewise.
18148         (vbic_s16): Likewise.
18149         (vbic_s32): Likewise.
18150         (vbic_u8): Likewise.
18151         (vbic_u16): Likewise.
18152         (vbic_u32): Likewise.
18153         (vbic_s64): Likewise.
18154         (vbic_u64): Likewise.
18155         (vbicq_s8): Likewise.
18156         (vbicq_s16): Likewise.
18157         (vbicq_s32): Likewise.
18158         (vbicq_s64): Likewise.
18159         (vbicq_u8): Likewise.
18160         (vbicq_u16): Likewise.
18161         (vbicq_u32): Likewise.
18162         (vbicq_u64): Likewise.
18163         (vorn_s8): Likewise.
18164         (vorn_s16): Likewise.
18165         (vorn_s32): Likewise.
18166         (vorn_u8): Likewise.
18167         (vorn_u16): Likewise.
18168         (vorn_u32): Likewise.
18169         (vorn_s64): Likewise.
18170         (vorn_u64): Likewise.
18171         (vornq_s8): Likewise.
18172         (vornq_s16): Likewise.
18173         (vornq_s32): Likewise.
18174         (vornq_s64): Likewise.
18175         (vornq_u8): Likewise.
18176         (vornq_u16): Likewise.
18177         (vornq_u32): Likewise.
18178         (vornq_u64): Likewise.
18180 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18182         * wide-int.cc (UTItype): Define.
18183         (UDWtype): Define for appropriate W_TYPE_SIZE.
18185 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
18187         PR tree-optimization/59100
18188         * tree-ssa-phiopt.c: Include tree-inline.h.
18189         (neutral_element_p, absorbing_element_p): New functions.
18190         (value_replacement): Handle conditional binary operations with a
18191         neutral or absorbing element.
18193 2014-05-08  Richard Biener  <rguenther@suse.de>
18195         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
18196         folding the expression.
18197         (valueize_expr): Remove.
18198         (visit_reference_op_load): Do not valueize the result of
18199         vn_get_expr_for.
18200         (simplify_binary_expression): Likewise.
18201         (simplify_unary_expression): Likewise.
18203 2014-05-08  Richard Biener  <rguenther@suse.de>
18205         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
18206         looking at TYPE_ARG_TYPES.
18208 2014-05-08  Richard Biener  <rguenther@suse.de>
18210         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18211         pointer propagation special-case.
18213 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
18215         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
18216         core part of address expressions.
18218 2014-05-08  Alan Modra  <amodra@gmail.com>
18220         PR target/60737
18221         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
18222         loads and stores when -mno-strict-align at any alignment.
18223         (expand_block_clear): Similarly.  Also correct calculation of
18224         instruction count.
18226 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18228         PR middle-end/39246
18229         * tree-complex.c (expand_complex_move): Keep line info when expanding
18230         complex move.
18231         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
18232         of complex expression. Use new argument to display correct location
18233         for values coming from phi statement.
18234         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
18235         (warn_uninitialized_phi): Pass location of phi argument to
18236         warn_uninit.
18237         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
18238         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
18240 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
18242         * config/rs6000/predicates.md (indexed_address_mem): New.
18243         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
18244         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
18245         fpstore_ux, fpstore_u.
18246         (sign_extend, indexed, update): New.
18247         (cell_micro): Adjust.
18248         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
18249         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
18250         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
18251         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
18252         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18253         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
18254         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
18255         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
18256         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
18257         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
18258         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
18259         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
18260         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
18261         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
18262         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
18264         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
18265         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
18266         *vsx_extract_<mode>_store): Adjust.
18267         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
18268         is_cracked_insn, insn_must_be_first_in_group,
18269         insn_must_be_last_in_group): Adjust.
18271         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
18272         Adjust.
18273         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
18274         ppc440-fpstore): Adjust.
18275         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
18276         ppc476-fpstore): Adjust.
18277         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
18278         ppc601-fpstore): Adjust.
18279         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
18280         Adjust.
18281         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
18282         Adjust.
18283         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
18284         ppc7450-fpstore): Adjust.
18285         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
18286         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
18287         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
18288         Adjust.
18289         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
18290         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
18291         cell-fpstore, cell-fpstore-update): Adjust.
18292         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
18293         ppce300c3_store, ppce300c3_fpstore): Adjust.
18294         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
18295         e500mc_fpstore): Adjust.
18296         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
18297         e500mc64_store, e500mc64_fpstore): Adjust.
18298         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
18299         e5500_fpstore): Adjust.
18300         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
18301         e6500_fpstore): Adjust.
18302         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
18303         Adjust.
18304         * config/rs6000/power4.md (power4-load, power4-load-ext,
18305         power4-load-ext-update, power4-load-ext-update-indexed,
18306         power4-load-update-indexed, power4-load-update, power4-fpload,
18307         power4-fpload-update, power4-store, power4-store-update,
18308         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
18309         Adjust.
18310         * config/rs6000/power5.md (power5-load, power5-load-ext,
18311         power5-load-ext-update, power5-load-ext-update-indexed,
18312         power5-load-update-indexed, power5-load-update, power5-fpload,
18313         power5-fpload-update, power5-store, power5-store-update,
18314         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
18315         Adjust.
18316         * config/rs6000/power6.md (power6-load, power6-load-ext,
18317         power6-load-update, power6-load-update-indexed,
18318         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
18319         power6-fpload-update, power6-store, power6-store-update,
18320         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
18321         Adjust.
18322         * config/rs6000/power7.md (power7-load, power7-load-ext,
18323         power7-load-update, power7-load-update-indexed,
18324         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
18325         power7-fpload-update, power7-store, power7-store-update,
18326         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
18327         Adjust.
18328         * config/rs6000/power8.md (power8-load, power8-load-update,
18329         power8-load-ext, power8-load-ext-update, power8-fpload,
18330         power8-fpload-update, power8-store, power8-store-update-indexed,
18331         power8-fpstore, power8-fpstore-update): Adjust.
18332         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
18333         Adjust.
18334         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
18335         titan_lsu_store, titan_lsu_fpstore): Adjust.
18336         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
18338 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
18340         PR target/60884
18341         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
18342         unrolled byte insns.  Emit address increments after move insns.
18344 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
18346         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
18347         const_gimple, rather than a gimple.
18348         (gimple_call_builtin_p): Likewise, for the three variants.
18350         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
18351         (gimple_call_builtin_p): Likewise, for the three variants.
18353 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
18355         PR tree-optimization/61095
18356         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
18358 2014-05-07  Richard Biener  <rguenther@suse.de>
18360         PR tree-optimization/61034
18361         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
18362         (maybe_skip_until): Use translate to take into account
18363         lattices when trying to do disambiguations.
18364         (get_continuation_for_phi_1): Likewise.
18365         (get_continuation_for_phi): Adjust for added translate arguments.
18366         (walk_non_aliased_vuses): Likewise.
18367         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
18368         (walk_non_aliased_vuses): Likewise.
18369         (call_may_clobber_ref_p_1): Declare.
18370         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
18371         calls.  Stop early if we are only supposed to disambiguate.
18372         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
18374 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
18376         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
18377         Emit an error when the function has arguments.
18379 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
18381         * cfgloop.h (unswitch_loops): Remove.
18382         * doc/passes.texi: Remove references to loop-unswitch.c
18383         * timevar.def (TV_LOOP_UNSWITCH): Remove.
18385 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
18387         * tree-vect-data-refs.c (vect_grouped_load_supported): New
18388         check for loads group of length 3.
18389         (vect_permute_load_chain): New permutations for loads group of
18390         length 3.
18391         * tree-vect-stmts.c (vect_model_load_cost): Change cost
18392         of vec_perm_shuffle for the new permutations.
18394 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
18396         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
18397         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
18398         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
18399         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
18400         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
18401         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
18402         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
18403         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
18405 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
18407         * loop-unswitch.c: Delete.
18409 2014-05-07  Richard Biener  <rguenther@suse.de>
18411         * config.gcc: Always set need_64bit_hwint to yes.
18413 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
18415         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
18416         of using optimize_size.
18418 2014-05-06  Mike Stump  <mikestump@comcast.net>
18420         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
18422 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
18424         * config/i386/sse.md (*mov<mode>_internal)
18425         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
18426         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
18427         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
18428         (*<code><mode>3, *andnot<mode>3<mask_name>)
18429         (<mask_codefor><code><mode>3<mask_name>): Only consider
18430         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
18432 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
18434         Revert:
18435         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
18437         * lra-constraints.c (valid_address_p): Move earlier in file.
18438         Add a constraint argument to the address_info version.
18439         (satisfies_memory_constraint_p): New function.
18440         (satisfies_address_constraint_p): Likewise.
18441         (process_alt_operands, curr_insn_transform): Use them.
18442         (process_address): Pass the constraint to valid_address_p when
18443         checking address operands.
18445 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
18447         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
18448         to their respective blocks.  Fix inadvertent use of "node".
18450 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
18452         * emit-rtl.c (init_derived_machine_modes): New functionm, split
18453         out from...
18454         (init_emit_once): ...here.
18455         * rtl.h (init_derived_machine_modes): Declare.
18456         * toplev.c (do_compile): Call it even if no_backend.
18458 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
18459             Mike Stump  <mikestump@comcast.net>
18460             Richard Sandiford  <rdsandiford@googlemail.com>
18461             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18463         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
18464         (rtx_equal_for_memref_p): Update comment.
18465         (adjust_offset_for_component_ref): Use wide-int interfaces.
18466         * builtins.c (get_object_alignment_2): Likewise.
18467         (c_readstr): Likewise.
18468         (target_char_cast): Add comment.
18469         (determine_block_size): Use wide-int interfaces.
18470         (expand_builtin_signbit): Likewise.
18471         (fold_builtin_int_roundingfn): Likewise.
18472         (fold_builtin_bitop): Likewise.
18473         (fold_builtin_bswap): Likewise.
18474         (fold_builtin_logarithm): Use signop.
18475         (fold_builtin_pow): Likewise.
18476         (fold_builtin_memory_op): Use wide-int interfaces.
18477         (fold_builtin_object_size): Likewise.
18478         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
18479         nb_iterations_estimate.
18480         (record_niter_bound): Use wide-int interfaces.
18481         (get_estimated_loop_iterations_int): Likewise.
18482         (get_estimated_loop_iterations): Likewise.
18483         (get_max_loop_iterations): Likewise.
18484         * cfgloop.h: Include wide-int.h.
18485         (struct nb_iter_bound): Change bound to widest_int.
18486         (struct loop): Change nb_iterations_upper_bound and
18487         nb_iterations_estimate to widest_int.
18488         (record_niter_bound): Switch to use widest_int.
18489         (get_estimated_loop_iterations): Likewise.
18490         (get_max_loop_iterations): Likewise.
18491         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
18492         update for wide-int.
18493         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
18494         * combine.c (try_combine): Likewise.
18495         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
18496         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
18497         interfaces.
18498         (aarch64_float_const_representable_p): Likewise.
18499         * config/arc/arc.c: Include wide-int.h.
18500         (arc_can_use_doloop_p): Use wide-int interfaces.
18501         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
18502         (vfp3_const_double_index): Likewise.
18503         * config/avr/avr.c (avr_out_round): Likewise.
18504         (avr_fold_builtin): Likewise.
18505         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
18506         (bfin_can_use_doloop_p): Likewise.
18507         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
18508         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
18509         * config/i386/i386.c: Include wide-int.h.
18510         (ix86_data_alignment): Use wide-int interfaces.
18511         (ix86_local_alignment): Likewise.
18512         (ix86_emit_swsqrtsf): Update real_from_integer.
18513         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
18514         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
18515         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
18516         (zero_constant): Likewise.
18517         (input_operand): Likewise.
18518         (splat_input_operand): Likewise.
18519         (non_logical_cint_operand): Change const_double to const_wide_int.
18520         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
18521         (easy_altivec_constant): Remove comment.
18522         (paired_expand_vector_init): Use CONSTANT_P.
18523         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
18524         (rs6000_emit_move): Update checks.
18525         (rs6000_aggregate_candidate): Use wide-int interfaces.
18526         (rs6000_expand_ternop_builtin): Likewise.
18527         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
18528         (rs6000_assemble_integer): Likewise.
18529         (rs6000_hash_constant): Likewise.
18530         (output_toc): Likewise.
18531         (rs6000_rtx_costs): Likewise.
18532         (rs6000_emit_swrsqrt); Update call to real_from_integer.
18533         * config/rs6000/rs6000-c.c: Include wide-int.h.
18534         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
18535         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
18536         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
18537         Handle CONST_WIDE_INT.
18538         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
18539         Use tree_fits_uhwi_p.
18540         * config/sparc/sparc.c: Include wide-int.h.
18541         (sparc_fold_builtin): Use wide-int interfaces.
18542         * config/vax/vax.c: Include wide-int.h.
18543         (vax_float_literal): Use real_from_integer.
18544         * coretypes.h (struct hwivec_def): New.
18545         (hwivec): New.
18546         (const_hwivec): New.
18547         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
18548         (equiv_constant): Handle CONST_WIDE_INT.
18549         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
18550         (cselib_hash_rtx): Handle CONST_WIDE_INT.
18551         * dbxout.c (stabstr_U): Use wide-int interfaces.
18552         (dbxout_type): Update to use cst_fits_shwi_p.
18553         * defaults.h (LOG2_BITS_PER_UNIT): Define.
18554         (TARGET_SUPPORTS_WIDE_INT): Add default.
18555         * dfp.c: Include wide-int.h.
18556         (decimal_real_to_integer2): Use wide-int interfaces and rename to
18557         decimal_real_to_integer.
18558         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
18559         decimal_real_to_integer.
18560         * doc/generic.texi (Constant expressions): Update for wide_int.
18561         * doc/rtl.texi (const_double): Likewise.
18562         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
18563         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
18564         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
18565         (REAL_VALUE_FROM_INT): Remove.
18566         (TARGET_SUPPORTS_WIDE_INT): New.
18567         * doc/tm.texi: Regenerate.
18568         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
18569         * double-int.h: Include wide-int.h.
18570         (struct wi::int_traits): New.
18571         * dwarf2out.c (get_full_len): New.
18572         (dw_val_equal_p): Add case dw_val_class_wide_int.
18573         (size_of_loc_descr): Likewise.
18574         (output_loc_operands): Likewise.
18575         (insert_double): Remove.
18576         (insert_wide_int): New.
18577         (add_AT_wide): New.
18578         (print_die): Add case dw_val_class_wide_int.
18579         (attr_checksum): Likewise.
18580         (attr_checksum_ordered): Likewise.
18581         (same_dw_val_p): Likewise.
18582         (size_of_die): Likewise.
18583         (value_format): Likewise.
18584         (output_die): Likewise.
18585         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
18586         Use wide-int.
18587         (clz_loc_descriptor): Use wide-int interfaces.
18588         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
18589         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
18590         (round_up_to_align): Use wide-int interfaces.
18591         (field_byte_offset): Likewise.
18592         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
18593         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
18594         CONST_DOUBLE handling.  Use wide-int interfaces.
18595         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
18596         (gen_enumeration_type_die): Use add_AT_wide.
18597         (hash_loc_operands): Add case dw_val_class_wide_int.
18598         (compare_loc_operands): Likewise.
18599         * dwarf2out.h: Include wide-int.h.
18600         (wide_int_ptr): New.
18601         (enum dw_val_class): Add dw_val_class_wide_int.
18602         (struct dw_val_struct): Add val_wide.
18603         * emit-rtl.c (const_wide_int_htab): New.
18604         (const_wide_int_htab_hash): New.
18605         (const_wide_int_htab_eq): New.
18606         (lookup_const_wide_int): New.
18607         (const_double_htab_hash): Use wide-int interfaces.
18608         (const_double_htab_eq): Likewise.
18609         (rtx_to_double_int): Conditionally compile for wide-int.
18610         (immed_double_int_const): Rename to immed_wide_int_const and
18611         update for wide-int.
18612         (immed_double_const): Conditionally compile for wide-int.
18613         (init_emit_once): Use wide-int interfaces.
18614         * explow.c (plus_constant): Likewise.
18615         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
18616         (lshift_value): Use wide-int interfaces.
18617         (expand_mult): Likewise.
18618         (choose_multiplier): Likewise.
18619         (expand_smod_pow2): Likewise.
18620         (make_tree): Likewise.
18621         * expr.c (convert_modes): Consolidate handling of constants.
18622         Use wide-int interfaces.
18623         (emit_group_load_1): Add note.
18624         (store_expr): Update comment.
18625         (get_inner_reference): Use wide-int interfaces.
18626         (expand_constructor): Update comment.
18627         (expand_expr_real_2): Use wide-int interfaces.
18628         (expand_expr_real_1): Likewise.
18629         (reduce_to_bit_field_precision): Likewise.
18630         (const_vector_from_tree): Likewise.
18631         * final.c: Include wide-int-print.h.
18632         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
18633         * fixed-value.c: Include wide-int.h.
18634         (fixed_from_string): Use wide-int interfaces.
18635         (fixed_to_decimal): Likewise.
18636         (fixed_convert_from_real): Likewise.
18637         (real_convert_from_fixed): Likewise.
18638         * fold-const.h (mem_ref_offset): Return an offset_int.
18639         (div_if_zero_remainder): Remove code parameter.
18640         * fold-const.c (div_if_zero_remainder): Remove code parameter.
18641         Use wide-int interfaces.
18642         (may_negate_without_overflow_p): Use wide-int interfaces.
18643         (negate_expr_p): Likewise.
18644         (fold_negate_expr): Likewise.
18645         (int_const_binop_1): Likewise.
18646         (const_binop): Likewise.
18647         (fold_convert_const_int_from_int): Likewise.
18648         (fold_convert_const_int_from_real): Likewise.
18649         (fold_convert_const_int_from_fixed): Likewise.
18650         (fold_convert_const_fixed_from_int): Likewise.
18651         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
18652         (sign_bit_p): Use wide-int interfaces.
18653         (make_range_step): Likewise.
18654         (build_range_check): Likewise.  Pass an integer of the correct type
18655         instead of using integer_one_node.
18656         (range_predecessor): Pass an integer of the correct type instead
18657         of using integer_one_node.
18658         (range_successor): Likewise.
18659         (merge_ranges): Likewise.
18660         (unextend): Use wide-int interfaces.
18661         (extract_muldiv_1): Likewise.
18662         (fold_div_compare): Likewise.
18663         (fold_single_bit_test): Likewise.
18664         (fold_sign_changed_comparison): Likewise.
18665         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
18666         (fold_plusminus_mult_expr): Use wide-int interfaces.
18667         (native_encode_int): Likewise.
18668         (native_interpret_int): Likewise.
18669         (fold_unary_loc): Likewise.
18670         (pointer_may_wrap_p): Likewise.
18671         (size_low_cst): Likewise.
18672         (mask_with_tz): Likewise.
18673         (fold_binary_loc): Likewise.
18674         (fold_ternary_loc): Likewise.
18675         (multiple_of_p): Likewise.
18676         (tree_call_nonnegative_warnv_p): Update calls to
18677         tree_int_cst_min_precision and real_from_integer.
18678         (fold_negate_const): Use wide-int interfaces.
18679         (fold_abs_const): Likewise.
18680         (fold_relational_const): Use tree_int_cst_lt.
18681         (round_up_loc): Use wide-int interfaces.
18682         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
18683         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
18684         * gengtype.c: Remove include of double-int.h.
18685         (do_typedef): Use wide-int interfaces.
18686         (open_base_files): Add wide-int.h.
18687         (main): Add offset_int and widest_int typedefs.
18688         * gengtype-lex.l: Handle "^".
18689         (CXX_KEYWORD): Add "static".
18690         * gengtype-parse.c (require3): New.
18691         (require_template_declaration): Handle constant template arguments
18692         and nested templates.
18693         * gengtype-state.c: Don't include "double-int.h".
18694         * genpreds.c (write_one_predicate_function): Update comment.
18695         (write_tm_constrs_h): Add check for hval and lval use in
18696         CONST_WIDE_INT.
18697         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
18698         (add_to_sequence): Likewise.
18699         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
18700         and const_double_operand.
18701         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
18702         interfaces.
18703         * gimple-fold.c (get_base_constructor): Likewise.
18704         (fold_array_ctor_reference): Likewise.
18705         (fold_nonarray_ctor_reference): Likewise.
18706         (fold_const_aggregate_ref_1): Likewise.
18707         (gimple_val_nonnegative_real_p): Likewise.
18708         (gimple_fold_indirect_ref): Likewise.
18709         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
18710         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
18711         (struct slsr_cand_d): Change index to be widest_int.
18712         (struct incr_info_d): Change incr to be widest_int.
18713         (alloc_cand_and_find_basis): Use wide-int interfaces.
18714         (slsr_process_phi): Likewise.
18715         (backtrace_base_for_ref): Likewise.  Return a widest_int.
18716         (restructure_reference): Take a widest_int instead of a double_int.
18717         (slsr_process_ref): Use wide-int interfaces.
18718         (create_mul_ssa_cand): Likewise.
18719         (create_mul_imm_cand): Likewise.
18720         (create_add_ssa_cand): Likewise.
18721         (create_add_imm_cand): Take a widest_int instead of a double_int.
18722         (slsr_process_add): Use wide-int interfaces.
18723         (slsr_process_cast): Likewise.
18724         (slsr_process_copy): Likewise.
18725         (dump_candidate): Likewise.
18726         (dump_incr_vec): Likewise.
18727         (replace_ref): Likewise.
18728         (cand_increment): Likewise.  Return a widest_int.
18729         (cand_abs_increment): Likewise.
18730         (replace_mult_candidate): Take a widest_int instead of a double_int.
18731         (replace_unconditional_candidate): Use wide-int interfaces.
18732         (incr_vec_index): Take a widest_int instead of a double_int.
18733         (create_add_on_incoming_edge): Likewise.
18734         (create_phi_basis): Use wide-int interfaces.
18735         (replace_conditional_candidate): Likewise.
18736         (record_increment): Take a widest_int instead of a double_int.
18737         (record_phi_increments): Use wide-int interfaces.
18738         (phi_incr_cost): Take a widest_int instead of a double_int.
18739         (lowest_cost_path): Likewise.
18740         (total_savings): Likewise.
18741         (analyze_increments): Use wide-int interfaces.
18742         (ncd_with_phi): Take a widest_int instead of a double_int.
18743         (ncd_of_cand_and_phis): Likewise.
18744         (nearest_common_dominator_for_cands): Likewise.
18745         (insert_initializers): Use wide-int interfaces.
18746         (all_phi_incrs_profitable): Likewise.
18747         (replace_one_candidate): Likewise.
18748         (replace_profitable_candidates): Likewise.
18749         * godump.c: Include wide-int-print.h.
18750         (go_output_typedef): Use wide-int interfaces.
18751         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
18752         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
18753         (build_loop_iteration_domains): Likewise.
18754         * hooks.h: Include wide-int.h rather than double-int.h.
18755         (hook_bool_dint_dint_uint_bool_true): Delete.
18756         (hook_bool_wint_wint_uint_bool_true): Declare.
18757         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
18758         (hook_bool_wint_wint_uint_bool_true): New.
18759         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
18760         interfaces.
18761         (ubsan_expand_si_overflow_mul_check): Likewise.
18762         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
18763         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
18764         (get_ancestor_addr_info): Likewise.
18765         (ipa_modify_call_arguments): Likewise.
18766         * loop-doloop.c (doloop_modify): Likewise.
18767         (doloop_optimize): Likewise.
18768         * loop-iv.c (iv_number_of_iterations): Likewise.
18769         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
18770         (unroll_loop_constant_iterations): Likewise.
18771         (decide_unroll_runtime_iterations): Likewise.
18772         (unroll_loop_runtime_iterations): Likewise.
18773         (decide_peel_simple): Likewise.
18774         (decide_unroll_stupid): Likewise.
18775         * lto-streamer-in.c (streamer_read_wi): Add.
18776         (input_cfg): Use wide-int interfaces.
18777         (lto_input_tree_1): Likewise.
18778         * lto-streamer-out.c (streamer_write_wi): Add.
18779         (hash_tree): Use wide-int interfaces.
18780         (output_cfg): Likewise.
18781         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
18782         (GTFILES): Add wide-int.h and signop.h.
18783         (TAGS): Look for .cc files too.
18784         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
18785         * optabs.c (expand_subword_shift): Likewise.
18786         (expand_doubleword_shift): Likewise.
18787         (expand_absneg_bit): Likewise.
18788         (expand_copysign_absneg): Likewise.
18789         (expand_copysign_bit): Likewise.
18790         * postreload.c (reload_cse_simplify_set): Likewise.
18791         * predict.c (predict_iv_comparison): Likewise.
18792         * pretty-print.h: Include wide-int-print.h.
18793         (pp_wide_int) New.
18794         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
18795         * print-tree.c: Include wide-int-print.h.
18796         (print_node_brief): Use wide-int interfaces.
18797         (print_node): Likewise.
18798         * read-rtl.c (validate_const_wide_int): New.
18799         (read_rtx_code): Add CONST_WIDE_INT case.
18800         * real.c: Include wide-int.h.
18801         (real_to_integer2): Delete.
18802         (real_to_integer): New function, returning a wide_int.
18803         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
18804         (ten_to_ptwo): Update call to real_from_integer.
18805         (real_digit): Likewise.
18806         * real.h: Include signop.h, wide-int.h and insn-modes.h.
18807         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
18808         (REAL_VALUE_TO_INT): Delete.
18809         (real_to_integer): Declare a wide-int form.
18810         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
18811         * recog.c (const_int_operand): Improve comment.
18812         (const_scalar_int_operand): New.
18813         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
18814         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
18815         (split_double): Likewise.
18816         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
18817         (rtx_size): Likewise.
18818         (rtx_alloc_stat_v): New.
18819         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
18820         (cwi_output_hex): New.
18821         (iterative_hash_rtx): Handle CONST_WIDE_INT.
18822         (cwi_check_failed_bounds): New.
18823         * rtl.def (CONST_WIDE_INT): New.
18824         * rtl.h: Include <utility> and wide-int.h.
18825         (struct hwivec_def): New.
18826         (CWI_GET_NUM_ELEM): New.
18827         (CWI_PUT_NUM_ELEM): New.
18828         (struct rtx_def): Add num_elem and hwiv.
18829         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
18830         (CASE_CONST_UNIQUE): Likewise.
18831         (CASE_CONST_ANY): Likewise.
18832         (CONST_SCALAR_INT_P): Likewise.
18833         (CONST_WIDE_INT_P): New.
18834         (CWI_ELT): New.
18835         (HWIVEC_CHECK): New.
18836         (cwi_check_failed_bounds): New.
18837         (CWI_ELT): New.
18838         (HWIVEC_CHECK): New.
18839         (CONST_WIDE_INT_VEC) New.
18840         (CONST_WIDE_INT_NUNITS) New.
18841         (CONST_WIDE_INT_ELT) New.
18842         (rtx_mode_t): New type.
18843         (wi::int_traits <rtx_mode_t>): New.
18844         (wi::shwi): New.
18845         (wi::min_value): New.
18846         (wi::max_value): New.
18847         (rtx_alloc_v) New.
18848         (const_wide_int_alloc): New.
18849         (immed_wide_int_const): New.
18850         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
18851         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
18852         * signop.h: New file.
18853         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
18854         (simplify_const_unary_operation): Use wide-int interfaces.
18855         (simplify_binary_operation_1): Likewise.
18856         (simplify_const_binary_operation): Likewise.
18857         (simplify_const_relational_operation): Likewise.
18858         (simplify_immed_subreg): Likewise.
18859         * stmt.c (expand_case): Likewise.
18860         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
18861         signop rather than a bool.
18862         * stor-layout.c (layout_type): Use wide-int interfaces.
18863         (initialize_sizetypes): Update calls to
18864         set_min_and_max_values_for_integral_type.
18865         (set_min_and_max_values_for_integral_type): Take a signop rather
18866         than a bool.  Use wide-int interfaces.
18867         (fixup_signed_type): Update accordingly.  Remove
18868         HOST_BITS_PER_DOUBLE_INT limit.
18869         (fixup_unsigned_type): Likewise.
18870         * system.h (STATIC_CONSTANT_P): New.
18871         (STATIC_ASSERT): New.
18872         * target.def (can_use_doloop_p): Take widest_ints rather than
18873         double_ints.
18874         * target.h: Include wide-int.h rather than double-int.h.
18875         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
18876         than double_ints.
18877         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
18878         rather than INT_CST_LT_UNSIGNED.
18879         (can_use_doloop_if_innermost): Take widest_ints rather than
18880         double_ints.
18881         * tree-affine.c: Include wide-int-print.h.
18882         (double_int_ext_for_comb): Delete.
18883         (wide_int_ext_for_comb): New.
18884         (aff_combination_zero): Use wide-int interfaces.
18885         (aff_combination_const): Take a widest_int instead of a double_int.
18886         (aff_combination_elt): Use wide-int interfaces.
18887         (aff_combination_scale): Take a widest_int instead of a double_int.
18888         (aff_combination_add_elt): Likewise.
18889         (aff_combination_add_cst): Likewise.
18890         (aff_combination_add): Use wide-int interfaces.
18891         (aff_combination_convert): Likewise.
18892         (tree_to_aff_combination): Likewise.
18893         (add_elt_to_tree): Take a widest_int instead of a double_int.
18894         (aff_combination_to_tree): Use wide-int interfaces.
18895         (aff_combination_remove_elt): Likewise.
18896         (aff_combination_add_product): Take a widest_int instead of
18897         a double_int.
18898         (aff_combination_mult): Use wide-int interfaces.
18899         (aff_combination_expand): Likewise.
18900         (double_int_constant_multiple_p): Delete.
18901         (wide_int_constant_multiple_p): New.
18902         (aff_combination_constant_multiple_p): Take a widest_int pointer
18903         instead of a double_int pointer.
18904         (print_aff): Use wide-int interfaces.
18905         (get_inner_reference_aff): Take a widest_int pointer
18906         instead of a double_int pointer.
18907         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
18908         * tree-affine.h: Include wide-int.h.
18909         (struct aff_comb_elt): Change type of coef to widest_int.
18910         (struct affine_tree_combination): Change type of offset to widest_int.
18911         (double_int_ext_for_comb): Delete.
18912         (wide_int_ext_for_comb): New.
18913         (aff_combination_const): Use widest_int instead of double_int.
18914         (aff_combination_scale): Likewise.
18915         (aff_combination_add_elt): Likewise.
18916         (aff_combination_constant_multiple_p): Likewise.
18917         (get_inner_reference_aff): Likewise.
18918         (aff_comb_cannot_overlap_p): Likewise.
18919         (aff_combination_zero_p): Use wide-int interfaces.
18920         * tree.c: Include tree.h.
18921         (init_ttree): Use make_int_cst.
18922         (tree_code_size): Removed code for INTEGER_CST case.
18923         (tree_size): Add INTEGER_CST case.
18924         (make_node_stat): Update comment.
18925         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
18926         (build_int_cst_type): Use wide-int interfaces.
18927         (double_int_to_tree): Likewise.
18928         (double_int_fits_to_tree_p): Delete.
18929         (force_fit_type_double): Delete.
18930         (force_fit_type): New.
18931         (int_cst_hash_hash): Use wide-int interfaces.
18932         (int_cst_hash_eq): Likewise.
18933         (build_int_cst_wide): Delete.
18934         (wide_int_to_tree): New.
18935         (cache_integer_cst): Use wide-int interfaces.
18936         (build_low_bits_mask): Likewise.
18937         (cst_and_fits_in_hwi): Likewise.
18938         (real_value_from_int_cst): Likewise.
18939         (make_int_cst_stat): New.
18940         (integer_zerop): Use wide_int interfaces.
18941         (integer_onep): Likewise.
18942         (integer_all_onesp): Likewise.
18943         (integer_pow2p): Likewise.
18944         (integer_nonzerop): Likewise.
18945         (tree_log2): Likewise.
18946         (tree_floor_log2): Likewise.
18947         (tree_ctz): Likewise.
18948         (int_size_in_bytes): Likewise.
18949         (mem_ref_offset): Return an offset_int rather than a double_int.
18950         (build_type_attribute_qual_variant): Use wide_int interfaces.
18951         (type_hash_eq): Likewise
18952         (tree_int_cst_equal): Likewise.
18953         (tree_int_cst_lt): Delete.
18954         (tree_int_cst_compare): Likewise.
18955         (tree_fits_shwi_p): Use wide_int interfaces.
18956         (tree_fits_uhwi_p): Likewise.
18957         (tree_int_cst_sign_bit): Likewise.
18958         (tree_int_cst_sgn): Likewise.
18959         (tree_int_cst_min_precision): Take a signop rather than a bool.
18960         (simple_cst_equal): Use wide_int interfaces.
18961         (compare_tree_int): Likewise.
18962         (iterative_hash_expr): Likewise.
18963         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
18964         INT_CST_LT.
18965         (get_type_static_bounds): Use wide_int interfaces.
18966         (tree_int_cst_elt_check_failed): New.
18967         (build_common_tree_nodes): Reordered to set prec before filling in
18968         value.
18969         (int_cst_value): Check cst_and_fits_in_hwi.
18970         (widest_int_cst_value): Use wide_int interfaces.
18971         (upper_bound_in_type): Likewise.
18972         (lower_bound_in_type): Likewise.
18973         (num_ending_zeros): Likewise.
18974         (drop_tree_overflow): Likewise.
18975         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
18976         (gen_conditions_for_pow_cst_base): Likewise.
18977         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
18978         (group_case_labels_stmt): Use wide-int interfaces.
18979         (verify_gimple_assign_binary): Likewise.
18980         (print_loop): Likewise.
18981         * tree-chrec.c (tree_fold_binomial): Likewise.
18982         * tree-core.h (struct tree_base): Add int_length.
18983         (struct tree_int_cst): Change rep of value.
18984         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
18985         (dr_may_alias_p): Likewise.
18986         (max_stmt_executions_tree): Likewise.
18987         * tree.def (INTEGER_CST): Update comment.
18988         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
18989         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
18990         * tree-dump.c: Include wide-int.h and wide-int-print.h.
18991         (dequeue_and_dump): Use wide-int interfaces.
18992         * tree.h: Include wide-int.h.
18993         (NULL_TREE): Moved to earlier loc in file.
18994         (TREE_INT_CST_ELT_CHECK): New.
18995         (tree_int_cst_elt_check_failed): New.
18996         (TYPE_SIGN): New.
18997         (TREE_INT_CST): Delete.
18998         (TREE_INT_CST_LOW): Use wide-int interfaces.
18999         (TREE_INT_CST_HIGH): Delete.
19000         (TREE_INT_CST_NUNITS): New.
19001         (TREE_INT_CST_EXT_NUNITS): Likewise.
19002         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
19003         (TREE_INT_CST_ELT): Likewise.
19004         (INT_CST_LT): Delete.
19005         (tree_int_cst_elt_check): New (two forms).
19006         (type_code_size): Update comment.
19007         (make_int_cst_stat, make_int_cst): New.
19008         (tree_to_double_int): Delete.
19009         (double_int_fits_to_tree_p): Delete.
19010         (force_fit_type_double): Delete.
19011         (build_int_cstu): Replace with out-of-line function.
19012         (build_int_cst_wide): Delete.
19013         (tree_int_cst_lt): Define inline.
19014         (tree_int_cst_le): New.
19015         (tree_int_cst_compare): Define inline.
19016         (tree_int_cst_min_precision): Take a signop rather than a bool.
19017         (wi::int_traits <const_tree>): New.
19018         (wi::int_traits <tree>): New.
19019         (wi::extended_tree): New.
19020         (wi::int_traits <wi::extended_tree>): New.
19021         (wi::to_widest): New.
19022         (wi::to_offset): New.
19023         (wi::fits_to_tree_p): New.
19024         (wi::min_value): New.
19025         (wi::max_value): New.
19026         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
19027         (copy_tree_body_r): Likewise.
19028         * tree-object-size.c (compute_object_offset): Likewise.
19029         (addr_object_size): Likewise.
19030         * tree-predcom.c: Include wide-int-print.h.
19031         (struct dref_d): Change type of offset to widest_int.
19032         (dump_dref): Call wide-int printer.
19033         (aff_combination_dr_offset): Use wide-int interfaces.
19034         (determine_offset): Take a widest_int pointer rather than a
19035         double_int pointer.
19036         (split_data_refs_to_components): Use wide-int interfaces.
19037         (suitable_component_p): Likewise.
19038         (order_drefs): Likewise.
19039         (add_ref_to_chain): Likewise.
19040         (valid_initializer_p): Likewise.
19041         (determine_roots_comp): Likewise.
19042         * tree-pretty-print.c: Include wide-int-print.h.
19043         (dump_generic_node): Use wide-int interfaces.
19044         * tree-sra.c (sra_ipa_modify_expr): Likewise.
19045         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
19046         (move_fixed_address_to_symbol): Likewise.
19047         (move_hint_to_base): Likewise.
19048         (move_pointer_to_base): Likewise.
19049         (move_variant_to_index): Likewise.
19050         (most_expensive_mult_to_index): Likewise.
19051         (addr_to_parts): Likewise.
19052         (copy_ref_info): Likewise.
19053         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19054         (indirect_refs_may_alias_p): Likewise.
19055         (stmt_kills_ref_p_1): Likewise.
19056         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
19057         * tree-ssa-ccp.c: Update comment at top of file.  Include
19058         wide-int-print.h.
19059         (struct prop_value_d): Change type of mask to widest_int.
19060         (extend_mask): New function.
19061         (dump_lattice_value): Use wide-int interfaces.
19062         (get_default_value): Likewise.
19063         (set_constant_value): Likewise.
19064         (set_value_varying): Likewise.
19065         (valid_lattice_transition): Likewise.
19066         (set_lattice_value): Likewise.
19067         (value_to_double_int): Delete.
19068         (value_to_wide_int): New.
19069         (get_value_from_alignment): Use wide-int interfaces.
19070         (get_value_for_expr): Likewise.
19071         (do_dbg_cnt): Likewise.
19072         (ccp_finalize): Likewise.
19073         (ccp_lattice_meet): Likewise.
19074         (bit_value_unop_1): Use widest_ints rather than double_ints.
19075         (bit_value_binop_1): Likewise.
19076         (bit_value_unop): Use wide-int interfaces.
19077         (bit_value_binop): Likewise.
19078         (bit_value_assume_aligned): Likewise.
19079         (evaluate_stmt): Likewise.
19080         (ccp_fold_stmt): Likewise.
19081         (visit_cond_stmt): Likewise.
19082         (ccp_visit_stmt): Likewise.
19083         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19084         (constant_pointer_difference): Likewise.
19085         (associate_pointerplus): Likewise.
19086         (combine_conversions): Likewise.
19087         * tree-ssa-loop.h: Include wide-int.h.
19088         (struct tree_niter_desc): Change type of max to widest_int.
19089         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
19090         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
19091         (remove_redundant_iv_tests): Likewise.
19092         (canonicalize_loop_induction_variables): Likewise.
19093         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
19094         (constant_multiple_of): Take a widest_int pointer instead of
19095         a double_int pointer.
19096         (get_computation_aff): Use wide-int interfaces.
19097         (ptr_difference_cost): Likewise.
19098         (difference_cost): Likewise.
19099         (get_loop_invariant_expr_id): Likewise.
19100         (get_computation_cost_at): Likewise.
19101         (iv_elimination_compare_lt): Likewise.
19102         (may_eliminate_iv): Likewise.
19103         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
19104         instead of double_int.
19105         (max_loop_iterations): Likewise.
19106         (max_stmt_executions): Likewise.
19107         (estimated_stmt_executions): Likewise.
19108         * tree-ssa-loop-niter.c: Include wide-int-print.h.
19109         (split_to_var_and_offset): Use wide-int interfaces.
19110         (determine_value_range): Likewise.
19111         (bound_difference_of_offsetted_base): Likewise.
19112         (bounds_add): Take a widest_int instead of a double_int.
19113         (number_of_iterations_ne_max): Use wide-int interfaces.
19114         (number_of_iterations_ne): Likewise.
19115         (number_of_iterations_lt_to_ne): Likewise.
19116         (assert_loop_rolls_lt): Likewise.
19117         (number_of_iterations_lt): Likewise.
19118         (number_of_iterations_le): Likewise.
19119         (number_of_iterations_cond): Likewise.
19120         (number_of_iterations_exit): Likewise.
19121         (finite_loop_p): Likewise.
19122         (derive_constant_upper_bound_assign): Likewise.
19123         (derive_constant_upper_bound): Return a widest_int.
19124         (derive_constant_upper_bound_ops): Likewise.
19125         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
19126         (record_estimate): Take a widest_int rather than a double_int.
19127         (record_nonwrapping_iv): Use wide-int interfaces.
19128         (double_int_cmp): Delete.
19129         (wide_int_cmp): New.
19130         (bound_index): Take a widest_int rather than a double_int.
19131         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
19132         (maybe_lower_iteration_bound): Likewise.
19133         (estimate_numbers_of_iterations_loop): Likewise.
19134         (estimated_loop_iterations): Take a widest_int pointer than than
19135         a double_int pointer.
19136         (estimated_loop_iterations_int): Use wide-int interfaces.
19137         (max_loop_iterations): Take a widest_int pointer than than
19138         a double_int pointer.
19139         (max_loop_iterations_int): Use wide-int interfaces.
19140         (max_stmt_executions): Take a widest_int pointer than than
19141         a double_int pointer.
19142         (estimated_stmt_executions): Likewise.
19143         (n_of_executions_at_most): Use wide-int interfaces.
19144         (scev_probably_wraps_p): Likewise.
19145         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
19146         to real_to_integer.
19147         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
19148         interfaces.
19149         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
19150         double_ints.  Adjust for trailing_wide_ints <3> representation.
19151         (set_nonzero_bits): Likewise.
19152         (get_range_info): Return wide_ints rather than double_ints.
19153         Adjust for trailing_wide_ints <3> representation.
19154         (get_nonzero_bits): Likewise.
19155         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
19156         representation.
19157         * tree-ssanames.h (struct range_info_def): Replace min, max and
19158         nonzero_bits with a trailing_wide_ints <3>.
19159         (set_range_info): Use wide_int_refs rather than double_ints.
19160         (set_nonzero_bits): Likewise.
19161         (get_range_info): Return wide_ints rather than double_ints.
19162         (get_nonzero_bits): Likewise.
19163         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
19164         * tree-ssa-pre.c (phi_translate_1): Likewise.
19165         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
19166         (acceptable_pow_call): Likewise.
19167         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
19168         interfaces.
19169         (vn_reference_fold_indirect): Likewise.
19170         (vn_reference_maybe_forwprop_address): Likewise.
19171         (valueize_refs_1): Likewise.
19172         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
19173         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
19174         tree_int_cst_lt and tree_int_cst_le.
19175         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
19176         interfaces.
19177         (streamer_alloc_tree): Likewise.
19178         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
19179         (streamer_write_tree_header): Likewise.
19180         (streamer_write_integer_cst): Likewise.
19181         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19182         (build_constructors): Likewise.
19183         (array_value_type): Likewise.
19184         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
19185         (vect_check_gather): Likewise.
19186         * tree-vect-generic.c (build_replicated_const): Likewise.
19187         (expand_vector_divmod): Likewise.
19188         * tree-vect-loop.c (vect_transform_loop): Likewise.
19189         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
19190         (vect_do_peeling_for_alignment): Likewise.
19191         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
19192         * tree-vrp.c: Include wide-int.h.
19193         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
19194         (extract_range_from_assert): Use wide-int interfaces.
19195         (vrp_int_const_binop): Likewise.
19196         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
19197         double_int pointers.
19198         (ranges_from_anti_range): Use wide-int interfaces.
19199         (quad_int_cmp): Delete.
19200         (quad_int_pair_sort): Likewise.
19201         (extract_range_from_binary_expr_1): Use wide-int interfaces.
19202         (extract_range_from_unary_expr_1): Likewise.
19203         (adjust_range_with_scev): Likewise.
19204         (masked_increment): Take and return wide_ints rather than double_ints.
19205         (register_edge_assert_for_2): Use wide-int interfaces.
19206         (check_array_ref): Likewise.
19207         (search_for_addr_array): Likewise.
19208         (maybe_set_nonzero_bits): Likewise.
19209         (union_ranges): Pass an integer of the correct type instead of
19210         using integer_one_node.
19211         (intersect_ranges): Likewise.
19212         (simplify_truth_ops_using_ranges): Likewise.
19213         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
19214         (range_fits_type_p): Likewise.
19215         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
19216         a bool.
19217         (simplify_conversion_using_ranges): Use wide-int interfaces.
19218         (simplify_float_conversion_using_ranges): Likewise.
19219         (vrp_finalize): Likewise.
19220         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
19221         (gimple_stringops_transform): Likewise.
19222         * varasm.c (decode_addr_const): Likewise.
19223         (const_hash_1): Likewise.
19224         (const_rtx_hash_1): Likewise
19225         (output_constant): Likewise.
19226         (array_size_for_constructor): Likewise.
19227         (output_constructor_regular_field): Likewise.
19228         (output_constructor_bitfield): Likewise.
19229         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
19230         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
19231         GENERATOR_FILEs.
19232         * gencheck.c: Define BITS_PER_UNIT.
19233         * wide-int.cc: New.
19234         * wide-int.h: New.
19235         * wide-int-print.cc: New.
19236         * wide-int-print.h: New.
19238 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19240         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
19242 2014-05-06  Richard Biener  <rguenther@suse.de>
19244         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
19245         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
19246         (TODO_verify_all): Adjust.
19247         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
19248         TODO_verify_stmts and TODO_verify_rtl_sharing.
19249         * bb-reorder.c: Likewise.
19250         * cfgexpand.c: Likewise.
19251         * cprop.c: Likewise.
19252         * cse.c: Likewise.
19253         * function.c: Likewise.
19254         * fwprop.c: Likewise.
19255         * gcse.c: Likewise.
19256         * gimple-ssa-isolate-paths.c: Likewise.
19257         * gimple-ssa-strength-reduction.c: Likewise.
19258         * ipa-split.c: Likewise.
19259         * loop-init.c: Likewise.
19260         * loop-unroll.c: Likewise.
19261         * lower-subreg.c: Likewise.
19262         * modulo-sched.c: Likewise.
19263         * postreload-gcse.c: Likewise.
19264         * predict.c: Likewise.
19265         * recog.c: Likewise.
19266         * sched-rgn.c: Likewise.
19267         * store-motion.c: Likewise.
19268         * tracer.c: Likewise.
19269         * trans-mem.c: Likewise.
19270         * tree-call-cdce.c: Likewise.
19271         * tree-cfg.c: Likewise.
19272         * tree-cfgcleanup.c: Likewise.
19273         * tree-complex.c: Likewise.
19274         * tree-eh.c: Likewise.
19275         * tree-emutls.c: Likewise.
19276         * tree-if-conv.c: Likewise.
19277         * tree-into-ssa.c: Likewise.
19278         * tree-loop-distribution.c: Likewise.
19279         * tree-object-size.c: Likewise.
19280         * tree-parloops.c: Likewise.
19281         * tree-pass.h: Likewise.
19282         * tree-sra.c: Likewise.
19283         * tree-ssa-ccp.c: Likewise.
19284         * tree-ssa-copy.c: Likewise.
19285         * tree-ssa-copyrename.c: Likewise.
19286         * tree-ssa-dce.c: Likewise.
19287         * tree-ssa-dom.c: Likewise.
19288         * tree-ssa-dse.c: Likewise.
19289         * tree-ssa-forwprop.c: Likewise.
19290         * tree-ssa-ifcombine.c: Likewise.
19291         * tree-ssa-loop-ch.c: Likewise.
19292         * tree-ssa-loop-ivcanon.c: Likewise.
19293         * tree-ssa-loop.c: Likewise.
19294         * tree-ssa-math-opts.c: Likewise.
19295         * tree-ssa-phiopt.c: Likewise.
19296         * tree-ssa-phiprop.c: Likewise.
19297         * tree-ssa-pre.c: Likewise.
19298         * tree-ssa-reassoc.c: Likewise.
19299         * tree-ssa-sink.c: Likewise.
19300         * tree-ssa-strlen.c: Likewise.
19301         * tree-ssa-tail-merge.c: Likewise.
19302         * tree-ssa-uncprop.c: Likewise.
19303         * tree-switch-conversion.c: Likewise.
19304         * tree-tailcall.c: Likewise.
19305         * tree-vect-generic.c: Likewise.
19306         * tree-vectorizer.c: Likewise.
19307         * tree-vrp.c: Likewise.
19308         * tsan.c: Likewise.
19309         * var-tracking.c: Likewise.
19310         * bt-load.c: Likewise.
19311         * cfgcleanup.c: Likewise.
19312         * combine-stack-adj.c: Likewise.
19313         * combine.c: Likewise.
19314         * compare-elim.c: Likewise.
19315         * config/epiphany/resolve-sw-modes.c: Likewise.
19316         * config/i386/i386.c: Likewise.
19317         * config/mips/mips.c: Likewise.
19318         * config/s390/s390.c: Likewise.
19319         * config/sh/sh_treg_combine.cc: Likewise.
19320         * config/sparc/sparc.c: Likewise.
19321         * dce.c: Likewise.
19322         * dse.c: Likewise.
19323         * final.c: Likewise.
19324         * ifcvt.c: Likewise.
19325         * mode-switching.c: Likewise.
19326         * passes.c: Likewise.
19327         * postreload.c: Likewise.
19328         * ree.c: Likewise.
19329         * reg-stack.c: Likewise.
19330         * regcprop.c: Likewise.
19331         * regrename.c: Likewise.
19332         * web.c: Likewise.
19334 2014-05-06  Richard Biener  <rguenther@suse.de>
19336         PR middle-end/61070
19337         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
19338         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
19340 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
19342         PR ipa/60965
19343         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
19345 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
19346             Tom de Vries  <tom@codesourcery.com>
19348         * target.def (call_fusage_contains_non_callee_clobbers): New
19349         DEFHOOKPOD.
19350         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
19351         Hooks to @menu.
19352         (@node Miscellaneous Register Hooks): New node.
19353         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
19354         * doc/tm.texi: Regenerate.
19356 2014-05-05  Marek Polacek  <polacek@redhat.com>
19358         PR driver/61065
19359         * opts.c (common_handle_option): Call error_at instead of warning_at.
19361 2014-05-05  Richard Biener  <rguenther@suse.de>
19363         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
19364         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
19365         under the TODO_verify_il umbrella.
19367 2014-05-05  Richard Biener  <rguenther@suse.de>
19369         * passes.c (execute_function_todo): Move TODO_verify_flow under
19370         the TODO_verify_ul umbrella.
19372 2014-05-05  Richard Biener  <rguenther@suse.de>
19374         PR middle-end/61010
19375         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
19376         X & CST away from a CST that is the mask of a mode.
19378 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19380         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
19381         int argument to enum machine_mode.
19382         (picochip_class_max_nregs): Ditto.
19383         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
19384         (picochip_class_max_nregs): Ditto.
19386 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19388         * target.def: Add new target hook.
19389         * doc/tm.texi: Regenerate.
19390         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
19391         * targhooks.c (default_keep_leaf_when_profiled): New function.
19393         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
19394         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
19396 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
19398         PR tree-optimization/60363
19399         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
19400         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
19401         (update_destination_phis): New parameter.
19402         (create_edge_and_update_destination_phis): Ditto.
19403         (ssa_fix_duplicate_block_edges): Pass new arguments.
19404         (thread_single_edge): Ditto.
19406 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
19408         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
19409         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
19410         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
19411         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
19412         Use RS6000_BTM_HARD_FLOAT.
19413         (BU_MISC_2): Likewise.
19414         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
19415         RS6000_BTM_HARD_FLOAT.
19416         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
19417         is explicitly used.
19418         (rs6000_invalid_builtin): Add hard floating builtin support.
19419         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
19420         hard float builtins.
19421         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
19423 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19425         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
19426         Add missing function* argument.
19428 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
19430         * lra-constraints.c (valid_address_p): Move earlier in file.
19431         Add a constraint argument to the address_info version.
19432         (satisfies_memory_constraint_p): New function.
19433         (satisfies_address_constraint_p): Likewise.
19434         (process_alt_operands, curr_insn_transform): Use them.
19435         (process_address): Pass the constraint to valid_address_p when
19436         checking address operands.
19438 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
19440         * config/mips/mips.c (mips_isa_rev): New variable.
19441         (mips_set_architecture): Set it.
19442         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
19443         from mips_isa_rev.
19444         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
19445         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
19446         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
19447         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
19448         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
19449         conditions in terms of mips_isa_rev.
19450         (mips_isa_rev): Declare.
19452 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19454         * config/sh/sh-mem.cc: Use tabs instead of spaces.
19455         (prob_unlikely, prob_likely): Make variables const.
19457 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
19459         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
19461 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19463         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
19465 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19467         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
19468         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
19469         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
19470         functions.
19471         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
19472         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
19473         sh_pass_in_reg_p.
19474         Replace usage of ROUND_REG with sh_round_reg.
19475         Use CEIL instead of ROUND_ADVANCE.
19477 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19479         PR target/61026
19480         * config/sh/sh.c: Include stdlib headers before everything else.
19482 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
19484         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
19485         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
19486         (gimplify_adjust_omp_clauses): Simd region is never
19487         directly nested in combined parallel.  Instead, for linear
19488         with copyin/copyout, if in combined for simd loop, make decl
19489         firstprivate/lastprivate on OMP_FOR.
19490         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
19491         expand_omp_for_static_chunk): When setting endvar, also set
19492         fd->loop.v to the same value.
19494 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19496         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
19498 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
19500         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
19501         expression.
19503 2014-05-02  Marek Polacek  <polacek@redhat.com>
19505         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
19507 2014-05-02  Kito Cheng  <kito@0xlab.org>
19509         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
19510         to a C expression marco.
19511         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
19512         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
19513         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
19514         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
19515         HONOR_REG_ALLOC_ORDER.
19516         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
19518 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19520         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
19522 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19524         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
19526 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
19528         * tree-if-conv.c (is_cond_scalar_reduction): New function.
19529         (convert_scalar_cond_reduction): Likewise.
19530         (predicate_scalar_phi): Add recognition and transformation
19531         of simple conditioanl reduction to be vectorizable.
19533 2014-05-01  Marek Polacek  <polacek@redhat.com>
19535         PR c/43245
19536         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
19538 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
19540         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
19541         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
19542         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
19543         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
19544         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
19545         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
19546         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
19547         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
19549 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
19551         * config/arc/arc.opt (mlra): Move comment above option name
19552         to avoid mis-parsing as language options.
19554 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19556         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
19557         * config/sol2.h: ... here.
19558         * config/sol2-10.h: Remove.
19560         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
19561         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
19562         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
19563         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
19564         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
19565         * config/sol2.h: ... here.
19566         (SECTION_NAME_FORMAT): Don't redefine.
19567         (STARTFILE_ARCH32_SPEC): Rename to ...
19568         (STARTFILE_ARCH_SPEC): ... this.
19569         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19570         * config/sparc/sol2.h: ... here.
19571         (SECTION_NAME_FORMAT): Don't undef.
19572         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
19573         (SUBTARGET_EXTRA_SPECS): Remove.
19574         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
19576         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
19577         (MD_STARTFILE_PREFIX): Remove.
19578         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
19579         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
19580         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
19581         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
19582         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
19583         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
19584         * config/i386/sol2.h: ... here.
19585         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
19586         * config/i386/sol2-bi.h: Remove.
19587         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
19588         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
19590         * config/i386/t-sol2-64: Rename to ...
19591         * config/i386/t-sol2: ... this.
19592         * config/sparc/t-sol2-64: Rename to ...
19593         * config/sparc/t-sol2: ... this.
19595         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
19596         sol2_tm_file_head, sol2_tm_file_tail.
19597         Include ${cpu_type}/sol2.h before sol2.h.
19598         Remove sol2-10.h.
19599         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
19600         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
19601         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
19602         Reflect i386/t-sol2-64 renaming.
19603         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
19604         Reflect sparc/t-sol2-64 renaming.
19606 2014-04-30  Richard Biener  <rguenther@suse.de>
19608         * passes.c (execute_function_todo): Move TODO_verify_stmts
19609         and TODO_verify_ssa under the TODO_verify_il umbrella.
19610         * tree-ssa.h (verify_ssa): Adjust prototype.
19611         * tree-ssa.c (verify_ssa): Add parameter to tell whether
19612         we should verify SSA operands.
19613         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
19614         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
19615         whether we should verify whether not throwing stmts have EH info.
19616         * graphite-scop-detection.c (create_sese_edges): Adjust.
19617         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
19618         * tree-eh.c (lower_try_finally_switch): Do not add the
19619         default case label twice.
19621 2014-04-30  Marek Polacek  <polacek@redhat.com>
19623         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
19624         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
19625         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
19626         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
19628 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
19630         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
19631         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
19632         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
19633         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
19634         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
19635         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
19636         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
19637         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
19639 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
19641         * tree-cfg.c (dump_function_to_file): Dump the return type of
19642         functions, in a line to itself before the function body, mimicking
19643         the layout of a C function.
19645 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
19647         PR tree-optimization/60971
19648         * tree-tailcall.c (process_assignment): Reject conversions which
19649         reduce precision.
19651 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
19653         * calls.c (initialize_argument_information): Always treat
19654         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
19655         (expand_call): Likewise.
19656         (emit_library_call_calue_1): Likewise.
19657         * expr.c (PUSH_ARGS_REVERSED): Do not define.
19658         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
19659         code accordingly.
19661 2014-04-29  Nick Clifton  <nickc@redhat.com>
19663         * config/msp430/msp430.md (umulsidi): Fix typo.
19664         (mulhisi3): Enable even inside interrupt handlers.
19665         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
19666         bigger return address pushed in large mode.
19668 2014-04-29  Nick Clifton  <nickc@redhat.com>
19670         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
19671         (arc_init_reg_tables): Use a machine_mode enum to iterate over
19672         available modes.
19673         * config/m32r/m32r.c (init_reg_tables): Likewise.
19674         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
19675         enum to hold the modes.
19677 2014-04-29  Richard Biener  <rguenther@suse.de>
19679         * dominance.c (free_dominance_info): Add overload with
19680         function parameter.
19681         (dom_info_state): Likewise.
19682         (dom_info_available_p): Likewise.
19683         * basic-block.h (free_dominance_info, dom_info_state,
19684         dom_info_available_p): Declare overloads.
19685         * passes.c (execute_function_todo): Verify that verifiers
19686         don't change dominator info state.  Drop dominator info
19687         for IPA pass invocations.
19688         * cgraph.c (release_function_body): Restore asserts that
19689         dominator information is released.
19691 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
19693         * doc/invoke.texi: Fix typo.
19694         * tree-vrp.c: Fix typos.
19695         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
19697 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19699         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
19701 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
19703         * config/aarch64/aarch64-builtins.c
19704         (aarch64_types_storestruct_lane_qualifiers): New.
19705         (TYPES_STORESTRUCT_LANE): Likewise.
19706         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
19707         (st3_lane): Likewise.
19708         (st4_lane): Likewise.
19709         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
19710         (vec_store_lanesci_lane<mode>): Likewise.
19711         (vec_store_lanesxi_lane<mode>): Likewise.
19712         (aarch64_st2_lane<VQ:mode>): Likewise.
19713         (aarch64_st3_lane<VQ:mode>): Likewise.
19714         (aarch64_st4_lane<VQ:mode>): Likewise.
19715         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
19716         * config/aarch64/arm_neon.h
19717         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
19718         use new macro arguments.
19719         (__ST3_LANE_FUNC): Likewise.
19720         (__ST4_LANE_FUNC): Likewise.
19721         * config/aarch64/iterators.md (V_TWO_ELEM): New.
19722         (V_THREE_ELEM): Likewise.
19723         (V_FOUR_ELEM): Likewise.
19725 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
19727         * doc/gimple.texi: Replace the description of the now-defunct
19728         union gimple_statement_d with a diagram showing the
19729         gimple_statement_base class hierarchy and its relationships to
19730         the GSS_ and GIMPLE_ enums.
19732 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
19734         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
19735         * config/aarch64/aarch64.c
19736         (aarch64_cannot_change_mode_class): Weaken conditions.
19737         (aarch64_modes_tieable_p): New.
19738         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
19740 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
19742         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19743         (loadsync_<mode>): Change mode.
19744         (load_quadpti, store_quadpti): New.
19745         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19746         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19748 2014-04-28  Martin Jambor  <mjambor@suse.cz>
19750         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
19751         same alias type as the original statement.
19752         (subreplacement_assignment_data): New type.
19753         (handle_unscalarized_data_in_subtree): New type of parameter,
19754         generate new memory accesses with same alias type as the original
19755         statement.
19756         (load_assign_lhs_subreplacements): Likewise.
19757         (sra_modify_constructor_assign): Generate new memory accesses with
19758         same alias type as the original statement.
19760 2014-04-28  Richard Biener  <rguenther@suse.de>
19762         * tree-pass.h (TODO_verify_il): Define.
19763         (TODO_verify_all): Complete properly.
19764         * passes.c (execute_function_todo): Move existing loop-closed
19765         SSA verification under TODO_verify_il.
19766         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
19767         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
19768         Fix tree sharing issue.
19770 2014-04-28  Richard Biener  <rguenther@suse.de>
19772         PR middle-end/60092
19773         * builtins.def (DEF_C11_BUILTIN): Add.
19774         (BUILT_IN_ALIGNED_ALLOC): Likewise.
19775         * coretypes.h (enum function_class): Add function_c11_misc.
19776         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19777         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
19778         (call_may_clobber_ref_p_1): Likewise.
19779         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
19780         (mark_all_reaching_defs_necessary_1): Likewise.
19781         (propagate_necessity): Likewise.
19782         (eliminate_unnecessary_stmts): Likewise.
19783         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
19785 2014-04-28  Richard Biener  <rguenther@suse.de>
19787         * tree-vrp.c (vrp_var_may_overflow): Remove.
19788         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
19789         with overflow immediately bump to one before that value and
19790         let iteration figure out overflow status.
19792 2014-04-28  Richard Biener  <rguenther@suse.de>
19794         * configure.ac: Do valgrind header checks unconditionally.
19795         Add --enable-valgrind-annotations.
19796         * system.h: Guard valgrind header inclusion with
19797         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
19798         * alloc-pool.c (pool_alloc, pool_free): Use
19799         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
19800         to guard possibly dead code.
19801         * config.in: Regenerated.
19802         * configure: Likewise.
19804 2014-04-28  Jeff Law  <law@redhat.com>
19806         PR tree-optimization/60902
19807         * tree-ssa-threadedge.c
19808         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
19809         over real defs when invalidating outputs from statements that do not
19810         produce useful outputs for threading.
19812 2014-04-28  Richard Biener  <rguenther@suse.de>
19814         PR tree-optimization/60979
19815         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
19816         SCOPs that end in a block with a successor with abnormal
19817         predecessors.
19819 2014-04-28  Richard Biener  <rguenther@suse.de>
19821         * tree-pass.h (execute_pass_list): Adjust prototype.
19822         * passes.c (pass_manager::execute_early_local_passes): Adjust.
19823         (do_per_function): Change callback signature, push all actual
19824         work to the callbals.
19825         (do_per_function_toporder): Likewise.
19826         (execute_function_dump): Adjust.
19827         (execute_function_todo): Likewise.
19828         (clear_last_verified): Likewise.
19829         (verify_curr_properties): Likewise.
19830         (update_properties_after_pass): Likewise.
19831         (execute_pass_list_1): Split out from ...
19832         (execute_pass_list): ... here.  Adjust.
19833         (execute_ipa_pass_list): Likewise.
19834         * cgraphunit.c (cgraph_add_new_function): Adjust.
19835         (analyze_function): Likewise.
19836         (expand_function): Likewise.
19837         * cgraph.c (release_function_body): Free dominance info
19838         here instead of asserting it was magically freed elsewhere.
19840 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19842         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
19843         * configure: Regenerate.
19844         * config/sparc/sparc.opt (muser-mode): New option.
19845         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
19846         for LEON3.
19847         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
19848         * doc/invoke.texi (SPARC options): Document -muser-mode.
19850 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
19852         * cselib.c (find_slot_memmode): Delete.
19853         (cselib_hasher): Change compare_type to a struct.
19854         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
19855         constants.
19856         (preserve_constants_and_equivs): Adjust for new compare_type.
19857         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
19858         (wrap_constant): Delete.
19859         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
19861 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19863         * doc/install.texi (Building with profile feedback): Remove
19864         outdated sentence.
19866 2014-04-26  Tom de Vries  <tom@codesourcery.com>
19868         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
19869         array accesses.
19871 2014-04-25  Cary Coutant  <ccoutant@google.com>
19873         PR debug/60929
19874         * dwarf2out.c (should_move_die_to_comdat): A type definition
19875         can contain a subprogram definition, but don't move it to a
19876         comdat unit.
19877         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
19878         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
19879         from original DIE.
19880         (clone_tree_hash): Rename to...
19881         (clone_tree_partial): ...this; change callers.  Copy
19882         DW_TAG_subprogram DIEs as declarations.
19883         (copy_decls_walk): Don't copy children of a declaration into a
19884         type unit.
19886 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
19888         PR target/60969
19889         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
19890         alternative 12.
19892 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
19894         * config/arm/predicates.md (call_insn_operand): Add long_call check.
19895         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
19896         reg for long_call.
19897         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
19898         restriction.
19900 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19902         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
19904 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19906         PR tree-optimization/60930
19907         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
19908         creating a multiply candidate by folding two constant
19909         multiplicands when the result overflows.
19911 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
19913         PR tree-optimization/60960
19914         * tree-vect-generic.c (expand_vector_operation): Only call
19915         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
19917 2014-04-25  Tom de Vries  <tom@codesourcery.com>
19919         * expr.c (clobber_reg_mode): New function.
19920         * expr.h (clobber_reg): New function.
19922 2014-04-25  Tom de Vries  <tom@codesourcery.com>
19924         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
19925         clobbers.
19927 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
19928             Tom de Vries  <tom@codesourcery.com>
19930         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
19931         handle.
19932         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
19933         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
19934         new argument to find_all_hard_reg_sets call.
19936 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19938         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
19939         Use HOST_WIDE_INT_C for mask literal.
19940         (aarch_rev16_shleft_mask_imm_p): Likewise.
19942 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
19944         PR target/60941
19945         * config/sparc/sparc.md (ashlsi3_extend): Delete.
19947 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
19949         PR preprocessor/56540
19950         * config/i386/i386-c.c (ix86_target_macros): Define
19951         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
19953 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19955         * configure.ac (tga_func): Remove.
19956         (LIB_TLS_SPEC): Remove.
19957         * configure: Regenerate.
19958         * config.in: Regenerate.
19959         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
19961 2014-04-25  Richard Biener  <rguenther@suse.de>
19963         PR ipa/60912
19964         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
19965         call stmt use/clobber sets during stmt walk instead of
19966         walking the possibly incomplete set of caller edges.
19968 2014-04-25  Richard Biener  <rguenther@suse.de>
19970         PR ipa/60911
19971         * passes.c (apply_ipa_transforms): Inline into only caller ...
19972         (execute_one_pass): ... here.  Properly bring in function
19973         bodies for nodes we want to apply IPA transforms to.
19975 2014-04-24  Cong Hou  <congh@google.com>
19977         PR tree-optimization/60896
19978         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
19979         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
19980         (vect_mark_pattern_stmts): Set the def type of all statements in
19981         PATTERN_DEF_SEQ as vect_internal_def.
19983 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19985         * doc/extend.texi (PowerPC Built-in Functions): Document new
19986         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
19987         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
19989         * config/rs6000/predicates.md (const_0_to_3_operand): New
19990         predicate to match 0..3 integer constants.
19992         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
19993         to support adding miscellaneous builtin functions.
19994         (BU_DFP_MISC_2): Likewise.
19995         (BU_P7_MISC_1): Likewise.
19996         (BU_P7_MISC_2): Likewise.
19997         (BU_P8V_MISC_3): Likewise.
19998         (BU_MISC_1): Likewise.
19999         (BU_MISC_2): Likewise.
20000         (DIVWE): Add extended divide builtin functions.
20001         (DIVWEO): Likewise.
20002         (DIVWEU): Likewise.
20003         (DIVWEUO): Likewise.
20004         (DIVDE): Likewise.
20005         (DIVDEO): Likewise.
20006         (DIVDEU): Likewise.
20007         (DIVDEUO): Likewise.
20008         (DXEX): Add decimal floating-point builtin functions.
20009         (DXEXQ): Likewise.
20010         (DDEDPD): Likewise.
20011         (DDEDPDQ): Likewise.
20012         (DENBCD): Likewise.
20013         (DENBCDQ): Likewise.
20014         (DIEX): Likewise.
20015         (DIEXQ): Likewise.
20016         (DSCLI): Likewise.
20017         (DSCLIQ): Likewise.
20018         (DSCRI): Likewise.
20019         (DSCRIQ): Likewise.
20020         (CDTBCD): Add new BCD builtin functions.
20021         (CBCDTD): Likewise.
20022         (ADDG6S): Likewise.
20023         (BCDADD): Likewise.
20024         (BCDADD_LT): Likewise.
20025         (BCDADD_EQ): Likewise.
20026         (BCDADD_GT): Likewise.
20027         (BCDADD_OV): Likewise.
20028         (BCDSUB): Likewise.
20029         (BCDSUB_LT): Likewise.
20030         (BCDSUB_EQ): Likewise.
20031         (BCDSUB_GT): Likewise.
20032         (BCDSUB_OV): Likewise.
20033         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
20034         (UNPACK_TD): Likewise.
20035         (PACK_TF): Likewise.
20036         (UNPACK_TF): Likewise.
20037         (UNPACK_TF_0): Likewise.
20038         (UNPACK_TF_1): Likewise.
20039         (PACK_V1TI): Likewise.
20040         (UNPACK_V1TI): Likewise.
20042         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20043         support for decimal floating point builtin functions.
20044         (rs6000_expand_ternop_builtin): Add checks for the new builtin
20045         functions that take constant arguments.
20046         (rs6000_invalid_builtin): Add decimal floating point builtin support.
20047         (rs6000_init_builtins): Setup long double, _Decimal64, and
20048         _Decimal128 types for new builtin functions.
20049         (builtin_function_type): Set the unsigned flags appropriately for
20050         the new builtin functions.
20051         (rs6000_opt_masks): Add support for decimal floating point builtin
20052         functions.
20054         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
20055         floating point builtin functions.
20056         (RS6000_BTM_COMMON): Likewise.
20057         (RS6000_BTI_long_double): Likewise.
20058         (RS6000_BTI_dfloat64): Likewise.
20059         (RS6000_BTI_dfloat128): Likewise.
20060         (long_double_type_internal_node): Likewise.
20061         (dfloat64_type_internal_node): Likewise.
20062         (dfloat128_type_internal_node): Likewise.
20064         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
20065         2.07 bcd arithmetic instructions.
20066         (UNSPEC_BCDSUB): Likewise.
20067         (UNSPEC_BCD_OVERFLOW): Likewise.
20068         (UNSPEC_BCD_ADD_SUB): Likewise.
20069         (bcd_add_sub): Likewise.
20070         (BCD_TEST): Likewise.
20071         (bcd<bcd_add_sub>): Likewise.
20072         (bcd<bcd_add_sub>_test): Likewise.
20073         (bcd<bcd_add_sub>_test2): Likewise.
20074         (bcd<bcd_add_sub>_<code>): Likewise.
20075         (peephole2 for combined bcd ops): Likewise.
20077         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
20078         decimal floating point builtin functions.
20079         (UNSPEC_DENBCD): Likewise.
20080         (UNSPEC_DXEX): Likewise.
20081         (UNSPEC_DIEX): Likewise.
20082         (UNSPEC_DSCLI): Likewise.
20083         (UNSPEC_DSCRI): Likewise.
20084         (D64_D128): Likewise.
20085         (dfp_suffix): Likewise.
20086         (dfp_ddedpd_<mode>): Likewise.
20087         (dfp_denbcd_<mode>): Likewise.
20088         (dfp_dxex_<mode>): Likewise.
20089         (dfp_diex_<mode>): Likewise.
20090         (dfp_dscli_<mode>): Likewise.
20091         (dfp_dscri_<mode>): Likewise.
20093         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
20094         builtin functions.
20095         (UNSPEC_CDTBCD): Likewise.
20096         (UNSPEC_CBCDTD): Likewise.
20097         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
20098         (UNSPEC_DIVEO): Likewise.
20099         (UNSPEC_DIVEU): Likewise.
20100         (UNSPEC_DIVEUO): Likewise.
20101         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
20102         pack/unpack 128-bit types.
20103         (UNSPEC_PACK_128BIT): Likewise.
20104         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
20105         (udiv<mode>3): Use idiv_ldiv mode attribute.
20106         (div<mode>3): Likewise.
20107         (addg6s): Add new BCD builtin functions.
20108         (cdtbcd): Likewise.
20109         (cbcdtd): Likewise.
20110         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
20111         (div_extend): Likewise.
20112         (div<div_extend>_<mode>"): Likewise.
20113         (FP128_64): Add support for new builtin functions to pack/unpack
20114         128-bit types.
20115         (unpack<mode>): Likewise.
20116         (unpacktf_0): Likewise.
20117         (unpacktf_1): Likewise.
20118         (unpack<mode>_dm): Likewise.
20119         (unpack<mode>_nodm): Likewise.
20120         (pack<mode>): Likewise.
20121         (unpackv1ti): Likewise.
20122         (packv1ti): Likewise.
20124 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
20126         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
20127         is disabled.
20129 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
20131         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
20132         * gimplify.c (omp_is_private): Change last argument's type to int.
20133         Only diagnose lastprivate if the simd argument is 1, only diagnose
20134         linear if the simd argument is 2.
20135         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
20136         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
20137         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
20138         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
20139         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
20140         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20141         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
20142         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20143         * tree-nested.c (convert_nonlocal_omp_clauses,
20144         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
20146 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
20148         PR target/60822
20149         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
20150         operand 1.
20152 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
20154         * flag-types.h (enum ivar_visibility): Add.
20156 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
20158         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
20159         function * argument.
20161 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
20163         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
20165 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
20166             Tom de Vries  <tom@codesourcery.com>
20168         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
20169         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
20170         reg-note.
20171         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
20172         * emit-rtl.c (try_split): Same.
20174 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
20175             Tom de Vries  <tom@codesourcery.com>
20177         * common.opt (fuse-caller-save): New option.
20179 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
20181         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
20182         elements for big-endian.
20184 2014-04-24  Richard Biener  <rguenther@suse.de>
20186         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
20187         during TER and instead use the sepops interface for expanding
20188         non-GIMPLE_SINGLE_RHS.
20190 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20192         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
20193         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
20195 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20197         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
20198         assembler 64-bit option.
20199         * configure: Regenerate.
20201 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20203         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
20204         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
20205         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
20206         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
20207         (TARGET_CRYPTO): Take TARGET_SIMD into account.
20209 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20211         * config/aarch64/aarch64-builtins.c
20212         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
20213         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
20214         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
20215         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
20216         builtins.
20217         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
20218         (Vrevsuff): New mode attribute.
20220 2014-04-24  Terry Guo  <terry.guo@arm.com>
20222         * config/arm/arm.h (machine_function): Define variable
20223         after_arm_reorg here.
20224         * config/arm/arm.c (after_arm_reorg): Remove the definition.
20225         (arm_split_constant): Update the way to access variable
20226         after_arm_reorg.
20227         (arm_reorg): Ditto.
20228         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
20230 2014-04-23  Tom de Vries  <tom@codesourcery.com>
20232         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
20234 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
20236         * is-a.h: Update comments to reflect the following changes to the
20237         "pointerness" of the API, making the template parameter match the
20238         return type, allowing use of is-a.h with typedefs of pointers.
20239         (is_a_helper::cast): Return a T rather then a pointer to a T, so
20240         that the return type matches the parameter to the is_a_helper.
20241         (as_a): Likewise.
20242         (dyn_cast): Likewise.
20244         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
20245         pointer from the is-a.h API.
20247         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
20248         (is_a_helper <cgraph_node *>::test): ...this, matching change to
20249         is-a.h API.
20250         (is_a_helper <varpool_node>::test): Likewise, convert to...
20251         (is_a_helper <varpool_node *>::test): ...this.
20253         (varpool_first_variable): Update for removal of implicit pointer
20254         from the is-a.h API.
20255         (varpool_next_variable): Likewise.
20256         (varpool_first_static_initializer): Likewise.
20257         (varpool_next_static_initializer): Likewise.
20258         (varpool_first_defined_variable): Likewise.
20259         (varpool_next_defined_variable): Likewise.
20260         (cgraph_first_defined_function): Likewise.
20261         (cgraph_next_defined_function): Likewise.
20262         (cgraph_first_function): Likewise.
20263         (cgraph_next_function): Likewise.
20264         (cgraph_first_function_with_gimple_body): Likewise.
20265         (cgraph_next_function_with_gimple_body): Likewise.
20266         (cgraph_alias_target): Likewise.
20267         (varpool_alias_target): Likewise.
20268         (cgraph_function_or_thunk_node): Likewise.
20269         (varpool_variable_node): Likewise.
20270         (symtab_real_symbol_p): Likewise.
20271         * cgraphunit.c (referred_to_p): Likewise.
20272         (analyze_functions): Likewise.
20273         (handle_alias_pairs): Likewise.
20274         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
20275         * gimple-ssa.h (gimple_vuse_op): Likewise.
20276         (gimple_vdef_op): Likewise.
20277         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
20278         * gimple.c (gimple_build_asm_1): Likewise.
20279         (gimple_build_try): Likewise.
20280         (gimple_build_resx): Likewise.
20281         (gimple_build_eh_dispatch): Likewise.
20282         (gimple_build_omp_for): Likewise.
20283         (gimple_omp_for_set_clauses): Likewise.
20285         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
20286         (is_a_helper <gimple_statement_asm *>::test): ...this.
20287         (is_a_helper <gimple_statement_bind>::test): Convert to...
20288         (is_a_helper <gimple_statement_bind *>::test): ...this.
20289         (is_a_helper <gimple_statement_call>::test): Convert to...
20290         (is_a_helper <gimple_statement_call *>::test): ...this.
20291         (is_a_helper <gimple_statement_catch>::test): Convert to...
20292         (is_a_helper <gimple_statement_catch *>::test): ...this.
20293         (is_a_helper <gimple_statement_resx>::test): Convert to...
20294         (is_a_helper <gimple_statement_resx *>::test): ...this.
20295         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
20296         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
20297         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
20298         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
20299         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
20300         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
20301         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
20302         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
20303         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
20304         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
20305         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
20306         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
20307         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
20308         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
20309         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
20310         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
20311         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
20312         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
20313         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
20314         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
20315         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
20316         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
20317         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
20318         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
20319         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
20320         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
20321         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
20322         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
20323         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
20324         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
20325         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
20326         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
20327         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
20328         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
20329         (is_a_helper <gimple_statement_phi>::test): Convert to...
20330         (is_a_helper <gimple_statement_phi *>::test): ...this.
20331         (is_a_helper <gimple_statement_transaction>::test): Convert to...
20332         (is_a_helper <gimple_statement_transaction *>::test): ...this.
20333         (is_a_helper <gimple_statement_try>::test): Convert to...
20334         (is_a_helper <gimple_statement_try *>::test): ...this.
20335         (is_a_helper <gimple_statement_wce>::test): Convert to...
20336         (is_a_helper <gimple_statement_wce *>::test): ...this.
20337         (is_a_helper <const gimple_statement_asm>::test): Convert to...
20338         (is_a_helper <const gimple_statement_asm *>::test): ...this.
20339         (is_a_helper <const gimple_statement_bind>::test): Convert to...
20340         (is_a_helper <const gimple_statement_bind *>::test): ...this.
20341         (is_a_helper <const gimple_statement_call>::test): Convert to...
20342         (is_a_helper <const gimple_statement_call *>::test): ...this.
20343         (is_a_helper <const gimple_statement_catch>::test): Convert to...
20344         (is_a_helper <const gimple_statement_catch *>::test): ...this.
20345         (is_a_helper <const gimple_statement_resx>::test): Convert to...
20346         (is_a_helper <const gimple_statement_resx *>::test): ...this.
20347         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
20348         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
20349         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
20350         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
20351         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
20352         Convert to...
20353         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
20354         ...this.
20355         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
20356         Convert to...
20357         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
20358         ...this.
20359         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
20360         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
20361         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
20362         to...
20363         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
20364         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
20365         to...
20366         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
20367         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
20368         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
20369         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
20370         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
20371         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
20372         to...
20373         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
20374         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
20375         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
20376         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
20377         to...
20378         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
20379         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
20380         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
20381         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
20382         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
20383         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
20384         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
20385         (is_a_helper <const gimple_statement_phi>::test): Convert to...
20386         (is_a_helper <const gimple_statement_phi *>::test): ...this.
20387         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
20388         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
20389         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
20390         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
20391         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
20392         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
20393         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
20394         to...
20395         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
20396         ...this.
20397         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
20398         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
20400         (gimple_use_ops): Update for removal of implicit pointer from the
20401         is-a.h API.
20402         (gimple_set_use_ops): Likewise.
20403         (gimple_vuse): Likewise.
20404         (gimple_vdef): Likewise.
20405         (gimple_vuse_ptr): Likewise.
20406         (gimple_vdef_ptr): Likewise.
20407         (gimple_set_vuse): Likewise.
20408         (gimple_set_vdef): Likewise.
20409         (gimple_omp_return_set_lhs): Likewise.
20410         (gimple_omp_return_lhs): Likewise.
20411         (gimple_omp_return_lhs_ptr): Likewise.
20412         (gimple_call_fntype): Likewise.
20413         (gimple_call_set_fntype): Likewise.
20414         (gimple_call_set_internal_fn): Likewise.
20415         (gimple_call_use_set): Likewise.
20416         (gimple_call_clobber_set): Likewise.
20417         (gimple_bind_vars): Likewise.
20418         (gimple_bind_set_vars): Likewise.
20419         (gimple_bind_body_ptr): Likewise.
20420         (gimple_bind_set_body): Likewise.
20421         (gimple_bind_add_stmt): Likewise.
20422         (gimple_bind_block): Likewise.
20423         (gimple_bind_set_block): Likewise.
20424         (gimple_asm_ninputs): Likewise.
20425         (gimple_asm_noutputs): Likewise.
20426         (gimple_asm_nclobbers): Likewise.
20427         (gimple_asm_nlabels): Likewise.
20428         (gimple_asm_input_op): Likewise.
20429         (gimple_asm_input_op_ptr): Likewise.
20430         (gimple_asm_output_op): Likewise.
20431         (gimple_asm_output_op_ptr): Likewise.
20432         (gimple_asm_set_output_op): Likewise.
20433         (gimple_asm_clobber_op): Likewise.
20434         (gimple_asm_set_clobber_op): Likewise.
20435         (gimple_asm_label_op): Likewise.
20436         (gimple_asm_set_label_op): Likewise.
20437         (gimple_asm_string): Likewise.
20438         (gimple_catch_types): Likewise.
20439         (gimple_catch_types_ptr): Likewise.
20440         (gimple_catch_handler_ptr): Likewise.
20441         (gimple_catch_set_types): Likewise.
20442         (gimple_catch_set_handler): Likewise.
20443         (gimple_eh_filter_types): Likewise.
20444         (gimple_eh_filter_types_ptr): Likewise.
20445         (gimple_eh_filter_failure_ptr): Likewise.
20446         (gimple_eh_filter_set_types): Likewise.
20447         (gimple_eh_filter_set_failure): Likewise.
20448         (gimple_eh_must_not_throw_fndecl): Likewise.
20449         (gimple_eh_must_not_throw_set_fndecl): Likewise.
20450         (gimple_eh_else_n_body_ptr): Likewise.
20451         (gimple_eh_else_e_body_ptr): Likewise.
20452         (gimple_eh_else_set_n_body): Likewise.
20453         (gimple_eh_else_set_e_body): Likewise.
20454         (gimple_try_eval_ptr): Likewise.
20455         (gimple_try_cleanup_ptr): Likewise.
20456         (gimple_try_set_eval): Likewise.
20457         (gimple_try_set_cleanup): Likewise.
20458         (gimple_wce_cleanup_ptr): Likewise.
20459         (gimple_wce_set_cleanup): Likewise.
20460         (gimple_phi_capacity): Likewise.
20461         (gimple_phi_num_args): Likewise.
20462         (gimple_phi_result): Likewise.
20463         (gimple_phi_result_ptr): Likewise.
20464         (gimple_phi_set_result): Likewise.
20465         (gimple_phi_arg): Likewise.
20466         (gimple_phi_set_arg): Likewise.
20467         (gimple_resx_region): Likewise.
20468         (gimple_resx_set_region): Likewise.
20469         (gimple_eh_dispatch_region): Likewise.
20470         (gimple_eh_dispatch_set_region): Likewise.
20471         (gimple_omp_critical_name): Likewise.
20472         (gimple_omp_critical_name_ptr): Likewise.
20473         (gimple_omp_critical_set_name): Likewise.
20474         (gimple_omp_for_clauses): Likewise.
20475         (gimple_omp_for_clauses_ptr): Likewise.
20476         (gimple_omp_for_set_clauses): Likewise.
20477         (gimple_omp_for_collapse): Likewise.
20478         (gimple_omp_for_index): Likewise.
20479         (gimple_omp_for_index_ptr): Likewise.
20480         (gimple_omp_for_set_index): Likewise.
20481         (gimple_omp_for_initial): Likewise.
20482         (gimple_omp_for_initial_ptr): Likewise.
20483         (gimple_omp_for_set_initial): Likewise.
20484         (gimple_omp_for_final): Likewise.
20485         (gimple_omp_for_final_ptr): Likewise.
20486         (gimple_omp_for_set_final): Likewise.
20487         (gimple_omp_for_incr): Likewise.
20488         (gimple_omp_for_incr_ptr): Likewise.
20489         (gimple_omp_for_set_incr): Likewise.
20490         (gimple_omp_for_pre_body_ptr): Likewise.
20491         (gimple_omp_for_set_pre_body): Likewise.
20492         (gimple_omp_parallel_clauses): Likewise.
20493         (gimple_omp_parallel_clauses_ptr): Likewise.
20494         (gimple_omp_parallel_set_clauses): Likewise.
20495         (gimple_omp_parallel_child_fn): Likewise.
20496         (gimple_omp_parallel_child_fn_ptr): Likewise.
20497         (gimple_omp_parallel_set_child_fn): Likewise.
20498         (gimple_omp_parallel_data_arg): Likewise.
20499         (gimple_omp_parallel_data_arg_ptr): Likewise.
20500         (gimple_omp_parallel_set_data_arg): Likewise.
20501         (gimple_omp_task_clauses): Likewise.
20502         (gimple_omp_task_clauses_ptr): Likewise.
20503         (gimple_omp_task_set_clauses): Likewise.
20504         (gimple_omp_task_child_fn): Likewise.
20505         (gimple_omp_task_child_fn_ptr): Likewise.
20506         (gimple_omp_task_set_child_fn): Likewise.
20507         (gimple_omp_task_data_arg): Likewise.
20508         (gimple_omp_task_data_arg_ptr): Likewise.
20509         (gimple_omp_task_set_data_arg): Likewise.
20510         (gimple_omp_taskreg_clauses): Likewise.
20511         (gimple_omp_taskreg_clauses_ptr): Likewise.
20512         (gimple_omp_taskreg_set_clauses): Likewise.
20513         (gimple_omp_taskreg_child_fn): Likewise.
20514         (gimple_omp_taskreg_child_fn_ptr): Likewise.
20515         (gimple_omp_taskreg_set_child_fn): Likewise.
20516         (gimple_omp_taskreg_data_arg): Likewise.
20517         (gimple_omp_taskreg_data_arg_ptr): Likewise.
20518         (gimple_omp_taskreg_set_data_arg): Likewise.
20519         (gimple_omp_task_copy_fn): Likewise.
20520         (gimple_omp_task_copy_fn_ptr): Likewise.
20521         (gimple_omp_task_set_copy_fn): Likewise.
20522         (gimple_omp_task_arg_size): Likewise.
20523         (gimple_omp_task_arg_size_ptr): Likewise.
20524         (gimple_omp_task_set_arg_size): Likewise.
20525         (gimple_omp_task_arg_align): Likewise.
20526         (gimple_omp_task_arg_align_ptr): Likewise.
20527         (gimple_omp_task_set_arg_align): Likewise.
20528         (gimple_omp_single_clauses): Likewise.
20529         (gimple_omp_single_clauses_ptr): Likewise.
20530         (gimple_omp_single_set_clauses): Likewise.
20531         (gimple_omp_target_clauses): Likewise.
20532         (gimple_omp_target_clauses_ptr): Likewise.
20533         (gimple_omp_target_set_clauses): Likewise.
20534         (gimple_omp_target_child_fn): Likewise.
20535         (gimple_omp_target_child_fn_ptr): Likewise.
20536         (gimple_omp_target_set_child_fn): Likewise.
20537         (gimple_omp_target_data_arg): Likewise.
20538         (gimple_omp_target_data_arg_ptr): Likewise.
20539         (gimple_omp_target_set_data_arg): Likewise.
20540         (gimple_omp_teams_clauses): Likewise.
20541         (gimple_omp_teams_clauses_ptr): Likewise.
20542         (gimple_omp_teams_set_clauses): Likewise.
20543         (gimple_omp_sections_clauses): Likewise.
20544         (gimple_omp_sections_clauses_ptr): Likewise.
20545         (gimple_omp_sections_set_clauses): Likewise.
20546         (gimple_omp_sections_control): Likewise.
20547         (gimple_omp_sections_control_ptr): Likewise.
20548         (gimple_omp_sections_set_control): Likewise.
20549         (gimple_omp_for_set_cond): Likewise.
20550         (gimple_omp_for_cond): Likewise.
20551         (gimple_omp_atomic_store_set_val): Likewise.
20552         (gimple_omp_atomic_store_val): Likewise.
20553         (gimple_omp_atomic_store_val_ptr): Likewise.
20554         (gimple_omp_atomic_load_set_lhs): Likewise.
20555         (gimple_omp_atomic_load_lhs): Likewise.
20556         (gimple_omp_atomic_load_lhs_ptr): Likewise.
20557         (gimple_omp_atomic_load_set_rhs): Likewise.
20558         (gimple_omp_atomic_load_rhs): Likewise.
20559         (gimple_omp_atomic_load_rhs_ptr): Likewise.
20560         (gimple_omp_continue_control_def): Likewise.
20561         (gimple_omp_continue_control_def_ptr): Likewise.
20562         (gimple_omp_continue_set_control_def): Likewise.
20563         (gimple_omp_continue_control_use): Likewise.
20564         (gimple_omp_continue_control_use_ptr): Likewise.
20565         (gimple_omp_continue_set_control_use): Likewise.
20566         (gimple_transaction_body_ptr): Likewise.
20567         (gimple_transaction_label): Likewise.
20568         (gimple_transaction_label_ptr): Likewise.
20569         (gimple_transaction_set_body): Likewise.
20570         (gimple_transaction_set_label): Likewise.
20572         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
20573         * ipa-inline-analysis.c (inline_write_summary): Likewise.
20574         * ipa-ref.c (ipa_record_reference): Likewise.
20575         * ipa-reference.c (analyze_function): Likewise.
20576         (ipa_reference_write_optimization_summary): Likewise.
20577         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
20578         (address_taken_from_non_vtable_p): Likewise.
20579         (comdat_can_be_unshared_p_1): Likewise.
20580         * lto-cgraph.c (lto_output_ref): Likewise.
20581         (add_references): Likewise.
20582         (compute_ltrans_boundary): Likewise.
20583         (output_symtab): Likewise.
20584         (input_ref): Likewise.
20585         (input_cgraph_1): Likewise.
20586         (output_cgraph_opt_summary): Likewise.
20587         * lto-streamer-out.c (lto_output): Likewise.
20588         (output_symbol_p): Likewise.
20589         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
20590         (lsei_start_function_in_partition): Likewise.
20591         (lsei_next_variable_in_partition): Likewise.
20592         (lsei_start_variable_in_partition): Likewise.
20593         * symtab.c (insert_to_assembler_name_hash): Likewise.
20594         (unlink_from_assembler_name_hash): Likewise.
20595         (symtab_unregister_node): Likewise.
20596         (symtab_remove_node): Likewise.
20597         (dump_symtab_node): Likewise.
20598         (verify_symtab_base): Likewise.
20599         (verify_symtab_node): Likewise.
20600         (symtab_make_decl_local): Likewise.
20601         (symtab_alias_ultimate_target): Likewise.
20602         (symtab_resolve_alias): Likewise.
20603         (symtab_get_symbol_partitioning_class): Likewise.
20604         * tree-phinodes.c (allocate_phi_node): Likewise.
20605         (reserve_phi_args_for_new_edge): Likewise.
20606         (remove_phi_args): Likewise.
20607         * varpool.c (varpool_node_for_asm): Likewise.
20608         (varpool_remove_unreferenced_decls): Likewise.
20610 2014-04-23  Jeff Law  <law@redhat.com>
20612         PR tree-optimization/60902
20613         * tree-ssa-threadedge.c
20614         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
20615         invalidate outputs from statements that do not produce useful
20616         outputs for threading.
20618 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
20620         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
20621         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
20622         machine descriptions for Stack Smashing Protector.
20624 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
20626         * aarch64.md (<optab>_rol<mode>3): New pattern.
20627         (<optab>_rolsi3_uxtw): Likewise.
20628         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
20630 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
20632         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
20633         (arm_cortex_a12_tune): Likewise.
20635 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20637         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
20639 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20641         * config/arm/arm.md (arm_rev16si2): New pattern.
20642         (arm_rev16si2_alt): Likewise.
20643         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
20645 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20647         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
20648         (rev16<mode>2_alt): Likewise.
20649         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
20650         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
20651         (aarch_rev16_shleft_mask_imm_p): Likewise.
20652         (aarch_rev16_p_1): Likewise.
20653         (aarch_rev16_p): Likewise.
20654         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
20655         (aarch_rev16_shright_mask_imm_p): Likewise.
20656         (aarch_rev16_shleft_mask_imm_p): Likewise.
20658 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20660         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
20661         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
20662         rev cost.
20663         (cortex_a53_extra_costs): Likewise.
20664         (cortex_a57_extra_costs): Likewise.
20665         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
20666         (cortexa7_extra_costs): Likewise.
20667         (cortexa8_extra_costs): Likewise.
20668         (cortexa12_extra_costs): Likewise.
20669         (cortexa15_extra_costs): Likewise.
20670         (v7m_extra_costs): Likewise.
20671         (arm_new_rtx_costs): Handle BSWAP.
20673 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20675         * config/arm/arm.c (cortexa8_extra_costs): New table.
20676         (arm_cortex_a8_tune): New tuning struct.
20677         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
20679 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20681         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
20683 2014-04-23  Richard Biener  <rguenther@suse.de>
20685         * Makefile.in (OBJS): Remove loop-unswitch.o.
20686         * tree-pass.h (make_pass_rtl_unswitch): Remove.
20687         * passes.def (pass_rtl_unswitch): Likewise.
20688         * loop-init.c (gate_rtl_unswitch): Likewise.
20689         (rtl_unswitch): Likewise.
20690         (pass_data_rtl_unswitch): Likewise.
20691         (pass_rtl_unswitch): Likewise.
20692         (make_pass_rtl_unswitch): Likewise.
20693         * rtl.h (reversed_condition): Likewise.
20694         (compare_and_jump_seq): Likewise.
20695         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
20696         and make static.
20697         * loop-unroll.c (compare_and_jump_seq): Likewise.
20699 2014-04-23  Richard Biener  <rguenther@suse.de>
20701         PR tree-optimization/60903
20702         * tree-ssa-loop-im.c (analyze_memory_references): Remove
20703         commented code block.
20704         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
20705         loop flags to newly created BBs and edges.
20707 2014-04-23  Nick Clifton  <nickc@redhat.com>
20709         * config/msp430/msp430.c (msp430_handle_option): Move function
20710         to msp430-common.c
20711         (msp430_option_override): Simplify mcu and mcpu option handling.
20712         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
20713         support for -mhwmult command line option.
20714         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
20715         -mhwmult command line option.
20716         (msp430_hwmult_enabled): Delete.
20717         (msp43o_output_labelref): Add support for -mhwmult command line option.
20718         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
20719         (umulsidi3): Likewise.
20720         * config/msp430/msp430.opt (mmcu): Add Report attribute.
20721         (mcpu, mlarge, msmall): Likewise.
20722         (mhwmult): New option.
20723         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
20724         prototype.
20725         (msp430_is_f5_mcu): Remove prototype.
20726         (msp430_use_f5_series_hwmult): Add prototype.
20727         * config/msp430/msp430-opts.h: New file.
20728         * common/config/msp430: New directory.
20729         * common/config/msp430/msp430-common.c: New file.
20730         * config.gcc (msp430): Remove target_has_targetm_common.
20731         * doc/invoke.texi: Document -mhwmult command line option.
20733 2014-04-23  Nick Clifton  <nickc@redhat.com>
20735         * config/i386/cygwin.h (ENDFILE_SPEC): Include
20736         default-manifest.o if it can be found in the search path.
20737         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
20739 2014-04-23  Terry Guo  <terry.guo@arm.com>
20741         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
20743 2014-04-23  Richard Biener  <rguenther@suse.de>
20745         PR middle-end/60895
20746         * tree-inline.c (declare_return_variable): Use mark_addressable.
20748 2014-04-23  Richard Biener  <rguenther@suse.de>
20750         PR middle-end/60891
20751         * loop-init.c (loop_optimizer_init): Make sure to apply
20752         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
20754 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
20756         PR sanitizer/60275
20757         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
20758         New options.
20759         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
20760         if flag_sanitize_undefined_trap_on_error.
20761         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
20762         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
20763         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
20764         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
20765         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
20766         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
20767         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
20768         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
20769         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
20770         * ubsan.c (ubsan_instrument_unreachable): Return
20771         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
20772         (ubsan_expand_null_ifn): Emit __builtin_trap ()
20773         if flag_sanitize_undefined_trap_on_error and
20774         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
20775         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
20776         instrument_bool_enum_load): Emit __builtin_trap () if
20777         flag_sanitize_undefined_trap_on_error and
20778         __builtin_handle_*_abort () if !flag_sanitize_recover.
20779         * doc/invoke.texi (-fsanitize-recover,
20780         -fsanitize-undefined-trap-on-error): Document.
20782 2014-04-22  Christian Bruel  <christian.bruel@st.com>
20784         * config/sh/sh.md (mov<mode>): Replace movQIHI.
20785          Force immediates to SImode.
20787 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
20789         * config/nios2/nios2.md (UNSPEC_ROUND): New.
20790         (lroundsfsi2): New.
20791         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
20792         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
20793         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
20794         (nios2_fpu_insn): Add entry for round.
20795         (N2FPU_NO_ERRNO_P): Define.
20796         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
20797         flag_errno_math.
20798         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
20800 2014-04-22  Richard Henderson  <rth@redhat.com>
20802         * config/aarch64/aarch64 (addti3, subti3): New expanders.
20803         (add<GPI>3_compare0): Remove leading * from name.
20804         (add<GPI>3_carryin): Likewise.
20805         (sub<GPI>3_compare0): Likewise.
20806         (sub<GPI>3_carryin): Likewise.
20807         (<su_optab>mulditi3): New expander.
20808         (multi3): New expander.
20809         (madd<GPI>): Remove leading * from name.
20811 2014-04-22  Martin Jambor  <mjambor@suse.cz>
20813         * cgraphclones.c (cgraph_function_versioning): Copy
20814         ipa_transforms_to_apply instead of asserting it is empty.
20816 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
20818         PR target/60868
20819         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
20820         on count_exp to get mode.
20822 2014-04-22  Andrew Pinski  <apinski@cavium.com>
20824         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20825         Handle TLS for ILP32.
20826         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
20827         (tlsie_small_<mode>): this and handle PTR.
20828         (tlsie_small_sidi): New pattern.
20829         (tlsle_small): Change to an expand to handle ILP32.
20830         (tlsle_small_<mode>): New pattern.
20831         (tlsdesc_small): Rename to ...
20832         (tlsdesc_small_<mode>): this and handle PTR.
20834 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20836         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
20838 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
20840         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
20841         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
20842         (aarch64_types_signed_poly_qualifiers): Likewise.
20843         (aarch64_types_unsigned_signed_qualifiers): Likewise.
20844         (aarch64_types_poly_signed_qualifiers): Likewise.
20845         (TYPES_REINTERP_SS): Type macro added.
20846         (TYPES_REINTERP_SU): Likewise.
20847         (TYPES_REINTERP_SP): Likewise.
20848         (TYPES_REINTERP_US): Likewise.
20849         (TYPES_REINTERP_PS): Likewise.
20850         (aarch64_fold_builtin): New expression folding added.
20851         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
20852         Declarations removed.
20853         (REINTERP_SS): Declarations added.
20854         (REINTERP_US): Likewise.
20855         (REINTERP_PS): Likewise.
20856         (REINTERP_SU): Likewise.
20857         (REINTERP_SP): Likewise.
20858         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
20859         (vreinterpretq_p8_f64): Likewise.
20860         (vreinterpret_p16_f64): Likewise.
20861         (vreinterpretq_p16_f64): Likewise.
20862         (vreinterpret_f32_f64): Likewise.
20863         (vreinterpretq_f32_f64): Likewise.
20864         (vreinterpret_f64_f32): Likewise.
20865         (vreinterpret_f64_p8): Likewise.
20866         (vreinterpret_f64_p16): Likewise.
20867         (vreinterpret_f64_s8): Likewise.
20868         (vreinterpret_f64_s16): Likewise.
20869         (vreinterpret_f64_s32): Likewise.
20870         (vreinterpret_f64_s64): Likewise.
20871         (vreinterpret_f64_u8): Likewise.
20872         (vreinterpret_f64_u16): Likewise.
20873         (vreinterpret_f64_u32): Likewise.
20874         (vreinterpret_f64_u64): Likewise.
20875         (vreinterpretq_f64_f32): Likewise.
20876         (vreinterpretq_f64_p8): Likewise.
20877         (vreinterpretq_f64_p16): Likewise.
20878         (vreinterpretq_f64_s8): Likewise.
20879         (vreinterpretq_f64_s16): Likewise.
20880         (vreinterpretq_f64_s32): Likewise.
20881         (vreinterpretq_f64_s64): Likewise.
20882         (vreinterpretq_f64_u8): Likewise.
20883         (vreinterpretq_f64_u16): Likewise.
20884         (vreinterpretq_f64_u32): Likewise.
20885         (vreinterpretq_f64_u64): Likewise.
20886         (vreinterpret_s64_f64): Likewise.
20887         (vreinterpretq_s64_f64): Likewise.
20888         (vreinterpret_u64_f64): Likewise.
20889         (vreinterpretq_u64_f64): Likewise.
20890         (vreinterpret_s8_f64): Likewise.
20891         (vreinterpretq_s8_f64): Likewise.
20892         (vreinterpret_s16_f64): Likewise.
20893         (vreinterpretq_s16_f64): Likewise.
20894         (vreinterpret_s32_f64): Likewise.
20895         (vreinterpretq_s32_f64): Likewise.
20896         (vreinterpret_u8_f64): Likewise.
20897         (vreinterpretq_u8_f64): Likewise.
20898         (vreinterpret_u16_f64): Likewise.
20899         (vreinterpretq_u16_f64): Likewise.
20900         (vreinterpret_u32_f64): Likewise.
20901         (vreinterpretq_u32_f64): Likewise.
20903 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
20905         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
20906         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
20907         (vreinterpret_p8_s8): Likewise.
20908         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
20909         (vreinterpret_p8_s16): Likewise.
20910         (vreinterpret_p8_s32): Likewise.
20911         (vreinterpret_p8_s64): Likewise.
20912         (vreinterpret_p8_f32): Likewise.
20913         (vreinterpret_p8_u8): Likewise.
20914         (vreinterpret_p8_u16): Likewise.
20915         (vreinterpret_p8_u32): Likewise.
20916         (vreinterpret_p8_u64): Likewise.
20917         (vreinterpret_p8_p16): Likewise.
20918         (vreinterpretq_p8_s8): Likewise.
20919         (vreinterpretq_p8_s16): Likewise.
20920         (vreinterpretq_p8_s32): Likewise.
20921         (vreinterpretq_p8_s64): Likewise.
20922         (vreinterpretq_p8_f32): Likewise.
20923         (vreinterpretq_p8_u8): Likewise.
20924         (vreinterpretq_p8_u16): Likewise.
20925         (vreinterpretq_p8_u32): Likewise.
20926         (vreinterpretq_p8_u64): Likewise.
20927         (vreinterpretq_p8_p16): Likewise.
20928         (vreinterpret_p16_s8): Likewise.
20929         (vreinterpret_p16_s16): Likewise.
20930         (vreinterpret_p16_s32): Likewise.
20931         (vreinterpret_p16_s64): Likewise.
20932         (vreinterpret_p16_f32): Likewise.
20933         (vreinterpret_p16_u8): Likewise.
20934         (vreinterpret_p16_u16): Likewise.
20935         (vreinterpret_p16_u32): Likewise.
20936         (vreinterpret_p16_u64): Likewise.
20937         (vreinterpret_p16_p8): Likewise.
20938         (vreinterpretq_p16_s8): Likewise.
20939         (vreinterpretq_p16_s16): Likewise.
20940         (vreinterpretq_p16_s32): Likewise.
20941         (vreinterpretq_p16_s64): Likewise.
20942         (vreinterpretq_p16_f32): Likewise.
20943         (vreinterpretq_p16_u8): Likewise.
20944         (vreinterpretq_p16_u16): Likewise.
20945         (vreinterpretq_p16_u32): Likewise.
20946         (vreinterpretq_p16_u64): Likewise.
20947         (vreinterpretq_p16_p8): Likewise.
20948         (vreinterpret_f32_s8): Likewise.
20949         (vreinterpret_f32_s16): Likewise.
20950         (vreinterpret_f32_s32): Likewise.
20951         (vreinterpret_f32_s64): Likewise.
20952         (vreinterpret_f32_u8): Likewise.
20953         (vreinterpret_f32_u16): Likewise.
20954         (vreinterpret_f32_u32): Likewise.
20955         (vreinterpret_f32_u64): Likewise.
20956         (vreinterpret_f32_p8): Likewise.
20957         (vreinterpret_f32_p16): Likewise.
20958         (vreinterpretq_f32_s8): Likewise.
20959         (vreinterpretq_f32_s16): Likewise.
20960         (vreinterpretq_f32_s32): Likewise.
20961         (vreinterpretq_f32_s64): Likewise.
20962         (vreinterpretq_f32_u8): Likewise.
20963         (vreinterpretq_f32_u16): Likewise.
20964         (vreinterpretq_f32_u32): Likewise.
20965         (vreinterpretq_f32_u64): Likewise.
20966         (vreinterpretq_f32_p8): Likewise.
20967         (vreinterpretq_f32_p16): Likewise.
20968         (vreinterpret_s64_s8): Likewise.
20969         (vreinterpret_s64_s16): Likewise.
20970         (vreinterpret_s64_s32): Likewise.
20971         (vreinterpret_s64_f32): Likewise.
20972         (vreinterpret_s64_u8): Likewise.
20973         (vreinterpret_s64_u16): Likewise.
20974         (vreinterpret_s64_u32): Likewise.
20975         (vreinterpret_s64_u64): Likewise.
20976         (vreinterpret_s64_p8): Likewise.
20977         (vreinterpret_s64_p16): Likewise.
20978         (vreinterpretq_s64_s8): Likewise.
20979         (vreinterpretq_s64_s16): Likewise.
20980         (vreinterpretq_s64_s32): Likewise.
20981         (vreinterpretq_s64_f32): Likewise.
20982         (vreinterpretq_s64_u8): Likewise.
20983         (vreinterpretq_s64_u16): Likewise.
20984         (vreinterpretq_s64_u32): Likewise.
20985         (vreinterpretq_s64_u64): Likewise.
20986         (vreinterpretq_s64_p8): Likewise.
20987         (vreinterpretq_s64_p16): Likewise.
20988         (vreinterpret_u64_s8): Likewise.
20989         (vreinterpret_u64_s16): Likewise.
20990         (vreinterpret_u64_s32): Likewise.
20991         (vreinterpret_u64_s64): Likewise.
20992         (vreinterpret_u64_f32): Likewise.
20993         (vreinterpret_u64_u8): Likewise.
20994         (vreinterpret_u64_u16): Likewise.
20995         (vreinterpret_u64_u32): Likewise.
20996         (vreinterpret_u64_p8): Likewise.
20997         (vreinterpret_u64_p16): Likewise.
20998         (vreinterpretq_u64_s8): Likewise.
20999         (vreinterpretq_u64_s16): Likewise.
21000         (vreinterpretq_u64_s32): Likewise.
21001         (vreinterpretq_u64_s64): Likewise.
21002         (vreinterpretq_u64_f32): Likewise.
21003         (vreinterpretq_u64_u8): Likewise.
21004         (vreinterpretq_u64_u16): Likewise.
21005         (vreinterpretq_u64_u32): Likewise.
21006         (vreinterpretq_u64_p8): Likewise.
21007         (vreinterpretq_u64_p16): Likewise.
21008         (vreinterpret_s8_s16): Likewise.
21009         (vreinterpret_s8_s32): Likewise.
21010         (vreinterpret_s8_s64): Likewise.
21011         (vreinterpret_s8_f32): Likewise.
21012         (vreinterpret_s8_u8): Likewise.
21013         (vreinterpret_s8_u16): Likewise.
21014         (vreinterpret_s8_u32): Likewise.
21015         (vreinterpret_s8_u64): Likewise.
21016         (vreinterpret_s8_p8): Likewise.
21017         (vreinterpret_s8_p16): Likewise.
21018         (vreinterpretq_s8_s16): Likewise.
21019         (vreinterpretq_s8_s32): Likewise.
21020         (vreinterpretq_s8_s64): Likewise.
21021         (vreinterpretq_s8_f32): Likewise.
21022         (vreinterpretq_s8_u8): Likewise.
21023         (vreinterpretq_s8_u16): Likewise.
21024         (vreinterpretq_s8_u32): Likewise.
21025         (vreinterpretq_s8_u64): Likewise.
21026         (vreinterpretq_s8_p8): Likewise.
21027         (vreinterpretq_s8_p16): Likewise.
21028         (vreinterpret_s16_s8): Likewise.
21029         (vreinterpret_s16_s32): Likewise.
21030         (vreinterpret_s16_s64): Likewise.
21031         (vreinterpret_s16_f32): Likewise.
21032         (vreinterpret_s16_u8): Likewise.
21033         (vreinterpret_s16_u16): Likewise.
21034         (vreinterpret_s16_u32): Likewise.
21035         (vreinterpret_s16_u64): Likewise.
21036         (vreinterpret_s16_p8): Likewise.
21037         (vreinterpret_s16_p16): Likewise.
21038         (vreinterpretq_s16_s8): Likewise.
21039         (vreinterpretq_s16_s32): Likewise.
21040         (vreinterpretq_s16_s64): Likewise.
21041         (vreinterpretq_s16_f32): Likewise.
21042         (vreinterpretq_s16_u8): Likewise.
21043         (vreinterpretq_s16_u16): Likewise.
21044         (vreinterpretq_s16_u32): Likewise.
21045         (vreinterpretq_s16_u64): Likewise.
21046         (vreinterpretq_s16_p8): Likewise.
21047         (vreinterpretq_s16_p16): Likewise.
21048         (vreinterpret_s32_s8): Likewise.
21049         (vreinterpret_s32_s16): Likewise.
21050         (vreinterpret_s32_s64): Likewise.
21051         (vreinterpret_s32_f32): Likewise.
21052         (vreinterpret_s32_u8): Likewise.
21053         (vreinterpret_s32_u16): Likewise.
21054         (vreinterpret_s32_u32): Likewise.
21055         (vreinterpret_s32_u64): Likewise.
21056         (vreinterpret_s32_p8): Likewise.
21057         (vreinterpret_s32_p16): Likewise.
21058         (vreinterpretq_s32_s8): Likewise.
21059         (vreinterpretq_s32_s16): Likewise.
21060         (vreinterpretq_s32_s64): Likewise.
21061         (vreinterpretq_s32_f32): Likewise.
21062         (vreinterpretq_s32_u8): Likewise.
21063         (vreinterpretq_s32_u16): Likewise.
21064         (vreinterpretq_s32_u32): Likewise.
21065         (vreinterpretq_s32_u64): Likewise.
21066         (vreinterpretq_s32_p8): Likewise.
21067         (vreinterpretq_s32_p16): Likewise.
21068         (vreinterpret_u8_s8): Likewise.
21069         (vreinterpret_u8_s16): Likewise.
21070         (vreinterpret_u8_s32): Likewise.
21071         (vreinterpret_u8_s64): Likewise.
21072         (vreinterpret_u8_f32): Likewise.
21073         (vreinterpret_u8_u16): Likewise.
21074         (vreinterpret_u8_u32): Likewise.
21075         (vreinterpret_u8_u64): Likewise.
21076         (vreinterpret_u8_p8): Likewise.
21077         (vreinterpret_u8_p16): Likewise.
21078         (vreinterpretq_u8_s8): Likewise.
21079         (vreinterpretq_u8_s16): Likewise.
21080         (vreinterpretq_u8_s32): Likewise.
21081         (vreinterpretq_u8_s64): Likewise.
21082         (vreinterpretq_u8_f32): Likewise.
21083         (vreinterpretq_u8_u16): Likewise.
21084         (vreinterpretq_u8_u32): Likewise.
21085         (vreinterpretq_u8_u64): Likewise.
21086         (vreinterpretq_u8_p8): Likewise.
21087         (vreinterpretq_u8_p16): Likewise.
21088         (vreinterpret_u16_s8): Likewise.
21089         (vreinterpret_u16_s16): Likewise.
21090         (vreinterpret_u16_s32): Likewise.
21091         (vreinterpret_u16_s64): Likewise.
21092         (vreinterpret_u16_f32): Likewise.
21093         (vreinterpret_u16_u8): Likewise.
21094         (vreinterpret_u16_u32): Likewise.
21095         (vreinterpret_u16_u64): Likewise.
21096         (vreinterpret_u16_p8): Likewise.
21097         (vreinterpret_u16_p16): Likewise.
21098         (vreinterpretq_u16_s8): Likewise.
21099         (vreinterpretq_u16_s16): Likewise.
21100         (vreinterpretq_u16_s32): Likewise.
21101         (vreinterpretq_u16_s64): Likewise.
21102         (vreinterpretq_u16_f32): Likewise.
21103         (vreinterpretq_u16_u8): Likewise.
21104         (vreinterpretq_u16_u32): Likewise.
21105         (vreinterpretq_u16_u64): Likewise.
21106         (vreinterpretq_u16_p8): Likewise.
21107         (vreinterpretq_u16_p16): Likewise.
21108         (vreinterpret_u32_s8): Likewise.
21109         (vreinterpret_u32_s16): Likewise.
21110         (vreinterpret_u32_s32): Likewise.
21111         (vreinterpret_u32_s64): Likewise.
21112         (vreinterpret_u32_f32): Likewise.
21113         (vreinterpret_u32_u8): Likewise.
21114         (vreinterpret_u32_u16): Likewise.
21115         (vreinterpret_u32_u64): Likewise.
21116         (vreinterpret_u32_p8): Likewise.
21117         (vreinterpret_u32_p16): Likewise.
21118         (vreinterpretq_u32_s8): Likewise.
21119         (vreinterpretq_u32_s16): Likewise.
21120         (vreinterpretq_u32_s32): Likewise.
21121         (vreinterpretq_u32_s64): Likewise.
21122         (vreinterpretq_u32_f32): Likewise.
21123         (vreinterpretq_u32_u8): Likewise.
21124         (vreinterpretq_u32_u16): Likewise.
21125         (vreinterpretq_u32_u64): Likewise.
21126         (vreinterpretq_u32_p8): Likewise.
21127         (vreinterpretq_u32_p16): Likewise.
21129 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21131         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
21132         Pattern extended.
21133         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
21134         (sqabs): Likewise.
21135         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
21136         (vqnegd_s64): Likewise.
21137         (vqabs_s64): Likewise.
21138         (vqabsd_s64): Likewise.
21140 2014-04-22  Richard Henderson  <rth@redhat.com>
21142         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
21143         computation to the top of the loop.
21145 2014-04-22  Renlin  <renlin.li@arm.com>
21146             Jiong Wang  <jiong.wang@arm.com>
21148         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
21149         * config/aarch64/aarch64.c (aarch64_layout_frame)
21150         (aarch64_initial_elimination_offset): Likewise.
21152 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21154         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
21155         Fix indentation.
21157 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
21159         * machmode.h (bitwise_mode_for_mode): Declare.
21160         * stor-layout.h (bitwise_type_for_mode): Likewise.
21161         * stor-layout.c (bitwise_mode_for_mode): New function.
21162         (bitwise_type_for_mode): Likewise.
21163         * builtins.c (fold_builtin_memory_op): Use it instead of
21164         int_mode_for_mode and build_nonstandard_integer_type.
21166 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21168         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
21169         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
21170         (*-*-solaris2*): Simplify.
21171         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
21172         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
21173         *-*-solaris2.9* handling.
21175         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
21176         as bug.
21177         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
21178         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
21179         handling, simplify.
21180         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
21181         * configure: Regenerate.
21183         * config/i386/sol2-9.h: Remove.
21185         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
21186         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
21187         Remove Solaris 9 references.
21189 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
21191         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
21192         (floatuns<GPI:mode><GPF:mode>2): Remove.
21193         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
21194         and floatuns conversions.
21195         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
21196         and floatuns conversions.
21197         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
21198         (w1,w2): New mode attributes for inequal width conversions.
21200 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
21202         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
21203         the output asm format.
21205 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
21207         * config/aarch64/aarch64-simd.md
21208         (aarch64_cm<optab>di): Always split.
21209         (*aarch64_cm<optab>di): New.
21210         (aarch64_cmtstdi): Always split.
21211         (*aarch64_cmtstdi): New.
21213 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
21215         PR tree-optimization/60823
21216         * omp-low.c (ipa_simd_modify_function_body): Go through
21217         all SSA_NAMEs and for those refering to vector arguments
21218         which are going to be replaced adjust SSA_NAME_VAR and,
21219         if it is a default definition, change it into a non-default
21220         definition assigned at the beginning of function from new_decl.
21221         (ipa_simd_modify_stmt_ops): Rewritten.
21222         * tree-dfa.c (set_ssa_default_def): When removing default def,
21223         check for NULL loc instead of NULL *loc.
21225 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21227         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
21228         restrictions on core registers for DImode values in Thumb2.
21230 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
21232         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
21233         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
21235 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
21237         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
21238         (*iordi_notzesidi_di): Likewise.
21239         (*iordi_notsesidi_di): Likewise.
21241 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
21243         * config/arm/arm-protos.h (tune_params): New struct members.
21244         * config/arm/arm.c: Initialise tune_params per processor.
21245         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
21246         for speed, based on new tune_params.
21248 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21250         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
21251         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
21252         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
21253         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
21254         * config/aarch64/arm_neon.h (vrnd_f64): Added.
21255         (vrnda_f64): Likewise.
21256         (vrndi_f64): Likewise.
21257         (vrndm_f64): Likewise.
21258         (vrndn_f64): Likewise.
21259         (vrndp_f64): Likewise.
21260         (vrndx_f64): Likewise.
21262 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21264         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
21265         GET_MODE_SIZE argument is enum machine_mode.
21267 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
21269         PR target/60910
21270         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
21271         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
21273 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
21275         PR middle-end/60281
21276         * asan.c (asan_emit_stack_protection): Force the base to align to
21277         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
21278         appropriate bits if STRICT_ALIGNMENT.
21279         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
21280         when asan is on.
21281         (expand_used_vars): Leave a space in the stack frame for alignment
21282         if STRICT_ALIGNMENT.
21284 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
21286         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
21287         than a gimple.
21288         (gimple_store_p): Likewise.
21289         (gimple_assign_load_p): Likewise.
21290         (gimple_assign_cast_p): Likewise.
21291         (gimple_clobber_p): Likewise.
21293         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
21294         rather than a gimple.
21295         (gimple_assign_cast_p): Likewise.
21297 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21299         PR target/60735
21300         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
21301         If mode is DDmode and TARGET_E500_DOUBLE allow move.
21303         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
21304         more debug information for E500 if -mdebug=reg.
21306 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
21308         PR target/60909
21309         * config/i386/i386.c (ix86_expand_builtin)
21310         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
21311         register for target RTX.
21312         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
21314 2014-04-18  Cong Hou  <congh@google.com>
21316         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
21317         the widen-mult pattern by handling two operands with different sizes,
21318         and operands whose size is smaller than half of the result type.
21320 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
21322         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
21323         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
21324         (do_estimate_edge_time): Compute it.
21325         * ipa-inline.c (want_inline_small_function_p): Bypass
21326         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
21328 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
21330         * ipa-inline.c (spec_rem): New static variable.
21331         (dump_overall_stats): New function.
21332         (dump_inline_stats): New function.
21334 2014-04-18  Richard Henderson  <rth@redhat.com>
21336         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
21337         to GET_MODE_SIZE, not a reg_class_t.
21339 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21341         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
21342         (vsx_xxmrglw_<mode>): Likewise.
21344 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
21346         PR target/60876
21347         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
21348         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
21349         (rs6000_init_hard_regno_mode_ok): Likewise.
21351 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
21353         * ipa-inline.c (inline_small_functions): Account only non-cold
21354         functions.
21355         * doc/invoke.texi (inline-unit-growth): Update documentation.
21357 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
21359         * config/rs6000/rs6000.md (addti3, subti3): New.
21361 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
21363         PR target/60863
21364         * config/i386/i386.c (ix86_expand_clear): Remove outdated
21365         comment.  Check optimize_insn_for_size_p instead of
21366         optimize_insn_for_speed_p.
21368 2014-04-17  Martin Jambor  <mjambor@suse.cz>
21370         * gimple-iterator.c (gsi_start_edge): New function.
21371         * gimple-iterator.h (gsi_start_edge): Declare.
21372         * tree-sra.c (single_non_eh_succ): New function.
21373         (disqualify_ops_if_throwing_stmt): Renamed to
21374         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
21375         having one non-EH successor BB.
21376         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
21377         generate loads into replacements.
21378         (sra_modify_assign): Likewise and and also use the simple path for
21379         such statements.
21380         (sra_modify_function_body): Commit statements on edges.
21382 2014-04-17  Richard Biener  <rguenther@suse.de>
21384         PR middle-end/60849
21385         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
21386         comparison results and add clarifying comment.
21388 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
21390         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
21391         (blank_mode): Initialize it.
21392         (emit_mode_size_inline, emit_mode_nunits_inline,
21393         emit_mode_inner_inline): New functions.
21394         (emit_insn_modes_h): Call them and surround their output with
21395         #if GCC_VERSION >= 4001 ... #endif.
21396         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
21397         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
21398         mode_* arrays if the argument is __builtin_constant_p.
21399         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
21400         is enum machine_mode.
21402 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21404         * passes.c (opt_pass::execute): Adjust.
21405         (pass_manager::execute_pass_mode_switching): Likewise.
21406         (early_local_passes::execute): Likewise.
21407         (execute_one_pass): Pass cfun to the pass's execute method.
21408         * tree-pass.h (opt_pass::execute): Add function * argument.
21409         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21410         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21411         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21412         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21413         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21414         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
21415         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
21416         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21417         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21418         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
21419         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
21420         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
21421         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
21422         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
21423         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21424         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21425         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21426         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
21427         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
21428         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21429         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21430         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21431         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21432         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21433         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21434         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21435         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21436         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21437         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21438         Adjust.
21440 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21442         * passes.c (opt_pass::gate): Take function * argument.
21443         (gate_all_early_local_passes): Merge into
21444         (early_local_passes::gate): this.
21445         (gate_all_early_optimizations): Merge into
21446         (all_early_optimizations::gate): this.
21447         (gate_all_optimizations): Mege into
21448         (all_optimizations::gate): this.
21449         (gate_all_optimizations_g): Merge into
21450         (all_optimizations_g::gate): this.
21451         (gate_rest_of_compilation): Mege into
21452         (rest_of_compilation::gate): this.
21453         (gate_postreload): Merge into
21454         (postreload::gate): this.
21455         (dump_one_pass): Pass cfun to the pass's gate method.
21456         (execute_ipa_summary_passes): Likewise.
21457         (execute_one_pass): Likewise.
21458         (ipa_write_summaries_2): Likewise.
21459         (ipa_write_optimization_summaries_1): Likewise.
21460         (ipa_read_summaries_1): Likewise.
21461         (ipa_read_optimization_summaries_1): Likewise.
21462         (execute_ipa_stmt_fixups): Likewise.
21463         * tree-pass.h (opt_pass::gate): Add function * argument.
21464         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
21465         combine-stack-adj.c, combine.c, compare-elim.c,
21466         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21467         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
21468         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
21469         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
21470         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21471         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21472         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21473         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
21474         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
21475         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
21476         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21477         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21478         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
21479         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21480         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21481         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21482         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21483         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21484         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21485         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21486         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21487         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21488         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
21489         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
21490         var-tracking.c, vtable-verify.c, web.c: Adjust.
21492 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21494         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
21495         * configure: Regenerate.
21497 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21499         * passes.c (dump_one_pass): don't check pass->has_gate.
21500         (execute_ipa_summary_passes): Likewise.
21501         (execute_one_pass): Likewise.
21502         (ipa_write_summaries_2): Likewise.
21503         (ipa_write_optimization_summaries_1): Likewise.
21504         (ipa_read_optimization_summaries_1): Likewise.
21505         (execute_ipa_stmt_fixups): Likewise.
21506         * tree-pass.h (pass_data::has_gate): Remove.
21507         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21508         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21509         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21510         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21511         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21512         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
21513         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
21514         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
21515         gimple-low.c, gimple-ssa-isolate-paths.c,
21516         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
21517         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
21518         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21519         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
21520         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
21521         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
21522         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
21523         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
21524         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
21525         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21526         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21527         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21528         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21529         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21530         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21531         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21532         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21533         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21534         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21535         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21536         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21537         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21538         Adjust.
21540 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21542         * pass_manager.h (pass_manager::register_dump_files_1): Remove
21543         declaration.
21544         * passes.c (pass_manager::register_dump_files_1): Merge into
21545         (pass_manager::register_dump_files): this, and remove its handling of
21546         properties since the pass always has the properties anyway.
21547         (pass_manager::pass_manager): Adjust.
21549 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21551         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
21552         * passes.c (pass_manager::register_dump_files_1): Remove dead code
21553         dealing with properties.
21554         (pass_manager::register_dump_files): Adjust.
21556 2014-03-20  Mark Wielaard  <mjw@redhat.com>
21558         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
21559         then represent the bound as normal constant value.
21561 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
21563         PR target/60847
21564         Forward port from 4.8 branch
21565         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
21567         * config/i386/bmiintrin.h (_blsi_u32): New.
21568         (_blsi_u64): Ditto.
21569         (_blsr_u32): Ditto.
21570         (_blsr_u64): Ditto.
21571         (_blsmsk_u32): Ditto.
21572         (_blsmsk_u64): Ditto.
21573         (_tzcnt_u32): Ditto.
21574         (_tzcnt_u64): Ditto.
21576 2014-04-17  Kito Cheng  <kito@0xlab.org>
21578         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
21580 2014-04-17  Richard Biener  <rguenther@suse.de>
21582         PR middle-end/60849
21583         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
21584         boolean results for comparisons.
21586 2014-04-17  Richard Biener  <rguenther@suse.de>
21588         PR tree-optimization/60836
21589         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
21590         initial PHI args to be gimple values.
21592 2014-04-17  Richard Biener  <rguenther@suse.de>
21594         PR tree-optimization/60841
21595         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
21596         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
21597         of stmts to SLP build.
21598         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
21599         (vect_analyze_slp): Likewise.
21600         (vect_analyze_slp_instance): Likewise.
21601         (vect_build_slp_tree): Limit overall SLP tree growth.
21602         * tree-vectorizer.h (vect_analyze_data_refs,
21603         vect_analyze_slp): Adjust prototypes.
21605 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
21607         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
21608         Silvermont.
21610 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
21612         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
21613         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
21614         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
21615         for TARGET_SLOW_PSHUFB
21617 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
21619         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
21620         * config/i386/i386.c (intel_cost): Ditto.
21622 2014-04-17  Joey Ye  <joey.ye@arm.com>
21624         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
21626 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
21628         * opts.c (common_handle_option): Disable -fipa-reference coorectly
21629         with -fuse-profile.
21631 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
21633         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
21634         (type_all_derivations_known_p): New predicate.
21635         (type_all_ctors_visible_p): New predicate.
21636         (type_possibly_instantiated_p): New predicate.
21637         (get_odr_type): Compute all_derivations_known.
21638         (dump_odr_type): Dump the flag.
21639         (maybe_record_type): Cleanup.
21640         (record_target_from_binfo): Add bases_to_consider array;
21641         record bases for types w/o instances and skip CXX destructor.
21642         (possible_polymorphic_call_targets_1): Add bases_to_consider
21643         and consider_construction parameters; check if type may have instance.
21644         (get_polymorphic_call_info): Set maybe_in_construction to true
21645         when we know nothing.
21646         (record_targets_from_bases): Skip CXX destructors; they are
21647         never called for types in construction.
21648         (possible_polymorphic_call_targets): Do not record target when
21649         type may not have instance.
21651 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
21653         PR ipa/60854
21654         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
21655         external aliases alive, too.
21657 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
21659         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
21660         definition.
21662 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
21664         * final.c (compute_alignments): Do not apply loop alignment to a block
21665         falling through to the exit.
21667 2014-04-16  Catherine Moore  <clm@codesourcery.com>
21669         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
21670         Adjust constraints for microMIPS store patterns.
21672 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
21674         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
21676 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
21678         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
21679         (append_use): Run at -O0.
21680         (append_vdef): Likewise.
21681         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
21682         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
21684 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
21686         PR tree-optimization/60844
21687         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
21688         (propagate_op_to_single_use, remove_visited_stmt_chain,
21689         linearize_expr, repropagate_negates, reassociate_bb): Use it
21690         instead of gsi_remove.
21692 2014-04-16  Martin Jambor  <mjambor@suse.cz>
21694         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
21695         ipa_transforms_to_apply.
21696         (cgraph_function_versioning): Assert that old_node has empty
21697         ipa_transforms_to_apply.
21698         * trans-mem.c (ipa_tm_create_version): Likewise.
21699         * tree-inline.c (tree_function_versioning): Do not duplicate
21700         ipa_transforms_to_apply.
21702 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21704         PR target/60817
21705         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
21706         x86_64-*-* cases.
21707         Pass necessary as flags on 64-bit Solaris/x86.
21708         Use lowercase relocs for x86_64-*-*.
21709         * configure: Regenerate.
21711 2014-04-15  Jan Hubicka  <jh@suse.cz>
21713         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
21714         (maybe_record_node, likely_target_p): Use it.
21716 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21718         PR target/60839
21719         Revert following patch
21721         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21723         PR target/60735
21724         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21725         software floating point or no floating point registers, do not
21726         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
21727         in GPRs that occurs after we tested for GPRs that would never be
21728         true.
21730         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21731         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21732         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
21733         specifically allow DDmode, since that does not use the SPE SIMD
21734         instructions.
21736 2014-03-21  Mark Wielaard  <mjw@redhat.com>
21738         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
21739         as unsigned or int depending on type and value used.
21741 2014-04-15  Richard Biener  <rguenther@suse.de>
21743         PR rtl-optimization/56965
21744         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
21745         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
21746         ... here.
21747         * alias.c (true_dependence_1): Do not call
21748         nonoverlapping_component_refs_p.
21749         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
21750         nonoverlapping_component_refs_p.
21751         (indirect_refs_may_alias_p): Likewise.
21753 2014-04-15  Teresa Johnson  <tejohnson@google.com>
21755         * cfg.c (dump_bb_info): Fix flags check.
21756         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
21758 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21760         PR rtl-optimization/60663
21761         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
21762         avoid 0 cost.
21764 2014-04-15  Richard Biener  <rguenther@suse.de>
21766         * lto-streamer.h (LTO_major_version): Bump to 4.
21768 2014-04-15  Richard Biener  <rguenther@suse.de>
21770         * common.opt (lto_partition_model): New enum.
21771         (flto-partition=): Merge separate options with a single with argument,
21772         add -flto-partition=one support.
21773         * flag-types.h (enum lto_partition_model): Declare.
21774         * opts.c (finish_options): Remove duplicate -flto-partition=
21775         option check.
21776         * lto-wrapper.c (run_gcc): Adjust.
21778 2014-04-15  Richard Biener  <rguenther@suse.de>
21780         * alias.c (ncr_compar): New function.
21781         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
21783 2014-04-15  Richard Biener  <rguenther@suse.de>
21785         * alias.c (record_component_aliases): Do not walk BINFOs.
21787 2014-04-15  Richard Biener  <rguenther@suse.de>
21789         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21790         Add struct function argument and adjust.
21791         (find_func_aliases_for_call): Likewise.
21792         (find_func_aliases): Likewise.
21793         (find_func_clobbers): Likewise.
21794         (intra_create_variable_infos): Likewise.
21795         (compute_points_to_sets): Likewise.
21796         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
21798 2014-04-15  Richard Biener  <rguenther@suse.de>
21800         * tree.c (iterative_hash_expr): Use enum tree_code_class
21801         to store TREE_CODE_CLASS.
21802         (tree_block): Likewise.
21803         (tree_set_block): Likewise.
21804         * tree.h (fold_build_pointer_plus_loc): Use
21805         convert_to_ptrofftype_loc.
21807 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
21809         PR plugins/59335
21810         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
21811         added in 4.9.
21813 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21815         * cfgloop.h (struct loop): Move force_vectorize down.
21816         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
21817         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
21818         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
21819         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
21820         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
21821         * tree-core.h (enum annot_expr_kind): Add new kind values.
21822         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
21823         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
21824         kinds.
21825         * tree.def (ANNOTATE_EXPR): Tweak comment.
21827 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
21829         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
21830         cxa_pure_virtual).
21832 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
21834         * tree.h (TYPE_IDENTIFIER): Declare.
21835         * tree.c (subrange_type_for_debug_p): Use it.
21836         * godump.c (go_format_type): Likewise.
21837         * dwarf2out.c (is_cxx_auto, modified_type_die,
21838         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
21839         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
21841 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
21843         PR lto/60820
21844         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
21846 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
21848         * config/i386/i386.c (examine_argument): Return bool.  Return true if
21849         parameter should be passed in memory.
21850         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
21851         (construct_container): Update calls to examine_argument.
21852         (function_arg_advance_64): Ditto.
21853         (return_in_memory_32): Merge with ix86_return_in_memory.
21854         (return_in_memory_64): Ditto.
21855         (return_in_memory_ms_64): Ditto.
21857 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
21859         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
21860         * coverage.c (coverage_compute_profile_id): Handle externally visible
21861         symbols.
21863 2014-04-14  Martin Jambor  <mjambor@suse.cz>
21865         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
21866         DECL_DISREGARD_INLINE_LIMITS functions.
21868 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
21870         PR target/60827
21871         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
21873 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
21875         PR target/60827
21876         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
21877         optimize_insn_for_speed_p instead of
21878         optimize_function_for_speed_p.
21880 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
21882         * doc/invoke.texi (free): Document AArch64.
21884 2014-04-14  Richard Biener  <rguenther@suse.de>
21886         PR tree-optimization/60042
21887         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
21888         (insert_into_preds_of_block): Do not prevent PHI insertion
21889         for REFERENCE exprs here ...
21890         (eliminate_dom_walker::before_dom_children): ... but prevent
21891         their use here under similar conditions when applied to the
21892         IL after PRE optimizations.
21894 2014-04-14  Richard Biener  <rguenther@suse.de>
21896         * passes.def: Move early points-to after early SRA.
21898 2014-04-14  Richard Biener  <rguenther@suse.de>
21900         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
21901         check for which sign-changes we allow when forwarding
21902         a converted value into a switch.
21904 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
21906         * stor-layout.c (place_field): Finalize non-constant offset for the
21907         field, if any.
21909 2014-04-14  Richard Biener  <rguenther@suse.de>
21911         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
21912         as argument.
21913         (expand_switch_using_bit_tests_p): Likewise.
21914         (process_switch): Compute and pass on speed_p based on the
21915         switch stmt.
21916         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
21917         optimize_bb_for_speed_p.
21919 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
21921         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
21922         * function.h (struct function): Rename has_force_vect_loops into
21923         has_force_vectorize_loops.
21924         * lto-streamer-in.c (input_cfg): Adjust for renaming.
21925         (input_struct_function_base): Likewise.
21926         * lto-streamer-out.c (output_cfg): Likewise.
21927         (output_struct_function_base): Likewise.
21928         * omp-low.c (expand_omp_simd): Likewise.
21929         * tree-cfg.c (move_sese_region_to_fn): Likewise.
21930         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
21931         (version_loop_for_if_conversion): Likewise.
21932         (tree_if_conversion): Likewise.
21933         (main_tree_if_conversion): Likewise.
21934         (gate_tree_if_conversion): Likewise.
21935         * tree-inline.c (copy_loops): Likewise.
21936         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
21937         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
21938         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21939         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
21940         * tree-vectorizer.c (vectorize_loops): Likewise.
21941         * tree-vectorizer.h (unlimited_cost_model): Likewise.
21943 2014-04-14  Richard Biener  <rguenther@suse.de>
21945         PR lto/60720
21946         * lto-streamer-out.c (wrap_refs): New function.
21947         (lto_output): Wrap symbol references in global initializes in
21948         type-preserving MEM_REFs.
21950 2014-04-14  Christian Bruel  <christian.bruel@st.com>
21952         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
21954 2014-04-14  Christian Bruel  <christian.bruel@st.com>
21956         * config/sh/sh.md (setmemqi): New expand pattern.
21957         * config/sh/sh.h (CLEAR_RATIO): Define.
21958         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
21959         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
21961 2014-04-14  Richard Biener  <rguenther@suse.de>
21963         PR middle-end/55022
21964         * fold-const.c (negate_expr_p): Don't negate directional rounding
21965         division.
21966         (fold_negate_expr): Likewise.
21968 2014-04-14  Richard Biener  <rguenther@suse.de>
21970         PR tree-optimization/59817
21971         PR tree-optimization/60453
21972         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
21973         recursion to catch all CHRECs in the scalar evolution and restrict
21974         the predicate for the remains appropriately.
21976 2014-04-12  Catherine Moore  <clm@codesourcery.com>
21978         * config/mips/constraints.md: Add new register constraint "kb".
21979         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
21980         (*movhi_internal): Likewise.
21981         (*movqi_internal): Likewise.
21982         * config/mips/mips.h (M16_STORE_REGS): New register class.
21983         (REG_CLASS_NAMES): Add M16_STORE_REGS.
21984         (REG_CLASS_CONTENTS): Likewise.
21985         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
21987 2014-04-11  Tobias Burnus  <burnus@net-b.de>
21989         PR c/60194
21990         * doc/invoke.texi (-Wformat-signedness): Document it.
21991         (Wformat=2): Mention that this enables -Wformat-signedness.
21993 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
21995         * common/config/epiphany/epiphany-common.c
21996         (epiphany_option_optimization_table): Enable section anchors by
21997         default at -O1 or higher.
21998         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
21999         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
22000         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
22001         carries no extra cost.
22002         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
22003         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
22004         * config/epiphany/predicates.md (memclob_operand): New predicate.
22005         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
22006         Use memclob_operand predicate and X constraint for operand 3.
22008 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22010         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
22011         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
22012         its operands.
22014 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22016         PR rtl-optimization/60651
22017         * mode-switching.c (optimize_mode_switching): Make sure to emit
22018         sets of a lower numbered entity before sets of a higher numbered
22019         entity to a mode of the same or lower priority.
22020         When creating a seginfo for a basic block that starts with a code
22021         label, move the insertion point past the code label.
22022         (new_seginfo): Document and enforce requirement that
22023         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
22024         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
22025         * doc/tm.texi: Regenerate.
22027 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22029         PR target/60811
22030         * config/arc/arc.c (arc_save_restore): Fix assert typo.
22032 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
22034         * BASE-VER: Set to 4.10.0.
22036 2014-04-11  Tobias Burnus  <burnus@net-b.de>
22038         PR other/59055
22039         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
22040         * doc/gcc.texi (Service): Update description in the @menu
22041         * doc/invoke.texi (Option Summary): Remove misplaced and
22042         duplicated @menu.
22044 2014-04-11  Steve Ellcey  <sellcey@mips.com>
22045             Jakub Jelinek  <jakub@redhat.com>
22047         PR middle-end/60556
22048         * expr.c (convert_move): Use emit_store_flag_force instead of
22049         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
22050         argument to it.
22052 2014-04-11  Richard Biener  <rguenther@suse.de>
22054         PR middle-end/60797
22055         * varasm.c (assemble_alias): Avoid endless error reporting
22056         recursion by setting TREE_ASM_WRITTEN.
22058 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22060         * config/s390/s390.md: Add a splitter for NOT rtx.
22062 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
22064         PR rtl-optimization/60663
22065         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
22067 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
22068             Jakub Jelinek  <jakub@redhat.com>
22070         PR lto/60567
22071         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
22072         flag from decl_node to node.
22074 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22076         PR debug/60655
22077         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
22078         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
22079         ameliorating the cases where it can be.
22081 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
22083         Revert
22084         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
22086         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22087         (loadsync_<mode>): Change mode.
22088         (load_quadpti, store_quadpti): New.
22089         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22090         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22091         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
22093 2014-04-09  Cong Hou  <congh@google.com>
22095         PR testsuite/60773
22096         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
22097         documentation.
22099 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22101         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
22102         instead of vnor to exploit possible fusion opportunity in the
22103         future.
22104         (altivec_expand_vec_perm_const_le): Likewise.
22106 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
22108         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22109         (loadsync_<mode>): Change mode.
22110         (load_quadpti, store_quadpti): New.
22111         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22112         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22114 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
22116         PR target/60763
22117         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
22118         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
22119         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
22121 2014-04-08  Richard Biener  <rguenther@suse.de>
22123         PR middle-end/60706
22124         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
22125         a 64bit widest int print double-int similar to on HWI64 hosts.
22127 2014-04-08  Richard Biener  <rguenther@suse.de>
22129         PR tree-optimization/60785
22130         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
22131         default defs properly.
22133 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
22135         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
22136         (Weffc++): Likewise.
22138 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
22140         * ipa-devirt.c (maybe_record_node): When node is not recorded,
22141         set completep to false rather than true.
22143 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
22145         PR target/60504
22146         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
22147         ARM_TARGET2_DWARF_FORMAT.
22149 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
22151         PR target/60609
22152         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
22153         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
22154         ADDR_DIFF_VEC.
22156 2014-04-07  Richard Biener  <rguenther@suse.de>
22158         PR tree-optimization/60766
22159         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
22160         (may_eliminate_iv): Convert cand_value_at result to desired type.
22162 2014-04-07  Jason Merrill  <jason@redhat.com>
22164         PR c++/60731
22165         * common.opt (-fno-gnu-unique): Add.
22166         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
22168 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22170         * haifa-sched.c: Fix outdated function reference and minor
22171         grammar errors in introductory comment.
22173 2014-04-07  Richard Biener  <rguenther@suse.de>
22175         PR middle-end/60750
22176         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
22177         for noreturn calls.
22178         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
22180 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
22182         PR debug/55794
22183         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
22184         size accounting for thunks.
22185         (pa_asm_output_mi_thunk): Use final_start_function() and
22186         final_end_function() to output function start and end directives.
22188 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
22190         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
22191         device specific ISA/ feature information. Remove short_sp and
22192         errata_skip ds.  Add avr_device_specific_features enum to have device
22193         specific info.
22194         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
22195         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
22196         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
22197         updated device specific info.
22198         * config/avr/avr-mcus.def: Merge device specific details to
22199         dev_attribute field.
22200         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
22201         errata_skip.
22202         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
22203         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
22204         assembler if RMW isa supported by current device.
22205         * config/avr/genmultilib.awk: Update as device info structure changed.
22206         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
22208 2014-04-04  Cong Hou  <congh@google.com>
22210         PR tree-optimization/60656
22211         * tree-vect-stmts.c (supportable_widening_operation):
22212         Fix a bug that elements in a vector with vect_used_by_reduction
22213         property are incorrectly reordered when the operation on it is not
22214         consistant with the one in reduction operation.
22216 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
22218         PR rtl-optimization/60155
22219         * gcse.c (record_set_data): New function.
22220         (single_set_gcse): New function.
22221         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
22222         (hoist_code): Likewise.
22223         (get_pressure_class_and_nregs): Likewise.
22225 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
22227         * explow.c (probe_stack_range): Emit a final optimization blockage.
22229 2014-04-04  Anthony Green  <green@moxielogic.com>
22231         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
22232         typos.
22234 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
22236         PR ipa/59626
22237         * lto-cgraph.c (input_overwrite_node): Check that partitioning
22238         flags are set only during streaming.
22239         * ipa.c (process_references, walk_polymorphic_call_targets,
22240         symtab_remove_unreachable_nodes): Drop bodies of always inline
22241         after early inlining.
22242         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
22244 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
22245         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22247         PR debug/60655
22248         * dwarf2out.c (const_ok_for_output_1): Reject expressions
22249         containing a NOT.
22251 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22253         PR bootstrap/60743
22254         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
22255         duration.
22256         (cortex_a53_fdivd): Likewise.
22258 2014-04-04  Martin Jambor  <mjambor@suse.cz>
22260         PR ipa/60640
22261         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
22262         Adjust all callers.
22263         * cgraph.c (clone_of_p): Also return true if thunks match.
22264         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
22265         cgraph_function_or_thunk_node and an obsolete comment.
22266         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
22267         file.
22268         (build_function_decl_skip_args): Likewise.
22269         (set_new_clone_decl_and_node_flags): New function.
22270         (duplicate_thunk_for_node): Likewise.
22271         (redirect_edge_duplicating_thunks): Likewise.
22272         (cgraph_clone_node): New parameter args_to_skip, pass it to
22273         redirect_edge_duplicating_thunks which is called instead of
22274         cgraph_redirect_edge_callee.
22275         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
22276         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
22278 2014-04-04  Jeff Law  <law@redhat.com>
22280         PR target/60657
22281         * config/arm/predicates.md (const_int_I_operand): New predicate.
22282         (const_int_M_operand): Similarly.
22283         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
22284         const_int_operand.
22285         (insv_t2, extv_reg, extzv_t2): Likewise.
22286         (load_multiple_with_writeback): Similarly for const_int_I_operand.
22287         (pop_multiple_with_writeback_and_return): Likewise.
22288         (vfp_pop_multiple_with_writeback): Likewise
22290 2014-04-04  Richard Biener  <rguenther@suse.de>
22292         PR ipa/60746
22293         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
22294         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
22295         non-GIMPLE_LABELs.
22296         * gimplify.h (gimple_add_tmp_var_fn): Declare.
22297         * gimplify.c (gimple_add_tmp_var_fn): New function.
22298         * gimple-expr.h (create_tmp_reg_fn): Declare.
22299         * gimple-expr.c (create_tmp_reg_fn): New function.
22300         * gimple-low.c (record_vars_into): Don't change cfun.
22301         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
22302         code generation without cfun.
22304 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
22306         PR bootstrap/60719
22307         * Makefile.in (install-driver): Fix shell scripting.
22309 2014-04-03  Cong Hou  <congh@google.com>
22311         PR tree-optimization/60505
22312         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
22313         threshold of number of iterations below which no vectorization
22314         will be done.
22315         * tree-vect-loop.c (new_loop_vec_info):
22316         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
22317         * tree-vect-loop.c (vect_analyze_loop_operations):
22318         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
22319         * tree-vect-loop.c (vect_transform_loop):
22320         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
22321         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
22322         of iterations of the loop and see if we should build the epilogue.
22324 2014-04-03  Richard Biener  <rguenther@suse.de>
22326         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
22327         (streamer_tree_cache_create): Adjust.
22328         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
22329         to allow optional nodes array.
22330         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
22331         (streamer_tree_cache_append): Likewise.
22332         (streamer_tree_cache_create): Create nodes array optionally
22333         as specified by parameter.
22334         * lto-streamer-out.c (create_output_block): Avoid maintaining
22335         the node array in the writer cache.
22336         (DFS_write_tree): Remove assertion.
22337         (produce_asm_for_decls): Free the out decl state hash table early.
22338         * lto-streamer-in.c (lto_data_in_create): Adjust for
22339         streamer_tree_cache_create prototype change.
22341 2014-04-03  Richard Biener  <rguenther@suse.de>
22343         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
22344         set TREE_CHAIN to NULL_TREE.
22346 2014-04-03  Richard Biener  <rguenther@suse.de>
22348         PR tree-optimization/60740
22349         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
22350         over all GIMPLE_COND operands.
22352 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
22354         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
22355         (Weffc++): Remove Scott's numbering, merge lists and reference
22356         Wnon-virtual-dtor.
22358 2014-04-03  Nick Clifton  <nickc@redhat.com>
22360         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
22361         properly.
22363 2014-04-03  Martin Jambor  <mjambor@suse.cz>
22365         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
22366         mention gcc_unreachable before failing.
22367         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
22368         removed symbols.
22370 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
22372         PR ipa/60659
22373         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
22374         inconsistent code and instead mark the context inconsistent.
22375         (possible_polymorphic_call_targets): For inconsistent contexts
22376         return empty complete list.
22378 2014-04-02  Anthony Green  <green@moxielogic.com>
22380         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
22381         (extendqisi2, extendhisi2): Define.
22382         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
22383         (WCHAR_TYPE): Change to unsigned int.
22385 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22387         PR tree-optimization/60733
22388         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
22389         insertion point for PHI candidates to be the end of the feeding
22390         block for the PHI argument.
22392 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
22394         PR rtl-optimization/60650
22395         * lra-constraints.c (process_alt_operands): Decrease reject for
22396         earlyclobber matching.
22398 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22400         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
22402 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22404         * config/spu/spu.c (pad_bb): Do not crash when the last
22405         insn is CODE_FOR_blockage.
22407 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22409         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
22410         lies outside the target mode.
22412 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22414         PR target/60735
22415         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22416         software floating point or no floating point registers, do not
22417         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
22418         in GPRs that occurs after we tested for GPRs that would never be
22419         true.
22421         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22422         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22423         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
22424         specifically allow DDmode, since that does not use the SPE SIMD
22425         instructions.
22427 2014-04-02  Richard Biener  <rguenther@suse.de>
22429         PR middle-end/60729
22430         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
22431         MODE_INTs.  Properly use negv_optab.
22432         (expand_abs): Likewise.
22434 2014-04-02  Richard Biener  <rguenther@suse.de>
22436         PR bootstrap/60719
22437         * Makefile.in (install-driver): Guard extra installs with special
22438         names properly.
22440 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
22442         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22443         Document vec_vgbbd.
22445 2014-04-01  Richard Henderson  <rth@redhat.com>
22447         PR target/60704
22448         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
22449         alternative enabled before register allocation.
22451 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
22453         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
22454         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
22455         typo.
22456         (nios2_large_got_address): Remove unneeded 'sym' parameter.
22457         (nios2_got_address): Update nios2_large_got_address call site.
22458         (nios2_delegitimize_address): New function.
22459         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
22460         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
22461         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
22463 2014-04-01  Martin Husemann  <martin@duskware.de>
22465         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
22466         for -mabi=32.
22468 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
22470         PR rtl-optimization/60604
22471         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
22472         check from register_operand.
22473         (register_operand): Redefine in terms of general_operand.
22474         (nonmemory_operand): Use register_operand for the non-constant cases.
22476 2014-04-01  Richard Biener  <rguenther@suse.de>
22478         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
22480 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22482         * doc/invoke.texi (mapp-regs): Clarify.
22484 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
22486         * config/i386/avx512fintrin.h (__v32hi): Define type.
22487         (__v64qi): Likewise.
22488         (_mm512_set1_epi8): Define.
22489         (_mm512_set1_epi16): Define.
22490         (_mm512_set4_epi32): Define.
22491         (_mm512_set4_epi64): Define.
22492         (_mm512_set4_pd): Define.
22493         (_mm512_set4_ps): Define.
22494         (_mm512_setr4_epi64): Define.
22495         (_mm512_setr4_epi32): Define.
22496         (_mm512_setr4_pd): Define.
22497         (_mm512_setr4_ps): Define.
22498         (_mm512_setzero_epi32): Define.
22500 2014-03-31  Martin Jambor  <mjambor@suse.cz>
22502         PR middle-end/60647
22503         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
22504         callsite_arguments_match_p.  Updated all callers.  Also check types of
22505         corresponding formal parameters and actual arguments.
22506         (not_all_callers_have_enough_arguments_p) Renamed to
22507         some_callers_have_mismatched_arguments_p.
22509 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
22511         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
22513 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
22515         PR target/60034
22516         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
22517         section anchor.
22519 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
22521         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
22522         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
22523         Split out
22524         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
22525         Use FMAMODE_NOVF512 mode iterator.
22526         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
22527         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
22528         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
22529         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
22530         Split out
22531         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
22532         Use VF_128_256 mode iterator.
22533         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
22534         Ditto.
22536 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
22538         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
22539         static chain if needed.
22541 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
22543         PR target/60697
22544         * lra-constraints.c (index_part_to_reg): New.
22545         (process_address): Use it.
22547 2014-03-27  Jeff Law  <law@redhat.com>
22548             Jakub Jelinek  <jakub@redhat.com>
22550         PR target/60648
22551         * expr.c (do_tablejump): Use simplify_gen_binary rather than
22552         gen_rtx_{PLUS,MULT} to build up the address expression.
22554         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
22555         creating non-canonical RTL.
22557 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
22559         PR ipa/60243
22560         * ipa-inline.c (want_inline_small_function_p): Short circuit large
22561         functions; reorganize to make cheap checks first.
22562         (inline_small_functions): Do not estimate growth when dumping;
22563         it is expensive.
22564         * ipa-inline.h (inline_summary): Add min_size.
22565         (growth_likely_positive): New function.
22566         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
22567         (set_cond_stmt_execution_predicate): Cleanup.
22568         (estimate_edge_size_and_time): Compute min_size.
22569         (estimate_calls_size_and_time): Likewise.
22570         (estimate_node_size_and_time): Likewise.
22571         (inline_update_overall_summary): Update min_size.
22572         (do_estimate_edge_time): Likewise.
22573         (do_estimate_edge_size): Update.
22574         (do_estimate_edge_hints): Update.
22575         (growth_likely_positive): New function.
22577 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
22579         PR target/60693
22580         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
22581         also if addr has VOIDmode.
22583 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22585         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
22586         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
22587         Declare extern.
22588         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
22589         instructions as well as AdvancedSIMD loads.
22591 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22593         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
22594         Use crypto_aese type.
22595         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
22596         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
22597         crypto_aese, crypto_aesmc.  Move to types.md.
22598         * config/arm/types.md (crypto_aes): Split into crypto_aese,
22599         crypto_aesmc.
22600         * config/arm/iterators.md (crypto_type): Likewise.
22602 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
22604         * cgraph.c: Include expr.h and tree-dfa.h.
22605         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
22606         remove LHS.
22608 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
22610         PR target/60675
22611         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
22612         regs from checking multi-reg pseudos.
22614 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22616         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
22618 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22620         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
22621         if it would clobber the stack pointer, even temporarily.
22623 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
22625         * mode-switching.c: Make small adjustments to the top comment.
22627 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
22629         * config/rs6000/constraints.md (wD constraint): New constraint to
22630         match the constant integer to get the top DImode/DFmode out of a
22631         vector in a VSX register.
22633         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
22634         match the constant integer to get the top DImode/DFmode out of a
22635         vector in a VSX register.
22637         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
22638         for ISA 2.07.
22640         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22641         vbpermq builtins.
22643         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
22644         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
22646         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
22647         Optimize vec_extract of 64-bit values, where the value being
22648         extracted is in the top word, where we can use scalar
22649         instructions.  Add direct move and store support.  Combine the big
22650         endian/little endian vector select load support into a single insn.
22651         (vsx_extract_<mode>_internal1): Likewise.
22652         (vsx_extract_<mode>_internal2): Likewise.
22653         (vsx_extract_<mode>_load): Likewise.
22654         (vsx_extract_<mode>_store): Likewise.
22655         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
22656         combined into vsx_extract_<mode>_load.
22657         (vsx_extract_<mode>_one_le): Likewise.
22659         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
22660         define the top 64-bit vector element.
22662         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
22663         constraint.
22665         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22666         Document vec_vbpermq builtin.
22668         PR target/60672
22669         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
22670         enable use of xxsldwi and xxpermdi builtin functions.
22671         (vec_xxpermdi): Likewise.
22673         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22674         Document use of vec_xxsldwi and vec_xxpermdi builtins.
22676 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
22678         PR rtl-optimization/60650
22679         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
22680         first_p.  Use it.
22681         (find_spills_for): New.
22682         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
22683         Spill all pseudos on the second iteration.
22685 2014-03-27  Marek Polacek  <polacek@redhat.com>
22687         PR c/50347
22688         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
22689         types.
22691 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22693         * config/s390/s390.c (s390_can_use_return_insn): Check for
22694         call-saved FPRs on 31 bit.
22696 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
22698         PR middle-end/60682
22699         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
22700         if they need regimplification, just drop them instead of
22701         calling gimple_regimplify_operands on them.
22703 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22705         PR target/60580
22706         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
22707         (aarch64_frame_pointer_required): Adjust logic.
22708         (aarch64_can_eliminate): Adjust logic.
22709         (aarch64_override_options_after_change): Adjust logic.
22711 2014-03-27  Dehao Chen  <dehao@google.com>
22713         * ipa-inline.c (early_inliner): Update node's inline info.
22715 2014-03-26  Dehao Chen  <dehao@google.com>
22717         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
22718         compiler inserted conditional jumps for NAN float check.
22720 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
22722         * ubsan.h (ubsan_create_data): Change second argument's type
22723         to const location_t *.
22724         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
22725         _("<unknown>").
22726         (ubsan_create_data): Change second argument to const location_t *PLOC.
22727         Create Loc field whenever PLOC is non-NULL.
22728         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
22729         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
22730         callers.
22732         PR other/59545
22733         * real.c (real_to_integer2): Change type of low to UHWI.
22735 2014-03-26  Tobias Burnus  <burnus@net-b.de>
22737         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
22738         (CILK_SELF_SPECS): New define.
22739         (driver_self_specs): Use it.
22741 2014-03-26  Richard Biener  <rguenther@suse.de>
22743         * tree-pretty-print.c (percent_K_format): Implement special
22744         case for LTO and its stripped down BLOCK tree.
22746 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
22748         PR sanitizer/60636
22749         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
22751         * tree-vrp.c (simplify_internal_call_using_ranges): If only
22752         one range is range_int_cst_p, but not both, at least optimize
22753         addition/subtraction of 0 and multiplication by 0 or 1.
22754         * gimple-fold.c (gimple_fold_call): Fold
22755         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
22756         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
22757         INTEGER_CSTs, try to fold at least x * 0 and y - y.
22759 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
22761         PR rtl-optimization/60452
22762         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
22763         <case REG>: Return 1 for invalid offsets from the frame pointer.
22765 2014-03-26  Marek Polacek  <polacek@redhat.com>
22767         PR c/37428
22768         * doc/extend.texi (C Extensions): Mention variable-length arrays in
22769         a structure/union.
22771 2014-03-26  Marek Polacek  <polacek@redhat.com>
22773         PR c/39525
22774         * doc/extend.texi (Designated Inits): Describe what happens to omitted
22775         field members.
22777 2014-03-26  Marek Polacek  <polacek@redhat.com>
22779         PR other/59545
22780         * ira-color.c (update_conflict_hard_regno_costs): Perform the
22781         multiplication in unsigned type.
22783 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
22785         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
22787 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
22789         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
22791 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
22793         PR ipa/60315
22794         * cif-code.def (UNREACHABLE) New code.
22795         * ipa-inline.c (inline_small_functions): Skip edges to
22796         __builtlin_unreachable.
22797         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
22798         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
22799         predicate to __bulitin_unreachable.
22800         (set_cond_stmt_execution_predicate): Fix issue when
22801         invert_tree_comparison returns ERROR_MARK.
22802         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
22803         propagate to inline clones.
22804         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
22805         to unreachable.
22806         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
22807         * cgraphclones.c (cgraph_clone_node): If call destination is already
22808         ureachable, do not redirect it back.
22809         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
22810         unreachable.
22812 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
22814         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
22815         Do not modify inline clones.
22817 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
22819         * config/i386/i386.md (general_sext_operand): New mode attr.
22820         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
22821         don't generate (sign_extend (const_int)).
22822         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
22823         operands[2].  Use We constraint instead of <i> and
22824         <general_sext_operand> predicate instead of <general_operand>.
22825         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
22826         * config/i386/constraints.md (We): New constraint.
22827         * config/i386/predicates.md (x86_64_sext_operand,
22828         sext_operand): New predicates.
22830 2014-03-25  Martin Jambor  <mjambor@suse.cz>
22832         PR ipa/60600
22833         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
22834         inconsistent devirtualizations to __builtin_unreachable.
22836 2014-03-25  Marek Polacek  <polacek@redhat.com>
22838         PR c/35449
22839         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
22841 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
22843         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
22844         order of elements for big-endian.
22846 2014-03-25  Richard Biener  <rguenther@suse.de>
22848         PR middle-end/60635
22849         * gimplify-me.c (gimple_regimplify_operands): Update the
22850         re-gimplifed stmt.
22852 2014-03-25  Martin Jambor  <mjambor@suse.cz>
22854         PR ipa/59176
22855         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
22856         (lto_output_varpool_node): Likewise.
22857         (input_overwrite_node): Likewise.
22858         (input_varpool_node): Likewise.
22860 2014-03-25  Richard Biener  <rguenther@suse.de>
22862         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
22863         (run_gcc): Likewise.
22865 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
22867         * combine.c (simplify_compare_const): Add MODE argument.
22868         Handle mode_width 0 as very large mode_width.
22869         (try_combine, simplify_comparison): Adjust callers.
22871         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
22872         type to avoid signed integer overflow.
22873         * explow.c (plus_constant): Likewise.
22875 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22877         * doc/generic.texi: Correct typos.
22879 2014-03-24  Tobias Burnus  <burnus@net-b.de>
22881         * doc/invoke.texi (-flto): Expand section about
22882         using static libraries with LTO.
22884 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22886         PR rtl-optimization/60501
22887         * optabs.def (addptr3_optab): New optab.
22888         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
22889         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
22890         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
22892         * lra.c (emit_add3_insn): Use the addptr pattern if available.
22894         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
22896 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
22898         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
22899         _mm512_set1_pd.
22901         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
22902         (_mm256_undefined_ps): Define.
22903         (_mm256_undefined_pd): Define.
22904         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
22905         (_mm_undefined_pd): Define.
22906         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
22907         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
22908         (_mm512_undefined_ps): Define.
22909         (_mm512_undefined_pd): Define.
22910         Use _mm*_undefined_*.
22911         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
22913 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
22915         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
22916         (lshr_simd): DI mode added.
22917         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
22918         (aarch64_ushr_simddi): Likewise.
22919         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
22920         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
22921         (vshrd_n_u64): Likewise.
22923 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22925         * Makefile.in (s-macro_list): Depend on cc1.
22927 2014-03-23  Teresa Johnson  <tejohnson@google.com>
22929         * ipa-utils.c (ipa_print_order): Use specified dump file.
22931 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
22933         PR rtl-optimization/60601
22934         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
22936         * gcc.c (eval_spec_function): Initialize save_growing_value.
22938 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
22940         PR sanitizer/60613
22941         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
22942         code == MINUS_EXPR, never swap op0 with op1.
22944         * toplev.c (init_local_tick): Avoid signed integer multiplication
22945         overflow.
22946         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
22947         shift by first operand's bitsize.
22949 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
22951         PR target/60610
22952         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
22953         redefine to 1 or 0.
22954         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
22955         TARGET_ISA_64BIT_P(x).
22957 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22959         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
22960         pattern for vector nor instead of subtract from splat(-1).
22961         (altivec_expand_vec_perm_const_le): Likewise.
22963 2014-03-21  Richard Henderson  <rth@twiddle.net>
22965         PR target/60598
22966         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
22967         related insns after epilogue_completed.
22969 2014-03-21  Martin Jambor  <mjambor@suse.cz>
22971         PR ipa/59176
22972         * cgraph.h (symtab_node): New flag body_removed.
22973         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
22974         when removing bodies.
22975         * symtab.c (dump_symtab_base): Dump body_removed flag.
22976         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
22977         had their bodies removed.
22979 2014-03-21  Martin Jambor  <mjambor@suse.cz>
22981         PR ipa/60419
22982         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
22983         in the border.
22985 2014-03-21  Richard Biener  <rguenther@suse.de>
22987         PR tree-optimization/60577
22988         * tree-core.h (struct tree_base): Document nothrow_flag use
22989         in DECL_NONALIASED.
22990         * tree.h (DECL_NONALIASED): New.
22991         (may_be_aliased): Adjust.
22992         * coverage.c (build_var): Set DECL_NONALIASED.
22994 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
22996         * expr.c (expand_expr_real_1): Remove outdated comment.
22998 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
23000         PR middle-end/60597
23001         * ira.c (adjust_cleared_regs): Call copy_rtx on
23002         *reg_equiv[REGNO (loc)].src_p before passing it to
23003         simplify_replace_fn_rtx.
23005         PR target/60568
23006         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
23007         into CONST, put pic register as first operand of PLUS.  Use
23008         gen_const_mem for both 32-bit and 64-bit PIC got loads.
23010 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23012         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
23014 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23016         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
23017         around for store forwarding issue in the FPU on the UT699.
23018         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
23019         loads and operations if -mfix-ut699 is specified.
23020         (divtf3_hq): Tweak attribute.
23021         (sqrttf2_hq): Likewise.
23023 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23025         * calls.c (store_one_arg): Remove incorrect const qualification on the
23026         type of the temporary.
23027         * cfgexpand.c (expand_return): Likewise.
23028         * expr.c (expand_constructor): Likewise.
23029         (expand_expr_real_1): Likewise.
23031 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23033         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
23034         of parts.
23036 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23038         PR target/60039
23039         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
23041 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
23043         * config/arm/aarch-common-protos.h
23044         (alu_cost_table): Fix spelling of "extend".
23045         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
23047 2014-03-19  Richard Biener  <rguenther@suse.de>
23049         PR middle-end/60553
23050         * tree-core.h (tree_type_common): Re-order pointer members
23051         to reduce recursion depth during GC walks.
23053 2014-03-19  Marek Polacek  <polacek@redhat.com>
23055         PR sanitizer/60569
23056         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
23057         before accessing it.
23059 2014-03-19  Richard Biener  <rguenther@suse.de>
23061         PR lto/59543
23062         * lto-streamer-in.c (input_function): In WPA stage do not drop
23063         debug stmts.
23065 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
23067         PR tree-optimization/60559
23068         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
23069         with build_zero_cst assignment.
23071 2014-03-18  Kai Tietz  <ktietz@redhat.com>
23073         PR rtl-optimization/56356
23074         * sdbout.c (sdbout_parms): Verify that parms'
23075         incoming argument is valid.
23076         (sdbout_reg_parms): Likewise.
23078 2014-03-18  Richard Henderson  <rth@redhat.com>
23080         PR target/60562
23081         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
23082         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
23083         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
23085 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
23087         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
23088         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
23089         Italicize plugin event names in description.  Explain that
23090         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
23091         Remind that no GCC functions should be called after PLUGIN_FINISH.
23092         Explain what pragmas with expansion are.
23094 2014-03-18  Martin Liska  <mliska@suse.cz>
23096         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
23097         gimple call statement is update.
23098         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
23099         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
23101 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
23103         PR sanitizer/60557
23104         * ubsan.c (ubsan_instrument_unreachable): Call
23105         initialize_sanitizer_builtins.
23106         (ubsan_pass): Likewise.
23108         PR sanitizer/60535
23109         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
23110         varpool_finalize_decl instead of rest_of_decl_compilation.
23112 2014-03-18  Richard Biener  <rguenther@suse.de>
23114         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
23115         by using bitmap_and_compl instead of bitmap_and_compl_into.
23116         (df_rd_transfer_function): Likewise.
23118 2014-03-18  Richard Biener  <rguenther@suse.de>
23120         * doc/lto.texi (fresolution): Fix typo.
23122 2014-03-18  Richard Biener  <rguenther@suse.de>
23124         * doc/invoke.texi (flto): Update for changes in 4.9.
23126 2014-03-18  Richard Biener  <rguenther@suse.de>
23128         * doc/loop.texi: Remove section on the removed lambda framework.
23129         Update loop docs with recent changes in preserving loop structure.
23131 2014-03-18  Richard Biener  <rguenther@suse.de>
23133         * doc/lto.texi (-fresolution): Document.
23135 2014-03-18  Richard Biener  <rguenther@suse.de>
23137         * doc/contrib.texi: Adjust my name.
23139 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
23141         PR ipa/58721
23142         * internal-fn.c: Include diagnostic-core.h.
23143         (expand_BUILTIN_EXPECT): New function.
23144         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
23145         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
23146         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
23147         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
23148         IFN_BUILTIN_EXPECT.
23149         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
23150         Revert 3 argument __builtin_expect code.
23151         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
23152         * gimple-fold.c (gimple_fold_call): Likewise.
23153         * tree.h (fold_builtin_expect): New prototype.
23154         * builtins.c (build_builtin_expect_predicate): Add predictor
23155         argument, if non-NULL, create 3 argument __builtin_expect.
23156         (fold_builtin_expect): No longer static.  Add ARG2 argument,
23157         pass it through to build_builtin_expect_predicate.
23158         (fold_builtin_2): Adjust caller.
23159         (fold_builtin_3): Handle BUILT_IN_EXPECT.
23160         * internal-fn.def (BUILTIN_EXPECT): New.
23162 2014-03-18  Tobias Burnus  <burnus@net-b.de>
23164         PR ipa/58721
23165         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
23166         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
23167         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
23169 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
23171         PR ipa/58721
23172         * predict.c (combine_predictions_for_bb): Fix up formatting.
23173         (expr_expected_value_1, expr_expected_value): Add predictor argument,
23174         fill what it points to if non-NULL.
23175         (tree_predict_by_opcode): Adjust caller, use the predictor.
23176         * predict.def (PRED_COMPARE_AND_SWAP): Add.
23178 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
23180         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
23181         proper constant for the store mode.
23183 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
23185         * symtab.c (change_decl_assembler_name): Fix transparent alias
23186         chain construction.
23188 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
23190         * config/aarch64/aarch64.c: Correct the comments about the
23191         aarch64 stack layout.
23193 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
23195         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
23196         check for GF_OMP_FOR_KIND_FOR.
23198 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
23200         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
23201         ymm and zmm register names.
23203 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
23205         PR target/60516
23206         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
23207         note creation for the 2010-08-31 changes.
23209 2014-03-17  Marek Polacek  <polacek@redhat.com>
23211         PR middle-end/60534
23212         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
23213         as -fno-tree-loop-vectorize.
23214         (expand_omp_simd): Likewise.
23216 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
23218         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
23219         (eligible_for_call_delay): New prototype.
23220         * config/sparc/sparc.c (tls_call_delay): Rename into...
23221         (eligible_for_call_delay): ...this.  Return false if the instruction
23222         cannot be put in the delay slot of a branch.
23223         (eligible_for_restore_insn): Simplify.
23224         (eligible_for_return_delay): Return false if the instruction cannot be
23225         put in the delay slot of a branch and simplify.
23226         (eligible_for_sibcall_delay): Return false if the instruction cannot be
23227         put in the delay slot of a branch.
23228         * config/sparc/sparc.md (fix_ut699): New attribute.
23229         (tls_call_delay): Delete.
23230         (in_call_delay): Reimplement.
23231         (eligible_for_sibcall_delay): Rename into...
23232         (in_sibcall_delay): ...this.
23233         (eligible_for_return_delay): Rename into...
23234         (in_return_delay): ...this.
23235         (in_branch_delay): Reimplement.
23236         (in_uncond_branch_delay): Delete.
23237         (in_annul_branch_delay): Delete.
23239 2014-03-14  Richard Henderson  <rth@redhat.com>
23241         PR target/60525
23242         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
23243         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
23244         (*floathi<X87MODEF>2_i387_with_temp): Remove.
23245         (floathi splitters): Remove.
23246         (float<SWI48x>xf2): New pattern.
23247         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
23248         code that tried to handle DImode for 32-bit, but which was excluded
23249         by the pattern's condition.  Drop allocation of stack temporary.
23250         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
23251         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
23252         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
23253         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
23254         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
23255         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
23256         (*float<SWI48><MODEF>2_sse_interunit): Remove.
23257         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
23258         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
23259         (*float<SWI48x><X87MODEF>2_i387): Remove.
23260         (all float _with_temp splitters): Remove.
23261         (*float<SWI48x><MODEF>2_i387): New pattern.
23262         (*float<SWI48><MODEF>2_sse): New pattern.
23263         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
23264         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
23266 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
23267             Marek Polacek  <polacek@redhat.com>
23269         PR middle-end/60484
23270         * common.opt (dump_base_name_prefixed): New Variable.
23271         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
23272         if x_dump_base_name_prefixed is already set, set it at the end.
23274 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
23276         PR rtl-optimization/60508
23277         * lra-constraints.c (get_reload_reg): Add new parameter
23278         in_subreg_p.
23279         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
23280         Pass the new parameter values.
23282 2014-03-14  Richard Biener  <rguenther@suse.de>
23284         * common.opt: Revert unintented changes from r205065.
23285         * opts.c: Likewise.
23287 2014-03-14  Richard Biener  <rguenther@suse.de>
23289         PR middle-end/60518
23290         * cfghooks.c (split_block): Properly adjust all loops the
23291         block was a latch of.
23293 2014-03-14  Martin Jambor  <mjambor@suse.cz>
23295         PR lto/60461
23296         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
23297         and simplify it.
23299 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
23301         PR target/59396
23302         * config/avr/avr.c (avr_set_current_function): Pass function name
23303         through default_strip_name_encoding before sanity checking instead
23304         of skipping the first char of the assembler name.
23306 2014-03-13  Richard Henderson  <rth@redhat.com>
23308         PR debug/60438
23309         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
23310         (ix86_force_to_memory, ix86_free_from_memory): Remove.
23311         * config/i386/i386-protos.h: Likewise.
23312         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
23313         in the expander instead of a splitter.
23314         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
23315         any possibility of requiring a memory.
23316         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
23317         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
23318         (fp branch splitters): Update for ix86_split_fp_branch.
23319         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
23320         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
23321         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
23322         (*fop_<MODEF>_2_i387): Remove f/r alternative.
23323         (*fop_<MODEF>_3_i387): Likewise.
23324         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
23325         (splitters for the fop_* register patterns): Remove.
23326         (fscalexf4_i387): Rename from *fscalexf4_i387.
23327         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
23329 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
23331         PR tree-optimization/59779
23332         * tree-dfa.c (get_ref_base_and_extent): Use double_int
23333         type for bitsize and maxsize instead of HOST_WIDE_INT.
23335 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
23337         PR rtl-optimization/57320
23338         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
23339         the CFG after thread_prologue_and_epilogue_insns.
23341 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
23343         PR rtl-optimization/57189
23344         * lra-constraints.c (process_alt_operands): Disfavor spilling
23345         vector pseudos.
23347 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
23349         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
23351 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
23353         PR tree-optimization/59025
23354         PR middle-end/60418
23355         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
23356         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
23358 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
23360         PR target/60486
23361         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
23362         calls of avr_out_plus_1.
23364 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
23366         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
23367         BB's single pred and update the father loop's latch info later.
23369 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23371         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
23372         (VEC_M): Likewise.
23373         (VEC_N): Likewise.
23374         (VEC_R): Likewise.
23375         (VEC_base): Likewise.
23376         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
23377         registers, we need to swap double words in little endian mode.
23379         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
23380         to be a container mode for 128-bit integer operations added in ISA
23381         2.07.  Unlike TImode and PTImode, the preferred register set is
23382         the Altivec/VMX registers for the 128-bit operations.
23384         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
23385         declarations.
23386         (rs6000_split_128bit_ok_p): Likewise.
23388         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
23389         macros for creating ISA 2.07 normal and overloaded builtin
23390         functions with 3 arguments.
23391         (BU_P8V_OVERLOAD_3): Likewise.
23392         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
23393         for use as overloaded functions.
23394         (VPERM_1TI_UNS): Likewise.
23395         (VSEL_1TI): Likewise.
23396         (VSEL_1TI_UNS): Likewise.
23397         (ST_INTERNAL_1ti): Likewise.
23398         (LD_INTERNAL_1ti): Likewise.
23399         (XXSEL_1TI): Likewise.
23400         (XXSEL_1TI_UNS): Likewise.
23401         (VPERM_1TI): Likewise.
23402         (VPERM_1TI_UNS): Likewise.
23403         (XXPERMDI_1TI): Likewise.
23404         (SET_1TI): Likewise.
23405         (LXVD2X_V1TI): Likewise.
23406         (STXVD2X_V1TI): Likewise.
23407         (VEC_INIT_V1TI): Likewise.
23408         (VEC_SET_V1TI): Likewise.
23409         (VEC_EXT_V1TI): Likewise.
23410         (EQV_V1TI): Likewise.
23411         (NAND_V1TI): Likewise.
23412         (ORC_V1TI): Likewise.
23413         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
23414         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
23415         overloaded builtin.
23416         (VADDUQM): Likewise.
23417         (VSUBCUQ): Likewise.
23418         (VADDEUQM): Likewise.
23419         (VADDECUQ): Likewise.
23420         (VSUBEUQM): Likewise.
23421         (VSUBECUQ): Likewise.
23423         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
23424         __int128_t and __uint128_t types.
23425         (__uint128_type): Likewise.
23426         (altivec_categorize_keyword): Add support for vector __int128_t,
23427         vector __uint128_t, vector __int128, and vector unsigned __int128
23428         as a container type for TImode operations that need to be done in
23429         VSX/Altivec registers.
23430         (rs6000_macro_to_expand): Likewise.
23431         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
23432         to support 128-bit integer instructions vaddcuq, vadduqm,
23433         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
23434         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
23436         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
23437         for V1TImode, and set up preferences to use VSX/Altivec registers.
23438         Setup VSX reload handlers.
23439         (rs6000_debug_reg_global): Likewise.
23440         (rs6000_init_hard_regno_mode_ok): Likewise.
23441         (rs6000_preferred_simd_mode): Likewise.
23442         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
23443         (easy_altivec_constant): Likewise.
23444         (output_vec_const_move): Likewise.
23445         (rs6000_expand_vector_set): Convert V1TImode set and extract to
23446         simple move.
23447         (rs6000_expand_vector_extract): Likewise.
23448         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
23449         addressing.
23450         (rs6000_const_vec): Add support for V1TImode.
23451         (rs6000_emit_le_vsx_load): Swap double words when loading or
23452         storing TImode/V1TImode.
23453         (rs6000_emit_le_vsx_store): Likewise.
23454         (rs6000_emit_le_vsx_move): Likewise.
23455         (rs6000_emit_move): Add support for V1TImode.
23456         (altivec_expand_ld_builtin): Likewise.
23457         (altivec_expand_st_builtin): Likewise.
23458         (altivec_expand_vec_init_builtin): Likewise.
23459         (altivec_expand_builtin): Likewise.
23460         (rs6000_init_builtins): Add support for V1TImode type.  Add
23461         support for ISA 2.07 128-bit integer builtins.  Define type names
23462         for the VSX/Altivec vector types.
23463         (altivec_init_builtins): Add support for overloaded vector
23464         functions with V1TImode type.
23465         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
23466         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
23467         external function.
23468         (rs6000_split_128bit_ok_p): Likewise.
23469         (rs6000_handle_altivec_attribute): Create V1TImode from vector
23470         __int128_t and vector __uint128_t.
23472         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
23473         and mode attributes.
23474         (VSX_M): Likewise.
23475         (VSX_M2): Likewise.
23476         (VSm): Likewise.
23477         (VSs): Likewise.
23478         (VSr): Likewise.
23479         (VSv): Likewise.
23480         (VS_scalar): Likewise.
23481         (VS_double): Likewise.
23482         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
23484         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
23485         we support the ISA 2.07 128-bit integer arithmetic instructions.
23486         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
23487         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
23488         and TImode types for use with the builtin functions.
23489         (V1TI_type_node): Likewise.
23490         (unsigned_V1TI_type_node): Likewise.
23491         (intTI_type_internal_node): Likewise.
23492         (uintTI_type_internal_node): Likewise.
23494         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
23495         128-bit builtin functions.
23496         (UNSPEC_VADDEUQM): Likewise.
23497         (UNSPEC_VADDECUQ): Likewise.
23498         (UNSPEC_VSUBCUQ): Likewise.
23499         (UNSPEC_VSUBEUQM): Likewise.
23500         (UNSPEC_VSUBECUQ): Likewise.
23501         (VM): Add V1TImode to vector mode iterators.
23502         (VM2): Likewise.
23503         (VI_unit): Likewise.
23504         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
23505         (altivec_vaddcuq): Likewise.
23506         (altivec_vsubuqm): Likewise.
23507         (altivec_vsubcuq): Likewise.
23508         (altivec_vaddeuqm): Likewise.
23509         (altivec_vaddecuq): Likewise.
23510         (altivec_vsubeuqm): Likewise.
23511         (altivec_vsubecuq): Likewise.
23513         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
23514         mode iterators.
23515         (BOOL_128): Likewise.
23516         (BOOL_REGS_OUTPUT): Likewise.
23517         (BOOL_REGS_OP1): Likewise.
23518         (BOOL_REGS_OP2): Likewise.
23519         (BOOL_REGS_UNARY): Likewise.
23520         (BOOL_REGS_AND_CR0): Likewise.
23522         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
23523         128-bit integer builtin support.
23524         (vec_vadduqm): Likewise.
23525         (vec_vaddecuq): Likewise.
23526         (vec_vaddeuqm): Likewise.
23527         (vec_vsubecuq): Likewise.
23528         (vec_vsubeuqm): Likewise.
23529         (vec_vsubcuq): Likewise.
23530         (vec_vsubuqm): Likewise.
23532         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23533         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
23534         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
23535         128-bit integer add/subtract to ISA 2.07.
23537 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
23539         * config/arc/arc.c (arc_predicate_delay_insns):
23540         Fix third argument passed to conditionalize_nonjump.
23542 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
23544         * config/aarch64/aarch64-builtins.c
23545         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
23546         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
23547         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
23548         instead of __builtin_lfloor.
23549         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
23551 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
23553         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
23554         (tree_ssa_ifcombine_bb_1): New function.
23555         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
23556         is an empty forwarder block to then_bb or vice versa and then_bb
23557         and else_bb are effectively swapped.
23559 2014-03-12  Christian Bruel  <christian.bruel@st.com>
23561         PR target/60264
23562         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
23563         REG_CFA_DEF_CFA note.
23564         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
23565         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
23567 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23569         PR tree-optimization/60454
23570         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
23572 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23574         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
23575         Do not define target_cpu_default2 to generic.
23576         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
23577         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
23578         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
23580 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
23581             Marc Glisse  <marc.glisse@inria.fr>
23583         PR tree-optimization/60502
23584         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
23585         instead of build_low_bits_mask.
23587 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
23589         PR middle-end/60482
23590         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
23591         if there are multiple uses, but op doesn't live on E edge.
23592         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
23593         clobber stmts before __builtin_unreachable.
23595 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
23597         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
23598         hard_frame_pointer_rtx.
23599         * cse.c (cse_insn): Remove volatile check.
23600         * cselib.c (cselib_process_insn): Likewise.
23601         * dse.c (scan_insn): Likewise.
23603 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
23605         * config/arc/arc.c (conditionalize_nonjump): New function,
23606         broken out of ...
23607         (arc_ifcvt): ... this.
23608         (arc_predicate_delay_insns): Use it.
23610 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
23612         * config/arc/predicates.md (extend_operand): During/after reload,
23613         allow const_int_operand.
23614         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
23615         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
23616         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
23617         to "i".
23618         (umulsi3_highpart_i): Likewise.
23620 2014-03-11  Richard Biener  <rguenther@suse.de>
23622         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
23623         Add asserts to guard possible wrong-code bugs.
23625 2014-03-11  Richard Biener  <rguenther@suse.de>
23627         PR tree-optimization/60429
23628         PR tree-optimization/60485
23629         * tree-ssa-structalias.c (set_union_with_increment): Properly
23630         take into account all fields that overlap the shifted vars.
23631         (do_sd_constraint): Likewise.
23632         (do_ds_constraint): Likewise.
23633         (get_constraint_for_ptr_offset): Likewise.
23635 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
23637         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
23638         (nios2_compute_frame_layout):
23639         Add calculation of cfun->machine->fp_save_offset.
23640         (nios2_expand_prologue): Correct setting of frame pointer register
23641         in prologue.
23642         (nios2_expand_epilogue): Update recovery of stack pointer from
23643         frame pointer accordingly.
23644         (nios2_initial_elimination_offset): Update calculation of offset
23645         for eliminating to HARD_FRAME_POINTER_REGNUM.
23647 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
23649         PR ipa/60457
23650         * ipa.c (symtab_remove_unreachable_nodes): Don't call
23651         cgraph_get_create_node on VAR_DECLs.
23653 2014-03-10  Richard Biener  <rguenther@suse.de>
23655         PR middle-end/60474
23656         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
23658 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
23660         * config/vms/vms.opt (vms_float_format): New variable.
23662 2014-03-08  Tobias Burnus  <burnus@net-b.de>
23664         * doc/invoke.texi (-fcilkplus): Update implementation status.
23666 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
23667             Richard Biener  <rguenther@suse.de>
23669         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
23670         consistently accross all TUs.
23671         (run_gcc): Enable -fshort-double automatically at link at link-time
23672         and disallow override.
23674 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
23676         PR target/58271
23677         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
23678         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
23679         if they can't be used.
23681 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23683         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
23684         for Solaris 11/x86 ld.
23685         * configure: Regenerate.
23687 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23689         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
23690         (LIB_TLS_SPEC): Save as ld_tls_libs.
23691         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
23692         (HAVE_AS_IX86_TLSLDM): New test.
23693         * configure, config.in: Regenerate.
23694         * config/i386/i386.c (legitimize_tls_address): Fall back to
23695         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
23696         cannot support TLS_MODEL_LOCAL_DYNAMIC.
23697         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
23698         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
23700 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
23702         * common.opt (fira-loop-pressure): Mark as optimization.
23704 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
23706         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
23707         an OpenMP mappable type.
23709 2014-03-06  Matthias Klose  <doko@ubuntu.com>
23711         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
23712         MULTILIB_OSDIRNAMES is not defined.
23714 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
23715             Meador Inge  <meadori@codesourcery.com>
23717         PR target/58595
23718         * config/arm/arm.c (arm_tls_symbol_p): Remove.
23719         (arm_legitimize_address): Call legitimize_tls_address for any
23720         arm_tls_referenced_p expression, handle constant addend.  Call it
23721         before testing for !TARGET_ARM.
23722         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
23724 2014-03-06  Richard Biener  <rguenther@suse.de>
23726         PR middle-end/60445
23727         PR lto/60424
23728         PR lto/60427
23729         Revert
23730         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
23732         * tree-streamer.c (record_common_node): Assert we don't record
23733         nodes with type double.
23734         (preload_common_node): Skip type double, complex double and double
23735         pointer since it is now frontend dependent due to fshort-double option.
23737 2014-03-06  Richard Biener  <rguenther@suse.de>
23739         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
23740         or -fno-lto is specified and the linker has full plugin support.
23741         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
23742         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
23743         * lto-wrapper.c (merge_and_complain): Merge compile-time
23744         optimization levels.
23745         (run_gcc): And pass it through to the link options.
23747 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
23749         PR debug/60381
23750         Revert:
23751         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
23752         PR debug/59992
23753         * cselib.c (remove_useless_values): Skip to avoid quadratic
23754         behavior if the condition moved from...
23755         (cselib_process_insn): ... here holds.
23757 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
23759         PR plugins/59335
23760         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
23761         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
23763         PR plugins/59335
23764         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
23765         (TM_H): Add x86-tune.def.
23767 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23769         * config/aarch64/aarch64.c (generic_tunings):
23770         Use cortexa57_extra_costs.
23772 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
23774         PR lto/60404
23775         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
23776         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
23777         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
23778         cost for in_lto_p.
23780 2014-03-04  Heiher  <r@hev.cc>
23782         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
23783         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
23785 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
23787         * config/i386/predicates.md (const2356_operand): Change to ...
23788         (const2367_operand): ... this.
23789         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
23790         const2367_operand.
23791         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23792         (*avx512pf_scatterpf<mode>sf): Ditto.
23793         (avx512pf_scatterpf<mode>df): Ditto.
23794         (*avx512pf_scatterpf<mode>df_mask): Ditto.
23795         (*avx512pf_scatterpf<mode>df): Ditto.
23796         * config/i386/i386.c (ix86_expand_builtin): Update
23797         incorrect hint operand error message.
23799 2014-03-04  Richard Biener  <rguenther@suse.de>
23801         * lto-section-in.c (lto_get_section_data): Fix const cast.
23803 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
23805         * tree-streamer.c (record_common_node): Assert we don't record
23806         nodes with type double.
23807         (preload_common_node): Skip type double, complex double and double
23808         pointer since it is now frontend dependent due to fshort-double option.
23810 2014-03-04  Richard Biener  <rguenther@suse.de>
23812         PR lto/60405
23813         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
23814         (lto_input_toplevel_asms): Likewise.
23815         * lto-section-in.c (lto_get_section_data): Instead do it here
23816         for every section.
23818 2014-03-04  Richard Biener  <rguenther@suse.de>
23820         PR tree-optimization/60382
23821         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
23822         dead PHIs a reduction.
23824 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
23826         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
23827         hint value.
23828         (_mm_prefetch): Move out of GCC target("sse") pragma.
23829         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
23830         GCC target("prfchw") pragma.
23831         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
23832         for locality <= 2.
23833         * config/i386/i386.c (ix86_option_override_internal): Enable
23834         -mprfchw with -mprefetchwt1.
23836 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
23838         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
23839         Mark as varying.
23841 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
23843         * opts.h (CL_PCH_IGNORE): Define.
23844         * targhooks.c (option_affects_pch_p):
23845         Return false for options that have CL_PCH_IGNORE set.
23846         * opt-functions.awk: Process PchIgnore.
23847         * doc/options.texi: Document PchIgnore.
23849         * config/arc/arc.opt (misize): Add PchIgnore property.
23851 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23853         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
23854         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
23855         constraint on constants to permit them being loaded into
23856         GENERAL_REGS or BASE_REGS.
23858 2014-03-03  Nick Clifton  <nickc@redhat.com>
23860         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
23861         anti-cacnonical alternatives.
23862         (negandhi3_real): New pattern.
23863         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
23865 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23867         * config/avr/avr-mcus.def: Remove atxmega16x1.
23868         * config/avr/avr-tables.opt: Regenerate.
23869         * config/avr/t-multilib: Regenerate.
23870         * doc/avr-mmcu.texi: Regenerate.
23872 2014-03-03  Tobias Grosser  <tobias@grosser.es>
23873             Mircea Namolaru  <mircea.namolaru@inria.fr>
23875         PR tree-optimization/58028
23876         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
23877         scalar dimensions.
23879 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23881         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
23882         not handled by recognizers.
23884 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
23886         PR middle-end/60175
23887         * function.c (expand_function_end): Don't emit
23888         clobber_return_register sequence if clobber_after is a BARRIER.
23889         * cfgexpand.c (construct_exit_block): Append instructions before
23890         return_label to prev_bb.
23892 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23894         * config/rs6000/constraints.md: Document reserved use of "wc".
23896 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
23898         PR ipa/60150
23899         * ipa.c (function_and_variable_visibility): When dissolving comdat
23900         group, also set all symbols to local.
23902 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
23904         PR ipa/60306
23906         Revert:
23907         2013-12-14  Jan Hubicka  <jh@suse.cz>
23908         PR middle-end/58477
23909         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
23911 2014-03-02  Jon Beniston  <jon@beniston.com>
23913         PR bootstrap/48230
23914         PR bootstrap/50927
23915         PR bootstrap/52466
23916         PR target/46898
23917         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
23918           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
23919         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
23920         (simple_return, *simple_return): New patterns
23921         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
23922         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
23924 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
23926         * dwarf2out.c (gen_subprogram_die): Tidy.
23928 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
23930         PR target/60071
23931         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
23932         (*mov_t_msb_neg_negc): ... this new insn.
23934 2014-02-28  Jason Merrill  <jason@redhat.com>
23936         PR c++/58678
23937         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
23938         function.
23940 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
23942         PR c++/60314
23943         * dwarf2out.c (decltype_auto_die): New static.
23944         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
23945         (gen_type_die_with_usage): Handle 'decltype(auto)'.
23946         (is_cxx_auto): Likewise.
23948 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
23950         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
23951         we are not using general regs only.
23953 2014-02-28  Richard Biener  <rguenther@suse.de>
23955         PR target/60280
23956         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
23957         previous fix and only allow to remove trivial pre-headers
23958         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
23959         (remove_forwarder_block): Properly update the latch of a loop.
23961 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
23963         PR debug/59992
23964         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
23965         (cselib_preserved_hash_table): New.
23966         (preserve_constants_and_equivs): Move preserved vals to it.
23967         (cselib_find_slot): Look it up first.
23968         (cselib_init): Initialize it.
23969         (cselib_finish): Release it.
23970         (dump_cselib_table): Dump it.
23972 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
23974         PR debug/59992
23975         * cselib.c (remove_useless_values): Skip to avoid quadratic
23976         behavior if the condition moved from...
23977         (cselib_process_insn): ... here holds.
23979 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
23981         PR debug/57232
23982         * var-tracking.c (vt_initialize): Apply the same condition to
23983         preserve the CFA base value.
23985 2014-02-28  Joey Ye  <joey.ye@arm.com>
23987         PR target/PR60169
23988         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
23989         if reload in progress or completed.
23991 2014-02-28  Tobias Burnus  <burnus@net-b.de>
23993         PR middle-end/60147
23994         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
23995         NAMELIST_DECL.
23997 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23999         * doc/tm.texi.in (Condition Code Status): Update documention for
24000         relative locations of cc0-setter and cc0-user.
24002 2014-02-27  Jeff Law  <law@redhat.com>
24004         PR rtl-optimization/52714
24005         * combine.c (try_combine): When splitting an unrecognized PARALLEL
24006         into two independent simple sets, if I3 is a jump, ensure the
24007         pattern we place into I3 is a (set (pc) ...).
24009 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
24010             Jeff Law  <law@redhat.com>
24012         PR rtl-optimization/49847
24013         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
24014         are in different blocks.
24015         * doc/tm.texi (Condition Code Status): Update documention for
24016         relative locations of cc0-setter and cc0-user.
24018 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
24020         PR target/59222
24021         * lra.c (lra_emit_add): Check SUBREG too.
24023 2014-02-27  Andreas Schwab  <schwab@suse.de>
24025         * config/m68k/m68k.c (m68k_option_override): Disable
24026         -flive-range-shrinkage for classic m68k.
24027         (m68k_override_options_after_change): Likewise.
24029 2014-02-27  Marek Polacek  <polacek@redhat.com>
24031         PR middle-end/59223
24032         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
24033         -Wmaybe-uninitialized.
24035 2014-02-27  Alan Modra  <amodra@gmail.com>
24037         PR target/57936
24038         * reload1.c (emit_input_reload_insns): When reload_override_in,
24039         set old to rl->in_reg when rl->in_reg is a subreg.
24041 2014-02-26  Richard Biener  <rguenther@suse.de>
24043         PR bootstrap/60343
24044         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
24046 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
24048         * common/config/i386/predicates.md (const1256_operand): Remove.
24049         (const2356_operand): New.
24050         (const_1_to_2_operand): Remove.
24051         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24052         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24053         (*avx512pf_gatherpf<mode>sf): Ditto.
24054         (avx512pf_gatherpf<mode>df): Ditto.
24055         (*avx512pf_gatherpf<mode>df_mask): Ditto.
24056         (*avx512pf_gatherpf<mode>df): Ditto.
24057         (avx512pf_scatterpf<mode>sf): Ditto.
24058         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24059         (*avx512pf_scatterpf<mode>sf): Ditto.
24060         (avx512pf_scatterpf<mode>df): Ditto.
24061         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24062         (*avx512pf_scatterpf<mode>df): Ditto.
24063         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
24065 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
24067         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
24068         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
24069         (_mm512_mask_testn_epi64_mask): Move to ...
24070         * config/i386/avx512cdintrin.h: Here.
24071         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
24072         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
24073         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
24074         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
24075         TARGET_AVX512F from TARGET_AVX512CD.
24077 2014-02-26  Richard Biener  <rguenther@suse.de>
24079         PR ipa/60327
24080         * ipa.c (walk_polymorphic_call_targets): Properly guard
24081         call to inline_update_overall_summary.
24083 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
24085         PR target/60280
24086         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
24087         and latches only if requested.  Fix latch if it is removed.
24088         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
24089         LOOPS_HAVE_PREHEADERS.
24091 2014-02-25  Andrew Pinski  <apinski@cavium.com>
24093         * builtins.c (expand_builtin_thread_pointer): Create a new target
24094         when the target is NULL.
24096 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
24098         PR rtl-optimization/60317
24099         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24100         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24101         * lra-assigns.c: Include params.h.
24102         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
24103         other reload pseudos considerations.
24105 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24107         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
24108         to use canonical form for nor<mode>3.
24110 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24112         PR target/55426
24113         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
24114         conversions.
24116 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
24118         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
24119         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
24120         (ix86_handle_option): Handle OPT_mprefetchwt1.
24121         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
24122         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24123         PREFETCHWT1 CPUID.
24124         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24125         OPTION_MASK_ISA_PREFETCHWT1.
24126         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
24127         (PTA_PREFETCHWT1): New.
24128         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
24129         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
24130         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
24131         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
24132         (*prefetch_avx512pf_<mode>_: Change into ...
24133         (*prefetch_prefetchwt1_<mode>: This.
24134         * config/i386/i386.opt (mprefetchwt1): New.
24135         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
24136         (_mm_prefetch): Handle intent to write.
24137         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
24139 2014-02-25  Richard Biener  <rguenther@suse.de>
24141         PR middle-end/60291
24142         * emit-rtl.c (mem_attrs_htab): Remove.
24143         (mem_attrs_htab_hash): Likewise.
24144         (mem_attrs_htab_eq): Likewise.
24145         (set_mem_attrs): Always allocate new mem-attrs when something changed.
24146         (init_emit_once): Do not allocate mem_attrs_htab.
24148 2014-02-25  Richard Biener  <rguenther@suse.de>
24150         PR lto/60319
24151         * lto-opts.c (lto_write_options): Output non-explicit conservative
24152         -fwrapv, -fno-trapv and -fno-strict-overflow.
24153         * lto-wrapper.c (merge_and_complain): Handle merging those options.
24154         (run_gcc): And pass them through.
24156 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
24158         * sel-sched.c (calculate_new_fences): New parameter ptime.
24159         Calculate it as a maximum over all fence cycles.
24160         (sel_sched_region_2): Adjust the call to calculate_new_fences.
24161         Print the final schedule timing when sched_verbose.
24163 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
24165         PR rtl-optimization/60292
24166         * sel-sched.c (fill_vec_av_set): Do not reset target availability
24167         bit fot the fence instruction.
24169 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
24171         * calls.h: Fix typo in comment.
24173 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
24175         * config/pa/pa.c (pa_output_move_double): Don't valididate when
24176         adjusting offsetable addresses.
24178 2014-02-24  Guozhi Wei  <carrot@google.com>
24180         * sparseset.h (sparseset_pop): Fix the wrong index.
24182 2014-02-24  Walter Lee  <walt@tilera.com>
24184         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
24185         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
24186         triplet.
24187         * common/config/tilegx/tilegx-common.c
24188         (TARGET_DEFAULT_TARGET_FLAGS): Define.
24189         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
24190         (LINK_SPEC): Ditto.
24191         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
24192         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
24193         (tilegx_gimplify_va_arg_expr): Handle big endian.
24194         (tilegx_expand_unaligned_load): Ditto.
24195         (tilegx_expand_unaligned_store): Ditto.
24196         (TARGET_RETURN_IN_MSB): New.
24197         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
24198         (TARGET_ENDIAN_DEFAULT): New.
24199         (TARGET_BIG_ENDIAN): Handle big endian.
24200         (BYTES_BIG_ENDIAN): Ditto.
24201         (WORDS_BIG_ENDIAN): Ditto.
24202         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
24203         (ENDIAN_SPEC): New.
24204         (EXTRA_SPECS): New.
24205         * config/tilegx/tilegx.md (extv): Handle big endian.
24206         (extzv): Ditto.
24207         (insn_st<n>): Ditto.
24208         (insn_st<n>_add<bitsuffix>): Ditto.
24209         (insn_stnt<n>): Ditto.
24210         (insn_stnt<n>_add<bitsuffix>):Ditto.
24211         (vec_interleave_highv8qi): Handle big endian.
24212         (vec_interleave_highv8qi_be): New.
24213         (vec_interleave_highv8qi_le): New.
24214         (insn_v1int_h): Handle big endian.
24215         (vec_interleave_lowv8qi): Handle big endian.
24216         (vec_interleave_lowv8qi_be): New.
24217         (vec_interleave_lowv8qi_le): New.
24218         (insn_v1int_l): Handle big endian.
24219         (vec_interleave_highv4hi): Handle big endian.
24220         (vec_interleave_highv4hi_be): New.
24221         (vec_interleave_highv4hi_le): New.
24222         (insn_v2int_h): Handle big endian.
24223         (vec_interleave_lowv4hi): Handle big endian.
24224         (vec_interleave_lowv4hi_be): New.
24225         (vec_interleave_lowv4hi_le): New.
24226         (insn_v2int_l): Handle big endian.
24227         (vec_interleave_highv2si): Handle big endian.
24228         (vec_interleave_highv2si_be): New.
24229         (vec_interleave_highv2si_le): New.
24230         (insn_v4int_h): Handle big endian.
24231         (vec_interleave_lowv2si): Handle big endian.
24232         (vec_interleave_lowv2si_be): New.
24233         (vec_interleave_lowv2si_le): New.
24234         (insn_v4int_l): Handle big endian.
24235         * config/tilegx/tilegx.opt (mbig-endian): New option.
24236         (mlittle-endian): New option.
24237         * doc/install.texi: Document tilegxbe-linux.
24238         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
24240 2014-02-24  Martin Jambor  <mjambor@suse.cz>
24242         PR ipa/60266
24243         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
24244         there are no parameter descriptors.
24246 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
24248         PR rtl-optimization/60268
24249         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
24250         initialization to ...
24251         (sched_rgn_init): ... here.
24252         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
24254 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
24256         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
24257         names.
24259 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
24261         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
24262         definition.
24264 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
24266         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
24267         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
24269 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
24271         * config/microblaze/predicates.md: Add cmp_op predicate.
24272         * config/microblaze/microblaze.md: Add branch_compare instruction
24273         which uses cmp_op predicate and emits cmp insn before branch.
24274         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
24275         to microblaze_expand_conditional_branch and consolidate logic.
24276         (microblaze_expand_conditional_branch): emit branch_compare
24277         insn instead of handling cmp op separate from branch insn.
24279 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24281         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
24282         to permit subregs.
24284 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24286         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
24287         define_insn with define_expand and new define_insn
24288         *altivec_lve<VI_char>x_internal.
24289         (altivec_stve<VI_char>x): Replace define_insn with define_expand
24290         and new define_insn *altivec_stve<VI_char>x_internal.
24291         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
24292         prototype.
24293         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
24294         lve*x built-ins.
24295         (altivec_expand_stvex_be): New function.
24297 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
24299         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
24300         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
24301         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
24302         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
24304 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
24306         PR target/60298
24307         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
24308         instead of emit_move_insn.
24310 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24312         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
24313         vspltw with vsldoi.
24314         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
24315         gen_altivec_vsumsws.
24317 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24319         * config/rs6000/altivec.md (altivec_lvxl): Rename as
24320         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
24321         (altivec_lvxl_<mode>): New define_expand incorporating
24322         -maltivec=be semantics where needed.
24323         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
24324         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
24325         semantics where needed.
24326         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
24327         (altivec_stvx_<mode>): New define_expand incorporating
24328         -maltivec=be semantics where needed.
24329         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
24330         VM2 iterator instead of V4SI.
24331         (altivec_stvxl_<mode>): New define_expand incorporating
24332         -maltivec=be semantics where needed.
24333         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
24334         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
24335         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
24336         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
24337         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
24338         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
24339         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
24340         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
24341         ALTIVEC_BUILTIN_STVXL.
24342         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
24343         (altivec_expand_stvx_be): Likewise.
24344         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
24345         (altivec_expand_lvx_be): Likewise.
24346         (altivec_expand_stvx_be): Likewise.
24347         (altivec_expand_builtin): Add cases for
24348         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
24349         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
24350         (altivec_init_builtins): Add definitions for
24351         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
24352         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
24354 2014-02-21  Catherine Moore  <clm@codesourcery.com>
24356         * doc/invoke.texi (mvirt, mno-virt): Document.
24357         * config/mips/mips.opt (mvirt): New option.
24358         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
24360 2014-02-21  Richard Biener  <rguenther@suse.de>
24362         PR tree-optimization/60276
24363         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
24364         (STMT_VINFO_MIN_NEG_DIST): New macro.
24365         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
24366         STMT_VINFO_MIN_NEG_DIST.
24367         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
24368         made for negative dependence distances still hold.
24370 2014-02-21  Richard Biener  <rguenther@suse.de>
24372         PR middle-end/60291
24373         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
24374         DECL_INITIAL for globals not in the current function context.
24376 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
24378         PR tree-optimization/56490
24379         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
24380         * tree-ssa-uninit.c: Include params.h.
24381         (compute_control_dep_chain): Add num_calls argument, return false
24382         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
24383         num_calls to recursive call.
24384         (find_predicates): Change dep_chain into normal array,
24385         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
24386         variable and adjust compute_control_dep_chain caller.
24387         (find_def_preds): Likewise.
24389 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
24391         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
24392         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
24394 2014-02-21  Nick Clifton  <nickc@redhat.com>
24396         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
24397         (pushhi1): Likewise.
24398         (popqi1): Add mode to pre_dec.
24399         (pophi1): Likewise.
24401 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
24403         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
24404         mode for mask of V8SFmode permutation.
24406 2014-02-20  Richard Henderson  <rth@redhat.com>
24408         PR c++/60272
24409         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
24410         a new pseudo for OLDVAL.
24412 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
24414         PR target/57896
24415         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
24416         gen_reg_rtx if d->testing_p.
24417         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
24418         if d->testing_p and we will certainly return true.
24419         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
24420         if d->testing_p.
24422 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
24424         * emit-rtl.c (gen_reg_rtx): Assert that
24425         crtl->emit.regno_pointer_align_length is non-zero.
24427 2014-02-20  Richard Henderson  <rth@redhat.com>
24429         PR c++/60272
24430         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
24431         on failure the store back into EXPECT.
24433 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
24434             Sandra Loosemore  <sandra@codesourcery.com>
24436         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
24437         * config/nios2/nios2.c (nios2_function_profiler): Add
24438         -fPIC (flag_pic == 2) support.
24439         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
24440         (nios2_large_offset_p): New function.
24441         (nios2_unspec_reloc_p): Move up position, update to use
24442         nios2_large_offset_p.
24443         (nios2_unspec_address): Remove function.
24444         (nios2_unspec_offset): New function.
24445         (nios2_large_got_address): New function.
24446         (nios2_got_address): Add large offset support.
24447         (nios2_legitimize_tls_address): Update usage of removed and new
24448         functions.
24449         (nios2_symbol_binds_local_p): New function.
24450         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
24451         (nios2_legitimize_address): Update to use nios2_large_offset_p.
24452         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
24453         (nios2_print_operand): Merge H/L processing, add hiadj/lo
24454         processing for (const (unspec ...)).
24455         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
24457 2014-02-20  Richard Biener  <rguenther@suse.de>
24459         * tree-cfg.c (replace_uses_by): Mark altered BBs before
24460         doing the substitution.
24461         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
24463 2014-02-20  Martin Jambor  <mjambor@suse.cz>
24465         PR ipa/55260
24466         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
24467         info when checking whether lattices are bottom.
24469 2014-02-20  Richard Biener  <rguenther@suse.de>
24471         PR middle-end/60221
24472         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
24473         regions at -O0.
24475 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
24477         PR ipa/58555
24478         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
24479         parameter specifying the scaling.
24480         (inline_call): Update.
24481         (want_inline_recursively): Guard division by zero.
24482         (recursive_inlining): Update.
24483         * ipa-inline.h (clone_inlined_nodes): Update.
24485 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
24487         PR target/60204
24488         * config/i386/i386.c (classify_argument): Pass structures of size
24489         64 bytes or less in register.
24491 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
24492             Kirill Yukhin  <kirill.yukhin@intel.com>
24494         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
24495         (_mm_rcp28_round_ss): Ditto.
24496         (_mm_rsqrt28_round_sd): Ditto.
24497         (_mm_rsqrt28_round_ss): Ditto.
24498         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
24499         (_mm_rcp14_round_ss): Ditto.
24500         (_mm_rsqrt14_round_sd): Ditto.
24501         (_mm_rsqrt14_round_ss): Ditto.
24502         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
24503         the first input operand, get rid of match_dup.
24504         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
24505         attribute to sse.
24506         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
24507         Ditto.
24508         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
24509         operand as the first input operand, set type attribute.
24510         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
24511         Set type attribute.
24512         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
24513         operand as the first input operand, set type attribute.
24515 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24517         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
24518         bit of zero.
24520 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
24522         PR target/60207
24523         * config/i386/i386.c (construct_container): Remove TFmode check
24524         for X86_64_INTEGER_CLASS.
24526 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
24528         PR target/59794
24529         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
24530         only when -Wpsabi is enabled.
24532 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
24534          PR target/59799
24535         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
24536         passing arrays in registers are the same as for structs, so remove the
24537         special case for them.
24539 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
24541         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
24542         destination type, extract only the valid bits if the source type is not
24543         integral and has a different mode.
24545 2014-02-19  Richard Biener  <rguenther@suse.de>
24547         PR ipa/60243
24548         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
24549         for all calls.
24551 2014-02-19  Richard Biener  <rguenther@suse.de>
24553         PR ipa/60243
24554         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
24555         (ipa_modify_call_arguments): Emit an argument load explicitely and
24556         preserve virtual SSA form there and for the replacement call.
24557         Do not update SSA form nor free dominance info.
24559 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
24561         * ipa.c (function_and_variable_visibility): Also clear WEAK
24562         flag when disolving COMDAT_GROUP.
24564 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
24566         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
24567         * ipa-prop.c (ipa_set_jf_known_type): Return early when
24568         not devirtualizing.
24569         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
24570         do more sanity checks.
24571         (detect_type_change): Return true when giving up early.
24572         (compute_complex_assign_jump_func): Fix type parameter of
24573         ipa_set_ancestor_jf.
24574         (compute_complex_ancestor_jump_func): Likewise.
24575         (update_jump_functions_after_inlining): Fix updating of
24576         ancestor function.
24577         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
24579 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
24581         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
24582         inline clones when edge disappears.
24584 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
24586         PR target/60203
24587         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
24588         Split 64-bit moves into 2 patterns.  Do not allow the use of
24589         direct move for TDmode in little endian, since the decimal value
24590         has little endian bytes within a word, but the 64-bit pieces are
24591         ordered in a big endian fashion, and normal subreg's of TDmode are
24592         not allowed.
24593         (mov<mode>_64bit_dm): Likewise.
24594         (movtd_64bit_nodm): Likewise.
24596 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
24598         PR tree-optimization/60174
24599         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
24600         statement of an SSA_NAME that occurs in an abnormal PHI node.
24602 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
24604         PR sanitizer/60142
24605         * final.c (SEEN_BB): Remove.
24606         (SEEN_NOTE, SEEN_EMITTED): Renumber.
24607         (final_scan_insn): Don't force_source_line on second
24608         NOTE_INSN_BASIC_BLOCK.
24610 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
24612         PR target/60205
24613         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
24614         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
24615         (type_natural_mode): Warn ABI change when %zmm register is not
24616         available for AVX512F vector value passing.
24618 2014-02-18  Kai Tietz  <ktietz@redhat.com>
24620         PR target/60193
24621         * config/i386/i386.c (ix86_expand_prologue): Use value in
24622         rax register as displacement when restoring %r10 or %rax.
24623         Fix wrong offset when restoring both registers.
24625 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
24627         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
24628         assertion with conditional return.
24630 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
24631             Uros Bizjak  <ubizjak@gmail.com>
24633         PR driver/60233
24634         * config/i386/driver-i386.c (host_detect_local_cpu): If
24635         YMM state is not saved by the OS, also clear has_f16c.  Move
24636         CPUID 0x80000001 handling before YMM state saving checking.
24638 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
24640         PR rtl-optimization/58960
24641         * haifa-sched.c (alloc_global_sched_pressure_data): New,
24642         factored out from ...
24643         (sched_init): ... here.
24644         (free_global_sched_pressure_data): New, factored out from ...
24645         (sched_finish): ... here.
24646         * sched-int.h (free_global_sched_pressure_data): Declare.
24647         * sched-rgn.c (nr_regions_initial): New static global.
24648         (haifa_find_rgns): Initialize it.
24649         (schedule_region): Disable sched-pressure for the newly
24650         generated regions.
24652 2014-02-17  Richard Biener  <rguenther@suse.de>
24654         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
24655         release SSA defs of pattern stmts.
24657 2014-02-17  Richard Biener  <rguenther@suse.de>
24659         * tree-inline.c (expand_call_inline): Release the virtual
24660         operand defined by the call we are about to inline.
24662 2014-02-17  Richard Biener  <rguenther@suse.de>
24664         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
24666 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
24667             Ilya Tocar  <ilya.tocar@intel.com>
24669         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
24670         arguments order in builtin.
24671         (_mm512_permutexvar_epi64): Ditto.
24672         (_mm512_mask_permutexvar_epi64): Ditto
24673         (_mm512_maskz_permutexvar_epi32): Ditto
24674         (_mm512_permutexvar_epi32): Ditto
24675         (_mm512_mask_permutexvar_epi32): Ditto
24677 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24679         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
24680         (p8_vmrgow): Likewise.
24682 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24684         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
24685         endian targets.
24687 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
24689         PR target/60203
24690         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
24691         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
24692         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
24693         using direct move instructions on ISA 2.07.  Also adjust
24694         instruction length for 64-bit.
24695         (mov<mode>_64bit, TFmode/TDmode): Likewise.
24696         (mov<mode>_32bit, TFmode/TDmode): Likewise.
24698 2014-02-15  Alan Modra  <amodra@gmail.com>
24700         PR target/58675
24701         PR target/57935
24702         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
24703         find_replacement on parts of insn rtl that might be reloaded.
24705 2014-02-15  Richard Biener  <rguenther@suse.de>
24707         PR tree-optimization/60183
24708         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
24709         (tree_ssa_phiprop): Calculate and free post-dominators.
24711 2014-02-14  Jeff Law  <law@redhat.com>
24713         PR rtl-optimization/60131
24714         * ree.c (get_extended_src_reg): New function.
24715         (combine_reaching_defs): Use it rather than assuming location of REG.
24716         (find_and_remove_re): Verify first operand of extension is
24717         a REG before adding the insns to the copy list.
24719 2014-02-14  Roland McGrath  <mcgrathr@google.com>
24721         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
24722         * configure: Regenerated.
24723         * config.in: Regenerated.
24724         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
24725         instead of ASM_SHORT.
24727 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
24728             Richard Earnshaw  <rearnsha@arm.com>
24730         PR rtl-optimization/59535
24731         * lra-constraints.c (process_alt_operands): Encourage alternative
24732         when unassigned pseudo class is superset of the alternative class.
24733         (inherit_reload_reg): Don't inherit when optimizing for code size.
24734         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
24735         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
24736         modes not less than 4 for Thumb1.
24738 2014-02-14  Kyle McMartin  <kyle@redhat.com>
24740         PR pch/60010
24741         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
24743 2014-02-14  Richard Biener  <rguenther@suse.de>
24745         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
24746         (get_frame_arg): Drop the assert with langhook types_compatible_p.
24747         Do not strip INDIRECT_REFs.
24749 2014-02-14  Richard Biener  <rguenther@suse.de>
24751         PR lto/60179
24752         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
24753         DECL_FUNCTION_SPECIFIC_TARGET.
24754         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
24755         * tree-streamer-out.c (pack_ts_target_option): Remove.
24756         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
24757         (write_ts_function_decl_tree_pointers): Do not stream
24758         DECL_FUNCTION_SPECIFIC_TARGET.
24759         * tree-streamer-in.c (unpack_ts_target_option): Remove.
24760         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
24761         (lto_input_ts_function_decl_tree_pointers): Do not stream
24762         DECL_FUNCTION_SPECIFIC_TARGET.
24764 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
24766         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
24767         (get_initial_def_for_induction, vectorizable_induction): Ignore
24768         debug stmts when looking for exit_phi.
24769         (vectorizable_live_operation): Fix up condition.
24771 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
24773         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
24774         nreverse() because it changes the content of original tree list.
24776 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
24778         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
24779         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
24781 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
24783         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
24784         GNU coding standards.
24786 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
24788         PR debug/60152
24789         * dwarf2out.c (gen_subprogram_die): Don't call
24790         add_calling_convention_attribute if subr_die is old_die.
24792 2014-02-13  Sharad Singhai  <singhai@google.com>
24794         * doc/optinfo.texi: Fix order of nodes.
24796 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
24798         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
24799         operands[2], not operands[3].
24801 2014-02-13  Richard Biener  <rguenther@suse.de>
24803         PR bootstrap/59878
24804         * doc/install.texi (ISL): Update recommended version to 0.12.2,
24805         mention the possibility of an in-tree build.
24806         (CLooG): Update recommended version to 0.18.1, mention the
24807         possibility of an in-tree build and clarify that the ISL
24808         bundled with CLooG does not work.
24810 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
24812         PR target/43546
24813         * expr.c (compress_float_constant): If x is a hard register,
24814         extend into a pseudo and then move to x.
24816 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24818         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
24819         caused by bad second argument to warning_at() with -mhotpatch and
24820         nested functions (e.g. with gfortran).
24822 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
24824         * opts.c (option_name): Remove "enabled by default" rider.
24826 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
24828         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
24830 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
24831             Uros Bizjak  <ubizjak@gmail.com>
24833         PR target/60151
24834         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
24835         * configure: Regenerated.
24837 2014-02-12  Richard Biener  <rguenther@suse.de>
24839         * vec.c (vec_prefix::calculate_allocation): Move as
24840         inline variant to vec.h.
24841         (vec_prefix::calculate_allocation_1): New out-of-line version.
24842         * vec.h (vec_prefix::calculate_allocation_1): Declare.
24843         (vec_prefix::m_has_auto_buf): Rename to ...
24844         (vec_prefix::m_using_auto_storage): ... this.
24845         (vec_prefix::calculate_allocation): Inline the easy cases
24846         and dispatch to calculate_allocation_1 which doesn't need the
24847         prefix address.
24848         (va_heap::reserve): Use gcc_checking_assert.
24849         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
24850         m_using_auto_storage.
24851         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
24852         member and adjust.
24853         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
24854         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
24855         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
24857 2014-02-12  Richard Biener  <rguenther@suse.de>
24859         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
24860         when we found a dependence.
24862 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
24864         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
24865         common code...
24866         (maybe_fold_stmt): ... into this new function.
24867         * omp-low.c (lower_omp): Update comment.
24869         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
24870         last use.
24872         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
24873         dereference.
24875 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
24877         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
24878         identifiers in comments.
24879         (cortexa53_extra_costs): Likewise.
24880         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
24881         (cortexa7_extra_costs): Likewise.
24882         (cortexa12_extra_costs): Likewise.
24883         (cortexa15_extra_costs): Likewise.
24884         (v7m_extra_costs): Likewise.
24886 2014-02-12  Richard Biener  <rguenther@suse.de>
24888         PR middle-end/60092
24889         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
24890         of posix_memalign being successful.
24891         (lower_stmt): Restrict lowering of posix_memalign to when
24892         -ftree-bit-ccp is enabled.
24894 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
24896         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
24897         arg_loc.
24898         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
24900 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
24902         PR rtl-optimization/60116
24903         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
24904         other_insn once the combination has been validated.
24906 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
24908         PR lto/59468
24909         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
24910         and wrapper.
24911         * ipa-devirt.c: Include demangle.h
24912         (odr_violation_reported): New static variable.
24913         (add_type_duplicate): Update odr_violations.
24914         (maybe_record_node): Add completep parameter; update it.
24915         (record_target_from_binfo): Add COMPLETEP parameter;
24916         update it as needed.
24917         (possible_polymorphic_call_targets_1): Likewise.
24918         (struct polymorphic_call_target_d): Add nonconstruction_targets;
24919         rename FINAL to COMPLETE.
24920         (record_targets_from_bases): Sanity check we found the binfo;
24921         fix COMPLETEP updating.
24922         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
24923         parameter, fix computing of COMPLETEP.
24924         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
24925         at LTO time do demangling.
24926         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
24927         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
24928         parameter.
24929         (gimple_get_virt_method_for_binfo): Likewise.
24930         * gimple-fold.h (gimple_get_virt_method_for_binfo,
24931         gimple_get_virt_method_for_vtable): Update prototypes.
24933 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
24935         PR target/49008
24936         * genautomata.c (add_presence_absence): Fix typo with
24937         {final_}presence_list.
24939 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24941         PR target/60137
24942         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
24943         for VSX/Altivec vectors that land in GPR registers.
24945 2014-02-11  Richard Henderson  <rth@redhat.com>
24946             Jakub Jelinek  <jakub@redhat.com>
24948         PR debug/59776
24949         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
24950         around drhs if type conversion to lacc->type is not useless.
24952 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24954         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
24955         tuning struct.
24956         (cortex-a57.cortex-a53): Likewise.
24957         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
24959 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24961         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
24962         arm_restrict_it.
24964 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
24966         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
24967         add_options_for_arm_vfp3.
24969 2014-02-11  Jeff Law  <law@redhat.com>
24971         PR middle-end/54041
24972         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
24973         object with an undesirable mode.
24975 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24977         PR libgomp/60107
24978         * config/i386/sol2-9.h: New file.
24979         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
24980         *-*-solaris2.9*): Use it.
24982 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
24984         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
24985         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
24987 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
24989         * config/microblaze/microblaze.c: Extend mcpu version format
24991 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
24993         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
24995 2014-02-10  Richard Henderson  <rth@redhat.com>
24997         PR target/59927
24998         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
24999         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
25000         ms-abi vs -mno-accumulate-outgoing-args.
25001         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
25002         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
25003         respect to ms-abi.
25005 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25007         PR middle-end/60080
25008         * cfgexpand.c (expand_asm_operands): Attach source location to
25009         ASM_INPUT rtx objects.
25010         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
25012 2014-02-10  Nick Clifton  <nickc@redhat.com>
25014         * config/mn10300/mn10300.c (popcount): New function.
25015         (mn10300_expand_prologue): Include saved registers in stack usage
25016         count.
25018 2014-02-10  Jeff Law  <law@redhat.com>
25020         PR middle-end/52306
25021         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
25022         when changing the SET_DEST of a prior insn to avoid an input reload.
25024 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25026         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
25027         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
25028         -mcall-openbsd, or -mcall-linux.
25029         (CC1_ENDIAN_BIG_SPEC): Remove.
25030         (CC1_ENDIAN_LITTLE_SPEC): Remove.
25031         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25032         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
25033         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
25034         and %cc1_endian_default.
25035         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25037 2014-02-10  Richard Biener  <rguenther@suse.de>
25039         PR tree-optimization/60115
25040         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
25041         MEM_REF handling.  Properly verify that the accesses are not
25042         out of the objects bound.
25044 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25046         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
25047         coretex to cortex.
25049 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
25051         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
25052         proper constants and fix formatting.
25053         (possible_polymorphic_call_targets): Fix formatting.
25055 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
25056             Ilya Tocar  <ilya.tocar@intel.com>
25058         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
25059         (_mm512_loadu_epi32): Renamed into...
25060         (_mm512_loadu_si512): This.
25061         (_mm512_storeu_epi32): Renamed into...
25062         (_mm512_storeu_si512): This.
25063         (_mm512_maskz_ceil_ps): Removed.
25064         (_mm512_maskz_ceil_pd): Ditto.
25065         (_mm512_maskz_floor_ps): Ditto.
25066         (_mm512_maskz_floor_pd): Ditto.
25067         (_mm512_floor_round_ps): Ditto.
25068         (_mm512_floor_round_pd): Ditto.
25069         (_mm512_ceil_round_ps): Ditto.
25070         (_mm512_ceil_round_pd): Ditto.
25071         (_mm512_mask_floor_round_ps): Ditto.
25072         (_mm512_mask_floor_round_pd): Ditto.
25073         (_mm512_mask_ceil_round_ps): Ditto.
25074         (_mm512_mask_ceil_round_pd): Ditto.
25075         (_mm512_maskz_floor_round_ps): Ditto.
25076         (_mm512_maskz_floor_round_pd): Ditto.
25077         (_mm512_maskz_ceil_round_ps): Ditto.
25078         (_mm512_maskz_ceil_round_pd): Ditto.
25079         (_mm512_expand_pd): Ditto.
25080         (_mm512_expand_ps): Ditto.
25081         * config/i386/i386.c (ix86_builtins): Remove
25082         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
25083         (bdesc_args): Ditto.
25084         * config/i386/predicates.md (const1256_operand): New.
25085         (const_1_to_2_operand): Ditto.
25086         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25087         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25088         (*avx512pf_gatherpf<mode>sf): Ditto.
25089         (avx512pf_gatherpf<mode>df): Ditto.
25090         (*avx512pf_gatherpf<mode>df_mask): Ditto.
25091         (*avx512pf_gatherpf<mode>df): Ditto.
25092         (avx512pf_scatterpf<mode>sf): Ditto.
25093         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25094         (*avx512pf_scatterpf<mode>sf): Ditto.
25095         (avx512pf_scatterpf<mode>df): Ditto.
25096         (*avx512pf_scatterpf<mode>df_mask): Ditto.
25097         (*avx512pf_scatterpf<mode>df): Ditto.
25098         (avx512f_expand<mode>): Removed.
25099         (<shift_insn><mode>3<mask_name>): Change predicate type.
25101 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
25103         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
25104         not at the end of datarefs vector use ordered_remove to avoid
25105         reordering datarefs vector.
25107         PR c/59984
25108         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
25109         mark local addressable non-static vars as GOVD_PRIVATE
25110         instead of GOVD_LOCAL.
25111         * omp-low.c (lower_omp_for): Move gimple_bind_vars
25112         and BLOCK_VARS of gimple_bind_block to new_stmt rather
25113         than copying them.
25115         PR middle-end/60092
25116         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
25117         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
25118         assume_aligned or alloc_align attributes.
25119         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
25120         arguments.  Handle also assume_aligned and alloc_align attributes.
25121         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
25122         calls to functions with assume_aligned or alloc_align attributes.
25123         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
25125 2014-02-08  Terry Guo  <terry.guo@arm.com>
25127         * doc/invoke.texi: Document ARM -march=armv7e-m.
25129 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
25131         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
25132         flag on __cilkrts_rethrow builtin.
25134         PR ipa/60026
25135         * ipa-cp.c (determine_versionability): Fail at -O0
25136         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
25137         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
25139         Revert:
25140         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
25142         PR ipa/60026
25143         * tree-inline.c (copy_forbidden): Fail for
25144         __attribute__((optimize (0))) functions.
25146 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
25148         * varpool.c: Include pointer-set.h.
25149         (varpool_remove_unreferenced_decls): Variables in other partitions
25150         will not be output; be however careful to not lose information
25151         about partitioning.
25153 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
25155         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
25156         lookup in the vtable constructor.
25158 2014-02-07  Jeff Law  <law@redhat.com>
25160         PR target/40977
25161         * config/m68k/m68k.md (ashldi_extsi): Turn into a
25162         define_insn_and_split.
25164         * ipa-inline.c (inline_small_functions): Fix typos.
25166 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25168         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
25169         (s390_can_use_return_insn): Declare.
25170         * config/s390/s390.h (EPILOGUE_USES): Define.
25171         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
25172         instructions.
25173         (s390_chunkify_start): Handle return JUMP_LABELs.
25174         (s390_early_mach): Emit a main_pool instruction on the entry edge.
25175         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
25176         (s390_can_use_return_insn): New functions.
25177         (s390_fix_long_loop_prediction): Handle conditional returns.
25178         (TARGET_SET_UP_BY_PROLOGUE): Define.
25179         * config/s390/s390.md (ANY_RETURN): New code iterator.
25180         (*creturn, *csimple_return, return, simple_return): New patterns.
25182 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25184         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
25185         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
25186         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
25187         REG_CFA_RESTORE list when deciding not to restore a register.
25189 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25191         * config/s390/s390.c: Include tree-pass.h and context.h.
25192         (s390_early_mach): New function, split out from...
25193         (s390_emit_prologue): ...here.
25194         (pass_data_s390_early_mach): New pass structure.
25195         (pass_s390_early_mach): New class.
25196         (s390_option_override): Create and register early_mach pass.
25197         Move to end of file.
25199 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25201         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
25202         to match for the exit block.
25204 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25206         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
25207         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
25208         Reject misaligned operands.
25210 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25212         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
25214 2014-02-07  Richard Biener  <rguenther@suse.de>
25216         PR middle-end/60092
25217         * gimple-low.c (lower_builtin_posix_memalign): New function.
25218         (lower_stmt): Call it to lower posix_memalign in a way
25219         to make alignment info accessible.
25221 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
25223         PR c++/60082
25224         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
25225         __builtin_setjmp_receiver.
25227 2014-02-07  Richard Biener  <rguenther@suse.de>
25229         PR middle-end/60092
25230         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
25231         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
25232         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25233         Handle BUILT_IN_POSIX_MEMALIGN.
25234         (find_func_clobbers): Likewise.
25235         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
25236         (call_may_clobber_ref_p_1): Likewise.
25238 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
25240         PR ipa/59918
25241         * ipa-devirt.c (record_target_from_binfo): Remove overactive
25242         sanity check.
25244 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
25246         PR ipa/59469
25247         * lto-cgraph.c (lto_output_node): Use
25248         symtab_get_symbol_partitioning_class.
25249         (lto_output_varpool_node): likewise.
25250         (symtab_get_symbol_partitioning_class): Move here from
25251         lto/lto-partition.c
25252         * cgraph.h (symbol_partitioning_class): Likewise.
25253         (symtab_get_symbol_partitioning_class): Declare.
25255 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
25257         * ggc.h (ggc_internal_cleared_alloc): New macro.
25258         * vec.h (vec_safe_copy): Handle memory stats.
25259         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
25260         * target-globals.c (save_target_globals): Likewise.
25262 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
25264         PR target/60077
25265         * expr.c (emit_move_resolve_push): Export; be bit more selective
25266         on when to clear alias set.
25267         * expr.h (emit_move_resolve_push): Declare.
25268         * function.h (struct function): Add tail_call_marked.
25269         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
25270         * config/i386/i386-protos.h (ix86_expand_push): Remove.
25271         * config/i386/i386.md (TImode move expander): De not call
25272         ix86_expand_push.
25273         (FP push expanders): Preserve memory attributes.
25274         * config/i386/sse.md (push<mode>1): Remove.
25275         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
25276         (ix86_expand_push): Remove.
25277         * config/i386/mmx.md (push<mode>1): Remove.
25279 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
25281         PR rtl-optimization/60030
25282         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
25283         lopart with paradoxical subreg before shifting it up by hprec.
25285 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25287         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
25288         Remove extra newline at end of file.
25289         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
25290         (arm_issue_rate): Handle cortexa57.
25291         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
25292         (cortex-a57.cortex-a53): Likewise.
25294 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
25296         PR target/59575
25297         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
25298         don't record in REG_FRAME_RELATED_EXPR registers not set in that
25299         bitmask.
25300         (arm_expand_prologue): Adjust all callers.
25301         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
25302         info, registers also at the lowest numbered registers side.  Use
25303         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
25304         XEXP.
25306         PR debug/59992
25307         * var-tracking.c (adjust_mems): Before adding a SET to
25308         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
25310 2014-02-06  Alan Modra  <amodra@gmail.com>
25312         PR target/60032
25313         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
25314         change SDmode to DDmode when lra_in_progress.
25316 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
25318         PR middle-end/59150
25319         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
25320         free_data_ref on the dr first, and before goto again also set dr
25321         to the next dr.  For simd_lane_access, free old datarefs[i] before
25322         overwriting it.  For get_vectype_for_scalar_type failure, don't
25323         free_data_ref if simd_lane_access.
25325         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
25327         PR target/60062
25328         * tree.h (opts_for_fn): New inline function.
25329         (opt_for_fn): Define.
25330         * config/i386/i386.c (ix86_function_regparm): Use
25331         opt_for_fn (decl, optimize) instead of optimize.
25333 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25335         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
25336         for SYMBOL_REF in large memory model.
25338 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25340         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
25341         and crypto support.
25342         (cortex-a57): Likewise.
25343         (cortex-a57.cortex-a53): Likewise.
25345 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
25346             Kugan Vivekanandarajah  <kuganv@linaro.org>
25348         * config/arm/arm.c (arm_vector_alignment_reachable): Check
25349         unaligned_access.
25350         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
25352 2014-02-06  Richard Biener  <rguenther@suse.de>
25354         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
25355         set_loop_copy and initialize_original_copy_tables.
25357 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
25359         * config/aarch64/aarch64-simd.md
25360         (aarch64_ashr_simddi): Change QI to SI.
25362 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
25363             Jakub Jelinek  <jakub@redhat.com>
25365         PR middle-end/60013
25366         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
25367         of the dataflow.
25369 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25371         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
25372         CODE_FOR_altivec_vpku[hw]um to
25373         CODE_FOR_altivec_vpku[hw]um_direct.
25374         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
25375         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
25376         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
25377         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
25379 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25381         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
25382         generation for -maltivec=be.
25383         (altivec_vsumsws): Simplify redundant test.
25385 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25387         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
25388         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
25389         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
25390         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
25391         gen_altivec_vpkuwum.
25392         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
25393         BYTES_BIG_ENDIAN.
25394         (altivec_vpks<VI_char>ss): Likewise.
25395         (altivec_vpks<VI_char>us): Likewise.
25396         (altivec_vpku<VI_char>us): Likewise.
25397         (altivec_vpku<VI_char>um): Likewise.
25398         (altivec_vpku<VI_char>um_direct): New (copy of
25399         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
25400         internal use).
25401         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
25402         target is little endian and -maltivec=be is not specified.
25403         (*altivec_vupkhs<VU_char>_direct): New (copy of
25404         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
25405         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
25406         target is little endian and -maltivec=be is not specified.
25407         (*altivec_vupkls<VU_char>_direct): New (copy of
25408         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
25409         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
25410         little endian and -maltivec=be is not specified.
25411         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
25412         little endian and -maltivec=be is not specified.
25414 2014-02-05  Richard Henderson  <rth@redhat.com>
25416         PR debug/52727
25417         * combine-stack-adj.c: Revert r206943.
25418         * sched-int.h (struct deps_desc): Add last_args_size.
25419         * sched-deps.c (init_deps): Initialize it.
25420         (sched_analyze_insn): Add OUTPUT dependencies between insns that
25421         contain REG_ARGS_SIZE notes.
25423 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
25425         * lto-cgraph.c (asm_nodes_output): Make global.
25426         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
25427         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
25428         (driver_handle_option): Handle OPT_fwpa.
25430 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
25432         PR ipa/59947
25433         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
25434         a comment typo and formatting issue.  If odr_hash hasn't been
25435         created, return vNULL and set *completep to false.
25437         PR middle-end/57499
25438         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
25439         bb with no successors.
25441 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
25443         PR target/59718
25444         * doc/invoke.texi (-march): Clarify documentation for ARM.
25445         (-mtune): Likewise.
25446         (-mcpu): Likewise.
25448 2014-02-05  Richard Biener  <rguenther@suse.de>
25450         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
25451         when not vectorizing because of too many alias checks.
25452         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25453         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
25455 2014-02-05  Nick Clifton  <nickc@redhat.com>
25457         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
25458         accept extended registers in any mode when compiling for the MN10300.
25460 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
25462         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
25463         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
25464         sanitization attributes.
25465         (can_inline_edge_p): Likewise.
25466         (sanitize_attrs_match_for_inline_p): New function.
25468 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
25470         * ipa-prop.c (detect_type_change): Shor circuit testing of
25471         type changes on THIS pointer.
25473 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
25475         PR target/59777
25476         * config/pa/pa.c (legitimize_tls_address): Return original address
25477         if not passed a SYMBOL_REF rtx.
25478         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
25479         addresses.
25480         (pa_emit_move_sequence): Simplify TLS source operands.
25481         (pa_legitimate_constant_p): Reject all TLS constants.
25482         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
25483         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
25485 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
25487         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
25488         groups when we know they are controlled by LTO.
25489         * varasm.c (default_binds_local_p_1): If object is in other partition,
25490         it will be resolved locally.
25492 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25494         * config/host-linux.c (linux_gt_pch_use_address): Don't
25495         use SSIZE_MAX because it is not always defined.
25497 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
25499         PR bootstrap/59913
25500         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
25501         threshold for pseudo splitting.
25502         (update_ebb_live_info): Process call argument hard registers and
25503         hard registers from insn definition too.
25504         (max_small_class_regs_num): New constant.
25505         (inherit_in_ebb): Update live hard regs through EBBs.  Update
25506         reloads_num only for small register classes.  Don't split for
25507         outputs of jumps.
25509 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
25511         PR ipa/60058
25512         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
25513         is non-null.
25515 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
25517         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
25518         visibility is safe.
25520 2014-02-04  Marek Polacek  <polacek@redhat.com>
25522         * gdbinit.in (pel): Define.
25524 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25526         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
25527         behavior.
25529 2014-02-04  Richard Biener  <rguenther@suse.de>
25531         PR lto/59723
25532         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
25533         in function context local.
25534         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
25535         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
25536         similar to LTO_imported_decl_ref.
25538 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
25540         PR tree-optimization/60002
25541         * cgraphclones.c (build_function_decl_skip_args): Clear
25542         DECL_LANG_SPECIFIC.
25544         PR tree-optimization/60023
25545         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
25546         false to gsi_replace.
25547         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
25548         has been in some EH region and vec_stmt could throw, add
25549         vec_stmt into the same EH region.
25550         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
25551         has no lhs, ignore it.
25552         * internal-fn.c (expand_MASK_LOAD): Likewise.
25554         PR ipa/60026
25555         * tree-inline.c (copy_forbidden): Fail for
25556         __attribute__((optimize (0))) functions.
25558         PR other/58712
25559         * omp-low.c (simd_clone_struct_copy): If from->inbranch
25560         is set, copy one less argument.
25561         (expand_simd_clones): Don't subtract clone_info->inbranch
25562         from simd_clone_struct_alloc argument.
25564         PR rtl-optimization/57915
25565         * recog.c (simplify_while_replacing): If all unary/binary/relational
25566         operation arguments are constant, attempt to simplify those.
25568         PR middle-end/59261
25569         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
25570         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
25572 2014-02-04  Richard Biener  <rguenther@suse.de>
25574         PR tree-optimization/60012
25575         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
25576         TBAA disambiguation to all DDRs.
25578 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25580         PR target/59788
25581         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
25582         (LINK_SPEC): Use it for -shared, -shared-libgcc.
25584 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25586         PR ipa/59882
25587         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
25589 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25591         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
25592         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
25594 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25596         PR ipa/59831
25597         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
25598         to figure out targets of polymorphic calls with known decl.
25599         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25600         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
25601         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
25602         (get_polymorphic_call_info): ... here.
25603         (get_polymorphic_call_info_from_invariant): New function.
25605 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25607         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
25608         lookup via vtable pointer; check for type consistency
25609         and turn inconsitent facts into UNREACHABLE.
25610         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25611         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
25612         type inconsistent querries; return UNREACHABLE instead.
25614 2014-02-03  Richard Henderson  <rth@twiddle.net>
25616         PR tree-opt/59924
25617         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
25618         already processed this node.
25619         (normalize_one_pred_1): Pass along mark_set.
25620         (normalize_one_pred): Create and destroy a pointer_set_t.
25621         (normalize_one_pred_chain): Likewise.
25623 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
25625         PR gcov-profile/58602
25626         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
25628 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25630         PR ipa/59831
25631         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
25632         -fno-devirtualize; try to devirtualize by the knowledge of
25633         virtual table pointer given by aggregate propagation.
25634         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25635         (ipa_print_node_jump_functions): Dump also offset that
25636         is relevant for polymorphic calls.
25637         (determine_known_aggregate_parts): Add arg_type parameter; use it
25638         instead of determining the type from pointer type.
25639         (ipa_compute_jump_functions_for_edge): Update call of
25640         determine_known_aggregate_parts.
25641         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
25642         (gimple_get_virt_method_for_binfo): ... here; simplify using
25643         vtable_pointer_value_to_vtable.
25644         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
25645         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
25646         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
25647         (vtable_pointer_value_to_vtable): Break out from ...; handle also
25648         POINTER_PLUS_EXPR.
25649         (vtable_pointer_value_to_binfo): ... here.
25650         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
25652 2014-02-03  Teresa Johnson  <tejohnson@google.com>
25654         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
25655         redef of outer loop index variable.
25657 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
25659         PR c++/53017
25660         PR c++/59211
25661         * doc/extend.texi (Function Attributes): Typo.
25663 2014-02-03  Cong Hou  <congh@google.com>
25665         PR tree-optimization/60000
25666         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
25667         if the vectorized statement is a store.  A store statement can only
25668         appear at the end of pattern statements.
25670 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
25672         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
25673         (ix86_option_override_internal): Default long double to 64-bit for
25674         32-bit Bionic and to 128-bit for 64-bit Bionic.
25676         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
25677         TARGET_LONG_DOUBLE_128 is true.
25678         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
25680         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
25681         (mlong-double-64): Negate -mlong-double-128.
25682         (mlong-double-128): New option.
25684         * config/i386/i386-c.c (ix86_target_macros): Define
25685         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
25687         * doc/invoke.texi: Document -mlong-double-128.
25689 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
25691         PR rtl-optimization/60024
25692         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
25694 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
25696         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
25698 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
25700         PR rtl-optimization/57662
25701         * sel-sched.c (code_motion_path_driver): Do not mark already not
25702         existing blocks in the visiting bitmap.
25704 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
25706         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
25707         on the insn being emitted.
25709 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
25710             Will Deacon  <will.deacon@arm.com>
25712         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
25714 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25716         * config/arm/arm-tables.opt: Regenerate.
25718 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25720         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
25721         for vector types other than V16QImode.
25722         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
25723         define_expand, and call altivec_expand_vec_perm_le when producing
25724         code with little endian element order.
25725         (*altivec_vperm_<mode>_internal): New insn having previous
25726         behavior of altivec_vperm_<mode>.
25727         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
25728         altivec_expand_vec_perm_le when producing code with little endian
25729         element order.
25730         (*altivec_vperm_<mode>_uns_internal): New insn having previous
25731         behavior of altivec_vperm_<mode>_uns.
25733 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25735         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
25736         (altivec_vsumsws): Add handling for -maltivec=be with a little
25737         endian target.
25738         (altivec_vsumsws_direct): New.
25739         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
25740         gen_altivec_vsumsws.
25742 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
25744         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
25745         vtable_pointer_value_to_binfo): New functions.
25746         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
25747         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
25749 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
25751         * config/nios2/nios2.md (load_got_register): Initialize GOT
25752         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
25753         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
25755 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
25757         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
25758         preserverd by passthrough, do not propagate the type.
25760 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
25762         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
25763         (mips_atomic_assign_expand_fenv): New function.
25764         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
25766 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
25768         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
25769         (__builtin_mips_set_fcsr): Likewise.
25770         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
25771         MIPS_USI_FTYPE_VOID.
25772         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
25773         (mips16_expand_set_fcsr): Likewise.
25774         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
25775         (mips16_set_fcsr_stub): Likewise.
25776         (mips16_get_fcsr_one_only_stub): New class.
25777         (mips16_set_fcsr_one_only_stub): Likewise.
25778         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
25779         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
25780         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
25781         (hard_float): New availability predicate.
25782         (mips_builtins): Add get_fcsr and set_fcsr.
25783         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
25784         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
25785         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
25786         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
25787         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
25788         patterns.
25790 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
25792         * config/mips/mips.c (mips_one_only_stub): New class.
25793         (mips_need_mips16_rdhwr_p): Replace with...
25794         (mips16_rdhwr_stub): ...this new variable.
25795         (mips16_stub_call_address): New function.
25796         (mips16_rdhwr_one_only_stub): New class.
25797         (mips_expand_thread_pointer): Use mips16_stub_call_address.
25798         (mips_output_mips16_rdhwr): Delete.
25799         (mips_finish_stub): New function.
25800         (mips_code_end): Use it to handle rdhwr stubs.
25802 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
25804         PR target/60017
25805         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
25806         when calculating size of integer atomic types.
25808 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
25810         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
25812 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
25814         PR tree-optimization/60003
25815         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
25816         * profile.c (branch_prob): Use gimple_call_builtin_p
25817         to check for BUILT_IN_SETJMP_RECEIVER.
25818         * tree-inline.c (copy_bb): Call notice_special_calls.
25820 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
25822         PR bootstrap/59985
25823         * lra-constraints.c (process_alt_operands): Update reload_sum only
25824         on the first pass.
25826 2014-01-31  Richard Henderson  <rth@redhat.com>
25828         PR middle-end/60004
25829         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
25830         until after else_eh is processed.
25832 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
25834         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
25835         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
25836         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
25837         in smmintrin.h, remove them.
25838         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
25839         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
25840         * config/i386/i386.md (ROUND_SAE): Fix value.
25841         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
25842         (const48_operand): New.
25843         * config/i386/subst.md (round), (round_expand): Use
25844         const_4_or_8_to_11_operand.
25845         (round_saeonly), (round_saeonly_expand): Use const48_operand.
25847 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
25849         * config/i386/constraints.md (Yk): Swap meaning with k.
25850         * config/i386/i386.md (movhi_internal): Change Yk to k.
25851         (movqi_internal): Ditto.
25852         (*k<logic><mode>): Ditto.
25853         (*andhi_1): Ditto.
25854         (*andqi_1): Ditto.
25855         (kandn<mode>): Ditto.
25856         (*<code>hi_1): Ditto.
25857         (*<code>qi_1): Ditto.
25858         (kxnor<mode>): Ditto.
25859         (kortestzhi): Ditto.
25860         (kortestchi): Ditto.
25861         (kunpckhi): Ditto.
25862         (*one_cmplhi2_1): Ditto.
25863         (*one_cmplqi2_1): Ditto.
25864         * config/i386/sse.md (): Change k to Yk.
25865         (avx512f_load<mode>_mask): Ditto.
25866         (avx512f_blendm<mode>): Ditto.
25867         (avx512f_store<mode>_mask): Ditto.
25868         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
25869         (avx512f_storedqu<mode>_mask): Ditto.
25870         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
25871         Ditto.
25872         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
25873         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
25874         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
25875         (avx512f_maskcmp<mode>3): Ditto.
25876         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
25877         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
25878         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
25879         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
25880         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
25881         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
25882         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
25883         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
25884         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
25885         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
25886         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
25887         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
25888         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
25889         (vec_extract_lo_<mode>_maskm): Ditto.
25890         (vec_extract_hi_<mode>_maskm): Ditto.
25891         (avx512f_vternlog<mode>_mask): Ditto.
25892         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
25893         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
25894         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
25895         (avx512f_<code>v8div16qi2_mask): Ditto.
25896         (avx512f_<code>v8div16qi2_mask_store): Ditto.
25897         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
25898         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
25899         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
25900         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
25901         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25902         (*avx512pf_gatherpf<mode>df_mask): Ditto.
25903         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25904         (*avx512pf_scatterpf<mode>df_mask): Ditto.
25905         (avx512cd_maskb_vec_dupv8di): Ditto.
25906         (avx512cd_maskw_vec_dupv16si): Ditto.
25907         (avx512f_vpermi2var<mode>3_maskz): Ditto.
25908         (avx512f_vpermi2var<mode>3_mask): Ditto.
25909         (avx512f_vpermi2var<mode>3_mask): Ditto.
25910         (avx512f_vpermt2var<mode>3_maskz): Ditto.
25911         (*avx512f_gathersi<mode>): Ditto.
25912         (*avx512f_gathersi<mode>_2): Ditto.
25913         (*avx512f_gatherdi<mode>): Ditto.
25914         (*avx512f_gatherdi<mode>_2): Ditto.
25915         (*avx512f_scattersi<mode>): Ditto.
25916         (*avx512f_scatterdi<mode>): Ditto.
25917         (avx512f_compress<mode>_mask): Ditto.
25918         (avx512f_compressstore<mode>_mask): Ditto.
25919         (avx512f_expand<mode>_mask): Ditto.
25920         * config/i386/subst.md (mask): Change k to Yk.
25921         (mask_scalar_merge): Ditto.
25922         (sd): Ditto.
25924 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
25926         * doc/extend.texi (Vector Extensions): Document ?: in C++.
25928 2014-01-31  Richard Biener  <rguenther@suse.de>
25930         PR middle-end/59990
25931         * builtins.c (fold_builtin_memory_op): Make sure to not
25932         use a floating-point mode or a boolean or enumeral type for
25933         the copy operation.
25935 2014-01-30  DJ Delorie  <dj@redhat.com>
25937         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
25938         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
25939         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
25940         whenever main() has an epilogue.
25942 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25944         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
25945         unused variable "field".
25946         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
25947         (vsx_mergeh_<mode>): Likewise.
25948         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
25949         (altivec_vmrghh): Likewise.
25950         (altivec_vmrghw): Likewise.
25951         (altivec_vmrglb): Likewise.
25952         (altivec_vmrglh): Likewise.
25953         (altivec_vmrglw): Likewise.
25954         (altivec_vspltb): Add missing uses.
25955         (altivec_vsplth): Likewise.
25956         (altivec_vspltw): Likewise.
25957         (altivec_vspltsf): Likewise.
25959 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
25961         PR target/59923
25962         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
25963         frame related instructions.
25965 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
25967         PR rtl-optimization/59959
25968         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
25969         any reload of register whose subreg is invalid.
25971 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
25973         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
25974         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
25975         Add missing return type - void.
25977 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25979         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
25980         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
25981         remove element index adjustment for endian (now handled in vsx.md
25982         and altivec.md).
25983         (altivec_expand_vec_perm_const): Use
25984         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
25985         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
25986         (vsx_xxspltw_<mode>): Adjust element index for little endian.
25987         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
25988         define_expand and a new define_insn *altivec_vspltb_internal;
25989         adjust for -maltivec=be on a little endian target.
25990         (altivec_vspltb_direct): New.
25991         (altivec_vsplth): Divide into a define_expand and a new
25992         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
25993         little endian target.
25994         (altivec_vsplth_direct): New.
25995         (altivec_vspltw): Divide into a define_expand and a new
25996         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
25997         little endian target.
25998         (altivec_vspltw_direct): New.
25999         (altivec_vspltsf): Divide into a define_expand and a new
26000         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
26001         a little endian target.
26003 2014-01-30  Richard Biener  <rguenther@suse.de>
26005         PR tree-optimization/59993
26006         * tree-ssa-forwprop.c (associate_pointerplus): Check we
26007         can propagate form the earlier stmt and avoid the transform
26008         when the intermediate result is needed.
26010 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
26012         * README.Portability: Fix typo.
26014 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
26016         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
26017         comparison_operator with ordered_comparison_operator.
26019 2014-01-30  Nick Clifton  <nickc@redhat.com>
26021         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
26022         Rename to mn10300_store_multiple_regs.
26023         * config/mn10300/mn10300.c: Likewise.
26024         * config/mn10300/mn10300.md (store_movm): Fix typo: call
26025         store_multiple_regs.
26026         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
26027         Call mn10300_store_multiple_regs.
26029 2014-01-30  Nick Clifton  <nickc@redhat.com>
26030             DJ Delorie  <dj@redhat.com>
26032         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
26033         %fp 2 to keep registers after it properly word-aligned.
26034         (rl78_alloc_physical_registers_umul): Handle the case where both
26035         input operands are the same.
26037 2014-01-30  Richard Biener  <rguenther@suse.de>
26039         PR tree-optimization/59903
26040         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
26041         check properly.
26043 2014-01-30  Jason Merrill  <jason@redhat.com>
26045         PR c++/59633
26046         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
26048         PR c++/59645
26049         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
26051 2014-01-30  Richard Biener  <rguenther@suse.de>
26053         PR tree-optimization/59951
26054         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
26056 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
26058         PR target/59784
26059         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
26060         SFmode to DFmode case.
26062 2014-01-29  DJ Delorie  <dj@redhat.com>
26064         * config/msp430/msp430.opt (-minrt): New.
26065         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
26066         if -minrt given.
26067         (ENDFILE_SPEC): Likewise.
26069 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
26071         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
26072         (estimate_function_body_sizes): Use it.
26074 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
26076         PR c++/58561
26077         * dwarf2out.c (is_cxx_auto): New.
26078         (is_base_type): Use it.
26079         (gen_type_die_with_usage): Likewise.
26081 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26083         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
26084         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
26085         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
26086         -maltivec=be with LE targets.
26087         (vsx_mergeh_<mode>): Likewise.
26088         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
26089         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
26090         (altivec_vmrghb): Replace with define_expand and new
26091         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
26092         (altivec_vmrghb_direct): New define_insn.
26093         (altivec_vmrghh): Replace with define_expand and new
26094         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
26095         (altivec_vmrghh_direct): New define_insn.
26096         (altivec_vmrghw): Replace with define_expand and new
26097         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
26098         (altivec_vmrghw_direct): New define_insn.
26099         (*altivec_vmrghsf): Adjust for endianness.
26100         (altivec_vmrglb): Replace with define_expand and new
26101         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
26102         (altivec_vmrglb_direct): New define_insn.
26103         (altivec_vmrglh): Replace with define_expand and new
26104         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
26105         (altivec_vmrglh_direct): New define_insn.
26106         (altivec_vmrglw): Replace with define_expand and new
26107         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
26108         (altivec_vmrglw_direct): New define_insn.
26109         (*altivec_vmrglsf): Adjust for endianness.
26110         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26111         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26112         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26113         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26114         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26115         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26116         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26117         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26119 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26121         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
26122         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
26123         whitespace.
26125 2014-01-29  Richard Biener  <rguenther@suse.de>
26127         PR tree-optimization/58742
26128         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
26129         associate_pointerplus_align.
26130         (associate_pointerplus_diff): New function.
26131         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
26132         and associate_pointerplus_diff.
26134 2014-01-29  Richard Biener  <rguenther@suse.de>
26136         * lto-streamer.h (LTO_major_version): Bump to 3.
26137         (LTO_minor_version): Reset to 0.
26139 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
26141         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
26142         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
26143         (arm_file_start): Generate correct asm header for armv7ve.
26144         * config/arm/bpabi.h: Add multilib support for armv7ve.
26145         * config/arm/driver-arm.c: Change the architectures of cortex-a7
26146         and cortex-a15 to armv7ve.
26147         * config/arm/t-aprofile: Add multilib support for armv7ve.
26148         * doc/invoke.texi: Document -march=armv7ve.
26150 2014-01-29  Richard Biener  <rguenther@suse.de>
26152         PR tree-optimization/58742
26153         * tree-ssa-forwprop.c (associate_plusminus): Return true
26154         if we changed sth, defer EH cleanup to ...
26155         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
26156         (simplify_mult): New function.
26158 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
26160         PR middle-end/59917
26161         PR tree-optimization/59920
26162         * tree.c (build_common_builtin_nodes): Remove
26163         __builtin_setjmp_dispatcher initialization.
26164         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
26165         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
26166         instead of gsi_after_labels + manually skipping debug stmts.
26167         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
26168         ignore bbs with IFN_ABNORMAL_DISPATCHER.
26169         * tree-inline.c (copy_edges_for_bb): Remove
26170         can_make_abnormal_goto argument, instead add abnormal_goto_dest
26171         argument.  Ignore computed_goto_p stmts.  Don't call
26172         make_abnormal_goto_edges.  If a call might need abnormal edges
26173         for non-local gotos, see if it already has an edge to
26174         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
26175         with true argument, don't do anything then, otherwise add
26176         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
26177         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
26178         caller.
26179         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
26180         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
26181         (lower_stmt): Don't set data->calls_builtin_setjmp.
26182         (lower_builtin_setjmp): Adjust comment.
26183         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
26184         * tree-cfg.c (found_computed_goto): Remove.
26185         (factor_computed_gotos): Remove.
26186         (make_goto_expr_edges): Return bool, true for computed gotos.
26187         Don't call make_abnormal_goto_edges.
26188         (build_gimple_cfg): Don't set found_computed_goto, don't call
26189         factor_computed_gotos.
26190         (computed_goto_p): No longer static.
26191         (make_blocks): Don't set found_computed_goto.
26192         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
26193         (make_edges): If make_goto_expr_edges returns true, push bb
26194         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
26195         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
26196         vector.  Record mapping between bbs and OpenMP regions if there
26197         are any, adjust make_gimple_omp_edges caller.  Call
26198         handle_abnormal_edges.
26199         (make_abnormal_goto_edges): Remove.
26200         * tree-cfg.h (make_abnormal_goto_edges): Remove.
26201         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
26202         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
26203         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
26204         * internal-fn.def (ABNORMAL_DISPATCHER): New.
26205         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
26206         filling *region also set *region_idx to (*region)->entry->index.
26208         PR other/58712
26209         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
26210         For REGs set ORIGINAL_REGNO.
26212 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
26214         * doc/md.texi: Mention that a target shouldn't implement
26215         vec_widen_(s|u)mul_even/odd pair if it is less efficient
26216         than hi/lo pair.
26218 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
26220         PR tree-optimization/59594
26221         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
26222         a copy of the datarefs vector rather than the vector itself.
26224 2014-01-28  Jason Merrill  <jason@redhat.com>
26226         PR c++/53756
26227         * dwarf2out.c (auto_die): New static.
26228         (gen_type_die_with_usage): Handle C++1y 'auto'.
26229         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
26230         on definition.
26232 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
26234         PR target/59672
26235         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
26236         (SPEC_X32): Likewise.
26237         (SPEC_64): Likewise.
26238         * config/i386/i386.c (ix86_option_override_internal): Turn off
26239         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
26240         for TARGET_16BIT.
26241         (x86_file_start): Output .code16gcc for TARGET_16BIT.
26242         * config/i386/i386.h (TARGET_16BIT): New macro.
26243         (TARGET_16BIT_P): Likewise.
26244         * config/i386/i386.opt: Add m16.
26245         * doc/invoke.texi: Document -m16.
26247 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
26249         PR preprocessor/59935
26250         * input.c (location_get_source_line): Bail out on when line number
26251         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
26253 2014-01-28  Richard Biener  <rguenther@suse.de>
26255         PR tree-optimization/58742
26256         * tree-ssa-forwprop.c (associate_plusminus): Handle
26257         pointer subtraction of the form (T)(P + A) - (T)P.
26259 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26261         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
26262         at const_int_cost.
26264 2014-01-28  Richard Biener  <rguenther@suse.de>
26266         Revert
26267         2014-01-28  Richard Biener  <rguenther@suse.de>
26269         PR rtl-optimization/45364
26270         PR rtl-optimization/59890
26271         * var-tracking.c (local_get_addr_clear_given_value): Handle
26272         already cleared slot.
26273         (val_reset): Handle not allocated local_get_addr_cache.
26274         (vt_find_locations): Use post-order on the inverted CFG.
26276 2014-01-28  Richard Biener  <rguenther@suse.de>
26278         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
26280 2014-01-28  Richard Biener  <rguenther@suse.de>
26282         PR rtl-optimization/45364
26283         PR rtl-optimization/59890
26284         * var-tracking.c (local_get_addr_clear_given_value): Handle
26285         already cleared slot.
26286         (val_reset): Handle not allocated local_get_addr_cache.
26287         (vt_find_locations): Use post-order on the inverted CFG.
26289 2014-01-28  Alan Modra  <amodra@gmail.com>
26291         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
26292         * configure.ac <recursive call for build != host>: Define
26293         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
26294         and LD_FOR_BUILD too.
26295         * configure: Regenerate.
26297 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
26299         * config/i386/i386.c (get_builtin_code_for_version): Separate
26300         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
26301         Broadwell from Haswell.
26303 2014-01-27  Steve Ellcey  <sellcey@mips.com>
26305         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26306         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
26307         * config/mips/mips.c (mips_option_override): Change setting
26308         of TARGET_DSP.
26309         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
26310         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
26311         Change from Mask to Var.
26313 2014-01-27  Jeff Law  <law@redhat.com>
26315         * ipa-inline.c (inline_small_functions): Fix typo.
26317 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
26319         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
26320         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
26321         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
26322         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
26323         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
26324         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
26325         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
26326         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
26327         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
26328         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
26329         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
26330         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
26331         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
26332         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
26333         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
26334         (_mm512_storeu_epi64): Ditto.
26335         (_mm512_cmpge_epi32_mask): Ditto.
26336         (_mm512_cmpge_epu32_mask): Ditto.
26337         (_mm512_cmpge_epi64_mask): Ditto.
26338         (_mm512_cmpge_epu64_mask): Ditto.
26339         (_mm512_cmple_epi32_mask): Ditto.
26340         (_mm512_cmple_epu32_mask): Ditto.
26341         (_mm512_cmple_epi64_mask): Ditto.
26342         (_mm512_cmple_epu64_mask): Ditto.
26343         (_mm512_cmplt_epi32_mask): Ditto.
26344         (_mm512_cmplt_epu32_mask): Ditto.
26345         (_mm512_cmplt_epi64_mask): Ditto.
26346         (_mm512_cmplt_epu64_mask): Ditto.
26347         (_mm512_cmpneq_epi32_mask): Ditto.
26348         (_mm512_cmpneq_epu32_mask): Ditto.
26349         (_mm512_cmpneq_epi64_mask): Ditto.
26350         (_mm512_cmpneq_epu64_mask): Ditto.
26351         (_mm512_expand_pd): Ditto.
26352         (_mm512_expand_ps): Ditto.
26353         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
26354         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
26355         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
26356         * config/i386/i386.c (ix86_builtins): Add
26357         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
26358         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
26359         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
26360         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
26361         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
26362         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
26363         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
26364         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
26365         IX86_BUILTIN_PMOVUSQW512_MEM.
26366         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
26367         __builtin_ia32_pmovsqd512mem_mask,
26368         __builtin_ia32_pmovqd512mem_mask,
26369         __builtin_ia32_pmovusqw512mem_mask,
26370         __builtin_ia32_pmovsqw512mem_mask,
26371         __builtin_ia32_pmovqw512mem_mask,
26372         __builtin_ia32_pmovusdw512mem_mask,
26373         __builtin_ia32_pmovsdw512mem_mask,
26374         __builtin_ia32_pmovdw512mem_mask,
26375         __builtin_ia32_pmovqb512mem_mask,
26376         __builtin_ia32_pmovusqb512mem_mask,
26377         __builtin_ia32_pmovsqb512mem_mask,
26378         __builtin_ia32_pmovusdb512mem_mask,
26379         __builtin_ia32_pmovsdb512mem_mask,
26380         __builtin_ia32_pmovdb512mem_mask.
26381         (bdesc_args): Add __builtin_ia32_expanddf512,
26382         __builtin_ia32_expandsf512.
26383         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
26384         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
26385         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
26386         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
26387         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
26388         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
26389         (avx512f_<code>v8div16qi2_mask_store): This.
26390         (avx512f_expand<mode>): New.
26392 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
26394         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
26395         New.
26396         (_mm512_mask_prefetch_i64gather_pd): Ditto.
26397         (_mm512_prefetch_i32scatter_pd): Ditto.
26398         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
26399         (_mm512_prefetch_i64scatter_pd): Ditto.
26400         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
26401         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
26402         (_mm512_mask_prefetch_i64gather_ps): Ditto.
26403         (_mm512_prefetch_i32scatter_ps): Ditto.
26404         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
26405         (_mm512_prefetch_i64scatter_ps): Ditto.
26406         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
26407         * config/i386/i386-builtin-types.def: Define
26408         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
26409         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
26410         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
26411         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
26412         IX86_BUILTIN_SCATTERPFQPD.
26413         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
26414         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
26415         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
26416         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
26417         __builtin_ia32_scatterpfqps.
26418         (ix86_expand_builtin): Expand new built-ins.
26419         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
26420         fix memory access data type.
26421         (*avx512pf_gatherpf<mode>_mask): Ditto.
26422         (*avx512pf_gatherpf<mode>): Ditto.
26423         (avx512pf_scatterpf<mode>): Ditto.
26424         (*avx512pf_scatterpf<mode>_mask): Ditto.
26425         (*avx512pf_scatterpf<mode>): Ditto.
26426         (GATHER_SCATTER_SF_MEM_MODE): New.
26427         (avx512pf_gatherpf<mode>df): Ditto.
26428         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26429         (*avx512pf_scatterpf<mode>df): Ditto.
26431 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
26433         PR bootstrap/59934
26434         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
26435         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
26436         reached.
26438 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
26440         * common/config/arm/arm-common.c
26441         (arm_rewrite_mcpu): Handle multiple names.
26442         * config/arm/arm.h
26443         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26445 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
26447         * gimple-builder.h (create_gimple_tmp): Delete.
26449 2014-01-27  Christian Bruel  <christian.bruel@st.com>
26451         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
26452         words comparisons.
26454 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
26456         * config/pa/pa.md (call): Generate indirect long calls to non-local
26457         functions when outputing 32-bit code.
26458         (call_value): Likewise except for special call to buggy powf function.
26460         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
26461         portable runtime and PIC indirect calls.
26462         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
26463         and PIC call sequences.  Use ldo instead of blr to set return register
26464         in PIC call sequence.
26466 2014-01-25  Walter Lee  <walt@tilera.com>
26468         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
26469         avoid clobbering a live register.
26471 2014-01-25  Walter Lee  <walt@tilera.com>
26473         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
26474         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
26475         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
26476         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
26478 2014-01-25  Walter Lee  <walt@tilera.com>
26480         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
26481         arguments on even registers.
26482         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
26483         STACK_BOUNDARY.
26484         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
26485         (BIGGEST_ALIGNMENT): Ditto.
26486         (BIGGEST_FIELD_ALIGNMENT): Ditto.
26488 2014-01-25  Walter Lee  <walt@tilera.com>
26490         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
26491         insns before bundling.
26492         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
26494 2014-01-25  Walter Lee  <walt@tilera.com>
26496         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
26497         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
26498         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
26500 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
26502         * config/mips/constraints.md (kl): Delete.
26503         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
26504         define expands, using...
26505         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
26506         instructions for MIPS16.
26507         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
26508         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
26510 2014-01-25  Walter Lee  <walt@tilera.com>
26512         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
26513         (clzdi2): Ditto.
26514         (ffsdi2): Ditto.
26516 2014-01-25  Walter Lee  <walt@tilera.com>
26518         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
26519         (TARGET_EXPAND_TO_RTL_HOOK): Define.
26521 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
26523         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
26524         Handle XOR.
26526 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
26528         * print-rtl.c (in_call_function_usage): New var.
26529         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
26530         EXPR_LIST mode as mode and not as reg note name.
26532         PR middle-end/59561
26533         * cfgloopmanip.c (copy_loop_info): If
26534         loop->warned_aggressive_loop_optimizations, make sure
26535         the flag is set in target loop too.
26537 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
26539         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
26540         flag_cilkplus.
26541         * builtins.def: Likewise.
26542         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
26543         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
26544         * ira.c (ira_setup_eliminable_regset): Likewise.
26545         * omp-low.c (gate_expand_omp): Likewise.
26546         (execute_lower_omp): Likewise.
26547         (diagnose_sb_0): Likewise.
26548         (gate_diagnose_omp_blocks): Likewise.
26549         (simd_clone_clauses_extract): Likewise.
26550         (gate): Likewise.
26552 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26554         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
26555         correction for little endian...
26556         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
26557         here.
26559 2014-01-24  Jeff Law  <law@redhat.com>
26561         PR tree-optimization/59919
26562         * tree-vrp.c (find_assert_locations_1): Do not register asserts
26563         for non-returning calls.
26565 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
26567         * common/config/aarch64/aarch64-common.c
26568         (aarch64_rewrite_mcpu): Handle multiple names.
26569         * config/aarch64/aarch64.h
26570         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26572 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
26574         * input.c (add_file_to_cache_tab): Handle the case where fopen
26575         returns NULL.
26577 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
26579         PR target/59929
26580         * config/i386/i386.md (pushsf splitter): Get stack adjustment
26581         from push operand if code of push isn't PRE_DEC.
26583 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
26585         PR target/59909
26586         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
26587         -mquad-memory-atomic.  Update -mquad-memory documentation to say
26588         it is only used for non-atomic loads/stores.
26590         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
26591         -mquad-memory or -mquad-memory-atomic switches.
26593         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
26594         -mquad-memory-atomic to ISA 2.07 support.
26596         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
26597         to separate support of normal quad word memory operations (ldq, stq)
26598         from the atomic quad word memory operations.
26600         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
26601         support to separate non-atomic quad word operations from atomic
26602         quad word operations.  Disable non-atomic quad word operations in
26603         little endian mode so that we don't have to swap words after the
26604         load and before the store.
26605         (quad_load_store_p): Add comment about atomic quad word support.
26606         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
26607         options printed with -mdebug=reg.
26609         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
26610         -mquad-memory-atomic as the test for whether we have quad word
26611         atomic instructions.
26612         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
26613         or -mp8-vector are used, allow byte/half-word atomic operations.
26615         * config/rs6000/sync.md (load_lockedti): Insure that the address
26616         is a proper indexed or indirect address for the lqarx instruction.
26617         On little endian systems, swap the hi/lo registers after the lqarx
26618         instruction.
26619         (load_lockedpti): Use indexed_or_indirect_operand predicate to
26620         insure the address is valid for the lqarx instruction.
26621         (store_conditionalti): Insure that the address is a proper indexed
26622         or indirect address for the stqcrx. instruction.  On little endian
26623         systems, swap the hi/lo registers before doing the stqcrx.
26624         instruction.
26625         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
26626         insure the address is valid for the stqcrx. instruction.
26628         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26629         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
26630         type of quad memory support is available.
26632 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
26634         PR regression/59915
26635         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
26636         there is a danger of looping.
26638 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
26640         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26641         force flag_ira_loop_pressure if set via command line.
26643 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
26645         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
26646         (ashr_simd): New builtin handling DI mode.
26647         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
26648         (aarch64_sshr_simddi): New match pattern.
26649         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
26650         (vshrd_n_s64): Likewise.
26651         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
26653 2014-01-23  Nick Clifton  <nickc@redhat.com>
26655         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
26656         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
26657         favour of mcu specific scripts.
26658         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
26659         430x multilibs.
26661 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
26662             Alex Velenko  <Alex.Velenko@arm.com>
26664         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
26665         (vaddv_s16): Likewise.
26666         (vaddv_s32): Likewise.
26667         (vaddv_u8): Likewise.
26668         (vaddv_u16): Likewise.
26669         (vaddv_u32): Likewise.
26670         (vaddvq_s8): Likewise.
26671         (vaddvq_s16): Likewise.
26672         (vaddvq_s32): Likewise.
26673         (vaddvq_s64): Likewise.
26674         (vaddvq_u8): Likewise.
26675         (vaddvq_u16): Likewise.
26676         (vaddvq_u32): Likewise.
26677         (vaddvq_u64): Likewise.
26678         (vaddv_f32): Likewise.
26679         (vaddvq_f32): Likewise.
26680         (vaddvq_f64): Likewise.
26681         (vmaxv_f32): Likewise.
26682         (vmaxv_s8): Likewise.
26683         (vmaxv_s16): Likewise.
26684         (vmaxv_s32): Likewise.
26685         (vmaxv_u8): Likewise.
26686         (vmaxv_u16): Likewise.
26687         (vmaxv_u32): Likewise.
26688         (vmaxvq_f32): Likewise.
26689         (vmaxvq_f64): Likewise.
26690         (vmaxvq_s8): Likewise.
26691         (vmaxvq_s16): Likewise.
26692         (vmaxvq_s32): Likewise.
26693         (vmaxvq_u8): Likewise.
26694         (vmaxvq_u16): Likewise.
26695         (vmaxvq_u32): Likewise.
26696         (vmaxnmv_f32): Likewise.
26697         (vmaxnmvq_f32): Likewise.
26698         (vmaxnmvq_f64): Likewise.
26699         (vminv_f32): Likewise.
26700         (vminv_s8): Likewise.
26701         (vminv_s16): Likewise.
26702         (vminv_s32): Likewise.
26703         (vminv_u8): Likewise.
26704         (vminv_u16): Likewise.
26705         (vminv_u32): Likewise.
26706         (vminvq_f32): Likewise.
26707         (vminvq_f64): Likewise.
26708         (vminvq_s8): Likewise.
26709         (vminvq_s16): Likewise.
26710         (vminvq_s32): Likewise.
26711         (vminvq_u8): Likewise.
26712         (vminvq_u16): Likewise.
26713         (vminvq_u32): Likewise.
26714         (vminnmv_f32): Likewise.
26715         (vminnmvq_f32): Likewise.
26716         (vminnmvq_f64): Likewise.
26718 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
26720         * config/aarch64/aarch64-simd.md
26721         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
26722         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
26723         (*aarch64_mul3_elt<mode>): Likewise.
26724         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
26725         (*aarch64_mul3_elt_to_64v2df): Likewise.
26726         (*aarch64_mla_elt<mode>): Likewise.
26727         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
26728         (*aarch64_mls_elt<mode>): Likewise.
26729         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
26730         (*aarch64_fma4_elt<mode>): Likewise.
26731         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
26732         (*aarch64_fma4_elt_to_64v2df): Likewise.
26733         (*aarch64_fnma4_elt<mode>): Likewise.
26734         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
26735         (*aarch64_fnma4_elt_to_64v2df): Likewise.
26736         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
26737         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
26738         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
26739         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
26740         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
26741         (aarch64_sqdmull_lane<mode>_internal): Likewise.
26742         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
26744 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
26746         * config/aarch64/aarch64-simd.md
26747         (aarch64_be_checked_get_lane<mode>): New define_expand.
26748         * config/aarch64/aarch64-simd-builtins.def
26749         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
26750         New builtin definition.
26751         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
26752         Use new safe be builtin.
26754 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
26756         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
26757         New define_insn.
26758         (aarch64_be_st1<mode>): Likewise.
26759         (aarch_ld1<VALL:mode>): Define_expand modified.
26760         (aarch_st1<VALL:mode>): Likewise.
26761         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
26762         (UNSPEC_ST1): Likewise.
26764 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
26766         * config/microblaze/microblaze.md: Add trap insn and attribute
26768 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
26770         PR preprocessor/58580
26771         * input.h (location_get_source_line): Take an additional line_size
26772         parameter.
26773         (void diagnostics_file_cache_fini): Declare new function.
26774         * input.c (struct fcache): New type.
26775         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
26776         New static constants.
26777         (diagnostic_file_cache_init, total_lines_num)
26778         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
26779         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
26780         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
26781         (get_next_line, read_next_line, goto_next_line, read_line_num):
26782         New static function definitions.
26783         (diagnostic_file_cache_fini): New function.
26784         (location_get_source_line): Take an additional output line_len
26785         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
26786         read_line_num.
26787         * diagnostic.c (diagnostic_finish): Call
26788         diagnostic_file_cache_fini.
26789         (adjust_line): Take an additional input parameter for the length
26790         of the line, rather than calculating it with strlen.
26791         (diagnostic_show_locus): Adjust the use of
26792         location_get_source_line and adjust_line with respect to their new
26793         signature.  While displaying a line now, do not stop at the first
26794         null byte.  Rather, display the zero byte as a space and keep
26795         going until we reach the size of the line.
26796         * Makefile.in: Add vec.o to OBJS-libcommon
26798 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
26799             Ilya Tocar  <ilya.tocar@intel.com>
26801         * config/i386/avx512fintrin.h (_mm512_kmov): New.
26802         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
26803         (__builtin_ia32_kmov16): Ditto.
26804         * config/i386/i386.md (UNSPEC_KMOV): New.
26805         (kmovw): Ditto.
26807 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
26809         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
26810         (_mm512_storeu_si512): Ditto.
26812 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
26814         PR target/52125
26815         * rtl.h (get_referenced_operands): Declare.
26816         * recog.c (get_referenced_operands): New function.
26817         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
26818         operands have been referenced when recording LO_SUM references.
26820 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
26822         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
26824 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
26826         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
26827         Enable for generic and recent AMD targets.
26829 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
26831         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
26832         ARG_SIZE note when adjustment was eliminated.
26834 2014-01-22  Jeff Law  <law@redhat.com>
26836         PR tree-optimization/59597
26837         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
26838         in file.  Accept new argument REGISTERING and use it to modify
26839         dump output appropriately.
26840         (register_jump_thread): Corresponding changes.
26841         (mark_threaded_blocks): Reinstate code to cancel unprofitable
26842         thread paths involving joiner blocks.  Add code to dump cancelled
26843         jump threading paths.
26845 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
26847         PR rtl-optimization/59477
26848         * lra-constraints.c (inherit_in_ebb): Process call for living hard
26849         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
26851 2014-01-22  Tom Tromey  <tromey@redhat.com>
26853         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
26854         PARAMS.
26855         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
26857 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
26859         PR rtl-optimization/59896
26860         * lra-constraints.c (process_alt_operands): Check unused note for
26861         matched operands of insn with no output reloads.
26863 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
26865         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
26866         (mips_move_from_gpr_cost): Likewise.
26868 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
26870         PR rtl-optimization/59858
26871         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
26872         ira_class_hard_regs_num.
26873         (process_alt_operands): Increase reject for dying matched operand.
26875 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
26877         PR target/59003
26878         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
26879         smaller than size, perform several stores or loads and stores
26880         at dst + count - size to store or copy all of size bytes, rather
26881         than just last modesize bytes.
26883 2014-01-20  DJ Delorie  <dj@redhat.com>
26885         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
26886         that CLOBBERs are REGs before propogating their values.
26888 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
26890         PR middle-end/59789
26891         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
26892         (cgraph_inline_failed_type): New function.
26893         * cgraph.h (DEFCIFCODE): Add type.
26894         (cgraph_inline_failed_type_t): New enum.
26895         (cgraph_inline_failed_type): New prototype.
26896         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
26897         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26898         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
26899         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
26900         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
26901         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
26902         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
26903         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
26904         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
26905         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
26906         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
26907         OPTIMIZATION_MISMATCH.
26908         * tree-inline.c (expand_call_inline): Emit errors during
26909         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
26911 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
26913         PR target/59685
26914         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
26915         mode attribute in insn output.
26917 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
26919         * output.h (output_constant): Delete.
26920         * varasm.c (output_constant): Make private.
26922 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
26924         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
26926 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
26928         PR middle-end/59860
26929         * tree.h (fold_builtin_strcat): New prototype.
26930         * builtins.c (fold_builtin_strcat): No longer static.  Add len
26931         argument, if non-NULL, don't call c_strlen.  Optimize
26932         directly into __builtin_memcpy instead of __builtin_strcpy.
26933         (fold_builtin_2): Adjust fold_builtin_strcat caller.
26934         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
26936 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
26938         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26939         for SImode_address_operand operands, having only a REG argument.
26941 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26943         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
26944         loader name using mbig-endian.
26945         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
26947 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
26949         * doc/invoke.texi (-march): Clarify documentation for AArch64.
26950         (-mtune): Likewise.
26951         (-mcpu): Likewise.
26953 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
26955         * config/aarch64/aarch64-protos.h
26956         (aarch64_cannot_change_mode_class_ptr): Declare.
26957         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
26958         aarch64_cannot_change_mode_class_ptr): New.
26959         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
26960         backend hook aarch64_cannot_change_mode_class.
26962 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
26964         * common/config/aarch64/aarch64-common.c
26965         (aarch64_handle_option): Don't handle any option order logic here.
26966         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
26967         selected_cpu, warn on architecture version mismatch.
26968         (aarch64_override_options): Fix parsing order for option strings.
26970 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26971             Iain Sandoe  <iain@codesourcery.com>
26973         PR bootstrap/59496
26974         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
26975         warning.  Amend comment to reflect current functionality.
26977 2014-01-20  Richard Biener  <rguenther@suse.de>
26979         PR middle-end/59860
26980         * builtins.c (fold_builtin_strcat): Remove case better handled
26981         by tree-ssa-strlen.c.
26983 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
26985         * config/aarch64/aarch64.opt
26986         (mcpu, march, mtune): Make case-insensitive.
26988 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
26990         PR target/59880
26991         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26992         if operands[1] is a REG or ZERO_EXTEND of a REG.
26994 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
26996         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
26998 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
27000         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
27001         long non-pic millicode calls.
27003 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27005         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
27007 2014-01-19  Kito Cheng  <kito@0xlab.org>
27009         * builtins.c (expand_movstr): Check movstr expand done or fail.
27011 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27012             H.J. Lu  <hongjiu.lu@intel.com>
27014         PR target/59379
27015         * config/i386/i386.md (*lea<mode>): Zero-extend return register
27016         to DImode for zero-extended addresses.
27018 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
27020         PR rtl-optimization/57763
27021         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
27022         on the new indirect jump_insn and increment LABEL_NUSES (label).
27024 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
27026         PR bootstrap/59580
27027         PR bootstrap/59583
27028         * config.gcc (x86_archs): New variable.
27029         (x86_64_archs): Likewise.
27030         (x86_cpus): Likewise.
27031         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
27032         --with-arch/--with-cpu= options.
27033         Support --with-arch=/--with-cpu={nehalem,westmere,
27034         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
27036 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27038         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
27039         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
27041 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27043         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
27045 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
27047         PR target/58944
27048         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
27049         clear cpp_get_options (parse_in)->warn_unused_macros for
27050         ix86_target_macros_internal with cpp_define.
27052 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
27054         * jump.c (delete_related_insns): Keep (use (insn))s.
27055         * reorg.c (redundant_insn): Check for barriers too.
27057 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27059         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
27061 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
27063         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
27064         call to $$dyncall when TARGET_LONG_CALLS is true.
27066 2014-01-17  Jeff Law  <law@redhat.com>
27068         * ree.c (combine_set_extension): Temporarily disable test for
27069         changing number of hard registers.
27071 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
27073         PR middle-end/58125
27074         * ipa-inline-analysis.c (inline_free_summary):
27075         Do not free summary of aliases.
27077 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
27079         PR middle-end/59706
27080         * gimplify.c (gimplify_expr): Use create_tmp_var
27081         instead of create_tmp_var_raw.  If cond doesn't have
27082         integral type, don't add the IFN_ANNOTATE builtin at all.
27084 2014-01-17  Martin Jambor  <mjambor@suse.cz>
27086         PR ipa/59736
27087         * ipa-cp.c (prev_edge_clone): New variable.
27088         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
27089         Also resize prev_edge_clone vector.
27090         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
27091         (ipcp_edge_removal_hook): New function.
27092         (ipcp_driver): Register ipcp_edge_removal_hook.
27094 2014-01-17  Andrew Pinski  <apinski@cavium.com>
27095             Steve Ellcey  <sellcey@mips.com>
27097         PR target/59462
27098         * config/mips/mips.c (mips_print_operand): Check operand mode instead
27099         of operator mode.
27101 2014-01-17  Jeff Law  <law@redhat.com>
27103         PR middle-end/57904
27104         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
27105         so that pass_ccp runs first.
27107 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27109         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
27110         (ix86_adjust_cost): Use !TARGET_XXX.
27111         (do_reorder_for_imul): Likewise.
27112         (swap_top_of_ready_list): Likewise.
27113         (ix86_sched_reorder): Likewise.
27115 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27117         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27118         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
27119         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
27120         (intel_memset): New.  Duplicate slm_memset.
27121         (intel_cost): New.  Duplicate slm_cost.
27122         (m_INTEL): New macro.
27123         (processor_target_table): Add "intel".
27124         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
27125         with PROCESSOR_INTEL for "intel".
27126         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
27127         PROCESSOR_SILVERMONT.
27128         (ix86_issue_rate): Likewise.
27129         (ix86_adjust_cost): Likewise.
27130         (ia32_multipass_dfa_lookahead): Likewise.
27131         (swap_top_of_ready_list): Likewise.
27132         (ix86_sched_reorder): Likewise.
27133         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
27134         instead of TARGET_OPT_AGU.
27135         * config/i386/i386.h (TARGET_INTEL): New.
27136         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
27137         (processor_type): Add PROCESSOR_INTEL.
27138         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
27139         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
27141 2014-01-17  Marek Polacek  <polacek@redhat.com>
27143         PR c/58346
27144         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
27145         size is zero.
27147 2014-01-17  Richard Biener  <rguenther@suse.de>
27149         PR tree-optimization/46590
27150         * opts.c (default_options_table): Add entries for
27151         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
27152         all enabled at -O1 but not for -Og.
27153         * common.opt (fbranch-count-reg): Remove Init(1).
27154         (fmove-loop-invariants): Likewise.
27155         (ftree-pta): Likewise.
27157 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
27159         * config/i386/i386.c (ix86_data_alignment): For compatibility with
27160         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
27161         decls to at least the GCC 4.8 used alignments.
27163         PR fortran/59440
27164         * tree-nested.c (convert_nonlocal_reference_stmt,
27165         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
27166         of GIMPLE_BIND stmts, adjust associated decls.
27168 2014-01-17  Richard Biener  <rguenther@suse.de>
27170         PR tree-optimization/46590
27171         * vec.h (vec<>::bseach): New member function implementing
27172         binary search according to C89 bsearch.
27173         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
27174         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
27175         bitmap pointer again.  Make accesses_in_loop a flat array.
27176         (mem_ref_obstack): New global.
27177         (outermost_indep_loop): Adjust for mem_ref->stored changes.
27178         (mark_ref_stored): Likewise.
27179         (ref_indep_loop_p_2): Likewise.
27180         (set_ref_stored_in_loop): New helper function.
27181         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
27182         (memref_free): Adjust.
27183         (record_mem_ref_loc): Simplify.
27184         (gather_mem_refs_stmt): Adjust.
27185         (sort_locs_in_loop_postorder_cmp): New function.
27186         (analyze_memory_references): Sort accesses_in_loop after
27187         loop postorder number.
27188         (find_ref_loc_in_loop_cmp): New function.
27189         (for_all_locs_in_loop): Find relevant cluster of locs in
27190         accesses_in_loop and iterate without recursion.
27191         (execute_sm): Avoid uninit warning.
27192         (struct ref_always_accessed): Simplify.
27193         (ref_always_accessed::operator ()): Likewise.
27194         (ref_always_accessed_p): Likewise.
27195         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
27196         loop postorder numbers here.
27197         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
27198         numbers.
27200 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
27202         PR c++/57945
27203         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
27204         on decls for which assemble_alias has been called.
27206 2014-01-17  Nick Clifton  <nickc@redhat.com>
27208         * config/msp430/msp430.opt: (mcpu): New option.
27209         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
27210         (msp430_option_override): Parse target_cpu.  If the MCU name
27211         matches a generic string, clear target_mcu.
27212         (msp430_attr): Allow numeric interrupt values up to 63.
27213         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
27214         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
27215         option.
27216         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
27217         Add mcpu matches.
27218         * config/msp430/msp430.md (popm): Use %J rather than %I.
27219         (addsi3): Use msp430_nonimmediate_operand for operand 2.
27220         (addhi_cy_i): Use immediate_operand for operand 2.
27221         * doc/invoke.texi: Document -mcpu option.
27223 2014-01-17  Richard Biener  <rguenther@suse.de>
27225         PR rtl-optimization/38518
27226         * df.h (df_analyze_loop): Declare.
27227         * df-core.c: Include cfgloop.h.
27228         (df_analyze_1): Split out main part of df_analyze.
27229         (df_analyze): Adjust.
27230         (loop_inverted_post_order_compute): New function.
27231         (loop_post_order_compute): Likewise.
27232         (df_analyze_loop): New function avoiding whole-function
27233         postorder computes.
27234         * loop-invariant.c (find_defs): Use df_analyze_loop.
27235         (find_invariants): Adjust.
27236         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
27238 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
27240         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
27241         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
27243 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
27245         * ipa-ref.c (ipa_remove_stmt_references): Fix references
27246         traversal when removing references.
27248 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
27250         PR ipa/59775
27251         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
27253 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
27255         PR middle-end/56791
27256         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
27257         pushing a reload for an autoinc when we had previously reloaded an
27258         inner part of the address.
27260 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
27262         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
27263         field.
27264         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
27265         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
27266         when not giving up or versioning for alias only because of
27267         loop->safelen.
27268         (vect_analyze_data_ref_dependences): Set to true.
27269         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
27270         is a GIMPLE_PHI.
27271         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
27272         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
27273         to the condition.
27275         PR middle-end/58344
27276         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
27278         PR target/59839
27279         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
27280         operand 0 predicate for gathers, use a new pseudo as subtarget.
27282 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
27284         PR middle-end/59609
27285         * lra-constraints.c (process_alt_operands): Add printing debug info.
27286         Check absence of input/output reloads for matched operands too.
27288 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
27290         PR rtl-optimization/59835
27291         * ira.c (ira_init_register_move_cost): Increase cost for
27292         impossible modes.
27294 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
27296         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
27298 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
27300         PR target/59780
27301         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
27302         non-register objects.  Use gen_(high/low)part more consistently.
27303         Fix assertions.
27305 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
27307         PR target/59844
27308         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
27309         endian support, remove tests for WORDS_BIG_ENDIAN.
27310         (p8_mfvsrd_3_<mode>): Likewise.
27311         (reload_gpr_from_vsx<mode>): Likewise.
27312         (reload_gpr_from_vsxsf): Likewise.
27313         (p8_mfvsrd_4_disf): Likewise.
27315 2014-01-16  Richard Biener  <rguenther@suse.de>
27317         PR rtl-optimization/46590
27318         * lcm.c (compute_antinout_edge): Use postorder iteration.
27319         (compute_laterin): Use inverted postorder iteration.
27321 2014-01-16  Nick Clifton  <nickc@redhat.com>
27323         PR middle-end/28865
27324         * varasm.c (output_constant): Return the number of bytes actually
27325         emitted.
27326         (output_constructor_array_range): Update the field size with the
27327         number of bytes emitted by output_constant.
27328         (output_constructor_regular_field): Likewise.  Also do not
27329         complain if the total number of bytes emitted is now greater
27330         than the expected fieldpos.
27331         * output.h (output_constant): Update prototype and descriptive comment.
27333 2014-01-16  Marek Polacek  <polacek@redhat.com>
27335         PR middle-end/59827
27336         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
27337         it is error_mark_node.
27339 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
27341         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
27342         VALID_AVX256_REG_OR_OI_MODE.
27344 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
27346         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
27347         current procedure should be profiled.
27349 2014-01-15  Andrew Pinski  <apinski@cavium.com>
27351         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
27352         of moving from/to the STACK_REG register class.
27354 2014-01-15  Richard Henderson  <rth@redhat.com>
27356         PR debug/54694
27357         * reginfo.c (global_regs_decl): Globalize.
27358         * rtl.h (global_regs_decl): Declare.
27359         * ira.c (do_reload): Diagnose frame_pointer_needed and it
27360         reserved via global_regs.
27362 2014-01-15  Teresa Johnson  <tejohnson@google.com>
27364         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
27366 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
27368         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
27369         and vmulosh rather than call gen_vec_widen_smult_*.
27370         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
27371         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
27372         (vec_widen_smult_even_v16qi): Likewise.
27373         (vec_widen_umult_even_v8hi): Likewise.
27374         (vec_widen_smult_even_v8hi): Likewise.
27375         (vec_widen_umult_odd_v16qi): Likewise.
27376         (vec_widen_smult_odd_v16qi): Likewise.
27377         (vec_widen_umult_odd_v8hi): Likewise.
27378         (vec_widen_smult_odd_v8hi): Likewise.
27379         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
27380         vmuloub rather than call gen_vec_widen_umult_*.
27381         (vec_widen_umult_lo_v16qi): Likewise.
27382         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
27383         vmulosb rather than call gen_vec_widen_smult_*.
27384         (vec_widen_smult_lo_v16qi): Likewise.
27385         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
27386         rather than call gen_vec_widen_umult_*.
27387         (vec_widen_umult_lo_v8hi): Likewise.
27388         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
27389         rather than call gen_vec_widen_smult_*.
27390         (vec_widen_smult_lo_v8hi): Likewise.
27392 2014-01-15  Jeff Law  <law@redhat.com>
27394         PR tree-optimization/59747
27395         * ree.c (find_and_remove_re): Properly handle case where a second
27396         eliminated extension requires widening a copy created for elimination
27397         of a prior extension.
27398         (combine_set_extension): Ensure that the number of hard regs needed
27399         for a destination register does not change when we widen it.
27401 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27403         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
27404         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
27405         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
27406         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
27407         (avr-*-rtems*): Likewise.
27408         (bfin*-rtems*): Likewise.
27409         (moxie-*-rtems*): Likewise.
27410         (h8300-*-rtems*): Likewise.
27411         (i[34567]86-*-rtems*): Likewise.
27412         (lm32-*-rtems*): Likewise.
27413         (m32r-*-rtems*): Likewise.
27414         (m68k-*-rtems*): Likewise.
27415         (microblaze*-*-rtems*): Likewise.
27416         (mips*-*-rtems*): Likewise.
27417         (powerpc-*-rtems*): Likewise.
27418         (sh-*-rtems*): Likewise.
27419         (sparc-*-rtems*): Likewise.
27420         (sparc64-*-rtems*): Likewise.
27421         (v850-*-rtems*): Likewise.
27422         (m32c-*-rtems*): Likewise.
27424 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
27426         PR rtl-optimization/59511
27427         * ira.c (ira_init_register_move_cost): Use memory costs for some
27428         cases of register move cost calculations.
27429         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
27430         instead of BB frequency.
27431         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
27432         * lra-assigns.c (find_hard_regno_for): Ditto.
27434 2014-01-15  Richard Biener  <rguenther@suse.de>
27436         PR tree-optimization/59822
27437         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
27438         (vectorizable_load): Use it to hoist defs of uses of invariant
27439         loads out of the loop.
27441 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
27442             Kugan Vivekanandarajah  <kuganv@linaro.org>
27444         PR target/59695
27445         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
27446         truncation.
27448 2014-01-15  Richard Biener  <rguenther@suse.de>
27450         PR rtl-optimization/59802
27451         * lcm.c (compute_available): Use inverted postorder to seed
27452         the initial worklist.
27454 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27456         PR target/59803
27457         * config/s390/s390.c (s390_preferred_reload_class): Don't return
27458         ADDR_REGS for invalid symrefs in non-PIC code.
27460 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
27462         PR other/58712
27463         * builtins.c (determine_block_size): Initialize *probable_max_size
27464         even if len_rtx is CONST_INT.
27466 2014-01-14  Andrew Pinski  <apinski@cavium.com>
27468         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
27469         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
27470         (cortexa53_tunings): Likewise.
27471         (aarch64_sched_issue_rate): New function.
27472         (TARGET_SCHED_ISSUE_RATE): Define.
27474 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
27476         * ira-costs.c (find_costs_and_classes): Add missed
27477         ira_init_register_move_cost_if_necessary.
27479 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
27481         PR target/59787
27482         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
27484 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
27486         PR target/59794
27487         * config/i386/i386.c (type_natural_mode): Add a bool parameter
27488         to indicate if type is used for function return value.  Warn ABI
27489         change if the vector mode isn't available for function return value.
27490         (ix86_function_arg_advance): Pass false to type_natural_mode.
27491         (ix86_function_arg): Likewise.
27492         (ix86_gimplify_va_arg): Likewise.
27493         (function_arg_32): Don't warn ABI change.
27494         (ix86_function_value): Pass true to type_natural_mode.
27495         (ix86_return_in_memory): Likewise.
27496         (ix86_struct_value_rtx): Removed.
27497         (TARGET_STRUCT_VALUE_RTX): Likewise.
27499 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27501         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
27502         converting a conditional jump into a conditional return.
27504 2014-01-14  Richard Biener  <rguenther@suse.de>
27506         PR tree-optimization/58921
27507         PR tree-optimization/59006
27508         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
27509         hoisting invariant stmts.
27510         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
27511         invariant loads on the preheader edge if possible.
27513 2014-01-14  Joey Ye  <joey.ye@arm.com>
27515         * doc/plugin.texi (Building GCC plugins): Update to C++.
27517 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
27519         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
27520         (_mm_rcp28_round_ss): Ditto.
27521         (_mm_rsqrt28_round_sd): Ditto.
27522         (_mm_rsqrt28_round_ss): Ditto.
27523         (_mm_rcp28_sd): Ditto.
27524         (_mm_rcp28_ss): Ditto.
27525         (_mm_rsqrt28_sd): Ditto.
27526         (_mm_rsqrt28_ss): Ditto.
27527         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
27528         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
27529         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
27530         (IX86_BUILTIN_RCP28SD): Ditto.
27531         (IX86_BUILTIN_RCP28SS): Ditto.
27532         (IX86_BUILTIN_RSQRT28SD): Ditto.
27533         (IX86_BUILTIN_RSQRT28SS): Ditto.
27534         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
27535         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
27536         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
27537         (ix86_expand_special_args_builtin): Expand new FTYPE.
27538         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
27539         (srcp14<mode>): Make insn unary.
27540         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
27541         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
27542         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
27543         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
27544         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
27545         Fix rounding: make it SAE only.
27546         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27547         Ditto.
27548         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27549         Ditto.
27550         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
27551         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
27552         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
27553         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
27554         (round_saeonly_mask_scalar_operand4): Ditto.
27555         (round_saeonly_mask_scalar_op3): Ditto.
27556         (round_saeonly_mask_scalar_op4): Ditto.
27558 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27560         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27561         Implement -maltivec=be for vec_insert and vec_extract.
27563 2014-01-10  DJ Delorie  <dj@redhat.com>
27565         * config/msp430/msp430.md (call_internal): Don't allow memory
27566         references with SP as the base register.
27567         (call_value_internal): Likewise.
27568         * config/msp430/constraints.md (Yc): New.  For memory references
27569         that don't use SP as a base register.
27571         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
27572         "an integer without a # prefix"
27573         * config/msp430/msp430.md (epilogue_helper): Use it.
27575 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
27577         PR target/59617
27578         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
27579         AVX512F gather builtins.
27580         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
27581         on gather decls with INTEGER_TYPE masktype.
27582         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
27583         directly into the builtin rather than hoisting it before loop.
27585         PR tree-optimization/59387
27586         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
27587         (scev_const_prop): If folded_casts and type has undefined overflow,
27588         use force_gimple_operand instead of force_gimple_operand_gsi and
27589         for each added stmt if it is assign with
27590         arith_code_with_undefined_signed_overflow, call
27591         rewrite_to_defined_overflow.
27592         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
27593         gimple-fold.h instead.
27594         (arith_code_with_undefined_signed_overflow,
27595         rewrite_to_defined_overflow): Moved to ...
27596         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
27597         rewrite_to_defined_overflow): ... here.  No longer static.
27598         Include gimplify-me.h.
27599         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
27600         rewrite_to_defined_overflow): New prototypes.
27602 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27604         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
27606 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
27608         * builtins.c (get_object_alignment_2): Minor tweak.
27609         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
27611 2014-01-13  Christian Bruel  <christian.bruel@st.com>
27613         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
27614         optimized non constant lengths.
27616 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
27618         PR libgomp/59194
27619         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
27620         load as __atomic_load_N if possible.
27622 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
27624         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
27625         target parameter.
27626         (rs6000_expand_builtin): Adjust call.
27628 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
27630         PR target/58115
27631         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
27632         * config/rs6000/rs6000.c: Include target-globals.h.
27633         (rs6000_set_current_function): Instead of doing target_reinit
27634         unconditionally, use save_target_globals_default_opts and
27635         restore_target_globals.
27637         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
27638         FPSCR.
27639         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
27640         (rs6000_expand_builtin): Handle mffs and mtfsf.
27641         (rs6000_init_builtins): Define mffs and mtfsf.
27642         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
27643         (rs6000_mffs): New pattern.
27644         (rs6000_mtfsf): New pattern.
27646 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
27648         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
27649         Start narrowing with START.  Apply candidate-use pair
27650         and check overall cost in narrowing.
27651         (iv_ca_prune): Pass new argument.
27653 2014-01-10  Jeff Law  <law@redhat.com>
27655         PR middle-end/59743
27656         * ree.c (combine_reaching_defs): Ensure the defining statement
27657         occurs before the extension when optimizing extensions with
27658         different source and destination hard registers.
27660 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
27662         PR ipa/58585
27663         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
27664         vtables into the type inheritance graph.
27666 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
27668         PR rtl-optimization/59754
27669         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
27670         modes in the REGNO != REGNO case.
27672 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27674         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
27676 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
27678         PR tree-optimization/59745
27679         * tree-predcom.c (tree_predictive_commoning_loop): Call
27680         free_affine_expand_cache if giving up because components is NULL.
27682         * target-globals.c (save_target_globals): Allocate < 4KB structs using
27683         GC in payload of target_globals struct instead of allocating them on
27684         the heap and the larger structs separately using GC.
27685         * target-globals.h (struct target_globals): Make regs, hard_regs,
27686         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
27687         of GTY((skip)) and change type to void *.
27688         (reset_target_globals): Cast loads from those fields to corresponding
27689         types.
27691 2014-01-10  Steve Ellcey  <sellcey@mips.com>
27693         PR plugins/59335
27694         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
27695         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
27696         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
27698 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
27700         PR target/59744
27701         * aarch64-modes.def (CC_Zmode): New flags mode.
27702         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
27703         represents an equality.
27704         (aarch64_get_condition_code): Handle CC_Zmode.
27705         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
27707 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27709         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
27710         extraction in good case.
27712 2014-01-10  Richard Biener  <rguenther@suse.de>
27714         PR tree-optimization/59374
27715         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
27716         checking after SLP discovery.  Mark stmts not participating
27717         in any SLP instance properly.
27719 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27721         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
27722         when handling a SET rtx.
27724 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27726         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
27727         (cortex-a57): Likewise.
27728         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
27730 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27732         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
27733         non-iwmmxt builtins.
27735 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
27737         PR ipa/58252
27738         PR ipa/59226
27739         * ipa-devirt.c record_target_from_binfo): Take as argument
27740         stack of binfos and lookup matching one for virtual inheritance.
27741         (possible_polymorphic_call_targets_1): Update.
27743 2014-01-10  Huacai Chen  <chenhc@lemote.com>
27745         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
27746         kernel strings for Loongson-2E/2F/3A.
27748 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
27750         PR middle-end/59670
27751         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
27752         is_gimple_call before calling gimple_call_internal_p.
27754 2014-01-09  Steve Ellcey  <sellcey@mips.com>
27756         * Makefile.in (TREE_FLOW_H): Remove.
27757         (TREE_SSA_H): Add file names from tree-flow.h.
27758         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
27759         * tree.h: Remove tree-flow.h reference.
27760         * hash-table.h: Remove tree-flow.h reference.
27761         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
27762         reference with tree-ssa-loop.h.
27764 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27766         * doc/invoke.texi: Add -maltivec={be,le} options, and document
27767         default element-order behavior for -maltivec.
27768         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
27769         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
27770         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
27771         when targeting big endian, at least for now.
27772         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
27774 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
27776         PR middle-end/47735
27777         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
27778         var satisfies use_register_for_decl, just take into account type
27779         alignment, rather than decl alignment.
27781         PR tree-optimization/59622
27782         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
27783         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
27784         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
27785         Don't devirtualize for inplace at all.  For targets.length () == 1,
27786         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
27788 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
27790         * config/i386/i386.md (cpu): Remove the unused btver1.
27792 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
27794         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
27796 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
27798         PR target/58115
27799         * tree-core.h (struct target_globals): New forward declaration.
27800         (struct tree_target_option): Add globals field.
27801         * tree.h (TREE_TARGET_GLOBALS): Define.
27802         (prepare_target_option_nodes_for_pch): New prototype.
27803         * target-globals.h (struct target_globals): Define even if
27804         !SWITCHABLE_TARGET.
27805         * tree.c (prepare_target_option_node_for_pch,
27806         prepare_target_option_nodes_for_pch): New functions.
27807         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
27808         * config/i386/i386.c: Include target-globals.h.
27809         (ix86_set_current_function): Instead of doing target_reinit
27810         unconditionally, use save_target_globals_default_opts and
27811         restore_target_globals.
27813 2014-01-09  Richard Biener  <rguenther@suse.de>
27815         PR tree-optimization/59715
27816         * tree-cfg.h (split_critical_edges): Declare.
27817         * tree-cfg.c (split_critical_edges): Export.
27818         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
27820 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
27822         * cfgexpand.c (expand_stack_vars): Optionally disable
27823         asan stack protection.
27824         (expand_used_vars): Likewise.
27825         (partition_stack_vars): Likewise.
27826         * asan.c (asan_emit_stack_protection): Optionally disable
27827         after return stack usage.
27828         (instrument_derefs): Optionally disable memory access instrumentation.
27829         (instrument_builtin_call): Likewise.
27830         (instrument_strlen_call): Likewise.
27831         (asan_protect_global): Optionally disable global variables protection.
27832         * doc/invoke.texi: Added doc for new options.
27833         * params.def: Added new options.
27834         * params.h: Likewise.
27836 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
27838         PR rtl-optimization/59724
27839         * ifcvt.c (cond_exec_process_if_block): Don't call
27840         flow_find_head_matching_sequence with 0 longest_match.
27841         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
27842         non-active insns if !stop_after.
27843         (try_head_merge_bb): Revert 2014-01-07 changes.
27845 2014-01-08  Jeff Law  <law@redhat.com>
27847         * ree.c (get_sub_rtx): New function, extracted from...
27848         (merge_def_and_ext): Here.
27849         (combine_reaching_defs): Use get_sub_rtx.
27851 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
27853         * cgraph.h (varpool_variable_node): Do not choke on null node.
27855 2014-01-08  Catherine Moore  <clm@codesourcery.com>
27857         * config/mips/mips.md (simple_return): Attempt to use JRC
27858         for microMIPS.
27859         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
27861 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
27863         PR rtl-optimization/59137
27864         * reorg.c (steal_delay_list_from_target): Call update_block for
27865         elided insns.
27866         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
27868 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27870         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
27871         two duplicate entries.
27873 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
27875         Revert:
27876         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
27878         * config/mips/mips.c (mips_truncated_op_cost): New function.
27879         (mips_rtx_costs): Adjust test for BADDU.
27880         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
27882         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
27884         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
27885         (*baddu_si): ...this new pattern.
27887 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
27889         PR ipa/59722
27890         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
27892 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27894         PR middle-end/57748
27895         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
27896         inner_reference_p.
27897         (expand_expr, expand_normal): Adjust.
27898         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
27899         inner_reference_p. Use inner_reference_p to expand inner references.
27900         (store_expr): Adjust.
27901         * cfgexpand.c (expand_call_stmt): Adjust.
27903 2014-01-08  Rong Xu  <xur@google.com>
27905         * gcov-io.c (gcov_var): Move from gcov-io.h.
27906         (gcov_position): Ditto.
27907         (gcov_is_error): Ditto.
27908         (gcov_rewrite): Ditto.
27909         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
27910         only part to libgcc/libgcov.h.
27912 2014-01-08  Marek Polacek  <polacek@redhat.com>
27914         PR middle-end/59669
27915         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
27917 2014-01-08  Marek Polacek  <polacek@redhat.com>
27919         PR sanitizer/59667
27920         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
27922 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
27924         PR rtl-optimization/59649
27925         * stor-layout.c (get_mode_bounds): For BImode return
27926         0 and STORE_FLAG_VALUE.
27928 2014-01-08  Richard Biener  <rguenther@suse.de>
27930         PR middle-end/59630
27931         * gimple.h (is_gimple_builtin_call): Remove.
27932         (gimple_builtin_call_types_compatible_p): New.
27933         (gimple_call_builtin_p): New overload.
27934         * gimple.c (is_gimple_builtin_call): Remove.
27935         (validate_call): Rename to ...
27936         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
27937         check return types.
27938         (validate_type): New static function.
27939         (gimple_call_builtin_p): New overload and adjust.
27940         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
27941         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
27942         (gimple_fold_stmt_to_constant_1): Likewise.
27943         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
27945 2014-01-08  Richard Biener  <rguenther@suse.de>
27947         PR middle-end/59471
27948         * gimplify.c (gimplify_expr): Gimplify register-register type
27949         VIEW_CONVERT_EXPRs to separate stmts.
27951 2014-01-07  Jeff Law  <law@redhat.com>
27953         PR middle-end/53623
27954         * ree.c (combine_set_extension): Handle case where source
27955         and destination registers in an extension insn are different.
27956         (combine_reaching_defs): Allow source and destination registers
27957         in extension to be different under limited circumstances.
27958         (add_removable_extension): Remove restriction that the
27959         source and destination registers in the extension are the same.
27960         (find_and_remove_re): Emit a copy from the extension's
27961         destination to its source after the defining insn if
27962         the source and destination registers are different.
27964         PR middle-end/59285
27965         * ifcvt.c (merge_if_block): If we are merging a block with more than
27966         one successor with a block with no successors, remove any BARRIER
27967         after the second block.
27969 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
27971         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
27973 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
27975         PR target/59652
27976         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
27977         for 14-bit register offsets when INT14_OK_STRICT is false.
27979 2014-01-07  Roland Stigge  <stigge@antcom.de>
27980             Michael Meissner  <meissner@linux.vnet.ibm.com>
27982         PR 57386/target
27983         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
27984         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
27986 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
27988         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
27989         -mcpu.
27991 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
27993         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
27994         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
27995         rtx is const0_rtx or not.
27997 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
27999         PR target/58115
28000         * target-globals.c (save_target_globals): Remove this_fn_optab
28001         handling.
28002         * toplev.c: Include optabs.h.
28003         (target_reinit): Temporarily restore the global options if another
28004         set of options are in force.
28006 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
28008         PR rtl-optimization/58668
28009         * cfgcleanup.c (flow_find_cross_jump): Don't count
28010         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
28011         to determine what is counted.
28012         (flow_find_head_matching_sequence): Use active_insn_p to determine
28013         what is counted.
28014         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
28015         counting change.
28016         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
28017         determine what is counted.
28019         PR tree-optimization/59643
28020         * tree-predcom.c (split_data_refs_to_components): If one dr is
28021         read and one write, determine_offset fails and the write isn't
28022         in the bad component, just put the read into the bad component.
28024 2014-01-07  Mike Stump  <mikestump@comcast.net>
28025             Jakub Jelinek  <jakub@redhat.com>
28027         PR pch/59436
28028         * tree-core.h (struct tree_optimization_option): Change optabs
28029         type from unsigned char * to void *.
28030         * optabs.c (init_tree_optimization_optabs): Adjust
28031         TREE_OPTIMIZATION_OPTABS initialization.
28033 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
28035         PR target/59644
28036         * config/i386/i386.h (struct machine_function): Add
28037         no_drap_save_restore field.
28038         * config/i386/i386.c (ix86_save_reg): Use
28039         !cfun->machine->no_drap_save_restore instead of
28040         crtl->stack_realign_needed.
28041         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
28042         this function clears frame_pointer_needed.  Set
28043         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
28044         and DRAP reg is needed.
28046 2014-01-06  Marek Polacek  <polacek@redhat.com>
28048         PR c/57773
28049         * doc/implement-c.texi: Mention that other integer types are
28050         permitted as bit-field types in strictly conforming mode.
28052 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
28054         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
28055         is newly allocated.
28057 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
28059         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
28061 2014-01-06  Martin Jambor  <mjambor@suse.cz>
28063         PR ipa/59008
28064         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
28065         to int.
28066         * ipa-prop.c (ipa_print_node_params): Fix indentation.
28068 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28070         PR debug/59350
28071         PR debug/59510
28072         * var-tracking.c (add_stores): Preserve the value of the source even if
28073         we don't record the store.
28075 2014-01-06  Terry Guo  <terry.guo@arm.com>
28077         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
28079 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
28081         PR bootstrap/59541
28082         * config/darwin.c (darwin_function_section): Adjust return values to
28083         correspond to optimisation changes made in r206070.
28085 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
28087         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
28088         from prefetch_block tune setting.
28089         (nocona_cost): Correct size of prefetch block to 64.
28091 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28093         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
28094         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
28095         used to save the static chain register in the computation of the offset
28096         from which the FP registers need to be restored.
28098 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
28100         PR tree-optimization/59519
28101         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
28102         ICE if get_current_def (current_new_name) is already non-NULL, as long
28103         as it is a phi result of some other phi in *new_exit_bb that has
28104         the same argument.
28106         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
28107         or vmovdqu* for misaligned_operand.
28108         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
28109         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
28110         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
28111         aligned_mem for AVX512F masked aligned load and store builtins and for
28112         non-temporal moves.
28114 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
28116         PR tree-optimization/59651
28117         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
28118         Address range for negative step should be added by TYPE_SIZE_UNIT.
28120 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
28122         * config/m68k/m68k.c (handle_move_double): Handle pushes with
28123         overlapping registers also for registers other than the stack pointer.
28125 2014-01-03  Marek Polacek  <polacek@redhat.com>
28127         PR other/59661
28128         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
28129         __builtin_FILE.
28131 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
28133         PR target/59625
28134         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
28135         asm goto as jump.
28137         * config/i386/i386.md (MODE_SIZE): New mode attribute.
28138         (push splitter): Use <P:MODE_SIZE> instead of
28139         GET_MODE_SIZE (<P:MODE>mode).
28140         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
28141         (mov -1, reg peephole2): Likewise.
28142         * config/i386/sse.md (*mov<mode>_internal,
28143         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
28144         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
28145         *<code><mode>3, *andnot<mode>3<mask_name>,
28146         <mask_codefor><code><mode>3<mask_name>): Likewise.
28147         * config/i386/subst.md (mask_mode512bit_condition,
28148         sd_mask_mode512bit_condition): Likewise.
28150 2014-01-02  Xinliang David Li  <davidxl@google.com>
28152         PR tree-optimization/59303
28153         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
28154         (dump_predicates): Better output format.
28155         (pred_equal_p): New function.
28156         (is_neq_relop_p): Ditto.
28157         (is_neq_zero_form_p): Ditto.
28158         (pred_expr_equal_p): Ditto.
28159         (pred_neg_p): Ditto.
28160         (simplify_pred): Ditto.
28161         (simplify_preds_2): Ditto.
28162         (simplify_preds_3): Ditto.
28163         (simplify_preds_4): Ditto.
28164         (simplify_preds): Ditto.
28165         (push_pred): Ditto.
28166         (push_to_worklist): Ditto.
28167         (get_pred_info_from_cmp): Ditto.
28168         (is_degenerated_phi): Ditto.
28169         (normalize_one_pred_1): Ditto.
28170         (normalize_one_pred): Ditto.
28171         (normalize_one_pred_chain): Ditto.
28172         (normalize_preds): Ditto.
28173         (normalize_cond_1): Remove function.
28174         (normalize_cond): Ditto.
28175         (is_gcond_subset_of): Ditto.
28176         (is_subset_of_any): Ditto.
28177         (is_or_set_subset_of): Ditto.
28178         (is_and_set_subset_of): Ditto.
28179         (is_norm_cond_subset_of): Ditto.
28180         (pred_chain_length_cmp): Ditto.
28181         (convert_control_dep_chain_into_preds): Type change.
28182         (find_predicates): Ditto.
28183         (find_def_preds): Ditto.
28184         (destroy_predicates_vecs): Ditto.
28185         (find_matching_predicates_in_rest_chains): Ditto.
28186         (use_pred_not_overlap_with_undef_path_pred): Ditto.
28187         (is_pred_expr_subset): Ditto.
28188         (is_pred_chain_subset_of): Ditto.
28189         (is_included_in): Ditto.
28190         (is_superset_of): Ditto.
28192 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
28194         Update copyright years.
28196 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
28198         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
28199         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
28200         config/arc/arc.md, config/arc/arc.opt,
28201         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
28202         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
28203         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
28204         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
28205         config/linux-protos.h, config/linux.c, config/winnt-c.c,
28206         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
28207         vtable-verify.c, vtable-verify.h: Use the standard form for the
28208         copyright notice.
28210 2014-01-02  Tobias Burnus  <burnus@net-b.de>
28212         * gcc.c (process_command): Update copyright notice dates.
28213         * gcov-dump.c: Ditto.
28214         * gcov.c: Ditto.
28215         * doc/cpp.texi: Bump @copying's copyright year.
28216         * doc/cppinternals.texi: Ditto.
28217         * doc/gcc.texi: Ditto.
28218         * doc/gccint.texi: Ditto.
28219         * doc/gcov.texi: Ditto.
28220         * doc/install.texi: Ditto.
28221         * doc/invoke.texi: Ditto.
28223 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
28225         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
28227 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
28229         * config/i386/sse.md (*mov<mode>_internal): Guard
28230         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
28232         PR rtl-optimization/59647
28233         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
28234         new_rtx into UNSIGNED_FLOAT rtxes.
28236 Copyright (C) 2014 Free Software Foundation, Inc.
28238 Copying and distribution of this file, with or without modification,
28239 are permitted in any medium without royalty provided the copyright
28240 notice and this notice are preserved.