re PR target/62662 (Miscompilation of Qt on s390x)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2
3         PR target/62662
4         * config/s390/s390.c (s390_emit_epilogue): When doing the return
5         address load optimization force s390_optimize_prologue to leave it
6         that way.  Only do the optimization if we already decided to push
7         r14 into a stack slot.
8
9 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
10
11         * asan.c (build_check_stmt): Alignment arg was added.
12         (asan_expand_check_ifn): Optimization for alignment >= 8.
13
14 2014-09-19  Olivier Hainque  <hainque@adacore.com>
15
16         * config/i386/vxworksae.h: Remove obsolete definitions.
17         (STACK_CHECK_PROTECT): Define.
18         * config/i386/vx-common.h: Remove.  Merge contents within
19         config/i386/vxworks.h.
20         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
21         i386/vx-common.h.
22
23 2014-09-19  Olivier Hainque  <hainque@adacore.com>
24
25         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
26         * config/rs6000/t-vxworksmils: New file.
27         * config/rs6000/vxworksmils.h: New file.
28
29 2014-09-19  Olivier Hainque  <hainque@adacore.com>
30
31         * varasm.c (default_section_type_flags): Flag .persistent.bss
32         sections as SECTION_BSS.
33
34 2014-09-19  Nick Clifton  <nickc@redhat.com>
35
36         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
37         pop'ed registers so that DCE does not eliminate them.
38
39 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
40
41         PR lto/63298
42         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
43
44 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
45
46         * system.h (LIBGCC2_TF_CEXT): Poison.
47         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
48         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
49         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
50         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
51         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
52         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
53         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
54         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
55         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
56
57 2014-09-19  Kito Cheng  <kito@0xlab.org>
58
59         * except.h: Fix header guard.
60         * addresses.h: Add missing header guard.
61         * cfghooks.h: Likewise.
62         * collect-utils.h: Likewise.
63         * collect2-aix.h: Likewise.
64         * conditions.h: Likewise.
65         * cselib.h: Likewise.
66         * dwarf2asm.h: Likewise.
67         * graphds.h: Likewise.
68         * graphite-scop-detection.h: Likewise.
69         * gsyms.h: Likewise.
70         * hw-doloop.h: Likewise.
71         * incpath.h: Likewise.
72         * ipa-inline.h: Likewise.
73         * ipa-ref.h: Likewise.
74         * ira-int.h: Likewise.
75         * ira.h: Likewise.
76         * lra-int.h: Likewise.
77         * lra.h: Likewise.
78         * lto-section-names.h: Likewise.
79         * read-md.h: Likewise.
80         * reload.h: Likewise.
81         * rtl-error.h: Likewise.
82         * sdbout.h: Likewise.
83         * targhooks.h: Likewise.
84         * tree-affine.h: Likewise.
85         * xcoff.h: Likewise.
86         * xcoffout.h: Likewise.
87
88 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
89
90         PR debug/63285
91         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
92         if advance != 0.
93
94 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
95
96         PR target/61360
97         * lra.c (lra): Call recog_init.
98
99 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
100
101         PR c++/62017
102         * asan.c (transform_statements): Don't instrument clobber statements.
103
104 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
105
106         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
107         to neon_load1_1reg<q>.
108
109 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
110
111         PR debug/63284
112         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
113         if there are only debug stmts after the noreturn call, instead
114         remove the debug stmts.
115
116 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
117
118         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
119         (odr_types_equivalent_p): Use pair hash.
120         (odr_subtypes_equivalent_p): Likewise, do structural compare
121         on ODR types that may be mismatched.
122         (warn_odr): Support warning when only one field is given.
123         (odr_types_equivalent_p): Strenghten comparsions made;
124         support VOIDtype.
125         (add_type_duplicate): Update VISITED hash set.
126
127 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
128
129         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
130         Enable selection of 'posix' or no thread model.
131
132 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
133
134         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
135         when architecture is older than ARMv7.
136
137 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
138
139         PR target/61853
140         * config/pa/pa.c (pa_function_value): Directly handle aggregates
141         that fit exactly in a word or double word.
142
143 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
144
145         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
146         zmm/k regs support.
147
148 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
149             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
150             Anna Tikhonova  <anna.tikhonova@intel.com>
151             Ilya Tocar  <ilya.tocar@intel.com>
152             Andrey Turetskiy  <andrey.turetskiy@intel.com>
153             Ilya Verbin  <ilya.verbin@intel.com>
154             Kirill Yukhin  <kirill.yukhin@intel.com>
155             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
156
157         * config/i386/i386.c
158         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
159         * config/i386/sse.md
160         (define_mode_iterator VI48F_256): New.
161         (define_mode_attr extract_type): Ditto.
162         (define_mode_attr extract_suf): Ditto.
163         (define_mode_iterator AVX512_VEC): Ditto.
164         (define_expand
165         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
166         AVX512_VEC.
167         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
168         (define_insn
169         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
170         Ditto.
171         (define_mode_attr extract_type_2): Ditto.
172         (define_mode_attr extract_suf_2): Ditto.
173         (define_mode_iterator AVX512_VEC_2): Ditto.
174         (define_expand
175         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
176         AVX512_VEC_2 mode iterator.
177         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
178         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
179         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
180         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
181         (define_split for V16FI mode): Ditto.
182         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
183         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
184         (define_split for VI8F_256 mode): Ditto.
185         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
186         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
187         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
188         (define_split for VI4F_256 mode): Ditto.
189         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
190         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
191         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
192         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
193         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
194         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
195         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
196         Update `type' attribute, remove explicit `memory' attribute calculation.
197
198 2014-09-16  Kito Cheng  <kito@0xlab.org>
199
200         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
201         ira_spilled_reg_stack_slots_num if using lra.
202         (do_reload): Remove release ira_spilled_reg_stack_slots part.
203         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
204         make sure not using lra.
205         (ira_reuse_stack_slot): Likewise.
206         (ira_mark_new_stack_slot): Likewise.
207
208 2014-09-15  Andi Kleen  <ak@linux.intel.com>
209
210         * function.c (allocate_struct_function): Force
211         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
212         profiling is disabled.
213
214 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
215     
216         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
217         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
218         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
219         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
220         macro with statically checked member functions.
221         * rtl.h (rtx_insn::deleted): New method.
222         (rtx_insn::set_deleted): Likewise.
223         (rtx_insn::set_undeleted): Likewise.
224         (INSN_DELETED_P): Remove.
225
226 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
227
228         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
229         result of emit_jump_insn_before to a new variable.
230         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
231         (mark_jump_label_1): Likewise.
232         (mark_jump_label_asm): Likewise.
233         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
234         * rtl.h (mark_jump_label): Adjust.
235
236 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
237
238         * Makefile.in (dg_target_exps): Remove.
239         (check_gcc_parallelize): Change to just an upper bound number.
240         (check-%-subtargets): Always print the non-parallelized goals.
241         (check_p_vars, check_p_comma, check_p_subwork): Remove.
242         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
243         check_p_numbers3, check_p_numbers4, check_p_numbers5,
244         check_p_numbers6): New variables.
245         (check_p_numbers): Set to sequence from 1 to 9999.
246         (check_p_subdirs): Set to sequence from 1 to minimum of
247         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
248         or 128.
249         (check-%, check-parallel-%): Rewritten so that for parallelized
250         testing each job runs all the *.exp files, with
251         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
252
253 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
254
255         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
256         rtx to rtx_insn *.
257         (arc_sets_cc_p): Likewise.
258         * config/arc/arc.c (arc_print_operand): Use methods of
259         "final_sequence" for clarity, and to enable strengthening of
260         locals "jump" and "delay" from rtx to rtx_insn *.
261         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
262         rtx_insn *; use method of rtx_sequence for typesafety.
263         (arc_get_insn_variants): Use insn method of rtx_sequence for
264         typesafety.
265         (arc_pad_return): Likewise.
266         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
267         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
268         dyn_cast to rtx_sequence *, using insn method for typesafety.
269         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
270         rtx_sequence * and use insn method when invoking get_attr_length.
271         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
272         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
273         rtx_sequence *, introducing a local "seq", using its insn method
274         from typesafety and clarity.
275         (add_sched_insns_for_speculation): Strengthen local "next" from
276         rtx to rtx_insn *.
277         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
278         (predicate_insn): Likewise.
279         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
280         second param.
281         * config/cris/cris.c (cris_notice_update_cc): Likewise.
282         * config/epiphany/epiphany-protos.h
283         (extern void epiphany_insert_mode_switch_use): Likewise for param
284         "insn".
285         (get_attr_sched_use_fpu): Likewise for param.
286         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
287         Likewise for param "insn".
288         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
289         param "insn" of "target_insert_mode_switch_use" callback.
290         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
291         (frv_issues_to_branch_unit_p): Likewise.
292         (frv_pack_insn_p): Likewise.
293         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
294         const rtx * (i.e. mutable rtx_def * const *) to
295         rtx_insn * const *.
296         * config/i386/i386-protos.h (standard_sse_constant_opcode):
297         Strengthen first param from rtx to rtx_insn *.
298         (output_fix_trunc): Likewise.
299         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
300         (output_fix_trunc): Likewise.
301         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
302         local "insn".
303         (min_insn_size): Likewise for param "insn".
304         (get_mem_group): Likewise.
305         (is_cmp): Likewise.
306         (get_insn_path): Likewise.
307         (get_insn_group): Likewise.
308         (count_num_restricted): Likewise.
309         (fits_dispatch_window): Likewise.
310         (add_insn_window): Likewise.
311         (add_to_dispatch_window): Likewise.
312         (debug_insn_dispatch_info_file): Likewise.
313         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
314         first param.
315         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
316         "cmp" and local "prev".
317         (m32c_output_compare): Likewise for param "insn".
318         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
319         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
320         (define_predicate "large_insn_p"): Likewise.
321         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
322         param from rtx to rtx_insn *.
323         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
324         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
325         (m68k_sched_attr_size): Likewise.
326         (sched_get_opxy_mem_type): Likewise for param "insn".
327         (m68k_sched_attr_op_mem): Likewise.
328         (sched_mem_operand_p): Likewise.
329         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
330         * config/mep/mep.c (mep_multi_slot): Likewise.
331         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
332         first param.
333         (mips_sync_loop_insns): Likewise.
334         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
335         method of "final_sequence" for typesafety.
336         (mips_process_sync_loop): Strengthen param "insn" from rtx to
337         rtx_insn *.
338         (mips_output_sync_loop): Likewise.
339         (mips_sync_loop_insns): Likewise.
340         (mips_74k_agen_init): Likewise.
341         (mips_sched_init): Use NULL rather than NULL_RTX when working with
342         insns.
343         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
344         Strengthen param "insn" from rtx to rtx_insn *.
345         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
346         local "insn".
347         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
348         param.
349         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
350         "insn".  Use method of rtx_sequence for typesafety.
351         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
352         rtx_insn *.
353         (branch_needs_nop_p): Likewise.
354         (use_skip_p): Likewise.
355         (pa_insn_refs_are_delayed): Likewise.
356         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
357         for locals "insn", "ninsn".
358         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
359         "insn".
360         (is_cracked_insn): Likewise.
361         (is_branch_slot_insn): Likewise.
362         (is_nonpipeline_insn): Likewise.
363         (insn_terminates_group_p): Likewise.
364         (insn_must_be_first_in_group): Likewise.
365         (insn_must_be_last_in_group): Likewise.
366         (force_new_group): Likewise for param "next_insn".
367         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
368         "insn".
369         (s390_sched_score): Likewise.
370         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
371         (rtx sfunc_uses_reg): Likewise for sole param.
372         * config/sh/sh.c (sh_print_operand): Use insn method of
373         final_sequence for typesafety.
374         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
375         Use insn method of final_sequence for typesafety.
376         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
377         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
378         for param.
379         (eligible_for_return_delay): Likewise.
380         (eligible_for_sibcall_delay): Likewise.
381         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
382         (eligible_for_return_delay): Likewise.
383         (eligible_for_sibcall_delay): Likewise.
384         * config/stormy16/stormy16-protos.h
385         (xstormy16_output_cbranch_hi): Likewise for final param.
386         (xstormy16_output_cbranch_si): Likewise.
387         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
388         (xstormy16_output_cbranch_si): Likewise.
389         * config/v850/v850-protos.h (notice_update_cc): Likewise.
390         * config/v850/v850.c (notice_update_cc): Likewise.
391
392         * final.c (get_attr_length_1): Strengthen param "insn" and param
393         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
394         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
395         (get_attr_min_length): Likewise.
396         (shorten_branches): Likewise for signature of locals "length_fun"
397         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
398         from a checked cast and use its methods for clarity and to enable
399         strengthening local "inner_insn" from rtx to rtx_insn *.
400         * genattr.c (gen_attr): When writing out the prototypes of the
401         various generated "get_attr_" functions, strengthen the params of
402         the non-const functions from rtx to rtx_insn *.
403         Similarly, strengthen the params of insn_default_length,
404         insn_min_length, insn_variable_length_p, insn_current_length.
405         (main): Similarly, strengthen the param of num_delay_slots,
406         internal_dfa_insn_code, insn_default_latency, bypass_p,
407         insn_latency, min_issue_delay, print_reservation,
408         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
409         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
410         to hook_int_rtx_insn_unreachable.
411         * genattrtab.c (write_attr_get): When writing out the generated
412         "get_attr_" functions, strengthen the param "insn" from rtx to
413         rtx_insn *, eliminating a checked cast.
414         (make_automaton_attrs): When writing out prototypes of
415         "internal_dfa_insn_code_", "insn_default_latency_" functions
416         and the "internal_dfa_insn_code" and "insn_default_latency"
417         callbacks, strengthen their params from rtx to rtx_insn *
418         * genautomata.c (output_internal_insn_code_evaluation): When
419         writing out code, add a checked cast from rtx to rtx_insn * when
420         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
421         (output_dfa_insn_code_func): Strengthen param of generated
422         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
423         (output_trans_func): Likewise for generated function
424         "state_transition".
425         (output_internal_insn_latency_func): When writing out generated
426         function "internal_insn_latency", rename params from "insn" and
427         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
428         locals "insn" and "insn2" as rtx_insn * with checked casts once
429         we've proven that we're not dealing with const0_rtx.
430         (output_insn_latency_func):  Strengthen param of generated
431         function "insn_latency" from rtx to rtx_insn *.
432         (output_print_reservation_func): Likewise for generated function
433         "print_reservation".
434         (output_insn_has_dfa_reservation_p): Likewise for generated
435         function "insn_has_dfa_reservation_p".
436         * hooks.c (hook_int_rtx_unreachable): Rename to...
437         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
438         from rtx to rtx_insn *.
439         * hooks.h (hook_int_rtx_unreachable): Likewise.
440         (extern int hook_int_rtx_insn_unreachable): Likewise.
441         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
442         (get_attr_min_length): Likewise.
443         * recog.c (get_enabled_alternatives): Likewise.
444         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
445         * reorg.c (find_end_label): Introduce local rtx "pat" and
446         strengthen local "insn" from rtx to rtx_insn *.
447         (redundant_insn): Use insn method of "seq" rather than element for
448         typesafety; strengthen local "control" from rtx to rtx_insn *.
449         * resource.c (mark_referenced_resources): Add checked cast to
450         rtx_insn * within INSN/JUMP_INSN case.
451         (mark_set_resources): Likewise.
452         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
453         rtx to rtx_insn *.
454
455 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
456
457         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
458         param "label" from rtx to rtx_insn *.
459         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
460         and local "op".
461         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
462         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
463         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
464         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
465         * final.c (default_label_align_after_barrier_max_skip): Strengthen
466         param from rtx to rtx_insn *.
467         (default_loop_align_max_skip): Likewise.
468         (default_label_align_max_skip): Likewise.
469         (default_jump_align_max_skip): Likewise.
470         * target.def (label_align_after_barrier_max_skip): Likewise.
471         (loop_align_max_skip): Likewise.
472         (label_align_max_skip): Likewise.
473         (jump_align_max_skip): Likewise.
474         * targhooks.h (default_label_align_after_barrier_max_skip):
475         Likewise.
476         (default_loop_align_max_skip): Likewise.
477         (default_label_align_max_skip): Likewise.
478         (default_jump_align_max_skip): Likewise.
479
480 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
481
482         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
483         from const_rtx to const rtx_insn *.  Update union members from rtx
484         to rtx_insn *.
485         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
486         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
487         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
488         strengthen both params from const_rtx to const rtx_insn *.
489         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
490         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
491         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
492         rtx_insn *.
493         * target.def (can_follow_jump): Strengthen both params from
494         const_rtx to const rtx_insn *, and update default implementation
495         from hook_bool_const_rtx_const_rtx_true to
496         hook_bool_const_rtx_insn_const_rtx_insn_true.
497
498 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
499
500         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
501         "insn" from rtx to rtx_insn *.
502         * sched-int.h (deps_start_bb): Likewise for 2nd param.
503
504 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
505             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
506             Anna Tikhonova  <anna.tikhonova@intel.com>
507             Ilya Tocar  <ilya.tocar@intel.com>
508             Andrey Turetskiy  <andrey.turetskiy@intel.com>
509             Ilya Verbin  <ilya.verbin@intel.com>
510             Kirill Yukhin  <kirill.yukhin@intel.com>
511             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
512
513         * config/i386/sse.md
514         (define_insn "vcvtph2ps<mask_name>"): Add masking.
515         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
516         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
517         (define_expand "vcvtps2ph_mask"): New.
518         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
519         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
520         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
521
522 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
523             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
524             Anna Tikhonova  <anna.tikhonova@intel.com>
525             Ilya Tocar  <ilya.tocar@intel.com>
526             Andrey Turetskiy  <andrey.turetskiy@intel.com>
527             Ilya Verbin  <ilya.verbin@intel.com>
528             Kirill Yukhin  <kirill.yukhin@intel.com>
529             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
530
531         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
532         New.
533         (define_mode_iterator VI24_AVX512BW_1): Ditto.
534         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
535         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
536         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
537         also for TARGET_AVX512VL.
538         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
539
540 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
541
542         * doc/install.texi (Options specification): add 
543         --disable-libsanitizer item.
544
545 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
546             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
547
548         PR target/61407
549         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
550         and above.
551         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
552         kernel version check to avoid incrementing it after every major OS X
553         release.
554         (darwin_default_min_version): Avoid static memory buffer.
555
556 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
557
558         * tree.c (need_assembler_name_p): Store C++ type mangling only
559         for aggregates.
560
561 2014-09-13  Marek Polacek  <polacek@redhat.com>
562
563         * tree.c (protected_set_expr_location): Don't check whether T is
564         non-null here.
565
566 2014-09-12  DJ Delorie  <dj@redhat.com>
567
568         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
569         (extend_and_shift1_hipsi2): Likewise.
570         (extend_and_shift2_hipsi2): Likewise.
571
572 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
573
574         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
575         with NULL when dealing with an insn.
576         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
577         from rtx to rtx_insn *.
578         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
579         const_rtx to const rtx_insn *.
580         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
581
582 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
583
584         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
585         assert.
586
587 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
588
589         * target.def (libgcc_floating_mode_supported_p): New hook.
590         * targhooks.c (default_libgcc_floating_mode_supported_p): New
591         function.
592         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
593         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
594         (LIBGCC2_HAS_TF_MODE): Remove.
595         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
596         * doc/tm.texi: Regenerate.
597         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
598         machine mode.
599         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
600         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
601         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
602         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
603         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
604         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
605         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
606         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
607         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
608         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
609         function.
610         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
611         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
612         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
613         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
614         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
615         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
616         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
617         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
618         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
619         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
620         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
621         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
622         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
623         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
624         Remove.
625         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
626         New macro.
627         (ia64_libgcc_floating_mode_supported_p): New function.
628         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
629         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
630         (IA64_NO_LIBGCC_TFMODE): Define.
631         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
632         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
633         macro.
634         (pdp11_scalar_mode_supported_p): New function.
635         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
636         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
637
638 2014-09-12  Richard Biener  <rguenther@suse.de>
639
640         PR middle-end/63237
641         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
642
643 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
644
645         * tree.c (integer_each_onep): New function.
646         * tree.h (integer_each_onep): Declare it.
647         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
648         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
649         (X & 1) == 0 for vector and complex.
650
651 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
652
653         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
654         for A57.
655         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
656         cost to spilling from integer to FP registers.
657
658 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
659
660         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
661         move handling.
662         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
663         are now handled correctly.
664
665 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
666
667         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
668         handling of CALLER_SAVE_REGS and POINTER_REGS.
669
670 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
671
672         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
673         the number of hard registers.
674
675 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
676             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
677             Anna Tikhonova  <anna.tikhonova@intel.com>
678             Ilya Tocar  <ilya.tocar@intel.com>
679             Andrey Turetskiy  <andrey.turetskiy@intel.com>
680             Ilya Verbin  <ilya.verbin@intel.com>
681             Kirill Yukhin  <kirill.yukhin@intel.com>
682             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
683
684         * config/i386/sse.md
685         (define_mode_iterator VI48_AVX512VL): New.
686         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
687         "avx512f_vternlog<mode>_maskz" and update mode iterator.
688         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
689         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
690         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
691         "avx512f_vternlog<mode>_mask" and update mode iterator.
692         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
693         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
694         iterator.
695         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
696         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
697         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
698         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
699         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
700         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
701
702 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
703             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
704             Anna Tikhonova  <anna.tikhonova@intel.com>
705             Ilya Tocar  <ilya.tocar@intel.com>
706             Andrey Turetskiy  <andrey.turetskiy@intel.com>
707             Ilya Verbin  <ilya.verbin@intel.com>
708             Kirill Yukhin  <kirill.yukhin@intel.com>
709             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
710
711         * config/i386/sse.md (VI128_256): Delete.
712         (define_mode_iterator VI124_256): New.
713         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
714         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
715         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
716         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
717         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
718         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
719         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
720         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
721         iterator.
722         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
723         in presence of AVX-512.
724
725 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
726             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
727             Anna Tikhonova  <anna.tikhonova@intel.com>
728             Ilya Tocar  <ilya.tocar@intel.com>
729             Andrey Turetskiy  <andrey.turetskiy@intel.com>
730             Ilya Verbin  <ilya.verbin@intel.com>
731             Kirill Yukhin  <kirill.yukhin@intel.com>
732             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
733
734         * config/i386/sse.md
735         (define_expand "<avx512>_gathersi<mode>"): Rename from
736         "avx512f_gathersi<mode>".
737         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
738         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
739         (define_expand "<avx512>_gatherdi<mode>"): Rename from
740         "avx512f_gatherdi<mode>".
741         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
742         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
743         wide versions.
744         (define_expand "<avx512>_scattersi<mode>"): Rename from
745         "avx512f_scattersi<mode>".
746         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
747         (define_expand "<avx512>_scatterdi<mode>"): Rename from
748         "avx512f_scatterdi<mode>".
749         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
750
751 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
752
753         * ira.h (ira_finish_once): Delete.
754         * ira-int.h (target_ira_int::~target_ira_int): Declare.
755         (target_ira_int::free_ira_costs): Likewise.
756         (target_ira_int::free_register_move_costs): Likewise.
757         (ira_finish_costs_once): Delete.
758         * ira.c (free_register_move_costs): Replace with...
759         (target_ira_int::free_register_move_costs): ...this new function.
760         (target_ira_int::~target_ira_int): Define.
761         (ira_init): Call free_register_move_costs as a member function rather
762         than a global function.
763         (ira_finish_once): Delete.
764         * ira-costs.c (free_ira_costs): Replace with...
765         (target_ira_int::free_ira_costs): ...this new function.
766         (ira_init_costs): Call free_ira_costs as a member function rather
767         than a global function.
768         (ira_finish_costs_once): Delete.
769         * target-globals.c (target_globals::~target_globals): Call the
770         target_ira_int destructor.
771         * toplev.c: Include lra.h.
772         (finalize): Call lra_finish_once rather than ira_finish_once.
773
774 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
775
776         * common.opt (flto-odr-type-merging): New flag.
777         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
778         (types_same_for_odr): Likewise.
779         (odr_subtypes_equivalent_p): Likewise.
780         (add_type_duplicate): Do not walk type variants.
781         (register_odr_type): New function.
782         * ipa-utils.h (register_odr_type): Declare.
783         (odr_type_p): New function.
784         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
785         TYPE_DECLs
786         * doc/invoke.texi (-flto-odr-type-merging): Document.
787         * tree.c (need_assembler_name_p): Compute ODR names when asked
788         for it.
789         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
790
791 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
792
793         PR target/63228
794         * config/i386/i386.c (ix86_option_override_internal): Also turn
795         off OPTION_MASK_ABI_X32 for -m16.
796
797 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
798
799         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
800         GPR instead of P.
801
802 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
803
804         PR target/58757
805         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
806         Directly forward to __*_DENORM_MIN__.
807
808 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
809
810         * rtl.h (LABEL_REF_LABEL): New macro.
811
812         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
813         of XEXP (, 0), where we know that we have a LABEL_REF.
814         * cfgbuild.c (make_edges): Likewise.
815         (purge_dead_tablejump_edges): Likewise.
816         * cfgexpand.c (convert_debug_memory_address): Likewise.
817         * cfgrtl.c (patch_jump_insn): Likewise.
818         * combine.c (distribute_notes): Likewise.
819         * cse.c (hash_rtx_cb): Likewise.
820         (exp_equiv_p): Likewise.
821         (fold_rtx): Likewise.
822         (check_for_label_ref): Likewise.
823         * cselib.c (rtx_equal_for_cselib_1): Likewise.
824         (cselib_hash_rtx): Likewise.
825         * emit-rtl.c (mark_label_nuses): Likewise.
826         * explow.c (convert_memory_address_addr_space): Likewise.
827         * final.c (output_asm_label): Likewise.
828         (output_addr_const): Likewise.
829         * gcse.c (add_label_notes): Likewise.
830         * genconfig.c (walk_insn_part): Likewise.
831         * genrecog.c (validate_pattern): Likewise.
832         * ifcvt.c (cond_exec_get_condition): Likewise.
833         (noce_emit_store_flag): Likewise.
834         (noce_get_alt_condition): Likewise.
835         (noce_get_condition): Likewise.
836         * jump.c (maybe_propagate_label_ref): Likewise.
837         (mark_jump_label_1): Likewise.
838         (redirect_exp_1): Likewise.
839         (rtx_renumbered_equal_p): Likewise.
840         * lra-constraints.c (operands_match_p): Likewise.
841         * reload.c (operands_match_p): Likewise.
842         (find_reloads): Likewise.
843         * reload1.c (set_label_offsets): Likewise.
844         * reorg.c (get_branch_condition): Likewise.
845         * rtl.c (rtx_equal_p_cb): Likewise.
846         (rtx_equal_p): Likewise.
847         * rtlanal.c (reg_mentioned_p): Likewise.
848         (rtx_referenced_p): Likewise.
849         (get_condition): Likewise.
850         * sched-vis.c (print_value): Likewise.
851         * varasm.c (const_hash_1): Likewise.
852         (compare_constant): Likewise.
853         (const_rtx_hash_1): Likewise.
854         (output_constant_pool_1): Likewise.
855
856 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
857
858         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
859         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
860         instead of minus.
861         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
862         cr6_test_for_lt_reverse): Ditto.
863
864 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
865
866         PR c++/61489
867         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
868
869 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
870
871         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
872         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
873         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
874         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
875         Delete.
876
877         (aarch64_fold_builtin): Remove all reinterpret cases.
878
879         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
880
881         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
882
883         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
884         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
885         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
886         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
887         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
888         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
889         aarch64_reinterpretv2df<mode>): Delete.
890
891         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
892
893         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
894         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
895         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
896         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
897         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
898         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
899         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
900         vreinterpret_u32_f64): Use cast.
901
902         * config/aarch64/iterators.md (VD_RE): Delete.
903
904 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
905
906         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
907         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
908         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
909         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
910         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
911         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
912         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
913         Replace inline assembler with __aarch64_vset_lane_any.
914
915 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
916
917         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
918         types.
919         (vmull_high_lane_s32): Likewise.
920         (vmull_high_lane_u16): Likewise.
921         (vmull_high_lane_u32): Likewise.
922
923 2014-09-11  Jason Merrill  <jason@redhat.com>
924
925         PR c++/58678
926         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
927
928 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
929
930         PR target/63223
931         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
932         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
933         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
934
935 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
936             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
937             Anna Tikhonova  <anna.tikhonova@intel.com>
938             Ilya Tocar  <ilya.tocar@intel.com>
939             Andrey Turetskiy  <andrey.turetskiy@intel.com>
940             Ilya Verbin  <ilya.verbin@intel.com>
941             Kirill Yukhin  <kirill.yukhin@intel.com>
942             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
943
944         * config/i386/sse.md
945         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
946         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
947         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
948         New.
949         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
950         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
951         iterator.
952         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
953         New.
954         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
955         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
956         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
957         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
958         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
959         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
960         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
961         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
962         iterator.
963         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
964         New.
965         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
966         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
967         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
968
969 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
970
971         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
972         to access removed nodes.
973
974 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
975
976         PR tree-optimization/63186
977         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
978         (mark_nonssa_use): Likewise.
979         (verify_non_ssa_vars): Verify all header blocks for label
980         definitions.
981
982 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
983             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
984             Anna Tikhonova  <anna.tikhonova@intel.com>
985             Ilya Tocar  <ilya.tocar@intel.com>
986             Andrey Turetskiy  <andrey.turetskiy@intel.com>
987             Ilya Verbin  <ilya.verbin@intel.com>
988             Kirill Yukhin  <kirill.yukhin@intel.com>
989             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
990
991         * config/i386/sse.md
992         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
993         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
994         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
995         "<avx2_avx512f>_permvar<mode><mask_name>".
996         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
997         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
998         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
999         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
1000         Ditto.
1001         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
1002         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1003         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
1004         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1005
1006 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1007
1008         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
1009         V2DF, V4SF, DF, and DI modes.
1010         (vsx_fmav2df2): Likewise.
1011         (vsx_float_fix_<mode>2): Likewise.
1012         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
1013
1014 2014-09-10  Xinliang David Li  <davidxl@google.com>
1015
1016         PR target/63209
1017         * config/arm/arm.md (movcond_addsi): Handle case where source
1018         and target operands are the same.
1019
1020 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
1021
1022         * final.c (this_is_asm_operands): Strengthen this variable from
1023         rtx to const rtx_insn *.
1024         * output.h (this_is_asm_operands): Likewise.
1025         * rtl-error.c (location_for_asm): Strengthen param "insn" from
1026         const_rtx to const rtx_insn *.
1027         (diagnostic_for_asm): Likewise.
1028         * rtl-error.h (error_for_asm): Likewise.
1029         (warning_for_asm): Likewise.
1030
1031 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
1032
1033         * genextract.c (print_header): When writing out insn_extract to
1034         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
1035         * recog.h (insn_extract): Strengthen the param from rtx to
1036         rtx_insn *.
1037
1038 2014-09-10  Mike Stump  <mikestump@comcast.net>
1039
1040         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
1041         8.6.1.
1042
1043 2014-09-10  Martin Jambor  <mjambor@suse.cz>
1044
1045         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
1046         (analyze): Do not set analyze flag if expand_thunk returns false;.
1047         (create_wrapper): Likewise.
1048         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
1049
1050 2014-09-10  Martin Jambor  <mjambor@suse.cz>
1051
1052         PR ipa/61654
1053         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
1054         new decl properly.  Analyze the new thunk if it is expanded.
1055
1056 2014-09-10  Andreas Schwab  <schwab@suse.de>
1057
1058         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
1059         [USED_FOR_TARGET]: Define.
1060
1061 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
1062
1063         * config/mips/mips.c (mips_secondary_reload_class): Handle
1064         regno < 0 case.
1065
1066 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
1067
1068         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
1069         assignment.
1070
1071 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
1072
1073         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
1074         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
1075         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
1076         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
1077         flag_delete_null_pointer_checks for them.
1078         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
1079         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
1080         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
1081         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
1082         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
1083         stmt's iterator.
1084         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
1085         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
1086         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
1087         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
1088         * doc/invoke.texi (-fsanitize=nonnull-attribute,
1089         -fsanitize=returns-nonnull-attribute): Document.
1090
1091         * ubsan.h (struct ubsan_mismatch_data): Removed.
1092         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
1093         * ubsan.c (ubsan_source_location): For unknown locations,
1094         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
1095         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
1096         Allow more than one location and arbitrary extra arguments passed
1097         in ... instead of through MISMATCH pointer.
1098         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
1099         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
1100         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
1101         callers.
1102
1103 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1104             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1105             Anna Tikhonova  <anna.tikhonova@intel.com>
1106             Ilya Tocar  <ilya.tocar@intel.com>
1107             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1108             Ilya Verbin  <ilya.verbin@intel.com>
1109             Kirill Yukhin  <kirill.yukhin@intel.com>
1110             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1111
1112         * config/i386/sse.md
1113         (define_mode_iterator VI48F): New.
1114         (define_insn "<avx512>_compress<mode>_mask"): Rename from
1115         "avx512f_compress<mode>_mask" and update mode iterator.
1116         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
1117         "avx512f_compressstore<mode>_mask" and update mode iterator.
1118         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
1119         "avx512f_expand<mode>_maskz" and update mode iterator.
1120         (define_insn "<avx512>_expand<mode>_mask"): Rename from
1121         "avx512f_expand<mode>_mask" and update mode iterator.
1122
1123 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1124             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1125             Anna Tikhonova  <anna.tikhonova@intel.com>
1126             Ilya Tocar  <ilya.tocar@intel.com>
1127             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1128             Ilya Verbin  <ilya.verbin@intel.com>
1129             Kirill Yukhin  <kirill.yukhin@intel.com>
1130             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1131
1132         * config/i386/i386.c
1133         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
1134         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
1135         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
1136         avx512dq_rangepv4sf_mask.
1137         * config/i386/sse.md
1138         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
1139         UNSPEC_RANGE.
1140         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
1141         (define_insn "reduces<mode>"): Ditto.
1142         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1143         Ditto.
1144         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
1145         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
1146         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
1147
1148 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1149             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1150             Anna Tikhonova  <anna.tikhonova@intel.com>
1151             Ilya Tocar  <ilya.tocar@intel.com>
1152             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1153             Ilya Verbin  <ilya.verbin@intel.com>
1154             Kirill Yukhin  <kirill.yukhin@intel.com>
1155             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1156
1157         * config/i386/i386.c
1158         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
1159         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
1160         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
1161         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
1162         avx512vl_getmantv2df_mask.
1163         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
1164         avx512f_vgetmantv4sf_round.
1165         * config/i386/sse.md
1166         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
1167         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
1168         mode iterator.
1169         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
1170         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
1171         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
1172         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
1173         iterator..
1174         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
1175         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
1176         update mode iterator.
1177         (define_expand
1178         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
1179         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
1180         mode iterator.
1181         (define_insn
1182         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
1183         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
1184         update mode iterator.
1185         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
1186         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
1187         iterator..
1188         (define_insn
1189         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
1190         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
1191         mode iterator..
1192         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
1193         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
1194         update mode iterator.
1195         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
1196         "avx512f_getmant<mode><round_saeonly_name>".
1197
1198 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
1199
1200         PR ipa/63166
1201         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
1202
1203 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1204             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1205             Anna Tikhonova  <anna.tikhonova@intel.com>
1206             Ilya Tocar  <ilya.tocar@intel.com>
1207             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1208             Ilya Verbin  <ilya.verbin@intel.com>
1209             Kirill Yukhin  <kirill.yukhin@intel.com>
1210             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1211
1212         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
1213         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
1214         (define_mode_iterator FMAMODE_AVX512): New.
1215         (define_mode_iterator FMAMODE): Remove conditions.
1216         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
1217         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
1218         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
1219         mode iterator.
1220         (define_mode_iterator FMAMODE_NOVF512): Remove.
1221         (define_insn "*fma_fmadd_<mode>"): Rename from
1222         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
1223         FMAMODE mode iterator.
1224         (define_mode_iterator VF_SF_AVX512VL): New.
1225         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
1226         Use VF_SF_AVX512VL mode iterator.
1227         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
1228         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1229         iterator.
1230         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
1231         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1232         iterator.
1233         (define_insn "*fma_fmsub_<mode>"): Rename from
1234         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
1235         FMAMODE mode iterator.
1236         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
1237         Use VF_SF_AVX512VL mode iterator.
1238         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
1239         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1240         iterator.
1241         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
1242         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1243         iterator.
1244         (define_insn "*fma_fnmadd_<mode>"): Rename from
1245         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
1246         use FMAMODE mode iterator.
1247         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
1248         Use VF_SF_AVX512VL mode iterator.
1249         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
1250         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1251         iterator.
1252         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
1253         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1254         iterator.
1255         (define_insn "*fma_fnmsub_<mode>"): Rename from
1256         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
1257         FMAMODE mode iterator.
1258         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
1259         Use VF_SF_AVX512VL mode iterator.
1260         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
1261         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1262         iterator.
1263         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
1264         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1265         iterator.
1266         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
1267         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
1268         use VF_AVX512VL mode iterator.
1269         (define_insn "*fma_fmaddsub_<mode>"): Rename from
1270         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
1271         remove subst usage.
1272         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
1273         Use VF_SF_AVX512VL mode iterator.
1274         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
1275         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1276         iterator.
1277         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
1278         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1279         iterator.
1280         (define_insn "*fma_fmsubadd_<mode>"): Rename from
1281         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
1282         remove usage of subst.
1283         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
1284         Use VF_SF_AVX512VL mode iterator.
1285         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
1286         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1287         iterator.
1288         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
1289         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1290         iterator.
1291
1292 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
1293
1294         Revert r213751:
1295         * calls.c (precompute_arguments): Check
1296          promoted_for_signed_and_unsigned_p and set the promoted mode.
1297         (promoted_for_signed_and_unsigned_p): New function.
1298         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
1299         and set the promoted mode.
1300         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
1301         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
1302         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
1303
1304 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1305
1306         * opth-gen.awk: Generate mapping from cpp message reasons to the
1307         options that enable them.
1308         * doc/options.texi (CppReason): Document.
1309
1310 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1311
1312         * doc/invoke.texi (Wnormalized=): Update.
1313
1314 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
1315
1316         PR target/63195
1317         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
1318         operands.  Split off the constant operand alternative to ...
1319         (*bool<mode>3_imm): New.
1320
1321 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1322
1323         * rtl.h (single_set_2): Strengthen first param from const_rtx to
1324         const rtx_insn *, and move prototype to above...
1325         (single_set): ...this.  Convert this from a macro to an inline
1326         function, enforcing the requirement that the param is a const
1327         rtx_insn *.
1328         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
1329
1330         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
1331         Strengthen both params from rtx to rtx_insn *.
1332         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
1333         Likewise; introduce locals "producer_set", "consumer_set", using
1334         them in place of "producer" and "consumer" when dealing with SET
1335         rather than insn.
1336         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
1337         when invoking single_set in region guarded by INSN_P.
1338         (avr_out_bitop): Likewise.
1339         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
1340         region guarded by GET_CODE check, using methods to strengthen
1341         local "this_insn" from rtx to rtx_insn *, and for clarity.
1342         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
1343         Strengthen local "insn" from rtx to rtx_insn *.
1344         (define_insn_and_split "xload<mode>_A"): Likewise.
1345         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
1346         "insn".
1347         (find_load): Likewise for return type.
1348         (workaround_speculation): Likewise for both locals named
1349         "load_insn".
1350         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
1351         local "cc0_user".
1352         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
1353         for local "prev".
1354         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
1355         param 2.
1356         * config/h8300/h8300.c (notice_update_cc): Likewise.
1357         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
1358         "insn" and "dep_insn".
1359         (exact_store_load_dependency): Likewise for both params.
1360         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
1361         since this now clashes with inline function.  Instead, delay
1362         calling single_set until the point where its needed, and then
1363         assign the result to "compare_set" and rework the conditional that
1364         follows.
1365         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
1366         local "last" from rtx to rtx_insn *.
1367         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
1368         second param.
1369         (mips_store_data_bypass_p): Likewise for both params.
1370         * config/mips/mips.c (mips_load_store_insns): Likewise for second
1371         param.
1372         (mips_store_data_bypass_p): Likewise for both params.
1373         (mips_orphaned_high_part_p): Likewise for param "insn".
1374         * config/mn10300/mn10300.c (extract_bundle): Likewise.
1375         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
1376         Introduce local rtx "insn2_pat".
1377         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
1378         "ninsn".
1379         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
1380         Introduce local rtx "set", using it in place of "insn" for the
1381         result of single_set.  This appears to fix a bug, since the call
1382         to find_regno_note on a SET does nothing.
1383         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
1384         params from rtx to rtx_insn *.
1385         (set_to_load_agen): Likewise.
1386         * config/s390/s390.c (s390_label_align): Likewise for local
1387         "prev_insn".  Introduce new rtx locals "set" and "src", using
1388         them in place of "prev_insn" for the results of single_set
1389         and SET_SRC respectively.
1390         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
1391         Introduce new rtx local "set" using in place of "jump" for the
1392         result of single_set.  Use SET_SRC (set) rather than plain
1393         XEXP (set, 1).
1394         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
1395         rtx to rtx_insn *.
1396         (noncall_uses_reg): Likewise.
1397         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
1398         guarded by GET_CODE check, using its methods for clarity, and to
1399         enable strengthening local "this_insn" from rtx to rtx_insn *.
1400         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
1401         "insn" from rtx to rtx_insn *.
1402         (define_expand "umulhisi3"): Likewise.
1403         (define_expand "smulsi3_highpart"): Likewise.
1404         (define_expand "umulsi3_highpart"): Likewise.
1405         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1406         local "after".  Replace GET_CODE check with a dyn_cast,
1407         introducing new local rtx_sequence * "seq", using insn method for
1408         typesafety.
1409
1410         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
1411         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
1412         place of "insn" once we're dealing with patterns rather than the
1413         input insn.
1414         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
1415         (scan_trace): Likewise for local "elt", updating lookups within
1416         sequence to use insn method rather than element method.
1417         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
1418         to rtx_insn *.
1419         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
1420         * ifcvt.c (noce_try_abs): Likewise for local "insn".
1421         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
1422         invoking single_set.
1423         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
1424         "insn" from rtx to rtx_insn *.
1425         (skip_usage_debug_insns): Likewise for return type, adding a
1426         checked cast.
1427         (check_secondary_memory_needed_p): Likewise for local "insn".
1428         (inherit_reload_reg): Likewise.
1429         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
1430         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
1431         checked casts.
1432         (store_data_bypass_p): Likewise for both params.
1433         (if_test_bypass_p): Likewise.
1434         * recog.h (store_data_bypass_p): Likewise for both params.
1435         (if_test_bypass_p): Likewise.
1436         * reload.c (find_equiv_reg): Likewise for local "where".
1437         * reorg.c (delete_jump): Likewise for param "insn".
1438         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
1439         to const rtx_insn *.
1440         * store-motion.c (replace_store_insn): Likewise for param "del".
1441         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
1442         and use its methods for clarity, and to strengthen local "del"
1443         from rtx to rtx_insn *.
1444         (build_store_vectors): Use insn method of "st" when calling
1445         replace_store_insn for typesafety and clarity.
1446
1447 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1448
1449         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
1450         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
1451         on how to make it legal in future.
1452
1453 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1454
1455         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
1456         to rtx_insn *.
1457         (restinsn): Likewise.
1458         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
1459         Likewise for param.
1460         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
1461         Likewise.
1462         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
1463         first param.
1464         (arc_hazard): Likewise for both params.
1465         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
1466         checked casts to rtx_sequence * and uses of the insn method for
1467         type-safety.
1468         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
1469         (arc_adjust_insn_length): Likewise for param "insn".
1470         (struct insn_length_parameters_s): Likewise for first param of
1471         "get_variants" callback field.
1472         (arc_get_insn_variants): Likewise for first param and local
1473         "inner".  Replace a check of GET_CODE with a dyn_cast to
1474         rtx_sequence *, using methods for type-safety and clarity.
1475         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
1476         rtx_sequence * and uses of the insn method for type-safety when
1477         invoking arc_adjust_insn_length.
1478         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
1479         for param.
1480         (arm_address_offset_is_imm): Likewise.
1481         (struct tune_params): Likewise for params 1 and 3 of the
1482         "sched_adjust_cost" callback field.
1483         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
1484         params 1 and 3 ("insn" and "dep").
1485         (xscale_sched_adjust_cost): Likewise.
1486         (fa726te_sched_adjust_cost): Likewise.
1487         (cortexa7_older_only): Likewise for param "insn".
1488         (cortexa7_younger): Likewise.
1489         (arm_attr_length_move_neon): Likewise.
1490         (arm_address_offset_is_imm): Likewise.
1491         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
1492         * config/avr/avr.c (avr_notice_update_cc): Likewise.
1493         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
1494         (workaround_speculation): Likewise for local "last_condjump".
1495         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
1496         (shadow_or_blockage_p): Likewise.
1497         (get_unit_reqs): Likewise.
1498         (get_unit_operand_masks): Likewise.
1499         (c6x_registers_update): Likewise.
1500         (returning_call_p): Likewise.
1501         (can_use_callp): Likewise.
1502         (convert_to_callp): Likewise.
1503         (find_last_same_clock): Likwise for local "t".
1504         (reorg_split_calls): Likewise for local "shadow".
1505         (hwloop_pattern_reg): Likewise for param "insn".
1506         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
1507         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1508         (frv_extract_membar): Likewise.
1509         (frv_optimize_membar_local): Strengthen param "last_membar" from
1510         rtx * to rtx_insn **.
1511         (frv_optimize_membar_global): Strengthen param "membar" from rtx
1512         to rtx_insn *.
1513         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
1514         to rtx_insn **.
1515         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
1516         both params from rtx to rtx_insn *.
1517         (ia64_ld_address_bypass_p): Likewise.
1518         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
1519         "insn".
1520         (ia64_safe_type): Likewise.
1521         (group_barrier_needed): Likewise.
1522         (safe_group_barrier_needed): Likewise.
1523         (ia64_single_set): Likewise.
1524         (is_load_p): Likewise.
1525         (record_memory_reference): Likewise.
1526         (get_mode_no_for_insn): Likewise.
1527         (important_for_bundling_p): Likewise.
1528         (unknown_for_bundling_p): Likewise.
1529         (ia64_st_address_bypass_p): Likewise for both params.
1530         (ia64_ld_address_bypass_p): Likewise.
1531         (expand_vselect): Introduce new local rtx_insn * "insn", using it
1532         in place of rtx "x" after the emit_insn call.
1533         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
1534         Strengthen param from rtx to rtx_insn *.
1535         (ix86_agi_dependent): Likewise for both params.
1536         (ix86_attr_length_immediate_default): Likewise for param 1.
1537         (ix86_attr_length_address_default): Likewise for param.
1538         (ix86_attr_length_vex_default): Likewise for param 1.
1539         * config/i386/i386.c (ix86_attr_length_immediate_default):
1540         Likewise for param "insn".
1541         (ix86_attr_length_address_default): Likewise.
1542         (ix86_attr_length_vex_default): Likewise.
1543         (ix86_agi_dependent): Likewise for both params.
1544         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
1545         (vselect_insn): Likewise for this variable.
1546         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
1547         for param 1.
1548         (m68k_sched_attr_opy_type): Likewise.
1549         * config/m68k/m68k.c (sched_get_operand): Likewise.
1550         (sched_attr_op_type): Likewise.
1551         (m68k_sched_attr_opx_type): Likewise.
1552         (m68k_sched_attr_opy_type): Likewise.
1553         (sched_get_reg_operand): Likewise.
1554         (sched_get_mem_operand): Likewise.
1555         (m68k_sched_address_bypass_p): Likewise for both params.
1556         (sched_get_indexed_address_scale): Likewise.
1557         (m68k_sched_indexed_address_bypass_p): Likewise.
1558         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
1559         (m68k_sched_indexed_address_bypass_p): Likewise.
1560         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
1561         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
1562         removing another.
1563         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
1564         params from rtx to rtx_insn *.
1565         (mips_fmadd_bypass): Likewise.
1566         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
1567         (mips_linked_madd_p): Likewise.
1568         (mips_macc_chains_last_hilo): Likewise for this variable.
1569         (mips_macc_chains_record): Likewise for param.
1570         (vr4130_last_insn): Likewise for this variable.
1571         (vr4130_swap_insns_p): Likewise for both params.
1572         (mips_ls2_variable_issue): Likewise for param.
1573         (mips_need_noat_wrapper_p): Likewise for param "insn".
1574         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
1575         in place of "x" after the emit_insn.
1576         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
1577         params from rtx to rtx_insn *.
1578         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
1579         (pa_combine_instructions): Introduce local "par" for result of
1580         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1581         to make_insn_raw.
1582         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1583         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1584         (rl78_alloc_physical_registers_op1): Likewise.
1585         (rl78_alloc_physical_registers_op2): Likewise.
1586         (rl78_alloc_physical_registers_ro1): Likewise.
1587         (rl78_alloc_physical_registers_cmp): Likewise.
1588         (rl78_alloc_physical_registers_umul): Likewise.
1589         (rl78_alloc_address_registers_macax): Likewise.
1590         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1591         * config/s390/predicates.md (execute_operation): Likewise for
1592         local "insn".
1593         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1594         params.
1595         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1596         (addr_generation_dependency_p): Likewise for param "insn".
1597         (s390_agen_dep_p): Likewise for both params.
1598         (s390_fpload_toreg): Likewise for param "insn".
1599         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1600         * config/sh/sh.c (sh_loop_align): Likewise for param and local
1601         "next".
1602         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1603         * config/sh/sh_treg_combine.cc
1604         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1605         and local "i".
1606         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1607         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1608         "and_insn", "load", "shift".
1609         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1610         "insn".
1611         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1612         for XEXP (note, 0) of the REG_CC_SETTER note.
1613         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1614         rtx_insn *, eliminating a checked cast made redundant by this.
1615         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1616         to rtx_insn *.
1617         * genattr.c (main): When writing out the prototype to
1618         const_num_delay_slots, strengthen the param from rtx to
1619         rtx_insn *.
1620         * genattrtab.c (write_const_num_delay_slots): Likewise when
1621         writing out the implementation of const_num_delay_slots.
1622         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1623         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1624         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1625         favor of new rtx locals "src" and "set" and new local rtx_insn *
1626         "insn" and "seq".
1627         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1628         to rtx_insn *.
1629         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1630         locals "cond", "if_then_else", "set" and new rtx_insn * locals
1631         "insn" and "seq".
1632         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1633         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
1634         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
1635         the top-level scope, replacing with new more tightly-scoped rtx
1636         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1637         "new_insn", "copy_of_insn_b", and make local rtx "set" more
1638         tightly-scoped.
1639         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1640         rtx_insn *.
1641         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1642         "move_insn".
1643         (ira_setup_alts): Likewise for param "insn".
1644         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1645         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1646         and an rtx_insn *.
1647         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1648         new more-tightly scoped rtx locals "add3_insn", "insn",
1649         "add2_insn" and rtx_insn * "move_insn".
1650         * postreload-gcse.c (eliminate_partially_redundant_load): Add
1651         checked cast on result of gen_move_insn when invoking
1652         extract_insn.
1653         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1654         rtx_insn *.
1655         (verify_changes): Add a checked cast on "object" when invoking
1656         insn_invalid_p.
1657         (extract_insn_cached): Strengthen param "insn" from rtx to
1658         rtx_insn *.
1659         (extract_constrain_insn_cached): Likewise.
1660         (extract_insn): Likewise.
1661         * recog.h (insn_invalid_p): Likewise for param 1.
1662         (recog_memoized): Likewise for param.
1663         (extract_insn): Likewise.
1664         (extract_constrain_insn_cached): Likewise.
1665         (extract_insn_cached): Likewise.
1666         * reload.c (can_reload_into): Likewise for local "test_insn".
1667         * reload.h (cleanup_subreg_operands): Likewise for param.
1668         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1669         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1670         result of emit_insn.  Remove a checked cast made redundant by this
1671         change.
1672         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1673         rtx to rtx_insn *.
1674         * sel-sched.c (get_reg_class): Likewise.
1675
1676 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1677         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1678
1679          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1680          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1681         Define.
1682         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1683
1684 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1685
1686         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1687         const rtx_insn *, and from rtx to rtx_insn * for the other
1688         overloaded variant.
1689         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1690         INSN_LOCATION, since we know INSN_P holds.
1691         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1692         (insn_file): Likewise.
1693         (insn_scope): Likewise.
1694         (insn_location): Likewise.
1695
1696         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1697         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1698         for the result of gen_load_const_gp.
1699         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1700         param from rtx to rtx_insn *.
1701         * config/rs6000/rs6000.c (output_call): Likewise.
1702         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1703         introducing a checked cast to rtx_sequence * and use of the insn
1704         method.
1705         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1706         from rtx to rtx_insn *.
1707         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1708         (insn_line): Likewise.
1709         (insn_file): Likewise.
1710         (insn_location): Likewise.
1711         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1712         from rtx to rtx_insn *.
1713         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1714         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1715         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1716         via a checked cast.
1717         * reorg.c (relax_delay_slots): Strengthen locals named "after"
1718         from rtx to rtx_insn *; use methods of "pat" for type-safety.
1719
1720 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1721
1722         * combine.c (try_combine): Eliminate checked cast on result of
1723         gen_rtx_INSN.
1724         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1725         autogenerated one by strengthening the return type and params 2 and 3
1726         from rtx to rtx_insn *, and by naming the params.
1727         * gengenrtl.c (special_rtx): Add INSN to those that are
1728         special-cased.
1729         * rtl.h (gen_rtx_INSN): New prototype.
1730
1731 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1732
1733         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1734         than NULL_RTX.
1735         (no_equiv): Likewise.
1736         (update_equiv_regs): Likewise.
1737         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
1738         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1739         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
1740         clarity.
1741         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1742         from rtx to rtx_insn_list *.
1743         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1744         rtx_insn_list * and use methods for clarity and typesafety.
1745         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1746         "list".
1747         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
1748         redundant check on INSN_P (insns): this cannot hold, as "insns" is
1749         an INSN_LIST, not an insn.
1750         (reverse_equiv_p): Strengthen local "insns" from rtx to
1751         rtx_insn_list * and use methods for clarity and typesafety.
1752         (contains_reloaded_insn_p): Likewise for local "list".
1753
1754 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
1755
1756         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1757         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1758         (arm_builtin_vectorized_function): Likewise.
1759         * config/arm/arm_neon_builtins.def: New macro for copysignf.
1760         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1761
1762 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
1763
1764         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1765         * builtins.h (default_target_builtins): Likewise.
1766         * gcse.h (default_target_gcse): Likewise.
1767         * target-globals.h (target_globals): Add a destructor.  Convert
1768         void-pointer fields back to their real type and change from
1769         GTY((atomic)) to GTY((skip)).
1770         (restore_target_globals): Remove casts accordingly.
1771         * target-globals.c (save_target_globals): Use XCNEW rather than
1772         ggc_internal_cleared_alloc to allocate non-GC structures.
1773         Use ggc_cleared_alloc to allocate the target_globals structure
1774         itself.
1775         (target_globals::~target_globals): Define.
1776
1777 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1778
1779         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1780         mnemonic instead of fldmfdd.
1781         * config/arm/arm.c (vfp_output_fstmd): Rename to...
1782         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
1783         Output vpush when address register is SP.
1784         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1785         (vfp_output_vstmd): ... This.
1786         * config/arm/vfp.md (push_multi_vfp): Update call to
1787         vfp_output_vstmd.
1788
1789 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1790
1791         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1792
1793 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1794
1795         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1796         (*sqrtdf2_vfp): Likewise.
1797         (*cmpsf_vfp): Likewise.
1798         (*cmpsf_trap_vfp): Likewise.
1799         (*cmpdf_vfp): Likewise.
1800         (*cmpdf_trap_vfp): Likewise.
1801
1802 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1803
1804         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1805         (*truncdfsf2_vfp): Likewise.
1806         (*truncsisf2_vfp): Likewise.
1807         (*truncsidf2_vfp): Likewise.
1808         (fixuns_truncsfsi2): Likewise.
1809         (fixuns_truncdfsi2): Likewise.
1810         (*floatsisf2_vfp): Likewise.
1811         (*floatsidf2_vfp): Likewise.
1812         (floatunssisf2): Likewise.
1813         (floatunssidf2): Likewise.
1814
1815 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1816
1817         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1818         (*muldf3_vfp): Likewise.
1819         (*mulsf3negsf_vfp): Likewise.
1820         (*muldf3negdf_vfp): Likewise.
1821         (*mulsf3addsf_vfp): Likewise.
1822         (*muldf3adddf_vfp): Likewise.
1823         (*mulsf3subsf_vfp): Likewise.
1824         (*muldf3subdf_vfp): Likewise.
1825         (*mulsf3negsfaddsf_vfp): Likewise.
1826         (*fmuldf3negdfadddf_vfp): Likewise.
1827         (*mulsf3negsfsubsf_vfp): Likewise.
1828         (*muldf3negdfsubdf_vfp): Likewise.
1829
1830 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1831
1832         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1833         (*absdf2_vfp): Likewise.
1834         (*negsf2_vfp): Likewise.
1835         (*negdf2_vfp): Likewise.
1836         (*addsf3_vfp): Likewise.
1837         (*adddf3_vfp): Likewise.
1838         (*subsf3_vfp): Likewise.
1839         (*subdf3_vfp): Likewise.
1840         (*divsf3_vfp): Likewise.
1841         (*divdf3_vfp): Likewise.
1842
1843 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1844
1845         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1846         multiple.
1847         (arm_print_operand): Don't convert real values to decimal
1848         representation in default case.
1849         (fp_immediate_constant): Delete.
1850         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1851         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1852         syntax.
1853         (*thumb2_movsi_vfp): Likewise.
1854         (*movdi_vfp): Likewise.
1855         (*movdi_vfp_cortexa8): Likewise.
1856         (*movhf_vfp_neon): Likewise.
1857         (*movhf_vfp): Likewise.
1858         (*movsf_vfp): Likewise.
1859         (*thumb2_movsf_vfp): Likewise.
1860         (*movdf_vfp): Likewise.
1861         (*thumb2_movdf_vfp): Likewise.
1862         (*movsfcc_vfp): Likewise.
1863         (*thumb2_movsfcc_vfp): Likewise.
1864         (*movdfcc_vfp): Likewise.
1865         (*thumb2_movdfcc_vfp): Likewise.
1866
1867 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
1868
1869         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1870         (-mtune): Likewise.
1871         (-mcpu): Likewise.
1872
1873 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1874
1875         PR target/61749
1876         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1877         Use qualifier_immediate for last operand.  Rename to...
1878         (aarch64_types_ternop_lane_qualifiers): ... This.
1879         (TYPES_QUADOP): Rename to...
1880         (TYPES_TERNOP_LANE): ... This.
1881         (aarch64_simd_expand_args): Return const0_rtx when encountering user
1882         error.  Change return of 0 to return of NULL_RTX.
1883         (aarch64_crc32_expand_builtin): Likewise.
1884         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1885         ICE when expanding unknown builtin.
1886         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1887         TERNOP_LANE qualifiers.
1888         (sqdmlsl_lane): Likewise.
1889         (sqdmlal_laneq): Likewise.
1890         (sqdmlsl_laneq): Likewise.
1891         (sqdmlal2_lane): Likewise.
1892         (sqdmlsl2_lane): Likewise.
1893         (sqdmlal2_laneq): Likewise.
1894         (sqdmlsl2_laneq): Likewise.
1895
1896 2014-09-09  Nick Clifton  <nickc@redhat.com>
1897
1898         * doc/invoke.texi (Optimization Options): Add missing @gol to the
1899         end of a line.
1900         (S/390 and zSeries Options): Remove superfluous word from the
1901         description of the -mhotpatch option.
1902
1903 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1904
1905         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1906         * ira.c: #include "shrink-wrap.h"
1907         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1908         * ifcvt.c: #include "shrink-wrap.h"
1909         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1910
1911 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
1912
1913         * common/config/picochip/picochip-common.c: Remove.
1914         * config.gcc: Remove support for picochip.
1915         * config/picochip/constraints.md: Remove.
1916         * config/picochip/dfa_space.md: Remove.
1917         * config/picochip/dfa_speed.md: Remove.
1918         * config/picochip/picochip-protos.h: Remove.
1919         * config/picochip/picochip.c: Remove.
1920         * config/picochip/picochip.h: Remove.
1921         * config/picochip/picochip.md: Remove.
1922         * config/picochip/picochip.opt: Remove.
1923         * config/picochip/predicates.md: Remove.
1924         * config/picochip/t-picochip: Remove.
1925         * doc/md.texi: Don't document picochi.
1926
1927 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1928
1929         * basic-block.h (control_flow_insn_p): Strengthen param from
1930         const_rtx to const rtx_insn *.
1931         * cfgbuild.c (control_flow_insn_p): Likewise.
1932
1933 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1934
1935         * gcse.c (modify_mem_list): Strengthen this variable from
1936         vec<rtx> * to vec<rtx_insn *> *.
1937         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1938         vec<rtx_insn *>.
1939         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1940         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1941         (record_last_mem_set_info): Strengthen param "insn" from rtx to
1942         rtx_insn *.
1943         (record_last_set_info): Likewise for local "last_set_insn".
1944
1945 2014-09-08  DJ Delorie  <dj@redhat.com>
1946
1947         * doc/invoke.texi (MSP430 Options): Add -minrt.
1948
1949 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1950
1951         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
1952         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1953         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1954         handling SH_SPLAT.
1955         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1956         of extracted lane.
1957         (adjust_splat): New function.
1958         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1959         (dump_swap_insn_table): Add case for SH_SPLAT.
1960
1961 2014-09-08  Richard Biener  <rguenther@suse.de>
1962
1963         PR ipa/63196
1964         * tree-inline.c (copy_loops): The source loop header should
1965         always be non-NULL.
1966         (tree_function_versioning): If loops need fixup after removing
1967         unreachable blocks fix them.
1968         * omp-low.c (simd_clone_adjust): Do not add incr block to
1969         loop under construction.
1970
1971 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1972
1973         * config/aarch64/aarch64-builtins.c
1974         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1975
1976 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1977
1978         * config/i386/cygming.h (TF_SIZE): Remove.
1979         * config/i386/darwin.h (TF_SIZE): Remove.
1980         * config/i386/dragonfly.h (TF_SIZE): Remove.
1981         * config/i386/freebsd.h (TF_SIZE): Remove.
1982         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1983         * config/i386/openbsdelf.h (TF_SIZE): Remove.
1984         * config/i386/sol2.h (TF_SIZE): Remove.
1985         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1986         * config/ia64/linux.h (TF_SIZE): Remove.
1987         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1988         * doc/tm.texi: Regenerate.
1989         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1990
1991 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1992
1993         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1994         Remove.
1995         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1996         Remove.
1997         * doc/tm.texi: Regenerate.
1998         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1999         Poison.
2000         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
2001         * config/cris/cris.h (__make_dp): Remove.
2002
2003 2014-09-08  Richard Biener  <rguenther@suse.de>
2004
2005         PR bootstrap/63204
2006         * cfgloop.c (mark_loop_for_removal): Track former header
2007         unconditionally.
2008         * cfgloop.h (struct loop): Add former_header member unconditionally.
2009         * loop-init.c (fix_loop_structure): Enable bogus loop removal
2010         diagnostic unconditionally.
2011
2012 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
2013
2014         PR target/63190
2015         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
2016         constraint for operand0 and remove write only modifier from operand3.
2017
2018 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
2019
2020         PR rtl-optimization/62208
2021         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
2022         rather than const0_rtx in eq/ne-xor simplifications.
2023
2024 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
2025
2026         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
2027         (arc_output_mi_thunk): Likewise.
2028
2029         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
2030         arguments to silence bogus warning.
2031
2032 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
2033
2034         PR middle-end/63171
2035         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
2036
2037 2014-09-06  Tom de Vries  <tom@codesourcery.com>
2038
2039         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
2040         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
2041         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2042
2043 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
2044
2045         PR target/63188
2046         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
2047         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
2048
2049 2014-09-05  Easwaran Raman  <eraman@google.com>
2050
2051         PR rtl-optimization/62146
2052         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
2053         hoisted instruction unconditional.
2054
2055 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
2056
2057         PR target/63187
2058         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
2059         Do not allow any_mask_operand for operands[2].
2060         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
2061
2062 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2063
2064         * config/arc/arc.c (arc_print_operand): Use insn method of
2065         final_sequence for type-safety.
2066         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
2067         "insn" from rtx to rtx_insn *.
2068         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
2069         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
2070         Likewise for locals "branch", "label".
2071         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
2072         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
2073         (same_cmp_following_p): Likewise for locals "i2", "i3".
2074         * config/sh/sh_optimize_sett_clrt.cc
2075         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
2076         param "cbranch_insn".
2077         * function.c (convert_jumps_to_returns): Likewis for local "jump".
2078         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
2079         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
2080         const rtx_insn *.
2081         (condjump_p): Likewise.
2082         (condjump_in_parallel_p): Likewise.
2083         (pc_set): Likewise.
2084         (any_uncondjump_p): Likewise.
2085         (any_condjump_p): Likewise.
2086         (condjump_label): Likewise.
2087         (returnjump_p): Strengthen param "insn" from rtx to
2088         const rtx_insn *.
2089         (onlyjump_p): Strengthen param "insn" from const_rtx to
2090         const rtx_insn *.
2091         (jump_to_label_p): Likewise.
2092         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
2093         (invert_jump): Likewise.
2094         * reorg.c (simplejump_or_return_p): Add checked cast when calling
2095         simplejump_p.
2096         (get_jump_flags): Strengthen param "insn" from rtx to
2097         const rtx_insn *.
2098         (get_branch_condition): Likewise.
2099         (condition_dominates_p): Likewise.
2100         (make_return_insns): Move declaration of local "pat" earlier, to
2101         after we've handled NONJUMP_INSN_P and non-sequences, using its
2102         methods to simplify the code and for type-safety.
2103         * rtl.h (find_constant_src): Strengthen param from const_rtx to
2104         const rtx_insn *.
2105         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
2106         (condjump_p): Strengthen param from const_rtx to
2107         const rtx_insn *.
2108         (any_condjump_p): Likewise.
2109         (any_uncondjump_p): Likewise.
2110         (pc_set): Likewise.
2111         (condjump_label): Likewise.
2112         (simplejump_p): Likewise.
2113         (returnjump_p): Likewise.
2114         (onlyjump_p): Likewise.
2115         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
2116         (invert_jump): Likewise.
2117         (condjump_in_parallel_p): Strengthen param from const_rtx to
2118         const rtx_insn *.
2119         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
2120         to const rtx_insn *.
2121         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
2122         to const rtx_insn *.
2123         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
2124
2125 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2126
2127         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
2128         above the conditional, and convert the check on GET_CODE to a
2129         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
2130         the conditional.  Simplify the conditional by using methods of
2131         "trial_seq".
2132
2133 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2134
2135         * haifa-sched.c (check_clobbered_conditions): Strengthen local
2136         "link" from rtx to rtx_insn_list *, and use its methods for
2137         clarity and type-safety.
2138         (toggle_cancelled_flags): Likewise.
2139         (restore_last_backtrack_point): Likewise.
2140         (queue_to_ready): Use insn method of "link" in one place.
2141         (schedule_block): Strengthen local "link" from rtx to
2142         rtx_insn_list *, and use its methods for clarity and type-safety.
2143
2144 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2145
2146         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
2147         param "insn" from const_rtx to const rtx_insn *.
2148         (sched_get_reverse_condition_uncached): Likewise.
2149         (sched_get_condition_with_rev): Likewise.
2150         (sched_has_condition_p): Likewise.
2151         (sched_insns_conditions_mutex_p): Likewise for both params.
2152         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
2153         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
2154         (setup_insn_reg_uses): Move local "list" to be more tightly
2155         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
2156         its methods for clarity and type-safety.
2157         (sched_analyze_1): Strengthen local "pending" from rtx to
2158         rtx_insn_list *, and local "pending_mem" from rtx to
2159         rtx_expr_list *.  Use methods of each for clarity and type-safety.
2160         (sched_analyze_2): Likewise.
2161         (sched_analyze_insn): Likewise.
2162
2163         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
2164         param from const_rtx to const rtx_insn *.
2165         (sched_insns_conditions_mutex_p): Likewise for both params.
2166         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
2167         param.
2168
2169         * system.h (CONST_CAST_RTX_INSN): New macro.
2170
2171 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2172
2173         * recog.c (peep2_attempt): Strengthen return type from rtx to
2174         rtx_insn *.
2175         (peep2_update_life): Likewise for params "last", "prev", removing
2176         a checked cast made redundant by this.
2177         (peephole2_optimize): Likewise for local "last".
2178
2179 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2180
2181         * basic-block.h (set_block_for_insn): Eliminate this macro in
2182         favor of...
2183         * rtl.h (set_block_for_insn): New inline function, imposing the
2184         requirement that the "insn" param is an rtx_insn *.
2185
2186 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2187
2188         * caller-save.c (setup_save_areas): Strengthen local "insn" from
2189         rtx to rtx_insn *.
2190         * final.c (get_call_reg_set_usage): Likewise for first param,
2191         eliminating a checked cast.
2192         * regs.h (get_call_reg_set_usage): Likewise for first param.
2193         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
2194         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
2195         cast, replacing references to "x" with "call_insn" where
2196         appropriate.
2197         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
2198         rtx_insn *, adding a checked cast.
2199
2200 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2201
2202         * output.h (final_scan_insn): Strengthen first param from rtx to
2203         rtx_insn *.
2204
2205         * final.c (final_scan_insn): Likewise, renaming it back from
2206         "uncast_insn" to "insn", eliminating the checked cast.
2207
2208         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
2209         "vec" with an rtx_sequence * "seq", taking a copy of
2210         "final_sequence", and using methods of "seq" for clarity, and for
2211         type-safety in the calls to final_scan_insn.
2212         * config/mips/mips.c (mips_output_conditional_branch): Use methods
2213         of "final_sequence" for clarity, and for type-safety in the call to
2214         final_scan_insn.
2215         * config/sh/sh.c (print_slot): Strengthen param from rtx to
2216         rtx_sequence * and rename from "insn" to "seq".
2217
2218 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2219
2220         * jump.c (delete_related_insns): Introduce a new local "table" by
2221         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
2222         get_labels method of "table" to simplify access to the labels in
2223         the jump table.
2224
2225 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2226
2227         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
2228         f_minmaxs, f_minmaxd types.
2229
2230 2014-09-05  Richard Biener  <rguenther@suse.de>
2231
2232         * cfgloop.c (mark_loop_for_removal): Record former header
2233         when ENABLE_CHECKING.
2234         * cfgloop.h (strut loop): Add former_header member when
2235         ENABLE_CHECKING.
2236         * loop-init.c (fix_loop_structure): Sanity check loops
2237         marked for removal if they re-appeared.
2238
2239 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2240
2241         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
2242         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
2243
2244         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
2245         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
2246         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
2247         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
2248         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
2249         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
2250         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
2251         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
2252         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
2253         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
2254         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
2255         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
2256         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
2257         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
2258         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
2259         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
2260         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
2261         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
2262         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
2263         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
2264         with int{32,16,8}_t.
2265
2266 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2267
2268         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
2269         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
2270         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
2271         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
2272         Remove temporary __asm__ and reimplement.
2273
2274 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2275
2276         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
2277         handling cmge, cmgt, cmeq, cmtst.
2278
2279         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
2280         cmlt, cmgeu, cmgtu, cmtst): Remove.
2281
2282         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
2283         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
2284         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
2285         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
2286
2287 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2288
2289         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
2290         TYPES_TST): Define.
2291         (aarch64_fold_builtin): Update pattern for cmtst.
2292
2293         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
2294         Declare.
2295
2296         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
2297
2298         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
2299         Switch operands, separate out more cases, refactor.
2300
2301         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
2302
2303         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
2304         argument; rename old version to...
2305         (aarch64_const_vec_all_same_in_range_p): ...this.
2306         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
2307
2308         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
2309
2310 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2311
2312         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2313         Remove qualifier_const_pointer, update comment.
2314
2315 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2316
2317         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
2318
2319 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2320
2321         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
2322         varargs with pointer parameter.
2323         (aarch64_simd_expand_builtin): pass pointer into previous.
2324
2325 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2326
2327         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
2328         alus_ext.
2329
2330 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2331
2332         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
2333         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
2334         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
2335         Replace temporary asm with call to builtin.
2336         (vrbit_p8, vrbitq_p8): New functions.
2337
2338 2014-09-05  Richard Biener  <rguenther@suse.de>
2339
2340         * cfgloop.c (mark_loop_for_removal): New function.
2341         * cfgloop.h (mark_loop_for_removal): Declare.
2342         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
2343         (merge_blocks): Likewise.
2344         (duplicate_block): Likewise.
2345         * except.c (sjlj_emit_dispatch_table): Likewise.
2346         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
2347         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
2348         (thread_through_loop_header): Likewise.
2349
2350 2014-09-05  Richard Biener  <rguenther@suse.de>
2351
2352         PR middle-end/63148
2353         * fold-const.c (try_move_mult_to_index): Remove.
2354         (fold_binary_loc): Do not call it.
2355         * tree-data-ref.c (dr_analyze_indices): Strip conversions
2356         from the base object again.
2357
2358 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
2359
2360         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
2361         DImode.
2362
2363 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2364
2365         PR target/55701
2366         * config/arm/arm.md (setmem): New pattern.
2367         * config/arm/arm-protos.h (struct tune_params): New fields.
2368         (arm_gen_setmem): New prototype.
2369         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
2370         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2371         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2372         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
2373         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
2374         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
2375         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
2376         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2377         (arm_const_inline_cost): New function.
2378         (arm_block_set_max_insns): New function.
2379         (arm_block_set_non_vect_profit_p): New function.
2380         (arm_block_set_vect_profit_p): New function.
2381         (arm_block_set_unaligned_vect): New function.
2382         (arm_block_set_aligned_vect): New function.
2383         (arm_block_set_unaligned_non_vect): New function.
2384         (arm_block_set_aligned_non_vect): New function.
2385         (arm_block_set_vect, arm_gen_setmem): New functions.
2386
2387 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2388
2389         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
2390
2391 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2392
2393         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
2394
2395 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2396
2397         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
2398         an rtx.
2399         * valtrack.h: Adjust.
2400
2401 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2402
2403         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
2404         an rtx.
2405         (emit_jump_insn_before_noloc): Likewise.
2406         (emit_call_insn_before_noloc): Likewise.
2407         (emit_label_before): Likewise.
2408         (emit_label_after): Likewise.
2409         (emit_insn_before_setloc): Likewise.
2410         (emit_jump_insn_before_setloc): Likewise.
2411         (emit_call_insn_before_setloc): Likewise.
2412         (emit_call_insn_before): Likewise.
2413         * rtl.h: Adjust.
2414
2415 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2416
2417         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
2418         rtx_insn *, eliminating a checked cast.
2419
2420 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2421
2422         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
2423         const_rtx to const rtx_insn *.
2424         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
2425         cast.
2426
2427 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2428
2429         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
2430         fixup_args_size_notes.
2431         * expr.c (fixup_args_size_notes): Strengthen first two params from
2432         rtx to rtx_insn *, eliminating a checked cast.
2433         * rtl.h (fixup_args_size_notes): Strengthen first two params from
2434         rtx to rtx_insn *.
2435
2436 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2437
2438         * haifa-sched.c (get_ready_element): Strengthen return type from
2439         rtx to rtx_insn *.
2440         * sched-int.h (get_ready_element): Likewise.
2441
2442 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
2443
2444         PR target/63165
2445         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
2446         indexed_or_indirect_operand instead of memory_operand.
2447         (floatsi<mode>2_lfiwzx_mem): Ditto.
2448
2449 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2450
2451         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
2452         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
2453         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
2454
2455 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2456
2457         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
2458         rtx.
2459         (get_last_nonnote_insn): Likewise.
2460         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
2461         * resource.c (find_basic_block): Likewise.
2462         * rtl.h: Adjust.
2463         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
2464         const_rtx.
2465
2466 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
2467
2468         * genattr.c (main): Within the prototype of insn_latency written
2469         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
2470         * genautomata.c (output_internal_maximal_insn_latency_func):
2471         Within the implementation of insn_latency written out to
2472         insn-automata.c, strengthen both params from rtx to rtx_insn *,
2473         eliminating a pair of checked casts.
2474
2475 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
2476
2477         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
2478         rtx_insn *.
2479
2480         * rtl.h (eh_returnjump_p): Likewise.
2481
2482 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
2483
2484         * Makefile.in (TAGS): Handle constructs in timevar.def.
2485
2486 2014-09-04  Guozhi Wei  <carrot@google.com>
2487
2488         PR target/62040
2489         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
2490         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
2491         it into two patterns.
2492         (move_lo_quad_internal_be_<mode>): Likewise.
2493
2494 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2495
2496         * doc/options.texi: Document that Var and Init are required if CPP
2497         is given.
2498         * optc-gen.awk: Require Var and Init if CPP is given.
2499         * common.opt (Wpedantic): Use Init.
2500
2501 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2502
2503         * config/rs6000/rs6000.c (special_handling_values): Add
2504         SH_EXTRACT.
2505         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
2506         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
2507         as swappable with special handling SH_EXTRACT.  Remove
2508         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
2509         optimization.
2510         (adjust_extract): New function.
2511         (handle_special_swappables): Add default to case statement; add
2512         case for SH_EXTRACT that calls adjust_extract.
2513         (dump_swap_insn_table): Handle SH_EXTRACT.
2514
2515 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2516
2517         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
2518         selection of 0th memory doubleword, regardless of endianness.
2519
2520 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2521
2522         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
2523
2524 2014-09-04  Alan Modra  <amodra@gmail.com>
2525
2526         PR debug/60655
2527         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
2528         can't be output.
2529
2530 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
2531
2532         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
2533         * targhooks.c (default_dwarf_frame_reg_mode): New function.
2534         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
2535         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
2536         * doc/tm.texi: Regenerate.
2537         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
2538         selection logic to default_dwarf_frame_reg_mode.
2539
2540 2014-09-03  Marek Polacek  <polacek@redhat.com>
2541
2542         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
2543         by -Wall.
2544
2545 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
2546
2547         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
2548         the automodified register.
2549
2550 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
2551
2552         * output.h (get_some_local_dynamic_name): Declare.
2553         * final.c (some_local_dynamic_name): New variable.
2554         (get_some_local_dynamic_name): New function.
2555         (final_end_function): Clear some_local_dynamic_name.
2556         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
2557         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2558         (print_operand): Report an error if '%&' is used inappropriately.
2559         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
2560         (get_some_local_dynamic_name_1): Delete.
2561         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
2562         (rs6000_get_some_local_dynamic_name): Delete.
2563         (rs6000_get_some_local_dynamic_name_1): Delete.
2564         (print_operand): Report an error if '%&' is used inappropriately.
2565         * config/s390/s390.c (machine_function): Remove some_ld_name.
2566         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2567         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
2568         * config/sparc/sparc.c: Include rtl-iter.h.
2569         (machine_function): Remove some_ld_name.
2570         (sparc_print_operand): Report an error if '%&' is used inappropriately.
2571         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2572
2573 2014-09-03  Richard Henderson  <rth@redhat.com>
2574
2575         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
2576         (aarch64_popwb_pair_reg): Remove.
2577         (aarch64_set_frame_expr): Remove.
2578         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
2579         the restore ops performed by the insns generated.
2580         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
2581         insn.  Perform the calls_eh_return addition later; do not attempt to
2582         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
2583         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2584         special markup at all.  Load cfun->machine->frame.hard_fp_offset
2585         into a local variable.
2586         (aarch64_frame_pointer_required): Don't check calls_alloca.
2587
2588 2014-09-03  Richard Biener  <rguenther@suse.de>
2589
2590         * opts.c (default_options_optimization): Adjust
2591         max-combine-insns to 2 for -Og.
2592
2593 2014-09-03  Martin Jambor  <mjambor@suse.cz>
2594
2595         PR ipa/62015
2596         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2597         pass-trough jump functions correctly.
2598
2599 2014-09-03  Martin Jambor  <mjambor@suse.cz>
2600
2601         PR ipa/61986
2602         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2603         created replacements in ascending order of offsets.
2604         (known_aggs_to_agg_replacement_list): Likewise.
2605
2606 2014-09-03  Martin Liska  <mliska@suse.cz>
2607
2608         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2609         is set to set uninitialized value for vnresult.
2610
2611 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2612
2613         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2614         for TARGET_MUST_PASS_IN_STACK.
2615
2616 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2617
2618         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2619         for TARGET_ARG_PARTIAL_BYTES.
2620
2621 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2622
2623         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2624         instructions for varargs implementation.
2625         (nds32_expand_epilogue): Emit stack adjustment instructions for
2626         varargs implementation.
2627
2628 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2629
2630         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2631         optimization detection.
2632
2633 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2634
2635         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2636         arguments.
2637         (nds32_function_arg_advance): Deal with nameless arguments.
2638         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2639         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2640         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2641
2642 2014-09-03  Richard Biener  <rguenther@suse.de>
2643
2644         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2645         (struct bb_bitmap_sets): Remove deferred member.
2646         (BB_DEFERRED): Remove.
2647         (defer_or_phi_translate_block): Remove.
2648         (compute_antic_aux): Remove deferring of blocks, assert
2649         proper iteration order.
2650         (compute_antic): Do not set BB_DEFERRED.
2651         (eliminate): Allocate el_avail of proper size initially.
2652
2653 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2654
2655         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2656         according to the value of crtl->args.pretend_args_size.
2657
2658 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2659
2660         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2661         varargs information.
2662
2663 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2664
2665         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2666         implementation for TARGET_SETUP_INCOMING_VARARGS.
2667         (nds32_strict_argument_naming): Refine comment.
2668         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2669         Define for future implementation.
2670
2671 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
2672
2673         * config/i386/adxintrin.h (_subborrow_u32): New.
2674         (_addcarry_u32): Ditto.
2675         (_subborrow_u64): Ditto.
2676         (_addcarry_u64): Ditto.
2677         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2678         IX86_BUILTIN_SBB64.
2679         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2680         __builtin_ia32_sbb_u64
2681
2682 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2683
2684         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2685         GPR-specific stuff.
2686         (nds32_function_arg_advance): Likewise.
2687         (nds32_init_cumulative_args): Likewise.
2688         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2689         (NDS32_FIRST_GPR_REGNUM): Define.
2690         (NDS32_LAST_GPR_REGNUM): Define.
2691         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2692         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2693         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2694         (machine_function): Use GRP-specific stuff.
2695
2696 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2697
2698         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2699         (nds32_expand_epilogue): Likewise.
2700         (nds32_expand_prologue_v3push): Likewise.
2701         (nds32_expand_epilogue_v3pop): Likewise.
2702
2703 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2704
2705         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2706         v3push/v3pop for variadic function.
2707         * config/nds32/nds32.md (prologue, epilogue): Likewise.
2708
2709 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2710
2711         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2712         Check rtx for varargs implementation.
2713         (nds32_output_stack_pop): Likewise.
2714         * config/nds32/nds32-protos.h: Have a rtx argument for
2715         nds32_output_stack_push and nds32_output_stack_pop.
2716         * config/nds32/nds32.md: Likewise.
2717
2718 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2719
2720         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2721         to check if FUNC is an interrupt service routine.
2722         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2723
2724 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2725
2726         * config/nds32/nds32.h (machine_function): Add some fields for variadic
2727         arguments implementation.
2728
2729 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2730
2731         * config/nds32/nds32-predicates.c
2732         (nds32_valid_stack_push_pop): Rename to ...
2733         (nds32_valid_stack_push_pop_p): ... this.
2734         * config/nds32/nds32-protos.h: Likewise.
2735         * config/nds32/predicates.md: Likewise.
2736
2737 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2738
2739         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2740         (nds32_emit_stack_v3push): ... this.
2741         (nds32_gen_stack_v3pop): Rename to ...
2742         (nds32_emit_stack_v3pop): ... this and consider CFA restore
2743         information.
2744
2745 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2746
2747         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2748         (nds32_emit_stack_push_multiple): ... this.
2749         (nds32_gen_stack_pop_multiple): Rename to ...
2750         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2751         information.
2752
2753 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2754
2755         PR target/61078
2756         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2757         and add a second splitter to handle the remaining cases.
2758
2759 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2760
2761         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2762
2763 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2764
2765         * cfgexpand.c (label_rtx_for_bb): Change type to
2766         hash_map<basic_block, rtx_code_label *> *.
2767         (expand_gimple_basic_block): Adjust.
2768         (pass_expand::execute): Likewise.
2769
2770 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2771
2772         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2773         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2774         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2775         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2776         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2777         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2778         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2779         of rtx.
2780
2781 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2782
2783         * alloc-pool.c: Include coretypes.h.
2784         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2785         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2786         hash_set instead of htab.
2787         * ggc-page.c (in_gc): New variable.
2788         (ggc_free): Do nothing if a collection is taking place.
2789         (ggc_collect): Set in_gc appropriately.
2790         * ggc.h (gt_ggc_mx(const char *)): New function.
2791         (gt_pch_nx(const char *)): Likewise.
2792         (gt_ggc_mx(int)): Likewise.
2793         (gt_pch_nx(int)): Likewise.
2794         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2795         (hash_map::hash_entry::pch_nx): Likewise.
2796         (hash_map::hash_entry::pch_nx_helper): Likewise.
2797 (hash_map::hash_map): Adjust.
2798 (hash_map::create_ggc): New function.
2799 (gt_ggc_mx): Likewise.
2800 (gt_pch_nx): Likewise.
2801         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2802 (default_hashset_traits::pch_nx): Likewise.
2803 (hash_set::hash_entry::ggc_mx): Likewise.
2804 (hash_set::hash_entry::pch_nx): Likewise.
2805 (hash_set::hash_entry::pch_nx_helper): Likewise.
2806 (hash_set::hash_set): Adjust.
2807 (hash_set::create_ggc): New function.
2808 (hash_set::elements): Likewise.
2809 (gt_ggc_mx): Likewise.
2810 (gt_pch_nx): Likewise.
2811         * hash-table.h (hash_table::hash_table): Adjust.
2812 (hash_table::m_ggc): New member.
2813         (hash_table::~hash_table): Adjust.
2814         (hash_table::expand): Likewise.
2815         (hash_table::empty): Likewise.
2816 (gt_ggc_mx): New function.
2817         (hashtab_entry_note_pointers): Likewise.
2818 (gt_pch_nx): Likewise.
2819
2820 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2821
2822         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
2823         built-in definition.
2824         (XVCVUXDDP_SCALE): Likewise.
2825         (XVCVDPSXDS_SCALE): Likewise.
2826         (XVCVDPUXDS_SCALE): Likewise.
2827         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
2828         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2829         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2830         VSX_BUILTIN_XVCVDPUXDS_SCALE.
2831         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2832         prototype.
2833         * config/rs6000/rs6000.c (real.h): New include.
2834         (rs6000_scale_v2df): New function.
2835         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2836         (UNSPEC_VSX_XVCVUXDDP): Likewise.
2837         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2838         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2839         (vsx_xvcvsxddp_scale): New define_expand.
2840         (vsx_xvcvsxddp): New define_insn.
2841         (vsx_xvcvuxddp_scale): New define_expand.
2842         (vsx_xvcvuxddp): New define_insn.
2843         (vsx_xvcvdpsxds_scale): New define_expand.
2844         (vsx_xvcvdpsxds): New define_insn.
2845         (vsx_xvcvdpuxds_scale): New define_expand.
2846         (vsx_xvcvdpuxds): New define_insn.
2847         * doc/extend.texi (vec_ctf): Add new prototypes.
2848         (vec_cts): Likewise.
2849         (vec_ctu): Likewise.
2850         (vec_splat): Likewise.
2851         (vec_div): Likewise.
2852         (vec_mul): Likewise.
2853
2854 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2855
2856         PR target/62275
2857         * config/arm/neon.md
2858         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2859         <v_cmp_result>): New pattern.
2860         * config/arm/iterators.md (NEON_VCVT): New int iterator.
2861         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2862         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2863         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2864         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2865         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2866
2867 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2868
2869         PR target/62275
2870         * config/arm/iterators.md (FIXUORS): New code iterator.
2871         (VCVT): New int iterator.
2872         (su_optab): New code attribute.
2873         (su): Likewise.
2874         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2875
2876 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2877
2878         * config/aarch64/predicates.md (aarch64_comparison_operation):
2879         New special predicate.
2880         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2881         aarch64_comparison_operation instead of matching an operator.
2882         Update operand numbers.
2883         (csinc3<mode>_insn): Likewise.
2884         (*csinv3<mode>_insn): Likewise.
2885         (*csneg3<mode>_insn): Likewise.
2886         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2887         * config/aarch64/aarch64.c (aarch64_get_condition_code):
2888         Return -1 instead of aborting on invalid condition codes.
2889         (aarch64_print_operand): Update aarch64_get_condition_code callsites
2890         to assert that the returned condition code is valid.
2891         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2892
2893 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
2894
2895         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2896         tree.def, and gimple.def
2897
2898 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
2899             Balaji V. Iyer  <balaji.v.iyer@intel.com>
2900             Igor Zamyatin  <igor.zamyatin@intel.com>
2901
2902         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2903         (__cilkrts_cilk_for_64): Likewise.
2904         * cilk-common.c (declare_cilk_for_builtin): New function.
2905         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2906         __cilkrts_cilk_for_64 bultins.
2907         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2908         CILK_TI_F_LOOP_64.
2909         (cilk_for_32_fndecl): New define.
2910         (cilk_for_64_fndecl): Likewise.
2911         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2912         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2913         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2914         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2915         GF_OMP_FOR_COMBINED_INTO.
2916         * gimplify.c (gimplify_scan_omp_clauses): Added
2917         OMP_CLAUSE__CILK_FOR_COUNT_ case.
2918         (gimplify_adjust_omp_clauses): Ditto.
2919         (gimplify_omp_for): Added CILK_FOR case.
2920         (gimplify_expr): Ditto.
2921         * omp-low.c: Include cilk.h.
2922         (extract_omp_for_data): Set appropriate kind for
2923         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2924         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2925         (create_omp_child_function_name): Added second argument to handle
2926         cilk_for case.
2927         (cilk_for_check_loop_diff_type): New function.
2928         (expand_cilk_for_call): Likewise.
2929         (expand_cilk_for): Likewise.
2930         (create_omp_child_function): Set cilk_for_count; handle the cases when
2931         it is true; call create_omp_child_function_name with second argument.
2932         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2933         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2934         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2935         * tree-nested.c (convert_nonlocal_omp_clauses): Added
2936         OMP_CLAUSE__CILK_FOR_COUNT_ case.
2937         (convert_local_omp_clauses): Ditto.
2938         * tree-pretty-print.c (dump_omp_clause): Added
2939         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2940         (dump_generic_node): Added CILK_FOR case.
2941         * tree.c (omp_clause_num_ops): New element
2942         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2943         (omp_clause_code_name): New element _Cilk_for_count_.
2944         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2945         * tree.def: Add tree code for CILK_FOR.
2946
2947 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2948
2949         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2950         (ppc403-compare): Add "exts with dot" case.
2951         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2952         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2953         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2954         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2955         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2956         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2957         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2958         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2959         cell-cmp-microcoded): Similarly.
2960         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2961         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2962         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2963         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2964         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2965         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2966         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2967         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2968         (power6-compare): Add "exts with dot" case.
2969         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2970         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2971         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2972
2973         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2974         if avoiding Cell microcode.
2975         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2976         (is_cracked_insn): Ditto.
2977         (insn_must_be_first_in_group): Ditto.
2978         * config/rs6000/rs6000.md (dot): Adjust comment.
2979         (cell_micro): Handle exts+dot.
2980         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2981         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2982         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2983         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2984         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2985         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2986         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2987
2988 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2989
2990         * config/rs6000/rs6000.md (QHSI): Delete.
2991         (EXTQI, EXTHI, EXTSI): New mode iterators.
2992         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2993         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2994         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2995         9 anonymous instructions, and 8 splitters): Delete.
2996         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2997         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2998         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2999         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
3000         *zero_extendsi<mode>2_dot2): New.
3001
3002 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3003
3004         * config/rs6000/rs6000.md (any_extend): New code iterator.
3005         (u, su): New code attributes.
3006         (dmode, DMODE): New mode attributes.
3007         (<su>mul<mode>3_highpart): New.
3008         (*<su>mul<mode>3_highpart): New.
3009         (<su>mulsi3_highpart_le): New.
3010         (<su>muldi3_highpart_le): New.
3011         (<su>mulsi3_highpart_64): New.
3012         (<u>mul<mode><dmode>3): New.
3013         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
3014         splitters): Delete.
3015         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
3016         splitters): Delete.
3017
3018 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3019
3020         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
3021         *mulsi3_internal2, and two splitters): Delete.
3022         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
3023         Delete.
3024         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
3025
3026 2014-09-02  Richard Biener  <rguenther@suse.de>
3027
3028         PR tree-optimization/62695
3029         * tree-ssa-structalias.c (find_func_clobbers): Add missing
3030         vector truncate.
3031
3032 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
3033
3034         PR target/62312
3035         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
3036
3037 2014-09-01  Andi Kleen  <ak@linux.intel.com>
3038
3039         * file-find.c (add_prefix_begin): Add.
3040         (do_add_prefix): Rename from add_prefix with first argument.
3041         (add_prefix): Add new wrapper.
3042         * file-find.h (add_prefix_begin): Add.
3043         * gcc-ar.c (main): Support -B option.
3044
3045 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3046
3047         * genemit.c: Include dumpfile.h.
3048         (gen_split): Print name of splitter function to dump file.
3049
3050 2014-09-01  Richard Biener  <rguenther@suse.de>
3051
3052         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
3053         Use stack auto_vecs for constraint expressions.
3054         (find_func_aliases_for_call): Likewise.
3055         (find_func_aliases): Likewise.
3056         (find_func_clobbers): Likewise.
3057
3058 2014-09-01  Richard Biener  <rguenther@suse.de>
3059
3060         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
3061         operands vector in most cases.  Remove redundant code.
3062
3063 2014-09-01  Olivier Hainque  <hainque@adacore.com>
3064
3065         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
3066         $WIND_BASE instead of designating a harcoded arbitrary home dir.
3067         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
3068
3069 2014-09-01  Richard Biener  <rguenther@suse.de>
3070
3071         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
3072         copy_reference_ops_from_call, vn_nary_op_compute_hash,
3073         vn_reference_compute_hash, vn_reference_insert): Remove.
3074         (vn_reference_lookup_call): New function.
3075         * tree-ssa-sccvn.c (vn_reference_compute_hash,
3076         copy_reference_ops_from_ref, copy_reference_ops_from_call,
3077         vn_reference_insert, vn_nary_op_compute_hash): Make static.
3078         (create_reference_ops_from_call): Remove.
3079         (vn_reference_lookup_3): Properly update shared_lookup_references.
3080         (vn_reference_lookup_pieces): Assert that we updated
3081         shared_lookup_references properly.
3082         (vn_reference_lookup): Likewise.
3083         (vn_reference_lookup_call): New function.
3084         (visit_reference_op_call): Use it.  Avoid re-building the
3085         reference ops.
3086         (visit_reference_op_load): Remove redundant lookup.
3087         (visit_reference_op_store): Perform special tail-merging work
3088         only when possibly doing tail-merging.
3089         (visit_use): Likewise.
3090         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
3091
3092 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
3093
3094         PR target/62025
3095         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
3096         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
3097         (find_inc): Revert 2014-08-13 change.
3098
3099 2014-09-01  Marek Polacek  <polacek@redhat.com>
3100
3101         PR middle-end/61903
3102         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
3103         Change the type of V to unsigned HOST_WIDE_INT.
3104
3105 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3106
3107         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
3108         the size of byte markers.
3109         (do_shift_rotate): Fix confusion between host, target and marker byte
3110         size.
3111         (verify_symbolic_number_p): Likewise.
3112         (find_bswap_or_nop_1): Likewise.
3113         (find_bswap_or_nop): Likewise.
3114
3115 2014-09-01  Olivier Hainque  <hainque@adacore.com>
3116
3117         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
3118         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
3119
3120 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
3121
3122         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
3123         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
3124         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
3125
3126 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
3127
3128         PR sanitizer/61897
3129         PR sanitizer/62140
3130         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
3131         (build_check_stmt): Likewise.
3132         (instrument_strlen_call): Likewise.
3133         (asan_expand_check_ifn): Likewise and fix types.
3134         (maybe_cast_to_ptrmode): New function.
3135
3136 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3137
3138         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
3139
3140 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
3141
3142         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
3143
3144 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
3145
3146         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
3147         prefix to function labels when generating fast indirect calls.
3148
3149 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
3150
3151         PR bootstrap/62304
3152
3153         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
3154         param back from rtx_insn * to rtx.  Rename param from "label" to
3155         "label_or_return", reintroducing "label" as an rtx_insn * after
3156         we've ensured it's not a RETURN.
3157         (first_active_target_insn): Likewise for return type and param;
3158         add a checked cast to rtx_insn * once we've ensured "insn" is not
3159         a RETURN.
3160         (steal_delay_list_from_target): Convert param "pnew_thread" back
3161         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
3162         with JUMP_LABEL.
3163         (own_thread_p): Convert param "thread" back from an rtx_insn * to
3164         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
3165         cast once we've established we're not dealing with a RETURN,
3166         renaming subsequent uses of "thread" to "thread_insn".
3167         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
3168         to JUMP_LABEL.
3169         (follow_jumps): Convert return type and param "label" from
3170         rtx_insn * back to rtx.  Move initialization of "value" to after
3171         the handling for ANY_RETURN_P, adding a checked cast there to
3172         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
3173         rename to "this_label_or_return", reintroducing "this_label" as
3174         an rtx_insn * once we've handled the case where it could be an
3175         ANY_RETURN_P.
3176         (fill_slots_from_thread): Rename param "thread" to
3177         "thread_or_return", converting from an rtx_insn * back to an rtx.
3178         Reintroduce name "thread" as an rtx_insn * local with a checked
3179         cast once we've handled the case of it being an ANY_RETURN_P.
3180         Convert local "new_thread" from an rtx_insn * back to an rtx.
3181         Add a checked cast when assigning to "trial" from "new_thread".
3182         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
3183         checked cast to rtx_insn * from "new_thread" when invoking
3184         get_label_before.
3185         (fill_eager_delay_slots): Convert locals "target_label",
3186         "insn_at_target" from rtx_insn * back to rtx.
3187         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
3188         (relax_delay_slots): Convert locals "trial", "target_label" from
3189         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
3190         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
3191         invoking update_block.
3192         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
3193         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
3194
3195         * resource.h (mark_target_live_regs): Undo erroneous conversion
3196         of second param of r214693, converting it back from rtx_insn * to
3197         rtx, since it could be a RETURN.
3198
3199         * resource.c (find_dead_or_set_registers): Similarly, convert
3200         param "jump_target" back from an rtx_insn ** to an rtx *, as we
3201         could be writing back a RETURN.  Rename local rtx_insn * "next" to
3202         "next_insn", and introduce "lab_or_return" as a local rtx,
3203         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
3204         (mark_target_live_regs): Undo erroneous conversion
3205         of second param of r214693, converting it back from rtx_insn * to
3206         rtx, since it could be a RETURN.  Rename it from "target" to
3207         "target_maybe_return", reintroducing the name "target" as a local
3208         rtx_insn * with a checked cast, after we've handled the case of
3209         ANY_RETURN_P.
3210
3211 2014-08-29  DJ Delorie  <dj@redhat.com>
3212
3213         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
3214         pointer size up to a power of two.
3215         * defaults.h (DWARF2_ADDR_SIZE): Round up.
3216         (POINTER_SIZE_UNITS): New, rounded up value.
3217         * dwarf2asm.c (size_of_encoded_value): Use it.
3218         (dw2_output_indirect_constant_1): Likewise.
3219         * expmed.c (init_expmed_one_conv): We now know the sizes of
3220         partial int modes.
3221         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
3222         * optabs.c (expand_float): Use precision, not size.
3223         (expand_fix): Likewise.
3224         * simplify-rtx (simplify_unary_operation_1): Likewise.
3225         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3226         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
3227         (default_assemble_integer) Likewise.
3228         (dump_tm_clone_pairs): Likewise.
3229         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
3230         * var-tracking.c (adjust_mems): Allow partial-int modes also.
3231         (prepare_call_arguments): Likewise.
3232         * stor-layout.c (finalize_type_size): Preserve precision.
3233         (layout_type): Use precision, not size.
3234
3235         * expr.c (convert_move): If the target has an explicit converter,
3236         use it.
3237
3238 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
3239
3240         * gdbinit.in: Skip various inline functions in rtl.h when
3241         stepping.
3242
3243 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
3244
3245         PR bootstrap/62301
3246         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
3247
3248 2014-08-29  Richard Biener  <rguenther@suse.de>
3249
3250         PR tree-optimization/62291
3251         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
3252         exactly the vector size needed and use quick_push.
3253         (phi_translate_1): Adjust comment.
3254         (valid_in_sets): Remove block argument and remove pointless
3255         checking of NAMEs.
3256         (dependent_clean): Adjust for removal of block argument.
3257         (clean): Likewise.
3258         (compute_antic_aux): Likewise.
3259         (compute_partial_antic_aux): Likewise.
3260
3261 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3262             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3263             Anna Tikhonova  <anna.tikhonova@intel.com>
3264             Ilya Tocar  <ilya.tocar@intel.com>
3265             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3266             Ilya Verbin  <ilya.verbin@intel.com>
3267             Kirill Yukhin  <kirill.yukhin@intel.com>
3268             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3269
3270         * config/i386/sse.md
3271         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
3272         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
3273         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
3274         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
3275
3276 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3278             Anna Tikhonova  <anna.tikhonova@intel.com>
3279             Ilya Tocar  <ilya.tocar@intel.com>
3280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3281             Ilya Verbin  <ilya.verbin@intel.com>
3282             Kirill Yukhin  <kirill.yukhin@intel.com>
3283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3284
3285         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
3286         * config/i386/sse.md
3287         (define_mode_iterator VI4_128_8_256): New.
3288         (define_mode_iterator VI2_128_4_256): Ditto.
3289         (define_mode_iterator PMOV_DST_MODE): Rename into
3290         (define_mode_iterator PMOV_DST_MODE_1): this.
3291         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
3292         Use PMOV_DST_MODE_1 mode iterator.
3293         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3294         Ditto.
3295         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3296         Ditto.
3297         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
3298         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
3299         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
3300         (define_mode_iterator PMOV_DST_MODE_2): New.
3301         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
3302         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
3303         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
3304         Ditto.
3305         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
3306         (define_mode_attr pmov_dst_3): Ditto.
3307         (define_mode_attr pmov_dst_zeroed_3): Ditto.
3308         (define_mode_attr pmov_suff_3): Ditto.
3309         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
3310         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
3311         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
3312         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
3313         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
3314         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
3315         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
3316         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
3317         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
3318         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
3319         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
3320         (define_mode_attr pmov_dst_4): Ditto.
3321         (define_mode_attr pmov_dst_zeroed_4): Ditto.
3322         (define_mode_attr pmov_suff_4): Ditto.
3323         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
3324         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
3325         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
3326         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
3327         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
3328         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
3329         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
3330         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
3331         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
3332         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
3333         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
3334
3335 2014-08-29  Richard Biener  <rguenther@suse.de>
3336
3337         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
3338         NON_LVALUE_EXPR in gimple.
3339
3340 2014-08-29  Richard Biener  <rguenther@suse.de>
3341
3342         PR middle-end/62292
3343         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
3344         from previous refactoring.
3345         (gimple_fold_builtin_strncpy): Likewise.
3346
3347 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
3348
3349         PR bootstrap/62300
3350         * function.c (assign_parm_setup_reg): Remove erroneous checked
3351         cast to rtx_insn * on result of gen_extend_insn in favor of
3352         introducing a new local rtx "pat".
3353
3354 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3355
3356         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
3357         to silence warning.
3358         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
3359
3360 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3361
3362         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
3363         (next_insn): Likewise.
3364         * emit-rtl.c (next_insn): Likewise.
3365         (previous_insn): Likewise.
3366         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
3367         "insn" and "next" from rtx to rtx_insn *.
3368         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
3369         "insn", "insn1", "vliw_start",  "prologue_end_note",
3370         "last_insn_in_packet".
3371
3372 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3373
3374         * shrink-wrap.h (active_insn_between): Strengthen both params from
3375         rtx to rtx_insn *.
3376         * function.c (active_insn_between): Likewise.
3377
3378 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3379
3380         * genattr.c (main): When writing out insn-attr.h, strengthen param
3381         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
3382         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
3383         writing out the definition of dfa_clear_single_insn_cache to the
3384         generated insn-automata.c
3385
3386 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3387
3388         * resource.h (clear_hashed_info_for_insn): Strengthen param from
3389         rtx to rtx_insn *.
3390         (incr_ticks_for_insn): Likewise.
3391         (init_resource_info): Likewise.
3392
3393         * resource.c (init_resource_info): Likewise.
3394         (clear_hashed_info_for_insn): Likewise.
3395         (incr_ticks_for_insn): Likewise.
3396
3397         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
3398         rtx to rtx_insn *.
3399         (steal_delay_list_from_target): Use methods of "seq".
3400         (try_merge_delay_insns): Use methods of "merged_insns".
3401         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
3402         (reorg_redirect_jump): Likewise for param "jump".
3403
3404 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3405
3406         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
3407         rtx to rtx_insn *.
3408         * config/s390/s390.c (s390_split_branches): Eliminate top-level
3409         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
3410         "set_insn".
3411         (s390_mainpool_finish): In three places, split out a local rtx
3412         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
3413         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
3414          and split another local rtx "insn" out into rtx "pat" and
3415         rtx_insn * "insn".
3416         * config/sh/sh.c (output_branchy_insn): Rather than working
3417         directly on operands[9], introduce local rtx_code_label *
3418         variables named "lab" in two places, working on them, and then
3419         assigning them to operands[9], so that the intervening operations
3420         are known by the type system to be on insns.
3421
3422 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3423
3424         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
3425         const rtx_insn *.
3426
3427         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
3428         in invocation of INSN_HAS_LOCATION.
3429
3430 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3431
3432         * config/rs6000/altivec.h (vec_xl): New #define.
3433         (vec_xst): Likewise.
3434         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
3435         (XXSPLTD_V2DI): Likewise.
3436         (DIV_V2DI): Likewise.
3437         (UDIV_V2DI): Likewise.
3438         (MUL_V2DI): Likewise.
3439         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3440         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
3441         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
3442         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
3443         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
3444         (UNSPEC_VSX_DIVSD): Likewise.
3445         (UNSPEC_VSX_DIVUD): Likewise.
3446         (UNSPEC_VSX_MULSD): Likewise.
3447         (vsx_mul_v2di): New insn-and-split.
3448         (vsx_div_v2di): Likewise.
3449         (vsx_udiv_v2di): Likewise.
3450         (vsx_xxspltd_<mode>): New insn.
3451
3452 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3453
3454         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
3455         NEXT_INSN.
3456         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
3457         (NEXT_INSN): Likewise.
3458         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
3459         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
3460         const rtx_insn *.
3461         (no_labels_between_p): Likewise for both params.
3462
3463         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
3464         cast when using NEXT_INSN on operands[2].
3465         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
3466         "insn" from rtx to rtx_insn *, adding a checked cast.
3467         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
3468         rtx_insn *.
3469         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
3470         for third param.
3471         (arc_text_label): Likewise for param "insn".
3472         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
3473         "insn".
3474         (arc_ccfsm_record_condition): Likewise for param "jump".
3475         (arc_text_label): Likewise for local "label".
3476         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
3477         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
3478         a method for typesafety.  Add a checked cast.
3479         * config/arc/constraints.md (Clb): Add a checked cast when getting
3480         the CODE_LABEL from a LABEL_REF.
3481         * config/arm/arm.c (require_pic_register): Strengthen locals
3482         "seq", "insn" from rtx to rtx_insn *.
3483         (create_fix_barrier): Likewise for locals "selected", "next".
3484         (thumb1_reorg): Likewise for locals "prev", "insn".
3485         (arm_expand_prologue): Likewise for local "last".
3486         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
3487         operands[0].
3488         (thumb2_output_casesi): Likewise for operands[2].
3489         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
3490         strengthen local "insn" from rtx to rtx_insn *.
3491         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
3492         type and param "insn".
3493         (find_prev_insn_start): Likewise.
3494         (hwloop_optimize): Likewise for locals "insn", "last_insn",
3495         "prev".
3496         (gen_one_bundle): Likewise for loal "t".
3497         (find_load): Likewise for param "insn".
3498         (workaround_speculation): Likewise for locals "insn", "next",
3499         "target", "next_tgt".
3500         * config/c6x/c6x.c (assign_reservations): Likewise for both params
3501         and for locals "insn", "within", "last".
3502         (count_unit_reqs): Likewise for params "head", "tail" and local
3503         "insn".
3504         (try_rename_operands): Likewise for params "head", "tail".
3505         (reshuffle_units): Likewise for locals "head", "tail", "insn".
3506         (struct c6x_sched_context): Likewise for fields
3507         "last_scheduled_insn", "last_scheduled_iter0".
3508         (init_sched_state): Replace NULL_RTX with NULL.
3509         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
3510         to rtx_insn *.
3511         (undo_split_delayed_nonbranch): Likewise for param and for local
3512         "prev".
3513         (conditionalize_after_sched): Likewise for local "insn".
3514         (bb_earliest_end_cycle): Likewise.
3515         (filter_insns_above): Likewise for locals "insn", "next".
3516         (hwloop_optimize): Remove redundant checked cast.
3517         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
3518         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
3519         NULL_RTX with NULL.
3520         (cris_simple_epilogue): Likewise.
3521         (cris_expand_prologue): Likewise.
3522         (cris_expand_epilogue): Likewise.
3523         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
3524         local "insn" from rtx to rtx_insn *.
3525         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
3526         (struct frv_packet_group): Likewise for the elements within array
3527         fields "insns", "sorted", and for field "nop".
3528         (frv_packet): Likewise for the elements within array field
3529         "insns".
3530         (frv_add_insn_to_packet): Likewise for param "insn".
3531         (frv_insert_nop_in_packet): Likewise for param "insn" and local
3532         "last".
3533         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
3534         (frv_sort_insn_group_1): Likewise for local "insn".
3535         (frv_optimize_membar_local): Likewise.
3536         (frv_align_label): Likewise for locals "x", "last", "barrier",
3537         "label".
3538         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
3539         local.
3540         (ia64_sched_init): Likewise for local "insn".
3541         (scheduled_good_insn): Likewise for param "last".
3542         (struct _ia64_sched_context): Likewise for field
3543         "last_scheduled_insn".
3544         (ia64_init_sched_context): Replace NULL_RTX with NULL.
3545         (struct bundle_state): Likewise for field "insn".
3546         (issue_nops_and_insn): Likewise for param "insn".
3547         (get_next_important_insn): Likewise for return type and both
3548         params.
3549         (ia64_add_bundle_selector_before): Likewise for param "insn".
3550         (bundling): Likewise for params "prev_head_insn", "tail" and
3551         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
3552         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
3553         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
3554         Strengthen final param from rtx to rtx_insn *.
3555         (iq2000_move_1word): Likewise for second param.
3556         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
3557         param "cur_insn" and local "next_insn".
3558         (iq2000_move_1word): Likewise for param "insn".
3559         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
3560         casts when using NEXT_INSN on operands[1].
3561         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
3562         "insn" from rtx to rtx_insn *.
3563         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
3564         "x", introducing local rtx_insn * "insn" for when working with the
3565         CODE_LABEL of the LABEL_REF.
3566         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
3567         rtx_insn *.
3568         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
3569         param.
3570         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
3571         type.
3572         (conditionalize_block): Likewise for return type and param.
3573         (mcore_is_dead): Likewise for param "first" and local "insn".
3574         (emit_new_cond_insn): Likewise for return type.
3575         (conditionalize_block): Likewise for return type, param, and
3576         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
3577         "newinsn".
3578         (conditionalize_optimization): Likewise for local "insn".
3579         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
3580         using NEXT_INSN.
3581         * config/microblaze/microblaze.md: Add checked casts when using
3582         NEXT_INSN.
3583         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3584         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3585         and rtx_insn * "insn".
3586         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3587         checked cast when using NEXT_INSN on operands[2].
3588         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3589         local "insn" from rtx to rtx_insn *.
3590         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3591         Likewise.
3592         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3593         Add a checked cast when using NEXT_INSN on operands[1].
3594         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3595         rtx to rtx_insn *.
3596         (pa_output_cbranch): Likewise for final param.
3597         (pa_output_lbranch): Likewise for second param.
3598         (pa_output_bb): Likewise for third param.
3599         (pa_output_bvb): Likewise.
3600         (pa_output_dbra): Likewise for second param.
3601         (pa_output_movb): Likewise.
3602         (pa_output_parallel_movb): Likewise.
3603         (pa_output_parallel_addb): Likewise.
3604         (pa_output_millicode_call): Likewise for first param.
3605         (pa_output_mul_insn): Likewise for second param.
3606         (pa_output_div_insn): Likewise for third param.
3607         (pa_output_mod_insn): Likewise for second param.
3608         (pa_jump_in_call_delay): Likewise for param.
3609         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3610         (pa_output_div_insn): Likewise.
3611         (pa_output_mod_insn): Likewise.
3612         (pa_output_cbranch): Likewise.
3613         (pa_output_lbranch): Likewise.
3614         (pa_output_bb): Likewise.
3615         (pa_output_bvb): Likewise.
3616         (pa_output_dbra): Likewise.
3617         (pa_output_movb): Likewise.
3618         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3619         to simplify and for typesafety.
3620         (pa_output_call): Use method of rtx_sequence *.
3621         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3622         (pa_jump_in_call_delay): Likewise.
3623         (pa_output_parallel_movb): Likewise.
3624         (pa_output_parallel_addb): Likewise.
3625         (pa_following_call): Likewise.
3626         (pa_combine_instructions): Likewise for locals "anchor",
3627         "floater".
3628         (pa_can_combine_p): Likewise for params "anchor", "floater" and
3629         locals "start", "end".
3630         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3631         param "insn" and local "local_insn".
3632         (picochip_final_prescan_insn): Likewise for local "local_insn".
3633         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3634         local "insn".
3635         (uses_TOC): Likewise.
3636         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3637         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3638         splitting out to more tightly-scoped locals, 3 as rtx and one as
3639         rtx_insn *.
3640         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3641         to rtx_insn *.
3642         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3643         where needed.
3644         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3645         to rtx_insn *.
3646         (fixup_addr_diff_vecs): Likewise.
3647         (reg_unused_after): Likewise for param 2.
3648         (sh_can_redirect_branch): Likewise for both params.
3649         (check_use_sfunc_addr): Likewise for param 1.
3650         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3651         (find_barrier): Likewise for local "last_got".
3652         (gen_block_redirect): Likewise for return type, param "jump" and
3653         locals "prev", "scan", "next", "insn".
3654         (struct far_branch): Likewise for fields "near_label",
3655         "insert_place", "far_label".
3656         (gen_far_branch): Likewise for local "jump".
3657         (fixup_addr_diff_vecs): Likewise for param "first" and locals
3658         "insn", "prev".
3659         (barrier_align): Likewise for param and for locals "prev", "x".
3660         Introduce local rtx_sequence * "prev_seq" and use insn method for
3661         typesafety and clarity.
3662         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3663         (get_dest_uid): Likewise for local "dest".
3664         (split_branches): Likewise for locals "next", "beyond", "label",
3665         "block", "far_label".  Add checked casts when assigning to
3666         bp->far_label and "far_label".
3667         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3668         (sequence_insn_p): Likewise.
3669         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
3670         more loop-scoped rtx "insn" when walking LABEL_REFS.
3671         (sh_can_redirect_branch): Strengthen both params from rtx to
3672         rtx_insn *.
3673         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
3674         new local rtx_sequence * "seq" via a dyn_cast, and use a method
3675         for clarity and typesafety.
3676         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3677         "insn" from rtx to rtx_insn *.
3678         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3679         when using NEXT_INSN on the CODE_LABEL in operands[2].
3680         (define_insn "casesi_worker_2"): Likewise.
3681         (define_insn "casesi_shift_media"): Likewise.
3682         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3683         operands[3].
3684         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3685         Strengthen field "insn" from rtx to rtx_insn *.
3686         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3687         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3688         param "start_insn" and local "start_insn".
3689         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3690         field "insn".
3691         (find_set_of_reg_bb): Likewise for param "insn".
3692         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3693         (trace_reg_uses): Likewise for param "start_insn".
3694         (sh_treg_combine::cbranch_trace): Likewise for field
3695         "cbranch_insn".
3696         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3697         param "insn".
3698         (sh_treg_combine::record_set_of_reg): Likewise for param
3699         "start_insn" and local "i".
3700         (sh_treg_combine::can_remove_cstore): Likewise for local
3701         "prev_insn".
3702         (sh_treg_combine::try_optimize_cbranch): Likewise for param
3703         "insn".
3704         (sh_treg_combine::execute): Likewise for local "i".
3705         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3706         param.
3707         (sparc_check_64): Likewise for second param.
3708         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3709         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
3710         dyn_cast, using its insn method for typesafety and clarity.
3711         (empty_delay_slot): Strengthen param "insn" from rtx to
3712         rtx_insn *.
3713         (set_extends): Likewise.
3714         (sparc_check_64): Likewise.
3715         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3716         for locals "seq", "last_insn".
3717         (combine_bnp): Likewise for param "insn".
3718         (xstormy16_reorg): Likewise for local "insn".
3719         * config/v850/v850.c (substitute_ep_register): Likewise for params
3720         "first_insn", "last_insn" and local "insn".
3721         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3722         elements of "regs" array, and local "insn".
3723         * except.c (emit_note_eh_region_end): Likewise for param "insn".
3724         * final.c (final_sequence): Strengthen this global from rtx to
3725         rtx_sequence *.
3726         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3727         rtx_insn *.
3728         (final_scan_insn): Update assignment to "final_sequence" to be
3729         from "seq", the cast version of "body", for type-safety.
3730         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3731         "insns" from rtx to rtx_insn *.
3732         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3733         * genattr.c (main): When writing out generated insn-attr.h,
3734         strengthen params 1 and 3 of eligible_for_delay,
3735         eligible_for_annul_true, eligible_for_annul_false from rtx to
3736         rtx_insn *.
3737         * genattrtab.c (write_eligible_delay): Likewise when writing out
3738         generated insn-attrtab.c; also local "insn" the generated
3739         functions.
3740         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3741         to rtx_insn *.
3742         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3743         "start_label" from rtx to rtx_insn *.
3744         * ira.c (decrease_live_ranges_number): Likewise for local "p".
3745         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3746         "insns" and local "insn".
3747         (validate_equiv_mem): Likewise for param "start" and local "insn".
3748         (memref_used_between_p): Likewise for params "start", "end" and
3749         local "insn".
3750         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3751         final param.
3752         * loop-doloop.c (doloop_optimize): Within region guarded by
3753         INSN_P (doloop_pat), introduce a new local rtx_insn *
3754         "doloop_insn" via a checked cast, and use it for typesafety,
3755         eventually writing the value back into doloop_pat.
3756         * output.h (final_sequence): Strengthen this global from rtx to
3757         rtx_sequence *.
3758         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3759         reintroducing "insn" as an rtx_insn * via a checked cast.
3760         Strengthen param "attempt" and local "new_insn"from rtx to
3761         rtx_insn *.
3762         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3763         to rtx_insn *.
3764         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3765         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3766         "p" in favor of more tightly-scoped replacements, sometimes rtx
3767         and sometimes rtx_insn *, as appropriate.
3768         (delete_output_reload): Eliminate top-level rtx "i1", splitting
3769         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3770         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
3771         local "trial" from rtx to rtx_insn *.
3772         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3773         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
3774         rtx_sequence * and use methods for clarity and typesafety.
3775         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3776         rtx to rtx_insn *.  Strenghten local "li" from rtx to
3777         rtx_insn_list * and use its methods for clarity and typesafety.
3778         (steal_delay_list_from_target): Strengthen param "insn" from rtx
3779         to rtx_insn *.
3780         (steal_delay_list_from_fallthrough): Likewise.
3781         (try_merge_delay_insns): Likewise for param "thread" and locals
3782         "trial", "next_trial", "delay_insn".
3783         (redundant_insn): Likewise for param "target" and local "trial".
3784         (own_thread_p): Likewise for param "thread" and locals
3785         "active_insn", "insn".
3786         (get_label_before): Likewise for param "insn".
3787         (fill_simple_delay_slots): Likewise for local "new_label"; use
3788         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3789         (label_before_next_insn): Strengthen return type and local "insn"
3790         from rtx to rtx_insn *.
3791         (relax_delay_slots): Likewise for locals "other", "tmp".
3792         (make_return_insns): Likewise for param "first" and locals "insn",
3793         "jump_insn", "prev".  Move declaration of "pat" to its assignment
3794         and strengthen from rtx to rtx_sequence *.  Use its methods for
3795         clarity and typesafety.
3796         * rtlanal.c (no_labels_between_p): Strengthen params from
3797         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
3798         rtx_insn *.
3799         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3800         from const_rtx to const rtx_insn *.
3801         (reg_set_between_p): Rename param "from_insn" to
3802         "uncast_from_insn", and reintroduce "from_insn" as a
3803         const rtx_insn * via a checked cast.
3804         (modified_between_p): Likewise for param "start" as "uncast_start".
3805         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3806         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3807         "tmp", head" from rtx to rtx_insn *.
3808         (recompute_rev_top_order): Likewise for local "insn".
3809         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3810         * store-motion.c (build_store_vectors): Likewise for local "insn".
3811         Strengthen local "st" from rtx to rtx_insn_list * and use methods
3812         for clarity and typesafety.
3813         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3814         rtx to rtx_insn *.
3815         (computation_cost): Likewise for local "seq".
3816         (get_address_cost): Likewise.
3817
3818 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3819
3820         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3821         const rtx_insn *.
3822         (label_is_jump_target_p): Likewise for second param.
3823
3824         * rtlanal.c (tablejump_p): Likewise for param "insn".
3825         (label_is_jump_target_p): Likewise for param "jump_insn".
3826
3827 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3828
3829         * rtl.h (find_first_parameter_load): Strengthen return type and
3830         both params from rtx to rtx_insn *.
3831         * rtlanal.c (find_first_parameter_load): Strengthen return type,
3832         both params and locals "before", "first_set" from rtx to
3833         rtx_insn *.  Remove now-redundant cast.
3834         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3835
3836 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3837
3838         * rtl.h (find_last_value): Delete.
3839         * rtlanal.c (find_last_value): Delete.
3840
3841 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3842
3843         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3844         from rtx to rtx_insn *.
3845         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3846         rtx "note" with new local rtx_insn * "new_head" when calculating
3847         head insn of new basic block.
3848         * combine.c (combine_split_insns): Strengthen return type and local
3849         "ret" from rtx to rtx_insn *.
3850         (likely_spilled_retval_p): Likewise for locals "use" and "p".
3851         (try_combine): Eliminate local "m_split", splitting into new
3852         locals "m_split_insn" and "m_split_pat".
3853         (find_split_point): Strengthen local "seq" from rtx into
3854         rtx_insn *.
3855         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3856         locals "label", "branch".
3857         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3858         for local "insn".
3859         (define_expand "umulsi3_highpart"): Likewise for local "insn".
3860         * dse.c (note_add_store_info): Likewise for fields "first",
3861         "current".
3862         (note_add_store): Likewise for local "insn".
3863         (emit_inc_dec_insn_before): Likewise for locals "insn",
3864         "new_insn", "cur".
3865         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3866         (replace_read): Likewise for locals "insns", "this_insn".
3867         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3868         (notice_eh_throw): Likewise for param "insn".
3869         (before_next_cfi_note): Likewise for return type, param, and local
3870         "prev".
3871         (connect_traces): Likewise for local "note".
3872         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3873         (verify_rtl_sharing): Likewise.
3874         (unshare_all_rtl_in_chain): Likewise for param "insn".
3875         (get_first_nonnote_insn): Likewise for local "insn".
3876         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
3877         "seq" and use its methods to clarify things.
3878         (next_insn): Strengthen return type from rtx to rtx_insn *.
3879         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3880         local rtx_insn * using a checked cast, dropping a checked cast
3881         made redundant by this change.  Use a cast to and method of
3882         rtx_sequence to clarify the code.
3883         (previous_insn): Rename param "insn" to "uncast_insn" and
3884         reintroduce "insn" as a local rtx_insn * using a checked cast,
3885         dropping a checked cast made redundant by this change.  Use a cast
3886         to and method of rtx_sequence to clarify the code.
3887         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3888         reintroduce "insn" as a local rtx_insn * using a checked cast,
3889         dropping a checked cast made redundant by this change.
3890         (next_nonnote_insn_bb): Likewise.
3891         (prev_nonnote_insn): Likewise.
3892         (prev_nonnote_insn_bb): Likewise.
3893         (next_nondebug_insn): Likewise.
3894         (prev_nondebug_insn): Likewise.
3895         (next_nonnote_nondebug_insn): Likewise.
3896         (prev_nonnote_nondebug_insn): Likewise.
3897         (next_real_insn): Likewise.
3898         (prev_real_insn): Likewise.
3899         (next_active_insn): Likewise.
3900         (prev_active_insn): Likewise.
3901         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
3902         clarity.
3903         (prev_cc0_setter): Likewise.
3904         (try_split): Rename param "trial" to "uncast_trial" and
3905         reintroduce "insn" as a local rtx_insn * using a checked cast,
3906         dropping checked casts made redundant by this change.
3907         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3908         rtx to rtx_insn *.
3909         (remove_insn): Rename param "insn" to "uncast_insn" and
3910         reintroduce "insn" as a local rtx_insn * using a checked cast.
3911         (emit_pattern_after_setloc): Likewise for param "after", as
3912         "uncast_after".
3913         (emit_pattern_after): Likewise.  Strengthen local "prev" from
3914         rtx to rtx_insn *.
3915         (emit_pattern_before_setloc): Rename param "before" to
3916         "uncast_before" and reintroduce "before" as a local rtx_insn *
3917         using a checked cast.  Strengthen locals "first", "last" from
3918         rtx to rtx_insn *.
3919         (emit_pattern_before): Likewise rename/cast param "before" to
3920         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3921         * except.c (copy_reg_eh_region_note_forward): Strengthen param
3922         "first" and local "insn" from rtx to rtx_insn *.
3923         (copy_reg_eh_region_note_backward): Likewise for param "last"
3924         and local "insn".
3925         * expr.c (fixup_args_size_notes): Rename param "last" to
3926         "uncast_last" and reintroduce "last" as a local rtx_insn *
3927         using a checked cast.  Strengthen local "insn" from rtx to
3928         rtx_insn *.
3929         * function.c (set_insn_locations): Strengthen param "insn" from
3930         rtx to rtx_insn *.
3931         (record_insns): Likewise for param "insns" and local "tmp".
3932         (active_insn_between): Rename param "tail" to
3933         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3934         using a checked cast.
3935         (thread_prologue_and_epilogue_insns): Split out top-level local
3936         rtx "seq" into three different rtx_insn * locals.  Strengthen
3937         local "prologue_seq" from rtx to rtx_insn *.
3938         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3939         from rtx to rtx_insn *.
3940         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3941         (priority): Likewise for locals "prev_first", "twin".
3942         (setup_insn_max_reg_pressure): Likewise for param "after".
3943         (sched_setup_bb_reg_pressure_info): Likewise.
3944         (no_real_insns_p): Strengthen params from const_rtx to
3945         const rtx_insn *.
3946         (schedule_block): Strengthen local "next_tail" from rtx to
3947         rtx_insn *.
3948         * ifcvt.c (find_active_insn_before): Strengthen return type and
3949         param "insn" from rtx to rtx_insn *.
3950         (find_active_insn_after): Likewise.
3951         (cond_exec_process_insns): Likewise for param "start" and local "insn".
3952         (cond_exec_process_if_block): Likewise for locals "then_start",
3953         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3954         (noce_process_if_block): Likewise for local "jump".
3955         (merge_if_block): Likewise for two locals named "end".
3956         (cond_exec_find_if_block): Likewise for local "last_insn".
3957         * jump.c (delete_related_insns): Rename param "insn" to
3958         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3959         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
3960         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3961         NULL.
3962         (split_reg): Likewise.
3963         * lra.c (lra_process_new_insns): Likewise.
3964         * modulo-sched.c (permute_partial_schedule): Strengthen param
3965         "last" from rtx to rtx_insn *.
3966         * optabs.c (add_equal_note): Likewise for param "insns" and local
3967         "last_insn".
3968         (expand_binop_directly): Add checked casts to rtx_insn * within
3969         NEXT_INSN (pat) uses.
3970         (expand_unop_direct): Likewise.
3971         (maybe_emit_unop_insn): Likewise.
3972         * recog.c (peep2_attempt): Strengthen locals "last",
3973         "before_try", "x" from rtx to rtx_insn *.
3974         * reorg.c (optimize_skip): Strengthen return type and local
3975         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
3976         and locals "trial", "next_trial" from rtx to rtx_insn *.
3977         * resource.c (next_insn_no_annul): Strengthen return type and
3978         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
3979         rtx_sequence to clarify the code.
3980         (mark_referenced_resources): Add a checked cast to rtx_insn *
3981         within PREV_INSN (x).
3982         (find_dead_or_set_registers): Strengthen return type, param
3983         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3984         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
3985         to rtx_insn **.
3986         (mark_target_live_regs): Strengthen params "insns" and "target",
3987         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3988         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
3989         the code.
3990         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3991         from rtx to rtx_insn *.
3992         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3993         from rtx to rtx_insn *.
3994         (copy_reg_eh_region_note_backward): Likewise.
3995         (unshare_all_rtl_in_chain): Likewise for sole param.
3996         (dump_rtl_slim): Strengthen second and third params from const_rtx
3997         to const rtx_insn *.
3998         * sched-deps.c (sched_free_deps): Strengthen params "head" and
3999         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
4000         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
4001         "next_tail" from rtx to rtx_insn *.
4002         (begin_move_insn): Likewise for local "next".
4003         * sched-int.h (sched_free_deps): Likewise for first and second
4004         params.
4005         (no_real_insns_p): Strengthen both params from const_rtx to
4006         const rtx_insn *.
4007         (sched_setup_bb_reg_pressure_info): Strengthen second params from
4008         rtx to rtx_insn *.
4009         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
4010         "next_tail".
4011         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
4012         and locals "insn", "tail" from const_rtx to const rtx_insn *.
4013         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
4014         rtx_insn *.
4015         (debug_rtl_slim): Strengthen params "first" and "last" from
4016         const_rtx to const rtx_insn *.
4017         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
4018         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
4019         (convert_to_simple_return): Likewise for param "returnjump".
4020         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
4021         "prologue_seq".
4022         (convert_to_simple_return): Likewise for param "returnjump".
4023         * valtrack.c (propagate_for_debug): Likewise for params
4024         "insn", "last".
4025         * valtrack.h (propagate_for_debug): Likewise for second param.
4026
4027 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4028
4029         * output.h (insn_current_reference_address): Strengthen param
4030         from rtx to rtx_insn *.
4031         * final.c (insn_current_reference_address): Likewise.
4032
4033 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4034
4035         * basic-block.h (inside_basic_block_p): Strengthen param from
4036         const_rtx to const rtx_insn *.
4037         * cfgbuild.c (inside_basic_block_p): Likewise.
4038
4039 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4040
4041         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
4042         rtx_insn *.
4043         (get_trace_info): Likewise for param "insn".
4044         (save_point_p): Likewise.
4045         (maybe_record_trace_start): Likewise for both params.
4046         (maybe_record_trace_start_abnormal): Likewise.
4047         (create_trace_edges): Likewise for sole param and for three of the
4048         locals named "lab".
4049         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
4050         to rtx_insn *, and update a call to pat->element to pat->insn.
4051
4052 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4053
4054         * function.h (struct expr_status): Convert field "x_forced_labels"
4055         from rtx_expr_list * to rtx_insn_list *.
4056
4057         * cfgbuild.c (make_edges): Convert local "x" from an
4058         rtx_expr_list * to an rtx_insn_list *, replacing use of
4059         "element" method with "insn" method.
4060         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4061         * except.c (sjlj_emit_dispatch_table): Replace use of
4062         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
4063         forced_labels.
4064         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
4065         rtx_expr_list * to an rtx_insn_list *, replacing use of
4066         "element" method with "insn" method.
4067         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4068         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
4069         rtx_insn *, adding a checked cast.  Replace use of
4070         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
4071         forced_labels.
4072         (expand_label): Likewise for local "label_r".
4073
4074 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4075
4076         * function.h (struct rtl_data): Convert field
4077         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
4078         rtx_insn_list *.
4079         * rtl.h (remove_node_from_insn_list): New prototype.
4080
4081         * builtins.c (expand_builtin): When prepending to
4082         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
4083         gen_rtx_EXPR_LIST.
4084         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
4085         to rtx_insn_list *, and use its "insn" method rather than
4086         "element" method.
4087         * cfgrtl.c (delete_insn): Use new function
4088         remove_node_from_insn_list rather than
4089         remove_node_from_expr_list.
4090         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
4091         to rtx_insn_list *, and use its "insn" method rather than
4092         "element" method.
4093         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4094         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4095         * rtlanal.c (remove_node_from_insn_list): New function, adapted
4096         from remove_node_from_expr_list.
4097         * stmt.c (expand_label): When prepending to
4098         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
4099         gen_rtx_EXPR_LIST.
4100
4101 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4102
4103         * function.h (struct rtl_data): Strengthen fields "x_return_label"
4104         and "x_naked_return_label" from rtx to rtx_code_label *.
4105
4106 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4107
4108         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
4109         (SET_NEXT_INSN): Likewise.
4110         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
4111
4112         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
4113         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
4114         to split out the SEQUENCE from local "bundle", strengthening the
4115         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
4116         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
4117         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
4118         and the type of the elements of the "slot" array from rtx to
4119         rtx_insn *.
4120         (reorg_split_calls): Likewise for locals "insn" and "next", and
4121         the type of the elements of the "slot" array.
4122
4123         * config/frv/frv.c (frv_nops): Likewise for the elements of this
4124         array.
4125         (frv_function_prologue): Likewise for locals "insn", "next",
4126         "last_call".
4127         (frv_register_nop): Introduce a local "nop_insn" to be the
4128         rtx_insn * containing rtx "nop".
4129
4130         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
4131         used as an insn and sometimes as a pattern, so rename it to
4132         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
4133         using it where dealing with the core insn.
4134
4135         * config/picochip/picochip.c (reorder_var_tracking_notes):
4136         Strengthen locals "insn", "next", "last_insn", "queue",
4137         "next_queue", "prev" from rtx to rtx_insn *.
4138
4139         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
4140         the second param is an rtx_insn ** rather than an rtx **.
4141         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
4142         from rtx to rtx_sequence *, and introduce local named "sequence",
4143         using methods of rtx_sequence to clarify the code.
4144         (remove_insn): Introduce local rtx_sequence * named "sequence" and
4145         use its methods.
4146         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
4147         Rename param "after" to "uncast_after", reintroducing "after" as a
4148         local rtx_insn * with a checked cast.
4149         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
4150         reintroducing "after" as a local rtx_insn * with a checked cast.
4151         Strengthen local "last" from rtx to rtx_insn * and remove the
4152         now-redundant checked casts.
4153         (copy_delay_slot_insn): Strengthen return type and param from rtx
4154         to rtx_insn *.
4155
4156         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
4157         "last" from rtx to rtx_insn *.
4158
4159 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4160
4161         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
4162         param from rtx to rtx_insn *.
4163
4164         * emit-rtl.c (copy_delay_slot_insn): Likewise.
4165
4166         * reorg.c (skip_consecutive_labels): Strengthen return type, param
4167         and local "insn" from rtx to rtx_insn *.
4168         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
4169         (unfilled_slots_next): Likewise.
4170         (function_return_label): Strengthen from rtx to rtx_code_label *.
4171         (function_simple_return_label): Likewise.
4172         (first_active_target_insn): Strengthen return type and param from
4173         rtx to rtx_insn *.
4174         (find_end_label): Strengthen return type from rtx to
4175         rtx_code_label *; strengthen locals as appropriate.
4176         (emit_delay_sequence): Strengthen return type, param "insn" and
4177         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
4178         and local "li" from rtx to rtx_insn_list *, using methods of
4179         rtx_insn_list for clarity and typesafety.
4180         (add_to_delay_list): Strengthen return type and param "insn" from
4181         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
4182         rtx_insn_list * and use methods of rtx_insn_list.
4183         (delete_from_delay_slot): Strengthen return type, param "insn",
4184         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
4185         Strengthen local "seq" from rtx to rtx_sequence *, and local
4186         "delay_list" from rtx to rtx_insn_list *, using methods of
4187         rtx_sequence for clarity and type-safety.
4188         (delete_scheduled_jump): Add checked cast when invoking
4189         delete_from_delay_slot.  Strengthen local "trial" from rtx to
4190         rtx_insn *.
4191         (optimize_skip): Strengthen return type and local "delay_list"
4192         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
4193         rtx_insn *.
4194         (steal_delay_list_from_target): Strengthen return type, param
4195         "delay_list" and local "new_delay_list" from rtx to
4196         rtx_insn_list *.  Strengthen param "seq" from rtx to
4197         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
4198         rtx_insn **.
4199         Split out local "temp" into multiple more-tightly scoped locals:
4200         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
4201         of rtx_insn_list and rtx_sequence for clarity and typesafety.
4202         Strengthen locals named "trial" from rtx to rtx_insn *.
4203         (steal_delay_list_from_fallthrough): Strengthen return type and
4204         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
4205         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
4206         Strengthen local "trial" from rtx to rtx_insn *.
4207         (try_merge_delay_insns): Strength local "merged_insns" from rtx
4208         to rtx_insn_list * and use its methods.  Strengthen local "pat"
4209         from rtx to rtx_sequence * and use its methods.  Strengthen locals
4210         "dtrial" and "new_rtx" from rtx to rtx_insn *.
4211         (get_label_before): Strengthen return type and local "label" from
4212         rtx to rtx_insn *.
4213         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
4214         "next_trial", "next", prev".  Strengthen local "delay_list" from
4215         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
4216         rtx_insn **.
4217         (follow_jumps): Strengthen return type, param "label" and locals
4218         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
4219         (fill_slots_from_thread): Strengthen return type, param
4220         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
4221         "insn", "thread", "opposite_thread" and locals "new_thread",
4222         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
4223         "sequence" from a checked cast to rtx_sequence so that we can call
4224         steal_delay_list_from_target and steal_delay_list_from_fallthrough
4225         with an rtx_sequence *.
4226         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
4227         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
4228         Strengthen local "delay_list" from rtx to rtx_insn_list *.
4229         (relax_delay_slots): Strengthen param "first" and locals "insn",
4230         "next", "trial", "delay_insn", "target_label" from rtx to
4231         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
4232         Introduce a local "trial_seq" for PATTERN (trial) of type
4233         rtx_sequence *, in both cases using methods of rtx_sequence.
4234         (dbr_schedule): Strengthen param "first" and locals "insn",
4235         "next", "epilogue_insn" from rtx to rtx_insn *.
4236
4237 2014-08-28  Richard Biener  <rguenther@suse.de>
4238
4239         PR tree-optimization/62283
4240         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4241         Do not peel loops for alignment where the vector loop likely
4242         doesn't run at least VF times.
4243
4244 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
4245
4246         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
4247         important_candidates.  Consider all important candidates if
4248         IVS doesn't give any result.  Remove check on ivs->upto.
4249         (try_add_cand_for): Call iv_ca_add_use only once.
4250
4251 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4252             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4253             Anna Tikhonova  <anna.tikhonova@intel.com>
4254             Ilya Tocar  <ilya.tocar@intel.com>
4255             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4256             Ilya Verbin  <ilya.verbin@intel.com>
4257             Kirill Yukhin  <kirill.yukhin@intel.com>
4258             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4259
4260         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
4261         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
4262         masking.
4263         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
4264         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4265         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4266         (define_insn "*mul<mode>3"): Add EVEX version.
4267
4268 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4269             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4270             Anna Tikhonova  <anna.tikhonova@intel.com>
4271             Ilya Tocar  <ilya.tocar@intel.com>
4272             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4273             Ilya Verbin  <ilya.verbin@intel.com>
4274             Kirill Yukhin  <kirill.yukhin@intel.com>
4275             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4276
4277         * config/i386/sse.md
4278         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
4279         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
4280         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
4281         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
4282         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
4283         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
4284         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
4285         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
4286         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
4287         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
4288         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
4289         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
4290         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
4291         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
4292         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
4293         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
4294
4295 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4296             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4297             Anna Tikhonova  <anna.tikhonova@intel.com>
4298             Ilya Tocar  <ilya.tocar@intel.com>
4299             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4300             Ilya Verbin  <ilya.verbin@intel.com>
4301             Kirill Yukhin  <kirill.yukhin@intel.com>
4302             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4303
4304         * config/i386/sse.md
4305         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
4306         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
4307         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
4308
4309 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4310             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4311             Anna Tikhonova  <anna.tikhonova@intel.com>
4312             Ilya Tocar  <ilya.tocar@intel.com>
4313             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4314             Ilya Verbin  <ilya.verbin@intel.com>
4315             Kirill Yukhin  <kirill.yukhin@intel.com>
4316             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4317
4318         * config/i386/sse.md
4319         (define_mode_iterator VI128_256): New.
4320         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
4321
4322 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4323             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4324             Anna Tikhonova  <anna.tikhonova@intel.com>
4325             Ilya Tocar  <ilya.tocar@intel.com>
4326             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4327             Ilya Verbin  <ilya.verbin@intel.com>
4328             Kirill Yukhin  <kirill.yukhin@intel.com>
4329             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4330
4331         * config/i386/sse.md
4332         (define_mode_iterator VI8_256_512): New.
4333         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
4334         Ditto.
4335         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4336         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
4337         Ditto.
4338         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
4339
4340 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4341
4342         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
4343         pointer to the cumulative reloc value and return the value for
4344         this reloc instead.
4345         (compute_reloc_for_rtx): Take a const_rtx.  Call
4346         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
4347         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
4348         for_each_rtx for the CONST case.
4349
4350 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4351
4352         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
4353         (mark_constants_in_pattern): ...this new function to iterate over
4354         all the subrtxes.
4355         (mark_constants): Update accordingly.
4356
4357 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4358
4359         * varasm.c: Include rtl-iter.h.
4360         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
4361         Remove the pointer to the cumulative hashval_t and just return
4362         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
4363         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4364         Accumulate the hashval_ts here instead of const_rtx_hash_1.
4365
4366 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4367
4368         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
4369         Give real type of data parameter.  Remove return value.
4370         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
4371         to iterate over subrtxes.
4372
4373 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4374
4375         * var-tracking.c (use_narrower_mode_test): Turn from being a
4376         for_each_rtx callback to being a function that examines each
4377         subrtx itself.
4378         (adjust_mems): Update accordingly.
4379
4380 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4381
4382         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
4383         callback to being a function that examines each subrtx itself.
4384         Remove handling of null rtxes.
4385         (add_uses): Update accordingly.
4386
4387 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4388
4389         * var-tracking.c: Include rtl-iter.h.
4390         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
4391         to being a function that examines each subrtx itself.
4392         (use_type): Update accordingly.
4393
4394 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4395
4396         * store-motion.c: Include rtl-iter.h.
4397         (extract_mentioned_regs_1): Delete.
4398         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
4399         for_each_rtx to iterate over subrtxes.
4400
4401 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4402
4403         * sel-sched.c: Include rtl-iter.h
4404         (count_occurrences_1): Delete.
4405         (count_occurrences_equiv): Turn rtxes into const_rtxes.
4406         Use FOR_EACH_SUBRTX rather than for_each_rtx.
4407
4408 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4409
4410         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
4411         * rtlanal.c (tls_referenced_p_1): Delete.
4412         (tls_referenced_p): Take a const_rtx rather than an rtx.
4413         Use FOR_EACH_SUBRTX rather than for_each_rtx.
4414
4415 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4416
4417         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
4418         (for_each_inc_dec): Take an rtx rather than an rtx *.
4419         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
4420         (cselib_record_sets): Likewise.
4421         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
4422         (check_for_inc_dec): Likewise.
4423         * rtlanal.c (for_each_inc_dec_ops): Delete.
4424         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
4425         rather than a pointer to the memory address.  Replace
4426         for_each_inc_dec_ops argument with separate function and data
4427         arguments.  Abort on non-autoinc addresses.
4428         (for_each_inc_dec_find_mem): Delete.
4429         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
4430         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
4431
4432 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4433
4434         * rtl.h (find_all_hard_regs): Declare.
4435         * rtlanal.c (find_all_hard_regs): New function.
4436         (record_hard_reg_uses_1): Delete.
4437         (record_hard_reg_uses): Use find_all_hard_regs.
4438
4439 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4440
4441         * rtl.h (replace_label_data): Delete.
4442         (replace_label): Take the old label, new label and update-nuses flag
4443         as direct arguments.  Return void.
4444         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
4445         * rtlanal.c (replace_label): Update interface as above.  Handle
4446         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
4447         iterator.  Use FOR_EACH_SUBRTX_PTR.
4448
4449 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4450
4451         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
4452         with const_rtx parameters.
4453         * varasm.c (get_pool_constant): Likewise.
4454         * rtlanal.c (rtx_referenced_p_1): Delete.
4455         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4456         Assert that the rtx we're looking for is nonnull.  Allow searches
4457         for constant pool SYMBOL_REFs.
4458
4459 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4460
4461         * reload1.c: Include rtl-iter.h.
4462         (note_reg_elim_costly): Turn from being a for_each_rtx callback
4463         to being a function that examines each subrtx itself.
4464         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
4465
4466 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4467
4468         * regcprop.c (cprop_find_used_regs_1): Delete.
4469         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4470
4471 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4472
4473         * regcprop.c: Include rtl-iter.h.
4474         (kill_value): Take a const_rtx.
4475         (kill_autoinc_value): Turn from being a for_each_rtx callback
4476         to being a function that examines each subrtx itself.
4477         (copyprop_hardreg_forward_1): Update accordingly.
4478
4479 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4480
4481         * reg-stack.c: Include rtl-iter.h.
4482         (subst_stack_regs_in_debug_insn): Delete.
4483         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
4484         instead of for_each_rtx.
4485
4486 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4487
4488         * lower-subreg.c (find_decomposable_subregs): Turn from being
4489         a for_each_rtx callback to being a function that examines each
4490         subrtx itself.  Remove handling of null rtxes.
4491         (decompose_multiword_subregs): Update accordingly.
4492
4493 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4494
4495         * lower-subreg.c (adjust_decomposed_uses): Delete.
4496         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
4497         Remove handling of null rtxes.
4498
4499 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4500
4501         * lower-subreg.c: Include rtl-iter.h.
4502         (resolve_subreg_use): Turn from being a for_each_rtx callback
4503         to being a function that examines each subrtx itself.  Remove
4504         handling of null rtxes.
4505         (resolve_reg_notes, resolve_simple_move): Update accordingly.
4506         (decompose_multiword_subregs): Likewise.
4507
4508 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4509
4510         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
4511         to being a function that examines each subrtx itself.
4512         (simplify_using_condition, simplify_using_initial_values): Update
4513         accordingly.
4514
4515 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4516
4517         * loop-iv.c: Include rtl-iter.h.
4518         (find_single_def_src): New function.
4519         (replace_single_def_regs): Turn from being a for_each_rtx callback
4520         to being a function that examines each subrtx itself.
4521         (replace_in_expr, simplify_using_initial_values): Update accordingly.
4522
4523 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4524
4525         * jump.c (eh_returnjump_p_1): Delete.
4526         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4527         Remove handling of null rtxes.
4528
4529 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4530
4531         * jump.c: Include rtl-iter.h.
4532         (returnjump_p_1): Delete.
4533         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4534         Remove handling of null rtxes.
4535
4536 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4537
4538         * ira.c: Include rtl-iter.h.
4539         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
4540         to being a function that examines each subrtx itself.  Remove
4541         handling of null rtxes.
4542         (update_equiv_regs): Update call accordingly.
4543
4544 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4545
4546         * fwprop.c: Include rtl-iter.h.
4547         (varying_mem_p): Turn from being a for_each_rtx callback to being
4548         a function that examines each subrtx itself.
4549         (propagate_rtx): Update accordingly.
4550
4551 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4552
4553         * function.c: Include rtl-iter.h
4554         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
4555         callback to being a function that examines each subrtx itself.
4556         Return the changed flag.
4557         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
4558         (instantiate_virtual_regs): Update calls accordingly.
4559
4560 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4561
4562         * final.c: Include rtl-iter.h.
4563         (mark_symbol_ref_as_used): Delete.
4564         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
4565         for_each_rtx.
4566
4567 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4568
4569         * emit-rtl.c: Include rtl-iter.h.
4570         (find_auto_inc): Turn from being a for_each_rtx callback to being
4571         a function that examines each subrtx itself.  Assume the first operand
4572         to an RTX_AUTOINC is the automodified register.
4573         (try_split): Update call accordingly.
4574
4575 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4576
4577         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4578         Return a bool, inverting the result so that 0/false means "not ok".
4579         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
4580         subrtxes of a CONST.
4581         (mem_loc_descriptor, add_const_value_attribute)
4582         (resolve_addr_in_expr): Update calls accordingly.
4583
4584 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4585
4586         * dwarf2out.c: Include rtl-iter.h.
4587         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4588         Remove unused data parameter.  Return a bool, inverting the result
4589         so that 0/false means "not ok".
4590         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
4591         instead of for_each_rtx.
4592
4593 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4594
4595         * dse.c: Include rtl-iter.h.
4596         (check_mem_read_rtx): Change void * parameter to real type.
4597         Remove return value.
4598         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
4599         for_each_rtx.  Don't handle null rtxes.
4600
4601 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4602
4603         * df-problems.c: Include rtl-iter.h.
4604         (find_memory): Turn from being a for_each_rtx callback to being
4605         a function that examines each subrtx itself.  Continue to look for
4606         volatile references even after a nonvolatile one has been found.
4607         (can_move_insns_across): Update calls accordingly.
4608
4609 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4610
4611         * ddg.c (walk_mems_2, walk_mems_1): Delete.
4612         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4613         to iterate over subrtxes.  Return a bool rather than an int.
4614
4615 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4616
4617         * ddg.c: Include rtl-iter.h.
4618         (mark_mem_use_1): Rename to...
4619         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
4620         instead of for_each_rtx.
4621         (mem_read_insn_p): Update accordingly.
4622
4623 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4624
4625         * cse.c (change_cc_mode_args): Delete.
4626         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4627         a function that examines each subrtx itself.  Take the fields of
4628         change_cc_mode_args as argument and return void.
4629         (cse_change_cc_mode_insn): Update calls accordingly.
4630
4631 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4632
4633         * cse.c (is_dead_reg): Change argument to const_rtx.
4634         (dead_debug_insn_data): Delete.
4635         (is_dead_debug_insn): Expand commentary.  Turn from being a
4636         for_each_rtx callback to being a function that examines
4637         each subrtx itself.  Take the fields of dead_debug_insn_data
4638         as argument.
4639         (delete_trivially_dead_insns): Update call accordingly.
4640
4641 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4642
4643         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
4644         being a for_each_rtx callback to being a function that examines
4645         each subrtx itself.
4646         (cse_extended_basic_block): Update call accordingly.
4647
4648 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4649
4650         * cse.c (check_dependence_data): Delete.
4651         (check_dependence): Change from being a for_each_rtx callback to being
4652         a function that examines all subrtxes itself.  Don't handle null rtxes.
4653         (invalidate): Update call accordingly.
4654
4655 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4656
4657         * cse.c: Include rtl-iter.h.
4658         (approx_reg_cost_1): Delete.
4659         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4660         Don't handle null rtxes.
4661
4662 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4663
4664         * cfgcleanup.c: Include rtl-iter.h.
4665         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4666         to being a function that examines each subrtx itself.
4667         (thread_jump): Update accordingly.
4668
4669 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4670
4671         * combine-stack-adj.c: Include rtl-iter.h.
4672         (record_stack_refs_data): Delete.
4673         (record_stack_refs): Turn from being a for_each_rtx callback
4674         to being a function that examines each subrtx itself.
4675         Take a pointer to the reflist.  Invert sense of return value
4676         so that true means success and false means failure.  Don't
4677         handle null rtxes.
4678         (combine_stack_adjustments_for_block): Update accordingly.
4679
4680 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4681
4682         * combine.c (record_truncated_value): Turn from being a for_each_rtx
4683         callback to a function that takes an rtx and returns a bool
4684         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4685         for_each_rtx.
4686
4687 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4688
4689         * combine.c: Include rtl-iter.h.
4690         (unmentioned_reg_p_1): Delete.
4691         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4692         Don't handle null rtxes.
4693
4694 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4695
4696         * calls.c: Include rtl-iter.h.
4697         (internal_arg_pointer_based_exp_1): Delete.
4698         (internal_arg_pointer_based_exp): Take a const_rtx.
4699         Use FOR_EACH_SUBRTX to iterate over subrtxes.
4700
4701 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4702
4703         * caller-save.c: Include rtl-iter.h.
4704         (add_used_regs_1): Delete.
4705         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4706         to iterate over subrtxes.  Assert that any remaining pseudos
4707         have been spilled.
4708
4709 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4710
4711         * bt-load.c: Include rtl-iter.h.
4712         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4713         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
4714         to iterate over subrtxes.
4715         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4716         find_btr_use rather than btr_referenced_p.
4717
4718 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4719
4720         * alias.c: Include rtl-iter.h.
4721         (refs_newer_value_cb): Delete.
4722         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4723
4724 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4725
4726         * rtl-iter.h: New file.
4727         * rtlanal.c: Include it.
4728         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4729         (generic_subrtx_iterator <T>::add_single_to_queue)
4730         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4731         (generic_subrtx_iterator <T>::free_array): New functions.
4732         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4733         (generic_subrtx_iterator <const_rtx_accessor>)
4734         (generic_subrtx_iterator <rtx_var_accessor>
4735         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4736         (setup_reg_subrtx_bounds): New function.
4737         (init_rtlanal): Call it.
4738
4739 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4740
4741         PR target/62261
4742         * config/sh/sh.md (ashlsi3): Handle negative shift count for
4743         TARGET_SHMEDIA.
4744         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4745
4746 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
4747
4748         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4749
4750 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4751
4752         * rtl.h (JUMP_LABEL_AS_INSN): New.
4753
4754 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4755
4756         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4757         rtx_expr_list **.
4758         (alloc_EXPR_LIST): Strengthen return type from rtx to
4759         rtx_expr_list *.
4760         (remove_free_EXPR_LIST_node): Likewise for param.
4761         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4762         from rtx to rtx_expr_list *.
4763         * sched-int.h (struct deps_desc): Strengthen fields
4764         "pending_read_mems" and "pending_write_mems" from rtx to
4765         rtx_expr_list *.
4766
4767         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4768         rtx to rtx_expr_list *.
4769         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4770         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4771         rtx_expr_list **.
4772         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
4773         from rtx to rtx_expr_list *.
4774         * loop-iv.c (simplify_using_initial_values): Strengthen local
4775         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4776         "pnote_next" from rtx * to rtx_expr_list **.
4777         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
4778         param "exprp" from rtx * to rtx_expr_list **.
4779         (add_insn_mem_dependence): Strengthen local "mem_list" from
4780         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
4781         to rtx_expr_list *.
4782         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4783         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
4784         param "old_mems_p" from rtx * to rtx_expr_list **.
4785         * var-tracking.c (struct adjust_mem_data): Strengthen field
4786         "side_effects" from rtx to rtx_expr_list *.
4787         (adjust_insn): Replace NULL_RTX with NULL when assigning to
4788         rtx_expr_list *.
4789         (prepare_call_arguments): Likewise.
4790
4791 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4792
4793         * function.h (struct rtl_data): Strengthen field
4794         "x_stack_slot_list" from rtx to rtx_expr_list *.
4795
4796         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4797         when assigning to stack_slot_list.
4798
4799 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4800
4801         * function.h (struct rtl_data): Strengthen field
4802         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4803         * rtl.h (remove_node_from_expr_list): Strengthen second param from
4804         rtx * to rtx_expr_list **.
4805
4806         * cfgbuild.c (make_edges): In loop over
4807         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4808         rtx_expr_list *, and use methods of the latter class to clarify
4809         the code.
4810         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4811         rtx_expr_list *, and use methods of the latter class to clarify
4812         the code.
4813         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4814         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4815         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4816         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
4817         to rtx_expr_list *.  Use methods of the latter class to clarify
4818         the code.
4819
4820 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4821
4822         * function.h (struct expr_status): Strengthen field
4823         "x_forced_labels" from rtx to rtx_expr_list *.
4824
4825         * cfgbuild.c (make_edges): Split local "x" into two locals,
4826         strengthening one from rtx to rtx_expr_list *, and using methods
4827         of said class.
4828         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4829         loop over forced_labels, introduce strengthen it from rtx to
4830         rtx_expr_list *, using methods to clarify the code.
4831         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4832         to rtx_expr_list *, using methods of said class to clarify the
4833         code.
4834         * reload1.c (set_initial_label_offsets): Split local "x" into two
4835         per-loop variables, strengthening the first from rtx to
4836         rtx_expr_list * and using methods.
4837
4838 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4839
4840         * coretypes.h (class rtx_expr_list): Add forward declaration.
4841         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4842         * gengenrtl.c (special_rtx): Add EXPR_LIST.
4843         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4844         invariant: GET_CODE (X) == EXPR_LIST.
4845         (is_a_helper <rtx_expr_list *>::test): New.
4846         (rtx_expr_list::next): New.
4847         (rtx_expr_list::element): New.
4848         (gen_rtx_EXPR_LIST): New.
4849
4850 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4851
4852         * varasm.c (mark_constants): Convert a GET_CODE check into a
4853         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4854         Use methods of rtx_sequence to clarify the code.
4855
4856 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4857
4858         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4859         local "seq" via a checked cast, and use methods of rtx_sequence
4860         to simplify the code.
4861
4862 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4863
4864         * resource.c (mark_referenced_resources): Strengthen local
4865         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4866         using methods of rtx_sequence to clarify the code.
4867         (find_dead_or_set_registers): Within the switch statement, convert
4868         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
4869         the JUMP_P handling, introduce another local "seq", adding a
4870         checked cast to rtx_sequence *.  In both cases, use methods of
4871         rtx_sequence to clarify the code.
4872         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4873         via a checked cast, and use methods of rtx_sequence to simplify
4874         the code.
4875
4876 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4877
4878         * reorg.c (redundant_insn): In two places in the function, replace
4879         a check of GET_CODE with a dyn_cast, introducing local "seq", and
4880         usings methods of rtx_sequence to clarify the code.
4881
4882 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4883
4884         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4885         local "seq" with a checked cast, and use methods of rtx_sequence
4886         to clarify the code.
4887
4888 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4889
4890         * function.c (contains): Introduce local "seq" for PATTERN (insn),
4891         with a checked cast, in the region for where we know it's a
4892         SEQUENCE.  Use methods of rtx_sequence.
4893
4894 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4895
4896         * final.c (get_attr_length_1): Replace GET_CODE check with a
4897         dyn_cast, introducing local "seq" and the use of methods of
4898         rtx_sequence.
4899         (shorten_branches): Likewise, introducing local "body_seq".
4900         Strengthen local "inner_insn" from rtx to rtx_insn *.
4901         (reemit_insn_block_notes): Replace GET_CODE check with a
4902         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4903         Use methods of rtx_sequence.
4904         (final_scan_insn): Likewise, introducing local "seq" for when
4905         "body" is known to be a SEQUENCE, using its methods.
4906
4907 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4908
4909         * except.c (can_throw_external): Strengthen local "seq" from rtx
4910         to rtx_sequence *.  Use methods of rtx_sequence.
4911         (insn_nothrow_p): Likewise.
4912
4913 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4914
4915         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4916         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4917         Use methods of rtx_sequence.
4918         (scan_trace): Likewise for local "pat".
4919
4920 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4921
4922         * coretypes.h (class rtx_sequence): Add forward declaration.
4923         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4924         invariant: GET_CODE (X) == SEQUENCE.
4925         (is_a_helper <rtx_sequence *>::test): New.
4926         (is_a_helper <const rtx_sequence *>::test): New.
4927         (rtx_sequence::len): New.
4928         (rtx_sequence::element): New.
4929         (rtx_sequence::insn): New.
4930
4931 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4932
4933         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4934         rtx_insn_list **.
4935         (alloc_INSN_LIST): Strengthen return type from rtx to
4936         rtx_insn_list *.
4937         (copy_INSN_LIST): Likewise for return type and param.
4938         (concat_INSN_LIST): Likewise for both params and return type.
4939         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4940         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
4941         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4942         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
4943
4944         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4945         "implicit_sets", "control_uses", "clobbers" from rtx to
4946         rtx_insn_list *.
4947         (struct deps_desc): Likewise for fields "pending_read_insns",
4948         "pending_write_insns", "pending_jump_insns",
4949         "last_pending_memory_flush", "last_function_call",
4950         "last_function_call_may_noreturn", "sched_before_next_call",
4951         "sched_before_next_jump".
4952         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4953         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4954
4955         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4956         from rtx to rtx_insn_list *.
4957         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4958         rtx_insn_list *.
4959
4960         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4961         to rtx_insn_list **.
4962         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4963         rtx_insn_list *.
4964         (queue_insn): Likewise for local "link".
4965         (struct haifa_saved_data): Strengthen field "insn_queue" from
4966         rtx * to rtx_insn_list **.
4967         (save_backtrack_point): Update allocation of save->insn_queue to
4968         reflect the strengthening of elements from rtx to rtx_insn_list *.
4969         (queue_to_ready): Strengthen local "link" from rtx to
4970         rtx_insn_list *; use methods "next" and "insn" when traversing the
4971         list.
4972         (early_queue_to_ready): Likewise for locals "link", "next_link",
4973         "prev_link".
4974         (schedule_block): Update allocation of insn_queue to reflect the
4975         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
4976         local "link" from rtx to rtx_insn_list *, and use methods when
4977         working it.
4978         (add_to_speculative_block): Strengthen locals "twins" and
4979         "next_node" from rtx to rtx_insn_list *, and use methods when
4980         working with them.  Strengthen local "twin" from rtx to
4981         rtx_insn *, eliminating a checked cast.
4982         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4983         from rtx to rtx_insn_list *, and use methods when working with
4984         them.
4985
4986         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4987         from rtx to rtx_insn_list *, adding a checked cast.
4988         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4989         rtx_insn_list **.
4990         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4991         "newlink" from rtx to rtx_insn_list *.  Strengthen local
4992         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
4993         from rtx to rtx_insn *.
4994         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4995         from rtx to rtx_insn_list *.  Use methods of the latter class.
4996         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4997         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4998         (remove_free_INSN_LIST_node): Strengthen return type and local
4999         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
5000         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
5001         rtx_insn_list *, using "insn" method.
5002
5003         * sched-deps.c (add_dependence_list):  Strengthen param "list"
5004         from rtx to rtx_insn_list *, and use methods when working with it.
5005         (add_dependence_list_and_free):  Strengthen param "listp" from
5006         rtx * to rtx_insn_list **.
5007         (remove_from_dependence_list): Strenghten param "listp" from rtx *
5008         to rtx_insn_list **, and use methods when working with *listp.
5009         (remove_from_both_dependence_lists): Strengthen param "listp" from
5010         rtx * to rtx_insn_list **
5011         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
5012         to rtx_insn_list **.  Eliminate local "link", in favor of two new
5013         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
5014         respectively.
5015         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
5016         by introducing local "cond_deps".
5017         (remove_from_deps): Strengthen param "insn" from rtx to
5018         rtx_insn *.
5019
5020         * sched-rgn.c (concat_insn_mem_list): Strengthen param
5021         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
5022         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
5023         Use methods of rtx_insn_list.
5024
5025         * store-motion.c (struct st_expr): Strengthen fields
5026         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
5027         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
5028         rtx_insn_list *.
5029         (find_moveable_store): Split out "tmp" into multiple more-tightly
5030         scoped locals.  Use methods of rtx_insn_list *.
5031         (compute_store_table): Strengthen local "tmp" from rtx to
5032         rtx_insn *.  Use methods of rtx_insn_list *.
5033
5034 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5035
5036         * coretypes.h (class rtx_insn_list): Add forward declaration.
5037         * rtl.h (class rtx_insn_list): New subclass of rtx_def
5038         (is_a_helper <rtx_insn_list *>::test): New.
5039         (rtx_insn_list::next): New.
5040         (rtx_insn_list::insn): New.
5041         (gen_rtx_INSN_LIST): Add prototype.
5042         * emit-rtl.c (gen_rtx_INSN_LIST): New.
5043         * gengenrtl.c (special_rtx): Add INSN_LIST.
5044
5045 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5046
5047         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
5048         "prev" from rtx to rtx_insn *.
5049
5050 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5051
5052         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
5053         functions.  Require merely an rtx for now, not an rtx_insn *.
5054         (BLOCK_FOR_INSN): Likewise.
5055         (INSN_LOCATION): Likewise.
5056         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
5057
5058 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5059
5060         * rtl.h (PATTERN): Convert this macro into a pair of inline
5061         functions, for now, requiring const_rtx and rtx.
5062
5063 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5064
5065         * target.def (unwind_emit): Strengthen param "insn" from rtx to
5066         rtx_insn *.
5067         (final_postscan_insn): Likewise.
5068         (adjust_cost): Likewise.
5069         (adjust_priority): Likewise.
5070         (variable_issue): Likewise.
5071         (macro_fusion_pair_p): Likewise.
5072         (dfa_post_cycle_insn): Likewise.
5073         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
5074         (first_cycle_multipass_issue): Likewise.
5075         (dfa_new_cycle): Likewise.
5076         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
5077         (speculate_insn): Likewise for param "insn".
5078         (gen_spec_check): Likewise for params "insn" and "label".
5079         (get_insn_spec_ds): Likewise for param "insn".
5080         (get_insn_checked_ds): Likewise.
5081         (dispatch_do): Likewise.
5082         (dispatch): Likewise.
5083         (cannot_copy_insn_p): Likewise.
5084         (invalid_within_doloop): Likewise.
5085         (legitimate_combined_insn): Likewise.
5086         (needed): Likewise.
5087         (after): Likewise.
5088
5089         * doc/tm.texi: Automatically updated to reflect changes to
5090         target.def.
5091
5092         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
5093         working with insn.
5094         (schedule_block): Likewise.
5095         (sched_init): Likewise.
5096         (sched_speculate_insn): Strengthen param "insn" from rtx to
5097         rtx_insn *.
5098         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
5099         working with insn.
5100         * hooks.c (hook_bool_rtx_true): Rename to...
5101         hook_bool_rtx_insn_true): ...this, and strengthen first param from
5102         rtx to rtx_insn *.
5103         (hook_constcharptr_const_rtx_null): Rename to...
5104         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
5105         first param from const_rtx to const rtx_insn *.
5106         (hook_bool_rtx_int_false): Rename to...
5107         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
5108         param from rtx to rtx_insn *.
5109         (hook_void_rtx_int): Rename to...
5110         (hook_void_rtx_insn_int): ...this, and strengthen first param from
5111         rtx to rtx_insn *.
5112
5113         * hooks.h (hook_bool_rtx_true): Rename to...
5114         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
5115         rtx to rtx_insn *.
5116         (hook_bool_rtx_int_false): Rename to...
5117         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
5118         param from rtx to rtx_insn *.
5119         (hook_void_rtx_int): Rename to...
5120         (hook_void_rtx_insn_int): ...this, and strengthen first param from
5121         rtx to rtx_insn *.
5122         (hook_constcharptr_const_rtx_null): Rename to...
5123         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
5124         first param from const_rtx to const rtx_insn *.
5125
5126         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
5127         and local "prev" from rtx to rtx_insn *.
5128
5129         * sched-int.h (sched_speculate_insn): Strengthen first param from
5130         rtx to rtx_insn *.
5131
5132         * sel-sched.c (create_speculation_check): Likewise for local "label".
5133         * targhooks.c (default_invalid_within_doloop): Strengthen param
5134         "insn" from const_rtx to const rtx_insn *.
5135         * targhooks.h (default_invalid_within_doloop): Strengthen param
5136         from const_rtx to const rtx_insn *.
5137
5138         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
5139         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
5140
5141         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
5142         "insn".
5143         (arc_invalid_within_doloop): Likewise, with const.
5144
5145         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
5146         (arm_cannot_copy_insn_p): Likewise for param "insn".
5147         (arm_unwind_emit): Likewise.
5148
5149         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
5150         "dep_insn".
5151
5152         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
5153         (c6x_variable_issue): Likewise.  Removed now-redundant checked
5154         cast.
5155         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
5156
5157         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
5158         Likewise for param "insn".
5159         (epiphany_mode_after): Likewise.
5160         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
5161         params "insn", "dep_insn".
5162         (epiphany_mode_needed): Likewise for param "insn".
5163         (epiphany_mode_after): Likewise.
5164
5165         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
5166         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
5167         (ix86_avx_u128_mode_needed): Likewise.
5168         (ix86_i387_mode_needed): Likewise.
5169         (ix86_mode_needed): Likewise.
5170         (ix86_avx_u128_mode_after): Likewise.
5171         (ix86_mode_after): Likewise.
5172         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
5173         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
5174         (ix86_adjust_priority): Likewise for param "insn".
5175         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
5176         (do_dispatch): Likewise.
5177         (has_dispatch): Likewise.
5178         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
5179
5180         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
5181         reflect renaming of default hook implementation from
5182         hook_constcharptr_const_rtx_null to
5183         hook_constcharptr_const_rtx_insn_null.
5184         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
5185         rtx to rtx_insn *.
5186         (ia64_variable_issue): Likewise for param "insn".
5187         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
5188         (ia64_dfa_new_cycle): Likewise.
5189         (ia64_get_insn_spec_ds): Likewise.
5190         (ia64_get_insn_checked_ds): Likewise.
5191         (ia64_speculate_insn): Likewise.
5192         (ia64_gen_spec_check): Likewise for params "insn", "label".
5193         (ia64_asm_unwind_emit): Likewise for param "insn".
5194
5195         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
5196
5197         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
5198         "insn", "def_insn".
5199         (m68k_sched_variable_issue): Likewise for param "insn".
5200
5201         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
5202         "def_insn".
5203
5204         * config/microblaze/microblaze.c (microblaze_adjust_cost):
5205         Likewise for params "insn", "dep".
5206
5207         * config/mips/mips.c (mips_adjust_cost): Likewise.
5208         (mips_variable_issue): Likewise for param "insn".
5209         (mips_final_postscan_insn): Likewise.
5210
5211         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
5212         for params "insn", "dep".
5213
5214         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
5215         "dep_insn".
5216         (pa_adjust_priority): Likewise for param "insn".
5217
5218         * config/picochip/picochip.c (picochip_sched_adjust_cost):
5219         Likewise for params "insn", "dep_insn".
5220
5221         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
5222         param "insn".
5223         (rs6000_variable_issue): Likewise.
5224         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
5225         (rs6000_debug_adjust_cost): Likewise.
5226         (rs6000_adjust_priority): Likewise for param "insn".
5227         (rs6000_use_sched_lookahead_guard): Likewise.
5228         (get_next_active_insn): Likewise for return type and both params.
5229         (redefine_groups): Likewise for params "prev_head_insn", "tail"
5230         and locals "insn", "next_insn".
5231         (pad_groups): Likewise.
5232
5233         * config/s390/s390.c (s390_adjust_priority): Likewise for param
5234         "insn".
5235         (s390_cannot_copy_insn_p): Likewise.
5236         (s390_sched_variable_issue): Likewise for third param, eliminating
5237         checked cast.
5238         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
5239         default hook implementation from hook_constcharptr_const_rtx_null
5240         to hook_constcharptr_const_rtx_insn_null.
5241
5242         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
5243         from rtx to rtx_insn *.
5244         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
5245         (sh_variable_issue): Likewise for param "insn".
5246         (sh_dfa_new_cycle): Likewise.
5247         (sh_mode_needed): Likewise.
5248         (sh_mode_after): Likewise.
5249
5250         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
5251         params "insn", "dep_insn".
5252         (hypersparc_adjust_cost): Likewise.
5253         (sparc_adjust_cost): Likewise.
5254
5255         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
5256         param, eliminated checked cast.
5257         (spu_sched_adjust_cost): Likewise for first and third params.
5258
5259         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
5260         params "insn" and "dep_insn" from rtx to rtx_insn *.
5261
5262         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
5263
5264 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5265
5266         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
5267         (set_is_load_p): ...this, updating to work on a SET pattern rather
5268         than an insn.
5269         (is_store_insn): Rename to...
5270         (set_is_store_p): ...this, updating to work on a SET pattern
5271         rather than an insn.
5272         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
5273         top of function to where it is needed.  Rewrite the bogus
5274         condition that checks for "insn" and "dep" being PARALLEL to
5275         instead use single_set, introducing locals "insn_set" and
5276         "dep_set".  Given that we only ever returned "cost" for a non-pair
5277         of SETs, bail out early if we don't have a pair of SET.
5278         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
5279         use the new locals "insn_set" and "dep_set", and update calls to
5280         is_load_insn and is_store_insn to be calls to set_is_load_p and
5281         set_is_store_p.
5282
5283 2014-08-27  Guozhi Wei  <carrot@google.com>
5284
5285         PR target/62262
5286         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
5287         amount before using it.
5288
5289 2014-08-27  Richard Biener  <rguenther@suse.de>
5290
5291         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
5292         get_maxval_strlen inside a more useful API.
5293         (gimple_fold_builtin_with_strlen): Remove and fold into ...
5294         (gimple_fold_builtin): ... caller.
5295         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
5296         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
5297         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
5298         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
5299         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
5300         gimple_fold_builtin_sprintf): Adjust to compute maxval
5301         themselves.
5302
5303 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
5304
5305         PR other/62248
5306         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
5307
5308 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5309             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5310             Anna Tikhonova  <anna.tikhonova@intel.com>
5311             Ilya Tocar  <ilya.tocar@intel.com>
5312             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5313             Ilya Verbin  <ilya.verbin@intel.com>
5314             Kirill Yukhin  <kirill.yukhin@intel.com>
5315             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5316
5317         * config/i386/sse.md
5318         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
5319         Use `concat_tg_mode' attribute to determine asm register size.
5320
5321 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5322             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5323             Anna Tikhonova  <anna.tikhonova@intel.com>
5324             Ilya Tocar  <ilya.tocar@intel.com>
5325             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5326             Ilya Verbin  <ilya.verbin@intel.com>
5327             Kirill Yukhin  <kirill.yukhin@intel.com>
5328             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5329
5330         * config/i386/sse.md
5331         (define_mode_iterator VI48_AVX512VL): New.
5332         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
5333         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
5334         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
5335         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5336         with VI1): Change mode iterator.
5337         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5338         with VI_ULOADSTORE_BW_AVX512VL): New.
5339         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5340         with VI_ULOADSTORE_F_AVX512VL): Ditto.
5341         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5342         with VI1): Change mode iterator.
5343         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5344         with VI_ULOADSTORE_BW_AVX512VL): New.
5345         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5346         with VI_ULOADSTORE_F_AVX512VL): Ditto.
5347         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5348         with VI1): Change mode iterator.
5349         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5350         with VI_ULOADSTORE_BW_AVX512VL): New.
5351         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5352         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
5353         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
5354         (define_insn "<avx512>_storedqu<mode>_mask" with
5355         VI48_AVX512VL): New.
5356         (define_insn "<avx512>_storedqu<mode>_mask" with
5357         VI12_AVX512VL): Ditto.
5358
5359 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5360             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5361             Anna Tikhonova  <anna.tikhonova@intel.com>
5362             Ilya Tocar  <ilya.tocar@intel.com>
5363             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5364             Ilya Verbin  <ilya.verbin@intel.com>
5365             Kirill Yukhin  <kirill.yukhin@intel.com>
5366             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5367
5368         * config/i386/sse.md
5369         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
5370         (define_mode_iterator VI48_AVX512BW): New.
5371         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
5372         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5373         with VI48_AVX2_48_AVX512F): New.
5374         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5375         with VI2_AVX512VL): Ditto.
5376
5377 2014-08-27  Richard Biener  <rguenther@suse.de>
5378
5379         PR middle-end/62239
5380         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
5381         (fold_builtin_3): Do not fold strcat_chk here.
5382         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
5383         from builtins.c.
5384         (gimple_fold_builtin): Fold strcat_chk here.
5385
5386 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
5387
5388         * dwarf2out.h (dwarf2out_decl): Remove prototype.
5389         * dwarf2out.c (dwarf2out_decl): Make static.
5390
5391 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
5392
5393         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
5394
5395 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5396
5397         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
5398         from rtx to rtx_insn *.
5399         (cselib_lookup_from_insn): Likewise for final param.
5400         (cselib_subst_to_values_from_insn): Likewise.
5401         (cselib_add_permanent_equiv): Likewise.
5402
5403         * cselib.c (cselib_current_insn): Likewise for this variable.
5404         (cselib_subst_to_values_from_insn): Likewise for param "insn".
5405         (cselib_lookup_from_insn): Likewise.
5406         (cselib_add_permanent_equiv): Likewise for param "insn" and local
5407         "save_cselib_current_insn".
5408         (cselib_process_insn): Replace use of NULL_RTX with NULL.
5409
5410         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
5411         from rtx to rtx_insn *.
5412
5413 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5414
5415         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
5416         rtx_insn *.
5417
5418 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5419
5420         * df.h (df_dump_insn_problem_function): Strengthen first param of
5421         this callback from const_rtx to const rtx_insn *.
5422         (struct df_insn_info): Strengthen field "insn" from rtx to
5423         rtx_insn *.
5424         (DF_REF_INSN): Eliminate this function, reinstating the older
5425         macro definition.
5426         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
5427         (df_reg_defined): Likewise.
5428         (df_find_use): Likewise.
5429         (df_reg_used): Likewise.
5430         (df_dump_insn_top): Strengthen param 1 from const_rtx to
5431         const rtx_insn *.
5432         (df_dump_insn_bottom): Likewise.
5433         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
5434         (df_insn_debug_regno): Likewise.
5435         (debug_df_insn): Likewise.
5436         (df_rd_simulate_one_insn): Likewise for param 2.
5437         (df_word_lr_simulate_defs): Likewise for param 1.
5438         (df_word_lr_simulate_uses): Likewise.
5439         (df_md_simulate_one_insn): Likewise for param 2.
5440         (df_simulate_find_noclobber_defs): Likewise for param 1.
5441         (df_simulate_find_defs): Likewise.
5442         (df_simulate_defs): Likewise.
5443         (df_simulate_uses): Likewise.
5444         (df_simulate_one_insn_backwards): Likewise for param 2.
5445         (df_simulate_one_insn_forwards): Likewise.
5446         (df_uses_create): Likewise for param 2.
5447         (df_insn_create_insn_record): Likewise for param 1.
5448         (df_insn_delete): Likewise.
5449         (df_insn_rescan): Likewise.
5450         (df_insn_rescan_debug_internal): Likewise.
5451         (df_insn_change_bb): Likewise.
5452         (df_notes_rescan): Likewise.
5453         * rtl.h (remove_death): Likewise for param 2.
5454         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
5455         const rtx_insn *.
5456         * sched-int.h (reemit_notes): Strengthen param from rtx to
5457         rtx_insn *.
5458         * valtrack.h (propagate_for_debug): Likewise for param 1.
5459
5460         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
5461         local "tmp_rtx" from const_rtx to const rtx_insn *.
5462         * combine.c (remove_death): Strengthen param "insn" from rtx to
5463         rtx_insn *.
5464         (move_deaths): Likewise for local "where_dead".
5465         * cse.c (delete_trivially_dead_insns): Introduce local
5466         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
5467         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
5468         rtx_insn *.
5469         (df_reg_defined): Likewise.
5470         (df_find_use): Likewise.
5471         (df_reg_used): Likewise.
5472         (df_dump_insn_problem_data): Strengthen param "insn" from
5473         const_rtx to const rtx_insn *.
5474         (df_dump_insn_top): Likewise.
5475         (df_dump_insn_bottom): Likewise.
5476         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
5477         (df_insn_debug_regno): Likewise.
5478         (debug_df_insn): Likewise.
5479         (DF_REF_INSN): Delete.
5480         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
5481         from rtx to rtx_insn *.
5482         (df_chain_insn_top_dump): Strengthen param "insn" from
5483         const_rtx to const rtx_insn *.
5484         (df_chain_insn_bottom_dump): Likewise.
5485         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
5486         rtx_insn *.
5487         (df_word_lr_simulate_uses): Likewise.
5488         (df_print_note): Likewise.
5489         (df_remove_dead_and_unused_notes): Likewise.
5490         (df_set_unused_notes_for_mw): Likewise.
5491         (df_set_dead_notes_for_mw): Likewise.
5492         (df_create_unused_note): Likewise.
5493         (df_simulate_find_defs): Likewise.
5494         (df_simulate_find_uses): Likewise.
5495         (df_simulate_find_noclobber_defs): Likewise.
5496         (df_simulate_defs): Likewise.
5497         (df_simulate_uses): Likewise.
5498         (df_simulate_one_insn_backwards): Likewise.
5499         (df_simulate_one_insn_forwards): Likewise.
5500         (df_md_simulate_one_insn): Likewise.
5501         * df-scan.c (df_uses_create): Likewise.
5502         (df_insn_create_insn_record): Likewise.
5503         (df_insn_delete): Likewise.
5504         (df_insn_rescan): Likewise.
5505         (df_insn_rescan_debug_internal): Likewise.
5506         (df_insn_change_bb): Likewise.
5507         (df_notes_rescan): Likewise.
5508         (df_refs_add_to_chains): Likewise.
5509         (df_insn_refs_verify): Likewise.
5510         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
5511         when invoking df_insn_delete.
5512         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
5513         (set_unique_reg_note): Add checked cast.
5514         * final.c (cleanup_subreg_operands): Likewise.
5515         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
5516         "insn" from rtx to rtx_insn *.
5517         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
5518         "last" from rtx to rtx_insn *.
5519         * ira-emit.c (change_regs_in_insn): New function.
5520         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
5521         Invoke change_regs_in_insn rather than change_regs.
5522         * ira.c (update_equiv_regs): Strengthen locals "insn",
5523         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
5524         for_each_rtx_in_insn rather than for_each_rtx.
5525         * recog.c (confirm_change_group): Add checked casts.
5526         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
5527         Add checked cast.
5528         (peep2_fill_buffer): Add checked cast.
5529         * rtlanal.c (remove_note): Likewise.
5530         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
5531         locals "next" "end" from rtx to rtx_insn *.
5532
5533 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5534
5535         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
5536         to rtx_insn *.
5537         (struct reg_use_data): Likewise for field "insn".
5538         (insn_cost): Likewise for param.
5539         (real_insn_for_shadow): Likewise for return type and param.
5540         (increase_insn_priority): Likewise for param 1.
5541         (debug_dependencies): Likewise for both params.
5542
5543         * haifa-sched.c (insn_delay): Likewise for param "insn".
5544         (real_insn_for_shadow): Likewise for return type and param "insn".
5545         (update_insn_after_change): Likewise for param "insn".
5546         (recompute_todo_spec): Likewise for param "next" and locals "pro",
5547         "other".
5548         (insn_cost): Likewise for param "insn".
5549         (increase_insn_priority): Likewise.
5550         (calculate_reg_deaths): Likewise.
5551         (setup_insn_reg_pressure_info): Likewise.
5552         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
5553         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
5554         (model_recompute): Likewise.
5555         (must_restore_pattern_p): Likewise for param "next".
5556         (model_excess_cost): Likewise for param "insn".
5557         (queue_remove): Likewise.
5558         (adjust_priority): Likewise for param "prev".
5559         (update_register_pressure): Likewise for param "insn".
5560         (setup_insn_max_reg_pressure): Likewise for local "insn".
5561         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
5562         (model_add_to_schedule): Likewise.
5563         (model_reset_queue_indices): Likewise for local "insn".
5564         (unschedule_insns_until): Strengthen local "recompute_vec" from
5565         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
5566         "con" from rtx to rtx_insn *.
5567         (restore_last_backtrack_point): Likewise for both locals "x". Add
5568         checked casts.
5569         (estimate_insn_tick): Likewise for param "insn".
5570         (commit_schedule): Likewise for params "prev_head", "tail" and
5571         local "x".
5572         (verify_shadows): Likewise for locals "i1", "i2".
5573         (dump_insn_stream): Likewise for params "head", "tail" and locals
5574         "next_tail", "insn".
5575         (schedule_block): Likewise for locals "insn", "x".  Add a checked
5576         cast.
5577         (fix_inter_tick): Likewise for params "head", "tail".
5578         (create_check_block_twin): Likewise for local "jump".
5579         (haifa_change_pattern): Likewise for param "insn".
5580         (haifa_speculate_insn): Likewise.
5581         (dump_new_block_header): Likewise for params "head", "tail".
5582         (fix_jump_move): Likewise for param "jump".
5583         (move_block_after_check): Likewise.
5584         (sched_init_insn_luid): Likewise for param "insn".
5585         (sched_init_luids): Likewise for local "insn".
5586         (insn_luid): Likewise for param "insn".
5587         (init_h_i_d): Likewise.
5588         (haifa_init_h_i_d): Likewise for local "insn".
5589         (haifa_init_insn): Likewise for param "insn".
5590         * sched-deps.c (add_dependence): Likewise for local "real_pro",
5591         "other".
5592         (create_insn_reg_use): Likewise for param "insn".
5593         (setup_insn_reg_uses): Likewise.  Add a checked cast.
5594         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5595         "tail" from rtx to rtx_insn *.
5596         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5597         "insn", "next_tail".
5598
5599 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5600
5601         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5602         from rtx to rtx_insn *.
5603         (model_add_to_schedule): Likewise for locals "start", "end",
5604         "iter".
5605
5606 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5607
5608         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5609         rtx_insn *.
5610         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
5611         "to" and locals "insn", "next", "copy".  Remove now-redundant
5612         checked cast.
5613
5614 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5615
5616         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5617         rtx_insn * and param 4 from rtx * to rtx_insn **.
5618         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5619         param 2 from rtx * to rtx_insn **.
5620
5621         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5622         rtx_insn * and final param from rtx * to rtx_insn **.
5623
5624         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5625         from rtx to rtx_insn *.
5626         (try_head_merge_bb): Likewise for both locals named "move_upto".
5627         * df-problems.c (can_move_insns_across): Likewise for params
5628         "from", "to", "across_from", "across_to" and locals "insn",
5629         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
5630         rtx_insn **.
5631         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5632         from rtx to rtx_insn *.
5633         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5634         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
5635         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5636         rtx_insn *.
5637         (noce_try_abs): Likewise.
5638         (noce_get_condition): Likewise for param "jump".  Strengthen param
5639         "earliest" from rtx * to rtx_insn **.
5640         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5641         rtx_insn *.
5642         (find_cond_trap): Likewise.
5643         (dead_or_predicable): Likewise for local "earliest".
5644         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
5645         checked cast.
5646         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5647         and local "prev".  Strengthen param "earliest" from rtx * to
5648         rtx_insn **.
5649         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5650         Strengthen param "earliest" from rtx * to rtx_insn **.
5651
5652 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5653
5654         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5655         "to" and local "insn" from rtx to rtx_insn *.
5656
5657 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5658
5659         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5660         from rtx to rtx_insn *.
5661         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5662         (code_motion_path_driver): Likewise for local "last_insn".
5663         (simplify_changed_insns): Likewise for local "insn".
5664
5665 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5666
5667         * rtl.h (push_to_sequence): Strengthen param from rtx to
5668         rtx_insn *.
5669         (push_to_sequence2): Likewise for both params.
5670         (delete_insns_since): Likewise for param.
5671         (reorder_insns_nobb): Likewise for all three params.
5672         (set_new_first_and_last_insn): Likewise for both params.
5673
5674         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5675         rtx_insn *.  Remove now-redundant cast.
5676         (set_last_insn): Likewise.
5677
5678         * builtins.c (expand_builtin_return): Strengthen local
5679         "call_fusage" from rtx to rtx_insn *.
5680         * cfgrtl.c (create_basic_block_structure): Likewise for local
5681         "after".
5682         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5683         "first", "last" and local "insn".
5684         (delete_insns_since): Likewise for param "from".
5685         (reorder_insns_nobb): Likewise for params "from", "to", "after"
5686         and local "x".
5687         (push_to_sequence): Likewise for param "first" and local "last".
5688         (push_to_sequence2): Likewise for params "first" and "last".
5689         * lra.c (emit_add3_insn): Likewise for local "last".
5690         (lra_emit_add): Likewise.
5691         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5692         "last_insn".
5693         (process_address_1): Likewise for locals "insn", last".
5694         * modulo-sched.c (ps_first_note): Likewise for return type.
5695         * optabs.c (expand_binop_directly): Likewise for param "last".
5696
5697 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5698
5699         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5700         to rtx_insn*.
5701         * emit-rtl.c (get_last_insn_anywhere): Likewise.
5702
5703 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5704
5705         * function.h (struct sequence_stack): Strengthen fields "first"
5706         and "last" from rtx to rtx_insn *.
5707         (struct emit_status): Likewise for fields "x_first_insn" and
5708         "x_last_insn".
5709
5710         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5711         (set_first_insn): Add checked cast.
5712         (get_last_insn): Remove now-redundant checked cast.
5713         (set_last_insn): Add checked cast.
5714
5715         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5716         "saved_first" and "saved_last" from rtx to rtx_insn *.
5717
5718 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5719
5720         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5721         (unlink_insn_chain): Strengthen both params from rtx to
5722         rtx_insn *.
5723
5724         * cfgrtl.c (cfg_layout_function_header): Likewise for this
5725         variable.
5726         (unlink_insn_chain): Likewise for params "first" and "last".
5727         Remove now-redundant checked cast.
5728         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5729         (fixup_reorder_chain): Strengthen local "insn" from rtx to
5730         rtx_insn *.
5731         * emit-rtl.c (link_insn_into_chain): Likewise for all three
5732         params.
5733         (add_insn): Likewise for param "insn" and local "prev".
5734         (add_insn_after_nobb): Likewise for both params and local "next".
5735         (add_insn_before_nobb): Likewise for both params and local "prev".
5736         (add_insn_after): Rename param "after" to "uncast_after",
5737         introducing local "after" with another checked cast.
5738         (add_insn_before): Rename params "insn" and "before", giving them
5739         "uncast_" prefixes, adding the old names back using checked casts.
5740         (emit_note_after): Likewise for param "after".
5741         (emit_note_before): Likewise for param "before".
5742         (emit_label): Add a checked cast.
5743
5744 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5745
5746         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
5747         "insn" from rtx to rtx_insn *.
5748
5749         * cselib.c (cselib_record_sets_hook): Likewise.
5750
5751         * var-tracking.c (add_with_sets): Likewise, renaming back from
5752         "uncast_insn" to "insn" and eliminating the checked cast from rtx
5753         to rtx_insn *.
5754
5755 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5756
5757         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5758         and "header_" from rtx to rtx_insn *.
5759         (struct basic_block_d): Likewise for field "head_" within "x"
5760         field of union basic_block_il_dependent.
5761         (BB_HEAD): Drop function...
5762         (SET_BB_HEAD): ...and this function in favor of...
5763         (BB_HEAD): ...reinstate macro.
5764         (BB_END): Drop function...
5765         (SET_BB_END): ...and this function in favor of...
5766         (BB_END): ...reinstate macro.
5767         (BB_HEADER): Drop function...
5768         (SET_BB_HEADER): ...and this function in favor of...
5769         (BB_HEADER): ...reinstate macro.
5770
5771         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5772         (fix_crossing_unconditional_branches): Likewise.
5773         * caller-save.c (save_call_clobbered_regs): Likewise.
5774         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5775         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5776         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5777         (merge_blocks_move_successor_nojumps): Likewise.
5778         (outgoing_edges_match): Update use of for_each_rtx to
5779         for_each_rtx_in_insn.
5780         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5781         (expand_gimple_cond): Likewise.
5782         (expand_gimple_tailcall): Likewise.
5783         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5784         SET_BB_END.
5785         (construct_exit_block): Drop use of SET_BB_END.
5786         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5787         rtx_insn *.
5788         (delete_insn): Rename param "insn" to "uncast_insn", introducing
5789         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
5790         SET_BB_HEAD and SET_BB_END.
5791         (create_basic_block_structure): Drop use of SET_BB_HEAD and
5792         SET_BB_END.
5793         (rtl_delete_block): Drop use of SET_BB_HEAD.
5794         (rtl_split_block): Drop use of SET_BB_END.
5795         (emit_nop_for_unique_locus_between): Likewise.
5796         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5797         (block_label): Drop use of SET_BB_HEAD.
5798         (fixup_abnormal_edges): Drop use of SET_BB_END.
5799         (record_effective_endpoints): Drop use of SET_BB_HEADER.
5800         (relink_block_chain): Likewise.
5801         (fixup_reorder_chain): Drop use of SET_BB_END.
5802         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5803         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5804         rtx_insn **.  Drop use of SET_BB_HEADER.
5805         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5806         SET_BB_HEAD.
5807         (BB_HEAD): Delete this function.
5808         (SET_BB_HEAD): Likewise.
5809         (BB_END): Likewise.
5810         (SET_BB_END): Likewise.
5811         (BB_HEADER): Likewise.
5812         (SET_BB_HEADER): Likewise.
5813         * emit-rtl.c (add_insn_after):  Rename param "insn" to
5814         "uncast_insn", adding a new local "insn" and a checked cast to
5815         rtx_insn *.  Drop use of SET_BB_END.
5816         (remove_insn): Strengthen locals "next" and "prev" from rtx to
5817         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
5818         (reorder_insns): Drop use of SET_BB_END.
5819         (emit_insn_after_1): Strengthen param "first" and locals "last",
5820         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
5821         (emit_pattern_after_noloc): Add checked cast.
5822         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5823         (restore_other_notes): Likewise.
5824         (move_insn): Likewise.
5825         (sched_extend_bb): Likewise.
5826         (fix_jump_move): Likewise.
5827         * ifcvt.c (noce_process_if_block): Likewise.
5828         (dead_or_predicable): Likewise.
5829         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5830         * reg-stack.c (change_stack): Drop use of SET_BB_END.
5831         * sel-sched-ir.c (sel_move_insn): Likewise.
5832         * sel-sched.c (move_nop_to_previous_block): Likewise.
5833
5834         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5835         SET_BB_END.
5836         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5837
5838 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5839
5840         * basic-block.h (create_basic_block_structure): Strengthen params
5841         1 "head" and 2 "end" from rtx to rtx_insn *.
5842         * cfgrtl.c (create_basic_block_structure): Likewise.
5843         (rtl_create_basic_block): Update casts from void * to rtx to
5844         rtx_insn *, so that we can pass them as rtx_insn * to
5845         create_basic_block_structure.
5846         * sel-sched-ir.c (sel_create_basic_block): Likewise.
5847
5848 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5849
5850         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5851         rtx_insn **.
5852         (check_for_inc_dec): Strengthen param "insn" from rtx to
5853         rtx_insn *.
5854
5855         * cselib.h (cselib_process_insn): Likewise.
5856
5857         * cselib.c (cselib_record_sets): Likewise.
5858         (cselib_process_insn): Likewise.
5859
5860         * dse.c (struct insn_info): Likewise for field "insn".
5861         (check_for_inc_dec_1): Likewise for local "insn".
5862         (check_for_inc_dec): Likewise for param "insn".
5863         (scan_insn): Likewise.
5864         (dse_step1): Likewise for local "insn".
5865
5866         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5867         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
5868
5869 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5870
5871         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5872         from rtx to rtx_insn *.
5873         (DEP_PRO): Delete this function and...
5874         (SET_DEP_PRO): ...this function in favor of...
5875         (DEP_PRO): ...reinstate this macro.
5876         (DEP_CON): Delete this function and...
5877         (SET_DEP_CON): ...this function in favor of...
5878         (DEP_CON): ...reinstate this old macro.
5879         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5880         (init_dep): Likewise.
5881         (set_priorities): Likewise for both params.
5882         (sd_copy_back_deps): Likewise for params 1 and 2.
5883
5884         * haifa-sched.c (priority): Likewise for param "insn" and local
5885         "next".
5886         (set_priorities): Likewise for params "head" and "tail" and local
5887         "insn".
5888         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5889         local "consumer".
5890         (add_to_speculative_block): Add a checked cast.
5891         (create_check_block_twin): Drop use of SET_DEP_CON.
5892         (add_jump_dependencies): Strengthen params "insn" and "jump" from
5893         rtx to rtx_insn *.
5894
5895         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5896         Drop use of SET_DEP_PRO
5897         (init_dep): Strengthen params "pro" and "con" from rtx to
5898         rtx_insn *.
5899         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
5900         use of SET_DEP_CON.
5901         (DEP_PRO): Delete.
5902         (DEP_CON): Delete.
5903         (SET_DEP_PRO): Delete.
5904         (SET_DEP_CON): Delete.
5905
5906 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5907
5908         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5909         from rtx to rtx_insn *.
5910         (VINSN_INSN_RTX): Eliminate rvalue function and...
5911         (SET_VINSN_INSN): ...lvalue function in favor of...
5912         (VINSN_INSN_RTX): reinstate this old macro.
5913
5914         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5915         in favor of VINSN_INSN_RTX.
5916         (VINSN_INSN_RTX): Delete this function.
5917         (SET_VINSN_INSN_RTX): Likewise.
5918
5919 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5920
5921         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5922         (BND_TO): Delete this function and...
5923         (SET_BND_TO): ...this functions in favor of...
5924         (BND_TO): ...reinstating this macro.
5925         (struct _fence): Strengthen field "executing_insns" from
5926         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
5927         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5928         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5929         and param "insn" from rtx to insn_t.
5930         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5931         rtx_insn *.
5932
5933         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5934         vec<rtx_insn *> .
5935         (rtx_vec_t): Likewise.
5936         (struct sched_deps_info_def): Strengthen param of "start_insn"
5937         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
5938         "note_mem_dep" callback and first param of "note_dep" callback.
5939
5940         * haifa-sched.c (add_to_speculative_block): Strengthen param
5941         "insn" from rtx to rtx_insn *.
5942         (clear_priorities): Likewise.
5943         (calc_priorities): Likewise for local "insn".
5944
5945         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5946         Remove redundant checked cast.
5947         (haifa_note_mem_dep): Likewise for param "pending_insn".
5948         (haifa_note_dep): Likewise for param "elem".
5949         (note_mem_dep): Likewise for param "e".
5950         (sched_analyze_1): Add checked casts.
5951         (sched_analyze_2): Likewise.
5952
5953         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5954         from rtx to rtx_insn *.
5955         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5956         from vec<rtx> * to vec<rtx_insn *> *.
5957
5958         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5959         scaffolding.
5960         (flist_add): Strengthen param "executing_insns" from
5961         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5962         (advance_deps_context): Remove now-redundant checked cast.
5963         (init_fences): Replace uses of NULL_RTX with NULL.
5964         (merge_fences): Strengthen params "last_scheduled_insn" and
5965         "sched_next" from rtx to rtx_insn * and "executing_insns" from
5966         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5967         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5968         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5969         an instruction, rather than doing double-duty as a pattern.
5970         (return_nop_to_pool): Update for change of insn_t.
5971         (deps_init_id): Remove now-redundant checked cast.
5972         (struct sched_scan_info_def): Strengthen param of "init_insn"
5973         callback from rtx to insn_t.
5974         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5975         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5976         NULL.
5977         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5978         "end" from rtx to rtx_insn *.
5979         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5980         (rtx insn_rtx, bool force_unique_p)
5981         (BND_TO): Delete function.
5982         (SET_BND_TO): Delete function.
5983
5984         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5985         rtx to rtx_insn *.
5986         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5987         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5988         rtx to rtx_insn *.
5989         (undo_transformations): Likewise for param "insn".
5990         (update_liveness_on_insn): Likewise.
5991         (compute_live_below_insn): Likewise for param "insn" and local
5992         "succ".
5993         (update_data_sets): Likewise for param "insn".
5994         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5995         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5996         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5997         rtx_insn *.
5998         (move_cond_jump): Likewise for param "insn".
5999         (move_cond_jump): Drop use of SET_BND_TO.
6000         (compute_av_set_on_boundaries): Likewise.
6001         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
6002         (update_and_record_unavailable_insns): Strengthen local "bb_end"
6003         from rtx to rtx_insn *.
6004         (maybe_emit_renaming_copy): Likewise for param "insn".
6005         (maybe_emit_speculative_check): Likewise.
6006         (handle_emitting_transformations): Likewise.
6007         (remove_insn_from_stream): Likewise.
6008         (code_motion_process_successors): Strengthen local "succ" from rtx
6009         to insn_t.
6010
6011 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6012
6013         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
6014         ilist_t, not _xlist_t;
6015         (ILIST_INSN): Define in terms of new union field "insn".
6016         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
6017         _XLIST_NEXT.
6018         (struct _list_node): Add new field "insn" to the union, of type
6019         insn_t.
6020         (ilist_add): Replace macro with an inline function, requiring an
6021         insn_t.
6022         (ilist_remove): Define this macro directly in terms of
6023         _list_remove, rather than indirectly via _xlist_remove.
6024         (ilist_clear): Likewise, in terms of _list_clear rather than
6025         _xlist_clear.
6026         (ilist_is_in_p): Replace macro with an inline function, requiring
6027         an insn_t.
6028         (_list_iter_cond_insn): New function.
6029         (ilist_iter_remove): Define this macro directly in terms of
6030         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
6031         (ilist_iterator): Define directly in terms of _list_iterator
6032         rather than indirectly through _xlist_iterator.
6033         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
6034         than in terms of _FOR_EACH_X.
6035         (FOR_EACH_INSN_1): Likewise.
6036
6037 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
6038
6039         PR target/60606
6040         PR target/61330
6041         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
6042         DECL_HARD_REGISTER and return for invalid register specifications.
6043         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
6044         DECL_HARD_REGISTER, call expand_one_error_var.
6045         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
6046         CC_REGNUM with non-MODE_CC modes.
6047         (arm_regno_class): Return NO_REGS for PC_REGNUM.
6048
6049 2014-08-26  Marek Polacek  <polacek@redhat.com>
6050
6051         PR c/61271
6052         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
6053
6054 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
6055
6056         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
6057         qi cost; add di cost.
6058         (cortexa57_addrcost_table): Likewise.
6059
6060 2014-08-26  Marek Polacek  <polacek@redhat.com>
6061
6062         PR c/61271
6063         * expr.c (is_aligning_offset): Remove logical not.
6064
6065 2014-08-26  Marek Polacek  <polacek@redhat.com>
6066
6067         PR c/61271
6068         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
6069         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
6070
6071 2014-08-26  Richard Biener  <rguenther@suse.de>
6072
6073         PR tree-optimization/62175
6074         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6075         expand possibly trapping operations.
6076
6077 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6078
6079         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
6080         "insn" from rtx to rtx_insn *.
6081         (permute_load): Likewise for param "insn".
6082         (permute_store): Likewise.
6083         (handle_special_swappables): Likewise for local "insn".
6084         (replace_swap_with_copy): Likewise for locals "insn" and
6085         "new_insn".
6086         (rs6000_analyze_swaps): Likewise for local "insn".
6087
6088 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6089
6090         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
6091         to rtx_insn *.
6092
6093 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6094
6095         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
6096         "note_list" from rtx to rtx_insn *.
6097         (BB_NOTE_LIST): Replace this function and...
6098         (SET_BB_NOTE_LIST): ...this function with...
6099         (BB_NOTE_LIST): ...the former macro implementation.
6100
6101         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
6102         local "from_start" from rtx to rtx_insn *.  Strengthen param
6103         "to_endp" from rtx * to rtx_insn **.
6104
6105         * haifa-sched.c (concat_note_lists): Likewise.
6106         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
6107         BB_NOTE_LIST.
6108         (sel_restore_notes): Likewise.
6109         (move_bb_info): Likewise.
6110         (BB_NOTE_LIST): Delete this function.
6111         (SET_BB_NOTE_LIST): Delete this function.
6112         * sel-sched.c (create_block_for_bookkeeping): Eliminate
6113         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
6114
6115 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6116
6117         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
6118         from rtx * to rtx_insn **.
6119         (reorder2): Likewise.
6120         (dependencies_evaluation_hook): Strengthen params "head", "tail"
6121         from rtx to rtx_insn *.
6122
6123         * doc/tm.texi: Update mechanically for above change to target.def.
6124
6125         * sched-int.h (note_list): Strengthen this variable from rtx to
6126         rtx_insn *.
6127         (remove_notes): Likewise for both params.
6128         (restore_other_notes): Likewise for return type and first param.
6129         (struct ready_list): Strengthen field "vec" from rtx * to
6130         rtx_insn **.
6131         (struct dep_replacement): Strenghten field "insn" from rtx to
6132         rtx_insn *.
6133         (struct deps_desc): Likewise for fields "last_debug_insn",
6134         "last_args_size".
6135         (struct haifa_sched_info): Likewise for callback field
6136         "can_schedule_ready_p"'s param, for first param of "new_ready"
6137         callback field, for both params of "rank" callback field, for
6138         first field of "print_insn" callback field (with a const), for
6139         both params of "contributes_to_priority" callback, for param
6140         of "insn_finishes_block_p" callback, for fields "prev_head",
6141         "next_tail", "head", "tail", for first param of "add_remove_insn"
6142         callback, for first param of "begin_schedule_ready" callback, for
6143         both params of "begin_move_insn" callback, and for second param
6144         of "advance_target_bb" callback.
6145         (add_dependence): Likewise for params 1 and 2.
6146         (sched_analyze): Likewise for params 2 and 3.
6147         (deps_analyze_insn): Likewise for param 2.
6148         (ready_element): Likewise for return type.
6149         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6150         (try_ready): Strenghten param from rtx to rtx_insn *.
6151         (sched_emit_insn): Likewise for return type.
6152         (record_delay_slot_pair): Likewise for params 1 and 2.
6153         (add_delay_dependencies): Likewise for param.
6154         (contributes_to_priority): Likewise for both params.
6155         (find_modifiable_mems): Likewise.
6156
6157         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
6158         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
6159         "first_older_only_insn" from rtx to rtx_insn *.
6160         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
6161         rtx_insn **.
6162
6163         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
6164         "last_scheduled_iter0" from rtx to rtx_insn *.
6165         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
6166         (c6x_sched_reorder_1): Strengthen param "ready" and locals
6167         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
6168         "insn" from rtx to rtx_insn *.
6169         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
6170         rtx_insn **.
6171         (c6x_sched_reorder2): Strengthen param "ready" and locals
6172         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
6173         "insn" from rtx to rtx_insn *.
6174         (c6x_variable_issue):  Add a checked cast when assigning from insn
6175         to ss.last_scheduled_iter0.
6176         (split_delayed_branch): Strengthen param "insn" and local "i1"
6177         from rtx to rtx_insn *.
6178         (split_delayed_nonbranch): Likewise.
6179         (undo_split_delayed_nonbranch): Likewise for local "insn".
6180         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
6181         "entry_after", "end_packet", "head_insn", "tail_insn",
6182         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
6183         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
6184         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
6185         but add a checked cast on loop->start_label.  Consolidate calls to
6186         avoid assigning result of gen_spkernel to "insn", now an
6187         rtx_insn *.
6188
6189         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
6190         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
6191         rtx to rtx_insn *.
6192         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
6193         rtx_insn **.  Strengthen locals "top", "next" from rtx to
6194         rtx_insn *.
6195         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
6196         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
6197         (add_parameter_dependencies): Strengthen params "call", "head" and
6198         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
6199         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
6200         (add_dependee_for_func_arg): Likewise for param "arg" and local
6201         "insn".
6202         (ix86_dependencies_evaluation_hook): Likewise for params "head",
6203         "tail" and locals "insn", "first_arg".
6204
6205         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
6206         for params "head", "tail" and locals "insn", "next", "next_tail".
6207         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
6208         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
6209         "insn", "lowest", "highest" from rtx to rtx_insn *.
6210         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
6211         rtx_insn **.
6212         (ia64_sched_reorder2): Likewise.
6213
6214         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
6215         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
6216         from rtx * to rtx_insn **.
6217         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
6218         rtx_insn **.
6219         (mep_print_sched_insn): Strengthen param "insn" from rtx to
6220         rtx_insn *.
6221         (mep_sched_reorder): Strengthen param "ready" from rtx * to
6222         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
6223         to rtx_insn *.
6224
6225         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
6226         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
6227         to rtx_insn *.
6228         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
6229         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
6230         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
6231         rtx_insn **.
6232         (vr4130_reorder): Likewise.
6233         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
6234         rtx to rtx_insn *.
6235         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
6236         rtx_insn **.
6237         (mips_sched_reorder): Likewise.
6238         (mips_sched_reorder2): Likewise.
6239
6240         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
6241
6242         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
6243         Strengthen local "tmp" from rtx to rtx_insn *.
6244         (rs6000_sched_reorder2): Likewise.
6245
6246         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
6247         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
6248         (s390_sched_reorder): Strengthen param "ready" from rtx * to
6249         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
6250
6251         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
6252         "tmp2" from rtx to rtx_insn *.
6253         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
6254         Strengthen local "insn" from rtx to rtx_insn *.
6255         (ready_reorder): Strengthen param "ready" from rtx * to
6256         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
6257         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
6258         (sh_reorder2): Likewise.
6259
6260         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
6261         local "insn" from rtx to rtx_insn *.
6262
6263         * haifa-sched.c (note_list): Strengthen this variable from rtx to
6264         rtx_insn *.
6265         (scheduled_insns): Strengthen this variable from vec<rtx> to
6266         vec<rtx_insn *>.
6267         (set_modulo_params): Likewise for locals "i1", "i2".
6268         (record_delay_slot_pair): Likewise for params "i1", "i2".
6269         (add_delay_dependencies): Likewise for param "insn".
6270         (cond_clobbered_p): Likewise.
6271         (recompute_todo_spec): Likewise for local "prev".
6272         (last_scheduled_insn): Likewise for this variable.
6273         (nonscheduled_insns_begin): Likewise.
6274         (model_set_excess_costs): Strengthen param "insns" from rtx * to
6275         rtx_insn **.
6276         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
6277         rtx_insn *.
6278         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
6279         Strengthen local "insn" from rtx to rtx_insn *.
6280         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
6281         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6282         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
6283         (ready_remove_first): Likewise for return type and local "t".
6284         (ready_element): Likewise for return type.
6285         (ready_remove): Likewise for return type and local "t".
6286         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
6287         (check_clobbered_conditions): Strengthen local "x" from rtx to
6288         rtx_insn *, adding a checked cast.
6289         (schedule_insn): Likewise for param "insn".
6290         (remove_notes): Likewise for params "head", "tail" and locals
6291         "next_tail", "insn", "next".
6292         (struct haifa_saved_data): Likewise for fields
6293         "last_scheduled_insn", "nonscheduled_insns_begin".
6294         (save_backtrack_point): Update for change to field "vec" of
6295         struct ready_list.
6296         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
6297         rtx_insn **.
6298         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
6299         from rtx to rtx_insn *
6300         (resolve_dependencies): Strengthen param "insn" from rtx to
6301         rtx_insn *
6302         (restore_other_notes): Likewise for return type, for param "head"
6303         and local "note_head".
6304         (undo_all_replacements): Likewise for local "insn".
6305         (first_nonscheduled_insn): Likewise for return type and local "insn".
6306         (queue_to_ready): Likewise for local "insn", adding checked casts.
6307         (early_queue_to_ready): Likewise for local "insn".
6308         (debug_ready_list_1): Strengthen local "p" from rtx * to
6309         rtx_insn **.
6310         (move_insn): Strengthen param "insn" and local "note" from rtx to
6311         rtx_insn *
6312         (insn_finishes_cycle_p): Likewise for param "insn".
6313         (max_issue): Likewise for local "insn".
6314         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
6315         to rtx_insn **.
6316         (commit_schedule): Strengthen param "prev_head" and local "insn"
6317         from rtx to rtx_insn *
6318         (prune_ready_list): Likewise for local "insn".
6319         (schedule_block): Likewise for locals "prev_head", "head", "tail",
6320         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
6321         (set_priorities): Likewise for local "prev_head".
6322         (try_ready): Likewise for param "next".
6323         (fix_tick_ready): Likewise.
6324         (change_queue_index): Likewise.
6325         (sched_extend_ready_list): Update for change to field "vec" of
6326         struct ready_list.
6327         (generate_recovery_code): Strengthen param "insn" from rtx to
6328         rtx_insn *.
6329         (begin_speculative_block): Likewise.
6330         (create_check_block_twin): Likewise for param "insn" and locals
6331         "label", "check", "twin".  Introduce local "check_pat" to avoid
6332         "check" being used as a plain rtx before being used as an insn.
6333         (fix_recovery_deps): Add a checked cast to rtx_insn * when
6334         extracting elements from ready_list.
6335         (sched_remove_insn): Strengthen param "insn" from rtx to
6336         rtx_insn *.
6337         (sched_emit_insn): Likewise for return type.
6338         (ready_remove_first_dispatch): Likewise for return type and local
6339         "insn".
6340
6341         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
6342
6343         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
6344         const rtx_insn *.
6345
6346         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
6347         from rtx to rtx_insn *.
6348         (add_dependence_list): Likewise for param "insn".  Add a checked
6349         cast.
6350         (add_dependence_list_and_free): Strengthen param "insn" from rtx
6351         to rtx_insn *.  Strengthen param "list_p" from rtx * to
6352         rtx_insn **.
6353         (chain_to_prev_insn): Strengthen param "insn" and locals
6354         "prec_nonnote", "i" from rtx to rtx_insn *.
6355         (flush_pending_lists): Likewise for param "insn".
6356         (cur_insn): Likewise for this variable.
6357         (haifa_start_insn): Add a checked cast.
6358         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
6359         (sched_analyze_reg): Likewise for param "insn".
6360         (sched_analyze_1): Likewise.
6361         (sched_analyze_2): Likewise.  Add checked casts.
6362         (sched_analyze_insn): Likewise.  Also for local "prev".
6363         (deps_analyze_insn): Likewise for param "insn".
6364         (sched_analyze): Likewise for params "head", "tail" and local "insn".
6365         (add_dependence_1): Likewise for params "insn", "elem".
6366         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
6367         (parse_add_or_inc): Likewise for param "insn".
6368         (find_inc): Likewise for local "inc_cand".
6369         (find_modifiable_mems): Likewise for params "head", "tail" and
6370         locals "insn", "next_tail".
6371
6372         * sched-ebb.c (init_ready_list): Likewise for local "insn".
6373         (begin_schedule_ready): Likewise for param "insn".
6374         (begin_move_insn): Likewise for params "insn" and "last".
6375         (ebb_print_insn): Strengthen param "insn" from const_rtx to
6376         const rtx_insn *.
6377         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
6378         (ebb_contributes_to_priority): Likewise for params "next", "insn".
6379         (ebb_add_remove_insn): Likewise for param "insn".
6380         (advance_target_bb): Likewise.
6381
6382         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
6383         "insn".
6384         (check_live): Likewise for param "insn".
6385         (init_ready_list): Likewise for local "insn".
6386         (can_schedule_ready_p): Likewise for param "insn".
6387         (begin_schedule_ready): Likewise.
6388         (new_ready): Likewise for param "next".
6389         (rgn_print_insn): Likewise for param "insn".
6390         (rgn_rank): Likewise for params "insn1", "insn2".
6391         (contributes_to_priority): Likewise for params "next", "insn".
6392         (rgn_insn_finishes_block_p): Likewise for param "insn".
6393         (add_branch_dependences): Likewise for params "head", "tail" and
6394         locals "insn", "last".
6395         (rgn_add_remove_insn): Likewise for param "insn".
6396         (advance_target_bb): Likewise.
6397
6398         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
6399         const_rtx to const rtx_insn *.
6400
6401         * sel-sched-dump.h (sel_print_insn): Likewise.
6402
6403         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
6404         (deps_init_id): Likewise.
6405
6406         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
6407         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
6408         rtx_insn **.
6409
6410 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6411
6412         * output.h (final_start_function): Strengthen param 1 from rtx to
6413         rtx_insn *.
6414
6415         * final.c (final_start_function): Likewise, renaming back from
6416         "uncast_first" to "first", and dropping the checked cast from rtx
6417         to rtx_insn *.
6418
6419 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6420
6421         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
6422         * final.c (final): Likewise.  Rename param back from
6423         "uncast_first" to "first" and eliminate the checked cast from rtx
6424         to rtx_insn *.
6425
6426 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6427
6428         * output.h (shorten_branches): Strengthen param from rtx to
6429         rtx_insn *.
6430
6431         * final.c (shorten_branches): Likewise, renaming param back from
6432         "uncast_first" to "first", and dropping the checked cast from rtx
6433         to rtx_insn *.
6434
6435         * genattr.c (gen_attr): Likewise when writing out the prototype of
6436         shorten_branches.
6437
6438 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6439
6440         * sched-int.h (struct haifa_sched_info): Strengthen fields
6441         "prev_head" and "next_tail" from rtx to rtx_insn *.
6442
6443 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6444
6445         * rtl.h (rtx_jump_table_data::get_labels): New method.
6446         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
6447         with use of the new rtx_jump_table_data::get_labels method.
6448         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
6449         to rtx_jump_table_data *.  Simplify by using get_labels method.
6450         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
6451         a dyn_cast, introducing local "table", using it to replace
6452         label-lookup logic with a get_labels method call.
6453         (patch_jump_insn): Simplify using get_labels method.
6454         * dwarf2cfi.c (create_trace_edges): Likewise.
6455         * rtlanal.c (label_is_jump_target_p): Likewise.
6456
6457 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6458
6459         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
6460         to rtx_insn *.
6461
6462         * emit-rtl.c (unshare_all_rtl_1): Likewise.
6463         (unshare_all_rtl_again): Likewise, also for local "p".
6464
6465 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6466
6467         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
6468         to rtx_insn *.
6469         * cfgrtl.c (delete_insn_and_edges): Likewise.
6470
6471 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6472
6473         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
6474         from rtx to rtx_insn *.
6475
6476         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
6477
6478 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6479
6480         * function.c (thread_prologue_and_epilogue_insns): Likewise for
6481         locals "returnjump", "epilogue_end", "insn", "next".
6482
6483         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
6484         "returnjump" from rtx * to rtx_insn **.
6485         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
6486
6487 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6488
6489         * basic-block.h (struct edge_def). Strengthen "r" within
6490         union edge_def_insns from rtx to rtx_insn *.
6491
6492         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
6493         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
6494         rtx_insn *.
6495         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
6496         from rtx to rtx_insn *.
6497         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
6498         rtx_insn *.
6499         * postreload-gcse.c (reg_killed_on_edge): Likewise.
6500         (reg_used_on_edge): Likewise.
6501         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
6502         (gt_pch_nx): New overload for rtx_insn *&.
6503         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
6504         from rtx to rtx_insn *.
6505
6506 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6507
6508         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
6509         from rtx to rtx_insn *.
6510         (BB_FOOTER): Replace function with access macro.
6511         (SET_BB_FOOTER): Delete.
6512
6513         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
6514         with BB_FOOTER.
6515         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6516         (emit_barrier_after_bb): Likewise.
6517         (record_effective_endpoints): Likewise.
6518         (relink_block_chain): Likewise.
6519         (fixup_fallthru_exit_predecessor): Likewise.
6520         (cfg_layout_duplicate_bb): Likewise.
6521         (cfg_layout_split_block): Likewise.
6522         (cfg_layout_delete_block): Likewise.
6523         (cfg_layout_merge_blocks): Likewise.
6524         (BB_FOOTER): Delete function.
6525         (SET_BB_FOOTER): Delete function.
6526         * combine.c (update_cfg_for_uncondjump): Replace uses of
6527         SET_BB_FOOTER with BB_FOOTER.
6528
6529 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6530
6531         * except.h (struct eh_landing_pad_d): Strengthen field
6532         "landing_pad" from rtx to rtx_code_label *.
6533
6534         * except.c (sjlj_emit_dispatch_table): Likewise for param
6535         "dispatch_label"
6536         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
6537
6538 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6539
6540         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
6541         first param from rtx to rtx_insn *.
6542         * config/xtensa/xtensa.c (struct machine_function): Likewise for
6543         field "set_frame_ptr_insn".
6544         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
6545         "csend" from rtx to rtx_code_label *.
6546         (xtensa_expand_atomic): Likewise for local "csloop".
6547         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
6548         rtx_insn *.
6549         (xtensa_call_tls_desc): Likewise for return type and locals
6550         "call_insn", "insns".
6551         (xtensa_legitimize_tls_address): Likewise for local "insns".
6552         (xtensa_expand_prologue): Likewise for locals "insn", "first".
6553
6554 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6555
6556         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
6557         first param from rtx to rtx_insn *.
6558         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
6559         "insn".
6560
6561 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6562
6563         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
6564         Strengthen param 1 from rtx to rtx_insn *.
6565         (tilepro_output_cbranch): Likewise.
6566         (tilepro_adjust_insn_length): Likewise.
6567         (tilepro_final_prescan_insn): Likewise for sole param.
6568
6569         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
6570         Likewise for local "last".
6571         (cbranch_predicted_p): Likewise for param "insn".
6572         (tilepro_output_simple_cbranch_with_opcode): Likewise.
6573         (tilepro_output_cbranch_with_opcode): Likewise.
6574         (tilepro_output_cbranch): Likewise.
6575         (frame_emit_load): Likewise for return type and locals "seq",
6576         "insn".
6577         (emit_sp_adjust): Likewise for return type and local "insn".
6578         (tilepro_expand_epilogue): Likewise for locals "last_insn",
6579         "insn".
6580         (tilepro_adjust_insn_length): Likewise for param "insn".
6581         (next_insn_to_bundle): Likewise for return type and params
6582         "r", "end".
6583         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6584         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6585         local "new_insns".
6586         (match_addli_pcrel): Likewise for param "insn".
6587         (replace_addli_pcrel): Likewise.
6588         (match_auli_pcrel): Likewise.
6589         (replace_auli_pcrel): Likewise.
6590         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6591         "next_insn".
6592         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6593         "queue", "next_queue", "prev".
6594         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6595         (tilepro_final_prescan_insn): Likewise for param "insn".
6596
6597 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6598
6599         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6600         Strengthen param 1 from rtx to rtx_insn *.
6601         (tilegx_output_cbranch): Likewise.
6602         (tilegx_adjust_insn_length): Likewise.
6603         (tilegx_final_prescan_insn): Likewise for sole param.
6604
6605         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6606         or local "last".
6607         (cbranch_predicted_p): Likewise for param "insn".
6608         (tilegx_output_simple_cbranch_with_opcode): Likewise.
6609         (tilegx_output_cbranch_with_opcode): Likewise.
6610         (tilegx_output_cbranch): Likewise.
6611         (frame_emit_load): Likewise for return type.
6612         (set_frame_related_p): Likewise for locals "seq", "insn".
6613         (emit_sp_adjust): Likewise for return type, and for local "insn".
6614         Introduce local "pat" for use in place of "insn" where the latter
6615         isn't an instruction.
6616         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6617         from rtx to rtx_insn *.
6618         (tilegx_adjust_insn_length): Likewise for param "insn".
6619         (next_insn_to_bundle): Likewise for return type and params "r" and
6620         "end".
6621         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6622         "end".
6623         (replace_insns): Likewise for params "old_insn", "new_insns".
6624         (replace_mov_pcrel_step1): Likewise for param "insn" and local
6625         "new_insns".
6626         (replace_mov_pcrel_step2): Likewise.
6627         (replace_mov_pcrel_step3): Likewise.
6628         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6629         "next_insn".
6630         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6631         "queue", "next_queue", "prev".
6632         (tilegx_output_mi_thunk): Likewise for local "insn".
6633         (tilegx_final_prescan_insn): Likewise for param "insn".
6634
6635 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6636
6637         * config/spu/spu.c (frame_emit_store): Strengthen return type from
6638         rtx to rtx_insn *.
6639         (frame_emit_load): Likewise.
6640         (frame_emit_add_imm): Likewise, also for local "insn".
6641         (spu_expand_prologue): Likewise for local "insn".
6642         (struct spu_bb_info): Likewise for field "prop_jump".
6643         (emit_nop_for_insn): Likewise for param "insn" and local
6644         "new_insn".
6645         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6646         "hbr_insn".
6647         (spu_emit_branch_hint): Likewise for params "before", "branch" and
6648         locals "hint", "insn".
6649         (get_branch_target): Likewise for param "branch".
6650         (insn_clobbers_hbr): Likewise for param "insn".
6651         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6652         locals "insn", "before_4", "before_16".
6653         (insert_hbrp): Likewise for local "insn".
6654         (spu_machine_dependent_reorg): Likewise for locals "branch",
6655         "insn", "next", "bbend".
6656         (uses_ls_unit): Likewise for param "insn".
6657         (get_pipe): Likewise.
6658         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6659         introducing a checked cast.
6660         (spu_sched_adjust_cost): Likewise for params "insn" and
6661         "dep_insn".
6662         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6663         (spu_sms_res_mii): Likewise.
6664
6665 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6666
6667         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6668         from rtx to rtx_insn *.
6669         (output_cbranch): Likewise for param 6.
6670         (output_return): Likewise for param 1.
6671         (output_sibcall): Likewise.
6672         (output_v8plus_shift): Likewise.
6673         (output_v8plus_mult): Likewise.
6674         (output_v9branch): Likewise for param 7.
6675         (output_cbcond):  Likewise for param 3.
6676
6677         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6678         for local "insn".
6679         (sparc_legitimize_pic_address): Likewise.
6680         (sparc_emit_call_insn): Likewise.
6681         (emit_save_or_restore_regs): Likewise.
6682         (emit_window_save): Likewise for return type and local "insn".
6683         (sparc_expand_prologue): Likewise for local "insn".
6684         (sparc_flat_expand_prologue): Likewise.
6685         (output_return): Likewise for param "insn".
6686         (output_sibcall): Likewise for param "insn" and local "delay".
6687         (output_ubranch): Likewise for param "insn".
6688         (output_cbranch): Likewise.
6689         (output_cbcond): Likewise.
6690         (output_v9branch): Likewise.
6691         (output_v8plus_shift): Likewise.
6692         (sparc_output_mi_thunk): Likewise for local "insn".
6693         (get_some_local_dynamic_name): Likewise.
6694         (output_v8plus_mult): Likewise for param "insn".
6695
6696 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6697
6698         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6699         from rtx to rtx_insn *.
6700         (output_branchy_insn): Likewise for param 3.
6701         (output_far_jump): Likewise for param 1.
6702         (final_prescan_insn): Likewise.
6703         (sh_insn_length_adjustment): Likewise for sole param.
6704
6705         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6706         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6707         rtx_code_label *.
6708         (sh_emit_compare_and_set): Likewise for local "lab".
6709         (output_far_jump): Strengthen param "insn" and local "prev" from
6710         rtx to rtx_insn *.
6711         (output_branchy_insn): Likewise for param "insn" and local
6712         "next_insn".
6713         (output_ieee_ccmpeq): Likewise for param "insn".
6714         (struct label_ref_list_d): Strengthen field "label" from rtx to
6715         rtx_code_label *.
6716         (pool_node): Likewise.
6717         (pool_window_label): Likewise for this global.
6718         (add_constant): Likewise for return type and locals "lab", "new_rtx".
6719         (dump_table): Strengthen params "start", "barrier" and local
6720         "scan" from rtx to rtx_insn *.
6721         (broken_move): Likewise for param "insn".
6722         (untangle_mova): Likewise for params "first_mova" and "new_mova".
6723         Strengthen param "first_mova" from rtx * to rtx_insn **.
6724         (mova_p): Likewise for param "insn".
6725         (fixup_mova): Likewise for param "mova".
6726         (find_barrier): Likewise for return type, params "mova" and
6727         "from", and locals "barrier_before_mova", "found_barrier",
6728         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
6729         "label" from rtx to rtx_code_label *.
6730         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6731         rtx to rtx_insn *.
6732         (sh_reorg): Likewise for locals "link", "scan", "barrier".
6733         (split_branches): Likewise for param "first" and local "insn".
6734         (final_prescan_insn): Likewise for param "insn".
6735         (sequence_insn_p): Likewise for locals "prev", "next".
6736         (sh_insn_length_adjustment): Likewise for param "insn".
6737         (sh_can_redirect_branch): Likewise for local "insn".
6738         (find_r0_life_regions): Likewise for locals "end", "insn".
6739         (sh_output_mi_thunk): Likewise for local "insns".
6740
6741 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6742
6743         * config/score/score.c (score_output_mi_thunk): Strengthen local
6744         "insn" from rtx to rtx_insn *.
6745         (score_prologue): Likewise.
6746
6747 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6748
6749         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6750         1 from rtx to rtx_insn *.
6751         (s390_emit_jump): Likewise for return type.
6752         (s390_emit_call): Likewise.
6753         (s390_load_got): Likewise.
6754
6755         * config/s390/s390.c (last_scheduled_insn): Likewise for this
6756         variable.
6757         (s390_match_ccmode): Likewise for param "insn".
6758         (s390_emit_jump): Likewise for return type.
6759         (s390_split_branches): Likewise for local "label".
6760         (struct constant): Strengthen field "label" from rtx to
6761         rtx_code_label *.
6762         (struct constant_pool): Likewise for field "label".  Strengthen
6763         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6764         rtx_insn *.
6765         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6766         insns.
6767         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6768         (s390_end_pool): Likewise.
6769         (s390_dump_pool): Likewise for local "insn".
6770         (s390_mainpool_start): Likewise.
6771         (s390_chunkify_start): Likewise.
6772         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6773         with insns.  Strengthen locals "label", "jump", "barrier", "next",
6774         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6775         (s390_chunkify_finish): Strengthen local "insn" from rtx to
6776         rtx_insn *.
6777         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6778         "jump", "label", "next_insn".
6779         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6780         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6781         "tbegin_insn".
6782         (s390_load_got): Likewise for return type and local "insns".
6783         (s390_save_gprs_to_fprs): Likewise for local "insn".
6784         (s390_restore_gprs_from_fprs): Likewise.
6785         (pass_s390_early_mach::execute): Likewise.
6786         (s390_emit_prologue): Likewise for local "insns".
6787         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6788         rtx_code_label *.
6789         (s390_emit_call): Strengthen return type and local "insn" from
6790         rtx to rtx_insn *.
6791         (s390_emit_tpf_eh_return): Likewise for local "insn".
6792         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6793         "next_insn", introducing locals "s_pat", "rpat" to allow this.
6794         (s390_fix_long_loop_prediction): Likewise for param "insn" and
6795         local "cur_insn".
6796         (s390_non_addr_reg_read_p): Likewise for param "insn".
6797         (find_cond_jump): Likewise for return type and param "insn".
6798         (s390_swap_cmp): Likewise for param "insn".
6799         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6800         "prev_insn", "next_insn".
6801         (s390_reorg): Likewise for locals "insn", "target".
6802         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6803         (s390_sched_variable_issue): For now, rename param "insn" to
6804         "uncast_insn", introducing a checked cast.
6805         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6806         insn.
6807         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6808         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
6809
6810 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6811
6812         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6813         param from rtx to rtx_insn *.
6814         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6815
6816 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6817
6818         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6819         4 from rtx to rtx_insn *.
6820         (rs6000_final_prescan_insn): Likewise for first param.
6821         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6822         local "insn".
6823         (rs6000_get_some_local_dynamic_name): Likewise.
6824         (output_cbranch): Likewise for param "insn".
6825         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6826         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6827         (rs6000_emit_allocate_stack): Likewise for local "insn".
6828         (load_cr_save): Likewise.
6829         (restore_saved_cr): Likewise.
6830         (restore_saved_lr): Likewise.
6831         (emit_cfa_restores): Likewise.
6832         (rs6000_output_function_epilogue): Likewise for locals "insn" and
6833         "deleted_debug_label".
6834         (rs6000_output_mi_thunk): Likewise for local "insn".
6835         (rs6000_final_prescan_insn): Likewise for param "insn".
6836
6837 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6838
6839         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6840         Strengthen param "insn" from rtx to rtx_insn *.
6841         * config/picochip/picochip.c (picochip_current_prescan_insn):
6842         Likewise for this variable.
6843         (picochip_final_prescan_insn): Likewise for param "insn".
6844
6845 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6846
6847         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6848         from rtx to rtx_insn *.
6849         (pa_output_indirect_call): Likewise.
6850         (pa_adjust_insn_length): Likewise.
6851         (pa_attr_length_millicode_call): Likewise.
6852         (pa_attr_length_call): Likewise.
6853         (pa_attr_length_indirect_call): Likewise.
6854
6855         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6856         "insn".
6857         (pa_attr_length_millicode_call): Likewise.
6858         (pa_attr_length_call): Likewise.
6859         (pa_output_call): Likewise.
6860         (pa_attr_length_indirect_call): Likewise.
6861         (pa_output_indirect_call): Likewise.
6862
6863 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6864
6865         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6866         Strengthen first param from rtx to rtx_insn *.
6867         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6868         param "insn".
6869
6870 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6871
6872         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6873         type from rtx to rtx_insn *.
6874         (mips_expand_call): Likewise.
6875         (mips_adjust_insn_length): Likewise for first param.
6876         (mips_output_conditional_branch): Likewise.
6877         (mips_output_order_conditional_branch): Likewise.
6878         (mips_final_prescan_insn): Likewise.
6879
6880         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6881         rtx_insn * for the SEQUENCE case.
6882         (SEQ_END): Likewise.
6883         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6884         (mips_emit_call_insn): Likewise, also for local "insn".
6885         (mips16_gp_pseudo_reg): Likewise for local "scan".
6886         (mips16_build_call_stub): Likewise for return type and for local
6887         "insn".  Introduce a new local "pattern" so that "insn" can indeed
6888         be an insn.
6889         (mips_expand_call): Strengthen return type and local "insn" from
6890         rtx to rtx_insn *.
6891         (mips_block_move_loop): Strengthen local "label" from rtx to
6892         rtx_code_label *.
6893         (mips_expand_synci_loop): Likewise for locals "label",
6894         "end_label".
6895         (mips_set_frame_expr): Strengthen local "insn" from rtx to
6896         rtx_insn *.
6897         (mips16e_collect_argument_saves): Likewise for locals "insn",
6898         "next".
6899         (mips_find_gp_ref): Likewise for param of callback for "pred"
6900         param, and for local "insn".
6901         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6902         (mips_insn_has_flexible_gp_ref_p): Likewise.
6903         (mips_epilogue_emit_cfa_restores): Likewise for return type and
6904         local "insn".
6905         (mips_epilogue_set_cfa): Likewise for local "insn".
6906         (mips_expand_epilogue): Likewise.
6907         (mips_adjust_insn_length): Likewise for param "insn".
6908         (mips_output_conditional_branch): Likewise.
6909         (mips_output_order_conditional_branch): Likewise.
6910         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6911         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6912         "falu2_turn_enabled_insn".
6913         (mips_builtin_branch_and_move): Strengthen locals "true_label",
6914         "done_label" from rtx to rtx_code_label *.
6915         (struct mips16_constant): Likewise for field "label".
6916         (mips16_add_constant): Likewise for return type.
6917         (mips16_emit_constants_1): Strengthen return type and param "insn"
6918         from rtx to rtx_insn *.
6919         (mips16_emit_constants): Likewise for param "insn".
6920         (mips16_insn_length): Likewise.
6921         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6922         to rtx_code_label *.
6923         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6924         from rtx to rtx_insn *.
6925         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6926         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
6927         (r10k_simplify_address): Strengthen param "insn" and local
6928         "def_insn" from rtx to rtx_insn *.
6929         (r10k_safe_address_p): Strengthen param "insn" from rtx to
6930         rtx_insn *.
6931         (r10k_needs_protection_p_1): Update target type of cast of data
6932         from to rtx to rtx_insn *.
6933         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6934         rtx * to rtx_insn **.
6935         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6936         rtx_insn *.
6937         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6938         (mips_call_expr_from_insn): Likewise for param "insn".
6939         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6940         (mips_find_pic_call_symbol): Likewise for param "insn".
6941         (mips_annotate_pic_calls): Likewise for local "insn".
6942         (mips_sim_insn): Likewise for this variable.
6943         (struct mips_sim): Likewise for field "insn" within elements of
6944         last_set array.
6945         (mips_sim_wait_reg): Likewise for param "insn".
6946         (mips_sim_wait_regs): Likewise.
6947         (mips_sim_wait_units): Likewise.
6948         (mips_sim_wait_insn): Likewise.
6949         (mips_sim_issue_insn): Likewise.
6950         (mips_sim_finish_insn): Likewise.
6951         (mips_seq_time): Likewise for param "seq" and local "insn".
6952         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6953         locals "first", "second".
6954         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6955         "last", "last2", "next".
6956         (mips_avoid_hazard): Likewise for params "after", "insn".
6957         (mips_reorg_process_insns): Likewise for locals "insn",
6958         "last_insn", "subinsn", "next_insn".
6959         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6960         (mips16_split_long_branches): Likewise for locals "insn" "jump",
6961         "jump_sequence".
6962         (mips_output_mi_thunk): Likewise for local "insn".
6963         (mips_final_prescan_insn): Likewise for param "insn".
6964
6965 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6966
6967         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6968         Strengthen return type and local "insns" from rtx to rtx_insn *.
6969         (microblaze_legitimize_tls_address): Likewise for local "insns".
6970         (microblaze_block_move_loop): Strengthen local "label" from rtx
6971         to rtx_code_label *.
6972         (microblaze_expand_prologue): Strengthen two locals named "insn"
6973         from rtx to rtx_insn *.
6974         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6975         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6976         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
6977         to rtx_code_label *.
6978
6979 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6980
6981         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6982         param from rtx to rtx_insn *.
6983         (mep_reuse_lo): Likewise for third param.
6984         (mep_use_post_modify_p): Likewise for first param.
6985         (mep_core_address_length): Likewise.
6986         (mep_cop_address_length): Likewise.
6987         (mep_final_prescan_insn): Likewise.
6988         (mep_store_data_bypass_p): Likewise for both params.
6989         (mep_mul_hilo_bypass_p): Likewise.
6990         (mep_ipipe_ldc_p): Likewise for param.
6991
6992         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6993         (mep_rewrite_mult): Likewise.
6994         (mep_rewrite_mulsi3): Likewise.
6995         (mep_rewrite_maddsi3): Likewise.
6996         (mep_reuse_lo_p_1): Likewise.
6997         (mep_reuse_lo_p): Likewise.
6998         (mep_frame_expr): Likewise.
6999         (mep_make_parallel): Likewise for both params.
7000         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
7001         local "insn".
7002         (mep_use_post_modify_p): Likewise for param "insn".
7003         (mep_core_address_length): Likewise.
7004         (mep_cop_address_length): Likewise.
7005         (mep_reg_set_in_function): Likewise for local "insn".
7006         (mep_asm_without_operands_p): Likewise.
7007         (F): Likewise for return type and param "x".
7008         (add_constant): Likewise for local "insn".
7009         (maybe_dead_move): Likewise for return type and local "insn".
7010         (mep_expand_prologue): Likewise for local "insn".
7011         (mep_final_prescan_insn): Likewise for param "insn".
7012         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
7013         "next", "follow", "x".
7014         (mep_insert_repeat_label_last): Likewise for return type, param
7015         "last_insn", and locals "next", "prev".  Strengthen param "label"
7016         from rtx to rtx_code_label *.
7017         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
7018         rtx_insn *.
7019         (struct mep_doloop_end): Likewise for fields "insn" and
7020         "fallthrough".
7021         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
7022         Strengthen local "repeat_label" from rtx to rtx_code_label *.
7023         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
7024         rtx_insn *.
7025         (mep_invert_branch): Likewise for params "insn" and "after".
7026         (mep_reorg_erepeat): Likewise for param "insns" and locals
7027         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
7028         "l" from rtx to rtx_code_label *.
7029         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
7030         from rtx to rtx_insn *.
7031         (mep_reorg_addcombine): Likewise for param "insns" and locals
7032         "i", "n".
7033         (add_sp_insn_p): Likewise for param "insn".
7034         (mep_reorg_noframe): Likewise for param "insns" and locals
7035         "start_frame_insn", "end_frame_insn", "next".
7036         (mep_reorg): Likewise for local "insns".
7037         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
7038         cast.
7039         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
7040         (mep_mul_hilo_bypass_p): Likewise.
7041         (mep_ipipe_ldc_p): Likewise for param "insn".
7042         (mep_make_bundle): Likewise for return type, param "cop" and local
7043         "insn", splitting out the latter into a new local "seq" for when it
7044         is a SEQUENCE rather than an insn.
7045         (core_insn_p): Likewise for param "insn".
7046         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
7047         "last", "first", "note", "prev", "core_insn".
7048
7049 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7050
7051         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
7052         rtx to rtx_insn *.
7053         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
7054         (m68k_final_prescan_insn): Likewise for first param.
7055
7056         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
7057         (m68k_set_frame_related): Likewise for param "insn".
7058         (output_btst): Likewise for param "insn".
7059         (m68k_final_prescan_insn): Likewise.
7060         (m68k_move_to_reg): Likewise for local "insn".
7061         (m68k_call_tls_get_addr): Likewise for local "insns".
7062         (m68k_call_m68k_read_tp): Likewise.
7063         (strict_low_part_peephole_ok): Likewise for param "first_insn".
7064         (m68k_output_mi_thunk): Likewise for local "insn".
7065
7066 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7067
7068         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
7069         first param from rtx to rtx_insn *.
7070         (iq2000_adjust_insn_length): Likewise.
7071         (iq2000_output_conditional_branch): Likewise.
7072         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
7073         "insn" and local "nop_insn".
7074         (iq2000_annotate_frame_insn): Likewise for param "insn".
7075         (iq2000_expand_prologue): Likewise for both locals "insn".
7076         (iq2000_adjust_insn_length): Likewise for param "insn".
7077         (iq2000_output_conditional_branch): Likewise.
7078
7079 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7080
7081         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
7082         "insns" from rtx to rtx_insn *.
7083         (ia64_emit_cond_move): Likewise for locals "insn", "first".
7084         (struct spill_fill_data): Likewise for field "init_after" and for
7085         elements of array field "prev_insn".
7086         (spill_restore_mem): Likewise for locals "insn", "first".
7087         (do_spill): Likewise for local "insn".
7088         (do_restore): Likewise.
7089         (ia64_expand_prologue): Likewise.
7090         (ia64_expand_epilogue): Likewise.
7091         (emit_insn_group_barriers): Likewise for locals "insn",
7092         "last_label".
7093         (emit_all_insn_group_barriers): Likewise for locals "insn",
7094         "last".
7095         (dfa_stop_insn): Likewise for this global.
7096         (dfa_pre_cycle_insn): Likewise.
7097         (ia64_nop): Likewise.
7098         (final_emit_insn_group_barriers): Likewise for locals "insn",
7099         "last".
7100         (emit_predicate_relation_info): Likewise for locals "head", "n",
7101         "insn", "b", "a".
7102         (ia64_reorg): Likewise for local "insn".
7103         (ia64_output_mi_thunk): Likewise.
7104         (expand_vec_perm_interleave_2): Likewise for local "seq".
7105
7106 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7107
7108         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
7109         param 1 "insn" from rtx to rtx_insn *.
7110         (ix86_use_lea_for_mov): Likewise.
7111         (ix86_avoid_lea_for_addr): Likewise.
7112         (ix86_split_lea_for_addr): Likewise.
7113         (ix86_lea_for_add_ok): Likewise.
7114         (ix86_output_call_insn): Likewise.
7115
7116         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
7117         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
7118         (ix86_output_function_epilogue): Likewise for locals "insn",
7119         "deleted_debug_label".
7120         (legitimize_tls_address): Likewise for local "insn".
7121         (get_some_local_dynamic_name): Likewise.
7122         (increase_distance): Likewise for params "prev", "next".
7123         (distance_non_agu_define_in_bb): Likewise for params "insn",
7124         "start" and locals "prev", "next".
7125         (distance_non_agu_define): Likewise for param "insn".
7126         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
7127         locals "next", "prev".
7128         (distance_agu_use): Likewise for param "insn".
7129         (ix86_lea_outperforms): Likewise.
7130         (ix86_ok_to_clobber_flags): Likewise.
7131         (ix86_avoid_lea_for_add): Likewise.
7132         (ix86_use_lea_for_mov): Likewise.
7133         (ix86_avoid_lea_for_addr): Likewise.
7134         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
7135         (ix86_split_lea_for_addr): Likewise for param "insn".
7136         (ix86_lea_for_add_ok): Likewise for param "insn".
7137         (ix86_expand_carry_flag_compare): Likewise for local
7138         "compare_seq".
7139         (ix86_expand_int_movcc): Likewise.
7140         (ix86_output_call_insn): Likewise for param "insn".
7141         (ix86_output_call_insn): Likewise for local "i".
7142         (x86_output_mi_thunk): Introduce local "insn", using it in place
7143         of "tmp" when dealing with insns.
7144         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
7145         "start".
7146         (ix86_pad_returns): Likewise for locals "ret", "prev".
7147         (ix86_count_insn_bb): Likewise for local "insn".
7148         (ix86_pad_short_function): Likewise for locals "ret", "insn".
7149         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
7150         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
7151         (expand_vec_perm_interleave2): Likewise for local "seq".
7152         (expand_vec_perm_vperm2f128_vblend): Likewise.
7153         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
7154         call to for_each_rtx with for_each_rtx_in_insn.
7155
7156 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7157
7158         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
7159         "label" from rtx to rtx_code_label *.
7160         (ix86_expand_prologue): Likewise.
7161         (ix86_expand_split_stack_prologue): Likewise for locals "label",
7162         "varargs_label".
7163         (ix86_split_idivmod): Likewise for locals "end_label" and
7164         "qimode_label".
7165         (ix86_expand_branch): Likewise for local "label2".
7166         (ix86_expand_aligntest): Likewise for return type and local "label".
7167         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
7168         "top_label".
7169         (expand_movmem_epilogue): Likewise for the various locals named
7170         "label".
7171         (expand_setmem_epilogue): Likewise.
7172         (expand_small_movmem_or_setmem): Likewise for local "label".
7173         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7174         Strengthen param "done_label" from rtx * to rtx_code_label **.
7175         Strengthen locals "loop_label" and "label" from rtx to
7176         rtx_code_label *.
7177         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7178         Likewise for locals "loop_label", "label".
7179         (ix86_expand_set_or_movmem): Likewise for locals "label",
7180         "jump_around_label", "hot_label".
7181         (ix86_expand_strlensi_unroll_1): Likewise for locals
7182         "align_2_label", align_3_label", "align_4_label", "end_0_label",
7183         "end_2_label".
7184         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
7185         (void ix86_emit_i387_log1p): Likewise for locals "label1",
7186         "label2", "jump_label".
7187         (ix86_expand_sse_compare_and_jump): Likewise for return type and
7188         local "label".
7189         (ix86_expand_lfloorceil): Likewise for local "label".
7190         (ix86_expand_rint): Likewise.
7191         (ix86_expand_floorceildf_32): Likewise.
7192         (ix86_expand_floorceil): Likewise.
7193         (ix86_expand_rounddf_32): Likewise.
7194         (ix86_expand_trunc): Likewise.
7195         (ix86_expand_truncdf_32): Likewise.
7196         (ix86_expand_round): Likewise.
7197
7198 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7199
7200         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
7201         first param from rtx to rtx_insn *.
7202         (h8300_insn_length_from_table): Likewise.
7203         * config/h8300/h8300.c (F): Likewise for return type and param
7204         "x".
7205         (Fpa): Add a checked cast to rtx_insn *.
7206         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
7207         rtx_insn *.
7208         (final_prescan_insn): Likewise for param "insn".
7209         (h8300_binary_length): Likewise.
7210         (h8300_insn_length_from_table): Likewise.
7211
7212 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7213
7214         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
7215         Strengthen first param "insn" from rtx to rtx_insn *.
7216
7217         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
7218         Likewise.
7219         (frame_insn): Likewise for return type.  Introduce local "insn"
7220         for use in place of local "x" for use as an rtx_insn *.
7221         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
7222         (epiphany_expand_prologue): Likewise for local "insn".
7223         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
7224         * config/epiphany/resolve-sw-modes.c
7225         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
7226         "seq".
7227
7228 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7229
7230         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
7231         param from rtx to rtx_insn *.
7232         (c6x_final_prescan_insn): Likewise for first param.
7233
7234         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
7235         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
7236         (c6x_expand_compare): Strengthen local "insns" from rtx to
7237         rtx_insn *.
7238         (c6x_get_unit_specifier): Likewise for param "insn".
7239         (c6x_print_unit_specifier_field): Likewise.
7240         (c6x_final_prescan_insn): Likewise.
7241         (emit_add_sp_const): Likewise for local "insn".
7242         (c6x_expand_prologue): Likewise.
7243
7244 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7245
7246         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
7247         param 1 from rtx to rtx_insn *.
7248         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
7249         the various locals named "insn".
7250         (expand_epilogue_reg_restore): Likewise.
7251         (frame_related_constant_load): Likewise.
7252         (add_to_reg): Likewise.
7253         (emit_link_insn): Likewise.
7254         (do_link): Likewise.
7255         (expand_interrupt_handler_prologue): Likewise.
7256         (branch_dest): Likewise for param "branch".
7257         (asm_conditional_branch): Likewise for param "insn".
7258         (gen_one_bundle): Likewise for elements of param "slot" and local
7259         "t".
7260         (bfin_gen_bundles): Likewise for locals "insn", "next" and
7261         elements of local "slot".
7262         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7263         "queue", "next_queue", "prev".
7264         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
7265         (add_sched_insns_for_speculation): Likewise for local "insn".
7266
7267 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7268
7269         * config/avr/avr-protos.h (output_movqi): Strengthen first param
7270         from rtx to rtx_insn *.
7271         (output_movhi): Likewise.
7272         (output_movsisf): Likewise.
7273         (avr_out_tstsi): Likewise.
7274         (avr_out_tsthi): Likewise.
7275         (avr_out_tstpsi): Likewise.
7276         (avr_out_compare): Likewise.
7277         (avr_out_compare64): Likewise.
7278         (avr_out_movpsi): Likewise.
7279         (ashlqi3_out): Likewise.
7280         (ashlhi3_out): Likewise.
7281         (ashlsi3_out): Likewise.
7282         (ashrqi3_out): Likewise.
7283         (ashrhi3_out): Likewise.
7284         (ashrsi3_out): Likewise.
7285         (lshrqi3_out): Likewise.
7286         (lshrhi3_out): Likewise.
7287         (lshrsi3_out): Likewise.
7288         (avr_out_ashlpsi3): Likewise.
7289         (avr_out_ashrpsi3): Likewise.
7290         (avr_out_lshrpsi3): Likewise.
7291         (avr_out_fract): Likewise.
7292         (avr_out_sbxx_branch): Likewise.
7293         (avr_out_round): Likewise.
7294         (avr_out_xload): Likewise.
7295         (avr_out_movmem): Likewise.
7296         (adjust_insn_length): Likewise.
7297         (avr_out_lpm): Likewise.
7298         (reg_unused_after): Likewise.
7299         (_reg_unused_after): Likewise.
7300         (avr_jump_mode): Likewise for second param.
7301         (jump_over_one_insn): Likewise for first param.
7302         (avr_final_prescan_insn): Likewise.
7303         (out_shift_with_cnt): Likewise for second param.
7304
7305         * config/avr/avr.c (get_sequence_length): Likewise for param
7306         "insns" and local "insn".
7307         (emit_push_byte): Likewise for local "insn".
7308         (emit_push_sfr): Likewise.
7309         (avr_prologue_setup_frame): Likewise for locals "insn",
7310         "fp_plus_insns", "sp_plus_insns".
7311         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
7312         "sp_plus_insns".
7313         (avr_jump_mode): Likewise for param "insn".
7314         (avr_final_prescan_insn): Likewise.
7315         (avr_find_unused_d_reg): Likewise.
7316         (avr_out_lpm_no_lpmx): Likewise.
7317         (avr_out_lpm): Likewise.
7318         (avr_out_xload): Likewise.
7319         (output_movqi): Likewise.
7320         (output_movhi): Likewise.
7321         (out_movqi_r_mr): Likewise.
7322         (out_movhi_r_mr): Likewise.
7323         (out_movsi_r_mr): Likewise.
7324         (out_movsi_mr_r): Likewise.
7325         (output_movsisf): Likewise.
7326         (avr_out_load_psi): Likewise.
7327         (avr_out_store_psi): Likewise.
7328         (avr_out_movpsi): Likewise.
7329         (out_movqi_mr_r): Likewise.
7330         (avr_out_movhi_mr_r_xmega): Likewise.
7331         (out_movhi_mr_r): Likewise.
7332         (compare_condition): Likewise for param "insn" and local "next".
7333         (compare_sign_p): Likewise for param "insn".
7334         (compare_diff_p): Likewise.
7335         (compare_eq_p): Likewise.
7336         (avr_out_compare): Likewise.
7337         (avr_out_compare64): Likewise.
7338         (avr_out_tsthi): Likewise.
7339         (avr_out_tstpsi): Likewise.
7340         (avr_out_tstsi): Likewise.
7341         (out_shift_with_cnt): Likewise.
7342         (ashlqi3_out): Likewise.
7343         (ashlhi3_out): Likewise.
7344         (avr_out_ashlpsi3): Likewise.
7345         (ashlsi3_out): Likewise.
7346         (ashrqi3_out): Likewise.
7347         (ashrhi3_out): Likewise.
7348         (avr_out_ashrpsi3): Likewise.
7349         (ashrsi3_out): Likewise.
7350         (lshrqi3_out): Likewise.
7351         (lshrhi3_out): Likewise.
7352         (avr_out_lshrpsi3): Likewise.
7353         (lshrsi3_out): Likewise.
7354         (avr_out_fract): Likewise.
7355         (avr_out_round): Likewise.
7356         (avr_adjust_insn_length): Likewise.
7357         (reg_unused_after): Likewise.
7358         (_reg_unused_after): Likewise.
7359         (avr_compare_pattern): Likewise.
7360         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
7361         and locals "branch1", "branch2", "insn2", "jump".
7362         (avr_reorg): Likewise for local "insn".
7363         (avr_2word_insn_p): Likewise for param "insn".
7364         (jump_over_one_insn_p): Likewise.
7365         (avr_out_sbxx_branch): Likewise.
7366         (avr_out_movmem): Likewise.
7367
7368 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7369
7370         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
7371         param from rtx to rtx_insn *.
7372         (thumb1_final_prescan_insn): Likewise.
7373         (thumb2_final_prescan_insn): Likewise.
7374
7375         * config/arm/arm.c (emit_set_insn): Strengthen return type from
7376         rtx to rtx_insn *.
7377         (struct minipool_node): Likewise for field "insn".
7378         (dump_minipool): Likewise for param "scan".
7379         (create_fix_barrier): Likewise for local "from".  Strengthen local
7380         "label" from rtx to rtx_code_label *.
7381         (push_minipool_barrier): Strengthen param "insn" from rtx to
7382         rtx_insn *.
7383         (push_minipool_fix): Likewise.
7384         (note_invalid_constants): Likewise.
7385         (thumb2_reorg): Likewise for local "insn".
7386         (arm_reorg): Likewise.
7387         (thumb2_final_prescan_insn): Likewise for param
7388         "insn" and local "first_insn".
7389         (arm_final_prescan_insn): Likewise for param "insn" and locals
7390         "start_insn", "this_insn".
7391         (arm_debugger_arg_offset): Likewise for param "insn".
7392         (thumb1_emit_multi_reg_push): Likewise for return type and local
7393         "insn".
7394         (thumb1_final_prescan_insn): Likewise for param "insn".
7395         (thumb_far_jump_used_p): Likewise for local "insn".
7396         (thumb1_expand_prologue): Likewise.
7397         (arm_expand_epilogue_apcs_frame): Likewise.
7398         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
7399         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
7400         from rtx to rtx_code_label *.
7401         (arm_split_atomic_op): Likewise for local "label".
7402         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
7403
7404 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7405
7406         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
7407         first param from rtx to rtx_insn *.
7408         (arc_verify_short): Likewise.
7409         (arc_short_long): Likewise.
7410         (arc_need_delay): Likewise.
7411
7412         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
7413         "target_insn".
7414         (arc_ccfsm_advance): Likewise for param "insn" and locals
7415         "start_insn", "this_insn".
7416         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
7417         (arc_ccfsm_post_advance): Likewise for param "insn".
7418         (arc_next_active_insn): Likewise for return type and param "insn".
7419         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
7420         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
7421         (output_short_suffix): Likewise for local "insn".
7422         (arc_final_prescan_insn): Likewise for param "insn".  Remove
7423         now-redundant checked cast.
7424         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
7425         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
7426         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
7427         for use where lc_set became an insn.
7428         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
7429         rtx to rtx_insn *.
7430         (arc_get_insn_variants): Likewise for local "prev".
7431         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
7432         "next".
7433         (arc_predicate_delay_insns): Likewise for local "insn".
7434         (arc_pad_return): Likewise for local "prev".  For now, add a
7435         checked cast when extracting the insn from "final_sequence".
7436         (arc_short_long): Likewise for param "insn".
7437         (arc_need_delay): Likewise for param "insn" and local "next".
7438         (arc_label_align): Likewise for locals "prev", "next".
7439
7440 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7441
7442         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
7443         "insn" from rtx to rtx_insn *.
7444         (alpha_gp_save_rtx): Likewise for local "seq".
7445         (alpha_instantiate_decls): Likewise for local "top".
7446         (get_some_local_dynamic_name): Likewise for local "insn".
7447         (alpha_does_function_need_gp): Likewise.
7448         (set_frame_related_p): Likewise for return type and for locals
7449         "seq" and "insn".
7450         (emit_frame_store_1): Likewise for local "insn".
7451         (alpha_expand_prologue): Likewise for locals "insn", "seq".
7452         (alpha_end_function): Likewise for local "insn".
7453         (alpha_output_mi_thunk_osf): Likewise.
7454         (alphaev4_insn_pipe): Likewise for param "insn".
7455         (alphaev5_insn_pipe): Likewise.
7456         (alphaev4_next_group): Likewise for return type and param 1
7457         "insn".
7458         (alphaev5_next_group): Likewise.
7459         (alpha_align_insns_1): Likewise for return type and param 1 of
7460         callback param "next_group", and for locals "i", "next", "prev",
7461         "where", "where2", "insn".
7462
7463 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
7464
7465         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
7466         rather than modifying the stmt.
7467
7468 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7469
7470         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
7471         cgraph_state conversion.
7472
7473 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7474
7475         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7476         Strengthen local "insns" from rtx to rtx_insn *.
7477         (aarch64_set_frame_expr): Likewise for local "insn".
7478         (aarch64_save_or_restore_fprs): Likewise.
7479         (aarch64_save_or_restore_callee_save_registers): Likewise.
7480         (aarch64_expand_prologue): Likewise.
7481         (aarch64_expand_epilogue): Likewise.
7482         (aarch64_output_mi_thunk): Likewise.
7483         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
7484         "label2" from rtx to rtx_code_label *.
7485         (aarch64_split_atomic_op): Likewise for local "label".
7486
7487 2014-08-25  Martin Liska  <mliska@suse.cz>
7488
7489         * cgraph.h (symtab_node):
7490         (bool needed_p (void)): created from decide_is_symbol_needed
7491         (bool referred_to_p (void)): created from referred_to_p
7492         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
7493         * cgraph.h (cgraph_node):
7494         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
7495         (void expand (void)): created from expand_function
7496         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
7497         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
7498         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
7499         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
7500         * cgraph.h (varpool_node):
7501         (static void add (tree decl): created from varpool_add_new_variable
7502         * cgraph.h (cgraph_edge):
7503         void remove (void);
7504         (void remove_caller (void)): created from cgraph_edge_remove_caller
7505         (void remove_callee (void)): created from cgraph_edge_remove_callee
7506         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
7507           created from cgraph_set_call_stmt
7508         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
7509         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
7510         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
7511           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
7512         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
7513           created from cgraph_speculative_call_info
7514         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
7515           int freq_scale, bool update_original)): created from cgraph_clone_edge
7516         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
7517         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
7518         (bool recursive_p (void)): created from cgraph_edge_recursive_p
7519         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
7520         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
7521         (static void rebuild_references (void)): created from cgraph_rebuild_references
7522         * cgraph.h (symbol_table):
7523         (create_reference): renamed from add_reference
7524         (maybe_create_reference): renamed from maybe_add_reference
7525         (void register_symbol (symtab_node *node)): new function
7526         (void clear_asm_symbols (void)): new function
7527         (void unregister (symtab_node *node)): new function
7528         (void release_symbol (cgraph_node *node, int uid)): new function
7529         (cgraph_node * allocate_cgraph_symbol (void)): new function
7530         (void initialize (void)): created from cgraph_init
7531         (symtab_node *first_symbol (void)):new function
7532         (asm_node *first_asm_symbol (void)):new function
7533         (symtab_node *first_defined_symbol (void)):new function
7534         (varpool_node *first_variable (void)):new function
7535         (varpool_node *next_variable (varpool_node *node)):new function
7536         (varpool_node *first_static_initializer (void)):new function
7537         (varpool_node *next_static_initializer (varpool_node *node)):new function
7538         (varpool_node *first_defined_variable (void)):new function
7539         (varpool_node *next_defined_variable (varpool_node *node)):new function
7540         (cgraph_node *first_defined_function (void)):new function
7541         (cgraph_node *next_defined_function (cgraph_node *node)):new function
7542         (cgraph_node *first_function (void)):new function
7543         (cgraph_node *next_function (cgraph_node *node)):new function
7544         (cgraph_node *first_function_with_gimple_body (void)):new function
7545         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
7546         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
7547           created from symtab_remove_unreachable_nodes
7548         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
7549         (void process_new_functions (void)): created from cgraph_process_new_functions
7550         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
7551         (bool output_variables (void)): created from varpool_node::output_variables
7552         (void output_asm_statements (void)): created from output_asm_statements
7553         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
7554         (void compile (void)): created from compile
7555         (void output_weakrefs (void)): created from output_weakrefs
7556         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
7557         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
7558           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
7559         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
7560         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
7561           created from cgraph_next_function_with_gimple_body
7562         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
7563           created from cgraph_remove_edge_removal_hook
7564         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
7565           created from cgraph_add_node_removal_hook
7566         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
7567           created from cgraph_remove_node_removal_hook
7568         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
7569           created from varpool_add_node_removal_hook
7570         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
7571           created from varpool_remove_node_removal_hook
7572         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
7573           created from cgraph_add_function_insertion_hook
7574         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
7575           created from cgraph_remove_function_insertion_hook
7576         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
7577           created from varpool_add_variable_insertion_hook
7578         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
7579           created from varpool_remove_variable_insertion_hook
7580         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
7581           created from cgraph_add_edge_duplication_hook
7582         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7583           created from cgraph_remove_edge_duplication_hook
7584         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7585           created from cgraph_add_node_duplication_hook
7586         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7587           created from cgraph_remove_node_duplication_hook
7588         (void call_edge_removal_hooks (cgraph_edge *e)):
7589           created from cgraph_call_edge_removal_hooks
7590         (void call_cgraph_insertion_hooks (cgraph_node *node)):
7591           created from call_function_insertion_hooks 
7592         (void call_cgraph_removal_hooks (cgraph_node *node)):
7593           created from cgraph_call_node_removal_hooks 
7594         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7595           created from cgraph_node::call_duplication_hooks 
7596         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7597           created from cgraph_call_edge_duplication_hooks
7598         (void call_varpool_removal_hooks (varpool_node *node)):
7599           created from varpool_call_node_removal_hooks
7600         (void call_varpool_insertion_hooks (varpool_node *node)):
7601           created from varpool_call_variable_insertion_hooks
7602         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7603           created from insert_to_assembler_name_hash
7604         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7605           created from unlink_from_assembler_name_hash
7606         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7607           created from symtab_prevail_in_asm_name_hash
7608         (void symtab_initialize_asm_name_hash (void)):
7609           created from symtab_initialize_asm_name_hash
7610         (void change_decl_assembler_name (tree decl, tree name)):
7611           created from change_decl_assembler_name
7612         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7613         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7614           created from decl_assembler_name_hash
7615         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7616           created from decl_assembler_name_equal
7617         (static hashval_t hash_node_by_assembler_name (const void *p)):
7618           created from hash_node_by_assembler_name
7619         (static int eq_assembler_name (const void *p1, const void *p2)):
7620           created from eq_assembler_name
7621
7622 2014-08-25  Marek Polacek  <polacek@redhat.com>
7623
7624         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7625
7626 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
7627
7628         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7629         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7630         SWI1248_AVX512BW mode iterator.
7631
7632 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
7633
7634         PR target/62111
7635         * config/sh/predicates.md (general_extend_operand): Disable
7636         TRUNCATE before reload completes.
7637
7638 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
7639
7640         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7641
7642 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
7643
7644         PR target/61996
7645         * config/sh/sh.opt (musermode): Allow negative form.
7646         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7647         targets that don't support it.
7648         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7649         Document -mno-usermode option.
7650
7651 2014-08-24  Kito Cheng  <kito@0xlab.org>
7652
7653         * system.h (CALLER_SAVE_PROFITABLE): Poison.
7654         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7655         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7656         * doc/tm.texi: Regenerate.
7657
7658 2014-08-24  Kito Cheng  <kito@0xlab.org>
7659
7660         * ira.c: Fix typo in comment.
7661
7662 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
7663
7664         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7665         Deprecate c++1y. Change language to reflect greater confidence in C++14.
7666
7667 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
7668
7669         PR target/62038
7670         * config/pa/pa.c (pa_output_function_epilogue): Don't set
7671         last_address when the current function is a thunk.
7672         (pa_asm_output_mi_thunk): When we don't have named sections or they
7673         are not being used, check that thunk can reach the stub table with a
7674         short branch.
7675
7676 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7677
7678         * web.c (union_match_dups): Strengthen param "insn" from rtx to
7679         rtx_insn *.
7680         (pass_web::execute): Likewise for local "insn".
7681
7682 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7683
7684         * var-tracking.c (struct micro_operation_def): Strengthen field
7685         "insn" from rtx to rtx_insn *.
7686         (struct emit_note_data_def): Likewise.
7687         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7688         (vt_stack_adjustments): Likewise for local "insn".
7689         (adjust_insn): Likewise for param "insn".
7690         (val_store): Likewise.
7691         (val_resolve): Likewise.
7692         (struct count_use_info): Likewise for field "insn".
7693         (log_op_type): Likewise for param "insn".
7694         (reverse_op): Likewise.
7695         (prepare_call_arguments): Likewise.
7696         (add_with_sets):  The initial param takes an insn, but we can't
7697         yet strengthen it from rtx to rtx_insn * since it's used as a
7698         cselib_record_sets_hook callback.  For now rename initial param
7699         from "insn" to "uncast_insn", and introduce a local "insn" of
7700         the stronger rtx_insn * type, with a checked cast.
7701         (compute_bb_dataflow): Strengthen local "insn" from rtx to
7702         rtx_insn *.
7703         (emit_note_insn_var_location): Likewise.
7704         (emit_notes_for_changes): Likewise.
7705         (emit_notes_for_differences): Likewise.
7706         (next_non_note_insn_var_location): Likewise for return type and
7707         for param "insn".
7708         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7709         (vt_initialize): Likewise for local "insn".
7710         (delete_debug_insns): Likewise for locals "insn" and "next".
7711
7712 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7713
7714         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7715         rtx_insn *.
7716         (mark_constant_pool): Likewise for local "insn".
7717
7718 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7719
7720         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7721         rtx to rtx_insn *.
7722         (dead_debug_promote_uses): Likewise.
7723         (dead_debug_insert_temp): Likewise.
7724
7725 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7726
7727         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7728         from const_rtx to const rtx_insn *.
7729         (store_killed_after): Likewise.  Strengthen locals "last", "act"
7730         from rtx to rtx_insn *.
7731         (store_killed_before): Strengthen param "insn" from const_rtx to
7732         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
7733         (find_moveable_store): Strengthen param "insn" from rtx to
7734         rtx_insn *.
7735         (compute_store_table): Likewise for local "insn".
7736         (insert_insn_start_basic_block): Likewise for param "insn" and
7737         locals "prev", "before", "insn".
7738         (insert_store): For now, add a checked cast to rtx_insn * on the
7739         result of gen_move_insn.
7740         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7741         to rtx_insn *.
7742         (replace_store_insn): Likewise.  For now, add a checked cast to
7743         rtx_insn * on the result of gen_move_insn.
7744
7745 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7746
7747         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7748         rtx_insn *.
7749         (expand_sjlj_dispatch_table): Likewise.
7750
7751 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7752
7753         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7754         "insn" from rtx to rtx_insn *.
7755
7756 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7757
7758         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7759         "insn" from rtx to rtx_insn *.
7760         (dup_block_and_redirect): Likewise for param 3 "before".
7761
7762         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7763         from rtx to rtx_insn *.
7764         (move_insn_for_shrink_wrap): Likewise.
7765         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7766         (dup_block_and_redirect): Likewise for param "before" and local
7767         "insn".
7768         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7769         "end".
7770         (convert_to_simple_return): Likewise for local "start".
7771
7772         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7773         Strengthen local "insn" from rtx to rtx_insn *, for use when
7774         invoking requires_stack_frame_p.
7775
7776 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7777
7778         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7779         rtx_insn *.
7780         (speculate_expr): Likewise for locals "orig_insn_rtx",
7781         "spec_insn_rtx".
7782         (eq_transformed_insns): Likewise for locals "i1", "i2".
7783         (check_for_new_jump): Likewise for return type and local "end".
7784         (find_new_jump): Likewise for return type and local "jump".
7785         (sel_split_edge): Likewise for local "jump".
7786         (sel_create_recovery_block): Likewise.
7787         (sel_redirect_edge_and_branch_force): Likewise.
7788         (sel_redirect_edge_and_branch): Likewise.
7789
7790 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7791
7792         * sel-sched.c (substitute_reg_in_expr): Strengthen local
7793         "new_insn" from rtx to rtx_insn *.
7794         (create_insn_rtx_with_rhs): Likewise for return type and for local
7795         "insn_rtx".
7796         (create_insn_rtx_with_lhs): Likewise.
7797         (create_speculation_check): Likewise for local "insn_rtx".
7798         (implicit_clobber_conflict_p): Likewise for local "insn".
7799         (get_expr_cost): Likewise.
7800         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7801         (move_cond_jump): Likewise for locals "next", "prev", "link",
7802         "head", "from", "to".
7803
7804 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7805
7806         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7807         "next" from rtx to rtx_insn *.
7808         (find_conditional_protection): Likewise for local "next".
7809         (is_conditionally_protected): Likewise for local "insn1".
7810         (is_pfree): Likewise for locals "insn1", "insn2".
7811
7812 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7813
7814         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7815         from rtx to rtx_insn *.
7816
7817         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7818         locals "insn1", "insn2" from rtx to rtx_insn *.
7819         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7820         locals "insn", "prev", "last_jump", "next_tail".
7821         (schedule_ebb): Likewise for params "head", "tail".
7822         (schedule_ebbs): Likewise for locals "tail", "head".
7823
7824         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7825         to rtx_insn on "last_insn" in one of the invocations of
7826         schedule_ebb.
7827
7828 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7829
7830         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7831         "elem", "insn" from rtx to rtx_insn *.
7832         (change_spec_dep_to_hard): Likewise.
7833         (get_back_and_forw_lists): Likewise for local "con".
7834         (sd_add_dep): Likewise for locals "elem", "insn".
7835         (sd_resolve_dep): Likewise for locals "pro", "con".
7836         (sd_unresolve_dep): Likewise.
7837         (sd_delete_dep): Likewise.
7838         (chain_to_prev_insn): Likewise for local "pro".
7839         (find_inc): Likewise for locals "pro", "con".
7840
7841 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7842
7843         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7844         to rtx_insn *.
7845         (reg_set_between_p): Strengthen local "insn" from const_rtx to
7846         const rtx_insn *.
7847         (modified_between_p): Strengthen local "insn" from rtx to
7848         rtx_insn *.
7849         (remove_reg_equal_equiv_notes_for_regno): Likewise.
7850         (keep_with_call_p): Strengthen local "i2" from const_rtx to
7851         const rtx_insn *.
7852
7853 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7854
7855         * resource.c (next_insn_no_annul): Strengthen local "next" from
7856         rtx to rtx_insn *.
7857         (mark_referenced_resources): Likewise for local "insn".
7858
7859 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7860
7861         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7862         to rtx_insn *.
7863         (find_reloads): Likewise for param 1.
7864         (subst_reloads): Likewise for sole param.
7865         (find_equiv_reg): Likwise for param 2.
7866         (regno_clobbered_p): Likwise for param 2.
7867         (reload): Likewise for param 1.
7868
7869         * caller-save.c (save_call_clobbered_regs): Strengthen local
7870         "insn" from rtx to rtx_insn *.
7871         (insert_one_insn): Likewise for local "insn".
7872
7873         * reload.c (this_insn): Likewise for this global.
7874         (find_reloads): Likewise for param "insn".
7875         (find_reloads_toplev): Likewise.
7876         (find_reloads_address): Likewise.
7877         (subst_reg_equivs): Likewise.
7878         (update_auto_inc_notes): Likewise.
7879         (find_reloads_address_1): Likewise.
7880         (find_reloads_subreg_address): Likewise.
7881         (subst_reloads): Likewise.
7882         (find_equiv_reg): Likewise, also for local "p".
7883         (regno_clobbered_p): Likewise for param "insn".
7884
7885         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7886         array.
7887         (spill_reg_store): Likewise for the elements of this array.
7888         (remove_init_insns): Likewise for local "equiv_insn".
7889         (will_delete_init_insn_p): Likewise for param "insn".
7890         (reload): Likewise for param ""first" and local "insn".
7891         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7892         rtx_insn *.
7893         (calculate_elim_costs_all_insns): Likewise.
7894         (delete_caller_save_insns): Likewise.
7895         (spill_failure): Likewise for param "insn".
7896         (delete_dead_insn): Likewise.
7897         (set_label_offsets): Likewise.
7898         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7899         "prev_insn".
7900         (elimination_costs_in_insn): Likewise for param "insn".
7901         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7902         when referring to an insn.
7903         (set_initial_label_offsets): Likewise.
7904         (set_offsets_for_label): Strengthen param "insn" from rtx to
7905         rtx_insn *.
7906         (init_eliminable_invariants): Likewise for param "first" and local
7907         "insn".
7908         (fixup_eh_region_note): Likewise for param "insn".
7909         (reload_as_needed): Likewise for locals "prev", "insn",
7910         "old_next", "old_prev", "next".
7911         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7912         "last".
7913         (reload_inheritance_insn): Strengthen elements of this array from
7914         rtx to rtx_insn *.
7915         (failed_reload): Likewise for param "insn".
7916         (choose_reload_regs): Likewise for local "insn".  Replace use of
7917         NULL_RTX with NULL when referring to an insn.
7918         (input_reload_insns): Strengthen elements of this array from rtx
7919         to rtx_insn *.
7920         (other_input_address_reload_insns): Likewise for this global.
7921         (other_input_reload_insns): Likewise for this global.
7922         (input_address_reload_insns): Likwise for the elements of this
7923         array.
7924         (inpaddr_address_reload_insns): Likwise for the elements of this
7925         array.
7926         (output_reload_insns): Likewise for the elements of this array.
7927         (output_address_reload_insns): Likewise for the elements of this
7928         array.
7929         (outaddr_address_reload_insns): Likewise for the elements of this
7930         array.
7931         (operand_reload_insns): Likewise for this global.
7932         (other_operand_reload_insns): Likewise for this global.
7933         (other_output_reload_insns): Likewise for the elements of this
7934         array.
7935         (new_spill_reg_store): Likewise for the elements of this
7936         array.
7937         (emit_input_reload_insns): Likewise for locals "insn", "temp".
7938         Strengthen local "where" from rtx * to rtx_insn **.
7939         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7940         from rtx to rtx_insn *.
7941         (do_input_reload): Likewise for local "insn".
7942         (do_output_reload): Likewise for local "insn".
7943         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7944         (emit_insn_if_valid_for_reload): Likewise for return type and local
7945         "last".  Add checked cast to rtx_insn when returning "insn" since
7946         this has been through emit_insn.
7947         (gen_reload): Strengthen return type and locals "last", "insn", "set"
7948         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
7949         returning "insn" since it's been through
7950         emit_insn_if_valid_for_reload at this point.
7951         (delete_output_reload): Strengthen param "insn" and locals
7952         "output_reload_insn", "i2" from rtx to rtx_insn *.
7953         (delete_address_reloads): Likewise for params "dead_insn",
7954         "current_insn" and locals "prev", "next".
7955         (delete_address_reloads_1): Likewise for params "dead_insn",
7956         "current_insn" and locals "prev", "i2".
7957         (inc_for_reload): Likewise for locals "last", "add_insn".
7958         (add_auto_inc_notes): Strengthen param "insn" from rtx to
7959         rtx_insn *.
7960
7961         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7962         param of this duplicate of the prototype from reload.h
7963
7964 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7965
7966         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7967         rtx to rtx_insn *.
7968         (regstat_bb_compute_calls_crossed): Likewise.
7969
7970 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7971
7972         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7973         to rtx_insn *.
7974         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7975         with an insn.
7976         (regrename_analyze): Strengthen local "insn" from rtx to
7977         rtx_insn *.
7978         (scan_rtx_reg): Likewise for param "insn".
7979         (scan_rtx_address): Likewise.
7980         (scan_rtx): Likewise.
7981         (restore_operands): Likewise.
7982         (record_out_operands): Likewise.
7983         (build_def_use): Likewise for local "insn".  Replace use of
7984         NULL_RTX with NULL when dealing with an insn.
7985
7986 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7987
7988         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7989         * reginfo.c (reg_scan): Likewise, also for local "insn".
7990         (reg_scan_mark_refs): Likewise for param "insn".
7991         (init_subregs_of_mode): Likewise for local "insn".
7992
7993 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7994
7995         * regcprop.c (struct queued_debug_insn_change): Strengthen field
7996         "insn" from rtx to rtx_insn *.
7997         (replace_oldest_value_reg): Likewise for param "insn".
7998         (replace_oldest_value_addr): Likewise.
7999         (replace_oldest_value_mem): Likewise.
8000         (apply_debug_insn_changes): Likewise for local "last_insn".
8001         (copyprop_hardreg_forward_1): Likewise for local "insn".
8002
8003 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8004
8005         * reg-stack.c (next_flags_user): Strengthen return type and param
8006         "insn" from rtx to rtx_insn *.
8007         (straighten_stack): Likewise for param "insn".
8008         (check_asm_stack_operands): Likewise.
8009         (remove_regno_note): Likewise.
8010         (emit_pop_insn): Likewise for return type, param "insn", local
8011         "pop_insn".
8012         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
8013         "limit" from rtx to rtx_insn *.
8014         (swap_to_top): Likewise for param "insn".
8015         (move_for_stack_reg): Likewise.
8016         (move_nan_for_stack_reg): Likewise.
8017         (swap_rtx_condition): Likewise.
8018         (compare_for_stack_reg): Likewise.
8019         (subst_all_stack_regs_in_debug_insn): Likewise.
8020         (subst_stack_regs_pat): Likewise, and local "insn2".
8021         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
8022         rtx_insn *.
8023         (subst_stack_regs): Likewise.
8024         (change_stack): Likewise.
8025         (convert_regs_1): Likewise for locals "insn", "next".
8026
8027 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8028
8029         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
8030         rtx_insn *.
8031         (combine_set_extension): Likewise for param "curr_insn".
8032         (transform_ifelse): Likewise for param "def_insn".
8033         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
8034         from vec<rtx> * to vec<rtx_insn *> *.
8035         (is_cond_copy_insn): Likewise for param "insn".
8036         (struct ext_state): Strengthen the four vec fields from vec<rtx>
8037         to vec<rtx_insn *>.
8038         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
8039         local "def_insn" from rtx to rtx_insn *.
8040         (get_sub_rtx): Likewise for param "def_insn".
8041         (merge_def_and_ext): Likewise.
8042         (combine_reaching_defs): Likewise.
8043         (add_removable_extension): Likewise for param "insn".
8044         (find_removable_extensions): Likewise for local "insn".
8045         (find_and_remove_re): Likewise for locals "curr_insn" and
8046         "def_insn".  Strengthen locals "reinsn_del_list" and
8047         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
8048
8049 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8050
8051         * recog.c (split_insn): Strengthen param "insn" and locals
8052         "first", "last" from rtx to rtx_insn *.
8053         (split_all_insns): Likewise for locals "insn", "next".
8054         (split_all_insns_noflow): Likewise.
8055
8056 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8057
8058         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
8059         const rtx_insn *.
8060         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
8061         (debug_rtx_find): Likewise for param 1 "x".
8062
8063         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
8064         const_rtx to const rtx_insn *.  Likewise for local "insn".
8065         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
8066         (debug_rtx_find): Likewise for param 1 "x".
8067         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
8068         from const_rtx to const rtx_insn * within the appropriate cases of
8069         the switch statement.
8070
8071         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
8072         Strengthen local "insns" from rtx to rtx_insn * since this is
8073         passed to a call to debug_rtx_list.
8074
8075 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8076
8077         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
8078         to rtx_insn *.
8079
8080         * function.c (stack_protect_epilogue): Add checked cast to
8081         rtx_insn for now when invoking predict_insn_def.
8082
8083         * predict.c (predict_insn): Strengthen param "insn" from rtx to
8084         rtx_insn *.
8085         (predict_insn_def): Likewise.
8086         (rtl_predict_edge): Likewise for local "last_insn".
8087         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
8088         const rtx_insn *.
8089         (combine_predictions_for_insn): Strengthen param "insn" from rtx
8090         to rtx_insn *.
8091         (bb_estimate_probability_locally): Likewise for local "last_insn".
8092         (expensive_function_p): Likewise for local "insn".
8093
8094         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
8095         local "jmp", since this is used when invoking predict_insn_def.
8096
8097 2014-08-22  Marek Polacek  <polacek@redhat.com>
8098
8099         PR c++/62199
8100         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
8101
8102 2014-08-22  Marek Polacek  <polacek@redhat.com>
8103
8104         PR c/61271
8105         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
8106         a comparison in parens.
8107         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
8108         in parens.
8109
8110 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8111
8112         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
8113         rtx_insn *.
8114
8115         * cprop.c (fis_get_condition): Likewise.
8116
8117         * postreload.c (reload_cse_regs): Likewise for param "first".
8118         (reload_cse_simplify): Likewise for param "insn".
8119         (reload_cse_regs_1): Likewise for local "insn".
8120         (reload_cse_simplify_set): Likewise for param "insn".
8121         (reload_cse_simplify_operands): Likewise.
8122         (struct reg_use): Likewise for field "insn".
8123         (reload_combine_purge_insn_uses): Likewise for param "insn".
8124         (fixup_debug_insns): Likewise for params "from", "to" and local
8125         "insn".
8126         (try_replace_in_use): Likewise for local "use_insn".
8127         (reload_combine_recognize_const_pattern): Likewise for param
8128         "insn" and locals "add_moved_after_insn", "use_insn".
8129         (reload_combine_recognize_pattern): Likewise for param "insn" and
8130         local "prev".
8131         (reload_combine): Likewise for locals "insn", "prev".
8132         (reload_combine_note_use): Likewise for param "insn".
8133         (move2add_use_add2_insn): Likewise.
8134         (move2add_use_add3_insn): Likewise.
8135         (reload_cse_move2add): Likewise, also for local "next".
8136         (move2add_note_store): Likewise for local "insn".
8137
8138 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8139
8140         * postreload-gcse.c (struct occr): Strengthen field "insn" from
8141         rtx to rtx_insn *.
8142         (struct unoccr): Likewise.
8143         (struct modifies_mem): Likewise.
8144         (alloc_mem): Likewise for local "insn".
8145         (insert_expr_in_table): Likewise for param "insn".
8146         (dump_expr_hash_table_entry): Likewise for local "insn".
8147         (oprs_unchanged_p): Likewise for param "insn".
8148         (load_killed_in_block_p): Likewise for local "setter".
8149         (record_last_reg_set_info): Likewise for param "insn".
8150         (record_last_reg_set_info_regno): Likewise.
8151         (record_last_mem_set_info): Likewise.
8152         (record_last_set_info): Likewise for local "last_set_insn".
8153         (record_opr_changes): Likewise for param "insn".
8154         (hash_scan_set): Likewise.
8155         (compute_hash_table): Likewise for local "insn".
8156         (get_avail_load_store_reg): Likewise for param "insn".
8157         (eliminate_partially_redundant_load): Likewise, also for locals
8158         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
8159         RTX for insns.
8160         (eliminate_partially_redundant_loads): Likewise for local "insn".
8161
8162 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8163
8164         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
8165         rtx to rtx_insn *.
8166         (expand_binop): Likewise for locals "entry_last", "last", "insns"
8167         (expand_twoval_unop): Likewise for locals entry_last", "last".
8168         (expand_twoval_binop): Likewise.
8169         (expand_twoval_binop_libfunc): Likewise for local "insns".
8170         (widen_leading): Likewise for local "last".
8171         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
8172         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
8173         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
8174         (expand_parity): Likewise for locals "last" and "seq".
8175         (expand_ffs): Likewise for local "seq".  Strengthen local
8176         "nonzero_label" from rtx to rtx_code_label *.
8177         (expand_absneg_bit): Strengthen local "insns" from rtx to
8178         rtx_insn *.
8179         (expand_unop_direct): Likewise for local "last".
8180         (expand_unop): Likewise for locals "last", "insns".
8181         (expand_abs_nojump): Likewise for local "last".
8182         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
8183         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
8184         rtx_insn *.
8185         (expand_copysign_absneg): Strengthen local "label" from rtx to
8186         rtx_code_label *.
8187         (expand_copysign_bit): Strengthen local "insns" from rtx to
8188         rtx_insn *.
8189         (struct no_conflict_data): Likewise for fields "first", "insn".
8190         (emit_libcall_block_1): Likewise for param "insns" and locals
8191         "next", "last", "insn".
8192         (emit_libcall_block): For now, add a checked cast to rtx_insn *
8193         on "insns" when invoking emit_libcall_block_1.  Ultimately we
8194         want to strengthen insns itself.
8195         (prepare_cmp_insn): Strengthen local "last" from rtx to
8196         rtx_insn *.
8197         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
8198         (prepare_float_lib_cmp): Likewise for local "insns".
8199         (emit_conditional_move): Likewise for local "last".
8200         (emit_conditional_add): Likewise.
8201         (have_sub2_insn): Likewise for local "seq".
8202         (expand_float): Likewise for local "insns".  Strengthen locals
8203         "label", "neglabel" from rtx to rtx_code_label *.
8204         (expand_fix): Likewise for locals "last", "insn", "insns" (to
8205         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
8206         (expand_fixed_convert): Likewise for local "insns" (to
8207         rtx_insn *).
8208         (expand_sfix_optab): Likewise for local "last".
8209         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
8210         to rtx_code_label *.
8211         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
8212         from rtx to rtx_insn *.
8213         (expand_atomic_fetch_op): Likewise for local "insn".
8214         (maybe_legitimize_operand_same_code): Likewise for local "last".
8215         (maybe_legitimize_operands): Likewise.
8216
8217 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8218
8219         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
8220         "insn" from rtx to rtx_insn *.
8221         (ps_rtl_insn): Likewise for return type.
8222         (doloop_register_get): Likewise for params "head", "tail" and
8223         locals "insn", "first_insn_not_to_check".
8224         (schedule_reg_move): Likewise for local "this_insn".
8225         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
8226         of gen_move_insn for now.
8227         (reset_sched_times): Strengthen local "insn" from rtx to
8228         rtx_insn *.
8229         (permute_partial_schedule): Likewise.
8230         (duplicate_insns_of_cycles): Likewise for local "u_insn".
8231         (dump_insn_location): Likewise for param "insn".
8232         (loop_canon_p): Likewise for local "insn".
8233         (sms_schedule): Likewise.
8234         (print_partial_schedule): Likewise.
8235         (ps_has_conflicts): Likewise.
8236
8237 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8238
8239         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
8240         "tailp" from rtx * to rtx_insn **.
8241
8242         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
8243         from rtx to rtx_insn *.
8244         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
8245         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
8246         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
8247         rtx to rtx_insn *.
8248         * modulo-sched.c (const_iteration_count): Strengthen return type
8249         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
8250         use of NULL_RTX with NULL when working with insns.
8251         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
8252         to rtx_insn *.
8253         (sms_schedule): Likewise.
8254         * sched-rgn.c (init_ready_list): Likewise, also for locals
8255         "src_head" and "src_next_tail".
8256         (compute_block_dependences): Likewise.
8257         (free_block_dependencies): Likewise.
8258         (debug_rgn_dependencies): Likewise.
8259         (free_rgn_deps): Likewise.
8260         (compute_priorities): Likewise.
8261         (schedule_region): Likewise.
8262         * sel-sched.c (find_ebb_boundaries): Likewise.
8263
8264         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
8265         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
8266
8267 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8268
8269         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
8270         from rtx to rtx_insn *.
8271         (new_seginfo): Likewise for param "insn".
8272         (create_pre_exit): Likewise for locals "last_insn",
8273         "before_return_copy", "return_copy".
8274         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
8275         "mode_set".
8276
8277 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8278
8279         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
8280         from rtx to rtx_insn *.
8281         (lra_push_insn): Likewise for 1st param.
8282         (lra_push_insn_and_update_insn_regno_info): Likewise.
8283         (lra_pop_insn): Likewise for return type.
8284         (lra_invalidate_insn_data): Likewise for 1st param.
8285         (lra_set_insn_deleted): Likewise.
8286         (lra_delete_dead_insn): Likewise.
8287         (lra_process_new_insns): Likewise for first 3 params.
8288         (lra_set_insn_recog_data): Likewise for 1st param.
8289         (lra_update_insn_recog_data): Likewise.
8290         (lra_set_used_insn_alternative): Likewise.
8291         (lra_invalidate_insn_regno_info): Likewise.
8292         (lra_update_insn_regno_info): Likewise.
8293         (lra_former_scratch_operand_p): Likewise.
8294         (lra_eliminate_regs_1): Likewise.
8295         (lra_get_insn_recog_data): Likewise.
8296
8297         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
8298         rtx to rtx_insn *.
8299
8300         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
8301         "mv1" and "mv2".
8302         (substitute_within_insn): New.
8303         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
8304         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
8305         Replace call to "substitute" with call to substitute_within_insn.
8306
8307         * lra-constraints.c (curr_insn): Strengthen from rtx to
8308         rtx_insn *.
8309         (get_equiv_with_elimination): Likewise for param "insn".
8310         (match_reload): Strengthen params "before" and "after" from rtx *
8311         to rtx_insn **.
8312         (emit_spill_move): Likewise for return type.  Add a checked cast
8313         to rtx_insn * on result of gen_move_insn for now.
8314         (check_and_process_move): Likewise for local "before".  Replace
8315         NULL_RTX with NULL when referring to insns.
8316         (process_addr_reg): Strengthen params "before" and "after" from
8317         rtx * to rtx_insn **.
8318         (insert_move_for_subreg): Likewise.
8319         (simplify_operand_subreg): Strengthen locals "before" and "after"
8320         from rtx to rtx_insn *.
8321         (process_address_1): Strengthen params "before" and "after" from
8322         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
8323         rtx to rtx_insn *.
8324         (process_address): Strengthen params "before" and "after" from
8325         rtx * to rtx_insn **.
8326         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
8327         (curr_insn_transform): Strengthen locals "before" and "after"
8328         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
8329         to insns.
8330         (loc_equivalence_callback): Update cast of "data", changing
8331         resulting type from rtx to rtx_insn *.
8332         (substitute_pseudo_within_insn): New.
8333         (inherit_reload_reg): Strengthen param "insn" from rtx to
8334         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
8335         NULL when referring to insns.  Add a checked cast to rtx_insn *
8336         when using usage_insn to invoke lra_update_insn_regno_info.
8337         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
8338         likewise for locals "restore", "save".  Add checked casts to
8339         rtx_insn * when using usage_insn to invoke
8340         lra_update_insn_regno_info and lra_process_new_insns.  Replace
8341         NULL_RTX with NULL when referring to insns.
8342         (split_if_necessary): Strengthen param "insn" from rtx to
8343         rtx_insn *.
8344         (update_ebb_live_info): Likewise for params "head", "tail" and local
8345         "prev_insn".
8346         (get_last_insertion_point): Likewise for return type and local "insn".
8347         (get_live_on_other_edges): Likewise for local "last".
8348         (inherit_in_ebb): Likewise for params "head", "tail" and locals
8349         "prev_insn", "next_insn", "restore".
8350         (remove_inheritance_pseudos): Likewise for local "prev_insn".
8351         (undo_optional_reloads): Likewise for local "insn".
8352
8353         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
8354         "insn".
8355         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
8356         insns.
8357         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
8358         rtx_insn *.
8359         (spill_pseudos): Likewise for local "insn".
8360         (init_elimination): Likewise.
8361         (process_insn_for_elimination): Likewise for param "insn".
8362
8363         * lra-lives.c (curr_insn): Likewise.;
8364
8365         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
8366         (remove_pseudos): Likewise for param "insn".
8367         (spill_pseudos): Likewise for local "insn".
8368         (lra_final_code_change): Likewise for locals "insn", "curr".
8369
8370         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
8371         (lra_set_insn_deleted): Likewise.
8372         (lra_delete_dead_insn): Likewise, and for local "prev".
8373         (new_insn_reg): Likewise for param "insn".
8374         (lra_set_insn_recog_data): Likewise.
8375         (lra_update_insn_recog_data): Likewise.
8376         (lra_set_used_insn_alternative): Likewise.
8377         (get_insn_freq): Likewise.
8378         (invalidate_insn_data_regno_info): Likewise.
8379         (lra_invalidate_insn_regno_info): Likewise.
8380         (lra_update_insn_regno_info): Likewise.
8381         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
8382         vec<rtx_insn *>.
8383         (lra_push_insn_1): Strengthen param "insn" from rtx to
8384         rtx_insn *.
8385         (lra_push_insn): Likewise.
8386         (lra_push_insn_and_update_insn_regno_info): Likewise.
8387         (lra_pop_insn): Likewise for return type and local "insn".
8388         (push_insns): Likewise for params "from", "to", and local "insn".
8389         (setup_sp_offset): Likewise for params "from", "last" and locals
8390         "before", "insn".
8391         (lra_process_new_insns): Likewise for params "insn", "before",
8392         "after" and local "last".
8393         (struct sloc): Likewise for field "insn".
8394         (lra_former_scratch_operand_p): Likewise for param "insn".
8395         (remove_scratches): Likewise for locals "insn", "last".
8396         (check_rtl): Likewise for local "insn".
8397         (add_auto_inc_notes): Likewise for param "insn".
8398         (update_inc_notes): Likewise for local "insn".
8399         (lra): Replace NULL_RTX with NULL when referring to insn.
8400
8401 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8402
8403         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
8404         to rtx_insn *.
8405         (resolve_reg_notes): Likewise.
8406         (resolve_simple_move): Likewise for return type, param "insn", and
8407         locals "insns", "minsn".
8408         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
8409         (resolve_use): Likewise.
8410         (resolve_debug): Likewise.
8411         (find_decomposable_shift_zext): Likewise.
8412         (resolve_shift_zext): Likewise for return type, param "insn", and
8413         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
8414         (decompose_multiword_subregs): Likewise for local "insn",
8415         "orig_insn", "decomposed_shift", "end".
8416
8417 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8418
8419         * basic-block.h (basic_block split_edge_and_insert): Strengthen
8420         param "insns" from rtx to rtx_insn *.
8421
8422         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
8423         rtx to rtx_insn *.
8424         (struct iv_to_split): Likewise.
8425         (loop_exit_at_end_p): Likewise for local "insn".
8426         (split_edge_and_insert): Likewise for param "insns".
8427         (compare_and_jump_seq): Likewise for return type, param "cinsn",
8428         and locals "seq", "jump".
8429         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
8430         "branch_code"; update invocations of compare_and_jump_seq to
8431         eliminate NULL_RTX in favor of NULL.
8432         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
8433         rtx to rtx_insn *.
8434         (reset_debug_uses_in_loop): Likewise.
8435         (analyze_insn_to_expand_var): Likewise for param "insn".
8436         (analyze_iv_to_split_insn): Likewise.
8437         (analyze_insns_in_loop): Likewise for local "insn".
8438         (insert_base_initialization): Likewise for param
8439         "insn" and local "seq".
8440         (split_iv): Likewise for param "insn" and local "seq".
8441         (expand_var_during_unrolling): Likewise for param "insn".
8442         (insert_var_expansion_initialization): Likewise for local "seq".
8443         (combine_var_copies_in_loop_exit): Likewise.
8444         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
8445         "insn".
8446         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
8447         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
8448         "next".
8449
8450 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8451
8452         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
8453         rtx_insn *.
8454         (iv_analyze_result): Likewise.
8455         (iv_analyze_expr): Likewise.
8456         (biv_p): Likewise.
8457
8458         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
8459         local "def_insn" from rtx to rtx_insn *.
8460         (get_biv_step_1): Likewise for local "insn".
8461         (iv_analyze_expr): Likewise for param "insn".
8462         (iv_analyze_def): Likewise for local "insn".
8463         (iv_analyze_op): Likewise for param "insn".
8464         (iv_analyze): Likewise.
8465         (iv_analyze_result): Likewise.
8466         (biv_p): Likewise.
8467         (suitable_set_for_replacement): Likewise.
8468         (simplify_using_initial_values): Likewise for local "insn".
8469         (iv_number_of_iterations): Likewise for param "insn".
8470         (check_simple_exit): Add checked cast to rtx_insn when invoking
8471         iv_number_of_iterations for now (until get_condition is
8472         strengthened).
8473
8474         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
8475         "insn" from rtx to rtx_insn *.
8476         (analyze_insns_in_loop): Likewise for local "insn".
8477
8478 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8479
8480         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
8481         to rtx_insn *.
8482         (struct invariant): Likewise.
8483         (hash_invariant_expr_1): Likewise for param "insn".
8484         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
8485         (find_exits): Likewise for local "insn".
8486         (create_new_invariant): Likewise for param "insn".
8487         (check_dependencies): Likewise.
8488         (find_invariant_insn): Likewise.
8489         (record_uses): Likewise.
8490         (find_invariants_insn): Likewise.
8491         (find_invariants_bb): Likewise for local "insn".
8492         (get_pressure_class_and_nregs): Likewise for param "insn".
8493         (calculate_loop_reg_pressure): Likewise for local "insn".
8494
8495 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8496
8497         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
8498         to rtx_insn *.
8499         (add_test): Likewise for locals "seq", "jump".
8500         (doloop_modify): Likewise for locals "sequence", "jump_insn".
8501
8502 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8503
8504         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
8505         rtx_insn *.
8506         (rebuild_jump_labels_chain): Likewise for param "chain".
8507
8508         * cfgexpand.c (pass_expand::execute): Add checked cast to
8509         rtx_insn * when calling rebuild_jump_labels_chain in region where
8510         we know e->insns.r is non-NULL.
8511
8512         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
8513         rtx_insn *.
8514         (rebuild_jump_labels): Likewise.
8515         (rebuild_jump_labels_chain): Likewise for param "chain".
8516         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
8517         (init_label_info): Likewise for param "f".
8518         (maybe_propagate_label_ref): Likewise for params "jump_insn",
8519         "prev_nonjump_insn".
8520         (mark_all_labels): Likewise for param "f" and locals "insn",
8521         "prev_nonjump_insn".
8522
8523 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8524
8525         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
8526         from rtx to rtx_insn *insn.
8527         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
8528         (ira_add_allocno_copy): Likewise.
8529         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
8530         rtx to rtx_insn *.
8531         (ira_create_copy): Likewise.
8532         (ira_add_allocno_copy): Likewise.
8533         (create_bb_allocnos): Likewise for local "insn".
8534         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
8535         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
8536         process_regs_for_copy for rtx_insn * param.
8537         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
8538         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
8539         process_regs_for_copy for rtx_insn * param.
8540         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
8541         * ira-costs.c (record_reg_classes): Likewise for param "insn".
8542         (record_operand_costs): Likewise.
8543         (scan_one_insn): Likewise for return type, and for param "insn".
8544         (process_bb_for_costs): Likewise for local "insn".
8545         (process_bb_node_for_hard_reg_moves): Likewise.
8546         * ira-emit.c (struct move): Likewise for field "insn".
8547         (create_move): Eliminate use of NULL_RTX when dealing with an
8548         rtx_insn *.
8549         (emit_move_list): Strengthen return type and locals "result",
8550         "insn" from rtx to rtx_insn *insn.
8551         (emit_moves): Likewise for locals "insns", "tmp".
8552         (ira_emit): Likewise for local "insn".
8553         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
8554         "insn".
8555         (find_call_crossed_cheap_reg): Likewise.
8556         (process_bb_node_lives): Likewise for local "insn".
8557         * ira.c (decrease_live_ranges_number): Likewise.
8558         (compute_regs_asm_clobbered): Likewise.
8559         (build_insn_chain): Likewise.
8560         (find_moveable_pseudos): Likewise, also locals "def_insn",
8561         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
8562         to rtx_insn **.  Add a checked cast when assigning from
8563         "closest_use" into closest_uses array in a region where we know
8564         it's a non-NULL insn.
8565         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
8566         to rtx_insn *.
8567         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
8568         "last_interesting_insn", "uin".
8569         (move_unallocated_pseudos): Likewise for locals "def_insn",
8570         "move_insn", "newinsn".
8571
8572 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8573
8574         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
8575         Strengthen locals "done_label", "do_error" from rtx to
8576         rtx_code_label *.
8577         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
8578         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
8579         rtx_code_label *.
8580         (ubsan_expand_si_overflow_neg_check): Likewise for locals
8581         "done_label", "do_error" to rtx_code_label * and local  "last" to
8582         rtx_insn *.
8583         (ubsan_expand_si_overflow_mul_check): Likewise for locals
8584         "done_label", "do_error", "large_op0", "small_op0_large_op1",
8585         "one_small_one_large", "both_ops_large", "after_hipart_neg",
8586         "after_lopart_neg", "do_overflow", "hipart_different"  to
8587         rtx_code_label * and local  "last" to rtx_insn *.
8588
8589 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8590
8591         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8592         "insn" and "move_insn" from rtx to rtx_insn *.
8593
8594 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8595
8596         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8597         rtx_insn *.
8598         (cheap_bb_rtx_cost_p): Likewise.
8599         (first_active_insn): Likewise for return type and local "insn".
8600         (last_active_insn):  Likewise for return type and locals "insn",
8601         "head".
8602         (struct noce_if_info): Likewise for fields "jump", "insn_a",
8603         "insn_b".
8604         (end_ifcvt_sequence): Likewise for return type and locals "insn",
8605         "seq".
8606         (noce_try_move): Likewise for local "seq".
8607         (noce_try_store_flag): Likewise.
8608         (noce_try_store_flag_constants): Likewise.
8609         (noce_try_addcc): Likewise.
8610         (noce_try_store_flag_mask): Likewise.
8611         (noce_try_cmove): Likewise.
8612         (noce_try_minmax): Likewise.
8613         (noce_try_abs): Likewise.
8614         (noce_try_sign_mask): Likewise.
8615         (noce_try_bitop): Likewise.
8616         (noce_can_store_speculate_p): Likewise for local "insn".
8617         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8618         seq".
8619         (check_cond_move_block): Likewise for local "insn".
8620         (cond_move_convert_if_block): Likewise.
8621         (cond_move_process_if_block): Likewise for locals "seq",
8622         "loc_insn".
8623         (noce_find_if_block): Likewise for local "jump".
8624         (merge_if_block): Likewise for local "last".
8625         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8626         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8627         (block_has_only_trap): Likewise for return type and local "trap".
8628         (find_if_case_1): Likewise for local "jump".
8629         (dead_or_predicable): Likewise for locals "head", "end", "jump",
8630         "insn".
8631
8632 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8633
8634         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8635         "last_insn", "loop_end" from rtx to rtx_insn *.
8636
8637         * hw-doloop.c (scan_loop): Likewise for local "insn".
8638         (discover_loop): Likewise for param "tail_insn".
8639         (discover_loops): Likewise for local "tail".
8640
8641         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8642         cast to rtx_insn * when assigning from an rtx local to a
8643         hwloop_info's "last_insn" field.
8644
8645 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8646
8647         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8648         (add_delay_dependencies): Strengthen local "pro" from rtx to
8649         rtx_insn *.
8650         (recompute_todo_spec): Likewise.
8651         (dep_cost_1): Likewise for locals "insn", "used".
8652         (schedule_insn): Likewise for local "dbg".
8653         (schedule_insn): Likewise for locals "pro", "next".
8654         (unschedule_insns_until): Likewise for local "con".
8655         (restore_pattern): Likewise for local "next".
8656         (estimate_insn_tick): Likewise for local "pro".
8657         (resolve_dependencies): Likewise for local "next".
8658         (fix_inter_tick): Likewise.
8659         (fix_tick_ready): Likewise for local "pro".
8660         (add_to_speculative_block): Likewise for locals "check", "twin",
8661         "pro".
8662         (sched_extend_bb): Likewise for locals "end", "insn".
8663         (init_before_recovery): Likewise for local "x".
8664         (sched_create_recovery_block): Likewise for local "barrier".
8665         (create_check_block_twin): Likewise for local "pro".
8666         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8667         "consumer".
8668         (unlink_bb_notes): Update for change to type of bb_header.
8669         Strengthen locals "prev", "label", "note", "next" from rtx to
8670         rtx_insn *.
8671         (clear_priorities): Likewise for local "pro".
8672
8673 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8674
8675         * gcse.c (struct occr): Strengthen field "insn" from rtx to
8676         rtx_insn *.
8677         (test_insn): Likewise for this global.
8678         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8679         const rtx_insn *.
8680         (oprs_anticipatable_p): Likewise.
8681         (oprs_available_p): Likewise.
8682         (insert_expr_in_table): Strengthen param "insn" from  rtx to
8683         rtx_insn *.
8684         (hash_scan_set): Likewise.
8685         (hash_scan_clobber): Likewise.
8686         (hash_scan_call): Likewise.
8687         (hash_scan_insn): Likewise.
8688         (compute_hash_table_work): Likewise for local "insn".
8689         (process_insert_insn): Likewise for return type and local "pat".
8690         (insert_insn_end_basic_block): Likewise for locals "new_insn",
8691         "pat", "pat_end", "maybe_cc0_setter".
8692         (pre_edge_insert): Likewise for local "insn".
8693         (pre_insert_copy_insn): Likewise for param "insn".
8694         (pre_insert_copies): Likewise for local "insn".
8695         (struct set_data): Likewise for field "insn".
8696         (single_set_gcse): Likewise for param "insn".
8697         (gcse_emit_move_after): Likewise.
8698         (pre_delete): Likewise for local "insn".
8699         (update_bb_reg_pressure): Likewise for param "from" and local
8700         "insn".
8701         (should_hoist_expr_to_dom): Likewise for param "from".
8702         (hoist_code): Likewise for local "insn".
8703         (get_pressure_class_and_nregs): Likewise for param "insn".
8704         (calculate_bb_reg_pressure): Likewise for local "insn".
8705         (compute_ld_motion_mems): Likewise.
8706
8707 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8708
8709         * genpeep.c (main): Rename param back from "uncast_ins1" to
8710         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
8711         checked cast.
8712
8713         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8714
8715 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8716
8717         PR target/62195
8718         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8719         documentation to state it is only for VSX operations.
8720
8721         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8722         constraint only active if VSX.
8723
8724         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8725         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8726         (lfiwzx): Likewise.
8727
8728 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8729
8730         * fwprop.c (single_def_use_dom_walker::before_dom_children):
8731         Strengthen local "insn" from rtx to rtx_insn *.
8732         (use_killed_between): Likewise for param "target_insn".
8733         (all_uses_available_at): Likewise for param "target_insn" and
8734         local "next".
8735         (update_df_init): Likewise for params "def_insn", "insn".
8736         (update_df): Likewise for param "insn".
8737         (try_fwprop_subst): Likewise for param "def_insn" and local
8738         "insn".
8739         (free_load_extend): Likewise for param "insn".
8740         (forward_propagate_subreg): Likewise for param "def_insn" and
8741         local "use_insn".
8742         (forward_propagate_asm): Likewise for param "def_insn" and local
8743         "use_insn".
8744         (forward_propagate_and_simplify): Likewise for param "def_insn"
8745         and local "use_insn".
8746         (forward_propagate_into): Likewise for locals "def_insn" and
8747         "use_insn".
8748
8749 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8750
8751         * function.c (emit_initial_value_sets): Strengthen local "seq"
8752         from rtx to rtx_insn *.
8753         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8754         local "seq".
8755         (instantiate_virtual_regs): Likewise for local "insn".
8756         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8757         (reorder_blocks_1): Likewise for param "insns" and local "insn".
8758         (expand_function_end): Likewise for locals "insn" and "seq".
8759         (epilogue_done): Likewise for local "insn".
8760         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8761         "last", "trial".
8762         (reposition_prologue_and_epilogue_notes): Likewise for locals
8763         "insn", "last", "note", "first".
8764         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8765         (pass_match_asm_constraints::execute): Likewise for local "insn".
8766
8767 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8768
8769         * output.h (final_scan_insn): Strengthen return type from rtx to
8770         rtx_insn *.
8771         (final_forward_branch_p): Likewise for param.
8772         (current_output_insn): Likewise for this global.
8773
8774         * final.c (rtx debug_insn): Likewise for this variable.
8775         (current_output_insn): Likewise.
8776         (get_attr_length_1): Rename param "insn" to "uncast_insn",
8777         adding "insn" back in as an rtx_insn * with a checked cast, so
8778         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8779         first param.
8780         (compute_alignments): Strengthen local "label" from rtx to
8781         rtx_insn *.
8782         (shorten_branches): Rename param from "first" to "uncast_first",
8783         introducing a new local rtx_insn * "first" using a checked cast to
8784         effectively strengthen "first" from rtx to rtx_insn * without
8785         affecting the type signature.  Strengthen locals "insn", "seq",
8786         "next", "label" from rtx to rtx_insn *.
8787         (change_scope): Strengthen param "orig_insn" and local "insn" from
8788         rtx to rtx_insn *.
8789         (final_start_function): Rename param from "first" to "uncast_first",
8790         introducing a new local rtx_insn * "first" using a checked cast to
8791         effectively strengthen "first" from rtx to rtx_insn * without
8792         affecting the type signature.  Strengthen local "insn" from rtx to
8793         rtx_insn *.
8794         (dump_basic_block_info): Strengthen param "insn" from rtx to
8795         rtx_insn *.
8796         (final): Rename param from "first" to "uncast_first",
8797         introducing a new local rtx_insn * "first" using a checked cast to
8798         effectively strengthen "first" from rtx to rtx_insn * without
8799         affecting the type signature.  Strengthen locals "insn", "next"
8800         from rtx to rtx_insn *.
8801         (output_alternate_entry_point): Strengthen param "insn" from rtx to
8802         rtx_insn *.
8803         (call_from_call_insn): Strengthen param "insn" from rtx to
8804         rtx_call_insn *.
8805         (final_scan_insn): Rename param from "insn" to "uncast_insn",
8806         introducing a new local rtx_insn * "insn" using a checked cast to
8807         effectively strengthen "insn" from rtx to rtx_insn * without
8808         affecting the type signature.  Strengthen return type and locals
8809         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
8810         now-redundant checked cast to rtx_insn * from both invocations of
8811         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
8812         introducing a local "call_insn" for use when invoking
8813         call_from_call_insn.
8814         (notice_source_line): Strengthen param "insn" from rtx to
8815         rtx_insn *.
8816         (leaf_function_p): Likewise for local "insn".
8817         (final_forward_branch_p): Likewise.
8818         (leaf_renumber_regs): Likewise for param "first".
8819         (rest_of_clean_state): Likewise for locals "insn" and "next".
8820         (self_recursive_call_p): Likewise for param "insn".
8821         (collect_fn_hard_reg_usage): Likewise for local "insn".
8822         (get_call_fndecl): Likewise for param "insn".
8823         (get_call_cgraph_rtl_info): Likewise.
8824         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8825         introducing a new local rtx_insn * "insn" using a checked cast to
8826         effectively strengthen "insn" from rtx to rtx_insn * without
8827         affecting the type signature.
8828
8829         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8830         cast when assigning from param "insn" to current_output_insn.
8831         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8832         so that we can assign it back to current_output_insn.
8833
8834 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8835
8836         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8837         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8838         atmxt540s and atmxt540sreva devices.
8839         * config/avr/avr-tables.opt: Regenerate.
8840         * config/avr/t-multilib: Regenerate.
8841         * doc/avr-mmcu.texi: Regenerate.
8842
8843 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8844
8845         * expr.c (convert_move): Strengthen local "insns" from rtx to
8846         rtx_insn *.
8847         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8848         "top_label" from rtx to rtx_code_label *.
8849         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8850         rtx_insn *.
8851         (emit_single_push_insn): Likewise for locals "prev", "last".
8852         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8853         to rtx_code_label *.
8854         (store_constructor): Likewise for locals "loop_start", "loop_end".
8855         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8856         rtx_insn *.
8857         (expand_expr_real_2): Likewise.
8858         (expand_expr_real_1): Strengthen local "label" from rtx to
8859         rtx_code_label *.
8860
8861 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8862
8863         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8864         from rtx to rtx_insn *.
8865         (store_bit_field_1): Likewise.
8866         (extract_bit_field_1): Likewise.
8867         (expand_mult_const): Likewise for local "insns".
8868         (expmed_mult_highpart): Strengthen local "label" from rtx to
8869         rtx_code_label *.
8870         (expand_smod_pow2): Likewise.
8871         (expand_sdiv_pow2): Likewise.
8872         (expand_divmod): Strengthen locals "last", "insn" from rtx to
8873         rtx_insn *.  Strengthen locals "label", "label1", "label2",
8874         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8875         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8876         (emit_store_flag): Likewise.
8877         (emit_store_flag_force): Strengthen local "label" from rtx to
8878         rtx_code_label *.
8879         (do_cmp_and_jump): Likewise for param "label".
8880
8881 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8882
8883         * explow.c (force_reg): Strengthen local "insn" from rtx to
8884         rtx_insn *.
8885         (adjust_stack_1): Likewise.
8886         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
8887         "final_label", "available_label", "space_available" from rtx to
8888         rtx_code_label *.
8889         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8890         (anti_adjust_stack_and_probe): Likewise.
8891
8892 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8893
8894         * except.h (sjlj_emit_function_exit_after): Strengthen param
8895         "after" from rtx to rtx_insn *.  This is only called with
8896         result of get_last_insn (in function.c) so type-change should be
8897         self-contained.
8898
8899         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8900         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8901         to rtx_insn *.  These fields are only used from except.c so this
8902         type-change should be self-contained to this patch.
8903
8904         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8905         local "last" from rtx to rtx_insn *.
8906         (dw2_build_landing_pads): Likewise for local "seq".
8907         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8908         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8909         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
8910         rtx to rtx_insn *.
8911         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8912         to rtx_insn *.
8913         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8914         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8915         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8916         referring to an insn.  Strengthen local "dispatch_label" from
8917         rtx to rtx_code_label *.
8918         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8919         rtx_insn *.
8920         (expand_eh_return): Strengthen local "around_label" from
8921         rtx to rtx_code_label *.
8922         (convert_to_eh_region_ranges): Strengthen locals "iter",
8923         "last_action_insn", "first_no_action_insn",
8924         "first_no_action_insn_before_switch",
8925         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8926
8927 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8928
8929         * dwarf2out.c (last_var_location_insn): Strengthen this variable
8930         from rtx to rtx_insn *.
8931         (cached_next_real_insn): Likewise.
8932         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8933         working with insns.
8934         (dwarf2out_var_location): Strengthen locals "next_real",
8935         "next_note", "expected_next_loc_note", "last_start", "insn" from
8936         rtx to rtx_insn *.
8937
8938 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8939
8940         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8941         from rtx to rtx_insn *.
8942         (create_pseudo_cfg): Likewise for local "insn".
8943
8944 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8945
8946         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8947         from rtx to rtx_insn *.
8948         (df_bb_regno_last_def_find): Likewise.
8949
8950         * df-problems.c (df_rd_bb_local_compute): Likewise.
8951         (df_lr_bb_local_compute): Likewise.
8952         (df_live_bb_local_compute): Likewise.
8953         (df_chain_remove_problem): Likewise.
8954         (df_chain_create_bb): Likewise.
8955         (df_word_lr_bb_local_compute): Likewise.
8956         (df_remove_dead_eq_notes): Likewise for param "insn".
8957         (df_note_bb_compute): Likewise for local "insn".
8958         (simulate_backwards_to_point): Likewise.
8959         (df_md_bb_local_compute): Likewise.
8960
8961         * df-scan.c (df_scan_free_bb_info): Likewise.
8962         (df_scan_start_dump): Likewise.
8963         (df_scan_start_block): Likewise.
8964         (df_install_ref_incremental): Likewise for local "insn".
8965         (df_insn_rescan_all): Likewise.
8966         (df_reorganize_refs_by_reg_by_insn): Likewise.
8967         (df_reorganize_refs_by_insn_bb): Likewise.
8968         (df_recompute_luids): Likewise.
8969         (df_bb_refs_record): Likewise.
8970         (df_update_entry_exit_and_calls): Likewise.
8971         (df_bb_verify): Likewise.
8972
8973 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8974
8975         * ddg.h (struct ddg_node): Strengthen fields "insn" and
8976         "first_note" from rtx to rtx_insn *.
8977         (get_node_of_insn): Likewise for param 2 "insn".
8978         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8979
8980         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8981         rtx_insn *.
8982         (mem_write_insn_p): Likewise.
8983         (mem_access_insn_p): Likewise.
8984         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8985         (def_has_ccmode_p): Likewise for param "insn".
8986         (add_cross_iteration_register_deps): Likewise for locals
8987         "def_insn" and "use_insn".
8988         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8989         (build_intra_loop_deps): Likewise for local "src_insn".
8990         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8991         to rtx_insn *.
8992         (get_node_of_insn): Likewise for param "insn".
8993
8994 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8995
8996         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8997         (deletable_insn_p): Strengthen param "insn" from rtx to
8998         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
8999         find_call_stack_args, since this is guarded by CALL_P (insn).
9000         (marked_insn_p): Strengthen param "insn" from rtx to
9001         rtx_insn *.
9002         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
9003         invoking find_call_stack_args, since this is guarded by
9004         CALL_P (insn).
9005         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
9006         rtx_insn *; we know this is an insn since this was called by
9007         mark_nonreg_stores.
9008         (mark_nonreg_stores_2): Likewise.
9009         (mark_nonreg_stores): Strengthen param "insn" from rtx to
9010         rtx_insn *.
9011         (find_call_stack_args): Strengthen param "call_insn" from rtx to
9012         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
9013         to rtx_insn *.
9014         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
9015         from rtx to rtx_insn *.
9016         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
9017         "next", "ref_insn".
9018         (delete_unmarked_insns): Likewise for locals "insn", "next".
9019         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
9020         (mark_reg_dependencies): Likewise for param "insn".
9021         (rest_of_handle_ud_dce): Likewise for local "insn".
9022         (word_dce_process_block): Likewise.
9023         (dce_process_block): Likewise.
9024
9025 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9026
9027         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
9028         from rtx to rtx_insn *.
9029         (struct change_cc_mode_args): Likewise for field "insn".
9030         (this_insn): Strengthen from rtx to rtx_insn *.
9031         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
9032         with insn.
9033         (validate_canon_reg): Strengthen param "insn" from rtx to
9034         rtx_insn *.
9035         (canon_reg): Likewise.
9036         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
9037         dealing with insn.
9038         (record_jump_equiv): Strengthen param "insn" from rtx to
9039         rtx_insn *.
9040         (try_back_substitute_reg): Likewise, also for locals "prev",
9041         "bb_head".
9042         (find_sets_in_insn): Likewise for param "insn".
9043         (canonicalize_insn): Likewise.
9044         (cse_insn): Likewise.  Add a checked cast.
9045         (invalidate_from_clobbers): Likewise for param "insn".
9046         (invalidate_from_sets_and_clobbers): Likewise.
9047         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
9048         dealing with insn.
9049         (cse_prescan_path): Strengthen local "insn" from rtx to
9050         rtx_insn *.
9051         (cse_extended_basic_block): Likewise for locals "insn" and
9052         "prev_insn".
9053         (cse_main): Likewise for param "f".
9054         (check_for_label_ref): Likewise for local "insn".
9055         (set_live_p): Likewise for second param ("insn").
9056         (insn_live_p): Likewise for first param ("insn") and for local
9057         "next".
9058         (cse_change_cc_mode_insn): Likewise for first param "insn".
9059         (cse_change_cc_mode_insns): Likewise for first and second params
9060         "start" and "end".
9061         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
9062         and "end".
9063         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
9064         "cc_src_insn".
9065
9066 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9067             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9068             Anna Tikhonova  <anna.tikhonova@intel.com>
9069             Ilya Tocar  <ilya.tocar@intel.com>
9070             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9071             Ilya Verbin  <ilya.verbin@intel.com>
9072             Kirill Yukhin  <kirill.yukhin@intel.com>
9073             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9074
9075         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
9076         New.
9077         * config/i386/sse.md
9078         (define_mode_iterator VI248_AVX2): Delete.
9079         (define_mode_iterator VI2_AVX2_AVX512BW): New.
9080         (define_mode_iterator VI48_AVX2): Ditto.
9081         (define_insn <shift_insn><mode>3): Delete.
9082         (define_insn "<shift_insn><mode>3<mask_name>" with
9083         VI2_AVX2_AVX512BW): New.
9084         (define_insn "<shift_insn><mode>3<mask_name>" with
9085         VI48_AVX2): Ditto.
9086
9087 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9088             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9089             Anna Tikhonova  <anna.tikhonova@intel.com>
9090             Ilya Tocar  <ilya.tocar@intel.com>
9091             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9092             Ilya Verbin  <ilya.verbin@intel.com>
9093             Kirill Yukhin  <kirill.yukhin@intel.com>
9094             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9095
9096         * config/i386/sse.md
9097         (define_mode_iterator VI4F_BRCST32x2): New.
9098         (define_mode_attr 64x2_mode): Ditto.
9099         (define_mode_attr 32x2mode): Ditto.
9100         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
9101         with VI4F_BRCST32x2): Ditto.
9102         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
9103         with V16FI mode iterator): Ditto.
9104         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
9105         with V16FI): Ditto.
9106         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
9107         with VI8F_BRCST64x2): Ditto.
9108
9109 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9110             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9111             Anna Tikhonova  <anna.tikhonova@intel.com>
9112             Ilya Tocar  <ilya.tocar@intel.com>
9113             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9114             Ilya Verbin  <ilya.verbin@intel.com>
9115             Kirill Yukhin  <kirill.yukhin@intel.com>
9116             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9117
9118         * config/i386/sse.md
9119         (define_mode_iterator VI8_AVX512VL): New.
9120         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
9121
9122 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9123
9124         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
9125         (define_mode_iterator V48_AVX512VL): New.
9126         (define_mode_iterator V12_AVX512VL): Ditto.
9127         (define_insn <avx512>_load<mode>_mask): Split into two similar
9128         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
9129         Refactor output template.
9130         (define_insn "<avx512>_store<mode>_mask"): Ditto.
9131
9132 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9133
9134         * cprop.c (struct occr): Strengthen field "insn" from rtx to
9135         rtx_insn *.
9136         (reg_available_p): Likewise for param "insn".
9137         (insert_set_in_table): Likewise.
9138         (hash_scan_set): Likewise.
9139         (hash_scan_insn): Likewise.
9140         (make_set_regs_unavailable): Likewise.
9141         (compute_hash_table_work): Likewise for local "insn".
9142         (reg_not_set_p): Strengthen param "insn" from const_rtx to
9143         const rtx_insn *.
9144         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
9145         (try_replace_reg): Likewise.
9146         (find_avail_set): Likewise.
9147         (cprop_jump): Likewise for params "setcc", "jump".
9148         (constprop_register): Likewise for param "insn".
9149         (cprop_insn): Likewise.
9150         (do_local_cprop): Likewise.
9151         (local_cprop_pass): Likewise for local "insn".
9152         (bypass_block): Likewise for params "setcc" and "jump".
9153         (bypass_conditional_jumps): Likewise for locals "setcc" and
9154         "insn".
9155         (one_cprop_pass): Likewise for local "insn".
9156
9157 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9158
9159         * compare-elim.c (struct comparison_use): Strengthen field "insn"
9160         from rtx to rtx_insn *.
9161         (struct comparison): Likewise, also for field "prev_clobber".
9162         (conforming_compare): Likewise for param "insn".
9163         (arithmetic_flags_clobber_p): Likewise.
9164         (find_flags_uses_in_insn): Likewise.
9165         (find_comparison_dom_walker::before_dom_children): Likewise for
9166         locals "insn", "next", "last_clobber".
9167         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
9168
9169 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9170
9171         * combine-stack-adj.c (struct csa_reflist): Strengthen field
9172         "insn" from rtx to rtx_insn *.
9173         (single_set_for_csa): Likewise for param "insn".
9174         (record_one_stack_ref): Likewise.
9175         (try_apply_stack_adjustment): Likewise.
9176         (struct record_stack_refs_data): Likewise for field "insn".
9177         (maybe_move_args_size_note): Likewise for params "last" and "insn".
9178         (prev_active_insn_bb): Likewise for return type and param "insn".
9179         (next_active_insn_bb): Likewise.
9180         (force_move_args_size_note): Likewise for params "prev" and "last"
9181         and locals "test", "next_candidate", "prev_candidate".
9182         (combine_stack_adjustments_for_block): Strengthen locals
9183         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
9184         rtx_insn *.
9185
9186 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9187
9188         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
9189         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
9190         (subst_insn): Likewise for this variable.
9191         (added_links_insn): Likewise.
9192         (struct insn_link): Likewise for field "insn".
9193         (alloc_insn_link): Likewise for param "insn".
9194         (struct undobuf): Likewise for field "other_insn".
9195         (find_single_use): Likewise for param "insn" and local "next".
9196         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
9197         (delete_noop_moves): Likewise for locals "insn", "next".
9198         (create_log_links): Likewise for locals "insn", "use_insn".
9199         Strengthen local "next_use" from rtx * to rtx_insn **.
9200         (insn_a_feeds_b): Likewise for params "a", "b".
9201         (combine_instructions): Likewise for param "f" and locals "insn",
9202         "next", "prev", "first", "last_combined_insn", "link", "link1",
9203         "temp".  Replace use of NULL_RTX with NULL when referring to
9204         insns.
9205         (setup_incoming_promotions): Likewise for param "first"
9206         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
9207         (can_combine_p): Likewise for params "insn", "i3", "pred",
9208         "pred2", "succ", "succ2" and for local "p".
9209         (combinable_i3pat): Likewise for param "i3".
9210         (cant_combine_insn_p): Likewise for param "insn".
9211         (likely_spilled_retval_p): Likewise.
9212         (adjust_for_new_dest): Likewise.
9213         (update_cfg_for_uncondjump): Likewise, also for local "insn".
9214         (try_combine): Likewise for return type and for params "i3", "i2",
9215         "i1", "i0", "last_combined_insn", and for locals "insn",
9216         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
9217         "i0_insn".  Eliminate local "tem" in favor of new locals
9218         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
9219         checked cast for now to rtx_insn * on the return type of
9220         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
9221         insns.
9222         (find_split_point): Strengthen param "insn" from rtx to
9223         rtx_insn *.
9224         (simplify_set): Likewise for local "other_insn".
9225         (recog_for_combine): Likewise for param "insn".
9226         (record_value_for_reg): Likewise.
9227         (record_dead_and_set_regs_1): Likewise for local
9228         "record_dead_insn".
9229         (record_dead_and_set_regs): Likewise for param "insn".
9230         (record_promoted_value): Likewise.
9231         (check_promoted_subreg): Likewise.
9232         (get_last_value_validate): Likewise.
9233         (reg_dead_at_p): Likewise.
9234         (move_deaths): Likewise for param "to_insn".
9235         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
9236         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
9237         in favor of new locals "tem_note" and "tem_insn", the latter being
9238         an rtx_insn *.
9239         (distribute_links): Strengthen locals "place", "insn" from rtx to
9240         rtx_insn *.
9241
9242 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9243
9244         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
9245         than a const_rtx.
9246         (can_delete_label_p): Require a const rtx_code_label * rather than
9247         a const_rtx.
9248         (delete_insn): Add checked cast to rtx_code_label * when we know
9249         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
9250         rtx to rtx_insn *.
9251         (delete_insn_chain): Strengthen locals "prev" and "current" from
9252         rtx to rtx_insn *.  Add a checked cast when assigning from
9253         "finish" (strengthening the params will come later).  Add a
9254         checked cast to rtx_note * in region where we know
9255         NOTE_P (current).
9256         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
9257         rtx_insn *.
9258         (compute_bb_for_insn): Likewise.
9259         (free_bb_for_insn): Likewise for local "insn".
9260         (compute_bb_for_insn): Likewise.
9261         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
9262         local "insn" from rtx to rtx_insn *
9263         (flow_active_insn_p): Require a const rtx_insn * rather than a
9264         const_rtx.
9265         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
9266         rtx_insn *.
9267         (can_fallthru): Likewise for locals "insn" and "insn2".
9268         (bb_note): Likewise for local "note".
9269         (first_insn_after_basic_block_note): Likewise for local "note" and
9270         for return type.
9271         (rtl_split_block): Likewise for locals "insn" and "next".
9272         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
9273         "end".
9274         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
9275         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
9276         "prev", "tmp".
9277         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
9278         them), "kill_from", "barrier", "new_insn".
9279         (patch_jump_insn): Likewise for params "insn", "old_label".
9280         (redirect_branch_edge): Likewise for locals "old_label", "insn".
9281         (force_nonfallthru_and_redirect): Likewise for locals "insn",
9282         "old_label", "new_label".
9283         (rtl_tidy_fallthru_edge): Likewise for local "q".
9284         (rtl_split_edge): Likewise for locals "before", "last".
9285         (commit_one_edge_insertion): Likewise for locals "before",
9286         "after", "insns", "tmp", "last", adding a checked cast where
9287         currently necessary.
9288         (commit_edge_insertions): Likewise.
9289         (rtl_dump_bb): Likewise for locals "insn", "last".
9290         (print_rtl_with_bb): Likewise for local "x".
9291         (rtl_verify_bb_insns): Likewise for local "x".
9292         (rtl_verify_bb_pointers): Likewise for local "insn".
9293         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
9294         "head", "end".
9295         (rtl_verify_fallthru): Likewise for local "insn".
9296         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
9297         (purge_dead_edges): Likewise for local "insn".
9298         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
9299         (skip_insns_after_block): Likewise for return type and for locals
9300         "insn", "last_insn", "next_head", "prev".
9301         (record_effective_endpoints): Likewise for locals "next_insn",
9302         "insn", "end".
9303         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
9304         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
9305         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
9306         (duplicate_insn_chain): For now, add checked cast from rtx to
9307         rtx_insn * when returning insn.
9308         (cfg_layout_duplicate_bb): Likewise for local "insn".
9309         (cfg_layout_delete_block): Likewise for locals "insn", "next",
9310         "prev", "remaints".
9311         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
9312         (rtl_block_empty_p): Likewise.
9313         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
9314         "split_point", "last".
9315         (rtl_block_ends_with_call_p): Likewise for local "insn".
9316         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
9317         const rtx_insn *.
9318         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
9319         "split_at_insn" from rtx to rtx_insn *.
9320         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
9321         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
9322         to const rtx_insn *.
9323         (rtl_account_profile_record): Likewise.
9324
9325 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9326
9327         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
9328         rtx to rtx_insn *.
9329         (average_num_loop_insns): Likewise.
9330         (init_set_costs): Likewise for local "seq".
9331         (seq_cost): Likewise for param "seq", from const_rtx to const
9332         rtx_insn *.
9333
9334 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9335
9336         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
9337         rtx to rtx_insn *.
9338
9339 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9340
9341         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
9342         "f1" and "f2" from rtx * to rtx_insn **.
9343         (flow_find_head_matching_sequence): Likewise.
9344
9345         * cfgcleanup.c (try_simplify_condjump): Strengthen local
9346         "cbranch_insn" from rtx to rtx_insn *.
9347         (thread_jump): Likewise for local "insn".
9348         (try_forward_edges): Likewise for local "last".
9349         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
9350         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
9351         "real_b_end".
9352         (can_replace_by): Likewise for params "i1", "i2".
9353         (old_insns_match_p): Likewise.
9354         (merge_notes): Likewise.
9355         (walk_to_nondebug_insn): Likewise for param "i1".
9356         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
9357         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
9358         "afterlast1", "afterlast2" from rtx to rtx_insn *.
9359         (flow_find_head_matching_sequence): Strengthen params "f1" and
9360         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
9361         "last1", "last2", "beforelast1", "beforelast2" from rtx to
9362         rtx_insn *.
9363         (outgoing_edges_match): Likewise for locals "last1", "last2".
9364         (try_crossjump_to_edge): Likewise for local "insn".
9365         Replace call to for_each_rtx with for_each_rtx_in_insn.
9366
9367         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
9368         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
9369         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
9370         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
9371         (try_optimize_cfg): Strengthen local "last" from rtx to
9372         rtx_insn *.
9373         (delete_dead_jumptables): Likewise for locals "insn", "next",
9374         "label".
9375
9376         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
9377         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
9378         "rtx else_first_tail", to reflect the basic-block.h changes above.
9379
9380 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9381
9382         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
9383         rtx_insn *.
9384         (purge_dead_tablejump_edges): Likewise.
9385         (find_bb_boundaries): Likewise for locals "insn", "end",
9386         "flow_transfer_insn".
9387
9388 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9389
9390         * caller-save.c (save_call_clobbered_regs): Strengthen locals
9391         "ins" and "prev" from rtx to rtx_insn *.
9392
9393 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9394
9395         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
9396         rtx_insn *.
9397         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
9398         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
9399         "scan_start".
9400         (load_register_parameters): Likewise for local "before_arg".
9401         (check_sibcall_argument_overlap): Likewise for param "insn".
9402         (expand_call): Likewise for locals "normal_call_insns",
9403         "tail_call_insns", "insns", "before_call", "after_args",
9404         "before_arg", "last", "prev".  Strengthen one of the "last" from
9405         rtx to rtx_call_insn *.
9406         (fixup_tail_calls): Strengthen local "insn" from rtx to
9407         rtx_insn *.
9408         (emit_library_call_value_1): Likewise for locals "before_call" and
9409         "last".
9410
9411 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9412
9413         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
9414         and "last" from rtx to rtx_insn *.
9415         (expand_builtin_nonlocal_goto): Likewise for local "insn".
9416         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
9417         rtx_call_insn *.
9418         (expand_errno_check): Strengthen local "lab" from rtx to
9419         rtx_code_label *.
9420         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
9421         rtx_insn *.
9422         (expand_builtin_mathfn_2): Likewise.
9423         (expand_builtin_mathfn_ternary): Likewise.
9424         (expand_builtin_mathfn_3): Likewise.
9425         (expand_builtin_interclass_mathfn): Likewise for local "last".
9426         (expand_builtin_int_roundingfn): Likewise for local "insns".
9427         (expand_builtin_int_roundingfn_2): Likewise.
9428         (expand_builtin_strlen): Likewise for local "before_strlen".
9429         (expand_builtin_strncmp): Likewise for local "seq".
9430         (expand_builtin_signbit): Likewise for local "last".
9431         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
9432         from rtx to rtx_code_label *.
9433         (expand_stack_restore):  Strengthen local "prev" from rtx to
9434         rtx_insn *.
9435
9436 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9437
9438         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
9439         to rtx_insn *.
9440         (struct btr_def_s): Likewise.
9441         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
9442         const rtx_insn *.
9443         (add_btr_def): Likewise.
9444         (new_btr_user): Likewise.
9445         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
9446         rtx to rtx_insn *.
9447         (link_btr_uses): Likewise.
9448         (move_btr_def): Likewise for locals "insp", "old_insn",
9449         "new_insn".  Add checked cast to rtx_insn * for now on result of
9450         gen_move_insn.
9451         (can_move_up): Strengthen param "insn" from const_rtx to
9452         const rtx_insn *.
9453
9454 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9455
9456         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
9457         rtx_insn *.
9458         (get_uncond_jump_length): Likewise for locals "label", "jump".
9459         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
9460         "jump", "insn".
9461         (add_labels_and_missing_jumps): Likewise for local "new_jump".
9462         (fix_up_fall_thru_edges): Likewise for local "old_jump".
9463         (find_jump_block): Likewise for local "insn".
9464         (fix_crossing_conditional_branches): Likewise for locals
9465         "old_jump", "new_jump".
9466         (fix_crossing_unconditional_branches): Likewise for locals
9467         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
9468         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
9469
9470 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9471
9472         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
9473         rtx to rtx_insn *.
9474         (struct mem_insn): Likewise for field "insn".
9475         (reg_next_use): Strengthen from rtx * to rtx_insn **.
9476         (reg_next_inc_use): Likewise.
9477         (reg_next_def): Likewise.
9478         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
9479         from rtx to rtx_insn *.
9480         (move_insn_before): Likewise for param "next_insn" and local "insns".
9481         (attempt_change): Likewise for local "mov_insn".
9482         (try_merge): Likewise for param "last_insn".
9483         (get_next_ref): Likewise for return type and local "insn".
9484         Strengthen param "next_array" from rtx * to rtx_insn **.
9485         (parse_add_or_inc): Strengthen param "insn" from rtx to
9486         rtx_insn *.
9487         (find_inc): Likewise for locals "insn" and "other_insn" (three of
9488         the latter).
9489         (merge_in_block): Likewise for locals "insn", "curr",
9490         "other_insn".
9491         (pass_inc_dec::execute): Update allocations of the arrays to
9492         reflect the stronger types.
9493
9494 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9495
9496         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
9497         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
9498         from rtx to rtx_code_label *.
9499
9500 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9501
9502         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
9503         to rtx_insn *.
9504
9505 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9506
9507         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
9508         generated a warning and prevented bootstrapping the compiler.
9509
9510 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9511
9512         * rtl.h (delete_related_insns): Strengthen return type from rtx to
9513         rtx_insn *.
9514
9515         * jump.c (delete_related_insns): Likewise, also for locals "next"
9516         and "prev".
9517
9518 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9519
9520         * genautomata.c (output_internal_insn_latency_func): When writing
9521         the function "internal_insn_latency" to insn-automata.c,
9522         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
9523         allowing the optional guard function of (define_bypass) clauses to
9524         expect a pair of rtx_insn *, rather than a pair of rtx.
9525         (output_insn_latency_func): When writing the function
9526         "insn_latency", add an "uncast_" prefix to params "insn" and
9527         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
9528         using checked casts from the params, thus enabling the above
9529         change to the generated "internal_insn_latency" function.
9530
9531 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
9532
9533         PR tree-optimization/62091
9534         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
9535         handle correctly arrays.
9536         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
9537         inheritance binfos.
9538         (record_known_type): Walk into inner type.
9539         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
9540         condition on no type changes.
9541
9542 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9543
9544         * genattrtab.c (write_attr_get): Within the generated get_attr_
9545         functions, rename param "insn" to "uncast_insn" and reintroduce
9546         "insn" as an local rtx_insn * using a checked cast, so that "insn"
9547         is an rtx_insn * within insn-attrtab.c
9548
9549 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9550
9551         * output.h (peephole): Strengthen return type from rtx to
9552         rtx_insn *.
9553         * rtl.h (delete_for_peephole): Likewise for both params.
9554         * genpeep.c (main): In generated "peephole" function, strengthen
9555         return type and local "insn" from rtx to rtx_insn *.  For now,
9556         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
9557         rtx_insn *, with a checked cast.
9558         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
9559         locals "insn", "next", "prev" from rtx to rtx_insn *.
9560
9561 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
9562
9563         PR tree-optimization/62112
9564         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
9565         * gimple-iterator.h (gsi_replace): Return bool.
9566         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
9567         moved from ref_may_alias_global_p.
9568         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
9569         New overloads.
9570         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
9571         (stmt_kills_ref_p_1): Rename...
9572         (stmt_kills_ref_p): ... to this.
9573         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
9574         stmt_kills_ref_p): Declare.
9575         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
9576         Move the self-assignment case...
9577         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
9578
9579 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9580
9581         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9582
9583         * emit-rtl.c (try_split): Likewise, also for locals "before" and
9584         "after".  For now, don't strengthen param "trial", which requires
9585         adding checked casts when returning it.
9586
9587 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9588
9589         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9590         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
9591         "var_location" hook from rtx to rtx_insn *.
9592         (debug_nothing_rtx): Delete in favor of...
9593         (debug_nothing_rtx_code_label): New prototype.
9594         (debug_nothing_rtx_rtx): Delete unused prototype.
9595         (debug_nothing_rtx_insn): New prototype.
9596
9597         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9598         invoking debug_hooks->var_location (in two places, one in a NOTE
9599         case of a switch statement, the other guarded by a CALL_P
9600         conditional.  Add checked cast to rtx_code_label * when invoking
9601         debug_hooks->label (within CODE_LABEL case of switch statement).
9602
9603         * dbxout.c (dbx_debug_hooks): Update "label" hook from
9604         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
9605         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9606         (xcoff_debug_hooks): Likewise.
9607         * debug.c (do_nothing_debug_hooks): Likewise.
9608         (debug_nothing_rtx): Delete in favor of...
9609         (debug_nothing_rtx_insn): New function.
9610         (debug_nothing_rtx_rtx): Delete unused function.
9611         (debug_nothing_rtx_code_label): New function.
9612         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9613         debug_nothing_rtx to debug_nothing_rtx_code_label.
9614         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9615         to rtx_insn *.
9616         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9617         debug_nothing_rtx to debug_nothing_rtx_insn.
9618         (sdbout_label): Strengthen param "insn" from rtx to
9619         rtx_code_label *.
9620         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9621         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
9622         "var_location" hook from debug_nothing_rtx to
9623         debug_nothing_rtx_insn.
9624
9625 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9626
9627         * recog.h (insn_output_fn): Update this function typedef to match
9628         the changes below to the generated output functions, strengthening
9629         the 2nd param from rtx to rtx_insn *.
9630
9631         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9632         insn when invoking an output function, to match the new signature
9633         of insn_output_fn with a stronger second param.
9634
9635         * genconditions.c (write_header): In the generated code for
9636         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9637         to match the other changes in this patch.
9638
9639         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9640         the generated "gen_" functions from rtx to rtx_insn * within their
9641         implementations.
9642
9643         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9644         the subfunctions within the generated "recog_", "split", "peephole2"
9645         function trees from rtx to rtx_insn *.  For now, the top-level
9646         generated functions ("recog", "split", "peephole2") continue to
9647         take a plain rtx for "insn", to avoid introducing dependencies on
9648         other patches.  Rename this 2nd param from "insn" to
9649         "uncast_insn", and reintroduce "insn" as a local variable of type
9650         rtx_insn *, initialized at the top of the generated function with
9651         a checked cast on "uncast_insn".
9652         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9653         the generated "gen_" functions from rtx to rtx_insn * within their
9654         prototypes.
9655
9656         * genoutput.c (process_template): Strengthen the 2nd param within
9657         the generated "output_" functions "insn" from rtx to rtx_insn *.
9658
9659 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9660
9661         * tree-profile.c (tree_profiling): Skip external functions
9662         when doing coverage instrumentation.
9663         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9664
9665 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9666
9667         * config/rs6000/altivec.h (vec_cpsgn): New #define.
9668         (vec_mergee): Likewise.
9669         (vec_mergeo): Likewise.
9670         (vec_cntlz): Likewise.
9671         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9672         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9673         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9674         VMRGEW, and VMRGOW.
9675         * doc/extend.texi: Document various forms of vec_cpsgn,
9676         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9677         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9678         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9679         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9680         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9681
9682 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9683
9684         * config/rs6000/rs6000.c (context.h): New include.
9685         (tree-pass.h): Likewise.
9686         (make_pass_analyze_swaps): New decl.
9687         (rs6000_option_override): Register pass_analyze_swaps.
9688         (swap_web_entry): New subsclass of web_entry_base (df.h).
9689         (special_handling_values): New enum.
9690         (union_defs): New function.
9691         (union_uses): Likewise.
9692         (insn_is_load_p): Likewise.
9693         (insn_is_store_p): Likewise.
9694         (insn_is_swap_p): Likewise.
9695         (rtx_is_swappable_p): Likewise.
9696         (insn_is_swappable_p): Likewise.
9697         (chain_purpose): New enum.
9698         (chain_contains_only_swaps): New function.
9699         (mark_swaps_for_removal): Likewise.
9700         (swap_const_vector_halves): Likewise.
9701         (adjust_subreg_index): Likewise.
9702         (permute_load): Likewise.
9703         (permute_store): Likewise.
9704         (handle_special_swappables): Likewise.
9705         (replace_swap_with_copy): Likewise.
9706         (dump_swap_insn_table): Likewise.
9707         (rs6000_analyze_swaps): Likewise.
9708         (pass_data_analyze_swaps): New pass_data.
9709         (pass_analyze_swaps): New rtl_opt_pass.
9710         (make_pass_analyze_swaps): New function.
9711         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9712
9713 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9714
9715         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9716         type from rtx to rtx_insn *.
9717         (create_copy_of_insn_rtx): Likewise.
9718         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9719         (create_copy_of_insn_rtx): Likewise, also for local "res".
9720
9721 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9722
9723         * rtl.h (find_first_parameter_load): Strengthen return type from
9724         rtx to rtx_insn *.
9725         * rtlanal.c (find_first_parameter_load): Strengthen return type
9726         from rtx to rtx_insn *.  Add checked cast for now, to postpone
9727         strengthening the params.
9728
9729 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9730
9731         PR fortran/44054
9732         * diagnostic.c: Set default caret.
9733         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9734         line is needed.
9735         * diagnostic.h (struct diagnostic_context):
9736
9737 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9738
9739         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9740         (sel_bb_head): Strengthen return type insn_t (currently just an
9741         rtx) to rtx_insn *.
9742         (sel_bb_end): Likewise.
9743
9744         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9745         (sel_bb_head): Strengthen return type and local "head" from
9746         insn_t (currently just an rtx) to rtx_insn *.
9747         (sel_bb_end): Likewise for return type.
9748         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9749         working with insn.
9750
9751 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9752
9753         * basic-block.h (get_last_bb_insn): Strengthen return type from
9754         rtx to rtx_insn *.
9755         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9756         end".
9757
9758 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9759
9760         PR fortran/44054
9761         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9762          to here ...
9763         (diagnostic_report_diagnostic): ... from here.
9764         * toplev.c (general_init): Move code to c-family.
9765
9766 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9767
9768         * df.h (web_entry_base): Replace existing struct web_entry with a
9769         new class web_entry_base with only the predecessor member.
9770         (unionfind_root): Remove declaration and move to class member.
9771         (unionfind_union): Remove declaration and move to friend
9772         function.
9773         (union_defs): Remove declaration.
9774         * web.c (web_entry_base::unionfind_root): Modify to be member
9775         function and adjust accessors.
9776         (unionfind_union): Modify to be friend function and adjust
9777         accessors.
9778         (web_entry): New subclass of web_entry_base containing the reg
9779         member.
9780         (union_match_dups): Modify for struct -> class changes.
9781         (union_defs): Likewise.
9782         (entry_register): Likewise.
9783         (pass_web::execute): Likewise.
9784
9785 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
9786
9787         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9788         builtin define __VEC_ELEMENT_REG_ORDER__.
9789
9790 2014-08-20  Martin Jambor  <mjambor@suse.cz>
9791             Wei Mi  <wmi@google.com>
9792
9793         PR ipa/60449
9794         PR middle-end/61776
9795         * tree-ssa-operands.c (update_stmt_operands): Remove
9796         MODIFIED_NORETURN_CALLS.
9797         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9798         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9799         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9800         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9801         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9802         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9803         (gimple_call_set_ctrl_altering): New func.
9804         (gimple_call_ctrl_altering_p): Ditto.
9805         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9806         (make_blocks): Use gimple_call_initialize_ctrl_altering.
9807         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9808         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9809         remove MODIFIED_NORETURN_CALLS.
9810
9811 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9812
9813         * coverage.c (coverage_compute_profile_id): Return non-0;
9814         also handle symbols with unique name.
9815         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9816
9817 2014-08-20  Steve Ellcey  <sellcey@mips.com>
9818
9819         PR middle-end/49191
9820         * doc/sourcebuild.texi (non_strict_align): New.
9821
9822 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9823
9824         * cgraphunit.c (ipa_passes, compile): Reshedule
9825         symtab_remove_unreachable_nodes passes; update comments.
9826         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9827         TODO_remove_functions before the pass; the functions ought to be
9828         already removed.
9829         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9830         TODO_remove_functions.
9831         * passes.c (pass_data_early_local_passes): Do not schedule function
9832         removal.
9833         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9834
9835 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9836
9837         PR c/59304
9838         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9839         before setting the option.
9840         * diagnostic.c (diagnostic_classify_diagnostic): Record
9841         command-line status.
9842
9843 2014-08-20  Richard Biener  <rguenther@suse.de>
9844
9845         PR lto/62190
9846         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9847         to build uint{16,32,64}_type_node.
9848
9849 2014-08-20  Terry Guo  <terry.guo@arm.com>
9850
9851         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9852         with immediate_operand.
9853
9854 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
9855
9856         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9857         "insn" from an as_a to a safe_as_a, for the case when "insn" is
9858         NULL.
9859
9860 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9861
9862         PR preprocessor/51303
9863         * incpath.c (remove_duplicates): Use cpp_warning.
9864
9865 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9866
9867         PR c/60975
9868         PR c/53063
9869         * doc/options.texi (CPP): Document it.
9870         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9871         * optc-gen.awk: Handle CPP.
9872         * opth-gen.awk: Likewise.
9873
9874 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9875
9876         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9877         rtx_insn *.
9878         (duplicate_insn_chain): Likewise.
9879         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9880         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
9881         checked cast for now (until we can strengthen the params in the
9882         same way).
9883         (duplicate_insn_chain): Likewise.
9884
9885 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9886
9887         * rtl.h (next_cc0_user): Strengthen return type from rtx to
9888         rtx_insn *.
9889         (prev_cc0_setter): Likewise.
9890
9891         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9892         rtx_insn *, adding checked casts for now as necessary.
9893         (prev_cc0_setter): Likewise.
9894
9895 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9896
9897         * expr.h (emit_move_insn): Strengthen return type from rtx to
9898         rtx_insn *.
9899         (emit_move_insn_1): Likewise.
9900         (emit_move_complex_push): Likewise.
9901         (emit_move_complex_parts): Likewise.
9902
9903         * expr.c (emit_move_via_integer): Strengthen return type from rtx
9904         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
9905         with insns.
9906         (emit_move_complex_push): Strengthen return type from rtx to
9907         rtx_insn *.
9908         (emit_move_complex): Likewise, also for local "ret".
9909         (emit_move_ccmode): Likewise.
9910         (emit_move_multi_word): Likewise for return type and locals
9911         "last_insn", "seq".
9912         (emit_move_insn_1): Likewise for return type and locals "result",
9913         "ret".
9914         (emit_move_insn): Likewise for return type and local "last_insn".
9915         (compress_float_constant): Likewise.
9916
9917 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9918
9919         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9920         from rtx to rtx_insn *.
9921
9922         * rtl.h (emit_insn_before): Likewise.
9923         (emit_insn_before_noloc): Likewise.
9924         (emit_insn_before_setloc): Likewise.
9925         (emit_jump_insn_before): Likewise.
9926         (emit_jump_insn_before_noloc): Likewise.
9927         (emit_jump_insn_before_setloc): Likewise.
9928         (emit_call_insn_before): Likewise.
9929         (emit_call_insn_before_noloc): Likewise.
9930         (emit_call_insn_before_setloc): Likewise.
9931         (emit_debug_insn_before): Likewise.
9932         (emit_debug_insn_before_noloc): Likewise.
9933         (emit_debug_insn_before_setloc): Likewise.
9934         (emit_label_before): Likewise.
9935         (emit_insn_after): Likewise.
9936         (emit_insn_after_noloc): Likewise.
9937         (emit_insn_after_setloc): Likewise.
9938         (emit_jump_insn_after): Likewise.
9939         (emit_jump_insn_after_noloc): Likewise.
9940         (emit_jump_insn_after_setloc): Likewise.
9941         (emit_call_insn_after): Likewise.
9942         (emit_call_insn_after_noloc): Likewise.
9943         (emit_call_insn_after_setloc): Likewise.
9944         (emit_debug_insn_after): Likewise.
9945         (emit_debug_insn_after_noloc): Likewise.
9946         (emit_debug_insn_after_setloc): Likewise.
9947         (emit_label_after): Likewise.
9948         (emit_insn): Likewise.
9949         (emit_debug_insn): Likewise.
9950         (emit_jump_insn): Likewise.
9951         (emit_call_insn): Likewise.
9952         (emit_label): Likewise.
9953         (gen_clobber): Likewise.
9954         (emit_clobber): Likewise.
9955         (gen_use): Likewise.
9956         (emit_use): Likewise.
9957         (emit): Likewise.
9958
9959         (emit_barrier_before): Strengthen return type from rtx to
9960         rtx_barrier *.
9961         (emit_barrier_after): Likewise.
9962         (emit_barrier): Likewise.
9963
9964         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
9965         from rtx to rtx_insn *.  Add checked casts for now when converting
9966         "last" from rtx to rtx_insn *.
9967         (emit_insn_before_noloc): Likewise for return type.
9968         (emit_jump_insn_before_noloc): Likewise.
9969         (emit_call_insn_before_noloc): Likewise.
9970         (emit_debug_insn_before_noloc): Likewise.
9971         (emit_barrier_before): Strengthen return type and local "insn"
9972         from rtx to rtx_barrier *.
9973         (emit_label_before): Strengthen return type from rtx to
9974         rtx_insn *.  Add checked cast for now when returning param
9975         (emit_pattern_after_noloc): Strengthen return type from rtx to
9976         rtx_insn *.  Add checked casts for now when converting "last" from
9977         rtx to rtx_insn *.
9978         (emit_insn_after_noloc): Strengthen return type from rtx to
9979         rtx_insn *.
9980         (emit_jump_insn_after_noloc): Likewise.
9981         (emit_call_insn_after_noloc): Likewise.
9982         (emit_debug_insn_after_noloc): Likewise.
9983         (emit_barrier_after): Strengthen return type from rtx to
9984         rtx_barrier *.
9985         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9986         Add checked cast for now when converting "label" from rtx to
9987         rtx_insn *.
9988         (emit_pattern_after_setloc): Strengthen return type from rtx to
9989         rtx_insn *.  Add checked casts for now when converting "last" from
9990         rtx to rtx_insn *.
9991         (emit_pattern_after): Strengthen return type from rtx to
9992         rtx_insn *.
9993         (emit_insn_after_setloc): Likewise.
9994         (emit_insn_after): Likewise.
9995         (emit_jump_insn_after_setloc): Likewise.
9996         (emit_jump_insn_after): Likewise.
9997         (emit_call_insn_after_setloc): Likewise.
9998         (emit_call_insn_after): Likewise.
9999         (emit_debug_insn_after_setloc): Likewise.
10000         (emit_debug_insn_after): Likewise.
10001         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
10002         when converting "last" from rtx to rtx_insn *.
10003         (emit_pattern_before): Strengthen return type from rtx to
10004         rtx_insn *.
10005         (emit_insn_before_setloc): Likewise.
10006         (emit_insn_before): Likewise.
10007         (emit_jump_insn_before_setloc): Likewise.
10008         (emit_jump_insn_before): Likewise.
10009         (emit_call_insn_before_setloc): Likewise.
10010         (emit_call_insn_before): Likewise.
10011         (emit_debug_insn_before_setloc): Likewise.
10012         (emit_debug_insn_before): Likewise.
10013         (emit_insn): Strengthen return type and locals "last", "insn",
10014         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
10015         within cases where we know we have an insn.
10016         (emit_debug_insn): Likewise.
10017         (emit_jump_insn): Likewise.
10018         (emit_call_insn): Strengthen return type and local "insn" from rtx
10019         to rtx_insn *.
10020         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
10021         a checked cast to rtx_insn * for now on "label".
10022         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
10023         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
10024         (emit_use): Likewise.
10025         (gen_use): Likewise, also for local "seq".
10026         (emit): Likewise for return type and local "insn".
10027         (rtx_insn): Likewise for return type and local "new_rtx".
10028
10029         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
10030         from rtx to rtx_barrier *.
10031
10032         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
10033         changed return type from rtx to rtx_insn *, we must update
10034         "emit_fn" type, and this in turn means updating...
10035         (frame_insn): ...this.  Strengthen return type from rtx to
10036         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
10037
10038 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10039
10040         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
10041         rtx to rtx_jump_table_data *.  Also for local.
10042         * rtl.h (emit_jump_table_data): Likewise.
10043
10044 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10045
10046         * basic-block.h (create_basic_block_structure): Strengthen third
10047         param "bb_note" from rtx to rtx_note *.
10048         * rtl.h (emit_note_before): Strengthen return type from rtx to
10049         rtx_note *.
10050         (emit_note_after): Likewise.
10051         (emit_note): Likewise.
10052         (emit_note_copy): Likewise.  Also, strengthen param similarly.
10053         * function.h (struct rtl_data): Strengthen field
10054         "x_stack_check_probe_note" from rtx to rtx_note *.
10055
10056         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
10057         from rtx to rtx_note *.
10058         * cfgrtl.c (create_basic_block_structure): Strengthen third param
10059         "bb_note" from rtx to rtx_note *.
10060         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
10061         when calling emit_note_copy.
10062         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
10063         rtx_note *.
10064         (emit_note_after): Likewise.
10065         (emit_note_before): Likewise.
10066         (emit_note_copy): Likewise.  Also, strengthen param similarly.
10067         (emit_note): Likewise.
10068         * except.c (emit_note_eh_region_end): Likewise for return type.
10069         Strengthen local "next" from rtx to rtx_insn *.
10070         (convert_to_eh_region_ranges): Strengthen local "note"
10071         from rtx to rtx_note *.
10072         * final.c (change_scope): Likewise.
10073         (reemit_insn_block_notes): Likewise, for both locals named "note".
10074         Also, strengthen local "insn" from rtx to rtx_insn *.
10075         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
10076         rtx to rtx_note *.
10077         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
10078         strengthen local "seq" from rtx to rtx_insn *.
10079         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
10080         to rtx_note *.
10081         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
10082         vec<rtx_note *>.
10083         (get_bb_note_from_pool): Strengthen return type from rtx to
10084         rtx_note *.
10085         (sel_create_basic_block): Strengthen local "new_bb_note" from
10086         insn_t to rtx_note *.
10087         * var-tracking.c (emit_note_insn_var_location): Strengthen local
10088         "note" from rtx to rtx_note *.
10089         (emit_notes_in_bb): Likewise.
10090
10091 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10092
10093         * function.h (struct rtl_data): Strengthen field
10094         "x_parm_birth_insn" from rtx to rtx_insn *.
10095         * function.c (struct assign_parm_data_all): Strengthen fields
10096         "first_conversion_insn" and "last_conversion_insn" from rtx to
10097         rtx_insn *.
10098
10099 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10100
10101         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
10102         to rtx_insn *; also for local "var_end_seq".
10103         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
10104         (maybe_cleanup_end_of_block): Likewise for param "last" and local
10105         "insn".
10106         (expand_gimple_cond): Likewise for locals "last2" and "last".
10107         (mark_transaction_restart_calls): Likewise for local "insn".
10108         (expand_gimple_stmt): Likewise for return type and locals "last"
10109         and "insn".
10110         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
10111         (avoid_complex_debug_insns): Likewise for param "insn".
10112         (expand_debug_locations): Likewise for locals "insn", "last",
10113         "prev_insn" and "insn2".
10114         (expand_gimple_basic_block): Likewise for local "last".
10115         (construct_exit_block): Likewise for locals "head", "end",
10116         "orig_end".
10117         (pass_expand::execute): Likewise for locals "var_seq",
10118         "var_ret_seq", "next".
10119
10120 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10121
10122         * asan.h (asan_emit_stack_protection): Strengthen return type from
10123         rtx to rtx_insn *.
10124         * asan.c (asan_emit_stack_protection): Likewise.  Add local
10125         "insns" to hold the return value.
10126
10127 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10128
10129         * basic-block.h (bb_note): Strengthen return type from rtx to
10130         rtx_note *.
10131         * sched-int.h (bb_note): Likewise.
10132         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
10133
10134 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10135
10136         * rtl.h (make_insn_raw): Strengthen return type from rtx to
10137         rtx_insn *.
10138
10139         * emit-rtl.c (make_insn_raw): Strengthen return type and local
10140         "insn" from rtx to rtx_insn *.
10141         (make_debug_insn_raw): Strengthen return type from rtx to
10142         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
10143         (make_jump_insn_raw):  Strengthen return type from rtx to
10144         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
10145         (make_call_insn_raw):  Strengthen return type from rtx to
10146         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
10147         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
10148         callback from rtx to rtx_insn *; likewise for local "insn" and
10149         "next", adding a checked cast to rtx_insn in the relevant cases of
10150         the switch statement.
10151         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
10152         callback from rtx to rtx_insn *.
10153         (emit_pattern_after_setloc): Likewise.
10154         (emit_pattern_after): Likewise.
10155         (emit_pattern_before_setloc): Likewise.
10156         (emit_pattern_before): Likewise.
10157
10158 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10159
10160         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
10161         rtx_call_insn *.
10162         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
10163         accepting an rtx_insn *.
10164         (last_call_insn): Strengthen return type from rtx to
10165         rtx_call_insn *.
10166
10167 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10168
10169         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
10170         "insns" from rtx to rtx_insn *.
10171         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
10172         locals "insn" and "prev".
10173
10174 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10175
10176         * rtl.h (tablejump_p): Strengthen third param from rtx * to
10177         rtx_jump_table_data **.
10178
10179         * cfgbuild.c (make_edges): Introduce local "table", using it in
10180         place of "tmp" for jump table data.
10181         (find_bb_boundaries): Strengthen local "table" from rtx to
10182         rtx_jump_table_data *.
10183         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10184         (outgoing_edges_match): Likewise for locals "table1" and "table2".
10185         (try_crossjump_to_edge): Likewise.
10186         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
10187         "table".
10188         (patch_jump_insn): Introduce local "table", using it in place of
10189         "tmp" for jump table data.
10190         (force_nonfallthru_and_redirect): Introduce local "table", so that
10191         call to tablejump_p can receive an rtx_jump_table_data **.  Update
10192         logic around the call to overwrite "note" appropriately if
10193         tablejump_p returns non-zero.
10194         (get_last_bb_insn): Introduce local "table", using it in place of
10195         "tmp" for jump table data.
10196         * dwarf2cfi.c (create_trace_edges): Likewise.
10197
10198         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
10199         from rtx to rtx_jump_table_data *.
10200         (create_fix_barrier): Strengthen local "tmp" from rtx to
10201         rtx_jump_table_data *.
10202         (arm_reorg): Likewise for local "table".
10203
10204         * config/s390/s390.c (s390_chunkify_start): Likewise.
10205
10206         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
10207
10208         * jump.c (delete_related_insns): Strengthen local "lab_next" from
10209         rtx to rtx_jump_table_data *.
10210
10211         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
10212         rtx_jump_table_data **.  Add a checked cast when writing through
10213         the pointer: we know there that local "table" is non-NULL and that
10214         JUMP_TABLE_DATA_P (table) holds.
10215         (label_is_jump_target_p): Introduce local "table", using it in
10216         place of "tmp" for jump table data.
10217
10218 2014-08-19  Marek Polacek  <polacek@redhat.com>
10219
10220         PR c++/62153
10221         * doc/invoke.texi: Document -Wbool-compare.
10222
10223 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10224
10225         * rtl.h (entry_of_function): Strengthen return type from rtx to
10226         rtx_insn *.
10227         * cfgrtl.c (entry_of_function): Likewise.
10228
10229 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10230
10231         * emit-rtl.h (get_insns): Strengthen return type from rtx to
10232         rtx_insn *, adding a checked cast for now.
10233         (get_last_insn): Likewise.
10234
10235 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10236
10237         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
10238         rtx_code_label *.
10239
10240         * emit-rtl.c (gen_label_rtx): Likewise.
10241
10242 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10243
10244         * rtl.h (previous_insn): Strengthen return type from rtx to
10245         rtx_insn *.
10246         (next_insn): Likewise.
10247         (prev_nonnote_insn): Likewise.
10248         (prev_nonnote_insn_bb): Likewise.
10249         (next_nonnote_insn): Likewise.
10250         (next_nonnote_insn_bb): Likewise.
10251         (prev_nondebug_insn): Likewise.
10252         (next_nondebug_insn): Likewise.
10253         (prev_nonnote_nondebug_insn): Likewise.
10254         (next_nonnote_nondebug_insn): Likewise.
10255         (prev_real_insn): Likewise.
10256         (next_real_insn): Likewise.
10257         (prev_active_insn): Likewise.
10258         (next_active_insn): Likewise.
10259
10260         * emit-rtl.c (next_insn): Strengthen return type from rtx to
10261         rtx_insn *, adding a checked cast.
10262         (previous_insn): Likewise.
10263         (next_nonnote_insn): Likewise.
10264         (next_nonnote_insn_bb): Likewise.
10265         (prev_nonnote_insn): Likewise.
10266         (prev_nonnote_insn_bb): Likewise.
10267         (next_nondebug_insn): Likewise.
10268         (prev_nondebug_insn): Likewise.
10269         (next_nonnote_nondebug_insn): Likewise.
10270         (prev_nonnote_nondebug_insn): Likewise.
10271         (next_real_insn): Likewise.
10272         (prev_real_insn): Likewise.
10273         (next_active_insn): Likewise.
10274         (prev_active_insn): Likewise.
10275
10276         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
10277         param "stepfunc" so that it returns an rtx_insn * rather than an
10278         rtx, to track the change to prev_nonnote_insn_bb, which is the
10279         only function this is called with.
10280         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
10281
10282 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
10283
10284         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
10285         assert.
10286
10287 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10288
10289         * coretypes.h (class rtx_debug_insn): Add forward declaration.
10290         (class rtx_nonjump_insn): Likewise.
10291         (class rtx_jump_insn): Likewise.
10292         (class rtx_call_insn): Likewise.
10293         (class rtx_jump_table_data): Likewise.
10294         (class rtx_barrier): Likewise.
10295         (class rtx_code_label): Likewise.
10296         (class rtx_note): Likewise.
10297
10298         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
10299         adding the invariant DEBUG_INSN_P (X).
10300         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
10301         the invariant NONJUMP_INSN_P (X).
10302         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
10303         the invariant JUMP_P (X).
10304         (class rtx_call_insn): New, a subclass of rtx_insn, adding
10305         the invariant CALL_P (X).
10306         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
10307         invariant JUMP_TABLE_DATA_P (X).
10308         (class rtx_barrier): New, a subclass of rtx_insn, adding the
10309         invariant BARRIER_P (X).
10310         (class rtx_code_label): New, a subclass of rtx_insn, adding
10311         the invariant LABEL_P (X).
10312         (class rtx_note): New, a subclass of rtx_insn, adding
10313         the invariant NOTE_P(X).
10314         (is_a_helper <rtx_debug_insn *>::test): New.
10315         (is_a_helper <rtx_nonjump_insn *>::test): New.
10316         (is_a_helper <rtx_jump_insn *>::test): New.
10317         (is_a_helper <rtx_call_insn *>::test): New.
10318         (is_a_helper <rtx_jump_table_data *>::test): New functions,
10319         overloaded for both rtx and rtx_insn *.
10320         (is_a_helper <rtx_barrier *>::test): New.
10321         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
10322         for both rtx and rtx_insn *.
10323         (is_a_helper <rtx_note *>::test): New.
10324
10325 2014-08-19  Marek Polacek  <polacek@redhat.com>
10326
10327         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
10328         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10329         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
10330         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10331
10332 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10333
10334         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
10335         rtx_insn *.  To help with transition, for now, convert from an
10336         access macro into a pair of functions: BND_TO, returning an
10337         rtx_insn *, and...
10338         (SET_BND_TO): New function, for use where BND_TO is used as an
10339         lvalue.
10340
10341         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
10342         SET_BND_TO.
10343         (BND_TO): New function, adding a checked cast.
10344         (SET_BND_TO): New function.
10345
10346         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
10347         SET_BND_TO.
10348         (compute_av_set_on_boundaries): Likewise.
10349
10350 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
10351
10352         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
10353         destination if it is used in source.
10354         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
10355         (*popcount<mode>2_falsedep_1): Likewise.
10356
10357 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
10358
10359         PR other/62168
10360         * configure.ac: Set install_gold_as_default to no first.
10361         * configure: Regenerated.
10362
10363 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10364
10365         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
10366         "note_list" field will eventually be an rtx_insn *.  To help with
10367         transition, for now, convert from an access macro into a pair of
10368         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
10369         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
10370         used as an lvalue.
10371
10372         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
10373         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
10374
10375         * sel-sched-ir.c (init_bb): Likewise.
10376         (sel_restore_notes): Likewise.
10377         (move_bb_info): Likewise.
10378         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
10379         (SET_BB_NOTE_LIST): New function.
10380
10381 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10382
10383         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
10384         field will eventually be an rtx_insn *.  To help with transition,
10385         for now, convert from an access macro into a pair of functions:
10386         VINSN_INSN_RTX, returning an rtx_insn *, and...
10387         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
10388         is used as an lvalue.
10389
10390         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
10391         SET_VINSN_INSN_RTX where it's used as an lvalue.
10392         (VINSN_INSN_RTX): New function.
10393         (SET_VINSN_INSN_RTX): New function.
10394
10395 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10396
10397         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
10398         eventually be rtx_insn *, but to help with transition, for now,
10399         convert from an access macro into a pair of functions: DEP_PRO
10400         returning an rtx_insn * and...
10401         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
10402         lvalue, returning an rtx&.
10403         (DEP_CON): Analogous changes to DEP_PRO above.
10404         (SET_DEP_CON): Likewise.
10405
10406         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
10407         an lvalue to SET_DEP_CON.
10408         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
10409         (sd_copy_back_deps): Likewise for DEP_CON.
10410         (DEP_PRO): New function, adding a checked cast for now.
10411         (DEP_CON): Likewise.
10412         (SET_DEP_PRO): New function.
10413         (SET_DEP_CON): Likewise.
10414
10415 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
10416
10417         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
10418         (extra_options): Add i386/cygwin.opt.
10419         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
10420         (CPP_SPEC): Accept -pthread.
10421         (LINK_SPEC): Ditto.
10422         (GOMP_SELF_SPECS): Update comment.
10423         * config/i386/cygwin.opt: New file for -pthread flag.
10424
10425 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10426
10427         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
10428         * df.h (DF_REF_INSN): Convert from a macro to a function, so
10429         that we can return an rtx_insn *.
10430
10431 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
10432
10433         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
10434         when building executables, not DLLs.  Add --large-address-aware
10435         under the same conditions.
10436         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
10437         when building executables, not DLLs.  Add --large-address-aware
10438         under the same conditions when using -m32.
10439
10440         * config/i386/cygwin-stdint.h: Throughout, make type
10441         definitions dependent on target architecture, not host.
10442
10443 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10444
10445         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
10446         the return type from rtx to rtx_insn *,  which will enable various
10447         conversions in followup patches.  For now this is is done by a
10448         checked cast.
10449         (NEXT_INSN): Likewise.
10450         (SET_PREV_INSN): Convert to an inline function.  This is intended
10451         for use as an lvalue, and so returns an rtx& to allow in-place
10452         modification.
10453         (SET_NEXT_INSN): Likewise.
10454
10455 2014-07-08  Mark Wielaard  <mjw@redhat.com>
10456
10457         PR debug/59051
10458         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
10459
10460 2014-08-19  Marek Polacek  <polacek@redhat.com>
10461
10462         PR c/61271
10463         * cgraphunit.c (handle_alias_pairs): Fix condition.
10464
10465 2014-08-19  Richard Biener  <rguenther@suse.de>
10466
10467         * gimple-fold.c (fold_gimple_assign): Properly build a
10468         null-pointer constant when devirtualizing addresses.
10469
10470 2014-07-07  Mark Wielaard  <mjw@redhat.com>
10471
10472         * dwarf2out.c (decl_quals): New function.
10473         (modified_type_die): Take one cv_quals argument instead of two,
10474         one for const and one for volatile.
10475         (add_type_attribute): Likewise.
10476         (generic_parameter_die): Call add_type_attribute with one modifier
10477         argument.
10478         (base_type_for_mode): Likewise.
10479         (add_bounds_info): Likewise.
10480         (add_subscript_info): Likewise.
10481         (gen_array_type_die): Likewise.
10482         (gen_descr_array_type_die): Likewise.
10483         (gen_entry_point_die): Likewise.
10484         (gen_enumeration_type_die): Likewise.
10485         (gen_formal_parameter_die): Likewise.
10486         (gen_subprogram_die): Likewise.
10487         (gen_variable_die): Likewise.
10488         (gen_const_die): Likewise.
10489         (gen_field_die): Likewise.
10490         (gen_pointer_type_die): Likewise.
10491         (gen_reference_type_die): Likewise.
10492         (gen_ptr_to_mbr_type_die): Likewise.
10493         (gen_inheritance_die): Likewise.
10494         (gen_subroutine_type_die): Likewise.
10495         (gen_typedef_die): Likewise.
10496         (force_type_die): Likewise.
10497
10498 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10499
10500         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
10501         if unset.
10502         * configure: Regenerate.
10503
10504 2014-08-19  Richard Biener  <rguenther@suse.de>
10505
10506         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
10507         DECL_EXTERNALs in BLOCKs as non-references.
10508         * tree-streamer-out.c (streamer_write_chain): Likewise.
10509
10510 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10511             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10512             Anna Tikhonova  <anna.tikhonova@intel.com>
10513             Ilya Tocar  <ilya.tocar@intel.com>
10514             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10515             Ilya Verbin  <ilya.verbin@intel.com>
10516             Kirill Yukhin  <kirill.yukhin@intel.com>
10517             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10518
10519         * config/i386/sse.md
10520         (define_mode_iterator VI48_AVX512F): Delete.
10521         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
10522         (define_mode_iterator VI2_AVX512VL): Ditto.
10523         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
10524         Delete.
10525         (define_insn
10526         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
10527         New.
10528         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
10529         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
10530         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10531         with VI48_AVX512F_AVX512VL): New.
10532         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10533         with VI2_AVX512VL): Ditto.
10534
10535 2014-08-19  Marek Polacek  <polacek@redhat.com>
10536
10537         * doc/invoke.texi: Document -Wc99-c11-compat.
10538
10539 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10540
10541         * rtl.h (PREV_INSN): Split macro in two: the existing one,
10542         for rvalues, and...
10543         (SET_PREV_INSN): New macro, for use as an lvalue.
10544         (NEXT_INSN, SET_NEXT_INSN): Likewise.
10545
10546         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
10547         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
10548         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10549         (fixup_abnormal_edges): Likewise.
10550         (unlink_insn_chain): Likewise.
10551         (fixup_reorder_chain): Likewise.
10552         (cfg_layout_delete_block): Likewise.
10553         (cfg_layout_merge_blocks): Likewise.
10554         * combine.c (update_cfg_for_uncondjump): Likewise.
10555         * emit-rtl.c (link_insn_into_chain): Likewise.
10556         (remove_insn): Likewise.
10557         (delete_insns_since): Likewise.
10558         (reorder_insns_nobb): Likewise.
10559         (emit_insn_after_1): Likewise.
10560         * final.c (rest_of_clean_state): Likewise.
10561         (final_scan_insn): Likewise.
10562         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
10563         * haifa-sched.c (concat_note_lists): Likewise.
10564         (remove_notes): Likewise.
10565         (restore_other_notes): Likewise.
10566         (move_insn): Likewise.
10567         (unlink_bb_notes): Likewise.
10568         (restore_bb_notes): Likewise.
10569         * jump.c (delete_for_peephole): Likewise.
10570         * optabs.c (emit_libcall_block_1): Likewise.
10571         * reorg.c (emit_delay_sequence): Likewise.
10572         (fill_simple_delay_slots): Likewise.
10573         * sel-sched-ir.c (sel_move_insn): Likewise.
10574         (sel_remove_insn): Likewise.
10575         (get_bb_note_from_pool): Likewise.
10576         * sel-sched.c (move_nop_to_previous_block): Likewise.
10577
10578         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
10579         * config/c6x/c6x.c (gen_one_bundle): Likewise.
10580         (c6x_gen_bundles): Likewise.
10581         (hwloop_optimize): Likewise.
10582         * config/frv/frv.c (frv_function_prologue): Likewise.
10583         (frv_register_nop): Likewise.
10584         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10585         (ia64_reorg): Likewise.
10586         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10587         (mep_make_bundle): Likewise.
10588         (mep_bundle_insns): Likewise.
10589         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10590         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10591         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10592
10593 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10594
10595         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
10596         return type from rtx to rtx_insn *.
10597         (BB_END): Likewise.
10598         (BB_HEADER): Likewise.
10599         (BB_FOOTER): Likewise.
10600         (SET_BB_HEAD): Convert to a function.
10601         (SET_BB_END): Likewise.
10602         (SET_BB_HEADER): Likewise.
10603         (SET_BB_FOOTER): Likewise.
10604
10605         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10606         Strengthen the return type from rtx to rtx_insn *.  For now, this
10607         is done by adding a checked cast, but this will eventually
10608         become a field lookup.
10609         (BB_END): Likewise.
10610         (BB_HEADER): Likewise.
10611         (BB_FOOTER): Likewise.
10612         (SET_BB_HEAD): New function, from macro of same name.  This is
10613         intended for use as an lvalue, and so returns an rtx& to allow
10614         in-place modification.
10615         (SET_BB_END): Likewise.
10616         (SET_BB_HEADER): Likewise.
10617         (SET_BB_FOOTER): Likewise.
10618
10619 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10620
10621         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10622         for rvalues, and...
10623         (SET_BB_HEAD): New macro, for use as a lvalue.
10624         (BB_END, SET_BB_END): Likewise.
10625         (BB_HEADER, SET_BB_HEADER): Likewise.
10626         (BB_FOOTER, SET_BB_FOOTER): Likewise.
10627
10628         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10629         of BB_* macros into SET_BB_* macros.
10630         (fix_crossing_unconditional_branches): Likewise.
10631         * caller-save.c (save_call_clobbered_regs): Likewise.
10632         (insert_one_insn): Likewise.
10633         * cfgbuild.c (find_bb_boundaries): Likewise.
10634         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10635         (outgoing_edges_match): Likewise.
10636         (try_optimize_cfg): Likewise.
10637         * cfgexpand.c (expand_gimple_cond): Likewise.
10638         (expand_gimple_tailcall): Likewise.
10639         (expand_gimple_basic_block): Likewise.
10640         (construct_exit_block): Likewise.
10641         * cfgrtl.c (delete_insn): Likewise.
10642         (create_basic_block_structure): Likewise.
10643         (rtl_delete_block): Likewise.
10644         (rtl_split_block): Likewise.
10645         (emit_nop_for_unique_locus_between): Likewise.
10646         (rtl_merge_blocks): Likewise.
10647         (block_label): Likewise.
10648         (try_redirect_by_replacing_jump): Likewise.
10649         (emit_barrier_after_bb): Likewise.
10650         (fixup_abnormal_edges): Likewise.
10651         (record_effective_endpoints): Likewise.
10652         (relink_block_chain): Likewise.
10653         (fixup_reorder_chain): Likewise.
10654         (fixup_fallthru_exit_predecessor): Likewise.
10655         (cfg_layout_duplicate_bb): Likewise.
10656         (cfg_layout_split_block): Likewise.
10657         (cfg_layout_delete_block): Likewise.
10658         (cfg_layout_merge_blocks): Likewise.
10659         * combine.c (update_cfg_for_uncondjump): Likewise.
10660         * emit-rtl.c (add_insn_after): Likewise.
10661         (remove_insn): Likewise.
10662         (reorder_insns): Likewise.
10663         (emit_insn_after_1): Likewise.
10664         * haifa-sched.c (get_ebb_head_tail): Likewise.
10665         (restore_other_notes): Likewise.
10666         (move_insn): Likewise.
10667         (sched_extend_bb): Likewise.
10668         (fix_jump_move): Likewise.
10669         * ifcvt.c (noce_process_if_block): Likewise.
10670         (dead_or_predicable): Likewise.
10671         * ira.c (update_equiv_regs): Likewise.
10672         * reg-stack.c (change_stack): Likewise.
10673         * sel-sched-ir.c (sel_move_insn): Likewise.
10674         * sel-sched.c (move_nop_to_previous_block): Likewise.
10675
10676         * config/c6x/c6x.c (hwloop_optimize): Likewise.
10677         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10678
10679 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10680
10681         * rtl.h (for_each_rtx_in_insn): New function.
10682         * rtlanal.c (for_each_rtx_in_insn): Likewise.
10683
10684 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10685
10686         * coretypes.h (class rtx_insn): Add forward declaration.
10687
10688         * rtl.h: Include is-a.h.
10689         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10690         workaround to ensure gengtype knows inheritance is occurring,
10691         whilst continuing to use the pre-existing special-casing for
10692         rtx_def.
10693         (class rtx_insn): New subclass of rtx_def, adding the
10694         invariant that we're dealing with something we can sanely use
10695         INSN_UID, NEXT_INSN, PREV_INSN on.
10696         (is_a_helper <rtx_insn *>::test): New.
10697         (is_a_helper <const rtx_insn *>::test): New.
10698
10699 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10700
10701         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10702
10703 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10704
10705         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10706         comdats as extern.
10707
10708 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10709
10710         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10711         to BUILT_IN_UNREACHABLE.
10712
10713 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
10714
10715         PR target/62011
10716         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10717         New tune flag.
10718         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10719         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10720         (ffs<mode>2): Do not expand with tzcnt for
10721         TARGET_AVOID_FALSE_DEP_FOR_BMI.
10722         (ffssi2_no_cmove): Ditto.
10723         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10724         (ctz<mode>2): New expander.
10725         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10726         (*ctz<mode>2_falsedep): New insn.
10727         (*ctz<mode>2): Rename from ctz<mode>2.
10728         (clz<mode>2_lzcnt): New expander.
10729         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10730         (*clz<mode>2_lzcnt_falsedep): New insn.
10731         (*clz<mode>2): Rename from ctz<mode>2.
10732         (popcount<mode>2): New expander.
10733         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10734         (*popcount<mode>2_falsedep): New insn.
10735         (*popcount<mode>2): Rename from ctz<mode>2.
10736         (*popcount<mode>2_cmp): Remove.
10737         (*popcountsi2_cmp_zext): Ditto.
10738
10739 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
10740
10741         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10742         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10743         * config/microblaze/microblaze.h
10744         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10745
10746 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
10747
10748         PR other/62168
10749         * configure.ac: Set install_gold_as_default to no for
10750          --enable-gold=no.
10751          * configure: Regenerated.
10752
10753 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
10754
10755         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10756         * config.in: Add undef of HAVE_isl.
10757         * configure: Regenerate.
10758         * configure.ac: Add definition of HAVE_isl.
10759         * graphite-blocking.c: Add checking of HAVE_isl.
10760         * graphite-dependences.c: Likewise.
10761         * graphite-interchange.c: Likewise.
10762         * graphite-isl-ast-to-gimple.c: Likewise.
10763         * graphite-optimize-isl.c: Likewise.
10764         * graphite-poly.c: Likewise.
10765         * graphite-scop-detection.c: Likewise.
10766         * graphite-sese-to-poly.c: Likewise.
10767         * graphite.c: Likewise.
10768         * toplev.c: Replace the checking of HAVE_cloog with the checking
10769         of HAVE_isl.
10770
10771 2014-08-18  Richard Biener  <rguenther@suse.de>
10772
10773         PR tree-optimization/62090
10774         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10775         (fold_builtin_3): Do not fold snprintf.
10776         (fold_builtin_4): Likewise.
10777         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10778         moved from builtins.c.
10779         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10780         (gimple_fold_builtin): Do not fold sprintf here.
10781
10782 2014-08-18  Richard Biener  <rguenther@suse.de>
10783
10784         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10785         code to ...
10786         (maybe_canonicalize_mem_ref_addr): ... this function.
10787         (fold_stmt_1): Apply it here before all simplification.
10788
10789 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
10790
10791         PR ipa/61800
10792         * cgraph.h (cgraph_node::create_indirect_edge): Add
10793         compute_indirect_info param.
10794         * cgraph.c (cgraph_node::create_indirect_edge): Compute
10795         indirect_info only when it is required.
10796         * cgraphclones.c (cgraph_clone_edge): Do not recompute
10797         indirect_info fore cloned indirect edge.
10798
10799 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10800             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10801             Anna Tikhonova  <anna.tikhonova@intel.com>
10802             Ilya Tocar  <ilya.tocar@intel.com>
10803             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10804             Ilya Verbin  <ilya.verbin@intel.com>
10805             Kirill Yukhin  <kirill.yukhin@intel.com>
10806             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10807
10808         * config/i386/sse.md
10809         (define_mode_iterator VI8_AVX2_AVX512BW): New.
10810         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10811
10812 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10813             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10814             Anna Tikhonova  <anna.tikhonova@intel.com>
10815             Ilya Tocar  <ilya.tocar@intel.com>
10816             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10817             Ilya Verbin  <ilya.verbin@intel.com>
10818             Kirill Yukhin  <kirill.yukhin@intel.com>
10819             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10820
10821         * config/i386/sse.md
10822         (define_mode_iterator VF1_AVX512VL): New.
10823         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10824         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10825         New.
10826
10827 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10828             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10829             Anna Tikhonova  <anna.tikhonova@intel.com>
10830             Ilya Tocar  <ilya.tocar@intel.com>
10831             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10832             Ilya Verbin  <ilya.verbin@intel.com>
10833             Kirill Yukhin  <kirill.yukhin@intel.com>
10834             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10835
10836         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10837         * config/i386/i386.md
10838         (define_code_iterator any_float): New.
10839         (define_code_attr floatsuffix): New.
10840         * config/i386/sse.md
10841         (define_mode_iterator VF1_128_256VL): New.
10842         (define_mode_iterator VF2_512_256VL): New.
10843         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10844         TARGET check.
10845         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10846         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10847         New.
10848         (define_mode_attr qq2pssuff): New.
10849         (define_mode_attr sselongvecmode): New.
10850         (define_mode_attr sselongvecmodelower): New.
10851         (define_mode_attr sseintvecmode3): New.
10852         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10853         New.
10854         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10855         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10856         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10857         (define_insn "ufloatv2siv2df2<mask_name>"): New.
10858
10859 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10860             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10861             Anna Tikhonova  <anna.tikhonova@intel.com>
10862             Ilya Tocar  <ilya.tocar@intel.com>
10863             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10864             Ilya Verbin  <ilya.verbin@intel.com>
10865             Kirill Yukhin  <kirill.yukhin@intel.com>
10866             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10867
10868         * config/i386/sse.md
10869         (define_mode_iterator VF2_AVX512VL): New.
10870         (define_mode_attr sseintvecmode2): New.
10871         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10872         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10873         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10874         (define_insn
10875         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10876         Ditto.
10877         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10878         Ditto.
10879         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10880         Ditto.
10881
10882 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10883             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10884             Anna Tikhonova  <anna.tikhonova@intel.com>
10885             Ilya Tocar  <ilya.tocar@intel.com>
10886             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10887             Ilya Verbin  <ilya.verbin@intel.com>
10888             Kirill Yukhin  <kirill.yukhin@intel.com>
10889             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10890
10891         * config/i386/i386.md
10892         (define_insn "*movoi_internal_avx"): Add evex version.
10893         (define_insn "*movti_internal"): Ditto.
10894
10895 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10896             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10897             Anna Tikhonova  <anna.tikhonova@intel.com>
10898             Ilya Tocar  <ilya.tocar@intel.com>
10899             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10900             Ilya Verbin  <ilya.verbin@intel.com>
10901             Kirill Yukhin  <kirill.yukhin@intel.com>
10902             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10903
10904         * config/i386/i386.md
10905         (define_attr "isa"): Add avx512dq, noavx512dq.
10906         (define_attr "enabled"): Ditto.
10907         * config/i386/sse.md
10908         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10909
10910 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10911             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10912             Anna Tikhonova  <anna.tikhonova@intel.com>
10913             Ilya Tocar  <ilya.tocar@intel.com>
10914             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10915             Ilya Verbin  <ilya.verbin@intel.com>
10916             Kirill Yukhin  <kirill.yukhin@intel.com>
10917             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10918
10919         * config/i386/i386.c
10920         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10921         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10922         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10923         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10924         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10925         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10926         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10927         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10928         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10929         * config/i386/sse.md
10930         (define_mode_iterator VMOVE): Allow V4TI mode.
10931         (define_mode_iterator V_AVX512VL): New.
10932         (define_mode_iterator V): New handling for AVX512VL.
10933         (define_insn "avx512f_load<mode>_mask"): Delete.
10934         (define_insn "<avx512>_load<mode>_mask"): New.
10935         (define_insn "avx512f_store<mode>_mask"): Delete.
10936         (define_insn "<avx512>_store<mode>_mask"): New.
10937
10938
10939 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
10940
10941         PR sanitizer/62089
10942         * asan.c (instrument_derefs): Fix bitfield check.
10943
10944 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10945
10946         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10947         * config/rs6000/htm.md (ttest): Remove clobber.
10948         * config/rs6000/predicates.md (any_mask_operand): New predicate.
10949         (and_operand): Reformat.
10950         (and_2rld_operand): New predicate.
10951         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10952         parameter.
10953         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10954         parameter.  Handle AND directly.
10955         (rs6000_split_logical_di): Remove last parameter.
10956         (rs6000_split_logical): Remove last parameter.  Remove obsolete
10957         comment.
10958         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10959         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10960         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
10961         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10962         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10963         and 5 anonymous splitters):  Delete.
10964         (and<mode>3): New expander.
10965         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10966         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10967         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10968         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10969         (floatdisf2_internal1): Remove clobbers.
10970         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10971         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10972         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10973         (and<mode>3 for BOOL_128): Remove clobber.
10974         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
10975         rs6000_split_logical.
10976         (*bool<mode>3_internal for BOOL_128): Adjust call of
10977         rs6000_split_logical.
10978         (*boolc<mode>3_internal1 for BOOL_128,
10979         *boolc<mode>3_internal2 for BOOL_128,
10980         *boolcc<mode>3_internal1 for BOOL_128,
10981         *boolcc<mode>3_internal2 for BOOL_128,
10982         *eqv<mode>3_internal1 for BOOL_128,
10983         *eqv<mode>3_internal2 for BOOL_128,
10984         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10985         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10986         clobber.
10987         (*vec_reload_and_reg_<mptrsize>): Delete.
10988
10989 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10990
10991         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10992         and split, *boolccsi3_internal3 and split): Delete.
10993         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10994         *boolccdi3_internal3 and split): Delete.
10995         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10996         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
10997
10998 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10999
11000         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
11001         and split, *boolcsi3_internal3 and split): Delete.
11002         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
11003         *boolcdi3_internal3 and split): Delete.
11004         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
11005
11006 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11007
11008         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
11009         <'u'>: Also support printing the low-order 16 bits.
11010         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
11011         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
11012         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
11013         *booldi3_internal3 and split): Delete.
11014         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
11015         *bool<mode>3_dot2): New.
11016         (two anonymous define_splits for non_logical_cint_operand): Merge.
11017
11018 2014-08-17  Marek Polacek  <polacek@redhat.com>
11019             Manuel López-Ibáñez  <manu@gcc.gnu.org>
11020
11021         PR c/62059
11022         * diagnostic.c (adjust_line): Add gcc_checking_assert.
11023         (diagnostic_show_locus): Don't print caret diagnostic
11024         if a column is larger than the line_width.
11025
11026 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
11027
11028         * common.opt: Make the ISL AST generator to be the main code generator
11029         of Graphite.
11030
11031 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
11032
11033         * wide-int.h (generic_wide_int): Declare as class instead of struct.
11034
11035 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
11036
11037         PR target/61641
11038         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
11039         Declare.
11040         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
11041         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
11042         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
11043         Define.
11044         * config/pa/pa.md (begin_brtab): Delete insn.
11045         (end_brtab): Likewise.
11046
11047 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11048
11049         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
11050
11051 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
11052
11053         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
11054         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
11055         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
11056         (get_dynamic_type): Remove.
11057         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
11058         (clear_speculation): Bring to ipa-deivrt.h
11059         (get_class_context): Rename to ...
11060         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
11061         (contains_type_p): Update.
11062         (get_dynamic_type): Rename to ...
11063         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
11064         (possible_polymorphic_call_targets): UPdate.
11065         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
11066         * ipa-prop.c (ipa_analyze_call_uses): Update.
11067
11068 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
11069
11070         * doc/invoke.texi (SH options): Document missing processor variant
11071         options.  Remove references to Hitachi.  Undocument deprecated mspace
11072         option.
11073
11074 2014-08-15  Jason Merrill  <jason@redhat.com>
11075
11076         * tree.c (type_hash_canon): Uncomment assert.
11077
11078 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11079
11080         * input.h (in_system_header_at): Add comment.
11081
11082 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11083
11084         PR fortran/44054
11085         * diagnostic.c (build_message_string): Make it extern.
11086         * diagnostic.h (build_message_string): Make it extern.
11087
11088 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
11089
11090         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
11091         load/store from/to non-floating class pseudo.
11092
11093 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11094
11095         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
11096
11097 2014-08-15  Richard Biener  <rguenther@suse.de>
11098
11099         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
11100         (get_constraint_for_ssa_var): Remove dead code.
11101         (get_constraint_for_1): Adjust.
11102         (find_what_var_points_to): Likewise.
11103         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
11104
11105 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
11106
11107         PR target/61878
11108         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
11109         (_mm512_mask_cmpge_epu32_mask): Ditto.
11110         (_mm512_cmpge_epu32_mask): Ditto.
11111         (_mm512_mask_cmpge_epi64_mask): Ditto.
11112         (_mm512_cmpge_epi64_mask): Ditto.
11113         (_mm512_mask_cmpge_epu64_mask): Ditto.
11114         (_mm512_cmpge_epu64_mask): Ditto.
11115         (_mm512_mask_cmple_epi32_mask): Ditto.
11116         (_mm512_cmple_epi32_mask): Ditto.
11117         (_mm512_mask_cmple_epu32_mask): Ditto.
11118         (_mm512_cmple_epu32_mask): Ditto.
11119         (_mm512_mask_cmple_epi64_mask): Ditto.
11120         (_mm512_cmple_epi64_mask): Ditto.
11121         (_mm512_mask_cmple_epu64_mask): Ditto.
11122         (_mm512_cmple_epu64_mask): Ditto.
11123         (_mm512_mask_cmplt_epi32_mask): Ditto.
11124         (_mm512_cmplt_epi32_mask): Ditto.
11125         (_mm512_mask_cmplt_epu32_mask): Ditto.
11126         (_mm512_cmplt_epu32_mask): Ditto.
11127         (_mm512_mask_cmplt_epi64_mask): Ditto.
11128         (_mm512_cmplt_epi64_mask): Ditto.
11129         (_mm512_mask_cmplt_epu64_mask): Ditto.
11130         (_mm512_cmplt_epu64_mask): Ditto.
11131         (_mm512_mask_cmpneq_epi32_mask): Ditto.
11132         (_mm512_mask_cmpneq_epu32_mask): Ditto.
11133         (_mm512_cmpneq_epu32_mask): Ditto.
11134         (_mm512_mask_cmpneq_epi64_mask): Ditto.
11135         (_mm512_cmpneq_epi64_mask): Ditto.
11136         (_mm512_mask_cmpneq_epu64_mask): Ditto.
11137         (_mm512_cmpneq_epu64_mask): Ditto.
11138         (_mm512_castpd_ps): Ditto.
11139         (_mm512_castpd_si512): Ditto.
11140         (_mm512_castps_pd): Ditto.
11141         (_mm512_castps_si512): Ditto.
11142         (_mm512_castsi512_ps): Ditto.
11143         (_mm512_castsi512_pd): Ditto.
11144         (_mm512_castpd512_pd128): Ditto.
11145         (_mm512_castps512_ps128): Ditto.
11146         (_mm512_castsi512_si128): Ditto.
11147         (_mm512_castpd512_pd256): Ditto.
11148         (_mm512_castps512_ps256): Ditto.
11149         (_mm512_castsi512_si256): Ditto.
11150         (_mm512_castpd128_pd512): Ditto.
11151         (_mm512_castps128_ps512): Ditto.
11152         (_mm512_castsi128_si512): Ditto.
11153         (_mm512_castpd256_pd512): Ditto.
11154         (_mm512_castps256_ps512): Ditto.
11155         (_mm512_castsi256_si512): Ditto.
11156         (_mm512_cmpeq_epu32_mask): Ditto.
11157         (_mm512_mask_cmpeq_epu32_mask): Ditto.
11158         (_mm512_mask_cmpeq_epu64_mask): Ditto.
11159         (_mm512_cmpeq_epu64_mask): Ditto.
11160         (_mm512_cmpgt_epu32_mask): Ditto.
11161         (_mm512_mask_cmpgt_epu32_mask): Ditto.
11162         (_mm512_mask_cmpgt_epu64_mask): Ditto.
11163         (_mm512_cmpgt_epu64_mask): Ditto.
11164         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
11165         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
11166         * config/i386/i386.c (enum ix86_builtins): Add
11167         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
11168         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
11169         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
11170         (bdesc_args): Add __builtin_ia32_si512_256si,
11171         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
11172         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
11173         __builtin_ia32_pd512_pd.
11174         (ix86_expand_args_builtin): Handle new FTYPEs.
11175         * config/i386/sse.md (castmode): Add 512-bit modes.
11176         (AVX512MODE2P): New.
11177         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
11178         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
11179
11180 2014-08-15  Richard Biener  <rguenther@suse.de>
11181
11182         * fold-const.c (tree_swap_operands_p): Put all constants
11183         last, also strip sign-changing NOPs when considering further
11184         canonicalization.  Canonicalize also when optimizing for size.
11185
11186 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11187
11188         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
11189         one_match > zero_match case to just before simple_sequence.
11190
11191 2014-08-15  Richard Biener  <rguenther@suse.de>
11192
11193         * data-streamer.h (streamer_string_index, string_for_index):
11194         Remove.
11195         * data-streamer-out.c (streamer_string_index): Make static.
11196         * data-streamer-in.c (string_for_index): Likewise.
11197         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
11198         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
11199
11200 2014-08-15  Richard Biener  <rguenther@suse.de>
11201
11202         PR tree-optimization/62031
11203         * tree-data-ref.c (dr_analyze_indices): Do not set
11204         DR_UNCONSTRAINED_BASE.
11205         (dr_may_alias_p): All indirect accesses have to go the
11206         formerly DR_UNCONSTRAINED_BASE path.
11207         * tree-data-ref.h (struct indices): Remove
11208         unconstrained_base member.
11209         (DR_UNCONSTRAINED_BASE): Remove.
11210
11211 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
11212
11213         PR middle-end/62092
11214         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
11215         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
11216         in OMP_CLAUSE_MAP in some outer target region.
11217
11218 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
11219
11220         * tree-ssa-loop-ivopts.c (ivopts_data): New field
11221         name_expansion_cache.
11222         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
11223         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
11224         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
11225         (difference_cannot_overflow_p): New parameter.  Use affine
11226         expansion for equality check.
11227         (iv_elimination_compare_lt): Pass new argument.
11228
11229 2014-08-14  DJ Delorie  <dj@redhat.com>
11230
11231         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
11232         variables to the accumulator.
11233
11234         * config/rl78/predicates.md (rl78_near_mem_operand): New.
11235         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
11236         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
11237         with far-far moves.
11238
11239         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
11240         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
11241         (umulqihi3_virt): Likewise.
11242         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
11243         (umulqihi3_real): Likewise.
11244
11245         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
11246
11247 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
11248
11249         PR tree-optimization/62091
11250         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
11251         function_entry_reached.
11252         (walk_aliased_vdefs): Clear it here.
11253         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
11254
11255 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
11256
11257         * ipa-utils.h (compare_virtual_tables): Declare.
11258         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
11259
11260 2014-08-14  Marek Polacek  <polacek@redhat.com>
11261
11262         DR 458
11263         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
11264         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
11265
11266 2014-08-14  Tom de Vries  <tom@codesourcery.com>
11267
11268         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
11269
11270 2014-08-14  Tom de Vries  <tom@codesourcery.com>
11271
11272         PR rtl-optimization/62004
11273         PR rtl-optimization/62030
11274         * ifcvt.c (rtx_interchangeable_p): New function.
11275         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
11276         * emit-rtl.h (mem_attrs_eq_p): Declare.
11277
11278 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
11279
11280         * graphite-scop-detection.c:
11281         Add inclusion of cp-tree.h.
11282         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
11283         in case they are pointers to object types
11284
11285 2014-08-14  Richard Biener  <rguenther@suse.de>
11286
11287         * BASE-VER: Change to 5.0.0
11288
11289 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11290             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11291             Anna Tikhonova  <anna.tikhonova@intel.com>
11292             Ilya Tocar  <ilya.tocar@intel.com>
11293             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11294             Ilya Verbin  <ilya.verbin@intel.com>
11295             Kirill Yukhin  <kirill.yukhin@intel.com>
11296             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11297
11298         * config/i386/sse.md (define_mode_attr avx512): New.
11299         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
11300         V4DI modes.
11301         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
11302         (define_mode_attr ssse3_avx2): Ditto.
11303         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
11304         (define_mode_attr avx2_avx512bw): New.
11305         (define_mode_attr ssedoublemodelower): New.
11306         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
11307         V32HI, V64QI modes.
11308         (define_mode_attr ssebytemode): Allow V8DI modes.
11309         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
11310         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
11311         (define_mode_attr ssePSmode2): New.
11312         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
11313         V16HI, V32HI modes.
11314         (define_mode_attr dbpsadbwmode): New.
11315         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
11316         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
11317         (vi8_sse4_1_avx2_avx512): New.
11318         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
11319         mode attribute.
11320         (define_mode_attr blendbits): Move before its immediate use.
11321
11322 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11323             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11324             Anna Tikhonova  <anna.tikhonova@intel.com>
11325             Ilya Tocar  <ilya.tocar@intel.com>
11326             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11327             Ilya Verbin  <ilya.verbin@intel.com>
11328             Kirill Yukhin  <kirill.yukhin@intel.com>
11329             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11330
11331         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
11332         * config/i386/subst.md
11333         (define_mode_iterator SUBST_V): Update.
11334         (define_mode_iterator SUBST_A): Ditto.
11335         (define_subst_attr "mask_operand7"): New.
11336         (define_subst_attr "mask_operand10"): New.
11337         (define_subst_attr "mask_operand_arg34") : New.
11338         (define_subst_attr "mask_expand_op3"): New.
11339         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
11340         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
11341         (define_subst_attr "mask_avx512vl_condition"): New.
11342         (define_subst_attr "round_mask_operand4"): Ditto.
11343         (define_subst_attr "round_mask_scalar_op3"): Delete.
11344         (define_subst_attr "round_mask_op4"): New.
11345         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
11346         V16SImode.
11347         (define_subst_attr "round_modev8sf_condition"): New.
11348         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
11349         <MODE>mode.
11350         (define_subst_attr "round_saeonly_mask_operand4"): New.
11351         (define_subst_attr "round_saeonly_mask_op4"): New.
11352         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
11353         V8DImode, V16SImode.
11354         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
11355         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
11356         (define_subst_attr "mask_expand4_args"): New.
11357         (define_subst "mask_expand4"): New.
11358
11359 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11360             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11361             Anna Tikhonova  <anna.tikhonova@intel.com>
11362             Ilya Tocar  <ilya.tocar@intel.com>
11363             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11364             Ilya Verbin  <ilya.verbin@intel.com>
11365             Kirill Yukhin  <kirill.yukhin@intel.com>
11366             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11367
11368         * config/i386/i386.md
11369         (define_attr "isa"): Add avx512bw,noavx512bw.
11370         (define_attr "enabled"): Ditto.
11371         (define_split): Add 32/64-bit mask logic.
11372         (define_insn "*k<logic>qi"): New.
11373         (define_insn "*k<logic>hi"): New.
11374         (define_insn "*anddi_1"): Add mask version.
11375         (define_insn "*andsi_1"): Ditto.
11376         (define_insn "*<code><mode>_1"): Ditto.
11377         (define_insn "*<code>hi_1"): Ditto.
11378         (define_insn "kxnor<mode>"): New.
11379         (define_insn "kunpcksi"): New.
11380         (define_insn "kunpckdi"): New.
11381         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
11382         (define_insn "*one_cmplhi2_1"): Ditto.
11383
11384 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11385             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11386             Anna Tikhonova  <anna.tikhonova@intel.com>
11387             Ilya Tocar  <ilya.tocar@intel.com>
11388             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11389             Ilya Verbin  <ilya.verbin@intel.com>
11390             Kirill Yukhin  <kirill.yukhin@intel.com>
11391             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11392
11393         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
11394         V32HImode.
11395
11396 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11397             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11398             Anna Tikhonova  <anna.tikhonova@intel.com>
11399             Ilya Tocar  <ilya.tocar@intel.com>
11400             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11401             Ilya Verbin  <ilya.verbin@intel.com>
11402             Kirill Yukhin  <kirill.yukhin@intel.com>
11403             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11404
11405         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
11406         registers.
11407         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
11408         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
11409         xmm/ymm16+ when availble.
11410         * config/i386/i386.h
11411         (HARD_REGNO_NREGS): Add mask regs.
11412         (VALID_AVX512F_REG_MODE): Ditto.
11413         (VALID_AVX512F_REG_MODE) : Define.
11414         (VALID_MASK_AVX512BW_MODE): Ditto.
11415         (reg_class) (MASK_REG_P(X)): Define.
11416         * config/i386/i386.md: Do not split long moves with mask register,
11417         use kmovb if avx512bw is availible.
11418         (movdi_internal): Handle mask registers.
11419
11420 2014-08-14  Richard Biener  <rguenther@suse.de>
11421
11422         PR tree-optimization/62081
11423         * tree-ssa-loop.c (pass_fix_loops): New pass.
11424         (pass_tree_loop::gate):  Do not fixup loops here.
11425         * tree-pass.h (make_pass_fix_loops): Declare.
11426         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
11427
11428 2014-08-14  Richard Biener  <rguenther@suse.de>
11429
11430         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
11431         (type_hash_canon): ... this and avoid 2nd lookup for the add.
11432
11433 2014-08-14  Richard Biener  <rguenther@suse.de>
11434
11435         PR tree-optimization/62090
11436         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
11437         (fold_builtin_2): Do not fold sprintf.
11438         (fold_builtin_3): Likewise.
11439         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
11440         moved from builtins.c.
11441         (gimple_fold_builtin): Fold sprintf.
11442
11443 2014-08-14  Richard Biener  <rguenther@suse.de>
11444
11445         PR rtl-optimization/62079
11446         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
11447         run cleanup_cfg.
11448
11449 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
11450
11451         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
11452         current_function_decl.
11453
11454 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
11455
11456         * cgraph.c (cgraph_node::function_symbol): Fix wrong
11457         cgraph_function_node to cgraph_node::function_symbol
11458         refactoring.
11459
11460 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11461
11462         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
11463         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
11464
11465 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
11466
11467         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
11468         warning.
11469
11470 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
11471
11472         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
11473         generator.
11474
11475 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
11476
11477         PR target/62025
11478         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
11479         any registers that are used in mem_insn.
11480
11481 2014-08-12  Steve Ellcey  <sellcey@mips.com>
11482
11483         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
11484
11485 2014-08-12  Steve Ellcey  <sellcey@mips.com>
11486
11487         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
11488         (MULTILIB_DIRNAMES): Ditto.
11489         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
11490         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
11491         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
11492         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
11493         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
11494         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
11495
11496 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11497
11498         PR target/61413
11499         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
11500         of __ARM_SIZEOF_WCHAR_T.
11501
11502 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11503
11504         PR target/62098
11505         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
11506         Remove unnecessary attributes.
11507
11508 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
11509
11510         * internal-fn.c (init_internal_fns): Fix off-by-one.
11511
11512 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11513             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11514             Anna Tikhonova  <anna.tikhonova@intel.com>
11515             Ilya Tocar  <ilya.tocar@intel.com>
11516             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11517             Ilya Verbin  <ilya.verbin@intel.com>
11518             Kirill Yukhin  <kirill.yukhin@intel.com>
11519             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11520
11521         * config/i386/i386.c (standard_sse_constant_opcode): Use
11522         vpxord/vpternlog if avx512 is availible.
11523
11524 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11525
11526         PR middle-end/62103
11527         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
11528         bitfields, that is when size doesn't match the size of type or the
11529         size of the constructor.
11530
11531 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11532
11533         * config/rs6000/constraints.md (wh constraint): New constraint,
11534         for FP registers if direct move is available.
11535         (wi constraint): New constraint, for VSX/FP registers that can
11536         handle 64-bit integers.
11537         (wj constraint): New constraint for VSX/FP registers that can
11538         handle 64-bit integers for direct moves.
11539         (wk constraint): New constraint for VSX/FP registers that can
11540         handle 64-bit doubles for direct moves.
11541         (wy constraint): Make documentation match implementation.
11542
11543         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
11544         scalar_in_vmx_p field to simplify tests of whether SFmode or
11545         DFmode can go in the Altivec registers.
11546         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
11547         (rs6000_setup_reg_addr_masks): Likewise.
11548         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
11549         field, and wh/wi/wj/wk constraints.
11550         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
11551         the wh/wi/wj/wk constraints.
11552         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
11553         upper registers, prefer VSX registers unless the operation is a
11554         memory operation with REG+OFFSET addressing.
11555
11556         * config/rs6000/vsx.md (VSr mode attribute): Add support for
11557         DImode.  Change SFmode to use ww constraint instead of d to allow
11558         SF registers in the upper registers.
11559         (VSr2): Likewise.
11560         (VSr3): Likewise.
11561         (VSr5): Fix thinko in comment.
11562         (VSa): New mode attribute that is an alternative to wa, that
11563         returns the VSX register class that a mode can go in, but may not
11564         be the preferred register class.
11565         (VS_64dm): New mode attribute for appropriate register classes for
11566         referencing 64-bit elements of vectors for direct moves and normal
11567         moves.
11568         (VS_64reg): Likewise.
11569         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
11570         register allocator to only registers the data type can handle.
11571         (vsx_le_perm_load_<mode>): Likewise.
11572         (vsx_le_perm_store_<mode>): Likewise.
11573         (vsx_xxpermdi2_le_<mode>): Likewise.
11574         (vsx_xxpermdi4_le_<mode>): Likewise.
11575         (vsx_lxvd2x2_le_<mode>): Likewise.
11576         (vsx_lxvd2x4_le_<mode>): Likewise.
11577         (vsx_stxvd2x2_le_<mode>): Likewise.
11578         (vsx_add<mode>3): Likewise.
11579         (vsx_sub<mode>3): Likewise.
11580         (vsx_mul<mode>3): Likewise.
11581         (vsx_div<mode>3): Likewise.
11582         (vsx_tdiv<mode>3_internal): Likewise.
11583         (vsx_fre<mode>2): Likewise.
11584         (vsx_neg<mode>2): Likewise.
11585         (vsx_abs<mode>2): Likewise.
11586         (vsx_nabs<mode>2): Likewise.
11587         (vsx_smax<mode>3): Likewise.
11588         (vsx_smin<mode>3): Likewise.
11589         (vsx_sqrt<mode>2): Likewise.
11590         (vsx_rsqrte<mode>2): Likewise.
11591         (vsx_tsqrt<mode>2_internal): Likewise.
11592         (vsx_fms<mode>4): Likewise.
11593         (vsx_nfma<mode>4): Likewise.
11594         (vsx_eq<mode>): Likewise.
11595         (vsx_gt<mode>): Likewise.
11596         (vsx_ge<mode>): Likewise.
11597         (vsx_eq<mode>_p): Likewise.
11598         (vsx_gt<mode>_p): Likewise.
11599         (vsx_ge<mode>_p): Likewise.
11600         (vsx_xxsel<mode>): Likewise.
11601         (vsx_xxsel<mode>_uns): Likewise.
11602         (vsx_copysign<mode>3): Likewise.
11603         (vsx_float<VSi><mode>2): Likewise.
11604         (vsx_floatuns<VSi><mode>2): Likewise.
11605         (vsx_fix_trunc<mode><VSi>2): Likewise.
11606         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11607         (vsx_x<VSv>r<VSs>i): Likewise.
11608         (vsx_x<VSv>r<VSs>ic): Likewise.
11609         (vsx_btrunc<mode>2): Likewise.
11610         (vsx_b2trunc<mode>2): Likewise.
11611         (vsx_floor<mode>2): Likewise.
11612         (vsx_ceil<mode>2): Likewise.
11613         (vsx_<VS_spdp_insn>): Likewise.
11614         (vsx_xscvspdp): Likewise.
11615         (vsx_xvcvspuxds): Likewise.
11616         (vsx_float_fix_<mode>2): Likewise.
11617         (vsx_set_<mode>): Likewise.
11618         (vsx_extract_<mode>_internal1): Likewise.
11619         (vsx_extract_<mode>_internal2): Likewise.
11620         (vsx_extract_<mode>_load): Likewise.
11621         (vsx_extract_<mode>_store): Likewise.
11622         (vsx_splat_<mode>): Likewise.
11623         (vsx_xxspltw_<mode>): Likewise.
11624         (vsx_xxspltw_<mode>_direct): Likewise.
11625         (vsx_xxmrghw_<mode>): Likewise.
11626         (vsx_xxmrglw_<mode>): Likewise.
11627         (vsx_xxsldwi_<mode>): Likewise.
11628         (vsx_xscvdpspn): Tighten constraints to only use register classes
11629         the types use.
11630         (vsx_xscvspdpn): Likewise.
11631         (vsx_xscvdpspn_scalar): Likewise.
11632
11633         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11634         wj, and wk constraints.
11635         (GPR_REG_CLASS_P): New helper macro for register classes targeting
11636         general purpose registers.
11637
11638         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11639         direct moves.
11640         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11641         DImode instead of wm.  Use wk constraint for direct move of DFmode
11642         instead of wm.
11643         (extendsidi2_lfiwax): Likewise.
11644         (lfiwax): Likewise.
11645         (lfiwzx): Likewise.
11646         (movdi_internal64): Likewise.
11647
11648         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11649         wk constraints. Make the wy constraint documentation match them
11650         implementation.
11651
11652 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
11653
11654         Replacement of isl_int by isl_val
11655         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11656         (compute_bounds_for_param): use isl_val instead of isl_int
11657         (compute_bounds_for_loop): likewise
11658         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11659         (build_linearized_memory_access): use isl_val instead of isl_int
11660         (pdr_stride_in_loop): likewise
11661         * graphite-optimize-isl.c:
11662         (getPrevectorMap): use isl_val instead of isl_int
11663         * graphite-poly.c:
11664         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11665         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11666         (extern the_isl_ctx): declare
11667         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11668         (extract_affine_gmp): likewise
11669         (wrap): likewise
11670         (build_loop_iteration_domains): likewise
11671         (add_param_constraints): likewise
11672
11673 2014-08-11  Richard Biener  <rguenther@suse.de>
11674
11675         PR tree-optimization/62075
11676         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11677         handle uses in patterns.
11678
11679 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11680             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11681             Anna Tikhonova  <anna.tikhonova@intel.com>
11682             Ilya Tocar  <ilya.tocar@intel.com>
11683             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11684             Ilya Verbin  <ilya.verbin@intel.com>
11685             Kirill Yukhin  <kirill.yukhin@intel.com>
11686             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11687
11688         * common/config/i386/i386-common.c
11689         (OPTION_MASK_ISA_AVX512VL_SET): Define.
11690         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11691         (ix86_handle_option): Handle OPT_mavx512vl.
11692         * config/i386/cpuid.h (bit_AVX512VL): Define.
11693         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11694         set -mavx512vl accordingly.
11695         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11696         OPTION_MASK_ISA_AVX512VL.
11697         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11698         (ix86_option_override_internal): Define PTA_AVX512VL, handle
11699         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11700         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11701         * config/i386/i386.h (TARGET_AVX512VL): Define.
11702         (TARGET_AVX512VL_P(x)): Ditto.
11703         * config/i386/i386.opt: Add mavx512vl.
11704
11705 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
11706
11707         PR tree-optimization/62073
11708         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11709         a basic block.
11710
11711 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11712             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11713             Anna Tikhonova  <anna.tikhonova@intel.com>
11714             Ilya Tocar  <ilya.tocar@intel.com>
11715             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11716             Ilya Verbin  <ilya.verbin@intel.com>
11717             Kirill Yukhin  <kirill.yukhin@intel.com>
11718             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11719
11720         * common/config/i386/i386-common.c
11721         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11722         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11723         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11724         (ix86_handle_option): Handle OPT_mavx512bw.
11725         * config/i386/cpuid.h (bit_AVX512BW): Define.
11726         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11727         set -mavx512bw accordingly.
11728         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11729         OPTION_MASK_ISA_AVX512BW.
11730         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11731         (ix86_option_override_internal): Define PTA_AVX512BW, handle
11732         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11733         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11734         * config/i386/i386.h (TARGET_AVX512BW): Define.
11735         (TARGET_AVX512BW_P(x)): Ditto.
11736         * config/i386/i386.opt: Add mavx512bw.
11737
11738 2014-08-11  Richard Biener  <rguenther@suse.de>
11739
11740         PR tree-optimization/62070
11741         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11742         Remove SSA checking.
11743
11744 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11745
11746         * asan.c (asan_check_flags): New enum.
11747         (build_check_stmt_with_calls): Removed function.
11748         (build_check_stmt): Split inlining logic to
11749         asan_expand_check_ifn.
11750         (instrument_derefs): Rename parameter.
11751         (instrument_mem_region_access): Rename parameter.
11752         (instrument_strlen_call): Likewise.
11753         (asan_expand_check_ifn): New function.
11754         (asan_instrument): Remove old code.
11755         (pass_sanopt::execute): Change handling of
11756         asan-instrumentation-with-call-threshold.
11757         (asan_clear_shadow): Fix formatting.
11758         (asan_function_start): Likewise.
11759         (asan_emit_stack_protection): Likewise.
11760         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11761         Update description.
11762         * internal-fn.c (expand_ASAN_CHECK): New function.
11763         * internal-fn.def (ASAN_CHECK): New internal function.
11764         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11765         Update description.
11766         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11767         * tree.c: Small comment fix.
11768
11769 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11770
11771         * gimple.c (gimple_call_fnspec): Support internal functions.
11772         (gimple_call_return_flags): Use const.
11773         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11774         * internal-fn.def: Add fnspec information.
11775         * internal-fn.h (internal_fn_fnspec): New function.
11776         (init_internal_fns): Declare new function.
11777         * internal-fn.c (internal_fn_fnspec_array): New global variable.
11778         (init_internal_fns): New function.
11779         * tree-core.h: Update macro call.
11780         * tree.c (build_common_builtin_nodes): Initialize internal fns.
11781
11782 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
11783
11784         * lto-streamer.h (struct output_block::symbol): Change from
11785         struct symtab_node to plain symtab_node.
11786         (referenced_from_this_partition_p): Change first parameter
11787         from struct symtab_node to plain symtab_node.
11788
11789 2014-08-10  Marek Polacek  <polacek@redhat.com>
11790
11791         PR c/51849
11792         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11793
11794 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
11795
11796         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11797         DECL correctly; do not give up on types in static storage.
11798
11799 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
11800
11801         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11802
11803 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
11804
11805         * graphite-isl-ast-to-gimple.c:
11806         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11807
11808         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11809
11810 2014-08-08  Guozhi Wei  <carrot@google.com>
11811
11812         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11813
11814 2014-08-08  Cary Coutant  <ccoutant@google.com>
11815
11816         * dwarf2out.c (get_skeleton_type_unit): Remove.
11817         (output_skeleton_debug_sections): Remove skeleton type units.
11818         (output_comdat_type_unit): Likewise.
11819         (dwarf2out_finish): Likewise.
11820
11821 2014-08-07  Yi Yang  <ahyangyi@google.com>
11822
11823         * predict.c (expr_expected_value_1): Remove the redundant assignment.
11824
11825 2014-08-08  Richard Biener  <rguenther@suse.de>
11826
11827         * lto-streamer.h (struct lto_input_block): Make it a class
11828         with a constructor.
11829         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11830         (struct lto_function_header, struct lto_simple_header,
11831         struct lto_simple_header_with_strings,
11832         struct lto_decl_header, struct lto_function_header): Make
11833         a simple inheritance hieararchy.  Remove unused fields.
11834         (struct lto_asm_header): Remove.
11835         * lto-streamer-out.c (produce_asm): Adjust.
11836         (lto_output_toplevel_asms): Likewise.
11837         (produce_asm_for_decls): Likewise.
11838         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11839         * data-streamer-in.c (string_for_index): Likewise.
11840         * ipa-inline-analysis.c (inline_read_section): Likewise.
11841         * ipa-prop.c (ipa_prop_read_section): Likewise.
11842         (read_replacements_section): Likewise.
11843         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11844         * lto-section-in.c (lto_create_simple_input_block): Likewise.
11845         (lto_destroy_simple_input_block): Likewise.
11846         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11847         (lto_input_toplevel_asms): Likewise.
11848
11849 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11850             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11851             Anna Tikhonova  <anna.tikhonova@intel.com>
11852             Ilya Tocar  <ilya.tocar@intel.com>
11853             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11854             Ilya Verbin  <ilya.verbin@intel.com>
11855             Kirill Yukhin  <kirill.yukhin@intel.com>
11856             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11857
11858         * common/config/i386/i386-common.c
11859         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11860         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11861         (ix86_handle_option): Handle OPT_mavx512dq.
11862         * config/i386/cpuid.h (bit_AVX512DQ): Define.
11863         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11864         set -mavx512dq accordingly.
11865         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11866         OPTION_MASK_ISA_AVX512DQ.
11867         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11868         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11869         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11870         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11871         * config/i386/i386.h (TARGET_AVX512DQ): Define.
11872         (TARGET_AVX512DQ_P(x)): Ditto.
11873         * config/i386/i386.opt: Add mavx512dq.
11874
11875 2014-08-08  Richard Biener  <rguenther@suse.de>
11876
11877         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11878         target_percent, target_percent_s): Export.
11879         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11880         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11881         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11882         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11883         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11884         Move to gimple-fold.c.
11885         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11886         strcat and strcpy.
11887         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11888         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11889         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11890         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11891         (rewrite_call_expr_array): Remove.
11892         (fold_builtin_sprintf_chk): Likewise.
11893         (fold_builtin_snprintf_chk): Likewise.
11894         (fold_builtin_varargs): Remove handling of sprintf_chk,
11895         vsprintf_chk, snprintf_chk and vsnprintf_chk.
11896         (gimple_fold_builtin_sprintf_chk): Remove.
11897         (gimple_fold_builtin_snprintf_chk): Likewise.
11898         (gimple_fold_builtin_varargs): Likewise.
11899         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11900         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11901         * gimple.c (gimple_seq_add_seq_without_update): New function.
11902         * gimple.h (gimple_seq_add_seq_without_update): Declare.
11903         * gimple-fold.c: Include output.h.
11904         (gsi_replace_with_seq_vops): New function, split out from ...
11905         (gimplify_and_update_call_from_tree): ... here.
11906         (replace_call_with_value): New function.
11907         (replace_call_with_call_and_fold): Likewise.
11908         (var_decl_component_p): Moved from builtins.c.
11909         (gimple_fold_builtin_memory_op): Moved from builtins.c
11910         fold_builtin_memory_op and rewritten to GIMPLE.
11911         (gimple_fold_builtin_memset): Likewise.
11912         (gimple_fold_builtin_strcpy): Likewise.
11913         (gimple_fold_builtin_strncpy): Likewise.
11914         (gimple_fold_builtin_strcat): Likewise.
11915         (gimple_fold_builtin_fputs): Likewise.
11916         (gimple_fold_builtin_memory_chk): Likewise.
11917         (gimple_fold_builtin_stxcpy_chk): Likewise.
11918         (gimple_fold_builtin_stxncpy_chk): Likewise.
11919         (gimple_fold_builtin_snprintf_chk): Likewise.
11920         (gimple_fold_builtin_sprintf_chk): Likewise.
11921         (gimple_fold_builtin_strlen): New function.
11922         (gimple_fold_builtin_with_strlen): New function split out from
11923         gimple_fold_builtin.
11924         (gimple_fold_builtin): Change signature and handle
11925         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11926         here.  Call gimple_fold_builtin_with_strlen.
11927         (gimple_fold_call): Adjust.
11928
11929 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11930
11931         * calls.c (precompute_arguments): Check
11932          promoted_for_signed_and_unsigned_p and set the promoted mode.
11933         (promoted_for_signed_and_unsigned_p): New function.
11934         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11935         and set the promoted mode.
11936         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11937         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11938         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11939
11940
11941 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11942
11943         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11944         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11945         (expand_call): Likewise.
11946         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11947         to get promoted mode.
11948         * combine.c (record_promoted_value): Skip > 0 comparison with
11949         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11950         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11951         of SUBREG_PROMOTED_UNSIGNED_P.
11952         (convert_modes): Likewise.
11953         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11954         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11955         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11956         SUBREG_PROMOTED_UNSIGNED_SET.
11957         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11958         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11959         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11960         SUBREG_PROMOTED_SET.
11961         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11962         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11963         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11964         of SUBREG_PROMOTED_UNSIGNED_P.
11965         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11966         (SUBREG_PROMOTED_SET): New define.
11967         (SUBREG_PROMOTED_GET): Likewise.
11968         (SUBREG_PROMOTED_SIGN): Likewise.
11969         (SUBREG_PROMOTED_SIGNED_P): Likewise.
11970         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11971         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11972         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11973         instead of SUBREG_PROMOTED_UNSIGNED_GET.
11974         (nonzero_bits1): Skip > 0 comparison with the results as
11975         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11976         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11977         of !SUBREG_PROMOTED_UNSIGNED_P.
11978         * simplify-rtx.c (simplify_unary_operation_1): Use new
11979         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11980         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11981         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11982         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11983
11984 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
11985
11986         * ipa-devirt.c: Include gimple-pretty-print.h
11987         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11988         further tests.
11989         (decl_maybe_in_construction_p): Fix conditional on cdtor check
11990         (get_polymorphic_call_info): Fix return value
11991         (type_change_info): New sturcture based on ipa-prop
11992         variant.
11993         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11994         based on ipa-prop variant.
11995         (extr_type_from_vtbl_ptr_store): New function
11996         based on ipa-prop variant.
11997         (record_known_type): New function.
11998         (check_stmt_for_type_change): New function.
11999         (get_dynamic_type): New function.
12000         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
12001         * tree-ssa-pre.c: ipa-utils.h
12002         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
12003         machinery; sanity check with ipa-prop devirtualization.
12004         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
12005         polymorphic flag.
12006
12007 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
12008
12009         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
12010         * alias.c, cfgexpand.c, cgraphbuild.c,
12011         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
12012         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
12013         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
12014         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
12015         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
12016         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
12017         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
12018         dse.c, except.c, gengtype.c, gimple-expr.c,
12019         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
12020         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
12021         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
12022         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
12023         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
12024         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
12025         pointer-set.h.
12026         * pointer-set.c: Remove file.
12027         * pointer-set.h: Remove file.
12028
12029 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12030
12031         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
12032         * config/arm/types.md (f_sels, f_seld): Delete.
12033
12034 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12035
12036         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
12037         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
12038         (aarch64_movdi_<mode>high): Likewise.
12039         (aarch64_mov<mode>high_di): Likewise.
12040         (aarch64_movdi_<mode>low): Likewise.
12041         (aarch64_mov<mode>low_di): Likewise.
12042         (aarch64_movtilow_tilow): Likewise.
12043         Add comment explaining usage of fp,simd attributes and of
12044         TARGET_FLOAT and TARGET_SIMD.
12045
12046 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
12047             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12048
12049         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
12050         Use MOVN when one of the half-words is 0xffff.
12051
12052 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
12053
12054         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
12055
12056 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
12057
12058         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
12059         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
12060         (rfs_str): String corresponding to RFS_* constants.
12061         (rank_for_schedule_stats_t): New typedef.
12062         (rank_for_schedule_stats): New static variable.
12063         (rfs_result): New static function.
12064         (rank_for_schedule): Track statistics for deciding heuristics.
12065         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
12066         static functions.
12067         (ready_sort): Use them for debug printouts.
12068         (schedule_block): Init statistics state.  Print statistics on
12069         rank_for_schedule decisions.
12070
12071 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
12072
12073         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
12074
12075 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
12076
12077         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
12078         constraint.
12079
12080 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
12081
12082         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
12083         function to not conflict.
12084         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
12085         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
12086         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
12087         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
12088         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
12089         of pointer_map.
12090
12091 2014-08-07  Marek Polacek  <polacek@redhat.com>
12092
12093         * fold-const.c (fold_binary_loc): Add folding of
12094         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
12095
12096 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
12097
12098         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
12099         instead of type size.
12100         (ASM_FINISH_DECLARE_OBJECT): Likewise.
12101
12102 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
12103
12104         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
12105         (*thumb1_movqi_insn): Likewise.
12106         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
12107
12108 2014-08-07  Tom de Vries  <tom@codesourcery.com>
12109
12110         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12111         (glibc_2_11_or_earlier): Remove effective-target keywords.
12112
12113 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12114
12115         * config/arm/arm.c (bdesc_2arg): Fix typo.
12116         (arm_atomic_assign_expand_fenv): Remove The default implementation.
12117
12118 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12119
12120         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
12121
12122 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
12123
12124         PR debug/61923
12125         * haifa-sched.c (advance_one_cycle): Fix dump.
12126         (schedule_block): Don't advance cycle if we are already at the
12127         beginning of the cycle.
12128
12129 2014-08-06  Martin Jambor  <mjambor@suse.cz>
12130
12131         PR ipa/61393
12132         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
12133
12134 2014-08-06  Richard Biener  <rguenther@suse.de>
12135
12136         PR lto/62034
12137         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
12138         SCCs here.
12139         (lto_input_tree): Pop SCCs here.
12140
12141 2014-08-06  Richard Biener  <rguenther@suse.de>
12142
12143         PR tree-optimization/61320
12144         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
12145         handle misaligned loads.
12146
12147 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
12148
12149         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
12150         (aarch64_expand_vec_perm_const): Check for dup before zip.
12151
12152 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12153
12154         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
12155         CONST_INT_P instead of GET_CODE and compare.
12156         (aarch64_select_cc_mode): Likewise.
12157         (aarch64_print_operand): Likewise.
12158         (aarch64_rtx_costs): Likewise.
12159         (aarch64_simd_valid_immediate): Likewise.
12160         (aarch64_simd_check_vect_par_cnst_half): Likewise.
12161         (aarch64_simd_emit_pair_result_insn): Likewise.
12162
12163 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
12164
12165         * gdbhooks.py (find_gcc_source_dir): New helper function.
12166         (class PassNames): New class, locating and parsing passes.def.
12167         (class BreakOnPass): New command "break-on-pass".
12168
12169 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
12170
12171         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
12172         getting olde.
12173
12174 2014-08-05  Richard Biener  <rguenther@suse.de>
12175
12176         PR rtl-optimization/61672
12177         * emit-rtl.h (mem_attrs_eq_p): Declare.
12178         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
12179         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
12180         * cfgcleanup.c (merge_memattrs): Likewise.
12181         Include emit-rtl.h.
12182
12183 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12184
12185         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
12186         rather than singleton vectors.
12187         (vqdmlsls_lane_s32): Likewise.
12188
12189 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12190
12191         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
12192         Use VSDQ_HSI mode iterator.
12193         (aarch64_sqrdmulh_laneq<mode>): Likewise.
12194         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
12195         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
12196         Use BUILTIN_VDQHS macro.
12197         (sqrdmulh_laneq): Likewise.
12198         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
12199         (vqdmlals_laneq_s32): Likewise.
12200         (vqdmlslh_laneq_s16): Likewise.
12201         (vqdmlsls_laneq_s32): Likewise.
12202         (vqdmulhh_laneq_s16): Likewise.
12203         (vqdmulhs_laneq_s32): Likewise.
12204         (vqrdmulhh_laneq_s16): Likewise.
12205         (vqrdmulhs_laneq_s32): Likewise.
12206
12207 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12208
12209         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
12210         (vmuld_laneq_f64): Likewise.
12211         (vmuls_laneq_f32): Likewise.
12212         (vmul_n_f64): Likewise.
12213         (vmuld_lane_f64): Reimplement in C.
12214         (vmuls_lane_f32): Likewise.
12215
12216 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12217
12218         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
12219         to reservation.
12220         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
12221
12222 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12223
12224         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
12225         (rbitsi2): Likewise.
12226         (*arm_rev): Set predicable and predicable_short_it attributes.
12227
12228 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12229
12230         * convert.c (convert_to_integer): Guard transformation to lrint by
12231         -fno-math-errno.
12232
12233 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
12234
12235         * config/aarch64/aarch64-builtins.c
12236         (aarch64_simd_builtin_type_mode): Delete.
12237         (v8qi_UP): Remap to V8QImode.
12238         (v4hi_UP): Remap to V4HImode.
12239         (v2si_UP): Remap to V2SImode.
12240         (v2sf_UP): Remap to V2SFmode.
12241         (v1df_UP): Remap to V1DFmode.
12242         (di_UP): Remap to DImode.
12243         (df_UP): Remap to DFmode.
12244         (v16qi_UP):V16QImode.
12245         (v8hi_UP): Remap to V8HImode.
12246         (v4si_UP): Remap to V4SImode.
12247         (v4sf_UP): Remap to V4SFmode.
12248         (v2di_UP): Remap to V2DImode.
12249         (v2df_UP): Remap to V2DFmode.
12250         (ti_UP): Remap to TImode.
12251         (ei_UP): Remap to EImode.
12252         (oi_UP): Remap to OImode.
12253         (ci_UP): Map to CImode.
12254         (xi_UP): Remap to XImode.
12255         (si_UP): Remap to SImode.
12256         (sf_UP): Remap to SFmode.
12257         (hi_UP): Remap to HImode.
12258         (qi_UP): Remap to QImode.
12259         (aarch64_simd_builtin_datum): Make mode a machine_mode.
12260         (VAR1): Build builtin name.
12261         (aarch64_init_simd_builtins): Remove dead code.
12262
12263 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
12264
12265         * graphite-isl-ast-to-gimple.c:
12266         (set_options): New function.
12267         (scop_to_isl_ast): Add calling of set_options.
12268
12269 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
12270
12271         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
12272         (analyze_iv_to_split_insn): Don't initialize them.
12273         (get_ivts_expr): Removed.
12274         (allocate_basic_variable, insert_base_initialization): Use
12275         SET_SRC instead of *get_ivts_expr.
12276         (split_iv): Use &SET_SRC instead of get_ivts_expr.
12277
12278 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
12279
12280         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
12281         (translate_isl_ast_for_loop): Add checking of the
12282         flag_loop_parallelize_all.
12283         (ast_build_before_for): New function.
12284         (scop_to_isl_ast): Add checking of the
12285         flag_loop_parallelize_all.
12286         * graphite-dependences.c: Move the defenition of the
12287         scop_get_dependences from graphite-optimize-isl.c to this file.
12288         (apply_schedule_on_deps): Add checking of the ux's emptiness.
12289         (carries_deps): Add checking of the x's value.
12290         * graphite-optimize-isl.c: Move the defenition of the
12291         scop_get_dependences to graphite-dependences.c.
12292         * graphite-poly.h: Add declarations of scop_get_dependences
12293         and carries_deps.
12294
12295 2014-08-04  Rohit  <rohitarulraj@freescale.com>
12296
12297         PR target/60102
12298         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
12299         names.
12300         (alt_reg_names): Likewise.
12301         (rs6000_dwarf_register_span): For SPE high registers, replace
12302         dwarf register numbers with GCC hard register numbers.
12303         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
12304         (rs6000_dbx_register_number): For SPE high registers, return dwarf
12305         register number for the corresponding GCC hard register number.
12306         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
12307         newly added GCC hard register numbers for SPE high registers.
12308         (DWARF_FRAME_REGISTERS):  Likewise.
12309         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
12310         (DWARF_FRAME_REGNUM): Likewise.
12311         (FIXED_REGISTERS): Likewise.
12312         (CALL_USED_REGISTERS): Likewise.
12313         (CALL_REALLY_USED_REGISTERS): Likewise.
12314         (REG_ALLOC_ORDER): Likewise.
12315         (enum reg_class): Likewise.
12316         (REG_CLASS_NAMES): Likewise.
12317         (REG_CLASS_CONTENTS): Likewise.
12318         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
12319
12320 2014-08-04  Richard Biener  <rguenther@suse.de>
12321
12322         * gimple-fold.h (gimple_fold_builtin): Remove.
12323         * gimple-fold.c (gimple_fold_builtin): Make static.
12324         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
12325         fold_stmt, not gimple_fold_builtin.
12326
12327 2014-08-04  Martin Liska <mliska@suse.cz>
12328
12329         * cgraph.h (csi_end_p): Removed.
12330         (csi_next): Likewise.
12331         (csi_node): Likewise.
12332         (csi_start): Likewise.
12333         (cgraph_node_in_set_p): Likewise.
12334         (cgraph_node_set_size): Likewise.
12335         (vsi_end_p): Likewise.
12336         (vsi_next): Likewise.
12337         (vsi_node): Likewise.
12338         (vsi_start): Likewise.
12339         (varpool_node_set_size): Likewise.
12340         (cgraph_node_set_nonempty_p): Likewise.
12341         (varpool_node_set_nonempty_p): Likewise.
12342         * cgraphunit.c (cgraph_process_new_functions): vec replaces
12343         cgraph_node_set.
12344         * ipa-inline-transform.c: Likewise.
12345         * ipa-utils.c (cgraph_node_set_new): Removed.
12346         (cgraph_node_set_add): Likewise.
12347         (cgraph_node_set_remove): Likewise.
12348         (cgraph_node_set_find): Likewise.
12349         (dump_cgraph_node_set): Likewise.
12350         (debug_cgraph_node_set): Likewise.
12351         (free_cgraph_node_set): Likewise.
12352         (varpool_node_set_new): Likewise.
12353         (varpool_node_set_add): Likewise.
12354         (varpool_node_set_remove): Likewise.
12355         (varpool_node_set_find): Likewise.
12356         (dump_varpool_node_set): Likewise.
12357         (free_varpool_node_set): Likewise.
12358         (debug_varpool_node_set): Likewise.
12359         * tree-emutls.c (struct tls_var_data):
12360         (emutls_index): Removed.
12361         (emutls_decl): Likewise.
12362         (gen_emutls_addr): Function implementation uses newly added
12363         hash_map<varpool_node *, tls_var_data>.
12364         (clear_access_vars): Likewise.
12365         (create_emultls_var): Likewise.
12366         (ipa_lower_emutls): Likewise.
12367         (reset_access): New function.
12368
12369 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12370
12371         * config/i386/i386.c (ix86_option_override_internal): Add
12372         PTA_RDRND and PTA_MOVBE for bdver4.
12373
12374 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12375             James Greenhalgh  <james.greenhalgh@arm.com>
12376
12377         * doc/md.texi (clrsb): Document.
12378         (clz): Change reference to x into operand 1.
12379         (ctz): Likewise.
12380         (popcount): Likewise.
12381
12382 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12383
12384         PR target/61713
12385         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
12386         move to subtarget in serial version if result is ignored.
12387
12388 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12389             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12390
12391         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
12392         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
12393         (sched_analyze_insn): Update use of try_group_insn to
12394         sched_macro_fuse_insns.
12395         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
12396         arguments that are not conditional jumps.
12397
12398 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12399
12400         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
12401         family information. Handle BTVER2 cpu with cpuid family value.
12402
12403 2014-08-04  Tom de Vries  <tom@codesourcery.com>
12404
12405         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12406         (glibc_2_11_or_earlier): Document effective-target keywords.
12407
12408 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
12409
12410         * ipa-devirt.c (odr_type_warn_count): Add type.
12411         (possible_polymorphic_call_targets): Set it.
12412         (ipa_devirt): Use it.
12413
12414 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
12415
12416         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
12417         Document.
12418         * ipa-devirt.c: Include hash-map.h
12419         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
12420         (clear_speculation): Break out of ...
12421         (get_class_context): ... here; speed up handling obviously useless
12422         speculations.
12423         (odr_type_warn_count, decl_warn_count): New structures.
12424         (final_warning_record): New structure.
12425         (final_warning_records): New static variable.
12426         (possible_polymorphic_call_targets): Cleanup handling of
12427         speculative info; do not build speculation when user do not care;
12428         record info about warnings when asked for.
12429         (add_decl_warning): New function.
12430         (type_warning_cmp): New function.
12431         (decl_warning_cmp): New function.
12432         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
12433         (gate): Enable pass when warnings are requested.
12434         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
12435         options.
12436
12437 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
12438
12439         * hash-map.h (default_hashmap_traits::mark_key_deleted):
12440         Fix cast.
12441         (hash_map::remove): New method.
12442         (hash_map::traverse): New method.
12443         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
12444         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
12445         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
12446         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
12447         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
12448         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
12449         pointer_map.
12450
12451 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
12452
12453         * hash-set.h: new File.
12454         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
12455         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
12456         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
12457         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
12458         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
12459         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
12460         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
12461         varpool.c: Use hash_set instead of pointer_set.
12462
12463 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
12464
12465         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
12466
12467 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12468
12469         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
12470         for frame access when strict_p is false.
12471
12472 2014-08-01  Renlin Li <renlin.li@arm.com>
12473 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12474
12475         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
12476         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
12477         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
12478         Declaration.
12479         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
12480         predicate.
12481         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
12482         aarch64_mem_pair_offset.
12483
12484 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12485
12486         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
12487         offset.
12488         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
12489         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
12490
12491 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
12492
12493         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
12494
12495 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
12496
12497         PR regression/61510
12498         * cgraphunit.c (analyze_functions): Use get_create rather than get
12499         for decls which are clones of abstract functions.
12500
12501 2014-08-01  Martin Liska  <mliska@suse.cz>
12502
12503         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
12504         * ipa-prop.h (count_formal_params): Global function created from static.
12505         * ipa-prop.c (count_formal_params): Likewise.
12506         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
12507         profiles for semantically equivalent functions.
12508         * passes.c (do_per_function): If we load body of a function
12509         during WPA, this condition should behave same.
12510         * varpool.c (ctor_for_folding): More tolerant assert for variable
12511         aliases created during WPA.
12512
12513 2014-08-01  Martin Liska  <mliska@suse.cz>
12514
12515         * doc/invoke.texi (Options That Control Optimization): Documentation
12516         for -foptimize-strlen introduced. Optimization levels default options
12517         fixed.
12518
12519 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
12520
12521         * opts.c (common_handle_option): Handle -fsanitize=alignment.
12522         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
12523         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
12524         type to bool.
12525         * stor-layout.h (min_align_of_type): New prototype.
12526         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
12527         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
12528         check.
12529         * ubsan.c: Include builtins.h.
12530         (ubsan_expand_bounds_ifn): Change return type to bool,
12531         always return true.
12532         (ubsan_expand_null_ifn): Change return type to bool, change
12533         argument to gimple_stmt_iterator *.  Handle both null and alignment
12534         sanitization, take type from ckind argument's type rather than
12535         first argument.
12536         (instrument_member_call): Removed.
12537         (instrument_mem_ref): Remove t argument, add mem and base arguments.
12538         Handle both null and alignment sanitization, don't say whole
12539         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
12540         call instead of 2 argument.
12541         (instrument_null): Adjust instrument_mem_ref caller.  Don't
12542         instrument calls here.
12543         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
12544         like SANITIZE_NULL.
12545         * stor-layout.c (min_align_of_type): New function.
12546         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
12547         Or it into SANITIZE_UNDEFINED.
12548         * doc/invoke.texi (-fsanitize=alignment): Document.
12549
12550 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12551
12552         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
12553
12554 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12555
12556         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
12557         inchash.
12558         (vn_reference_compute_hash): Dito.
12559         (vn_nary_op_compute_hash): Dito.
12560         (vn_phi_compute_hash): Dito.
12561         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
12562
12563 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12564
12565         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
12566         Rename to inchash:add_expr_commutative. Convert to inchash.
12567         (iterative_hash_hashable_expr): Rename to
12568         inchash:add_hashable_expr. Convert to inchash.
12569         (avail_expr_hash): Dito.
12570
12571 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12572
12573         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
12574         Convert to inchash.
12575
12576 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12577
12578         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
12579
12580 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12581
12582         * Makefile.in (OBJS): Add rtlhash.o
12583         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12584         (loc_checksum): Dito.
12585         (loc_checksum_ordered): Dito.
12586         (hash_loc_operands): Dito.
12587         (hash_locs): Dito.
12588         (hash_loc_list): Dito.
12589         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12590         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12591         * rtlhash.c: New file.
12592         * rtlhash.h: New file.
12593
12594 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12595
12596         * inchash.h (inchash): Change inchash class to namespace.
12597         (class hash): ... Rename from inchash.
12598         (add_object): Move from macro to class template.
12599         * lto-streamer-out.c (hash_tree): Change inchash
12600         to inchash::hash.
12601         * tree.c (build_type_attribute_qual_variant): Dito.
12602         (type_hash_list): Dito.
12603         (attribute_hash_list): Dito.
12604         (iterative_hstate_expr): Rename to inchash::add_expr
12605         (build_range_type_1): Change inchash to inchash::hash
12606         and use hash::add_expr.
12607         (build_array_type_1): Dito.
12608         (build_function_type): Dito
12609         (build_method_type_directly): Dito.
12610         (build_offset_type): Dito.
12611         (build_complex_type): Dito.
12612         (make_vector_type): Dito.
12613         * tree.h (iterative_hash_expr): Dito.
12614
12615 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
12616
12617         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12618
12619 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12620
12621         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12622         correct alphabetical position.
12623         (vpaddd_f64): Rewrite using builtins.
12624         (vpaddd_s64): Move to correct alphabetical position.
12625         (vpaddd_u64): New.
12626
12627 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
12628
12629         PR target/61844
12630         * config/sh/sh.c (sh_legitimate_address_p,
12631         sh_legitimize_reload_address): Handle reg+reg address modes when
12632         ALLOW_INDEXED_ADDRESS is false.
12633         * config/sh/predicates.md (general_movsrc_operand,
12634         general_movdst_operand): Likewise.
12635
12636 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12637
12638         * config/aarch64/aarch64-builtins.c
12639         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12640         BYTES_BIG_ENDIAN.
12641
12642 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12643
12644         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12645         the generated mask based on BYTES_BIG_ENDIAN.
12646         (aarch64_simd_check_vect_par_cnst_half): New.
12647         * config/aarch64/aarch64-protos.h
12648         (aarch64_simd_check_vect_par_cnst_half): New.
12649         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12650         the check out to aarch64_simd_check_vect_par_cnst_half.
12651         (vect_par_cnst_lo_half): Likewise.
12652         * config/aarch64/aarch64-simd.md
12653         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12654         (move_hi_quad_<mode>): Always generate a low mask.
12655
12656 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12657
12658         * doc/invoke.texi (AVR Options): Add documentation about
12659         __AVR_DEVICE_NAME__ built-in macro.
12660
12661 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
12662
12663         PR target/61948
12664         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12665         constraints are satisfied.
12666         (<shift>di3_neon): Likewise.
12667
12668 2014-07-31  Richard Biener  <rguenther@suse.de>
12669
12670         PR tree-optimization/61964
12671         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12672         by structural equality.
12673
12674 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
12675
12676         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12677         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12678         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12679         New enums.
12680         * gcc.c (sanitize_spec_function): Support new option.
12681         (SANITIZER_SPEC): Remove now redundant check.
12682         * opts.c (common_handle_option): Support new option.
12683         (finish_options): Check for incompatibilities.
12684         * toplev.c (process_options): Split userspace-specific checks.
12685
12686 2014-07-31  Richard Biener  <rguenther@suse.de>
12687
12688         * lto-streamer.h (struct output_block): Remove global.
12689         (struct data_in): Remove labels, num_named_labels and
12690         num_unnamed_labels.
12691         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12692         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12693
12694 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
12695
12696         PR c++/60517
12697         * common.opt (-Wreturn-local-addr): Moved from c.opt.
12698         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12699         (isolate_path): New argument to avoid inserting a trap.
12700         (find_implicit_erroneous_behaviour): Handle returning the address
12701         of a local variable.
12702         (find_explicit_erroneous_behaviour): Likewise.
12703
12704 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
12705
12706         PR lto/61868
12707         * toplev.c (init_random_seed): Move piece of code never called to
12708         set_random_seed.
12709         (set_random_seed): see above.
12710
12711 2014-07-31  Tom de Vries  <tom@codesourcery.com>
12712
12713         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12714
12715 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
12716
12717         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12718         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12719
12720 2014-07-31  Richard Biener  <rguenther@suse.de>
12721
12722         * data-streamer.h (streamer_write_data_stream): Declare here,
12723         renamed from ...
12724         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
12725         * lto-cgraph.c (lto_output_node): Adjust.
12726         (lto_output_varpool_node): Likewise.
12727         * data-streamer-out.c (streamer_string_index): Likewise.
12728         (streamer_write_data_stream, lto_append_block): Move from ...
12729         * lto-section-out.c (lto_output_data_stream,
12730         lto_append_block): ... here.
12731
12732 2014-07-30  Mike Stump  <mikestump@comcast.net>
12733
12734         * configure.ac: Also check for popen.
12735         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12736         * configure: Regenerate.
12737         * config.in:  Regenerate.
12738
12739 2014-07-30  Martin Jambor  <mjambor@suse.cz>
12740
12741         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12742         parameter to gimple.
12743
12744 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12745
12746         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12747         address as second parameter to __tpf_eh_return routine.
12748
12749 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
12750
12751         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12752         Thumb2.
12753
12754 2014-07-30  Tom Tromey  <tromey@redhat.com>
12755
12756         PR c/59855
12757         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12758         * doc/extend.texi (Type Attributes): Document designated_init
12759         attribute.
12760
12761 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
12762
12763         * graphite-isl-ast-to-gimple.c:
12764         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12765         (gcc_expression_from_isl_expression): Pass type to
12766         gcc_expression_from_isl_ast_expr_id.
12767
12768 2014-07-30  Richard Biener  <rguenther@suse.de>
12769
12770         * lto-streamer.h (lto_write_data): New function.
12771         * langhooks.c (lhd_append_data): Do not free block.
12772         * lto-section-out.c (lto_write_data): New function writing
12773         raw data to the current section.
12774         (lto_write_stream): Adjust for langhook semantic change.
12775         (lto_destroy_simple_output_block): Write header directly.
12776         * lto-opts.c (lto_write_options): Write options directly.
12777         * lto-streamer-out.c (produce_asm): Write heaeder directly.
12778         (lto_output_toplevel_asms): Likewise.
12779         (copy_function_or_variable): Copy data directly.
12780         (write_global_references): Output index table directly.
12781         (lto_output_decl_state_refs): Likewise.
12782         (write_symbol): Write data directly.
12783         (produce_symtab): Adjust.
12784         (produce_asm_for_decls): Output header and refs directly.
12785
12786 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12787
12788         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12789         to speculative_targets
12790         (get_class_context): Fix handling of contextes without outer type;
12791         avoid matching non-polymorphic types in LTO.
12792         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12793         parameter to speculative_targetsp; handle speculation.
12794         (dump_possible_polymorphic_call_targets): Update dumping.
12795
12796 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12797
12798         * common.opt (Wodr): Enable by default.
12799
12800 2014-07-29  Olivier Hainque  <hainque@adacore.com>
12801
12802         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12803
12804 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
12805
12806         PR bootstrap/61914
12807         * gengtype.c (strtoken): New function.
12808         (create_user_defined_type): Replace strtok with strtoken.
12809
12810 2014-07-29  Nathan Sidwell  <nathan@acm.org>
12811
12812         * gcov-io.c (gcov_var): Make hidden.
12813         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12814         (gcov_do_dump): Declare.
12815         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12816
12817 2014-07-29  Martin Jambor  <mjambor@suse.cz>
12818
12819         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12820         parameter to gimple.
12821         (sra_modify_assign): Likewise.
12822
12823 2014-07-29  Richard Biener  <rguenther@suse.de>
12824
12825         PR middle-end/52478
12826         * expr.c (expand_expr_real_2): Revert last change.
12827
12828 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12829
12830         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12831         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12832         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12833         call.
12834         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12835         (contains_type_p): Forward declare.
12836         (polymorphic_call_target_hasher::hash): Hash speculative info.
12837         (polymorphic_call_target_hasher::equal): Compare speculative info.
12838         (get_class_context): Handle speuclation.
12839         (contains_type_p): Update.
12840         (get_polymorphic_call_info_for_decl): Update.
12841         (walk_ssa_copies): Break out from ...
12842         (get_polymorphic_call_info): ... here; set speculative context
12843         before giving up.
12844         * ipa-prop.c (ipa_write_indirect_edge_info,
12845         ipa_read_indirect_edge_info): Stream speculative context.
12846         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12847         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12848         SPECULATIVE_MAYBE_DERIVED_TYPE).
12849         (possible_polymorphic_call_targets overriders): Update.
12850         (dump_possible_polymorphic_call_targets overriders): Update.
12851         (dump_possible_polymorphic_call_target_p overriders): Update.
12852
12853 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12854
12855         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12856         ipa-devirt path; fix thinko there.
12857
12858 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
12859
12860         * config/i386/i386.c (ix86_return_in_memory): Replace one
12861         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12862
12863 2014-07-28  Marek Polacek  <polacek@redhat.com>
12864
12865         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
12866
12867 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
12868
12869         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12870         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12871         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12872         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12873         (USE_LD_AS_NEEDED): Likewise.
12874         (ASM_APP_ON): Likewise.
12875         (ASM_APP_OFF): Likewise.
12876         (TARGET_POSIX_IO): Likewise.
12877         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12878         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12879         (USE_LD_AS_NEEDED): Likewise.
12880         (ASM_APP_ON): Likewise.
12881         (ASM_APP_OFF): Likewise.
12882         (TARGET_POSIX_IO): Likewise.
12883
12884 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
12885
12886         PR middle-end/61734
12887         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12888         operators other than the equality operators.
12889
12890 2014-07-28  Richard Biener  <rguenther@suse.de>
12891
12892         PR middle-end/52478
12893         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12894         sure to register SImode ones, not only >= word_mode ones.
12895         * expr.c (expand_expr_real_2): When expanding -ftrapv
12896         binops do not use OPTAB_LIB_WIDEN.
12897
12898 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
12899
12900         PR middle-end/61919
12901         * tree-outof-ssa.c (insert_partition_copy_on_edge)
12902         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12903         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12904         inserting them in the insn stream.
12905
12906 2014-07-28  Marek Polacek  <polacek@redhat.com>
12907
12908         PR middle-end/61913
12909         * common.opt (Wodr): Add Var.
12910
12911 2014-07-28  Richard Biener  <rguenther@suse.de>
12912
12913         PR tree-optimization/61921
12914         * tree-ssa-structalias.c (create_variable_info_for_1): Check
12915         if there is a varpool node before dereferencing it.
12916
12917 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
12918
12919         * graphite-sese-to-poly.c:
12920         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12921         id of the pbb), which contains pointer to the pbb1.
12922
12923         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12924
12925 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
12926
12927         * graphite-isl-ast-to-gimple.c:
12928         (graphite_create_new_guard): New function.
12929         (translate_isl_ast_node_if): New function.
12930         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12931
12932         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12933
12934 2014-07-27  Anthony Green  <green@moxielogic.com>
12935
12936         * config.gcc: Add moxie-*-moxiebox* configuration.
12937         * config/moxie/moxiebox.h: New file.
12938
12939 2014-07-26  Andrew Pinski  <apinski@cavium.com>
12940
12941         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12942         from the read only register.
12943
12944 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12945
12946         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12947         as the allocation class if it isn't likely to be spilled.
12948
12949 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12950
12951         * rtl.h (tls_referenced_p): Declare.
12952         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12953         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12954         (mips_cannot_force_const_mem): Use tls_referenced_p.
12955         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12956         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12957         instead of pa_tls_referenced_p.
12958         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12959         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12960         (pa_legitimate_constant_p): Likewise.
12961         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12962         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12963         (rs6000_cannot_force_const_mem, rs6000_emit_move)
12964         (rs6000_address_for_altivec): Use tls_referenced_p instead of
12965         rs6000_tls_referenced_p.
12966         (rs6000_tls_symbol_ref_1): Delete.
12967
12968 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
12969
12970         PR target/44551
12971         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12972         Optimize inverse of a VEC_CONCAT.
12973
12974 2014-07-25  Xinliang David Li  <davidxl@google.com>
12975
12976         * params.def: New parameter.
12977         * coverage.c (get_coverage_counts): Check new flag.
12978         (coverage_compute_profile_id): Check new flag.
12979         (coverage_begin_function): Check new flag.
12980         (coverage_end_function): Check new flag.
12981         * value-prof.c (coverage_node_map_initialized_p): New function.
12982         (init_node_map): Populate map with all functions.
12983         * doc/invoke.texi: Document new parameter.
12984
12985 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
12986             Richard Biener <rguenther@suse.de>
12987
12988         * lto-streamer-out.c (struct sccs): Turn to ...
12989         (class DFS): ... this one; refactor the DFS walk so it can
12990         be re-done on per-SCC basis.
12991         (DFS::DFS): New constructor.
12992         (DFS::~DFS): New destructor.
12993         (hash_tree): Add new MAP argument holding in-SCC hash values;
12994         remove POINTER_TYPE hashing hack.
12995         (scc_entry_compare): Rename to ...
12996         (DFS::scc_entry_compare): ... this one.
12997         (hash_scc): Rename to ...
12998         (DFS::hash_scc): ... this one; pass output_block instead
12999         of streamer_cache; work harder to get unique and stable SCC
13000         hashes.
13001         (DFS_write_tree): Rename to ...
13002         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
13003         (lto_output_tree): Update.
13004
13005 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13006
13007         * lto-streamer-out.c (hash_tree): Convert to inchash.
13008
13009 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13010
13011         * tree.c (build_type_attribute_qual_variant): Use inchash.
13012         (type_hash_list): Dito.
13013         (attribute_hash_list): Dito
13014         (iterative_hstate_expr): Dito.
13015         (iterative_hash_expr): Dito.
13016         (build_range_type_1): Dito.
13017         (build_array_type_1): Dito.
13018         (build_function_type): Dito.
13019         (build_method_type_directly): Dito.
13020         (build_offset_type): Dito.
13021         (build_complex_type): Dito.
13022         (make_vector_type): Dito.
13023         * tree.h (iterative_hash_expr): Add compat wrapper.
13024         (iterative_hstate_expr): Add.
13025
13026 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13027
13028         * Makefile.in (OBJS): Add inchash.o.
13029         (PLUGIN_HEADERS): Add inchash.h.
13030         * ipa-devirt.c: Include inchash.h.
13031         * lto-streamer-out.c: Dito.
13032         * tree-ssa-dom.c: Dito.
13033         * tree-ssa-pre.c: Dito.
13034         * tree-ssa-sccvn.c: Dito.
13035         * tree-ssa-tail-merge.c: Dito.
13036         * asan.c: Dito.
13037         * tree.c (iterative_hash_hashval_t): Move to ...
13038         (iterative_hash_host_wide_int): Move to ...
13039         * inchash.c: Here. New file.
13040         * tree.h (iterative_hash_hashval_t): Move to ...
13041         (iterative_hash_host_wide_int): Move to ...
13042         * inchash.h: Here. New file.
13043
13044 2014-07-25  Richard Biener  <rguenther@suse.de>
13045
13046         PR middle-end/61762
13047         PR middle-end/61894
13048         * fold-const.c (native_encode_int): Add and handle offset
13049         parameter to do partial encodings of expr.
13050         (native_encode_fixed): Likewise.
13051         (native_encode_real): Likewise.
13052         (native_encode_complex): Likewise.
13053         (native_encode_vector): Likewise.
13054         (native_encode_string): Likewise.
13055         (native_encode_expr): Likewise.
13056         * fold-const.c (native_encode_expr): Add offset parameter
13057         defaulting to -1.
13058         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
13059         (fold_ctor_reference): Handle all reads from tcc_constant
13060         ctors.
13061
13062 2014-07-25  Richard Biener  <rguenther@suse.de>
13063
13064         * tree-inline.c (estimate_move_cost): Mark speed_p argument
13065         as possibly unused.
13066
13067 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13068
13069         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
13070
13071 2014-07-24  Kyle McMartin  <kyle@redhat.com>
13072
13073         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
13074
13075 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13076
13077         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
13078         Add prototype.
13079         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
13080         function.
13081         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
13082         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13083         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
13084
13085 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13086
13087         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
13088         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
13089         aggregate types.  Instead, *all* aggregate types, except for single-
13090         element or homogeneous float/vector aggregates, are quadword-aligned
13091         if required by their type alignment.  Issue -Wpsabi note when a type
13092         is now treated differently than before.
13093
13094 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13095
13096         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
13097         does not fit fully into floating-point registers, and there is still
13098         space in the register parameter area, use GPRs to pass those parts
13099         of the argument.  Issue -Wpsabi note if any parameter is now treated
13100         differently than before.
13101         (rs6000_arg_partial_bytes): Update.
13102
13103 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
13104
13105         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
13106
13107 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13108
13109         * rtl.h (target_rtl): Remove lang_dependent_initialized.
13110         * toplev.c (initialize_rtl): Don't use it.  Move previously
13111         "language-dependent" calls to...
13112         (backend_init): ...here.
13113         (lang_dependent_init_target): Don't set lang_dependent_initialized.
13114         Assert that RTL initialization hasn't happend yet.
13115
13116 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13117
13118         PR rtl-optimization/61629
13119         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
13120         they have already been initialized.
13121
13122 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13123
13124         PR middle-end/61268
13125         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
13126         DECL_INCOMING_RTL and entry_parm.
13127         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
13128         * calls.c (load_register_parameters): Likewise argument values.
13129         (emit_library_call_value_1, store_one_arg): Likewise argument
13130         save areas.
13131         * config/i386/i386.c (assign_386_stack_local): Likewise the local
13132         stack slot.
13133         * explow.c (validize_mem): Modify the argument in-place.
13134
13135 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13136
13137         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
13138         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
13139
13140 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13141
13142         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
13143         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
13144
13145 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13146
13147         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
13148         (aarch64_save_callee_saves): New parameter "skip_wb".
13149         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
13150
13151 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13152
13153         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
13154         "wb_candidate2".
13155         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
13156
13157 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
13158
13159         * graphite-isl-ast-to-gimple.c:
13160         (graphite_create_new_loop): Add calling of isl_id_free to properly
13161         decrement reference counts.
13162
13163         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
13164
13165 2014-07-24  Martin Liska  <mliska@suse.cz>
13166         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
13167         function used.
13168         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
13169         (rs6000_code_end): Likewise.
13170
13171 2014-07-24  Martin Liska  <mliska@suse.cz>
13172
13173         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
13174         symtab_node funtion used.
13175         (rs6000_xcoff_declare_object_name): Likewise.
13176
13177 2014-07-24  Martin Liska  <mliska@suse.cz>
13178
13179         * cgraphunit.c (compile): Correct function used.
13180
13181 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
13182
13183         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
13184         as non-indexable.
13185
13186 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
13187
13188         PR lto/61802
13189         * varasm.c (bss_initializer_p): Handle offlined ctors.
13190         (align_variable, get_variable_align): Likewise.
13191         (make_decl_one_only): Likewise.
13192         (default_binds_local_p_1): Likewise.
13193         (decl_binds_to_current_def_p): Likewise.
13194         (get_variable_section): Get constructor if it is offlined.
13195         (assemble_variable_contents): Sanity check that the caller
13196         streamed in the ctor in LTO.
13197
13198 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
13199
13200         * graphite-isl-ast-to-gimple.c:
13201         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
13202         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
13203         isl_ast_op_pdiv_r to the different case.
13204
13205         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
13206
13207 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13208
13209         PR middle-end/61876
13210         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
13211         when flag_errno_math is on.
13212
13213 2014-07-24  Martin Liska  <mliska@suse.cz>
13214
13215         * cgraph.h (varpool_node):
13216         (availability get_availability (void)):
13217         created from cgraph_variable_initializer_availability
13218         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
13219         created from: cgraph_variable_initializer_availability
13220         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
13221         (void finalize_named_section_flags (void)):
13222         created from varpool_finalize_named_section_flags
13223         (bool assemble_decl (void)): created from varpool_assemble_decl
13224         (void analyze (void)): created from varpool_analyze_node
13225         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
13226         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
13227         (void remove_initializer (void)): created from varpool_remove_initializer
13228         (tree get_constructor (void)): created from varpool_get_constructor
13229         (bool externally_visible_p (void)): created from varpool_externally_visible_p
13230         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
13231         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
13232         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
13233         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
13234         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
13235         (static bool output_variables (void)): created from varpool_output_variables
13236         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
13237         created from varpool_extra_name_alias
13238         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
13239         (static void dump_varpool (FILE *f)): created from dump_varpool
13240         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
13241         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
13242         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
13243         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
13244         (void assemble_aliases (void)): created from assemble_aliases
13245
13246 2014-07-24  Martin Liska  <mliska@suse.cz>
13247
13248         * cgraph.h (symtab_node):
13249         (void register_symbol (void)): created from symtab_register_node
13250         (void remove (void)): created from symtab_remove_node
13251         (void dump (FILE *f)): created from dump_symtab_node
13252         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
13253         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
13254         (struct ipa_ref *add_reference (symtab_node *referred_node,
13255         enum ipa_ref_use use_type)): created from add_reference 
13256         (struct ipa_ref *add_reference (symtab_node *referred_node,
13257         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
13258         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
13259         gimple stmt)): created from maybe_add_reference
13260         (bool semantically_equivalent_p (symtab_node *target)): created from
13261         symtab_semantically_equivalent_p
13262         (void remove_from_same_comdat_group (void)): created from
13263         remove_from_same_comdat_group
13264         (void add_to_same_comdat_group (symtab_node *old_node)): created from
13265         symtab_add_to_same_comdat_group
13266         (void dissolve_same_comdat_group_list (void)): created from
13267         symtab_dissolve_same_comdat_group_list
13268         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
13269         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
13270         created from symtab_alias_ultimate_target
13271         (inline symtab_node *next_defined_symbol (void)): created from
13272         symtab_next_defined_symbol
13273         (bool resolve_alias (symtab_node *target)): created from
13274         symtab_resolve_alias
13275         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
13276         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
13277         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
13278         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
13279         (void set_section (const char *section)): created from set_section_1 
13280         (enum availability get_availability (void)): created from symtab_node_availability
13281         (void make_decl_local (void)): created from symtab_make_decl_local
13282         (bool real_symbol_p (void)): created from symtab_read_node
13283         (can_be_discarded_p (void)): created from symtab_can_be_discarded
13284         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
13285         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
13286         symtab_in_same_comdat_p;
13287         (bool address_taken_from_non_vtable_p (void)): created from
13288         address_taken_from_non_vtable_p
13289         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
13290         (static void dump_table (FILE *)): created from dump_symtab
13291         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
13292         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
13293         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
13294         symtab_used_from_object_file_p 
13295         (void dump_base (FILE *)): created from dump_symtab_base
13296         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
13297         (void unregister (void)): created from symtab_unregister_node
13298         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
13299         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
13300         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
13301         symtab_nonoverwritable_alias_1
13302         * cgraph.h (cgraph_node):
13303         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
13304         created from cgraph_remove_node_and_inline_clones
13305         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
13306         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
13307         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
13308         (cgraph_node *function_symbol (enum availability *avail = NULL)):
13309         created from cgraph_function_node
13310         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
13311         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
13312         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
13313         created from cgraph_create_clone 
13314         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
13315         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
13316         created from cgraph_create_virtual_clone
13317         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
13318         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
13319         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
13320         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
13321         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
13322         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
13323         created from cgraph_function_version_info
13324         (struct cgraph_function_version_info *insert_new_function_version (void)):
13325         created from insert_new_cgraph_node_version
13326         (struct cgraph_function_version_info *function_version (void)): created from
13327         get_cgraph_node_version
13328         (void analyze (void)): created from analyze_function
13329         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
13330         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
13331         tree real_alias) cgraph_add_thunk
13332         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
13333         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
13334         created from cgraph_function_or_thunk_node
13335         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
13336         created from expand_thunk
13337         (void reset (void)): created from cgraph_reset_node
13338         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
13339         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
13340         (void remove (void)): created from cgraph_remove_node
13341         (void dump (FILE *f)): created from dump_cgraph_node
13342         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
13343         (bool get_body (void)): created from cgraph_get_body
13344         (void release_body (void)): created from cgraph_release_function_body
13345         (void unnest (void)): created from cgraph_unnest_node
13346         (void make_local (void)): created from cgraph_make_node_local
13347         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
13348         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
13349         gcov_type count, int freq)): created from cgraph_create_edge
13350         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
13351         gcov_type count, int freq)): created from cgraph_create_indirect_edge
13352         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
13353         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
13354         created from cgraph_create_edge_including_clones
13355         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
13356         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
13357         (void remove_callers (void)): created from cgraph_node_remove_callers
13358         (void remove_callees (void)): created from cgraph_node_remove_callees
13359         (enum availability get_availability (void)): created from cgraph_function_body_availability
13360         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
13361         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
13362         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
13363         (void call_duplication_hooks (cgraph_node *node2)): created from
13364         cgraph_call_node_duplication_hooks
13365         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
13366         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
13367         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
13368         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
13369         (void call_function_insertion_hooks (void)):
13370         created from cgraph_call_function_insertion_hooks
13371         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
13372         (bool local_p (void)): created from cgraph_local_node
13373         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
13374         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
13375         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
13376         (inline bool only_called_directly_or_aliased_p (void)):
13377         created from cgraph_only_called_directly_or_aliased_p
13378         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
13379         created from cgraph_will_be_removed_from_program_if_no_direct_calls
13380         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
13381         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
13382         (bool can_remove_if_no_direct_calls_p (void)):
13383         created from cgraph_can_remove_if_no_direct_calls_p
13384         (inline bool has_gimple_body_p (void)):
13385         created from cgraph_function_with_gimple_body_p
13386         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
13387         (static void dump_cgraph (FILE *f)): created from dump_cgraph
13388         (static inline void debug_cgraph (void)): created from debug_cgraph
13389         (static void record_function_versions (tree decl1, tree decl2)):
13390         created from record_function_versions
13391         (static void delete_function_version (tree decl)):
13392         created from delete_function_version
13393         (static void add_new_function (tree fndecl, bool lowered)):
13394         created from cgraph_add_new_function
13395         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
13396         (static cgraph_node * create (tree decl)): created from cgraph_create_node
13397         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
13398         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
13399         (static cgraph_node *get_for_asmname (tree asmname)):
13400         created from cgraph_node_for_asm
13401         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
13402         created from cgraph_same_body_alias 
13403         (static bool used_from_object_file_p_worker (cgraph_node *node,
13404         void *): new function
13405         (static bool non_local_p (cgraph_node *node, void *)):
13406         created from cgraph_non_local_node_p_1
13407         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
13408         created from verify_cgraph
13409         (static bool make_local (cgraph_node *node, void *)):
13410         created from cgraph_make_node_local
13411         (static cgraph_node *create_alias (tree alias, tree target)):
13412         created from cgraph_create_function_alias
13413         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
13414         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
13415         created from cgraph_create_edge_1
13416         * cgraph.h (varpool_node):
13417         (void remove (void)): created from varpool_remove_node
13418         (void dump (FILE *f)): created from dump_varpool_node
13419
13420 2014-07-24  Richard Biener  <rguenther@suse.de>
13421
13422         PR ipa/61823
13423         * tree-ssa-structalias.c (create_variable_info_for_1):
13424         Use varpool_get_constructor.
13425         (create_variable_info_for): Likewise.
13426
13427 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13428
13429         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
13430         subtract outgoing area size when restoring stack_pointer_rtx.
13431
13432 2014-07-24  Nick Clifton  <nickc@redhat.com>
13433
13434         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
13435         that operations are taking place in parallel.
13436         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
13437
13438 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
13439
13440         * omp-low.c (extract_omp_for_data): Add missing break statement.
13441
13442 2014-07-24  Richard Biener  <rguenther@suse.de>
13443
13444         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
13445         * tree-inline.c (estimate_move_cost): Add speed_p parameter
13446         and adjust MOVE_RATIO query accordingly.
13447         (estimate_num_insns): Adjust callers.
13448         * ipa-prop.c (ipa_populate_param_decls): Likewise.
13449         * ipa-cp.c (gather_context_independent_values,
13450         estimate_local_effects): Likewise.
13451         * ipa-split.c (consider_split): Likewise.
13452
13453 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
13454
13455         * config/i386/driver-i386.c: Remove names of unused arguments and
13456         unnecessary unused attributes.
13457         * config/i386/host-mingw32.c: Likewise.
13458         * config/i386/i386.c: Likewise.
13459         * config/i386/winnt-stubs.c: Likewise.
13460         * config/i386/winnt.c: Likewise.
13461
13462 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13463
13464         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
13465         (aarch64_gen_loadwb_pair): New helper function.
13466         (aarch64_expand_epilogue): Simplify code using new helper functions.
13467         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
13468
13469 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13470
13471         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
13472         (aarch64_gen_storewb_pair): New helper function.
13473         (aarch64_expand_prologue): Simplify code using new helper functions.
13474         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
13475
13476 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13477
13478         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
13479         Rename to aarch64_save_callee_saves, remove restore code.
13480         (aarch64_restore_callee_saves): New function.
13481
13482 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13483
13484         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
13485         (aarch64_save_callee_saves): New function to handle reg save
13486         for both core and vectore regs.
13487
13488 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13489
13490         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
13491         (aarch64_gen_store_pair): New helper function.
13492         (aarch64_save_or_restore_callee_save_registers)
13493         (aarch64_save_or_restore_fprs): Use new helper functions.
13494
13495 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13496
13497         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
13498         (aarch64_save_or_restore_callee_save_registers)
13499         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
13500
13501 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13502
13503         * config/aarch64/aarch64.c
13504         (aarch64_save_or_restore_callee_save_registers)
13505         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
13506
13507 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13508
13509         * config/aarch64/aarch64.c
13510         (aarch64_save_or_restore_callee_save_registers)
13511         (aarch64_save_or_restore_fprs): Remove 'increment'.
13512
13513 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13514
13515         * config/aarch64/aarch64.c
13516         (aarch64_save_or_restore_callee_save_registers)
13517         (aarch64_save_or_restore_fprs): Use register offset in
13518         cfun->machine->frame.reg_offset.
13519
13520 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13521
13522         * config/aarch64/aarch64.c
13523         (aarch64_save_or_restore_callee_save_registers)
13524         (aarch64_save_or_restore_fprs): Remove base_rtx.
13525
13526 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13527
13528         * config/aarch64/aarch64.c
13529         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
13530         to 'start_offset'.  Remove local variable 'start_offset'.
13531
13532 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13533
13534         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
13535         type to HOST_WIDE_INT.
13536
13537 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13538
13539         * config/aarch64/aarch64.c (aarch64_expand_prologue)
13540         (aarch64_save_or_restore_fprs)
13541         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
13542
13543 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13544
13545         * config/arm/t-rtems-eabi: Add
13546         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
13547         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
13548         mbig-endian/mthumb/march=armv7-r, and
13549         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
13550         multilibs.
13551
13552 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13553             Chris Johns <chrisj@rtems.org>
13554             Joel Sherrill <joel.sherrill@oarcorp.com>
13555
13556         * config.gcc: Add nios2-*-rtems*.
13557         * config/nios2/rtems.h: New file.
13558         * gcc/config/nios2/t-rtems: New file.
13559
13560 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
13561
13562         PR target/61396
13563         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
13564         constant numbers, not general constants.
13565         (rs6000_expand_vector_init): Ditto.
13566
13567 2014-07-23  Nathan Sidwell  <nathan@acm.org>
13568
13569         * gcov-tool.c (gcov_list): Declare here.
13570         (set_gcov_list): Remove.
13571         (gcov_output_files): Set gcov_list directly.
13572
13573 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
13574
13575         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
13576
13577 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13578
13579         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
13580         callee-saved registers are available for padding purpose
13581         and r3 is not mandatory, then prefer use those callee-saved
13582         instead of r3.
13583
13584 2014-07-23  Richard Biener  <rguenther@suse.de>
13585
13586         * params.def (PARAM_MAX_COMBINE_INSNS): New.
13587         * combine.c: Include statistics.h and params.h.
13588         (combine_instructions): Guard three and four insn combines
13589         with max-combine-insns value.  Record statistics for combines
13590         performed.
13591         * doc/invoke.texi (max-combine-insns): Document new param.
13592
13593 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
13594
13595         * graphite-isl-ast-to-gimple.c:
13596         (translate_isl_ast_node_block): New function.
13597         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13598
13599         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13600         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13601
13602 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
13603
13604         * graphite-isl-ast-to-gimple.c:
13605         (get_max_schedule_dimensions): New function.
13606         (extend_schedule): Likewise.
13607         (generate_isl_schedule): Add calling of extend_schedule and
13608         get_max_schedule_dimensions.
13609
13610 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13611
13612         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13613         (case UNSPEC): Handle UNSPEC_RBIT.
13614
13615 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13616
13617         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13618         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13619
13620 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13621
13622         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13623
13624 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
13625
13626         * graphite-isl-ast-to-gimple.c:
13627         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13628         (ivs_params_clear):
13629         (build_iv_mapping): New function.
13630         (translate_isl_ast_node_user): Likewise.
13631         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13632
13633         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13634         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13635         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13636
13637 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
13638
13639         PR target/55701
13640         * config/arm/arm.md (setmem): New pattern.
13641         * config/arm/arm-protos.h (struct tune_params): New fields.
13642         (arm_gen_setmem): New prototype.
13643         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13644         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13645         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13646         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13647         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13648         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13649         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13650         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13651         (arm_const_inline_cost): New function.
13652         (arm_block_set_max_insns): New function.
13653         (arm_block_set_non_vect_profit_p): New function.
13654         (arm_block_set_vect_profit_p): New function.
13655         (arm_block_set_unaligned_vect): New function.
13656         (arm_block_set_aligned_vect): New function.
13657         (arm_block_set_unaligned_non_vect): New function.
13658         (arm_block_set_aligned_non_vect): New function.
13659         (arm_block_set_vect, arm_gen_setmem): New functions.
13660
13661 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
13662
13663         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13664
13665 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
13666
13667         PR target/61855
13668         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13669         out of #ifdef __OPTIMIZE__.
13670
13671 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
13672
13673         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13674         different trapping status if -fnon-call-exceptions is enabled.
13675
13676 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
13677
13678         * expr.c (store_field): Handle VOIDmode for calls that return values
13679         in multiple locations.
13680
13681 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13682
13683         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
13684         (altivec_vsldoi_<mode>): Likewise.
13685
13686 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
13687
13688         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13689         to the number of characters in the line.
13690
13691 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
13692
13693         * graphite-isl-ast-to-gimple.c: Add using of
13694         build_nonstandard_integer_type instead of int128_integer_type_node.
13695
13696 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
13697
13698         * toplev.c (output_stack_usage): Adjust the location of the warning.
13699
13700 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
13701
13702         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13703         (*membar_storeload): Disable for LEON3.
13704
13705 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13706
13707         PR rtl-optimization/61461
13708         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13709
13710 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
13711
13712         PR target/61794
13713         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13714         Fix instruction constraint.
13715         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13716
13717 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
13718
13719         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13720
13721 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
13722
13723         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13724         GNU coding standards.
13725         (nds32_register_move_cost): Likewise.
13726         (nds32_memory_move_cost): Likewise.
13727         (nds32_address_cost): Likewise.
13728
13729 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13730
13731         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13732
13733 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
13734
13735         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13736         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13737         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13738         (HAVE_sync_compare_and_swapqi): Define.
13739         (HAVE_sync_compare_and_swaphi): Likewise.
13740         (HAVE_sync_compare_and_swapsi): Likewise.
13741
13742 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
13743
13744         * config/mips/p5600.md: Add missing cpu tests.
13745
13746 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13747
13748         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13749         (vmla_f64): Likewise.
13750         (vfms_f64): Likewise.
13751         (vmls_f64): Likewise.
13752
13753 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13754
13755         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13756         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13757
13758 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13759
13760         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13761         (vmlal_high_lane_s32): Likewise.
13762         (vmlal_high_lane_u16): Likewise.
13763         (vmlal_high_lane_u32): Likewise.
13764         (vmlsl_high_lane_s16): Likewise.
13765         (vmlsl_high_lane_s32): Likewise.
13766         (vmlsl_high_lane_u16): Likewise.
13767         (vmlsl_high_lane_u32): Likewise.
13768
13769 2014-07-17  Terry Guo  <terry.guo@arm.com>
13770
13771         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13772         (alus_reg): Renamed to alus_sreg.
13773         * config/arm/arm-fixed.md: Change type of non-dsp instructions
13774         from alu_reg to alu_sreg.  Change type of dsp instructions from
13775         alu_reg to alu_dsp_reg.
13776         * config/arm/thumb1.md: Likewise.
13777         * config/arm/thumb2.md: Likewise.
13778         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13779         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13780         with alu_sreg and alus_sreg.
13781         * config/arm/arm1026ejs.md (alu_op): Likewise.
13782         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13783         * config/arm/arm926ejs.md (9_alu_op): Likewise.
13784         * config/arm/fa526.md (526_alu_op): Likewise.
13785         * config/arm/fa606te.md (606te_alu_op): Likewise.
13786         * config/arm/fa626te.md (626te_alu_op): Likewise.
13787         * config/arm/fa726te.md (726te_alu_op): Likewise.
13788         * config/arm/fmp626.md (mp626_alu_op): Likewise.
13789         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13790         alu_sreg, alu_dsp_reg and alus_sreg.
13791         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13792         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13793         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13794         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13795         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13796         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13797         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13798         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13799         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13800         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13801         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13802         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13803         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13804         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13805         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13806         alus_reg to alus_sreg.
13807
13808 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
13809
13810         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13811         infinity format.
13812
13813 2014-07-17  Richard Biener  <rguenther@suse.de>
13814
13815         PR rtl-optimization/61801
13816         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13817         don't set reg_pending_barrier if it appears in a debug-insn.
13818
13819 2014-07-16  DJ Delorie  <dj@redhat.com>
13820
13821         * config/rx/rx.c (rx_option_override): Fix alignment values.
13822         (rx_align_for_label): Likewise.
13823
13824 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
13825
13826         PR target/61737.
13827         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13828         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13829         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13830         functions.
13831         (cris_print_index, cris_print_operand, cris_constant_index_p)
13832         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13833         (cris_address_cost): Ditto last CONSTANT_P.
13834         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
13835         callers changed.  Yield cris_offsettable_symbol for non-PIC
13836         constant symbolic expressions including labels.  Yield cris_unspec
13837         for all unspecs.
13838         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
13839         target to pic_offset_table_rtx for calls that will likely go
13840         through PLT, const0_rtx when they can't.  All callers changed.
13841         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13842         symbolic expressions to be PICified.  Remove second, redundant,
13843         assert on can_create_pseudo_p returning non-zero.  Use
13844         replace_equiv_address_nv, not replace_equiv_address, for final
13845         operand update.
13846         * config/cris/cris.md ("movsi"): Move variable t to pattern
13847         toplevel. Adjust assert for new cris_symbol_type member.  Use
13848         CONSTANT_P instead of CONSTANT_ADDRESS_P.
13849         ("*movsi_internal") <case 9>: Make check for valid unspec operands
13850         for lapc stricter.
13851         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13852         ("call", "call_value"): Use second incoming operand as a marker
13853         for pic-offset-table-register being used.
13854         ("*expanded_call_non_v32", "*expanded_call_v32")
13855         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13856         second incoming operand to CALL, match cris_call_type_marker.
13857         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
13858         ("*expanded_call_side"): Ditto.  Fix typo in comment.
13859         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13860         CONSTANT_P.
13861         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13862         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13863         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
13864         users changed.  Add members cris_offsettable_symbol and cris_unspec.
13865         (cris_symbol_type): Rename from cris_pic_symbol_type.
13866         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13867         just CONSTANT_P.
13868         * config/cris/cris-protos.h (cris_symbol_type_of,
13869         cris_expand_pic_call_address): Adjust prototypes.
13870         (cris_legitimate_constant_p): New prototype.
13871
13872         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13873         an existing tmake_file.  Don't add t-slibgcc and t-linux.
13874
13875 2014-07-17  Jason Merrill  <jason@redhat.com>
13876
13877         PR c++/61623
13878         * symtab.c (symtab_remove_from_same_comdat_group): Also
13879         set_comdat_group to NULL_TREE.
13880         (verify_symtab): Fix diagnostic.
13881
13882 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
13883
13884         PR target/61662
13885         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13886
13887 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
13888
13889         Support location tracking for built-in macro tokens
13890         * input.h (is_location_from_builtin_token): New function declaration.
13891         * input.c (is_location_from_builtin_token): New function definition.
13892         * toplev.c (general_init): Tell libcpp what the pre-defined
13893         spelling location for built-in tokens is.
13894
13895 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
13896
13897         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13898         on the FUNCTION_DECL.
13899
13900 2014-07-16  Richard Biener  <rguenther@suse.de>
13901
13902         PR other/61782
13903         * doc/extend.texi (always_inline): Clarify.
13904
13905 2014-07-15  Eric Christopher  <echristo@gmail.com>
13906
13907         * doc/invoke.texi (Link Options): Document -z option.
13908
13909 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
13910
13911         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13912         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13913
13914 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
13915
13916         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13917
13918 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
13919
13920         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13921         varpool_assemble_decl.
13922         * varpool.c (varpool_assemble_decl): Assert that node->definition is
13923         true.
13924
13925 2014-07-15  Michael Matz  <matz@suse.de>
13926
13927         PR rtl-optimization/61772
13928         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13929
13930 2014-07-15  Richard Biener  <rguenther@suse.de>
13931
13932         * opts.c (default_options_table): Disable bit-ccp at -Og.
13933
13934 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13935
13936         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13937
13938 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13939
13940         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13941         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13942         call langhook for unknown declaration.
13943         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13944         * tree.h (DECL_ARGUMENTS): Update.
13945         * print-tree.c (print_node): Update.
13946         * tree-core.h (tree_decl_non_common): Remove arguments.
13947         (tree_function_decl): Add arguments.
13948
13949 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
13950
13951         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13952
13953 2014-07-14  Richard Biener  <rguenther@suse.de>
13954
13955         PR tree-optimization/61779
13956         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13957         simplifying a condition.
13958
13959 2014-07-14  Richard Biener  <rguenther@suse.de>
13960
13961         * builtins.c (c_strlen): Make only_value == 2 really only
13962         affect warning generation.
13963
13964 2014-07-14  Richard Biener  <rguenther@suse.de>
13965
13966         PR tree-optimization/61757
13967         PR tree-optimization/61783
13968         PR tree-optimization/61787
13969         * tree-ssa-dom.c (record_equality): Revert canonicalization
13970         change and add comment.
13971         (propagate_rhs_into_lhs): Revert previous fix, removing
13972         loop depth restriction again.
13973
13974 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13975
13976         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13977         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13978         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13979         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13980         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13981         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13982         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13983
13984 2014-07-14  Richard Biener  <rguenther@suse.de>
13985
13986         * cgraph.h (decl_in_symtab_p): Make inline.
13987
13988 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
13989
13990         PR middle-end/61294
13991         * doc/invoke.texi (-Wmemset-transposed-args): Document.
13992
13993         PR target/61656
13994         * config/i386/i386.c (classify_argument): Don't merge classes above
13995         number of words.
13996
13997 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
13998
13999         * cgraph.h (symtab_node): Add nonzero_address.
14000         (decl_in_symtab_p): Break out from ...
14001         (symtab_get_node): ... here.
14002         * fold-const.c: Include cgraph.h
14003         (tree_single_nonzero_warnv_p): Use symtab to determine
14004         if symbol is non-zero.
14005         * symtab.c (symtab_node::nonzero_address): New method.
14006
14007 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14008
14009         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
14010         forgotten in previous commit.
14011
14012 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14013
14014         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
14015         on builtin types.
14016         * ipa-devirt.c: Include stor-layout.h and intl.h
14017         (odr_subtypes_equivalent_p): New function.
14018         (warn_odr): New function.
14019         (warn_type_mismatch): New function.
14020         (odr_types_equivalent_p): New function.
14021         (add_type_duplicate): Use it.
14022         * common.opt (Wodr): New flag.
14023         * doc/invoke.texi (Wodr): Document new warning.
14024
14025 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14026
14027         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
14028         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
14029         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
14030         (varpool_get_constructor): Push CTORS_IN timevar.
14031         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
14032
14033 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
14034
14035         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
14036         Remove VOID_FTYPE_PUSHORT.
14037         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
14038         Change code to USHORT_FTYPE_VOID.
14039         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
14040         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
14041         (ix86_atomic_assign_expand_fenv): Update for
14042         __builtin_ia32_fnstsw changes.
14043         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
14044         (fnstsw): Change operand 0 to nonimmediate operand.
14045
14046 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14047
14048         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
14049         (varpool_get_constructor): New function.
14050         (varpool_ctor_useable_for_folding_p): Break out from ...
14051         (ctor_for_folding): ... here; use varpool_get_constructor.
14052         (varpool_assemble_decl): Likewise.
14053         * lto-streamer.h (struct output_block): Turn cgraph_node
14054         to symbol filed.
14055         (lto_input_variable_constructor): Declare.
14056         * ipa-visibility.c (function_and_variable_visibility): Use
14057         varpool_get_constructor.
14058         * cgraph.h (varpool_get_constructor): Declare.
14059         (varpool_ctor_useable_for_folding_p): New function.
14060         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
14061         parameter; return error_mark_node for non-trivial constructors.
14062         (lto_write_tree_1, DFS_write_tree): Update use of
14063         get_symbol_initial_value.
14064         (output_function): Update initialization of symbol.
14065         (output_constructor): New function.
14066         (copy_function): Rename to ..
14067         (copy_function_or_variable): ... this one; handle vars too.
14068         (lto_output): Output variable sections.
14069         * lto-streamer-in.c (input_constructor): New function.
14070         (lto_read_body): Rename from ...
14071         (lto_read_body_or_constructor): ... this one; handle vars too.
14072         (lto_input_variable_constructor): New function.
14073         * ipa-prop.c (ipa_prop_write_jump_functions,
14074         ipa_prop_write_all_agg_replacement): Update.
14075         * lto-cgraph.c (compute_ltrans_boundary): Use it.
14076         (output_cgraph_opt_summary): Set symbol to NULL.
14077
14078 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14079
14080         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
14081         non-polymorphic types.
14082         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
14083         * ipa-devirt.c (types_same_for_odr): Do not explode when one
14084         of types is not polymorphic.
14085
14086 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
14087
14088         * lra-constraints.c (remove_inheritance_pseudos): Process
14089         destination pseudo too.
14090
14091 2014-07-11  Rong Xu  <xur@google.com>
14092
14093         * gcov-tool.c (gcov_output_files): Fix build error introduced in
14094         commit r212448.
14095
14096 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
14097
14098         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
14099         * config/avr/avr-devices.c (AVR_MCU): Same.
14100         (avr_mcu_types): add text start value to end of device list.
14101         * config/avr/avr-mcus.def: Add text section start for all devices.
14102         (ata5782): Add new avr5 device.
14103         (ata5831): Same.
14104         * config/avr/avr-tables.opt: Regenerate.
14105         * config/avr/avr.h: Add declaration for text section start handler.
14106         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
14107         SPEC functions.
14108         (LINK_SPEC): Include text section start handler to linker spec.
14109         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
14110         pass -Ttext option to linker if the text section start for the device
14111         is not zero.
14112         * config/avr/t-multilib: Regenerate.
14113         * doc/avr-mmcu.texi: Regenerate.
14114
14115 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
14116
14117         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
14118         * config/rs6000/aix52.h (LINK_SPEC): Same.
14119         * config/rs6000/aix53.h (LINK_SPEC): Same.
14120         * config/rs6000/aix61.h (LINK_SPEC): Same.
14121         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
14122
14123 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
14124
14125         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
14126         (graphite_verify): New function.
14127         (ivs_params_clear): New function.
14128         (gcc_expression_from_isl_ast_expr_id): New function.
14129         (gcc_expression_from_isl_expr_int): New function.
14130         (binary_op_to_tree): New function.
14131         (ternary_op_to_tree): New function.
14132         (unary_op_to_tree): New function.
14133         (nary_op_to_tree): New function.
14134         (gcc_expression_from_isl_expr_op): New function.
14135         (gcc_expression_from_isl_expression): New function.
14136         (graphite_create_new_loop): New function.
14137         (translate_isl_ast_for_loop): New function.
14138         (get_upper_bound): New function.
14139         (graphite_create_new_loop_guard): New function.
14140         (translate_isl_ast_node_for): New function.
14141         (translate_isl_ast): New function.
14142         (add_parameters_to_ivs_params): New function.
14143         (scop_to_isl_ast): New parameter ip.
14144         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
14145
14146 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14147
14148         * config/xtensa/predicates.md (call expander): Update for
14149         DECL_SECTION_NAME being string.
14150
14151 2014-07-11  Richard Biener  <rguenther@suse.de>
14152
14153         PR middle-end/61473
14154         * builtins.c (fold_builtin_memory_op): Inline memory moves that
14155         can be implemented with a single load followed by a single store.
14156         (c_strlen): Only warn when only_value is not 2.
14157
14158 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
14159
14160         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
14161
14162 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
14163
14164         PR target/61561
14165         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
14166         (*movhi_bytes): Likewise.
14167         (*arm_movqi_insn): Likewise.
14168
14169 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
14170
14171         PR target/56858
14172         * config/alpha/alpha.c: Include tree-pass.h, context.h
14173         and pass_manager.h.
14174         (pass_data_handle_trap_shadows): New pass.
14175         (pass_handle_trap_shadows::gate): New pass gate function.
14176         (make_pass_handle_trap_shadows): New function.
14177         (rest_of_handle_trap_shadows): Ditto.
14178
14179         (alpha_align_insns_1): Rename from alpha_align_insns.
14180         (pass_data_align_insns): New pass.
14181         (pass_align_insns::gate): New pass gate function.
14182         (make_pass_aling_insns): New function.
14183         (rest_of_align_insns): Ditto.
14184         (alpha_align_insns): Ditto.
14185
14186         (alpha_option_override): Declare handle_trap_shadows info
14187         and align_insns_info.  Register handle_trap_shadows and align_insns
14188         passes here.
14189         (alpha_reorg): Do not call alpha_trap_shadows and
14190         alpha_align_insn from here.
14191
14192         (alpha_pad_function_end): Do not skip BARRIERs.
14193
14194 2014-07-10  Rong Xu  <xur@google.com>
14195
14196         Add gcov-tool: an offline gcda profile processing tool support.
14197         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
14198         (gcov_is_error): Ditto.
14199         (gcov_read_string): Ditto.
14200         (gcov_read_sync): Ditto.
14201         * gcov-io.h: Move counter defines to gcov-counter.def.
14202         * gcov-dump.c (tag_counters): Use gcov-counter.def.
14203         * coverage.c: Ditto.
14204         * gcov-tool.c: Offline gcda profile processing tool.
14205         (unlink_gcda_file): Remove one gcda file.
14206         (unlink_profile_dir): Remove gcda files from the profile path.
14207         (gcov_output_files): Output gcda files to an output dir.
14208         (profile_merge): Merge two profiles in directory.
14209         (print_merge_usage_message): Print merge usage.
14210         (merge_usage): Print merge usage and exit.
14211         (do_merge): Driver for profile merge sub-command.
14212         (profile_rewrite): Rewrite profile.
14213         (print_rewrite_usage_message): Print rewrite usage.
14214         (rewrite_usage): Print rewrite usage and exit.
14215         (do_rewrite): Driver for profile rewrite sub-command.
14216         (print_usage): Print gcov-info usage and exit.
14217         (print_version): Print gcov-info version.
14218         (process_args): Process arguments.
14219         (main): Main routine for gcov-tool.
14220         * Makefile.in: Build and install gcov-tool.
14221         * gcov-counter.def: New file split from gcov-io.h.
14222         * doc/gcc.texi: Include gcov-tool.texi.
14223         * doc/gcov-tool.texi: Document for gcov-tool.
14224
14225 2014-07-10  Richard Biener  <rguenther@suse.de>
14226
14227         PR tree-optimization/61757
14228         * tree-ssa-dom.c (loop_depth_of_name): Restore.
14229         (propagate_rhs_into_lhs): Revert part of last change.
14230
14231 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
14232
14233         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
14234         FUNCTION_DECLs.
14235
14236 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
14237
14238         PR middle-end/53590
14239         * function.c (allocate_struct_function): Revert r188667 change.
14240
14241         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
14242
14243 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
14244
14245         * doc/install.texi: Remove links to defunct package providers for
14246         Solaris.
14247
14248 2014-07-09  Tom de Vries  <tom@codesourcery.com>
14249
14250         * final.c (get_call_fndecl): Declare.
14251         (self_recursive_call_p): New function.
14252         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
14253
14254 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14255
14256         * ipa-devirt.c (record_node): Walk through aliases.
14257
14258 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14259
14260         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
14261
14262 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14263
14264         Revert:
14265         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14266
14267 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14268
14269         * ipa-visibility.c (function_and_variable_visibility): Remove
14270         temporary hack disabling local aliases on AIX.
14271
14272 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14273
14274         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
14275         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
14276
14277 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14278
14279         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
14280         * rs6000/rs6000.c: Inline output of .set instruction.
14281         (declare_alias_data): New struct.
14282         (rs6000_declare_alias): New function.
14283         (rs6000_xcoff_declare_function_name): Use it.
14284         (rs6000_xcoff_declare_object_name): New function.
14285         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
14286         (ASM_OUTPUT_DEF): Turn to empty definition.
14287
14288 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14289
14290         PR bootstrap/61679
14291         * hash-table.h: use hash_table::value_type instead of
14292         Descriptor::value_type in the return types of several methods.
14293
14294 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14295
14296         * tree-pass.h (pass_data): Remove has_execute member.
14297         * passes.c (execute_one_pass): Don't check pass->has_execute.
14298         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
14299         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
14300         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
14301         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
14302         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
14303         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
14304         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
14305         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
14306         gimple-low.c, gimple-ssa-isolate-paths.c,
14307         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
14308         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
14309         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
14310         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
14311         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
14312         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
14313         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
14314         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
14315         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
14316         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
14317         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
14318         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14319         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14320         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14321         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14322         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
14323         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
14324         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14325         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14326         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
14327         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
14328         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
14329         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
14330         web.c: Remove initializer for pass_data::has_execute.
14331
14332 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14333
14334         * graphite-htab.h: Use hash_map instead of hash_table.
14335         * graphite-clast-to-gimple.c: Adjust.
14336         * passes.c: Use hash_map instead of hash_table.
14337         * sese.c: Likewise.
14338         * sese.h: Remove now unused code.
14339
14340 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
14341
14342         PR target/61599
14343         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
14344         than zero.
14345
14346 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
14347
14348         PR rtl-optimization/61673
14349         * combine.c (simplify_comparison): Test just mode's sign bit
14350         in tmode rather than the sign bit and any bits above it.
14351
14352 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
14353
14354         * graphite-isl-ast-to-gimple.c (generate_isl_context):
14355         Add __isl_give to the declaration.
14356         (generate_isl_schedule): Likewise.
14357         (scop_to_isl_ast): Likewise.
14358
14359 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14360
14361         * config/arm/arm.c (cortexa5_extra_costs): New table.
14362         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
14363
14364 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
14365
14366         PR tree-optimization/61725
14367         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
14368         range, use range_includes_zerop_p instead of integer_zerop on
14369         vr0->min, only use log2 of max if min is not negative.
14370
14371 2014-07-08  Richard Biener  <rguenther@suse.de>
14372
14373         * tree-ssa-dom.h (loop_depth_of_name): Remove.
14374         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
14375         restriction on loop depth difference.
14376         (record_equality): Likewise.
14377         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
14378         (loop_depth_of_name): Remove.
14379         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
14380         restriction on loop depth difference.
14381         (init_copy_prop): Likewise.
14382
14383 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14384
14385         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
14386         parameter.
14387         (walk_aliased_vdefs): Likewise.
14388         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
14389         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
14390         (detect_type_change_from_memory_writes): Check if entry was reached.
14391
14392 2014-07-08  Richard Biener  <rguenther@suse.de>
14393
14394         PR tree-optimization/61681
14395         * tree-ssa-structalias.c (find_what_var_points_to): Expand
14396         NONLOCAL inside ESCAPED.
14397
14398 2014-07-08  Richard Biener  <rguenther@suse.de>
14399
14400         PR tree-optimization/61680
14401         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14402         Handle properly all read-write dependences with group accesses.
14403
14404 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
14405
14406         PR tree-optimization/61576
14407         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
14408         block containing reduction statement is predecessor of phi basi block.
14409
14410 2014-07-08  Marek Polacek  <polacek@redhat.com>
14411
14412         PR c/60226
14413         * fold-const.c (round_up_loc): Change the parameter type.
14414         Remove assert.
14415         * fold-const.h (round_up_loc): Adjust declaration.
14416         * stor-layout.c (finalize_record_size): Check for too large types.
14417
14418 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
14419
14420         * symtab.c: Include calls.h.
14421         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
14422
14423 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
14424
14425         * config/rs6000/rs6000.c (output_vec_const_move): Handle
14426         little-endian code generation.
14427         * config/rs6000/spe.md (spe_evmergehi): Rename to...
14428         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
14429         (spe_evmergehilo): Rename to...
14430         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
14431         (spe_evmergelo): Rename to...
14432         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
14433         (spe_evmergelohi): Rename to...
14434         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
14435         (spe_evmergehi, spe_evmergehilo): New expanders.
14436         (spe_evmergelo, spe_evmergelohi): Likewise.
14437         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
14438         (*frob_tf_ti): Likewise.
14439         (*frob_<mode>_di_2): Likewise.
14440         (*frob_tf_di_8_2): Likewise.
14441         (*frob_di_<mode>): Likewise.
14442         (*frob_ti_tf): Likewise.
14443         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
14444         (*frob_ti_<mode>_8_2): Likewise.
14445         (*frob_ti_tf_2): Likewise.
14446         (mov_si<mode>_e500_subreg0): Rename to...
14447         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
14448         endianness only.
14449         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
14450         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
14451         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
14452         the big endianness only.
14453         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
14454         (*mov_si<mode>_e500_subreg0_2): Rename to...
14455         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
14456         big big endianness only.
14457         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
14458         (*mov_si<mode>_e500_subreg4): Rename to...
14459         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
14460         endianness only.
14461         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
14462         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
14463         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
14464         the big endianness only.
14465         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
14466         pattern.
14467         (*mov_si<mode>_e500_subreg4_2): Rename to...
14468         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
14469         endianness only.
14470         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
14471         (*mov_sitf_e500_subreg8): Rename to...
14472         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
14473         endianness only.
14474         (*mov_sitf_e500_subreg8_le): New instruction pattern.
14475         (*mov_sitf_e500_subreg8_2): Rename to...
14476         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
14477         endianness only.
14478         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
14479         (*mov_sitf_e500_subreg12): Rename to...
14480         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
14481         endianness only.
14482         (*mov_sitf_e500_subreg12_le): New instruction pattern.
14483         (*mov_sitf_e500_subreg12_2): Rename to...
14484         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
14485         endianness only.
14486         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
14487
14488 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
14489
14490         * asan.c (instrument_strlen_call): Do not instrument first byte
14491         in strlen if already instrumented.
14492
14493 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14494
14495         * config/arm/arm.opt (mwords-little-endian): Delete.
14496         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
14497         of TARGET_LITTLE_WORDS.
14498         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
14499         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
14500         warning.
14501         * doc/invoke.texi: Remove references to -mwords-little-endian.
14502
14503 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
14504
14505         * expmed.c (struct init_expmed_rtl): Change all fields but
14506         pow2 and cint from struct rtx_def to rtx.
14507         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
14508         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
14509         at the end again.
14510
14511 2014-07-06  Marek Polacek  <polacek@redhat.com>
14512
14513         PR c/6940
14514         * doc/invoke.texi: Document -Wsizeof-array-argument.
14515
14516 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14517
14518         * wide-int.h (wide_int_storage): Change declaration from struct
14519         to class.
14520
14521 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
14522
14523         * cgraph.c (cgraph_create_indirect_edge): Update call of
14524         get_polymorphic_call_info.
14525         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
14526         (possible_polymorphic_call_targets): Add parameter call.
14527         (decl_maybe_in_construction_p): New predicate.
14528         (get_polymorphic_call_info): Add parameter call;
14529         use decl_maybe_in_construction_p.
14530         * gimple-fold.c (fold_gimple_assign): Update use of
14531         possible_polymorphic_call_targets.
14532         (gimple_fold_call): Likewise.
14533         * ipa-prop.c: Inlcude calls.h
14534         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
14535         (param_type_may_change_p): New predicate.
14536         (detect_type_change_from_memory_writes): Break out from ...
14537         (detect_type_change): ... this one; use param_type_may_change_p.
14538         (detect_type_change_ssa): Use param_type_may_change_p.
14539         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
14540
14541 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
14542
14543         PR target/49423
14544         * config/arm/arm-protos.h (arm_legitimate_address_p,
14545         arm_is_constant_pool_ref): Add prototypes.
14546         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
14547         (arm_is_constant_pool_ref) New function.
14548         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
14549         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
14550         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
14551         operand. Remove pool_range and neg_pool_range attributes.
14552         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
14553         pool_range and neg_pool_range attributes.
14554         * config/arm/constraints.md (Uh): New constraint.
14555         (Uq): Don't allow constant pool references.
14556
14557 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
14558
14559         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
14560         (move_lo_quad_internal_be_<mode>): Likewise.
14561         (move_lo_quad_<mode>): Convert to define_expand.
14562         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
14563         (aarch64_simd_move_hi_quad_be_<mode>): New.
14564         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
14565         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
14566         (aarch64_combinez_be<mode>): New.
14567         (aarch64_combine<mode>): Convert to define_expand.
14568         (aarch64_combine_internal<mode>): New.
14569         (aarch64_simd_combine<mode>): Remove bogus RTL description.
14570
14571 2014-07-04  Tom de Vries  <tom@codesourcery.com>
14572
14573         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
14574         combination of earlyclobber and read/write modifiers.
14575
14576 2014-07-04  Tom de Vries  <tom@codesourcery.com>
14577
14578         * config/aarch64/aarch64-simd.md
14579         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
14580
14581 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
14582
14583         PR target/61714
14584         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14585
14586 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
14587
14588         PR middle-end/61654
14589         * cgraphunit.c (expand_thunk): Call free_dominance_info.
14590
14591         PR tree-optimization/61684
14592         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14593         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14594
14595 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14596             Kito Cheng  <kito@0xlab.org>
14597             Monk Chiang  <sh.chiang04@gmail.com>
14598
14599         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14600         (nds32_symbol_load_store_p): Move to ...
14601         (nds32_fp_as_gp_check_available): Move to ...
14602         * config/nds32/nds32-fp-as-gp.c: ... here.
14603         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14604         extern declaration.
14605
14606 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14607             Kito Cheng  <kito@0xlab.org>
14608             Monk Chiang  <sh.chiang04@gmail.com>
14609
14610         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14611         (nds32_expand_store_multiple): Move to ...
14612         (nds32_expand_movmemqi): Move to ...
14613         * config/nds32/nds32-memory-manipulation.c: ... here.
14614
14615 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14616             Kito Cheng  <kito@0xlab.org>
14617             Monk Chiang  <sh.chiang04@gmail.com>
14618
14619         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14620         (nds32_output_casesi_pc_relative): Move to ...
14621         (nds32_output_casesi): Move to ...
14622         (nds32_mem_format): Move to ...
14623         (nds32_output_16bit_store): Move to ...
14624         (nds32_output_16bit_load): Move to ...
14625         (nds32_output_32bit_store): Move to ...
14626         (nds32_output_32bit_load): Move to ...
14627         (nds32_output_32bit_load_s): Move to ...
14628         (nds32_output_stack_push): Move to ...
14629         (nds32_output_stack_pop): Move to ...
14630         * config/nds32/nds32-md-auxiliary.c: ... here.
14631
14632 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14633             Ling-Hua Tseng  <uranus@tinlans.org>
14634
14635         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14636         the purpose of this file.
14637
14638 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14639             Kito Cheng  <kito@0xlab.org>
14640             Monk Chiang  <sh.chiang04@gmail.com>
14641
14642         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14643         (nds32_address_cost): Move implementation to ...
14644         * config/nds32/nds32-cost.c: ... here.
14645         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14646         (nds32_address_cost_impl): Declare.
14647
14648 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14649             Kito Cheng  <kito@0xlab.org>
14650             Monk Chiang  <sh.chiang04@gmail.com>
14651
14652         * config/nds32/nds32.c
14653         (nds32_consecutive_registers_load_store_p): Move to ...
14654         (nds32_valid_multiple_load_store): Move to ...
14655         (nds32_valid_stack_push_pop): Move to ...
14656         (nds32_can_use_bclr_p): Move to ...
14657         (nds32_can_use_bset_p): Move to ...
14658         (nds32_can_use_btgl_p): Move to ...
14659         (nds32_can_use_bitci_p): Move to ...
14660         * config/nds32/nds32-predicates.c: ... here.
14661
14662 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14663             Kito Cheng  <kito@0xlab.org>
14664             Monk Chiang  <sh.chiang04@gmail.com>
14665
14666         * config/nds32/nds32.c
14667         (nds32_expand_builtin_null_ftype_reg): Move to ...
14668         (nds32_expand_builtin_reg_ftype_imm): Move to ...
14669         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14670         (nds32_init_builtins): Move implementation to ...
14671         (nds32_expand_builtin): Move implementation to ...
14672         * config/nds32/nds32-intrinsic.c: ... here.
14673         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14674         (nds32_expand_builtin_impl): Declare.
14675
14676 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14677             Kito Cheng  <kito@0xlab.org>
14678             Monk Chiang  <sh.chiang04@gmail.com>
14679
14680         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14681         (nds32_emit_section_tail_template): Move to ...
14682         (nds32_emit_isr_jmptbl_section): Move to ...
14683         (nds32_emit_isr_vector_section): Move to ...
14684         (nds32_emit_isr_reset_conten): Move to ...
14685         (nds32_check_isr_attrs_conflict): Move to ...
14686         (nds32_construct_isr_vectors_information): Move to ...
14687         (nds32_asm_file_start): Move implementation to ...
14688         (nds32_asm_file_end): Move implementation to ...
14689         * config/nds32/nds32-isr.c: ... here.
14690         * config/nds32/nds32-protos.h
14691         (nds32_check_isr_attrs_conflict): Declare.
14692         (nds32_construct_isr_vectors_information): Declare.
14693         (nds32_asm_file_start_for_isr): Declare.
14694         (nds32_asm_file_end_for_isr): Declare.
14695
14696 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14697             Kito Cheng  <kito@0xlab.org>
14698             Monk Chiang  <sh.chiang04@gmail.com>
14699
14700         * config.gcc (nds32*): Add new modules to extra_objs.
14701         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14702         (nds32be-*-*): Likewise.
14703         * config/nds32/nds32-cost.c: New file.
14704         * config/nds32/nds32-fp-as-gp.c: New file.
14705         * config/nds32/nds32-intrinsic.c: New file.
14706         * config/nds32/nds32-isr.c: New file.
14707         * config/nds32/nds32-md-auxiliary.c: New file.
14708         * config/nds32/nds32-memory-manipulation.c: New file.
14709         * config/nds32/nds32-pipelines-auxiliary.c: New file.
14710         * config/nds32/nds32-predicates.c: New file.
14711         * config/nds32/t-nds32: New file.
14712
14713 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14714
14715         PR tree-optimization/61682
14716         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14717         using cases and when one of the operands is equal to 1.
14718
14719 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
14720
14721         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14722         ashr<mode>3): Correct mode of operands[2].
14723         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14724         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14725         Correct mode of operands[2].  Fix split condition.
14726
14727 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
14728
14729         * arm.md (arch): Add armv6_or_vfpv3.
14730         (arch_enabled): Add test for the above.
14731         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14732         on VFP9.
14733         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14734
14735 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14736
14737         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14738         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14739         HWI 1 and negate the unsigned value.
14740         * expmed.c (expand_sdiv_pow2): For modes wider than word always
14741         use AND instead of shift.
14742         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14743
14744 2014-07-03  Marek Polacek  <polacek@redhat.com>
14745
14746         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14747         (-fsanitize=float-divide-by-zero): Move to the table with
14748         -fsanitize=undefined suboptions.
14749         (-fsanitize=float-cast-overflow): Likewise.
14750
14751 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
14752
14753         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14754         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14755         endianness.
14756
14757 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14758
14759         * loop-invariant.c (struct invariant): Add a new member: eqno;
14760         (find_identical_invariants): Update eqno;
14761         (create_new_invariant): Init eqno;
14762         (get_inv_cost): Compute comp_cost with eqno;
14763
14764 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14765
14766         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14767         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14768         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14769         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14770         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14771
14772 2014-07-02  Christian Bruel  <christian.bruel@st.com>
14773
14774         PR target/29349
14775         PR target/53513
14776         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14777         (make_preds_opaque): Delete.
14778         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14779         (commit_mode_sets): New function.
14780         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14781         Process all modes at once.
14782         * basic-block.h (pre_edge_lcm_avs): Declare.
14783         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14784         Call clear_aux_for_edges. Fix comments.
14785         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14786         (pre_edge_rev_lcm): Idem.
14787         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14788         parameter.
14789         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14790         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14791         Idem.
14792         * config/i386/i386.c (x96_emit_mode_set): Idem.
14793         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14794         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
14795         (fpscr_toggle) Disallow from delay slot.
14796         * target.def (emit_mode_set): Add prev_mode parameter.
14797         * doc/tm.texi: Regenerate.
14798
14799 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14800
14801         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14802         variable i.
14803
14804 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14805
14806         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14807         vtable_pointer_value_to_vtable): Constify.
14808         (contains_polymorphic_type_p): Declare.
14809         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14810         vtable_pointer_value_to_vtable): Constify.
14811         (contains_polymorphic_type_p): New predicate.
14812         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14813         polymorphic types.
14814         (ipa_set_ancestor_jf): Likewise.
14815         (detect_type_change): Return false in easy cases.
14816         (compute_complex_assign_jump_func): Require type to contain
14817         polymorphic type.
14818         (compute_known_type_jump_func): Likewise.
14819
14820 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14821
14822         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14823         Remove.
14824         (type_in_anonymous_namespace_p): Constify argument.
14825         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14826         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14827         (main_odr_variant): New function.
14828         (hash_type_name): Make static; update assert; do not ICE on
14829         non-records.
14830         (types_same_for_odr): Bring here from tree.c; simplify and remove
14831         old structural comparing code that doesn't work for templates.
14832         (odr_hasher::equal): Update assert.
14833         (add_type_duplicate): Return true when bases should be computed;
14834         replace incomplete loader by complete; do not output duplicated
14835         warnings; do not ICE on non-records; set odr_violated flag.
14836         (get_odr_type): Be ready to replace incomplete type by complete
14837         one; work on ODR variants instead of main variants; reorder item
14838         in array so bases have still smaller indexes.
14839         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14840         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14841
14842 2014-07-01  Cary Coutant  <ccoutant@google.com>
14843
14844         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14845         lookup.
14846         (resolve_addr_in_expr): When replacing the rtx in a location list
14847         entry, get a new address table entry.
14848         (dwarf2out_finish): Call index_location_lists even if there are no
14849         addr_index_table entries yet.
14850
14851 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14852
14853         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14854         change for not being obvious.
14855
14856 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14857
14858         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14859         unused argument.
14860
14861 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14862
14863         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14864         (vcagt_f64): Likewise.
14865         (vcale_f64): Likewise.
14866         (vcaled_f64): Likewise.
14867         (vcales_f32): Likewise.
14868         (vcalt_f64): Likewise.
14869         (vcaltd_f64): Likewise.
14870         (vcalts_f32): Likewise.
14871
14872 2014-07-01  Marek Polacek  <polacek@redhat.com>
14873
14874         * doc/invoke.texi: Document -Wint-conversion.
14875
14876 2014-07-01  Marek Polacek  <polacek@redhat.com>
14877
14878         PR c/58286
14879         * doc/invoke.texi: Document -Wincompatible-pointer-types.
14880
14881 2014-07-01  Martin Liska  <mliska@suse.cz>
14882
14883         IPA REF alias refactoring
14884         * cgraph.h (iterate_direct_aliases): New function.
14885         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14886         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14887         FOR_EACH_ALIAS added.
14888         (cgraph_for_node_and_aliases): Likewise.
14889         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14890         * ipa-inline.c (reset_edge_caches): Likewise.
14891         (update_caller_keys): Likewise.
14892         * trans-mem.c (ipa_tm_execute): Likewise.
14893         *varpool.c (varpool_analyze_node): Likewise.
14894         (varpool_for_node_and_aliases): Likewise.
14895         * ipa-ref.h (first_alias): New function.
14896         (last_alias): Likewise.
14897         (has_aliases_p): Likewise.
14898         * ipa-ref.c (ipa_ref::remove_reference): Removal function
14899         is sensitive to IPA_REF_ALIASes.
14900         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14901         are put at the beginning of the list.
14902         (symtab_node::iterate_direct_aliases): New function.
14903
14904 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14905
14906         Revert:
14907         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14908         type is complete.
14909         (write_ts_type_common_tree_pointers): Do not stream fields not set
14910         for incomplete types; do not stream duplicated fields for variants;
14911         sanity check that variant and type match.
14912         (write_ts_type_non_common_tree_pointers): Likewise.
14913         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14914         TYPE_SIZE whether type is complete.
14915         (lto_input_ts_type_common_tree_pointers): Do same changes as in
14916         write_ts_type_common_tree_pointers
14917         (lto_input_ts_type_non_common_tree_pointers): Likewise.
14918
14919 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
14920
14921         * var-tracking.c (add_stores): Return instead of asserting if old
14922         and new values for conditional store are the same.
14923
14924 2014-06-30  Richard Henderson  <rth@redhat.com>
14925
14926         PR rtl-opt/61608
14927         PR target/39284
14928         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14929         the cfg if there were any changes.
14930         * passes.def: Revert move of peephole2 after reorder_blocks;
14931         move duplicate_computed_gotos before peephole2.
14932
14933 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
14934
14935         * except.c (emit_note_eh_region_end): New helper function.
14936         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14937         emit EH_REGION_END note.
14938         * jump.c (cleanup_barriers): Do not split a call and its
14939         corresponding CALL_ARG_LOCATION note.
14940
14941 2014-06-30  Jeff Law  <law@redhat.com>
14942
14943         PR tree-optimization/61607
14944         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14945         deeper into the SSA_NAME_VALUE chain.
14946
14947 2014-06-30  Marek Polacek  <polacek@redhat.com>
14948
14949         * convert.c (convert_to_integer): Don't instrument conversions if the
14950         function has no_sanitize_undefined attribute.
14951         * ubsan.c: Don't run the ubsan pass if the function has
14952         no_sanitize_undefined attribute.
14953
14954 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14955
14956         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14957         -fsanitize=undefined suboptions.
14958
14959 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
14960
14961         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14962         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14963         against bigendian and adjust indices.
14964
14965 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14966
14967         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
14968
14969 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14970
14971         PR target/61633
14972         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14973         Add alternative; make early clobber.  Adjust both split patterns
14974         to use operand 0 as the working register.
14975
14976 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14977
14978         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14979         as ira_object_id_map might be NULL, or 1.
14980
14981 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14982
14983         * loop-invariant.c (get_inv_cost): Handle register class.
14984         (gain_for_invariant): Check the register pressure of the inv
14985         and its overlapped register class, other than all.
14986
14987 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14988
14989         * doc/invoke.texi (Optimize Options): Fix descriptions of
14990         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14991
14992 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
14993
14994         * doc/extend.texi (Function Attributes): Update 'naked' attribute
14995         documentation.
14996
14997 2014-06-29  Tobias Grosser <tobias@grosser.es>
14998
14999         PR bootstrap/61650
15000         * graphite-isl-ast-to-gimple.c: Add missing guards.
15001
15002 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15003
15004         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
15005         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
15006         * flag-types.h: Add new enum fgraphite_generator.
15007         * graphite-isl-ast-to-gimple.c: New.
15008         * graphite-isl-ast-to-gimple.h: New.
15009         * graphite.c (graphite_transform_loops): Add choice of Graphite
15010         code generator, which depends on flag_graphite_code_gen.
15011
15012 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15013
15014         * graphite-dependences.c (subtract_commutative_associative_deps):
15015         Add NULL checking of the following variables: must_raw_no_source,
15016         may_raw_no_source, must_war_no_source, may_war_no_source,
15017         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
15018         must_war, may_war, must_waw, may_waw.
15019
15020 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15021
15022         * graphite-clast-to-gimple.c: gloog is renamed to
15023         graphite_regenerate_ast_cloog.  gloog_error is renamed to
15024         graphite_regenerate_error.
15025         * graphite-clast-to-gimple.h: The definition of the struct
15026         bb_pbb_def is moved to graphite-htab.h.
15027         Add inclusion of the hash-table.h.
15028         * graphite-htab.h: The declaration of the function gloog is moved
15029         to graphite-clast-to-gimple.h and renamed to
15030         graphite_regenerate_ast_cloog.
15031         * graphite.c (graphite_transform_loops): gloog is renamed
15032         to graphite_regenerate_ast_cloog.
15033
15034 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15035
15036         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
15037         type is complete.
15038         (write_ts_type_common_tree_pointers): Do not stream fields not set
15039         for incomplete types; do not stream duplicated fields for variants;
15040         sanity check that variant and type match.
15041         (write_ts_type_non_common_tree_pointers): Likewise.
15042         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
15043         TYPE_SIZE whether type is complete.
15044         (lto_input_ts_type_common_tree_pointers): Do same changes as in
15045         write_ts_type_common_tree_pointers
15046         (lto_input_ts_type_non_common_tree_pointers): Likewise.
15047
15048 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15049
15050         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
15051
15052 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15053
15054         * tree-inline.c (remap_type_1): Do not duplicate fields
15055         that are shared in between type and its main variant.
15056
15057 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15058
15059         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
15060         of the type.
15061         (ipa_set_ancestor_jf) Likewise.
15062         (check_stmt_for_type_change): Check that we work on main variant.
15063         (detect_type_change): Look into main variant.
15064         (compute_known_type_jump_func): Check that main variant has BINFO.
15065
15066 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15067
15068         * ipa-devirt.c (set_type_binfo): New function.
15069         (add_type_duplicate): Use it.
15070         (get_odr_type): Sanity check that binfos points to main variants.
15071         (get_class_context): Be sure the context's outer_type is main variant.
15072         (contains_type_p): Walk main variant.
15073         (get_polymorphic_call_info_for_decl): Set outer_type to be
15074         main variant.
15075         (get_polymorphic_call_info): Likewise.
15076         (possible_polymorphic_call_targets): Sanity check that we operate
15077         on main variant.
15078
15079 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15080
15081         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15082
15083 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15084
15085         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
15086         accidental change due to wide-int branch merge.
15087
15088 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15089
15090         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
15091         compressed debug support.
15092         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
15093         * configure: Regenerate.
15094         * config.in: Regenerate.
15095         * common.opt (compressed_debug_sections): New enum.
15096         (gz, gz=): New options.
15097         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
15098         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
15099         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
15100         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
15101         LINK_COMPRESS_DEBUG_SPEC.
15102         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
15103         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
15104         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
15105         (Debugging Options): Document -gz[=type].
15106
15107 2014-06-27  Martin Jambor  <mjambor@suse.cz>
15108
15109         PR ipa/61160
15110         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
15111         args_to_skip, use those from node instead.  Copy args_to_skip and
15112         combined_args_to_skip from node to the new thunk.
15113         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
15114         (cgraph_create_virtual_clone): Moved computation of
15115         combined_args_to_skip...
15116         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
15117
15118 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
15119
15120         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
15121         redundant diagnostic machinary.
15122
15123 2014-06-27  Richard Biener  <rguenther@suse.de>
15124
15125         * tree-ssa-math-opts.c (bswap_replace): Fix
15126         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
15127
15128 2014-06-27  Martin Liska  <mliska@suse.cz>
15129
15130         * gimple.h (gimple_location_safe): New function introduced.
15131         * cgraphunit.c (walk_polymorphic_call_targets): Usage
15132         of gimple_location_safe replaces gimple_location.
15133         (gimple_fold_call): Likewise.
15134         * ipa-devirt.c (ipa_devirt): Likewise.
15135         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
15136         * ipa.c (walk_polymorphic_call_targets): Likewise.
15137         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15138
15139 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
15140
15141         PR tree-optimization/57233
15142         PR tree-optimization/61299
15143         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
15144         functions.
15145         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
15146         would be lowered to scalar shifts, check if corresponding
15147         shifts and vector BIT_IOR_EXPR are supported and don't lower
15148         or lower just to narrower vector type in that case.
15149         * expmed.c (expand_shift_1): Fix up handling of vector
15150         shifts and rotates.
15151
15152 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
15153
15154         PR target/61586
15155         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
15156
15157 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
15158
15159         * doc/invoke.texi (-fsemantic-interposition): Document.
15160         * common.opt (fsemantic-interposition): New flag.
15161         * varasm.c (decl_replaceable_p): Use it.
15162
15163 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15164
15165         PR target/61542
15166         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
15167         extraction other than index 3.
15168
15169 2014-06-26  Teresa Johnson  <tejohnson@google.com>
15170
15171         * doc/invoke.texi: Fix typo.
15172         * dumpfile.c: Add support for documented -fdump-* options
15173         optimized/missed/note/optall.
15174
15175 2014-06-26  Martin Jambor  <mjambor@suse.cz>
15176
15177         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
15178         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
15179         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
15180         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
15181         * opts.c (default_options_optimization): Set
15182         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
15183         * doc/invoke.texi (allow-load-data-races)
15184         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
15185         (allow-store-data-races): Document the new default.
15186
15187 2014-06-26  Martin Jambor  <mjambor@suse.cz>
15188
15189         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
15190         renamed to ipa_impossible_devirt_target.  Fix typo.
15191         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
15192         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
15193         ipa_impossible_devirt_target.
15194
15195 2014-06-26  Richard Biener  <rguenther@suse.de>
15196
15197         PR tree-optimization/61607
15198         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
15199         explaining why we restrict copies on loop depth.
15200         * tree-ssa-dom.c (cprop_operand): Remove restriction on
15201         on loop depth.
15202         (record_equivalences_from_phis): Instead add it here.
15203
15204 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
15205
15206         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
15207         (LTO_WRAPPER_OBJS): New variable.
15208         (lto-wrapper$(exeext)): Use it.
15209         * collect2.c: Include "collect-utils.h".
15210         (verbose, debug): Remove variables.
15211         (at_file_supplied): No longer static.
15212         (tool_name): New variable.
15213         (do_wait, fork_execute, maybe_unlink): Don't declare.
15214         (tool_cleanup): No longer static.
15215         (notice): Remove function.
15216         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
15217         fork_execute calls.
15218         (collect_wait, do_wait, collect_execute): Remove functions.
15219         (maybe_unlink): No longer static.
15220         * collect2.h (verbose, debug): Don't declare.
15221         (at_file_supplied): Declare.
15222         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
15223         changed.
15224         (collect_execute): Replace with implementation from collect2, plus a
15225         new arg use_atfile.  All callers changed.
15226         (collect_wait): Replace with implementation from collect2.
15227         (maybe_unlink_file): Remove function.
15228         (fork_execute): Replace with implementation from collect2, plus a
15229         new arg use_atfile.  All callers changed.
15230         (do_wait): Add call to utils_cleanup to the error path.
15231         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
15232         (tool_cleanup): Adjust declarations.
15233         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
15234         * tlink.c: Include "collect-utils.h".
15235         (tlink_execute): New arg use_atfile.  All callers changed.
15236         (tlink_init, tlink_execute): Remove declarations.
15237
15238         * collect-utils.c (save_temps): New variable.
15239         (do_wait): Use it instead of debug.  Use fatal_error.
15240         * collect-utils.h (save_temps): Declare.
15241         * collect2.c (verbose): Rename from vflag.  All uses changed.
15242         (tool_cleanup): New function, copied from collect_atexit.
15243         (collect_atexit, handler): Just call it.
15244         * collect2.h (verbose): Declaration renamed from vflag.
15245         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
15246         debug.
15247
15248         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
15249         (lto-wrapper$(exeext)): Link with collect-utils.o.
15250         * collect-utils.c: New file.
15251         * collect-utils.h: New file.
15252         * lto-wrapper.c: Include "collect-utils.h".
15253         (args_name): Delete variable.
15254         (tool_name): New variable.
15255         (tool_cleanup): New function.
15256         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
15257         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
15258         (fork_execute): Remove functions.
15259
15260 2014-06-26  Nick Clifton  <nickc@redhat.com>
15261
15262         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
15263
15264         * doc/extend.texi (Function Attributes): Fix typo in description
15265         of RX vector attribute.
15266
15267 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15268
15269         * config.gcc (supported_defaults): Error when passing either
15270         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
15271
15272 2014-06-26  Richard Biener  <rguenther@suse.de>
15273
15274         * tree-ssa-dom.c (cprop_operand): Remove restriction on
15275         propagating volatile pointers.
15276
15277 2014-06-26  Richard Biener  <rguenther@suse.de>
15278
15279         PR tree-optimization/61607
15280         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
15281         loop if we redirected its latch edge.
15282         (thread_block_1): Do not cancel loops prematurely.
15283
15284 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
15285
15286         * toplev.c (backend_init_target): Move init_emit_regs and
15287         init_regs to...
15288         (backend_init) ... here; skip ira_init_once and backend_init_target.
15289         (target_reinit) ... and here; clear
15290         this_target_rtl->lang_dependent_initialized.
15291         (lang_dependent_init_target): Clear
15292         this_target_rtl->lang_dependent_initialized;
15293         break out rtl initialization to ...
15294         (initialize_rtl): ... here; call also backend_init_target
15295         and ira_init_once.
15296         * toplev.h (initialize_rtl): New function.
15297         * function.c: Include toplev.h
15298         (init_function_start): Call initialize_rtl.
15299         * rtl.h (target_rtl): Add target_specific_initialized,
15300         lang_dependent_initialized.
15301
15302 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
15303             Jakub Jelinek  <jakub@redhat.com>
15304
15305         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
15306
15307 2014-06-25  Tom de Vries  <tom@codesourcery.com>
15308
15309         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
15310
15311 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15312
15313         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
15314         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
15315         Issue a strict overflow warning if appropriate.
15316
15317 2014-06-25  Martin Liska  <mliska@suse.cz>
15318
15319         IPA REF refactoring
15320         * Makefile.in: Removed header file (ipa-ref-inline.h).
15321         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
15322         called.
15323         (cgraph_speculative_call_info): Likewise.
15324         (cgraph_for_node_thunks_and_aliases): Likewise.
15325         (cgraph_for_node_and_aliases): Likewise.
15326         (verify_cgraph_node): Likewise.
15327         * cgraph.h: Batch of IPA REF functions become member functions of
15328         symtab_node: add_reference, maybe_add_reference, clone_references,
15329         clone_referring, clone_reference, find_reference,
15330         remove_stmt_references, remove_all_references,
15331         remove_all_referring, dump_references, dump_referring,
15332         has_alias_p, iterate_reference, iterate_referring.
15333         * cgraphbuild.c (record_reference): New IPA REF function used.
15334         (record_type_list): Likewise.
15335         (record_eh_tables): Likewise.
15336         (mark_address): Likewise.
15337         (mark_load): Likewise.
15338         (mark_store): Likewise.
15339         (pass_build_cgraph_edges): Likewise.
15340         (rebuild_cgraph_edge): Likewise.
15341         (cgraph_rebuild_references): Likewise.
15342         (pass_remove_cgraph_callee_edges): Likewise.
15343         * cgraphclones.c (cgraph_clone_node): Likewise.
15344         (cgraph_create_virtual_clone): Likewise.
15345         (cgraph_materialize_clone): Likewise.
15346         (cgraph_materialize_all_clones): Likewise.
15347         * cgraphunit.c (cgraph_reset_node): Likewise.
15348         (cgraph_reset_node): Likewise.
15349         (analyze_function): Likewise.
15350         (assemble_thunks_and_aliases): Likewise.
15351         (expand_function): Likewise.
15352         * ipa-comdats.c (propagate_comdat_group): Likewise.
15353         (enqueue_references): Likewise.
15354         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
15355         (create_specialized_node): Likewise.
15356         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
15357         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
15358         * ipa-inline.c (reset_edge_caches): Likewise.
15359         (update_caller_keys): Likewise.
15360         (execute): Likewise.
15361         * ipa-prop.c (remove_described_reference): Likewise.
15362         (propagate_controlled_uses): Likewise.
15363         (ipa_edge_duplication_hook): Likewise.
15364         (ipa_modify_call_arguments): Likewise.
15365         * ipa-pure-const.c (propagate_pure_const): Likewise.
15366         * ipa-ref-inline.h: Header file removed, functions moved
15367         to symtab_node class.
15368         * ipa-ref.c (remove_reference): New class member function.
15369         (cannot_lead_to_return): New class member function.
15370         (referring_ref_list): Likewise.
15371         (referred_ref_list): Likewise.
15372         Rest of functions moved to symtab_node class.
15373         * ipa-ref.h: New member functions remove_reference,
15374         cannot_lead_to_return, referring_ref_list, referred_ref_list added
15375         to ipa_ref class.
15376         ipa_ref_list class has new member functions: first_reference,
15377         first_referring, clear, nreferences.
15378         * ipa-reference.c (analyze_function): New IPA REF function used.
15379         (write_node_summary_p): Likewise.
15380         (ipa_reference_write_optimization_summary): Likewise.
15381         * ipa-split.c (split_function): Likewise.
15382         * ipa-utils.c (ipa_reverse_postorder): Likewise.
15383         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
15384         (function_and_variable_visibility): Likewise.
15385         * ipa.c (has_addr_references_p): Likewise.
15386         (process_references): Argument type changed.
15387         (symtab_remove_unreachable_nodes): New IPA REF function used.
15388         (process_references): Likewise.
15389         (set_writeonly_bit): Likewise.
15390         * lto-cgraph.c: Implementation of new symtab_node member functions
15391         that uses new IPA REF functions.
15392         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
15393         function used.
15394         * lto-streamer-out.c (output_symbol_p): Likewise.
15395         * lto-streamer.h (referenced_from_this_partition_p): Argument type
15396         changed.
15397         * symtab.c: Implementation of new IPA REF API.
15398         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
15399         (ipa_tm_create_version): Likewise.
15400         (ipa_tm_execute): Likewise.
15401         * tree-emutls.c (gen_emutls_addr): Likewise.
15402         * tree-inline.c (copy_bb): Likewise.
15403         (delete_unreachable_blocks_update_callgraph): Likewise.
15404         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
15405         (varpool_for_node_and_aliases): Likewise.
15406
15407 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
15408
15409         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
15410
15411 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
15412
15413         PR bootstrap/61598
15414         * fold-const.c (fold_checksum_tree): Use a hash_table of const
15415         tree_node * instead of tree_node *.
15416         (fold): Adjust.
15417         (print_fold_checksum): Likewise.
15418         (fold_check_failed): Likewise.
15419         (debug_fold_checksum): Likewise.
15420         (fold_build1_stat_loc): Likewise.
15421         (fold_build2_stat_loc): Likewise.
15422         (fold_build3_stat_loc): Likewise.
15423         (fold_build_call_array_loc): Likewise.
15424
15425 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
15426
15427         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
15428         implementation with call to...
15429         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
15430         function.
15431         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
15432         Declare.
15433
15434 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
15435
15436         PR tree-optimization/57742
15437         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
15438         after replacing the statement.
15439
15440 2014-06-25  Nick Clifton  <nickc@redhat.com>
15441
15442         * config/v850/v850.c (GHS_default_section_names): Change to const
15443         char * type.
15444         (GHS_current_section_names): Likewise.
15445         (v850_insert_attributes): Do not build strings, just assign the
15446         names directly.  Change the type of 'chosen_section' to const
15447         char*.
15448         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
15449         directly to the array entry.
15450         * config/v850/v850.h (GHS_default_section_names): Change to const
15451         char * type.
15452         (GHS_current_section_names): Likewise.
15453
15454 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
15455
15456         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
15457         (LANG_HOOKS_DECLS): Add it.
15458         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
15459         has correct type.
15460         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
15461         * langhooks.h (struct lang_hooks_for_decls): Add
15462         omp_clause_linear_ctor hook.
15463         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
15464         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
15465         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
15466         combined simd loop use omp_clause_linear_ctor hook.
15467
15468 2014-06-24  Cong Hou  <congh@google.com>
15469
15470         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
15471         pattern recognition.
15472         (type_conversion_p): PROMOTION is true if it's a type promotion
15473         conversion, and false otherwise.  Return true if the given expression
15474         is a type conversion one.
15475         * tree-vectorizer.h: Adjust the number of patterns.
15476         * tree.def: Add SAD_EXPR.
15477         * optabs.def: Add sad_optab.
15478         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
15479         * expr.c (expand_expr_real_2): Likewise.
15480         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
15481         * gimple.c (get_gimple_rhs_num_ops): Likewise.
15482         * optabs.c (optab_for_tree_code): Likewise.
15483         * tree-cfg.c (estimate_operator_cost): Likewise.
15484         * tree-ssa-operands.c (get_expr_operands): Likewise.
15485         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
15486         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
15487         * doc/generic.texi: Add document for SAD_EXPR.
15488         * doc/md.texi: Add document for ssad and usad.
15489
15490 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15491
15492         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
15493         qualification in cast.
15494
15495 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
15496
15497         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
15498         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
15499         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
15500         (tree_function_decl): ... here.
15501         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
15502         streaming of vindex to ...
15503         (write_ts_function_decl_tree_pointers): ... here.
15504         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
15505         Do not stream DECL_VINDEX.
15506         (lto_input_ts_function_decl_tree_pointers): Stream it here.
15507
15508 2014-06-24  Catherine Moore  <clm@codesourcery.com>
15509             Sandra Loosemore  <sandra@codesourcery.com>
15510
15511         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
15512         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
15513         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
15514
15515 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
15516
15517         * doc/invoke.texi (Warning Options): Remove duplicated
15518         -Wmaybe-uninitialized.
15519
15520 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
15521
15522         PR tree-optimization/57742
15523         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
15524         (handle_builtin_malloc, handle_builtin_memset): New functions.
15525         (strlen_optimize_stmt): Call them.
15526         * passes.def: Move strlen after loop+dom but before vrp.
15527
15528 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15529
15530         PR target/61570
15531         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
15532         model family 6 CPU with has_longmode never use a CPU without
15533         64-bit support.
15534
15535 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15536
15537         PR target/61570
15538         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
15539         the last change.
15540
15541 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15542
15543         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
15544         * dominance.c (iterate_fix_dominators): Use hash_map instead of
15545         pointer_map.
15546         * hash-map.h: New file.
15547         * ipa-comdats.c: Use hash_map instead of pointer_map.
15548         * ipa.c: Likewise.
15549         * lto-section-out.c: Adjust.
15550         * lto-streamer.h: Replace pointer_map with hash_map.
15551         * symtab.c (verify_symtab): Likewise.
15552         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
15553         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
15554         * tree-streamer.h: Likewise.
15555         * tree-streamer.c: Adjust.
15556         * pointer-set.h: Remove pointer_map.
15557
15558 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15559
15560         * hash-table.h: Add a template arg to choose between storing values
15561         and storing pointers to values, and then provide partial
15562         specializations for both.
15563         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
15564         should store, not the type values should point to.
15565         * tree-into-ssa.c (var_info_hasher): Likewise.
15566         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15567         * tree-complex.c: Adjust.
15568         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
15569         table instead of int_tree_map *.
15570         * tree-parloops.c: Adjust.
15571         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
15572         type is being stored.
15573         * tree-vectorizer.c: Adjust.
15574
15575 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15576
15577         * hash-table.h: Remove a layer of indirection from hash_table so that
15578         it contains the hash table's data instead of a pointer to the data.
15579         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
15580         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
15581         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15582         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15583         fold-const.c, gcse.c, ggc-common.c,
15584         gimple-ssa-strength-reduction.c, gimplify.c,
15585         graphite-clast-to-gimple.c, graphite-dependences.c,
15586         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15587         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15588         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15589         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15590         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15591         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15592         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15593         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15594         tree-ssa-live.c, tree-ssa-loop-im.c,
15595         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15596         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15597         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15598         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15599         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15600         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15601         vtable-verify.c, vtable-verify.h: Adjust.
15602
15603 2014-06-24  Richard Biener  <rguenther@suse.de>
15604
15605         PR tree-optimization/61572
15606         * tree-ssa-sink.c (statement_sink_location): Do not sink
15607         loads from hard registers.
15608
15609 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15610
15611         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15612         not mentioned in clauses use private clause if the iterator is
15613         declared in #pragma omp for simd, and when adding lastprivate
15614         instead, add it to the outer #pragma omp for too.  Diagnose
15615         if the variable is private in outer context.  For simd collapse > 1
15616         loops, replace all iterators with temporaries.
15617         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15618         same even in collapse > 1 loops.
15619
15620         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15621         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15622         non-NULL.
15623         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15624         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15625         non-NULL.
15626         (gimplify_adjust_omp_clauses): Likewise.
15627         * omp-low.c (lower_rec_simd_input_clauses,
15628         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15629         safelen the same as safelen(1).
15630         * tree-nested.c (convert_nonlocal_omp_clauses,
15631         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
15632         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15633         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15634         Fixup handling of GIMPLE_OMP_TARGET.
15635         (convert_tramp_reference_stmt, convert_gimple_call): Handle
15636         GIMPLE_OMP_TARGET.
15637
15638 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
15639
15640         PR tree-optimization/61554
15641         * tree-ssa-propagate.c: Include "bitmap.h".
15642         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15643         properly update constructor/destructor.
15644         (substitute_and_fold_dom_walker::before_dom_children):
15645         Remove call to gimple_purge_dead_eh_edges, add bb->index to
15646         need_eh_cleaup instead.
15647         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15648         need_eh_cleanup.
15649
15650 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
15651
15652         * varpool.c (dump_varpool_node): Dump used_by_single_function.
15653         * tree-pass.h (make_pass_ipa_single_use): New pass.
15654         * cgraph.h (used_by_single_function): New flag.
15655         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15656         Stream it.
15657         * passes.def (pass_ipa_single_use): Scedule.
15658         * ipa.c (BOTTOM): New macro.
15659         (meet): New function
15660         (propagate_single_user): New function.
15661         (ipa_single_use): New function.
15662         (pass_data_ipa_single_use): New pass.
15663         (pass_ipa_single_use): New pass.
15664         (pass_ipa_single_use::gate): New gate.
15665         (make_pass_ipa_single_use): New function.
15666
15667 2014-06-23  Kai Tietz  <ktietz@redhat.com>
15668
15669         PR target/39284
15670         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15671         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15672
15673 2014-06-23  Richard Biener  <rguenther@suse.de>
15674
15675         * tree-ssa-loop.c (gate_loop): New function.
15676         (pass_tree_loop::gate): Call it.
15677         (pass_data_tree_no_loop, pass_tree_no_loop,
15678         make_pass_tree_no_loop): New.
15679         * tree-vectorizer.c: Include tree-scalar-evolution.c
15680         (pass_slp_vectorize::execute): Initialize loops and SCEV if
15681         required.
15682         (pass_slp_vectorize::clone): New method.
15683         * timevar.def (TV_TREE_NOLOOP): New.
15684         * tree-pass.h (make_pass_tree_no_loop): Declare.
15685         * passes.def (pass_tree_no_loop): New pass group with
15686         SLP vectorizer.
15687
15688 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15689
15690         PR target/61570
15691         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15692         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15693
15694 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
15695
15696         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15697         "yes" where needed.
15698
15699 2014-06-23  Alan Modra  <amodra@gmail.com>
15700
15701         PR bootstrap/61583
15702         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15703         to zero on debug statements.
15704
15705 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15706
15707         PR target/60825
15708         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15709         Ignore third operand if present by marking qualifier_internal.
15710
15711         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15712
15713         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15714         vector extension.
15715         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15716         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15717         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15718         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15719         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15720         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15721         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15722         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15723         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15724         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15725         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15726         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15727         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15728         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15729         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15730         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15731         logic in GCC vector extensions
15732
15733         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15734         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15735         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15736         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15737         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15738         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15739         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15740         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15741         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15742         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15743
15744         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15745
15746         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15747         extensions.
15748
15749         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15750         (vget_low_s64): Use __GET_LOW macro.
15751         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15752         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15753         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15754         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15755         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15756
15757         (vcombine_s64): Use GCC vector extensions; remove cast.
15758         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15759         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15760         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15761         Fix type signature; remove cast.
15762
15763 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15764
15765         PR target/60825
15766         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15767         V1DFmode.
15768         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15769         add V1DFmode
15770         (BUILTIN_VD1): New.
15771         (BUILTIN_VD_RE): Remove.
15772         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15773         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15774         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15775         variant but not df.
15776         (vreinterpretv1df*, vreinterpret*v1df): New.
15777         (vreinterpretdf*, vreinterpret*df): Remove.
15778         * config/aarch64/aarch64-simd.md (aarch64_create,
15779         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15780         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15781         (VD1): New.
15782         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15783         (vcreate_f64): Remove cast, use v1df builtin.
15784         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15785         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15786         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15787         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15788         vmov_n_f64, vst1_f64): Use gcc vector extensions.
15789         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15790         add range check using __builtin_aarch64_im_lane_boundsi.
15791         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15792         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15793         type signature, use gcc vector extensions.
15794         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15795         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15796         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15797         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15798         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15799         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15800         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15801         vreinterpret_u64_f64): Use v1df builtin not df.
15802
15803 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
15804
15805         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15806         vector registers.
15807
15808 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
15809
15810         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15811         priority directly.
15812
15813 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15814
15815         * loop-invariant.c (pre_check_invariant_p): New function.
15816         (find_invariant_insn): Call pre_check_invariant_p.
15817
15818 2014-06-22  Richard Henderson  <rth@redhat.com>
15819
15820         PR target/61565
15821         * compare-elim.c (struct comparison): Add eh_note.
15822         (find_comparison_dom_walker::before_dom_children): Don't eliminate
15823         a redundant comparison in a different EH region.  Purge EH edges if
15824         necessary.
15825
15826 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15827
15828         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15829         (var_shift): Use it.
15830         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15831         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15832         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15833         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15834         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15835         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15836         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15837         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15838         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15839         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15840         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15841         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15842         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15843         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15844         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15845         *rotldi3_internal15be): Use the new attribute.  Merge register and
15846         integer alternatives.
15847
15848 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15849
15850         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15851         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15852         split, *ashrdi3_internal3 and split): Delete, merge into...
15853         (ashr<mode>3): New expander.
15854         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15855         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
15856
15857 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15858
15859         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15860         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15861         *rotldi3_internal3 and split): Delete, merge into...
15862         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15863         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
15864         Use "rotlw" extended mnemonic.
15865
15866 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15867
15868         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15869         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15870         and split, *ashldi3_internal3 and split): Delete, merge into...
15871         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15872         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
15873
15874 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15875
15876         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15877         (lshrsi3, two anonymous define_insns and define_splits,
15878         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15879         *lshrdi3_internal3 and split): Delete, merge into...
15880         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15881         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
15882
15883 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15884
15885         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15886         Remove "O" alternative.
15887
15888 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
15889
15890         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15891         (mips_move_from_gpr_cost): Likewise.
15892         (mips_register_move_cost): Update accordingly.
15893         (mips_secondary_reload_class): Remove name of in_p.
15894
15895 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
15896
15897         PR target/61503
15898         * config/i386/i386.md (x86_64_shrd, x86_shrd,
15899         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15900
15901 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15902
15903         * config/nios2/nios2.c: Include "builtins.h".
15904
15905 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15906
15907         * cgraph.h (tls_model_names): New variable.
15908         * print-tree.c (print_node): Simplify.
15909         * varpool.c (tls_model_names): New variable.
15910         (dump_varpool_node): Output tls model.
15911
15912 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15913
15914         * ipa-visibility.c (function_and_variable_visibility): Disable
15915         temporarily local aliases for some targets.
15916
15917 2014-06-20  Marek Polacek  <polacek@redhat.com>
15918
15919         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15920         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15921         into SANITIZE_UNDEFINED.
15922         * doc/invoke.texi: Describe -fsanitize=bounds.
15923         * gimplify.c (gimplify_call_expr): Add gimplification of internal
15924         functions created in the FEs.
15925         * internal-fn.c: Move "internal-fn.h" after "tree.h".
15926         (expand_UBSAN_BOUNDS): New function.
15927         * internal-fn.def (UBSAN_BOUNDS): New internal function.
15928         * internal-fn.h: Don't define internal functions here.
15929         * opts.c (common_handle_option): Add -fsanitize=bounds.
15930         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15931         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15932         * tree-core.h: Define internal functions here.
15933         (struct tree_base): Add ifn field.
15934         * tree-pretty-print.c: Include "internal-fn.h".
15935         (dump_generic_node): Handle functions without CALL_EXPR_FN.
15936         * tree.c (get_callee_fndecl): Likewise.
15937         (build_call_expr_internal_loc): New function.
15938         * tree.def (CALL_EXPR): Update description.
15939         * tree.h (CALL_EXPR_IFN): Define.
15940         (build_call_expr_internal_loc): Declare.
15941         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15942         types.
15943         (ubsan_type_descriptor): Change bool parameter to enum
15944         ubsan_print_style.  Adjust the code.  Add handling of
15945         UBSAN_PRINT_ARRAY.
15946         (ubsan_expand_bounds_ifn): New function.
15947         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15948         (ubsan_build_overflow_builtin): Likewise.
15949         (instrument_bool_enum_load): Likewise.
15950         (ubsan_instrument_float_cast): Likewise.
15951         * ubsan.h (enum ubsan_print_style): New enum.
15952         (ubsan_expand_bounds_ifn): Declare.
15953         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
15954
15955 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
15956
15957         * config/rs6000/rs6000.md: Append `DONE' to preparation
15958         statements of `bswap' pattern splitters.
15959
15960 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15961
15962         * target.def (call_fusage_contains_non_callee_clobbers): Update
15963         definition.
15964         * doc/tm.texi: Regenerate.
15965
15966 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15967             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15968
15969         PR sanitizer/61547
15970         * asan.c (instrument_strlen_call): Fixed instrumentation of
15971         trailing byte.
15972
15973 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15974
15975         PR ipa/61540
15976         * ipa-prop.c (impossible_devirt_target): New function.
15977         (try_make_edge_direct_virtual_call): Use it, also instead of
15978         asserting.
15979
15980 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15981             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15982
15983         PR sanitizer/61530
15984         * asan.c (build_check_stmt): Add condition.
15985
15986 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15987
15988         PR ipa/61211
15989         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15990         expanded clones.
15991
15992 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15993
15994         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15995         Update comments.
15996         (VCONQ): Make comment more helpful.
15997         (VCON): Delete.
15998         * config/aarch64/aarch64-simd.md
15999         (aarch64_sqdmulh_lane<mode>):
16000         Use VCOND for operands 2.  Update lane checking and flipping logic.
16001         (aarch64_sqrdmulh_lane<mode>): Likewise.
16002         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
16003         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
16004         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
16005         attribute of operand 3 to VCOND.
16006         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
16007         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
16008         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
16009         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
16010         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
16011         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
16012         define_insn.
16013         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
16014         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
16015         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
16016         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
16017         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
16018         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
16019         operand to VCOND.  Update lane flipping and bounds checking logic.
16020         (aarch64_sqdmlal2_lane<mode>): Likewise.
16021         (aarch64_sqdmlsl_lane<mode>): Likewise.
16022         (aarch64_sqdmull_lane<mode>): Likewise.
16023         (aarch64_sqdmull2_lane<mode>): Likewise.
16024         (aarch64_sqdmlal_laneq<mode>):
16025         Replace VCON usage with VCONQ.
16026         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
16027         (aarch64_sqdmlal2_laneq<mode>): Emit
16028         aarch64_sqdmlal2_laneq<mode>_internal insn.
16029         Replace VCON with VCONQ.
16030         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
16031         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16032         (aarch64_sqdmull_laneq<mode>): Emit
16033         aarch64_sqdmull_laneq<mode>_internal insn.
16034         Replace VCON with VCONQ.
16035         (aarch64_sqdmull2_laneq<mode>): Emit
16036         aarch64_sqdmull2_laneq<mode>_internal insn.
16037         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
16038         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
16039         of 3rd argument to int16x4_t.
16040         (vqdmlalh_lane_s16): Likewise.
16041         (vqdmlslh_lane_s16): Likewise.
16042         (vqdmull_high_lane_s16): Likewise.
16043         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
16044         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
16045         (vqdmlsl_lane_s16): Likewise.
16046         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
16047         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
16048         (vqdmlals_lane_s32): Likewise.
16049         (vqdmlsls_lane_s32): Likewise.
16050         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
16051         (vqdmulls_lane_s32): Likewise.
16052         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
16053         (vqdmlsl_lane_s32): Likewise.
16054         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
16055         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
16056         (vqrdmulhh_lane_s16): Likewise.
16057         (vqdmlsl_high_lane_s16): Likewise.
16058         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
16059         (vqdmlsl_high_lane_s32): Likewise.
16060         (vqrdmulhs_lane_s32): Likewise.
16061
16062 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16063
16064         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
16065         get_call_reg_set_usage.
16066
16067 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16068
16069         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
16070         it contains all call_used_regs.
16071
16072 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16073
16074         * final.c (collect_fn_hard_reg_usage): Add and use variable
16075         function_used_regs.
16076
16077 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
16078
16079         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
16080         (set_init_priority, get_init_priority, set_fini_priority,
16081         get_fini_priority): New methods.
16082         * tree.c (init_priority_for_decl): Remove.
16083         (init_ttree): Do not initialize init priority.
16084         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
16085         (decl_priority_info): Remove.
16086         (decl_init_priority_insert): Rewrite.
16087         (decl_fini_priority_insert): Rewrite.
16088         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
16089         tree_priority_map_marked_p): Remove.
16090         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
16091         * lto-streamer-out.c (hash_tree): Do not hash priorities.
16092         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
16093         not output priorities.
16094         (pack_ts_function_decl_value_fields): Likewise.
16095         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16096         not input priorities.
16097         (unpack_ts_function_decl_value_fields): Likewise.
16098         * symtab.c (symbol_priority_map): Declare.
16099         (init_priority_hash): Declare.
16100         (symtab_unregister_node): Unregister from priority hash, too.
16101         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
16102         New methods.
16103         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
16104         (symbol_priority_info): New function.
16105         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
16106         New methods.
16107         * tree-core.h (tree_priority_map): Remove.
16108
16109 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
16110
16111         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
16112         0xff to uint64_t before shifting it up.
16113
16114 2014-06-20  Julian Brown  <julian@codesourcery.com>
16115             Chung-Lin Tang  <cltang@codesourcery.com>
16116
16117         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
16118         TARGET_THUMB1_ONLY. Add comments.
16119
16120 2014-06-19  Tom de Vries  <tom@codesourcery.com>
16121
16122         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
16123         return type to void.
16124         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
16125
16126 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16127
16128         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
16129         as "move", from depends_on.
16130
16131 2014-06-19  Terry Guo  <terry.guo@arm.com>
16132
16133         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
16134         stage.
16135
16136 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16137
16138         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
16139         Remove cr5.
16140         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
16141
16142 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16143
16144         PR target/61550
16145         * config/sh/sh.c (prepare_move_operands): Don't process TLS
16146         addresses here if reload in progress or completed.
16147
16148 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16149
16150         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
16151         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
16152         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
16153         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
16154         (mips_register_priority): New function that implements the target
16155         hook TARGET_REGISTER_PRIORITY.
16156         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
16157         (mips_lra_p): Likewise for TARGET_LRA_P.
16158         (TARGET_REGISTER_PRIORITY): Define macro.
16159         (TARGET_SPILL_CLASS): Likewise.
16160         (TARGET_LRA_P): Likewise.
16161         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
16162         classes.
16163         (REG_CLASS_NAMES): Likewise.
16164         (REG_CLASS_CONTENTS): Likewise.
16165         (BASE_REG_CLASS): Use M16_SP_REGS.
16166         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
16167         New set attribute to enable alternatives depending on the register
16168         allocator used.
16169         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
16170         (*lea64): Disable pattern for MIPS16.
16171         * config/mips/mips.opt (mlra): New option.
16172
16173 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16174
16175         * lra-constraints.c (base_to_reg): New function.
16176         (process_address): Use new function.
16177
16178 2014-06-18  Tom de Vries  <tom@codesourcery.com>
16179
16180         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
16181         * config/aarch64/aarch64.c
16182         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
16183         (aarch64_emit_call_insn): New function.
16184         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
16185         of emit_call_insn.
16186         * config/aarch64/aarch64.md (define_expand "call_internal")
16187         (define_expand "call_value_internal", define_expand "sibcall_internal")
16188         (define_expand "sibcall_value_internal"): New.
16189         (define_expand "call", define_expand "call_value")
16190         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
16191         expand variant and aarch64_emit_call_insn.
16192
16193 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
16194             Tom de Vries  <tom@codesourcery.com>
16195
16196         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
16197         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16198         Redefine to true.
16199         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
16200         clobbers to CALL_INSN_FUNCTION_USAGE.
16201         (define_expand "sibcall_internal")
16202         (define_expand "sibcall_value_internal"): New.
16203         (define_expand "call", define_expand "call_value"): Add argument to
16204         arm_emit_call_insn.
16205         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
16206         (define_expand "sibcall_value"): Use sibcall_value_internal and
16207         arm_emit_call_insn.
16208
16209 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16210
16211         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
16212
16213 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16214
16215         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
16216         __udivmoddi4.
16217
16218 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16219
16220         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
16221         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
16222         annotations. Fix DWARF information.
16223
16224 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16225
16226         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
16227         __udivmoddi4, and fixups for negative operands.
16228
16229 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16230
16231         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
16232
16233 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16234
16235         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
16236         to __udivmoddi4.
16237
16238 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16239
16240         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
16241         manipulation.
16242
16243 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16244
16245         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
16246         describing register usage on function entry and exit.
16247
16248 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16249
16250         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
16251         (__aeabi_ldivmod): Fix whitespace.
16252
16253 2014-06-18  Andreas Schwab  <schwab@suse.de>
16254
16255         * doc/md.texi (Standard Names): Use @itemx for grouped items.
16256         Remove blank line after @item.
16257
16258 2014-06-18  Richard Henderson  <rth@redhat.com>
16259
16260         PR target/61545
16261         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
16262
16263 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16264
16265         * config/arm/arm.c (neon_vector_mem_operand): Allow register
16266         POST_MODIFY for neon loads and stores.
16267         (arm_print_operand): Output post-index register for neon loads and
16268         stores.
16269
16270 2014-06-18  Richard Biener  <rguenther@suse.de>
16271
16272         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
16273
16274 2014-06-18  Richard Biener  <rguenther@suse.de>
16275
16276         * tree-pass.h (make_pass_dce_loop): Remove.
16277         * passes.def: Replace pass_dce_loop with pass_dce.
16278         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
16279         changed free niter estimates and reset the scev cache.
16280         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
16281         make_pass_dce_loop): Remove.
16282         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
16283         (fini_copy_prop): Return whether something changed.  Always
16284         let substitute_and_fold perform DCE and free niter estimates
16285         and reset the scev cache if so.
16286         (execute_copy_prop): If sth changed schedule cleanup-cfg.
16287         (pass_data_copy_prop): Do not unconditionally schedule
16288         cleanup-cfg or update-ssa.
16289
16290 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
16291
16292         PR tree-optimization/61518
16293         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16294         reduction var is used in reduction stmt or phi-function only.
16295
16296 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16297
16298         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
16299
16300 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16301
16302         PR tree-optimization/61517
16303         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
16304         whose rhs's first tree is the source expression instead of the
16305         expression itself.
16306         (find_bswap_or_nop): Likewise.
16307         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
16308         gimple stmt whose rhs's first tree is the source. In the memory source
16309         case, move the stmt to be replaced close to one of the original load to
16310         avoid the problem of a store between the load and the stmt's original
16311         location.
16312         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
16313         signature.
16314
16315 2014-06-18  Andreas Schwab  <schwab@suse.de>
16316
16317         PR rtl-optimization/54555
16318         * postreload.c (move2add_use_add2_insn): Substitute
16319         STRICT_LOW_PART only if it is cheaper.
16320
16321 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
16322
16323         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
16324         Do not use unspec as call operand.  Use memory_operand instead of
16325         memory_nox32_operand and add "m" operand constraint.  Disable
16326         pattern for TARGET_X32.
16327         (*sibcall_pop_memory): Ditto.
16328         (*sibcall_value_memory): Ditto.
16329         (*sibcall_value_pop_memory): Ditto.
16330         (sibcall peepholes): Merge SImode and DImode patterns using
16331         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
16332         Disable pattern for TARGET_X32.  Check if eliminated register is
16333         really dead after call insn.  Generate call RTX without unspec operand.
16334         (sibcall_value peepholes): Ditto.
16335         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
16336         instead of memory_nox32_operand.  Check if eliminated register is
16337         really dead after call insn. Generate call RTX without unspec operand.
16338         (sibcall_value_pop peepholes): Ditto.
16339         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
16340
16341 2014-06-18  Terry Guo  <terry.guo@arm.com>
16342
16343         PR target/61544
16344         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
16345         reach the head.
16346
16347 2014-06-18  Olivier Hainque  <hainque@adacore.com>
16348
16349         * tree-core.h (tree_block): Add an "end_locus" field, allowing
16350         memorization of the end of block source location.
16351         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
16352         * gimplify.c (gimplify_bind_expr): Propagate the block start and
16353         end source location info we have on the block entry/exit code we
16354         generate.
16355
16356 2014-06-18  Richard Biener  <rguenther@suse.de>
16357
16358         * common.opt (fssa-phiopt): New option.
16359         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
16360         but not with -Og.
16361         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
16362         * doc/invoke.texi (-fssa-phiopt): Document.
16363
16364 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16365
16366         * genattrtab.c (n_bypassed): New variable.
16367         (process_bypasses): Initialise n_bypassed.
16368         Count number of bypassed reservations.
16369         (make_automaton_attrs): Allocate space for bypassed reservations
16370         rather than number of bypasses.
16371
16372 2014-06-18  Richard Biener  <rguenther@suse.de>
16373
16374         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
16375         we propagated anything.
16376         (substitute_and_fold_dom_walker::before_dom_children): Something
16377         changed if we propagated into PHI arguments.
16378         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
16379         we removed a stmt.
16380
16381 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
16382
16383         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
16384         vector case.
16385         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
16386         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
16387         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
16388         Introduces alternative way of loads group permutaions.
16389         (vect_transform_grouped_load): Try alternative way of permutations.
16390
16391 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16392
16393         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
16394         changed in ORT_TARGET region, don't jump to do_outer.
16395         (struct gimplify_adjust_omp_clauses_data): New type.
16396         (gimplify_adjust_omp_clauses_1): Adjust for data being
16397         a struct gimplify_adjust_omp_clauses_data pointer instead
16398         of tree *.  Pass pre_p as a new argument to
16399         lang_hooks.decls.omp_finish_clause hook.
16400         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
16401         splay_tree_foreach to pass both list_p and pre_p.
16402         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
16403         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
16404         gimplify_adjust_omp_clauses callers.
16405         * langhooks.c (lhd_omp_finish_clause): New function.
16406         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
16407         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
16408         * langhooks.h (struct lang_hooks_for_decls): Add a new
16409         gimple_seq * argument to omp_finish_clause hook.
16410         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
16411         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
16412         (scan_omp_parallel, lower_omp_for): When adding
16413         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
16414         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
16415         * tree-nested.c (convert_nonlocal_omp_clauses,
16416         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
16417         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
16418
16419 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
16420
16421         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
16422         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
16423
16424 2014-06-17  Xinliang David Li  <davidxl@google.com>
16425
16426         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
16427         * passes.c (pass_init_dump_file): Do not set initialize
16428         flag to false unconditionally.
16429
16430 2014-06-17  Richard Biener  <rguenther@suse.de>
16431
16432         * genopinit.c (main): Use vec<>::qsort method.
16433         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16434         Likewise.
16435         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
16436
16437 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
16438
16439         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
16440         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
16441         (mips_move_to_gpr_cost): Remove ST_REGS case.
16442         (mips_move_from_gpr_cost): Likewise.
16443         (mips_register_move_cost): Likewise.
16444         (mips_secondary_reload_class): Likewise.
16445
16446 2014-06-17  Richard Biener  <rguenther@suse.de>
16447
16448         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
16449         (pass_all_optimizations): Move 3rd copy-prop pass from after
16450         fre to before ifcombine/phiopt.
16451
16452 2014-06-17  Richard Biener  <rguenther@suse.de>
16453
16454         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
16455         and allow all blocks to be forwarders.
16456
16457 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
16458
16459         PR target/61483
16460         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
16461         variable 'size'; calculate 'size' right in the front; use
16462         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
16463         pcum->aapcs_stack_words.
16464
16465 2014-06-17  Nick Clifton  <nickc@redhat.com>
16466
16467         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
16468         (umulhi3, mulsidi3, umulsidi3): Likewise.
16469
16470 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
16471
16472         PR middle-end/61508
16473         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
16474         check for section name.
16475
16476 2014-06-17  Richard Biener  <rguenther@suse.de>
16477
16478         * tree-ssa-propagate.c: Include domwalk.h.
16479         (substitute_and_fold): Outline main worker into a domwalker ...
16480         (substitute_and_fold_dom_walker::before_dom_children): ... here.
16481         Schedule stmts we can fully propagate for removal.  Remove
16482         poor-mans DCE.
16483         (substitute_and_fold): Apply a dominator walk to perform
16484         substitution.  Process stmts scheduled for removal here.
16485
16486 2014-06-17  Richard Biener  <rguenther@suse.de>
16487
16488         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
16489         of PHI node moving.
16490
16491 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
16492
16493         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
16494         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
16495         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16496         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
16497         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
16498         TARGET_HARD_FLOAT.
16499         (get_fpscr) : Likewise.
16500
16501 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
16502
16503         PR rtl-optimization/61325
16504         * lra-constraints.c (valid_address_p): Add forward declaration.
16505         (simplify_operand_subreg): Check address validity before and after
16506         alter_reg of memory subreg.
16507
16508 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
16509
16510         * config/i386/i386.c (decide_alg): Correctly handle
16511         maximum size of stringop algorithm.
16512
16513 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
16514
16515         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
16516
16517 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
16518
16519         PR rtl-optimization/61522
16520         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
16521
16522 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
16523
16524         Revert:
16525         * symtab.c (symtab_node::reset_section): New method.
16526         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16527         for localization.
16528         * cgraph.h (reset_section): Declare.
16529         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16530         do not consider comdat locals.
16531         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16532         for new symbol.
16533         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16534         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16535         reset sections of symbols dragged out of the comdats.
16536         (function_and_variable_visibility): Reset sections of
16537         localized symbols.
16538
16539 2014-06-16  Richard Biener  <rguenther@suse.de>
16540
16541         PR tree-optimization/61482
16542         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
16543         [-INF(OVF), +INF(OVF)] range.
16544
16545 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16546
16547         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
16548         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
16549         handling 32-bit multiplication.
16550
16551 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
16552
16553         PR middle-end/61430
16554         * lra-lives.c (process_bb_lives): Skip creating copy during
16555         insn scan when src/dest has constrained to same regno.
16556
16557 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
16558
16559         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
16560         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
16561
16562 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
16563
16564         * asan.c (check_func): New function.
16565         (maybe_create_ssa_name): Likewise.
16566         (build_check_stmt_with_calls): Likewise.
16567         (use_calls_p): Likewise.
16568         (report_error_func): Change interface.
16569         (build_check_stmt): Allow non-integer lengths; add support
16570         for new parameter.
16571         (asan_instrument): Likewise.
16572         (instrument_mem_region_access): Moved code to build_check_stmt.
16573         (instrument_derefs): Likewise.
16574         (instrument_strlen_call): Likewise.
16575         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
16576         * doc/invoke.texi: Describe new parameter.
16577         * params.def: Define new parameter.
16578         * params.h: Likewise.
16579         * sanitizer.def: Describe new builtins.
16580
16581 2014-06-16  Richard Biener  <rguenther@suse.de>
16582
16583         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16584         Make all defs available at the end.
16585         (eliminate): If we remove a PHI node schedule cfg-cleanup.
16586
16587 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16588
16589         PR plugins/45078
16590         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16591
16592 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
16593
16594         PR bootstrap/61516
16595         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16596         initialization.  Replace remaining use of uid.
16597
16598 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
16599
16600         * c-family/c-common.c (handle_tls_model_attribute): Use
16601         set_decl_tls_model.
16602         * c-family/c-common.c (handle_tls_model_attribute): Use
16603         set_decl_tls_model.
16604         * cgraph.h (struct varpool_node): Add tls_model.
16605         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16606         * tree.h (DECL_TLS_MODEL): Update.
16607         (DECL_THREAD_LOCAL_P): Check that variable is static.
16608         (decl_tls_model): Declare.
16609         (set_decl_tls_model): Declare.
16610         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16611         set symbol prorperties.
16612         (get_emutls_init_templ_addr): Cleanup.
16613         (new_emutls_decl): Update.
16614         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16615         (lto_input_varpool_node): Likewise.
16616         * lto-streamer-out.c (hash_tree): Likewise.
16617         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16618         not stream DECL_TLS_MODEL.
16619         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16620         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16621
16622 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16623
16624         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16625
16626 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16627
16628         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16629         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16630         lists.
16631         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16632         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16633         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16634         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16635         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16636         (df_get_artificial_defs, df_get_artificial_uses)
16637         (df_single_def, df_single_use): Update accordingly.
16638         (df_refs_chain_dump): Take the first element in a linked list as
16639         parameter, rather than a pointer to an array of pointers.
16640         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16641         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16642         (df_chain_create_bb_process_use): Likewise.
16643         (df_md_bb_local_compute_process_def): Likewise.
16644         * fwprop.c (process_defs, process_uses): Likewise.
16645         (register_active_defs, update_uses): Likewise.
16646         (forward_propagate_asm): Update for new df_ref linking.
16647         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16648         (df_null_ref_rec, df_null_mw_rec): Likewise.
16649         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16650         explicitly.
16651         (df_scan_free_bb_info): Remove check for null artificial_defs.
16652         (df_install_ref_incremental): Adjust for new df_ref linking.
16653         Use a single-element insertion rather than a full sort.
16654         (df_ref_chain_delete_du_chain): Take the first element
16655         in a linked list as parameter, rather than a pointer to an array of
16656         pointers.
16657         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16658         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16659         (df_insn_info_delete): Remove check for null defs and call to
16660         df_scan_free_mws_vec.
16661         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16662         null rather than df_null_*_rec.
16663         (df_insn_rescan_debug_internal): Likewise, and update null
16664         checks in the same way.  Remove check for null defs.
16665         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16666         Move a single element rather doing a full sort.
16667         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16668         linking.
16669         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
16670         Initialize df_ref and df_mw_hardreg lists to null rather than
16671         df_null_*_rec.
16672         (df_ref_compare): Take df_refs as parameter, transferring the
16673         old interface to...
16674         (df_ref_ptr_compare): ...this new function.
16675         (df_sort_and_compress_refs): Update accordingly.
16676         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16677         old interface to...
16678         (df_mw_ptr_compare): ...this new function.
16679         (df_sort_and_compress_mws): Update accordingly.
16680         (df_install_refs, df_install_mws): Return a linked list rather than
16681         an array of pointers.
16682         (df_refs_add_to_chains): Assert that old lists are empty rather
16683         than freeing them.
16684         (df_insn_refs_verify): Don't handle null defs speciailly.
16685         * web.c (union_match_dups): Update for new df_ref linking.
16686
16687 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16688
16689         * df.h (df_ref_create, df_ref_remove): Delete.
16690         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16691         (df_ref_remove): Likewise.
16692
16693 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16694
16695         * df.h (df_single_def, df_single_use): New functions.
16696         * ira.c (find_moveable_pseudos): Use them.
16697
16698 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16699
16700         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16701         * df-problems.c (df_note_bb_compute): Use it.
16702         * regstat.c (regstat_bb_compute_ri): Likewise.
16703
16704 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16705
16706         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16707         * cse.c (cse_extended_basic_block): Use them.
16708         * dce.c (mark_artificial_use): Likewise.
16709         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16710         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16711         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16712         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16713         (df_simulate_initialize_backwards): Likewise.
16714         (df_simulate_finalize_backwards): Likewise.
16715         (df_simulate_initialize_forwards): Likewise.
16716         (df_md_simulate_artificial_defs_at_top): Likewise.
16717         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16718         * regrename.c (init_rename_info): Likewise.
16719         * regstat.c (regstat_bb_compute_ri): Likewise.
16720         (regstat_bb_compute_calls_crossed): Likewise.
16721
16722 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16723
16724         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16725         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16726         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16727         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16728         * combine.c (create_log_links): Likewise.
16729         * compare-elim.c (find_flags_uses_in_insn): Likewise.
16730         (try_eliminate_compare): Likewise.
16731         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16732         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16733         (remove_reg_equal_equiv_notes_for_defs): Likewise.
16734         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16735         (word_dce_process_block, dce_process_block): Likewise.
16736         * ddg.c (def_has_ccmode_p): Likewise.
16737         * df-core.c (df_bb_regno_first_def_find): Likewise.
16738         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16739         * df-problems.c (df_rd_simulate_one_insn): Likewise.
16740         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16741         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16742         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16743         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16744         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16745         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16746         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16747         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16748         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16749         * fwprop.c (local_ref_killed_between_p): Likewise.
16750         (all_uses_available_at, free_load_extend): Likewise.
16751         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16752         * hw-doloop.c (scan_loop): Likewise.
16753         * ifcvt.c (dead_or_predicable): Likewise.
16754         * init-regs.c (initialize_uninitialized_regs): Likewise.
16755         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16756         (process_bb_node_lives): Likewise.
16757         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16758         (find_moveable_pseudos): Likewise.
16759         * loop-invariant.c (check_dependencies, record_uses): Likewise.
16760         * recog.c (peep2_find_free_register): Likewise.
16761         * ree.c (get_defs): Likewise.
16762         * regstat.c (regstat_bb_compute_ri): Likewise.
16763         (regstat_bb_compute_calls_crossed): Likewise.
16764         * sched-deps.c (find_inc, find_mem): Likewise.
16765         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16766         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16767         * shrink-wrap.c (requires_stack_frame_p): Likewise.
16768         (prepare_shrink_wrap): Likewise.
16769         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16770         * web.c (union_defs, pass_web::execute): Likewise.
16771         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16772         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16773
16774 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
16775
16776         * lra-assign.c (assign_by_spills): Add code to assign vector regs
16777         to inheritance pseudos.
16778         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16779
16780 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
16781
16782         PR target/61415
16783         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16784         (BU_MISC_2): Rename to ...
16785         (BU_LDBL128_2): ... this.
16786         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16787         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16788         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16789         RS6000_BTM_LDBL128.
16790         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16791         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16792         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16793         (unpacktf_1): Likewise.
16794         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16795         (__builtin_longdouble_dw1): Likewise.
16796         * doc/sourcebuild.texi (longdouble128): Document.
16797
16798 2014-06-13  Jeff Law  <law@redhat.com>
16799
16800         PR rtl-optimization/61094
16801         PR rtl-optimization/61446
16802         * ree.c (combine_reaching_defs): Get the mode for the copy from
16803         the extension insn rather than the defining insn.
16804
16805 2014-06-13  Dehao Chen  <dehao@google.com>
16806
16807         * dwarf2out.c (add_linkage_name): Emit more linkage name.
16808
16809 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
16810
16811         * doc/install.texi (--enable-linker-plugin-configure-flags)
16812         (--enable-linker-plugin-flags): Document new flags.
16813
16814 2014-06-13  Martin Jambor  <mjambor@suse.cz>
16815
16816         PR ipa/61186
16817         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16818         cache_token if returning early.
16819
16820 2014-06-13  Nick Clifton  <nickc@redhat.com>
16821
16822         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16823         requested alignment is active.
16824         (LABEL_ALIGN): Likewise.
16825         (LOOP_ALIGN): Likewise.
16826
16827 2014-06-13  Richard Biener  <rguenther@suse.de>
16828
16829         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16830         Rewrite to propagate the VN result into all uses where
16831         possible and to remove stmts becoming dead because of that.
16832         (eliminate): Generalize stmt removal handling, remove in
16833         reverse dominator order to support proper debug stmt
16834         generation.  Update stmts before removing stmts.
16835         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16836
16837 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16838
16839         PR tree-optimization/61375
16840         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16841         symbolic number cannot be represented in an uint64_t.
16842         (find_bswap_or_nop_1): Likewise.
16843
16844 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16845
16846         * symtab.c (symtab_node::reset_section): New method.
16847         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16848         for localization.
16849         * cgraph.h (reset_section): Declare.
16850         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16851         do not consider comdat locals.
16852         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16853         for new symbol.
16854         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16855         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16856         reset sections of symbols dragged out of the comdats.
16857         (function_and_variable_visibility): Reset sections of
16858         localized symbols.
16859
16860 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16861
16862         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16863         to use symtab and decl_binds_to_current_def_p
16864         * tree-vectorizer.c (increase_alignment): Increase alignment
16865         of alias target, too.
16866
16867 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
16868
16869         PR middle-end/61486
16870         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16871         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16872         if outer combined construct is distribute.
16873         (gimplify_omp_for): For OMP_DISTRIBUTE set
16874         gimplify_omp_ctxp->distribute.
16875         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16876         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16877         mapping into decl map.
16878
16879 2014-06-12  Jason Merrill  <jason@redhat.com>
16880
16881         * common.opt (fabi-version): Change default to 0.
16882
16883 2014-06-12  Jason Merrill  <jason@redhat.com>
16884
16885         * toplev.c (process_options): Reject -fabi-version=1.
16886
16887 2014-06-12  Jeff Law  <law@redhat.com>
16888
16889         PR tree-optimization/61009
16890         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16891         value when we stop processing a block due to problematic PHIs.
16892
16893 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
16894
16895         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16896         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16897         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16898         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16899         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16900         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16901         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16902         are not in the spec.
16903
16904 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
16905
16906         PR target/59843
16907         * config/aarch64/aarch64-modes.def: Add V1DFmode.
16908         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16909         Support V1DFmode.
16910
16911 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
16912
16913         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16914
16915 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
16916
16917         PR target/61443
16918         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16919         loading from address spaces.
16920
16921 2014-06-12  Martin Liska  <mliska@suse.cz>
16922
16923         PR ipa/61462
16924         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16925         statement is reachable.
16926
16927 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
16928
16929         * symtab.c (section_hash): New hash.
16930         (symtab_unregister_node): Clear section before freeing.
16931         (hash_section_hash_entry): New haser.
16932         (eq_sections): New function.
16933         (symtab_node::set_section_for_node): New method.
16934         (set_section_1): Update.
16935         (symtab_node::set_section): Take string instead of tree as parameter.
16936         (symtab_resolve_alias): Update.
16937         * cgraph.h (section_hash_entry_d): New structure.
16938         (section_hash_entry): New typedef.
16939         (cgraph_node): Change comdat_group_ to x_comdat_group,
16940         change section_ to x_section and turn into section_hash_entry;
16941         update accestors; put set_section_for_node offline.
16942         * tree.c (decl_section_name): Turn into string.
16943         (set_decl_section_name): Change parameter to be string.
16944         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16945         * sdbout.c (sdbout_one_type): Update.
16946         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16947         * varasm.c (IN_NAMED_SECTION, get_named_section,
16948         resolve_unique_section, hot_function_section, get_named_text_section,
16949         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16950         make_decl_rtl, default_unique_section): Update.
16951         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16952         (c6x_elf_unique_section): Update.
16953         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16954         * config/pa/pa.c (pa_function_section): Update.
16955         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16956         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16957         * config/arc/arc.c (arc_in_small_data_p): Update.
16958         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16959         * config/mcore/mcore.c (mcore_unique_section): Update.
16960         * config/mips/mips.c (mips16_build_function_stub): Update.
16961         (mips16_build_call_stub): Update.
16962         (mips_function_rodata_section): Update.
16963         (mips_in_small_data_p): Update.
16964         * config/score/score.c (score_in_small_data_p): Update.
16965         * config/rx/rx.c (rx_in_small_data): Update.
16966         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16967         (rs6000_xcoff_asm_named_section): Update.
16968         (rs6000_xcoff_unique_section): Update.
16969         * config/frv/frv.c (frv_string_begins_with): Update.
16970         (frv_in_small_data_p): Update.
16971         * config/v850/v850.c (v850_encode_data_area): Update.
16972         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16973         (bfin_handle_l1_data_attribute): Update.
16974         (bfin_handle_l2_attribute): Update.
16975         * config/mep/mep.c (mep_unique_section): Update.
16976         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16977         Update.
16978         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16979         (h8300_handle_tiny_data_attribute): Update.
16980         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16981         (m32r_in_small_data_p): Update.
16982         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16983         * config/i386/i386.c (ix86_in_large_data_p): Update.
16984         * config/i386/winnt.c (i386_pe_unique_section): Update.
16985         * config/darwin.c (darwin_function_section): Update.
16986         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16987         * tree-emutls.c (get_emutls_init_templ_addr): Update.
16988         (new_emutls_decl): Update.
16989         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16990         input_varpool_node): Update.
16991         (ead_string_cst): Turn to ...
16992         (read_string): ... this one.
16993         * dwarf2out.c (secname_for_decl): Update.
16994         * asan.c (asan_protect_global): Update.
16995
16996 2014-06-11  DJ Delorie  <dj@redhat.com>
16997
16998         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16999         cache lines.
17000         * config/rx/rx.c (rx_option_override): Likewise.
17001         (rx_align_for_label): Likewise.
17002
17003         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
17004
17005 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
17006
17007         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
17008         prototype.
17009
17010 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17011
17012         * common.md: New file.
17013         * doc/md.texi: Update description of generic, machine-independent
17014         constraints.
17015         * config/s390/constraints.md (e): Delete.
17016         * Makefile.in (md_file): Include common.md.
17017         * config/m32c/t-m32c (md_file): Likewise.
17018         * genpreds.c (general_mem): New array.
17019         (generic_constraint_letters): Remove constraints now defined by
17020         common.md.
17021         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
17022         Allow the first character to be '<' or '>' as well.
17023         * genoutput.c (general_mem): New array.
17024         (indep_constraints): Remove constraints now defined by common.md.
17025         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
17026         Remove special handling of 'm'.
17027         * ira-costs.c (record_reg_classes): Remove special handling of
17028         constraints now defined by common.md.
17029         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
17030         * ira-lives.c (single_reg_class): Likewise.
17031         (ira_implicitly_set_insn_hard_regs): Likewise.
17032         * lra-constraints.c (reg_class_from_constraints): Likewise.
17033         (process_alt_operands, process_address, curr_insn_transform): Likewise.
17034         * postreload.c (reload_cse_simplify_operands): Likewise.
17035         * reload.c (push_secondary_reload, scratch_reload_class)
17036         (find_reloads, alternative_allows_const_pool_ref): Likewise.
17037         * reload1.c (maybe_fix_stack_asms): Likewise.
17038         * targhooks.c (default_secondary_reload): Likewise.
17039         * stmt.c (parse_output_constraint): Likewise.
17040         * recog.c (preprocess_constraints): Likewise.
17041         (constrain_operands, peep2_find_free_register): Likewise.
17042         (asm_operand_ok): Likewise, but add a comment saying why 'o'
17043         must be handled specially.
17044
17045 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17046
17047         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
17048         * genpreds.c (have_const_dbl_constraints): Delete.
17049         (add_constraint): Don't set it.
17050         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
17051         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
17052         constraints using the lookup_constraint logic.
17053         * ira-lives.c (single_reg_class): Likewise.
17054         * ira.c (ira_setup_alts): Likewise.
17055         * lra-constraints.c (process_alt_operands): Likewise.
17056         * recog.c (asm_operand_ok, constrain_operands): Likewise.
17057         * reload.c (find_reloads): Likewise.
17058
17059 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17060
17061         * genpreds.c (const_int_start, const_int_end): New variables.
17062         (choose_enum_order): Output CONST_INT constraints before memory
17063         constraints.
17064         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
17065         Add CT_CONST_INT.
17066         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
17067         * ira.c (ira_setup_alts): Likewise.
17068         * lra-constraints.c (process_alt_operands): Likewise.
17069         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
17070         * reload.c (find_reloads): Likewise.
17071
17072 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17073
17074         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
17075         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
17076         * recog.c (preprocess_constraints): Update accordingly.
17077
17078 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17079
17080         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
17081         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
17082         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
17083         * genpreds.c (print_type_tree): New function.
17084         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
17085         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
17086         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
17087         Write out enum constraint_type and get_constraint_type.
17088         * lra-constraints.c (satisfies_memory_constraint_p): Take a
17089         constraint_num rather than a constraint string.
17090         (satisfies_address_constraint_p): Likewise.
17091         (reg_class_from_constraints): Avoid old constraint macros.
17092         (process_alt_operands, process_address_1): Likewise.
17093         (curr_insn_transform): Likewise.
17094         * ira-costs.c (record_reg_classes): Likewise.
17095         (record_operand_costs): Likewise.
17096         * ira-lives.c (single_reg_class): Likewise.
17097         (ira_implicitly_set_insn_hard_regs): Likewise.
17098         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
17099         * postreload.c (reload_cse_simplify_operands): Likewise.
17100         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
17101         (constrain_operands, peep2_find_free_register): Likewise.
17102         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
17103         (find_reloads, alternative_allows_const_pool_ref): Likewise.
17104         * reload1.c (maybe_fix_stack_asms): Likewise.
17105         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17106         * targhooks.c (default_secondary_reload): Likewise.
17107         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
17108         to EXTRA_CONSTRAINT_STR.
17109         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
17110
17111 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17112
17113         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
17114         (write_constraint_satisfied_p_array): ...this new function.
17115         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
17116         an array.
17117         (write_insn_preds_c): Update accordingly.
17118
17119 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17120
17121         * genpreds.c (write_lookup_constraint): Rename to...
17122         (write_lookup_constraint_1): ...this.
17123         (write_lookup_constraint_array): New function.
17124         (write_tm_preds_h): Define lookup_constraint as an inline function
17125         that uses write_lookup_constraint_array where possible.
17126         (write_insn_preds_c): Update for the changes above.
17127
17128 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17129
17130         * doc/md.texi (regclass_for_constraint): Rename to...
17131         (reg_class_for_constraint): ...this.
17132         * genpreds.c (num_constraints, enum_order, register_start)
17133         (register_end, satisfied_start, memory_start, memory_end)
17134         (address_start, address_end): New variables.
17135         (add_constraint): Count the number of constraints.
17136         (choose_enum_order): New function.
17137         (write_enum_constraint_num): Iterate over enum_order.
17138         (write_regclass_for_constraint): Rename to...
17139         (write_reg_class_for_constraint_1): ...this and update output
17140         accordingly.
17141         (write_constraint_satisfied_p): Rename to...
17142         (write_constraint_satisfied_p_1): ...this and update output
17143         accordingly.  Do nothing if all extra constraints are register
17144         constraints.
17145         (write_insn_extra_memory_constraint): Delete.
17146         (write_insn_extra_address_constraint): Delete.
17147         (write_range_function): New function.
17148         (write_tm_preds_h): Define constraint_satisfied_p and
17149         reg_class_for_constraint as inline functions that do a range check
17150         before calling the out-of-line function.  Use write_range_function
17151         to implement insn_extra_{register,memory,address}_constraint,
17152         the first of which is new.
17153         (write_insn_preds_c): Update after above changes to write_* functions.
17154         (main): Call choose_enum_order.
17155
17156 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17157
17158         PR tree-optimization/61306
17159         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
17160         expression instead of its size.
17161         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
17162         false to prevent optimization when the result is unpredictable due to
17163         arithmetic right shift of signed type with highest byte is set.
17164         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
17165         (init_symbolic_number): Likewise.
17166         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
17167         when the result is unpredictable due to sign extension.
17168
17169 2014-06-11  Terry Guo  <terry.guo@arm.com>
17170
17171         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
17172         (*thumb1_addsi3): Ditto.
17173         (*thumb_subdi3): Ditto.
17174         (thumb1_subsi3_insn): Ditto.
17175         (*thumb_mulsi3): Ditto.
17176         (*thumb_mulsi3_v6): Ditto.
17177         (*thumb1_andsi3_insn): Ditto.
17178         (thumb1_bicsi3): Ditto.
17179         (*thumb1_iorsi3_insn): Ditto.
17180         (*thumb1_xorsi3_insn): Ditto.
17181         (*thumb1_ashlsi3): Ditto.
17182         (*thumb1_ashrsi3): Ditto.
17183         (*thumb1_lshrsi3): Ditto.
17184         (*thumb1_rotrsi3): Ditto.
17185         (*thumb1_negdi2): Ditto.
17186         (*thumb1_negsi2): Ditto.
17187         (*thumb1_abssi2): Ditto.
17188         (*thumb1_neg_abssi2): Ditto.
17189         (*thumb1_one_cmplsi2): Ditto.
17190         (*thumb1_zero_extendhisi2): Ditto.
17191         (*thumb1_zero_extendqisi2): Ditto.
17192         (*thumb1_zero_extendqisi2_v6): Ditto.
17193         (thumb1_extendhisi2): Ditto.
17194         (thumb1_extendqisi2): Ditto.
17195         (*thumb1_movdi_insn): Ditto.
17196         (*thumb1_movsi_insn): Ditto.
17197         (*thumb1_movhi_insn): Ditto.
17198         (thumb_movhi_clobber): Ditto.
17199         (*thumb1_movqi_insn): Ditto.
17200         (*thumb1_movhf): Ditto.
17201         (*thumb1_movsf_insn): Ditto.
17202         (*thumb_movdf_insn): Ditto.
17203         (movmem12b): Ditto.
17204         (movmem8b): Ditto.
17205         (cbranchqi4): Ditto.
17206         (cbranchsi4_insn): Ditto.
17207         (cbranchsi4_scratch): Ditto.
17208         (*negated_cbranchsi4): Ditto.
17209         (*tbit_cbranch): Ditto.
17210         (*tlobits_cbranch): Ditto.
17211         (*tstsi3_cbranch): Ditto.
17212         (*cbranchne_decr1): Ditto.
17213         (*addsi3_cbranch): Ditto.
17214         (*addsi3_cbranch_scratch): Ditto.
17215         (*thumb_cmpdi_zero): Ditto.
17216         (cstoresi_eq0_thumb1): Ditto.
17217         (cstoresi_ne0_thumb1): Ditto.
17218         (*cstoresi_eq0_thumb1_insn): Ditto.
17219         (*cstoresi_ne0_thumb1_insn): Ditto.
17220         (cstoresi_nltu_thumb1): Ditto.
17221         (cstoresi_ltu_thumb1): Ditto.
17222         (thumb1_addsi3_addgeu): Ditto.
17223         (*thumb_jump): Ditto.
17224         (*call_reg_thumb1_v5): Ditto.
17225         (*call_reg_thumb1): Ditto.
17226         (*call_value_reg_thumb1_v5): Ditto.
17227         (*call_value_reg_thumb1): Ditto.
17228         (*call_insn): Ditto.
17229         (*call_value_insn): Ditto.
17230         (thumb1_casesi_internal_pic): Ditto.
17231         (thumb1_casesi_dispatch): Ditto.
17232         (*thumb1_indirect_jump): Ditto.
17233         (prologue_thumb1_interwork): Ditto.
17234         (*epilogue_insns): Ditto.
17235         (consttable_1): Ditto.
17236         (consttable_2): Ditto.
17237         (tablejump): Ditto.
17238         (*thumb1_tablejump): Ditto.
17239         (thumb_eh_return): Ditto.
17240         (define_peephole2): Two of them are thumb1 only and got moved into
17241         new file thumb1.md.
17242         (define_split): Six of them are thumb1 only and got moved into new
17243         file thumb1.md.
17244         * config/arm/thumb1.md: New file comprised of above thumb1 only
17245         patterns.
17246
17247 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17248
17249         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
17250         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
17251         dependencies.
17252         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
17253         (aarch64_crc_builtin_datum): New struct.
17254         (aarch64_crc_builtin_data): New.
17255         (aarch64_init_crc32_builtins): New function.
17256         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
17257         (aarch64_crc32_expand_builtin): New.
17258         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
17259         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17260         __ARM_FEATURE_CRC32 when appropriate.
17261         (TARGET_CRC32): Define.
17262         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
17263         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
17264         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
17265         (aarch64_<crc_variant>): New pattern.
17266         * config/aarch64/arm_acle.h: New file.
17267         * config/aarch64/iterators.md (CRC): New int iterator.
17268         (crc_variant, crc_mode): New int attributes.
17269         * doc/aarch64-acle-intrinsics.texi: New file.
17270         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
17271         Include aarch64-acle-intrinsics.texi.
17272
17273 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
17274
17275         * tree-vect-data-refs.c (vect_grouped_store_supported): New
17276         check for stores group of length 3.
17277         (vect_permute_store_chain): New permutations for stores group of
17278         length 3.
17279         * tree-vect-stmts.c (vect_model_store_cost): Change cost
17280         of vec_perm_shuffle for the new permutations.
17281
17282 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
17283
17284         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
17285         table rewriting temporarily on targets not supporting ONE_ONLY.
17286
17287 2014-06-11  Richard Biener  <rguenther@suse.de>
17288
17289         PR middle-end/61437
17290         Revert
17291         2014-06-04  Richard Biener  <rguenther@suse.de>
17292
17293         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17294         TREE_PUBLIC and DECL_EXTERNAL decls.
17295
17296 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
17297
17298         * varasm.c (set_implicit_section): New function.
17299         (resolve_unique_section): Use it to set implicit section
17300         for aliases, too.
17301         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
17302         (default_function_section): Likewise.
17303         (decl_binds_to_current_def_p): Constify argument.
17304         * varasm.h (decl_binds_to_current_def_p): Update prototype.
17305         * asan.c (asan_protect_global): Use
17306         symtab_get_node (decl)->implicit_section.
17307         * symtab.c (dump_symtab_base): Dump implicit sections.
17308         (verify_symtab_base): Verify sanity of sectoins and comdats.
17309         (symtab_resolve_alias): Alias share the section of its target.
17310         (set_section_1): New function.
17311         (symtab_node::set_section): Move here, recurse to aliases.
17312         (verify_symtab): Check for duplicated symtab lists.
17313         * tree-core.h (implicit_section_name_p): Remove.
17314         * tree-vect-data-refs.c: Include varasm.h.
17315         (vect_can_force_dr_alignment_p): Fix conditional on when
17316         decl bints to current definition; use
17317         symtab_get_node (decl)->implicit_section.
17318         * cgraph.c (cgraph_make_node_local_1): Fix section set.
17319         * cgraph.h (struct symtab_node): Add implicit_section.
17320         (set_section): Rename to ...
17321         (set_section_for_node): ... this one.
17322         (set_section): Declare.
17323         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
17324         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17325         input_overwrite_node, input_varpool_node): Stream implicit_section.
17326         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
17327         removal; it will fail in LTO.
17328
17329 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17330
17331         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
17332         Change second alternative type to f_mcr.
17333         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
17334         and 12th alternatives' types to f_mcr and f_mrc.
17335         (*movdi_aarch64): Same for 12th and 13th alternatives.
17336         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
17337         (aarch64_movtilow_tilow): Change type to fmov.
17338
17339 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
17340
17341         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
17342         (aarch64_save_or_restore_callee_save_registers): Fix layout.
17343
17344 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17345
17346         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
17347         New expander.
17348         (aarch64_sqrdmulh_lane<mode>): Likewise.
17349         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17350         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17351         (aarch64_sqdmulh_laneq<mode>): New expander.
17352         (aarch64_sqrdmulh_laneq<mode>): Likewise.
17353         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
17354         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
17355         (aarch64_sqdmulh_lane<mode>): New expander.
17356         (aarch64_sqrdmulh_lane<mode>): Likewise.
17357         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17358         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17359         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
17360         (aarch64_sqdmlal_laneq<mode>): Likewise.
17361         (aarch64_sqdmlsl_lane<mode>): Likewise.
17362         (aarch64_sqdmlsl_laneq<mode>): Likewise.
17363         (aarch64_sqdmlal2_lane<mode>): Likewise.
17364         (aarch64_sqdmlal2_laneq<mode>): Likewise.
17365         (aarch64_sqdmlsl2_lane<mode>): Likewise.
17366         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17367         (aarch64_sqdmull_lane<mode>): Likewise.
17368         (aarch64_sqdmull_laneq<mode>): Likewise.
17369         (aarch64_sqdmull2_lane<mode>): Likewise.
17370         (aarch64_sqdmull2_laneq<mode>): Likewise.
17371
17372 2014-06-10  Richard Biener  <rguenther@suse.de>
17373
17374         PR tree-optimization/61438
17375         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
17376         (eliminate_dom_walker::before_dom_children): Only try to inhibit
17377         insertion of IVs if running PRE.
17378         (eliminate): Adjust.
17379         (pass_pre::execute): Likewise.
17380         (pass_fre::execute): Likewise.
17381
17382 2014-06-10  Richard Biener  <rguenther@suse.de>
17383
17384         PR middle-end/61456
17385         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17386         Do not use the main variant for the type comparison.
17387         (ncr_compar): Likewise.
17388         (nonoverlapping_component_refs_p): Likewise.
17389
17390 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17391
17392         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
17393         REG_CFA_RESTORE mode.
17394
17395 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
17396
17397         * config/i386/i386.c (expand_vec_perm_pblendv): New.
17398         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
17399         expand_vec_perm_pblendv.
17400
17401 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17402
17403         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
17404         available.
17405         Simplify description of __crc32d and __crc32cd intrinsics.
17406         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
17407         availability.
17408
17409 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17410
17411         PR lto/61334
17412         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
17413         * config.in: Regenerate.
17414         * configure: Likewise.
17415
17416 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
17417
17418         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
17419         and public vars.
17420         (intersect_static_var_sets): Remove.
17421         (propagate): Do not prune local statics.
17422
17423 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
17424
17425         PR fortran/60928
17426         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
17427         Set lastprivate_firstprivate even if omp_private_outer_ref
17428         langhook returns true.
17429         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
17430         langhook, call unshare_expr on new_var and call
17431         build_outer_var_ref to get the last argument.
17432
17433 2014-06-10  Marek Polacek  <polacek@redhat.com>
17434
17435         PR c/60988
17436         * doc/extend.texi: Add cindex for transparent_union.
17437
17438 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17439
17440         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
17441         init_symbolic_number ().
17442
17443 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
17444
17445         PR middle-end/61141
17446         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
17447         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
17448         (verify_rtl_sharing): Likewise.
17449
17450 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
17451
17452         PR c++/54442
17453         * tree.c (build_qualified_type): Use a canonical type for
17454         TYPE_CANONICAL.
17455
17456 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17457
17458         * config/arm/arm-modes.def: Remove XFmode.
17459
17460 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
17461
17462         PR target/61062
17463         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
17464         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
17465         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
17466         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
17467         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
17468         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
17469         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
17470         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
17471         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
17472
17473 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
17474
17475         * tree-core.h (tree_decl_with_vis): Remove section_name.
17476
17477 2014-06-09  Kito Cheng  <kito@0xlab.org>
17478
17479         * ira.c (ira): Don't call init_caller_save if LRA enabled
17480         since LRA use its own infrastructure to handle that.
17481
17482 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17483
17484         * symtab.c (dump_symtab_base): Update dumping.
17485         (symtab_make_decl_local): Clear only DECL_COMDAT.
17486         * tree-vect-data-refs.c (Check that variable is static before
17487         tampering with sections.
17488         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
17489         (cgraph_create_virtual_clone): Likewise.
17490         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
17491         (decl_section_name, set_decl_section_name): New accessors.
17492         (find_decls_types_r): Do not walk section name
17493         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
17494         (decl_comdat_group, decl_comdat_group_id): Constify.
17495         (decl_section_name, set_decl_section_name): Update.
17496         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
17497         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
17498         (cgraph_make_node_local_1): Clear section and comdat group.
17499         * cgraph.h (set_comdat_group): Sanity check.
17500         (get_section, set_section): New.
17501         * ipa-comdats.c (ipa_comdats): Use get_section.
17502         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
17503         * lto-streamer-out.c: Do not follow section names.
17504         * c-family/c-common.c (handle_section_attribute): Update.
17505         * lto-cgraph.c (lto_output_node): Output section.
17506         (lto_output_varpool_node): Likewise.
17507         (read_comdat_group): Rename to ...
17508         (read_identifier): ... this one.
17509         (read_string_cst): New function.
17510         (input_node, input_varpool_node): Input section names.
17511         * tree-emutls.c (get_emutls_init_templ_addr): Update.
17512         (new_emutls_decl): Update.
17513         (secname_for_decl): Check section names only of static vars.
17514         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
17515         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
17516         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17517         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17518         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
17519         * config/mcore/mcore.c (mcore_unique_section): Likewise.
17520         * config/mips/mips.c (mips16_build_function_stub): Likewise.
17521         * config/v850/v850.c (v850_insert_attributes): Likewise.
17522         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
17523         Likewise.
17524         (h8300_handle_tiny_data_attribute): Likewise.
17525         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
17526         (bfin_handle_l2_attribute): Likewise.
17527
17528 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17529
17530         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
17531         remove static initializer.
17532
17533 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17534
17535         * varasm.c (use_blocks_for_decl_p): Check symbol table
17536         instead of alias attribute.
17537         (place_block_symbol): Recurse on aliases.
17538
17539 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17540
17541         * ipa-visibility.c: Include varasm.h
17542         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
17543
17544 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17545
17546         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
17547         outputting aliases.
17548
17549 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
17550
17551         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
17552         from test_insn into GGC space escape via SET_SRC.
17553
17554 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
17555
17556         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
17557         call statement, if any.
17558         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
17559         statements, if any.  Tidy up.
17560
17561 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17562
17563         PR target/61431
17564         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
17565         iterators, VSX_D that handles 64-bit types, and VSX_LE that
17566         handles swapping the two 64-bit double words on little endian
17567         systems.  Include V1TImode and optionally TImode in VSX_LE so that
17568         these types are properly swapped.  Change all of the insns and
17569         splits that do the 64-bit swaps to use VSX_LE.
17570         (vsx_le_perm_load_<mode>): Likewise.
17571         (vsx_le_perm_store_<mode>): Likewise.
17572         (splitters for little endian memory operations): Likewise.
17573         (vsx_xxpermdi2_le_<mode>): Likewise.
17574         (vsx_lxvd2x2_le_<mode>): Likewise.
17575         (vsx_stxvd2x2_le_<mode>): Likewise.
17576
17577 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
17578
17579         PR target/61423
17580         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
17581         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17582         and corresponding splitters.  Zero extend general register
17583         or memory input operand to XMM temporary.  Enable for
17584         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17585         (floatunssi<mode>2): Update expander predicate.
17586
17587 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
17588
17589         PR rtl-optimization/61325
17590         * lra-constraints.c (process_address_1): Check scale equal to one
17591         to prevent transformation: base + scale * index => base + new_reg.
17592
17593 2014-06-06  Richard Biener  <rguenther@suse.de>
17594
17595         PR tree-optimization/59299
17596         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17597         a def operand.
17598         (nearest_common_dominator_of_uses): Likewise.
17599         (statement_sink_location): Adjust.  Support sinking loads.
17600
17601 2014-06-06  Martin Jambor  <mjambor@suse.cz>
17602
17603         * ipa-prop.c (get_place_in_agg_contents_list): New function.
17604         (build_agg_jump_func_from_list): Likewise.
17605         (determine_known_aggregate_parts): Renamed to
17606         determine_locally_known_aggregate_parts.  Moved some functionality
17607         to the two functions above, removed bound checks.
17608
17609 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
17610
17611         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17612         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17613         (aarch64_progress_pointer): Likewise.
17614         (aarch64_copy_one_part_and_move_pointers): Likewise.
17615         (aarch64_expand_movmen): Likewise.
17616         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17617         * config/aarch64/aarch64.md (movmem<mode>): New.
17618
17619 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
17620
17621         * targhooks.c (default_add_stmt_cost): Call target specific
17622         hook instead of default one.
17623
17624 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17625
17626         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17627         endianness instead of host endianness.
17628         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17629         comments.
17630
17631 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17632
17633         PR debug/53927
17634         * function.c (instantiate_decls): Process the saved static chain.
17635         (expand_function_start): If not optimizing, save the static chain
17636         onto the stack.
17637         * tree-nested.c (convert_all_function_calls): Always create the static
17638         chain for nested functions if not optimizing.
17639
17640 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17641
17642         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17643
17644 2014-06-06  Richard Biener  <rguenther@suse.de>
17645
17646         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17647         (construct_init_block): Likewise.
17648         (construct_exit_block): Likewise.
17649         (pass_expand::execute): Likewise.
17650         * graphite.c (graphite_transforms): Replace check for current_loops
17651         with a check for > 1 loops.
17652         (pass_graphite_transforms::execute): Adjust.
17653         * ipa-split.c (split_function): Remove check for current_loops.
17654         * omp-low.c (expand_parallel_call): Likewise.
17655         (expand_omp_for_init_counts): Likewise.
17656         (extract_omp_for_update_vars): Likewise.
17657         (expand_omp_for_generic): Likewise.
17658         (expand_omp_sections): Likewise.
17659         (expand_omp_target): Likewise.
17660         * tracer.c (tail_duplicate): Likewise.
17661         (pass_tracer::execute): Likewise.
17662         * trans-mem.c (expand_transaction): Likewise.
17663         * tree-complex.c (expand_complex_div_wide): Likewise.
17664         * tree-eh.c (lower_resx): Likewise.
17665         (cleanup_empty_eh_merge_phis): Likewise.
17666         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17667         current_loops with a check for > 1 loops.
17668         (pass_predcom::execute): Adjust.
17669         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17670         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17671         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17672         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17673         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17674         * tree-switch-conversion.c (process_switch): Likewise.
17675         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17676         * tree-vrp.c (vrp_visit_phi_node): Likewise.
17677         (execute_vrp): Likewise.
17678         * ubsan.c (ubsan_expand_null_ifn): Likewise.
17679
17680 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17681
17682         * rtl.h (insn_location): Declare.
17683         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17684         with UNKNOWN_LOCATION.
17685         * emit-rtl.c (insn_location): New function.
17686         * final.c (notice_source_line): Check that the instruction has a
17687         location before retrieving it and use insn_location.
17688         * modulo-sched.c (loop_single_full_bb_p): Likewise.
17689         * print-rtl.c (print_rtx): Likewise.
17690
17691 2014-06-06  Richard Biener  <rguenther@suse.de>
17692
17693         * passes.def: Move 2nd VRP pass before phi-only-cprop.
17694
17695 2014-06-06  Christian Bruel  <christian.bruel@st.com>
17696
17697         PR tree-optimization/43934
17698         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17699         cost.
17700
17701 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
17702
17703         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
17704         return NO_REGS for extra address and memory constraints.  Handle
17705         operands that match (or are equivalent to something that matches)
17706         extra constant constraints.  Ignore other non-register operands.
17707
17708 2014-06-06  Alan Modra  <amodra@gmail.com>
17709
17710         PR target/61300
17711         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17712         * doc/tm.texi: Regenerate.
17713         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17714         Use throughout in place of REG_PARM_STACK_SPACE.
17715         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17716         "incoming" param.  Pass to rs6000_function_parms_need_stack.
17717         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17718         prototype_p when incoming.  Use function decl when incoming
17719         to handle K&R style functions.
17720         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17721         (INCOMING_REG_PARM_STACK_SPACE): Define.
17722
17723 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17724
17725         PR target/52472
17726         * cfgexpand.c (expand_debug_expr): Use address space of nested
17727         TREE_TYPE for ADDR_EXPR and MEM_REF.
17728
17729 2014-06-05  Jeff Law  <law@redhat.com>
17730
17731         PR tree-optimization/61289
17732         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17733         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
17734         looking for those which match LHS.  All callers changed.
17735         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17736         parameters and code which manipulated them.  All callers changed.
17737         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17738         and DST_MAP parameters.  Simplify invalidation code by just calling
17739         invalidate_equivalences.  All callers changed.
17740         (thread_across_edge): Simplify now that we don't need to maintain
17741         the map of equivalences to invalidate.
17742
17743 2014-06-05  Kai Tietz  <ktietz@redhat.com>
17744             Richard Henderson  <rth@redhat.com>
17745
17746         PR target/46219
17747         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17748         checking for !TARGET_X32.
17749         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17750         (sibcall_intern): New define_insn, plus required peepholes.
17751         (sibcall_pop_intern): Likewise.
17752         (sibcall_value_intern): Likewise.
17753         (sibcall_value_pop_intern): Likewise.
17754
17755 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
17756
17757         * tree-inline.c (tree_function_versioning): Check DF info existence
17758         before accessing it.
17759
17760 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17761
17762         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17763         frame_size.
17764         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17765         aarch64_frame hard_fp_offset and frame_size.
17766         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17767         frame_size; remove original_frame_size.
17768         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17769         (aarch64_initial_elimination_offset): Remove frame_size and
17770         offset.  Use aarch64_frame frame_size.
17771
17772 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17773             Jiong Wang  <jiong.wang@arm.com>
17774             Renlin  <renlin.li@arm.com>
17775
17776         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17777         initialization of R30 offset.  Update offset.  Iterate core
17778         regisers upto X30.  Remove X29, X30 specific code.
17779
17780 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17781             Jiong Wang  <jiong.wang@arm.com>
17782
17783         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17784         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17785         (aarch64_register_saved_on_entry): Adjust test.
17786
17787 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17788
17789         * config/aarch64/aarch64.h (machine_function): Move
17790         saved_varargs_size from here...
17791         (aarch64_frame): ... to here.
17792
17793         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17794         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17795         (aarch64_initial_elimination_offset)
17796         (aarch64_setup_incoming_varargs): Adjust location of
17797         saved_varargs_size.
17798
17799 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17800
17801         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17802         layout comment.
17803
17804 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
17805             Prachi Godbole  <Prachi.Godbole@imgtec.com>
17806
17807         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
17808         mips32r5 entry to use PROCESSOR_P5600.
17809         * config/mips/mips-tables.opt: Regenerate.
17810         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17811         * config/mips/mips.c (mips_fmadd_bypass): New function.
17812         (mips_rtx_cost_data): Add costs for p5600.
17813         (mips_issue_rate): Add support for p5600.
17814         (mips_multipass_dfa_lookahead): Likewise.
17815         * config/mips/mips.h (TUNE_P5600): New define.
17816         (TUNE_MACC_CHAINS): Add TUNE_P5600.
17817         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17818         * config/mips/mips.md: Include p5600.md.
17819         (processor): Add p5600.
17820         * config/mips/p5600.md: New file.
17821
17822 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
17823
17824         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17825         * config/i386/predicates.md (palignr_operand): New.
17826         Indicates if permutation is suitable for palignr instruction.
17827
17828 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
17829
17830         PR tree-optimization/61319
17831         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17832         stmt belongs to loop.
17833
17834 2014-06-05  Richard Biener  <rguenther@suse.de>
17835
17836         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17837         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17838         (lookup_tmp_var): Adjust.
17839         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17840
17841 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17842
17843         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17844
17845 2014-06-05  Marek Polacek  <polacek@redhat.com>
17846
17847         PR c/49706
17848         * doc/invoke.texi: Document -Wlogical-not-parentheses.
17849
17850 2014-06-04  Tom de Vries  <tom@codesourcery.com>
17851
17852         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17853         CONST_INT.
17854
17855 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
17856
17857         PR tree-optimization/61385
17858         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17859
17860 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
17861
17862         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
17863         changed to use fatal_error.
17864         (main): Ensure lto_wrapper_cleanup is run atexit.
17865
17866 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17867
17868         * lra-constraints.c (valid_address_p): Move earlier in file.
17869         (address_eliminator): New structure.
17870         (satisfies_memory_constraint_p): New function.
17871         (satisfies_address_constraint_p): Likewise.
17872         (process_alt_operands, process_address, curr_insn_transform): Use them.
17873
17874 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17875
17876         * lra-int.h (lra_static_insn_data): Make operand_alternative a
17877         const pointer.
17878         (target_lra_int, default_target_lra_int, this_target_lra_int)
17879         (op_alt_data): Delete.
17880         * lra.h (lra_init): Delete.
17881         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17882         (init_insn_code_data_once): Remove op_alt_data handling.
17883         (finish_insn_code_data_once): Likewise.
17884         (init_op_alt_data): Delete.
17885         (get_static_insn_data): Initialize operand_alternative to null.
17886         (free_insn_recog_data): Cast operand_alternative before freeing it.
17887         (setup_operand_alternative): Take the operand_alternative as
17888         parameter and assume it isn't already cached in the static
17889         insn data.
17890         (lra_set_insn_recog_data): Update accordingly.
17891         (lra_init): Delete.
17892         * ira.c (ira_init): Don't call lra_init.
17893         * target-globals.h (this_target_lra_int): Declare.
17894         (target_globals): Remove lra_int.
17895         (restore_target_globals): Update accordingly.
17896         * target-globals.c: Don't include lra-int.h.
17897         (default_target_globals, save_target_globals): Remove lra_int.
17898
17899 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17900
17901         * recog.h (operand_alternative): Convert reg_class, reject,
17902         matched and matches into bitfields.
17903         (preprocess_constraints): New overload.
17904         (preprocess_insn_constraints): New function.
17905         (preprocess_constraints): Take the insn as parameter.
17906         (recog_op_alt): Change into a pointer.
17907         (target_recog): Add x_op_alt.
17908         * recog.c (asm_op_alt): New variable.
17909         (recog_op_alt): Change into a pointer.
17910         (preprocess_constraints): New overload, replacing the old function
17911         definition with one that doesn't use global state.
17912         (preprocess_insn_constraints): New function.
17913         (preprocess_constraints): Use them.  Take the insn as parameter.
17914         Use asm_op_alt for asms.
17915         (recog_init): Free existing x_op_alt entries.
17916         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17917         pointer const.
17918         (make_early_clobber_and_input_conflicts): Likewise.
17919         (process_bb_node_lives): Pass the insn to process_constraints.
17920         * reg-stack.c (check_asm_stack_operands): Likewise.
17921         (subst_asm_stack_regs): Likewise.
17922         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17923         * regrename.c (build_def_use): Likewise.
17924         * sched-deps.c (sched_analyze_insn): Likewise.
17925         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17926         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17927         (note_invalid_constants): Likewise.
17928         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17929         (ix86_legitimate_combined_insn): Make operand_alternative pointer
17930         const.
17931
17932 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17933
17934         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17935         * ira-lives.c (check_and_make_def_conflict): Check for disabled
17936         alternatives.
17937         (make_early_clobber_and_input_conflicts): Likewise.
17938         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17939
17940 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17941
17942         * recog.h (alternative_class): New function.
17943         (which_op_alt): Return a const recog_op_alt.
17944         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17945         (subst_asm_stack_regs): Likewise.
17946         * config/arm/arm.c (note_invalid_constants): Likewise.
17947         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
17948         the operand_alternative; use alternative class instead.
17949         * sel-sched.c (get_reg_class): Likewise.
17950         * regrename.c (build_def_use): Likewise.
17951         (hide_operands, restore_operands, record_out_operands): Update type
17952         accordingly.
17953
17954 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17955
17956         * recog.h (recog_op_alt): Convert to a flat array.
17957         (which_op_alt): New function.
17958         * recog.c (recog_op_alt): Convert to a flat array.
17959         (preprocess_constraints): Update accordingly, grouping all
17960         operands of the same alternative together, rather than the
17961         other way around.
17962         * ira-lives.c (check_and_make_def_conflict): Likewise.
17963         (make_early_clobber_and_input_conflicts): Likewise.
17964         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17965         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17966         (subst_asm_stack_regs): Likewise.
17967         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17968         * regrename.c (hide_operands, record_out_operands): Likewise.
17969         (build_def_use): Likewise.
17970         * sel-sched.c (get_reg_class): Likewise.
17971         * config/arm/arm.c (note_invalid_constants): Likewise.
17972
17973 2014-06-04  Jason Merrill  <jason@redhat.com>
17974
17975         PR c++/51253
17976         PR c++/61382
17977         * gimplify.c (gimplify_arg): Non-static.
17978         * gimplify.h: Declare it.
17979
17980 2014-06-04  Richard Biener  <rguenther@suse.de>
17981
17982         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17983         TREE_PUBLIC and DECL_EXTERNAL decls.
17984
17985 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
17986
17987         * regcprop.c (copyprop_hardreg_forward_1): Account for
17988         HARD_REGNO_CALL_PART_CLOBBERED.
17989
17990 2014-06-04  Richard Biener  <rguenther@suse.de>
17991
17992         * configure.ac: Check whether the underlying type of int64_t
17993         is long or long long.
17994         * configure: Regenerate.
17995         * config.in: Likewise.
17996         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17997         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17998
17999 2014-06-04  Richard Biener  <rguenther@suse.de>
18000
18001         PR tree-optimization/60098
18002         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
18003         we hit a kill.
18004         (dse_optimize_stmt): Simplify, now that we found a kill
18005         earlier.
18006
18007 2014-06-04  Richard Biener  <rguenther@suse.de>
18008
18009         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
18010         of accesses with non-invariant address.
18011
18012 2014-06-04  Martin Liska  <mliska@suse.cz>
18013
18014         * cgraph.h (cgraph_make_wrapper): New function introduced.
18015         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
18016         * ipa-inline.h (inline_analyze_function): The function is global.
18017         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
18018
18019 2014-06-04  Martin Liska  <mliska@suse.cz>
18020
18021         * tree.h (private_lookup_attribute_starting): New function.
18022         (lookup_attribute_starting): Likewise.
18023         * tree.c (private_lookup_attribute_starting): Likewise.
18024
18025 2014-06-04  Martin Liska  <mliska@suse.cz>
18026
18027         * cgraph.h (expand_thunk): New argument added.
18028         (address_taken_from_non_vtable_p): New global function.
18029         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
18030         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
18031         * cgraphunit.c (analyze_function): Likewise.
18032         (assemble_thunks_and_aliases): Argument added to call.
18033         (expand_thunk): New argument forces to produce GIMPLE thunk.
18034
18035 2014-06-04  Martin Liska  <mliska@suse.cz>
18036
18037         * coverage.h (coverage_compute_cfg_checksum): Argument added.
18038         * coverage.c (coverage_compute_cfg_checksum): Likewise.
18039         * profile.c (branch_prob): Likewise.
18040
18041 2014-06-04  Martin Jambor  <mjambor@suse.cz>
18042
18043         PR ipa/61340
18044         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
18045         handler for switch on an ipa_ref_use enum.
18046         * ipa-reference.c (analyze_function): Likewise.
18047
18048 2014-06-04  Kai Tietz  <ktietz@redhat.com>
18049
18050         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
18051         from old call-instruction.
18052
18053 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
18054
18055         * config/aarch64/aarch64.c (aarch64_classify_address)
18056         (aarch64_legitimize_reload_address): Support full addressing modes
18057         for vector modes.
18058         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
18059         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
18060
18061 2014-06-03  Andrew Pinski  <apinski@cavium.com>
18062
18063         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
18064         for OP0.
18065
18066 2014-06-03  Andrew Pinski  <apinski@cavium.com>
18067
18068         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
18069         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
18070
18071 2014-06-03  Kai Tietz  <ktietz@redhat.com>
18072
18073         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
18074         for 64-bit ms-abi.
18075
18076 2014-06-03  Dehao Chen  <dehao@google.com>
18077
18078         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
18079         the same loop.
18080
18081 2014-06-03  Marek Polacek  <polacek@redhat.com>
18082
18083         PR c/60439
18084         * doc/invoke.texi: Document -Wswitch-bool.
18085         * function.c (stack_protect_epilogue): Cast controlling expression of
18086         the switch to int.
18087         * gengtype.c (walk_type): Generate switch expression with its
18088         controlling expression cast to int.
18089
18090 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
18091
18092         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
18093         and attiny841.
18094         * config/avr/avr-tables.opt: Regenerate.
18095         * config/avr/t-multilib: Regenerate.
18096         * doc/avr-mmcu.texi: Regenerate.
18097
18098 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
18099             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18100
18101         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
18102         (ata6617c, ata664251): Add new avr35 devices.
18103         (ata6612c): Add new avr4 device.
18104         (ata6613c, ata6614q): Add new avr5 devices.
18105         * config/avr/avr-tables.opt: Regenerate.
18106         * config/avr/t-multilib: Regenerate.
18107         * doc/avr-mmcu.texi: Regenerate.
18108
18109 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18110
18111         * gcc/config/aarch64/aarch64-builtins.c
18112         (aarch64_types_binop_ssu_qualifiers): New static data.
18113         (TYPES_BINOP_SSU): Define.
18114         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
18115         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
18116         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
18117         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
18118         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
18119         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
18120         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
18121         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
18122         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
18123         suffix to builtin function name, remove cast.
18124         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
18125         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
18126         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
18127
18128 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18129
18130         * gcc/config/aarch64/aarch64-builtins.c
18131         (aarch64_types_binop_uus_qualifiers,
18132         aarch64_types_shift_to_unsigned_qualifiers,
18133         aarch64_types_unsigned_shiftacc_qualifiers): Define.
18134         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
18135         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
18136         sqshlu_n, uqshl_n): Update qualifiers.
18137         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
18138         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
18139         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
18140         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
18141         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
18142         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
18143         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
18144         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
18145         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
18146         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
18147         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
18148         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
18149         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
18150         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
18151         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
18152         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
18153         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
18154         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
18155         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
18156         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
18157         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
18158         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
18159         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
18160         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
18161         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
18162         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
18163         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
18164
18165 2014-06-03  Teresa Johnson  <tejohnson@google.com>
18166
18167         * tree-sra.c (modify_function): Record caller nodes after rebuild.
18168
18169 2014-06-02  Jason Merrill  <jason@redhat.com>
18170
18171         PR c++/61020
18172         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
18173
18174 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18175
18176         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
18177         location == 0.
18178
18179 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18180
18181         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
18182         New pattern.
18183         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
18184         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
18185         * config/aarch64/iterators.md (REVERSE): New iterator.
18186         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
18187         (rev_op): New int_attribute.
18188         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
18189         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
18190         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
18191         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
18192         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
18193         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
18194         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
18195         Replace temporary __asm__ with __builtin_shuffle.
18196
18197 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18198
18199         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
18200         mips64r5.
18201         * config/mips/mips-tables.opt: Regenerate.
18202         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
18203         to use mips_isa_rev rather than ISA_MIPS32R2.
18204         * config/mips/mips.h (ISA_MIPS32R3): New define.
18205         (ISA_MIPS32R5): New define.
18206         (ISA_MIPS64R3): New define.
18207         (ISA_MIPS64R5): New define.
18208         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
18209         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
18210         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
18211         and mips64r5.
18212         (MIPS_ISA_SYNCI_SPEC): Likewise.
18213         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
18214         (LINK_SPEC): Added mips32r3 and mips32r5.
18215         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
18216         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
18217         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
18218         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
18219         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
18220         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
18221         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
18222
18223 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18224
18225         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
18226         options.
18227         * config/mips/mips.opt (mxpa): New option.
18228         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
18229         assembler.
18230
18231 2014-06-03  Martin Jambor  <mjambor@suse.cz>
18232
18233         PR ipa/61160
18234         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
18235         thunks.
18236
18237 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18238
18239         PR tree-optimization/61328
18240         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
18241         initialization from find_bswap_or_nop_1.
18242         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
18243         in source_expr2 before using the size value the function sets. Also
18244         make use of init_symbolic_number () in both the old place and
18245         find_bswap_or_nop_load () to avoid reading uninitialized memory when
18246         doing recursion in the GIMPLE_BINARY_RHS case.
18247
18248 2014-06-03  Richard Biener  <rguenther@suse.de>
18249
18250         PR tree-optimization/61383
18251         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
18252         stmts can't trap.
18253
18254 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
18255
18256         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
18257         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
18258         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
18259         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
18260         in this file.
18261         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
18262         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
18263         * system.h: ...here and make it unconditional.
18264         * target.def (conditional_register_usage): Mention
18265         define_register_constraint instead of old-style constraint macros.
18266         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
18267         * doc/tm.texi: Regenerate.
18268         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
18269         protected by !USE_MD_CONSTRAINTS.
18270         * config/frv/frv.md: Remove quote from old version of documentation.
18271         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
18272         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
18273         CONST_DOUBLE_OK_FOR_LETTER.
18274         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
18275
18276 2014-06-02  Andrew Pinski  <apinski@cavium.com>
18277
18278         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
18279         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
18280         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
18281         file whose name depends on -mabi= and -mbig-endian.
18282         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
18283         Handle LP64 better and handle ilp32 too.
18284         (MULTILIB_OPTIONS): Delete.
18285         (MULTILIB_DIRNAMES): Delete.
18286
18287 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
18288
18289         * expr.h: Remove prototypes of functions defined in builtins.c.
18290         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
18291         Remove prototypes of functions defined in builtins.c.
18292         * builtins.h: Update prototype list to include all exported functions.
18293         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
18294         no_c99_libc_has_function): Move to targhooks.c
18295         (build_string_literal, build_call_expr_loc_array,
18296         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
18297         to tree.c.
18298         (expand_builtin_object_size, fold_builtin_object_size): Make static.
18299         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
18300         no_c99_libc_has_function): Relocate from builtins.c.
18301         * tree.c: Include builtins.h.
18302         (build_call_expr_loc_array, build_call_expr_loc_vec,
18303         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
18304         from builtins.c.
18305         * fold-const.h (fold_fma): Move prototype to builtins.h.
18306         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
18307         * asan.c: Include builtins.h.
18308         * cfgexpand.c: Likewise.
18309         * convert.c: Likewise.
18310         * emit-rtl.c: Likewise.
18311         * except.c: Likewise.
18312         * expr.c: Likewise.
18313         * fold-const.c: Likewise.
18314         * gimple-fold.c: Likewise.
18315         * gimple-ssa-strength-reduction.c: Likewise.
18316         * gimplify.c: Likewise.
18317         * ipa-inline.c: Likewise.
18318         * ipa-prop.c: Likewise.
18319         * lto-streamer-out.c: Likewise.
18320         * stmt.c: Likewise.
18321         * tree-inline.c: Likewise.
18322         * tree-object-size.c: Likewise.
18323         * tree-sra.c: Likewise.
18324         * tree-ssa-ccp.c: Likewise.
18325         * tree-ssa-forwprop.c: Likewise.
18326         * tree-ssa-loop-ivcanon.c: Likewise.
18327         * tree-ssa-loop-ivopts.c: Likewise.
18328         * tree-ssa-math-opts.c: Likewise.
18329         * tree-ssa-reassoc.c: Likewise.
18330         * tree-ssa-threadedge.c: Likewise.
18331         * tree-streamer-in.c: Likewise.
18332         * tree-vect-data-refs.c: Likewise.
18333         * tree-vect-patterns.c: Likewise.
18334         * tree-vect-stmts.c: Likewise.
18335         * config/aarch64/aarch64.c: Likewise.
18336         * config/alpha/alpha.c: Likewise.
18337         * config/arc/arc.c: Likewise.
18338         * config/arm/arm.c: Likewise.
18339         * config/avr/avr.c: Likewise.
18340         * config/bfin/bfin.c: Likewise.
18341         * config/c6x/c6x.c: Likewise.
18342         * config/cr16/cr16.c: Likewise.
18343         * config/cris/cris.c: Likewise.
18344         * config/epiphany/epiphany.c: Likewise.
18345         * config/fr30/fr30.c: Likewise.
18346         * config/frv/frv.c: Likewise.
18347         * config/h8300/h8300.c: Likewise.
18348         * config/i386/i386.c: Likewise.
18349         * config/i386/winnt.c: Likewise.
18350         * config/ia64/ia64.c: Likewise.
18351         * config/iq2000/iq2000.c: Likewise.
18352         * config/lm32/lm32.c: Likewise.
18353         * config/m32c/m32c.c: Likewise.
18354         * config/m32r/m32r.c: Likewise.
18355         * config/m68k/m68k.c: Likewise.
18356         * config/mcore/mcore.c: Likewise.
18357         * config/mep/mep.c: Likewise.
18358         * config/microblaze/microblaze.c: Likewise.
18359         * config/mips/mips.c: Likewise.
18360         * config/mmix/mmix.c: Likewise.
18361         * config/mn10300/mn10300.c: Likewise.
18362         * config/moxie/moxie.c: Likewise.
18363         * config/msp430/msp430.c: Likewise.
18364         * config/nds32/nds32.c: Likewise.
18365         * config/pa/pa.c: Likewise.
18366         * config/pdp11/pdp11.c: Likewise.
18367         * config/picochip/picochip.c: Likewise.
18368         * config/rl78/rl78.c: Likewise.
18369         * config/rs6000/rs6000.c: Likewise.
18370         * config/rx/rx.c: Likewise.
18371         * config/s390/s390.c: Likewise.
18372         * config/score/score.c: Likewise.
18373         * config/sh/sh.c: Likewise.
18374         * config/sparc/sparc.c: Likewise.
18375         * config/spu/spu.c: Likewise.
18376         * config/stormy16/stormy16.c: Likewise.
18377         * config/tilegx/tilegx.c: Likewise.
18378         * config/tilepro/tilepro.c: Likewise.
18379         * config/v850/v850.c: Likewise.
18380         * config/vax/vax.c: Likewise.
18381         * config/xtensa/xtensa.c: Likewise.
18382
18383 2014-06-02  Jeff Law  <law@redhat.com>
18384
18385         PR rtl-optimization/61094
18386         * ree.c (combine_reaching_defs): Do not reextend an insn if it
18387         was marked as do_no_reextend.  If a copy is needed to eliminate
18388         an extension, then mark it as do_not_reextend.
18389
18390 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18391
18392         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
18393
18394 2014-06-02  Richard Henderson  <rth@redhat.com>
18395
18396         PR target/61336
18397         * config/alpha/alpha.c (print_operand_address): Allow symbolic
18398         addresses inside asms.  Use output_operand_lossage instead of
18399         gcc_unreachable.
18400
18401 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
18402
18403         PR target/61239
18404         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
18405         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
18406
18407 2014-06-02  Tom de Vries  <tom@codesourcery.com>
18408
18409         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
18410         case that x has VOIDmode.
18411
18412 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
18413
18414         * varasm.c (copy_constant): Delete function.
18415         (build_constant_desc): Don't call it.
18416
18417 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18418
18419         PR target/61154
18420         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
18421         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
18422         with immediate_operand.
18423
18424 2014-06-02  Andreas Schwab  <schwab@suse.de>
18425
18426         * config/ia64/ia64.c
18427         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
18428         pending_data_specs first.
18429
18430 2014-06-02  Richard Biener  <rguenther@suse.de>
18431
18432         PR tree-optimization/61378
18433         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
18434         valueized_anything.
18435
18436 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
18437
18438         * config/i386/constraints.md (Bw): Rename from 'w'.
18439         (Bz): Rename from 'z'.
18440         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
18441
18442 2014-06-01  Kai Tietz  <ktietz@redhat.com>
18443
18444         PR target/61377
18445         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
18446         * config/i386/i386.md (sibcall_insn_operand): Use Bs
18447         instead of m constraint.
18448
18449 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
18450
18451         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
18452         a separate alternative where the scratch operand 2 is marked as
18453         early clobber.
18454
18455 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
18456
18457         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18458         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
18459         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
18460         and __builtins_arm_get_fpscr.
18461         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18462         __builtins_arm_get_fpscr.
18463         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
18464         __builtins_arm_ldfpscr.
18465         (arm_atomic_assign_expand_fenv): New function.
18466         * config/arm/vfp.md (set_fpscr): New pattern.
18467         (get_fpscr) : Likewise.
18468         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
18469         VUNSPEC_SET_FPSCR.
18470         * doc/extend.texi (AARCH64 Built-in Functions) : Document
18471         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
18472
18473 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
18474
18475         * asan.c (report_error_func): Add SLOW_P argument, use
18476         BUILT_IN_ASAN_*_N if set.
18477         (build_check_stmt): Likewise.
18478         (instrument_derefs): If T has insufficient alignment,
18479         force same handling as for odd sizes.
18480
18481         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
18482         BUILT_IN_ASAN_REPORT_STORE_N): New.
18483         * asan.c (struct asan_mem_ref): Change access_size type to
18484         HOST_WIDE_INT.
18485         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
18486         update_mem_ref_hash_table): Likewise.
18487         (asan_mem_ref_hasher::hash): Hash in a HWI.
18488         (report_error_func): Change size_in_bytes argument to HWI.
18489         Use *_N builtins if size_in_bytes is larger than 16 or not power of
18490         two.
18491         (build_shadow_mem_access): New function.
18492         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
18493         Handle size_in_bytes not power of two or larger than 16.
18494         (instrument_derefs): Don't give up if size_in_bytes is not
18495         power of two or is larger than 16.
18496
18497 2014-05-30  Kai Tietz  <ktietz@redhat.com>
18498
18499         PR target/60104
18500         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
18501         for sibling-tail-calls.
18502         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
18503         to its use.
18504         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
18505         (sibcall_insn_operand): Add check for sibcall_memory_operand.
18506
18507 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18508
18509         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
18510         * config/avr/avr-tables.opt: Regenerate.
18511         * config/avr/t-multilib: Regenerate.
18512         * doc/avr-mmcu.texi: Regenerate.
18513
18514 2014-05-30  Ian Lance Taylor  <iant@google.com>
18515
18516         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
18517         target("sse").
18518
18519 2014-05-30  Tom de Vries  <tom@codesourcery.com>
18520
18521         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18522         Redefine as true.
18523
18524 2014-05-30  Tom de Vries  <tom@codesourcery.com>
18525
18526         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18527         * lra.c (initialize_lra_reg_info_element): Add init of
18528         actual_call_used_reg_set field.
18529         (lra): Call lra_create_live_ranges before lra_inheritance for
18530         -fuse-caller-save.
18531         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18532         -fuse-caller-save.
18533         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
18534         instead of call_used_reg_set for -fuse-caller-save.
18535         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18536
18537 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18538
18539         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
18540         to mov_imm.
18541         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
18542
18543 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
18544
18545         * ira.c (ira_get_dup_out_num): Check for output operands at
18546         the start of the loop.  Handle cases where an included alternative
18547         follows an excluded one.
18548
18549 2014-05-29  Mike Stump  <mikestump@comcast.net>
18550
18551         PR debug/61352
18552         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
18553         post ld passes when lto is used.
18554
18555 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
18556
18557         PR rtl-optimization/61325
18558         * lra-constraints.c (process_address): Rename to process_address_1.
18559         (process_address): New function.
18560
18561 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
18562
18563         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
18564         TYPES_BINOPV): New static data.
18565         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
18566         New builtin.
18567         * config/aarch64/aarch64-simd.md (aarch64_ext,
18568         aarch64_im_lane_boundsi): New patterns.
18569         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
18570         patterns for EXT.
18571         (aarch64_evpc_ext): New function.
18572
18573         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
18574
18575         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
18576         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
18577         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
18578         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
18579         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
18580
18581 2014-05-29  Tom de Vries  <tom@codesourcery.com>
18582
18583         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18584
18585 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
18586             Richard Sandiford  <rdsandiford@googlemail.com>
18587
18588         * arm/iterators.md (shiftable_ops): New code iterator.
18589         (t2_binop0, arith_shift_insn): New code attributes.
18590         * arm/predicates.md (shift_nomul_operator): New predicate.
18591         * arm/arm.md (insn_enabled): Delete.
18592         (enabled): Remove insn_enabled test.
18593         (*arith_shiftsi): Delete.  Replace with ...
18594         (*<arith_shift_insn>_multsi): ... new pattern.
18595         (*<arith_shift_insn>_shiftsi): ... new pattern.
18596         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18597
18598 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
18599             Tom de Vries  <tom@codesourcery.com>
18600
18601         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18602         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18603         clobber.
18604         (mips_split_call): Use POST_CALL_TMP_REG.
18605         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18606
18607 2014-05-29  Tom de Vries  <tom@codesourcery.com>
18608
18609         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18610         with #ifdef STACK_REGS.
18611
18612 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
18613
18614         * varasm.c (get_variable_section): Walk aliases.
18615         (place_block_symbol): Walk aliases.
18616
18617 2014-05-28  Tom de Vries  <tom@codesourcery.com>
18618
18619         Revert:
18620         2014-05-28  Tom de Vries  <tom@codesourcery.com>
18621
18622         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18623         * lra.c (initialize_lra_reg_info_element): Add init of
18624         actual_call_used_reg_set field.
18625         (lra): Call lra_create_live_ranges before lra_inheritance for
18626         -fuse-caller-save.
18627         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18628         -fuse-caller-save.
18629         * lra-constraints.c (need_for_call_save_p): Use
18630         actual_call_used_reg_set instead of call_used_reg_set for
18631         -fuse-caller-save.
18632         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18633
18634 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18635
18636         * doc/md.texi: Document that the % constraint character must
18637         be at the beginning of the string.
18638         * genoutput.c (validate_insn_alternatives): Check that '=',
18639         '+' and '%' only appear at the beginning of a constraint.
18640         * ira.c (commutative_constraint_p): Delete.
18641         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18642         at the start of the string.
18643         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18644         duplicate '='s.
18645         * config/arm/neon.md (bicdi3_neon): Likewise.
18646         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18647         (slt_si, sltu_si): Likewise.
18648         * config/vax/vax.md (sbcdi3): Likewise.
18649         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18650         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18651         (mul64): Move '%' to beginning of constraint.
18652         * config/arm/arm.md (*xordi3_insn): Likewise.
18653         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18654         (xorsi3): Likewise.
18655
18656 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18657
18658         * doc/md.texi: Document the restrictions on the "enabled" attribute.
18659
18660 2014-05-28  Jason Merrill  <jason@redhat.com>
18661
18662         PR c++/47202
18663         * cgraph.h (symtab_node::get_comdat_group_id): New.
18664         * cgraphunit.c (analyze_functions): Call it.
18665         * symtab.c (dump_symtab_node): Likewise.
18666         * tree.c (decl_comdat_group_id): New.
18667         * tree.h: Declare it.
18668         * lto-streamer-out.c (write_symbol): Use it.
18669         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18670
18671 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18672
18673         PR bootstrap/PR61146
18674         * wide-int.cc: Do not include longlong.h when compiling with clang.
18675
18676 2014-05-28  Richard Biener  <rguenther@suse.de>
18677
18678         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18679         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18680         (vrp_visit_assignment_or_call): Print less vertical space.
18681         (vrp_visit_stmt): Likewise.
18682         (vrp_visit_phi_node): Likewise.  For a PHI argument with
18683         VR_VARYING range consider recording it as copy.
18684
18685 2014-05-28  Richard Biener  <rguenther@suse.de>
18686
18687         Revert
18688         2014-05-28  Richard Biener  <rguenther@suse.de>
18689
18690         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18691
18692 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18693
18694         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18695         sufficiently aligned and an offset is used at the same time.
18696         (expand_expr_real_1): Likewise.
18697
18698 2014-05-28  Richard Biener  <rguenther@suse.de>
18699
18700         PR middle-end/61045
18701         * fold-const.c (fold_comparison): When folding
18702         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18703         the sign of the remaining constant operand stays the same.
18704
18705 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
18706
18707         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18708         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18709         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18710         to the assembler.
18711         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18712         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18713         (m32bit-doubles) Likewise.
18714         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18715         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18716         option for RL78.
18717
18718 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18719
18720         * configure.ac ($gcc_cv_ld_clearcap): New test.
18721         * configure: Regenerate.
18722         * config.in: Regenerate.
18723         * config/sol2.opt (mclear-hwcap): New option.
18724         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18725         * config/sol2-clearcap.map: Moved here from
18726         testsuite/gcc.target/i386/clearcap.map.
18727         * config/sol2-clearcapv2.map: Move here from
18728         gcc.target/i386/clearcapv2.map.
18729         * config/t-sol2 (install): Depend on install-clearcap-map.
18730         (install-clearcap-map): New target.
18731         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18732         -mclear-hwcap.
18733
18734 2014-05-28  Richard Biener  <rguenther@suse.de>
18735
18736         * hwint.h (*_HALF_WIDE_INT*): Move to ...
18737         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18738         ... here and remove the rest.
18739         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18740
18741 2014-05-28  Richard Biener  <rguenther@suse.de>
18742
18743         PR tree-optimization/61335
18744         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18745         new range fails, drop to varying.
18746
18747 2014-05-28  Olivier Hainque  <hainque@adacore.com>
18748
18749         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18750         (CPP_SPEC): Add entry for -mcpu=8548.
18751         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18752         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18753
18754 2014-05-28  Tom de Vries  <tom@codesourcery.com>
18755
18756         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18757         * lra.c (initialize_lra_reg_info_element): Add init of
18758         actual_call_used_reg_set field.
18759         (lra): Call lra_create_live_ranges before lra_inheritance for
18760         -fuse-caller-save.
18761         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18762         -fuse-caller-save.
18763         * lra-constraints.c (need_for_call_save_p): Use
18764         actual_call_used_reg_set instead of call_used_reg_set for
18765         -fuse-caller-save.
18766         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18767
18768 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18769             Tom de Vries  <tom@codesourcery.com>
18770
18771         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18772         to gccoptlist.
18773         (@item -fuse-caller-save): New item.
18774
18775 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18776             Tom de Vries  <tom@codesourcery.com>
18777
18778         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18779         OPT_fuse_caller_save.
18780
18781 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18782             Tom de Vries  <tom@codesourcery.com>
18783
18784         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18785         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18786         get_call_reg_set_usage.
18787         * resource.c (mark_set_resources, mark_target_live_regs): Use
18788         get_call_reg_set_usage.
18789         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18790         field.
18791         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18792         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18793         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18794         * ira-build.c (ira_create_allocno): Init
18795         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18796         (create_cap_allocno, propagate_allocno_info)
18797         (propagate_some_info_from_allocno)
18798         (copy_info_to_removed_store_destinations): Handle
18799         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18800         * ira-costs.c (ira_tune_allocno_costs): Use
18801         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18802
18803 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18804             Tom de Vries  <tom@codesourcery.com>
18805
18806         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18807         and function_used_regs_valid fields.
18808         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18809         find_all_hard_reg_sets.
18810         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18811         (get_call_reg_set_usage): New function.
18812         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18813         * regs.h (get_call_reg_set_usage): Declare.
18814
18815 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18816
18817         PR libgcc/61152
18818         * config/dbx.h (License): Add Runtime Library Exception.
18819         * config/newlib-stdint.h (License): Same.
18820         * config/rtems.h (License): Same
18821         * config/initfini-array.h (License): Same
18822         * config/v850/v850.h (License): Same.
18823         * config/v850/v850-opts.h (License): Same
18824         * config/v850/rtems.h (License): Same.
18825
18826 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18827
18828         PR target/61044
18829         * doc/extend.texi (Local Labels): Note that label differences are
18830         not supported for AVR.
18831
18832 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18833             Olivier Hainque  <hainque@adacore.com>
18834
18835         * rtl.h (set_for_reg_notes): Declare.
18836         * emit-rtl.c (set_for_reg_notes): New function.
18837         (set_unique_reg_note): Use it.
18838         * optabs.c (add_equal_note): Likewise
18839
18840 2014-05-27  Andrew Pinski  <apinski@cavium.com>
18841
18842         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18843         Use <w> for the register in assembly template.
18844         (stack_protect_test): Use the mode of operands[0] for the result.
18845         (stack_protect_test_<mode>): Use <w> for the register
18846         in assembly template.
18847
18848 2014-05-27  DJ Delorie  <dj@redhat.com>
18849
18850         * config/rx/rx.c (add_vector_labels): New.
18851         (rx_output_function_prologue): Call it.
18852         (rx_handle_func_attribute): Don't require empty arguments.
18853         (rx_handle_vector_attribute): New.
18854         (rx_attribute_table): Add "vector" attribute.
18855         * doc/extend.texi (interrupt, vector): Document new/changed
18856         RX-specific attributes.
18857
18858         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18859
18860 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18861
18862         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18863         predicate to detect a negative quotient.
18864
18865 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18866
18867         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18868         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18869         Add X - Y CMP 0 to X CMP Y transformation.
18870         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18871
18872 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
18873
18874         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18875         before printing.
18876
18877 2014-05-27  Steve Ellcey  <sellcey@mips.com>
18878
18879         * config/mips/mips.c: Add include of cgraph.h.
18880
18881 2014-05-27  Richard Biener  <rguenther@suse.de>
18882
18883         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18884
18885 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
18886
18887         PR libgcc/61152
18888         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18889         * config/arm/arm-cores.def (License): Same.
18890         * config/arm/arm-opts.h (License): Same.
18891         * config/arm/aout.h (License): Same.
18892         * config/arm/bpabi.h (License): Same.
18893         * config/arm/elf.h (License): Same.
18894         * config/arm/linux-elf.h (License): Same.
18895         * config/arm/linux-gas.h (License): Same.
18896         * config/arm/netbsd-elf.h (License): Same.
18897         * config/arm/uclinux-eabi.h (License): Same.
18898         * config/arm/uclinux-elf.h (License): Same.
18899         * config/arm/vxworks.h (License): Same.
18900
18901 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18902
18903         * config/arm/neon.md (neon_bswap<mode>): New pattern.
18904         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18905         (arm_init_neon_builtins): Handle NEON_BSWAP.
18906         Define required type nodes.
18907         (arm_expand_neon_builtin): Handle NEON_BSWAP.
18908         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18909         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18910         * config/arm/iterators.md (VDQHSD): New mode iterator.
18911
18912 2014-05-27  Richard Biener  <rguenther@suse.de>
18913
18914         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18915         Try using literal operands when comparing value-ranges failed.
18916
18917 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18918
18919         * ira.c (commutative_operand): Adjust for change to recog_data.
18920         [Missing from previous commit.]
18921
18922 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18923
18924         * system.h (TEST_BIT): New macro.
18925         * recog.h (alternative_mask): New type.
18926         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18927         (recog_data_d): Replace alternative_enabled_p array with
18928         enabled_alternatives.
18929         (target_recog): New structure.
18930         (default_target_recog, this_target_recog): Declare.
18931         (get_enabled_alternatives, recog_init): Likewise.
18932         * recog.c (default_target_recog, this_target_recog): New variables.
18933         (get_enabled_alternatives): New function.
18934         (extract_insn): Use it.
18935         (recog_init): New function.
18936         (preprocess_constraints, constrain_operands): Adjust for change to
18937         recog_data.
18938         * postreload.c (reload_cse_simplify_operands): Likewise.
18939         * reload.c (find_reloads): Likewise.
18940         * ira-costs.c (record_reg_classes): Likewise.
18941         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
18942         all alternatives after a disabled one would be skipped.
18943         (ira_implicitly_set_insn_hard_regs): Likewise.
18944         * ira.c (ira_setup_alts): Adjust for change to recog_data.
18945         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18946         with enabled_alternatives.
18947         * lra.c (free_insn_recog_data): Update accordingly.
18948         (lra_update_insn_recog_data): Likewise.
18949         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
18950         * lra-constraints.c (process_alt_operands): Likewise.  Handle
18951         only_alternative as part of the enabled mask.
18952         * target-globals.h (this_target_recog): Declare.
18953         (target_globals): Add a recog field.
18954         (restore_target_globals): Restore this_target_recog.
18955         * target-globals.c: Include recog.h.
18956         (default_target_globals): Initialize recog field.
18957         (save_target_globals): Likewise.
18958         * reginfo.c (reinit_regs): Call recog_init.
18959         * toplev.c (backend_init_target): Likewise.
18960
18961 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18962
18963         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18964         rather than any named insn's code.
18965
18966 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
18967
18968         PR libgcc/61152
18969         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18970         * config/arm/arm-cores.def (License): Same.
18971
18972 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
18973
18974         * tree.h (decl_comdat_group): Declare.
18975         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18976         * tree.c (decl_comdat_group): Here.
18977
18978 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
18979
18980         PR rtl-optimization/61222
18981         * combine.c (simplify_shift_const_1): When moving a PLUS outside
18982         the shift, truncate the PLUS operand to the result mode.
18983
18984 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
18985
18986         PR target/61271
18987         * config/i386/i386.c (ix86_rtx_costs)
18988         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18989         Fix condition.
18990
18991 2014-05-26  Martin Jambor  <mjambor@suse.cz>
18992
18993         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18994         subreg uses.
18995
18996 2014-05-26  Richard Biener  <rguenther@suse.de>
18997
18998         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18999         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
19000         Provide specializations.
19001         (wi::int_traits <HOST_WIDE_INT>,
19002         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
19003
19004 2014-05-26  Alan Modra  <amodra@gmail.com>
19005
19006         PR target/61098
19007         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
19008         params and return a bool.  Remove dead code.  Update comment.
19009         Assert we have a const_int source.  Remove bogus code from
19010         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
19011         handling of constants > 2G and reg_equal note, from..
19012         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
19013         return value.  Update comment.  If we can, use a new pseudo
19014         for intermediate calculations.
19015         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
19016         prototype.
19017         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
19018         call to rs6000_emit_set_const in splitter.
19019         (movdi_internal64+2, +3): Likewise.
19020
19021 2014-05-26  Richard Biener  <rguenther@suse.de>
19022
19023         * system.h: Define __STDC_FORMAT_MACROS before
19024         including inttypes.h.
19025         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
19026         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
19027         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
19028         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
19029         HOST_WIDEST_INT_C): Remove.
19030         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
19031         if C99 inttypes.h is not available.
19032         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
19033         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
19034         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
19035         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
19036         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
19037         (struct output_info): Likewise.
19038         (print_statistics): Adjust.
19039         (dump_bitmap_statistics): Likewise.
19040         * bt-load.c (migrate_btr_defs): Print with PRId64.
19041         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
19042         (MAX_SAFE_MULTIPLIER): Adjust.
19043         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
19044         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
19045         dump_cgraph_node): Likewise.
19046         * final.c (dump_basic_block_info): Likewise.
19047         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
19048         * gcov.c (format_gcov): Likewise.
19049         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
19050         for calculation.
19051         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
19052         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
19053         (inline_small_functions, dump_overall_stats, dump_inline_stats):
19054         Use PRId64 for dumping.
19055         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
19056         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
19057         (add_allocno_hard_regs): Adjust.
19058         * loop-doloop.c (doloop_modify): Print using PRId64.
19059         * loop-iv.c (inverse): Compute in uint64_t.
19060         (determine_max_iter, iv_number_of_iterations): Likewise.
19061         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
19062         Print using PRId64.
19063         * lto-streamer-out.c (write_symbol): Use uint64_t.
19064         * mcf.c (CAP_INFINITY): Use int64_t maximum.
19065         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
19066         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
19067         * modulo-sched.c (const_iteration_count): Use int64_t.
19068         (sms_schedule): Dump using PRId64.
19069         * predict.c (dump_prediction): Likewise.
19070         * pretty-print.h (pp_widest_integer): Remove.
19071         * profile.c (get_working_sets, is_edge_inconsistent,
19072         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
19073         * tree-pretty-print.c (pp_double_int): Remove case handling
19074         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
19075         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
19076         and adjust users.
19077         (pass_optimize_bswap::execute): Remove restriction on hosts.
19078         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
19079         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
19080         * tree.c (widest_int_cst_value): Remove.
19081         * tree.h (widest_int_cst_value): Likewise.
19082         * value-prof.c (dump_histogram_value): Print using PRId64.
19083         * gengtype.c (main): Also inject int64_t.
19084         * ggc-page.c (struct max_alignment): Use int64_t.
19085         * alloc-pool.c (struct allocation_object_def): Likewise.
19086         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
19087         for computation.
19088         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
19089         * doc/tm.texi: Regenerated.
19090         * gengtype-lex.l (IWORD): Handle [u]int64_t.
19091         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
19092         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
19093         mmix_output_register_setting): Use [u]int64_t in prototypes.
19094         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
19095         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
19096         mmix_output_octa, mmix_output_shifted_value): Adjust.
19097         (mmix_intval): Adjust.  Remove unreachable case.
19098         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
19099
19100 2014-05-26  Richard Biener  <rguenther@suse.de>
19101
19102         * configure.ac: Drop __int64 type check.  Insist that we
19103         found uint64_t and int64_t.
19104         * hwint.h (HOST_BITS_PER___INT64): Remove.
19105         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
19106         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
19107         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
19108         (HOST_WIDEST_FAST_INT): Remove __int64 case.
19109         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
19110         for dst_q_src_df_rms_cdt.
19111         * configure: Regenerate.
19112         * config.in: Likewise.
19113
19114 2014-05-26  Michael Tautschnig  <mt@debian.org>
19115
19116         PR target/61249
19117         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
19118         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
19119
19120 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19121
19122         PR rtl-optimization/61278
19123         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
19124
19125 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19126
19127         PR rtl-optimization/61220
19128         Part of PR rtl-optimization/61225
19129         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
19130         insn; skip split_edge for a block with only one successor.
19131
19132 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19133
19134         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
19135         for variables.
19136
19137 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19138
19139         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
19140         (update_vtable_references): New function.
19141         (function_and_variable_visibility): Rewrite also vtable initializers.
19142         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
19143
19144 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19145
19146         * ggc.h (ggc_grow): New function.
19147         * ggc-none.c (ggc_grow): New function.
19148         * ggc-page.c (ggc_grow): Likewise.
19149
19150 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19151
19152         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
19153         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
19154         comdat_can_be_unshared_p, cgraph_externally_visible_p,
19155         varpool_externally_visible_p, can_replace_by_local_alias,
19156         update_visibility_by_resolution_info, function_and_variable_visibility,
19157         pass_data_ipa_function_and_variable_visibility,
19158         make_pass_ipa_function_and_variable_visibility,
19159         whole_program_function_and_variable_visibility,
19160         pass_data_ipa_whole_program_visibility,
19161         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
19162         * cgraph.h (cgraph_local_node_p): Declare.
19163         * ipa-visibility.c: New file.
19164         * Makefile.in (OBJS): Add ipa-visiblity.o
19165
19166 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19167
19168         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
19169         that var decl is available.
19170
19171 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19172
19173         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
19174         symtab_node pointer.
19175         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
19176         (find_decls_types_r): Do not walk COMDAT_GROUP.
19177         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
19178         * varasm.c (make_decl_one_only): Use set_comdat_group;
19179         create node if needed.
19180         * ipa-inline-transform.c (save_inline_function_body): Update
19181         way we decl->symtab mapping.
19182         * symtab.c (symtab_hash, hash_node, eq_node
19183         symtab_insert_node_to_hashtable): Remove.
19184         (symtab_register_node): Update.
19185         (symtab_unregister_node): Update.
19186         (symtab_get_node): Reimplement as inline function.
19187         (symtab_add_to_same_comdat_group): Update.
19188         (symtab_dissolve_same_comdat_group_list): Update.
19189         (dump_symtab_base): Update.
19190         (verify_symtab_base): Update.
19191         (symtab_make_decl_local): Update.
19192         (fixup_same_cpp_alias_visibility): Update.
19193         (symtab_nonoverwritable_alias): Update.
19194         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
19195         * ipa.c (update_visibility_by_resolution_info): UPdate.
19196         * bb-reorder.c: Include cgraph.h
19197         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
19198         with comdat groups.
19199         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
19200         * cgraph.c (cgraph_get_create_node): Update.
19201         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
19202         and comdat_group_.
19203         (symtab_get_node): Make inline.
19204         (symtab_insert_node_to_hashtable): Remove.
19205         (symtab_can_be_discarded): Update.
19206         (decl_comdat_group): New function.
19207         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
19208         Update.
19209         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
19210         comdat group name.
19211         (read_comdat_group): New function.
19212         (input_node, input_varpool_node): Use it.
19213         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
19214         comdat groups.
19215         * mips.c (mips_start_unique_function): Likewise.
19216         (ix86_code_end): Likewise.
19217         (rs6000_code_end): Likweise.
19218         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
19219
19220 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19221
19222         * gengtype-state.c (fatal_reading_state): Bring offline.
19223         * optabs.c (widening_optab_handler): Bring offline.
19224         * optabs.h (widening_optab_handler): Likewise.
19225         * final.c (get_attr_length_1): Likewise.
19226
19227 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19228
19229         * sched-int.h (sd_iterator_cond): Manually tail recurse.
19230
19231 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19232
19233         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
19234         (ppc440-compare): Include shift with dot.
19235         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
19236         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
19237         without dot.
19238         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
19239         without dot.
19240         (e6500_sfx2): Include it.
19241         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
19242         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
19243         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
19244         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
19245         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
19246         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
19247         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
19248         *lshiftrt_internal1le, *lshiftrt_internal1be,
19249         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
19250         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
19251         *rotldi3_internal10le, *rotldi3_internal10be,
19252         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
19253         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
19254         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
19255         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
19256         define_insns): Use type "shift" in the appropriate alternatives.
19257
19258 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19259
19260         * config/rs6000/rs6000.md (type): Add "logical".  Delete
19261         "fast_compare".
19262         (dot): Adjust comment.
19263         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
19264         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
19265         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
19266         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
19267         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
19268         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
19269         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
19270         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19271
19272         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19273         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19274         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19275         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19276         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19277         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19278         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19279         * config/rs6000/8540.md (ppc8540_su): Adjust.
19280         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19281         cell-cmp-microcoded): Adjust.
19282         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19283         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19284         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19285         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19286         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19287         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19288         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19289         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19290         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19291         Adjust.
19292         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19293         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
19294         Adjust.  Adjust comment.
19295         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19296         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19297
19298 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19299
19300         * config/rs6000/rs6000.md (type): Add "add".
19301         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
19302         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
19303         define_insns): Use it.
19304         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19305
19306         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19307         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19308         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19309         * config/rs6000/601.md (ppc601-integer): Adjust.
19310         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19311         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19312         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19313         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19314         * config/rs6000/8540.md (ppc8540_su): Adjust.
19315         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19316         cell-cmp-microcoded): Adjust.
19317         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19318         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19319         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19320         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19321         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19322         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19323         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19324         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19325         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19326         Adjust.
19327         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19328         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
19329         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19330         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19331
19332 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19333
19334         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
19335         "delayed_compare", "var_delayed_compare".
19336         (var_shift): New attribute.
19337         (cell_micro): Adjust.
19338         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
19339         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
19340         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
19341         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19342         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19343         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19344         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19345         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
19346         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
19347         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
19348         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
19349         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
19350         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
19351         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
19352         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
19353         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
19354         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
19355         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
19356         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
19357         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
19358         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
19359         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
19360         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
19361         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19362         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19363
19364         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19365         * config/rs6000/440.md (ppc440-integer): Adjust.
19366         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19367         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
19368         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19369         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19370         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19371         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19372         * config/rs6000/8540.md (ppc8540_su): Adjust.
19373         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19374         cell-cmp-microcoded): Adjust.
19375         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
19376         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19377         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
19378         e500mc64_delayed): Adjust.
19379         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
19380         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
19381         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19382         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
19383         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
19384         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
19385         power6-delayed-compare, power6-var-delayed-compare): Adjust.
19386         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
19387         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
19388         Adjust comment.
19389         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19390         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19391
19392 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19393
19394         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
19395         (bits): New mode_attr.
19396         (idiv_ldiv): Delete mode_attr.
19397         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
19398         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19399         rs6000_adjust_priority, is_nonpipeline_insn,
19400         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19401
19402         * config/rs6000/40x.md (ppc403-idiv): Adjust.
19403         * config/rs6000/440.md (ppc440-idiv): Adjust.
19404         * config/rs6000/476.md (ppc476-idiv): Adjust.
19405         * config/rs6000/601.md (ppc601-idiv): Adjust.
19406         * config/rs6000/603.md (ppc603-idiv): Adjust.
19407         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
19408         ppc620-ldiv): Adjust.
19409         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
19410         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
19411         * config/rs6000/8540.md (ppc8540_divide): Adjust.
19412         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
19413         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
19414         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
19415         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
19416         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
19417         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
19418         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
19419         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
19420         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
19421         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
19422         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
19423         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
19424         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
19425         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
19426         * config/rs6000/titan.md (titan_fxu_div): Adjust.
19427
19428 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19429
19430         * config/rs6000/rs6000.md (type): Delete "insert_word",
19431         "insert_dword".  Add "insert".
19432         (size): Update comment.
19433         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19434         insn_must_be_first_in_group): Adjust.
19435         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19436         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19437         *insvsi_internal6, insvdi_internal): Adjust.
19438
19439         * config/rs6000/40x.md (ppc403-integer): Adjust.
19440         * config/rs6000/440.md (ppc440-integer): Adjust.
19441         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
19442         * config/rs6000/601.md (ppc601-integer): Adjust.
19443         * config/rs6000/603.md (ppc603-integer): Adjust.
19444         * config/rs6000/6xx.md (ppc604-integer): Adjust.
19445         * config/rs6000/7450.md (ppc7450-integer): Adjust.
19446         * config/rs6000/7xx.md (ppc750-integer): Adjust.
19447         * config/rs6000/8540.md (ppc8540_su): Adjust.
19448         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
19449         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
19450         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19451         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
19452         * config/rs6000/e5500.md (e5500_sfx): Adjust.
19453         * config/rs6000/e6500.md (e6500_sfx): Adjust.
19454         * config/rs6000/mpc.md (mpccore-integer): Adjust.
19455         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
19456         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
19457         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
19458         * config/rs6000/power7.md (power7-integer): Adjust.
19459         * config/rs6000/power8.md (power8-1cyc): Adjust.
19460         * config/rs6000/rs64.md (rs64a-integer): Adjust.
19461         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19462
19463 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19464
19465         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
19466         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
19467         (size): New attribute.
19468         (dot): New attribute.
19469         (cell_micro): Adjust.
19470         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
19471         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
19472         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
19473         umuldi3_highpart): Adjust.
19474         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19475         rs6000_adjust_priority, is_nonpipeline_insn,
19476         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19477
19478         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
19479         ppc405-imul3): Adjust.
19480         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
19481         * config/rs6000/476.md (ppc476-imul): Adjust.
19482         * config/rs6000/601.md (ppc601-imul): Adjust.
19483         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
19484         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
19485         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
19486         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
19487         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
19488         Adjust.
19489         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
19490         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
19491         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
19492         cell-imul): Adjust.
19493         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
19494         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
19495         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
19496         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
19497         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
19498         * config/rs6000/mpc.md (mpccore-imul): Adjust.
19499         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
19500         power4-lmul, power4-imul, power4-imul3): Adjust.
19501         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
19502         power5-lmul, power5-imul, power5-imul3): Adjust.
19503         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
19504         power6-lmul, power6-imul, power6-imul3): Adjust.
19505         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
19506         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
19507
19508         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
19509         rs64a-lmul): Adjust.
19510         * config/rs6000/titan.md (titan_imul): Adjust.
19511
19512 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19513
19514         * config/rs6000/rs6000.md (type): Add new value "halfmul".
19515         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
19516         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
19517         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
19518         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
19519         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
19520         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
19521         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
19522         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
19523         * config/rs6000/titan.md: Delete nonsensical comment.
19524         (titan_imul): Add type imul3.
19525         (titan_mulhw): Remove type imul3; add type halfmul.
19526
19527 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19528
19529         * config/rs6000/rs6000.md (type): Reorder, reformat.
19530
19531 2014-05-23  Martin Jambor  <mjambor@suse.cz>
19532
19533         PR tree-optimization/53787
19534         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
19535         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
19536         analysis_done, update all uses.
19537         * ipa-prop.c: Include domwalk.h
19538         (param_analysis_info): Removed.
19539         (param_aa_status): New type.
19540         (ipa_bb_info): Likewise.
19541         (func_body_info): Likewise.
19542         (ipa_get_bb_info): New function.
19543         (aa_overwalked): Likewise.
19544         (find_dominating_aa_status): Likewise.
19545         (parm_bb_aa_status_for_bb): Likewise.
19546         (parm_preserved_before_stmt_p): Changed to use new param AA info.
19547         (load_from_unmodified_param): Accept func_body_info as a parameter
19548         instead of parms_ainfo.
19549         (parm_ref_data_preserved_p): Changed to use new param AA info.
19550         (parm_ref_data_pass_through_p): Likewise.
19551         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
19552         (compute_complex_assign_jump_func): Changed to use new param AA info.
19553         (compute_complex_ancestor_jump_func): Likewise.
19554         (ipa_compute_jump_functions_for_edge): Likewise.
19555         (ipa_compute_jump_functions): Removed.
19556         (ipa_compute_jump_functions_for_bb): New function.
19557         (ipa_analyze_indirect_call_uses): Likewise, moved variable
19558         declarations down.
19559         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
19560         and info, moved variable declarations down.
19561         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
19562         node and info.
19563         (ipa_analyze_stmt_uses): Likewise.
19564         (ipa_analyze_params_uses): Removed.
19565         (ipa_analyze_params_uses_in_bb): New function.
19566         (ipa_analyze_controlled_uses): Likewise.
19567         (free_ipa_bb_info): Likewise.
19568         (analysis_dom_walker): New class.
19569         (ipa_analyze_node): Handle node-specific forbidden analysis,
19570         initialize and free func_body_info, use dominator walker.
19571         (ipcp_modif_dom_walker): New class.
19572         (ipcp_transform_function): Create and free func_body_info, use
19573         ipcp_modif_dom_walker, moved a lot of functionality there.
19574
19575 2014-05-23  Marek Polacek  <polacek@redhat.com>
19576             Jakub Jelinek  <jakub@redhat.com>
19577
19578         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
19579         * gcc.c (sanitize_spec_function): Likewise.
19580         * convert.c (convert_to_integer): Include "ubsan.h".  Add
19581         floating-point to integer instrumentation.
19582         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19583         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19584         SANITIZE_NONDEFAULT.
19585         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19586         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19587         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19588         * ubsan.c: Include "realmpfr.h" and "dfp.h".
19589         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19590         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19591         float/double/long double.
19592         (ubsan_instrument_float_cast): New function.
19593         * ubsan.h (ubsan_instrument_float_cast): Declare.
19594
19595 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
19596
19597         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19598         predicate.
19599         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
19600         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19601         Adjust for tailcalling through registers.
19602         * config/aarch64/aarch64.h (enum reg_class): New caller save
19603         register class.
19604         (REG_CLASS_NAMES): Likewise.
19605         (REG_CLASS_CONTENTS): Likewise.
19606         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19607         Allow tailcalling without decls.
19608
19609 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
19610
19611         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19612         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19613
19614         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19615         gsi, and variables v_* to v*.
19616
19617 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
19618
19619         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19620
19621 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
19622
19623         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19624         * omp-low.c: Update accordingly.
19625
19626         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19627         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19628         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19629         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19630         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19631         GF_OMP_TARGET_KIND_UPDATE.
19632
19633         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19634         Explicitly enumerate the expected region types.
19635
19636 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19637
19638         PR other/56955
19639         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
19640         documentation; the old documentation didn't clearly state the
19641         constraints on the contents of the pointed-to storage.
19642
19643 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19644
19645         Fix bootstrap error on ia64
19646         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19647         Return default value.
19648
19649 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19650
19651         PR tree-optimization/54733
19652         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19653         (CMPNOP): Define.
19654         (find_bswap_or_nop_load): New.
19655         (find_bswap_1): Renamed to ...
19656         (find_bswap_or_nop_1): This. Also add support for memory source.
19657         (find_bswap): Renamed to ...
19658         (find_bswap_or_nop): This. Also add support for memory source and
19659         detection of bitwise operations equivalent to load in target
19660         endianness.
19661         (execute_optimize_bswap): Likewise. Also move its leading comment back
19662         in place and split statement transformation into ...
19663         (bswap_replace): This.
19664
19665 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
19666
19667         PR rtl-optimization/61215
19668         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19669         simplify_gen_subreg until final substitution.
19670
19671 2014-05-23  Alan Modra  <amodra@gmail.com>
19672
19673         PR target/61231
19674         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19675         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19676         Use "Y" constraint rather than "m".
19677
19678 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19679
19680         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19681         define.
19682         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19683         New function declaration.
19684         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19685         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19686         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19687         (aarch64_init_builtins) : Initialize builtins
19688         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19689         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19690         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19691         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19692         and __builtins_aarch64_set_fpsr.
19693         (aarch64_atomic_assign_expand_fenv): New function.
19694         * config/aarch64/aarch64.md (set_fpcr): New pattern.
19695         (get_fpcr) : Likewise.
19696         (set_fpsr) : Likewise.
19697         (get_fpsr) : Likewise.
19698         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19699          and UNSPECV_SET_FPSR.
19700         * doc/extend.texi (AARCH64 Built-in Functions) : Document
19701         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19702         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19703
19704 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
19705
19706         PR rtl-optimization/60969
19707         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19708         constraints.  Set up mem cost for NO_REGS case.
19709
19710 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
19711
19712         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19713
19714 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
19715
19716         * config/darwin.c: Include "lto-section-names.h".
19717         (LTO_SEGMENT_NAME): Don't define.
19718         * config/i386/winnt.c: Include "lto-section-names.h".
19719         * lto-streamer.c: Include "lto-section-names.h".
19720         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19721         * lto-wrapper.c: Include "lto-section-names.h".
19722         (LTO_SECTION_NAME_PREFIX): Don't define.
19723         * lto-section-names.h: New file.
19724         * cgraphunit.c: Include "lto-section-names.h".
19725
19726 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
19727
19728         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19729
19730 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
19731
19732         PR target/61208
19733         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19734
19735 2014-05-22  Nick Clifton  <nickc@redhat.com>
19736
19737         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19738
19739 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
19740
19741         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19742         -> (T)A transformation to integer types.
19743
19744 2014-05-22  Teresa Johnson  <tejohnson@google.com>
19745
19746         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19747         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19748         (gcov_rewrite): Use gcov_nonruntime_assert.
19749         (gcov_open): Ditto.
19750         (gcov_write_words): Ditto.
19751         (gcov_write_length): Ditto.
19752         (gcov_read_words): Use gcov_nonruntime_assert, and remove
19753         gcc_assert from IN_LIBGCOV code.
19754         (gcov_read_summary): Use gcov_error to flag profile corruption.
19755         (gcov_sync): Use gcov_nonruntime_assert.
19756         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19757         (gcov_histo_index): Use gcov_nonruntime_assert.
19758         (static void gcov_histogram_merge): Ditto.
19759         (compute_working_sets): Ditto.
19760         * gcov-io.h (gcov_nonruntime_assert): Define.
19761         (gcov_error): Define for !IN_LIBGCOV
19762
19763 2014-05-22  Richard Biener  <rguenther@suse.de>
19764
19765         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19766         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19767         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19768         and deallocation site.
19769         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19770         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19771         passing through the incoming points-to set.
19772         (handle_lhs_call): Use flags argument instead of recomputing it.
19773         (find_func_aliases_for_call): Call handle_lhs_call with proper
19774         call return flags.
19775
19776 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
19777
19778         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19779         all padding bits in REAL_VALUE_TYPE are cleared.
19780
19781 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19782
19783         Cleanup and improve multipass_dfa_lookahead_guard
19784         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19785         (core2i7_first_cycle_multipass_begin,)
19786         (core2i7_first_cycle_multipass_issue,)
19787         (core2i7_first_cycle_multipass_backtrack): Update signature.
19788         * config/ia64/ia64.c
19789         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19790         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19791         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19792         hook definition.
19793         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19794         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
19795         values.
19796         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19797         return values.
19798         * doc/tm.texi: Regenerate.
19799         * doc/tm.texi.in
19800         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19801         * haifa-sched.c (ready_try): Make signed to allow negative values.
19802         (rebug_ready_list_1): Update.
19803         (choose_ready): Simplify.
19804         (sched_extend_ready_list): Update.
19805
19806 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19807
19808         Remove IA64 speculation tweaking flags
19809         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19810         speculation tuning flags.
19811         (msched-prefer-non-data-spec-insns,)
19812         (msched-prefer-non-control-spec-insns): Obsolete options.
19813         * haifa-sched.c (choose_ready): Remove handling of
19814         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19815         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19816         and PREFER_NON_DATA_SPEC.
19817         * sel-sched.c (process_spec_exprs): Remove handling of
19818         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19819
19820 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19821
19822         Improve scheduling debug output
19823         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19824         (advance_one_cycle): Update.
19825         (schedule_insn, queue_to_ready): Add debug printouts.
19826         (debug_ready_list_1): New static function.
19827         (debug_ready_list): Update.
19828         (max_issue): Add debug printouts.
19829         (dump_insn_stream): New static function.
19830         (schedule_block): Use it.  Also better indent printouts.
19831
19832 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19833
19834         Fix sched_insn debug counter
19835         * haifa-sched.c (schedule_insn): Update.
19836         (struct haifa_saved_data): Add nonscheduled_insns_begin.
19837         (save_backtrack_point, restore_backtrack_point): Update.
19838         (first_nonscheduled_insn): New static function.
19839         (queue_to_ready, choose_ready): Use it.
19840         (schedule_block): Init nonscheduled_insns_begin.
19841         (sched_emit_insn): Update.
19842
19843
19844 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
19845
19846         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19847         to GENERAL_REGS.
19848         (aarch64_secondary_reload) : LikeWise.
19849         (aarch64_class_max_nregs) : Remove CORE_REGS.
19850         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19851         (REG_CLASS_NAMES) : Likewise.
19852         (REG_CLASS_CONTENTS) : LikeWise.
19853         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19854
19855 2014-05-21  Guozhi Wei  <carrot@google.com>
19856
19857         PR target/61202
19858         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19859         constraint.
19860         (vqdmulhq_n_s16): Likewise.
19861
19862 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
19863
19864         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19865
19866 2014-05-21  Marek Polacek  <polacek@redhat.com>
19867
19868         PR sanitizer/61272
19869         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19870
19871 2014-05-21  Martin Jambor  <mjambor@suse.cz>
19872
19873         * doc/invoke.texi (Optimize Options): Document parameters
19874         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19875         ipa-cp-array-index-hint-bonus.
19876
19877 2014-05-21  Mark Wielaard  <mjw@redhat.com>
19878
19879         PR debug/16063
19880         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19881         version >= 3 or not strict DWARF.
19882         * langhooks.h (struct lang_hooks_for_types): Add
19883         enum_underlying_base_type.
19884         * langhooks.c (lhd_enum_underlying_base_type): New function.
19885         * gcc/langhooks.h (struct lang_hooks_for_types): Add
19886         enum_underlying_base_type.
19887         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19888         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19889         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19890
19891 2014-05-21  Richard Biener  <rguenther@suse.de>
19892
19893         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19894
19895 2014-05-21  John Marino  <gnugcc@marino.st>
19896
19897         * config.gcc (*-*-dragonfly*): New target.
19898         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19899         * configure: Regenerate.
19900         * config/dragonfly-stdint.h: New.
19901         * config/dragonfly.h: New.
19902         * config/dragonfly.opt: New.
19903         * config/i386/dragonfly.h: New.
19904         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19905
19906 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19907
19908         * tree.def (VOID_CST): New.
19909         * tree-core.h (TI_VOID): New.
19910         * tree.h (void_node): New.
19911         * tree.c (tree_node_structure_for_code, tree_code_size)
19912         (iterative_hash_expr): Handle VOID_CST.
19913         (build_common_tree_nodes): Initialize void_node.
19914
19915 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
19916
19917         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19918         functions.
19919         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19920
19921         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19922         more places.
19923
19924         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19925         flag_reorder_blocks_and_partition.
19926         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19927
19928 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
19929
19930         PR target/54236
19931         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
19932         constraints.
19933         (*addc_r_t): Add new insn_and_split.
19934
19935 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
19936
19937         PR middle-end/61252
19938         * omp-low.c (handle_simd_reference): New function.
19939         (lower_rec_input_clauses): Use it.  Defer adding reference
19940         initialization even for reduction without placeholder if in simd,
19941         handle it properly later on.
19942
19943 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19944
19945         PR tree-optimization/60899
19946         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19947         assume all static symbols will have definition wile parsing and
19948         check the do have definition later in compilation; check that
19949         variable referring symbol will be output before concluding that
19950         reference is safe; be conservative for referring local statics;
19951         be more precise about when comdat is output in other partition.
19952
19953 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19954
19955         PR bootstrap/60984
19956         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19957         parameter.
19958         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19959         (ipa_inline): Loop inline_to_all_callers until no more aliases
19960         are removed.
19961
19962 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19963
19964         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19965         set writeonly flag only for vars actually written to.
19966
19967 2014-05-20  Dehao Chen  <dehao@google.com>
19968
19969         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19970         and callee count to get clone count.
19971         * tree-inline.c (expand_call_inline): Use callee count instead of bb
19972         count in copy_body.
19973
19974 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19975
19976         PR rtl-optimization/61243
19977         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19978
19979 2014-05-20  Xinliang David Li  <davidxl@google.com>
19980
19981         * cgraphunit.c (walk_polymorphic_call_targets): Add
19982         dbgcnt and fopt-info support.
19983         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19984         * ipa-devirt.c (ipa_devirt): Ditto.
19985         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19986         * ipa.c (walk_polymorphic_call_targets): Ditto.
19987         * gimple-fold.c (fold_gimple_assign): Ditto.
19988         (gimple_fold_call): Ditto.
19989         * dbgcnt.def: New counter.
19990
19991 2014-05-20  DJ Delorie  <dj@redhat.com>
19992
19993         * config/msp430/msp430.md (split): Don't allow subregs when
19994         splitting SImode adds.
19995         (andneghi): Fix subtraction logic.
19996         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19997
19998 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19999
20000         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
20001         symbols.
20002         * except.c (switch_to_exception_section, resolve_unique_section,
20003         get_named_text_section, default_function_rodata_section,
20004         align_variable, get_block_for_decl, default_section_type_flags):
20005         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
20006         * symtab.c (symtab_add_to_same_comdat_group,
20007         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
20008         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
20009         Likewise.
20010         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
20011         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
20012         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
20013         (c6x_function_in_section_p): Likewise.
20014         * config/darwin.c (machopic_select_section): Likewise.
20015         * config/arm/arm.c (arm_function_in_section_p): Likewise.
20016         * config/mips/mips.c (mips_function_rodata_section): Likewise.
20017         * config/mep/mep.c (mep_select_section): LIkewise.
20018         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
20019
20020 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
20021
20022         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
20023         EH region of calls to pure functions that can throw an exception.
20024         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
20025         (copy_reference_ops_from_call): Also copy the EH region of the call if
20026         it can throw an exception.
20027
20028 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20029
20030         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
20031         nested VEC_SELECTs that are inverses of each other.
20032
20033 2014-05-20  Richard Biener  <rguenther@suse.de>
20034
20035         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
20036         (extract_and_process_scc_for_name): not here.
20037         (cond_dom_walker::before_dom_children): Only process
20038         stmts that end the BB in interesting ways.
20039         (run_scc_vn): Mark param uses as visited.
20040
20041 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20042
20043         * config/arm/arm.md (arith_shiftsi): Do not predicate for
20044         arm_restrict_it.
20045
20046 2014-05-20  Nick Clifton  <nickc@redhat.com>
20047
20048         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
20049         (msp430_gimplify_va_arg_expr): New function.
20050         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
20051
20052         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
20053         operand 0 in order to prevent confusion about the number of
20054         registers involved.
20055
20056 2014-05-20  Richard Biener  <rguenther@suse.de>
20057
20058         PR tree-optimization/61221
20059         * tree-ssa-pre.c (el_to_update): Remove.
20060         (eliminate_dom_walker::before_dom_children): Handle released
20061         VDEFs by value-numbering them to the associated VUSE.  Update
20062         stmt immediately for substituted call address.
20063         (eliminate): Remove delayed stmt updating code.
20064         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
20065         possibly late re-numbered vuses.
20066         (vn_reference_lookup_2): Adjust.
20067         (vn_reference_lookup_pieces): Likewise.
20068         (vn_reference_lookup): Likewise.
20069
20070 2014-05-20  Richard Biener  <rguenther@suse.de>
20071
20072         * config.gcc: Remove need_64bit_hwint.
20073         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
20074         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
20075         it to be true.
20076         * config.in: Regenerate.
20077         * configure: Likewise.
20078
20079 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
20080
20081         * doc/extend.texi: Create Label Attributes section,
20082         move all label attributes into it and reference it.
20083
20084 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
20085
20086         * arm.c (thumb1_reorg): When scanning backwards skip anything
20087         that's not a proper insn.
20088
20089 2014-05-19  Richard Biener  <rguenther@suse.de>
20090
20091         PR tree-optimization/61221
20092         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20093         Do nothing for unreachable blocks.
20094         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
20095         Improve unreachability detection.
20096
20097 2014-05-19  Richard Biener  <rguenther@suse.de>
20098
20099         PR tree-optimization/61209
20100         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
20101
20102 2014-05-19  Nick Clifton  <nickc@redhat.com>
20103
20104         * except.c (init_eh): Fix computation of builtin setjmp buffer
20105         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
20106
20107 2014-05-19  Richard Biener  <rguenther@suse.de>
20108
20109         PR tree-optimization/61184
20110         * tree-vrp.c (is_negative_overflow_infinity): Use
20111         TREE_OVERFLOW_P and do that check first.
20112         (is_positive_overflow_infinity): Likewise.
20113         (is_overflow_infinity): Likewise.
20114         (vrp_operand_equal_p): Properly treat operands with
20115         differing overflow as not equal.
20116
20117 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
20118
20119         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
20120         shift simplification where it was intended.
20121
20122 2014-05-19  Christian Bruel  <christian.bruel@st.com>
20123
20124         PR target/61195
20125         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
20126
20127 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
20128
20129         PR target/61084
20130         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
20131         than wide_int.
20132
20133 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20134
20135         * reg-notes.def (CROSSING_JUMP): Likewise.
20136         * rtl.h (rtx_def): Update comment for jump flag.
20137         (CROSSING_JUMP_P): Define.
20138         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
20139         of a REG_CROSSING_JUMP note.
20140         * cfghooks.c (tidy_fallthru_edges): Likewise.
20141         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
20142         * emit-rtl.c (try_split): Likewise.
20143         * haifa-sched.c (sched_create_recovery_edges): Likewise.
20144         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
20145         * jump.c (redirect_jump_2): Likewise.
20146         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
20147         (relax_delay_slots): Likewise.
20148         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
20149         (bbit_di): Likewise.
20150         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
20151         * config/sh/sh.md (jump_compact): Likewise.
20152         * bb-reorder.c (rotate_loop): Likewise.
20153         (pass_duplicate_computed_gotos::execute): Likewise.
20154         (add_reg_crossing_jump_notes): Rename to...
20155         (update_crossing_jump_flags): ...this.
20156         (pass_partition_blocks::execute): Update accordingly.
20157
20158 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20159
20160         * tree.h: Remove extraneous template <>.
20161
20162 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20163
20164         * ipa.c (symtab_remove_unreachable_nodes): Remove
20165         symbol from comdat group if its body was eliminated.
20166         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
20167         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
20168         (symtab_unregister_node): ... this one.
20169         (verify_symtab_base): More strict checking of comdats.
20170         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
20171
20172 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20173
20174         * tree-pass.h (make_pass_ipa_comdats): New pass.
20175         * timevar.def (TV_IPA_COMDATS): New timevar.
20176         * passes.def (pass_ipa_comdats): Add.
20177         * Makefile.in (OBJS): Add ipa-comdats.o
20178         * ipa-comdats.c: New file.
20179
20180 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20181
20182         * ipa.c (update_visibility_by_resolution_info): New function.
20183         (function_and_variable_visibility): Use it.
20184
20185 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20186
20187         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
20188         New functions.
20189         (FOR_EACH_DEFINED_SYMBOL): New macro.
20190         (varpool_first_static_initializer, varpool_next_static_initializer,
20191         varpool_first_defined_variable, varpool_next_defined_variable):
20192         Fix comments.
20193         (symtab_in_same_comdat_p): Correctly deal with inline functions.
20194
20195 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20196
20197         * ggc-page.c (ggc_handle_finalizers): Add comment.
20198
20199 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20200
20201         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
20202         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
20203         (ggc_internal_cleared_alloc): Likewise.
20204         * ggc-page.c (finalizer): New class.
20205         (vec_finalizer): Likewise.
20206         (globals::finalizers): New member.
20207         (globals::vec_finalizers): Likewise.
20208         (ggc_internal_alloc): Record the finalizer if any for the block being
20209         allocated.
20210         (ggc_handle_finalizers): New function.
20211         (ggc_collect): Call ggc_handle_finalizers.
20212         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
20213         finalizer.
20214         (ggc_internal_cleared_alloc): Likewise.
20215         (finalize): New function.
20216         (need_finalization_p): Likewise.
20217         (ggc_alloc): Install the type's destructor as the finalizer if it
20218         might do something.
20219         (ggc_cleared_alloc): Likewise.
20220         (ggc_vec_alloc): Likewise.
20221         (ggc_cleared_vec_alloc): Likewise.
20222
20223 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20224
20225         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
20226
20227 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20228
20229         * alias.c (record_alias_subset): Adjust.
20230         * bitmap.c (bitmap_element_allocate): Likewise.
20231         (bitmap_gc_alloc_stat): Likewise.
20232         * cfg.c (init_flow): Likewise.
20233         (alloc_block): Likewise.
20234         (unchecked_make_edge): Likewise.
20235         * cfgloop.c (alloc_loop): Likewise.
20236         (flow_loops_find): Likewise.
20237         (rescan_loop_exit): Likewise.
20238         * cfgrtl.c (init_rtl_bb_info): Likewise.
20239         * cgraph.c (insert_new_cgraph_node_version): Likewise.
20240         (cgraph_allocate_node): Likewise.
20241         (cgraph_create_edge_1): Likewise.
20242         (cgraph_allocate_init_indirect_info): Likewise.
20243         * cgraphclones.c (cgraph_clone_edge): Likewise.
20244         * cgraphunit.c (add_asm_node): Likewise.
20245         (init_lowered_empty_function): Likewise.
20246         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
20247         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20248         (alpha_use_linkage): Likewise.
20249         * config/arc/arc.c (arc_init_machine_status): Likewise.
20250         * config/arm/arm.c (arm_init_machine_status): Likewise.
20251         * config/avr/avr.c (avr_init_machine_status): Likewise.
20252         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20253         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
20254         * config/cris/cris.c (cris_init_machine_status): Likewise.
20255         * config/darwin.c (machopic_indirection_name): Likewise.
20256         (darwin_build_constant_cfstring): Likewise.
20257         (darwin_enter_string_into_cfstring_table): Likewise.
20258         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
20259         * config/frv/frv.c (frv_init_machine_status): Likewise.
20260         * config/i386/i386.c (get_dllimport_decl): Likewise.
20261         (ix86_init_machine_status): Likewise.
20262         (assign_386_stack_local): Likewise.
20263         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20264         (i386_pe_maybe_record_exported_symbol): Likewise.
20265         (i386_pe_record_stub): Likewise.
20266         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20267         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20268         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20269         (m32c_note_pragma_address): Likewise.
20270         * config/mep/mep.c (mep_init_machine_status): Likewise.
20271         (mep_note_pragma_flag): Likewise.
20272         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20273         (mips16_local_alias): Likewise.
20274         (mips_init_machine_status): Likewise.
20275         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20276         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20277         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
20278         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
20279         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
20280         * config/pa/pa.c (pa_init_machine_status): Likewise.
20281         (pa_get_deferred_plabel): Likewise.
20282         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
20283         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20284         (rs6000_init_machine_status): Likewise.
20285         (output_toc): Likewise.
20286         * config/s390/s390.c (s390_init_machine_status): Likewise.
20287         * config/score/score.c (score_output_external): Likewise.
20288         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20289         * config/spu/spu.c (spu_init_machine_status): Likewise.
20290         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
20291         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
20292         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20293         * coverage.c (coverage_end_function): Likewise.
20294         * dbxout.c (dbxout_init): Likewise.
20295         * doc/gty.texi: Don't mention variable_size attribute.
20296         * dwarf2cfi.c (new_cfi): Adjust.
20297         (new_cfi_row): Likewise.
20298         (copy_cfi_row): Likewise.
20299         (create_cie_data): Likewise.
20300         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
20301         (new_loc_descr): Likewise.
20302         (find_AT_string_in_table): Likewise.
20303         (add_addr_table_entry): Likewise.
20304         (new_die): Likewise.
20305         (add_var_loc_to_decl): Likewise.
20306         (clone_die): Likewise.
20307         (clone_as_declaration): Likewise.
20308         (break_out_comdat_types): Likewise.
20309         (new_loc_list): Likewise.
20310         (add_loc_descr_to_each): Likewise.
20311         (add_location_or_const_value_attribute): Likewise.
20312         (add_linkage_name): Likewise.
20313         (lookup_filename): Likewise.
20314         (dwarf2out_var_location): Likewise.
20315         (new_line_info_table): Likewise.
20316         (dwarf2out_init): Likewise.
20317         (mem_loc_descriptor): Likewise.
20318         (loc_descriptor): Likewise.
20319         (add_const_value_attribute): Likewise.
20320         (tree_add_const_value_attribute): Likewise.
20321         (comp_dir_string): Likewise.
20322         (dwarf2out_vms_debug_main_pointer): Likewise.
20323         (string_cst_pool_decl): Likewise.
20324         * emit-rtl.c (set_mem_attrs): Likewise.
20325         (get_reg_attrs): Likewise.
20326         (start_sequence): Likewise.
20327         (init_emit): Likewise.
20328         (init_emit_regs): Likewise.
20329         * except.c (init_eh_for_function): Likewise.
20330         (gen_eh_region): Likewise.
20331         (gen_eh_region_catch): Likewise.
20332         (gen_eh_landing_pad): Likewise.
20333         (add_call_site): Likewise.
20334         * function.c (add_frame_space): Likewise.
20335         (insert_temp_slot_address): Likewise.
20336         (assign_stack_temp_for_type): Likewise.
20337         (get_hard_reg_initial_val): Likewise.
20338         (allocate_struct_function): Likewise.
20339         (prepare_function_start): Likewise.
20340         (types_used_by_var_decl_insert): Likewise.
20341         * gengtype.c (variable_size_p): Remove function.
20342         (enum alloc_quantity): Remove enum.
20343         (write_typed_alloc_def): Remove function.
20344         (write_typed_struct_alloc_def): Likewise.
20345         (write_typed_typedef_alloc_def): Likewise.
20346         (write_typed_alloc_defns): Likewise.
20347         (main): Adjust.
20348         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
20349         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
20350         * ggc.h (ggc_alloc): new function.
20351         (ggc_cleared_alloc): Likewise.
20352         (ggc_vec_alloc): Template on type of vector element, and remove
20353         element size argument.
20354         (ggc_cleared_vec_alloc): Likewise.
20355         * gimple.c (gimple_build_omp_for): Adjust.
20356         (gimple_copy): Likewise.
20357         * ipa-cp.c (get_replacement_map): Likewise.
20358         (find_aggregate_values_for_callers_subset): Likewise.
20359         (known_aggs_to_agg_replacement_list): Likewise.
20360         * ipa-devirt.c (get_odr_type): Likewise.
20361         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
20362         (read_agg_replacement_chain): Likewise.
20363         * loop-iv.c (get_simple_loop_desc): Likewise.
20364         * lto-cgraph.c (input_node_opt_summary): Likewise.
20365         * lto-section-in.c (lto_new_in_decl_state): Likewise.
20366         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20367         (input_eh_region): Likewise.
20368         (input_eh_lp): Likewise.
20369         (input_cfg): Likewise.
20370         * optabs.c (set_optab_libfunc): Likewise.
20371         (init_tree_optimization_optabs): Likewise.
20372         (set_conv_libfunc): Likewise.
20373         * passes.c (do_per_function_toporder): Likewise.
20374         * rtl.h: Don't use variable_size gty attribute.
20375         * sese.c (if_region_set_false_region): Adjust.
20376         * stringpool.c (gt_pch_save_stringpool): Likewise.
20377         * target-globals.c (save_target_globals): Likewise.
20378         * toplev.c (general_init): Likewise.
20379         * trans-mem.c (record_tm_replacement): Likewise.
20380         (split_bb_make_tm_edge): Likewise.
20381         * tree-cfg.c (move_sese_region_to_fn): Likewise.
20382         * tree-data-ref.h (lambda_vector_new): Likewise.
20383         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20384         * tree-iterator.c (tsi_link_before): Likewise.
20385         (tsi_link_after): Likewise.
20386         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20387         * tree-ssa-loop-niter.c (record_estimate): Likewise.
20388         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20389         * tree-ssa-operands.h: Don't use variable_size gty attribute.
20390         * tree-ssa.c (init_tree_ssa): Adjust.
20391         * tree-ssanames.c (set_range_info): Likewise.
20392         (get_ptr_info): Likewise.
20393         (duplicate_ssa_name_ptr_info): Likewise.
20394         (duplicate_ssa_name_range_info): Likewise.
20395         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
20396         (unpack_ts_fixed_cst_value_fields): Likewise.
20397         * tree.c (build_fixed): Likewise.
20398         (build_real): Likewise.
20399         (build_string): Likewise.
20400         (decl_priority_info): Likewise.
20401         (decl_debug_expr_insert): Likewise.
20402         (decl_value_expr_insert): Likewise.
20403         (decl_debug_args_insert): Likewise.
20404         (type_hash_add): Likewise.
20405         (build_omp_clause): Likewise.
20406         * ubsan.c (decl_for_type_insert): Likewise.
20407         * varasm.c (get_unnamed_section): Likewise.
20408         (get_noswitch_section): Likewise.
20409         (get_section): Likewise.
20410         (get_block_for_section): Likewise.
20411         (create_block_symbol): Likewise.
20412         (build_constant_desc): Likewise.
20413         (create_constant_pool): Likewise.
20414         (force_const_mem): Likewise.
20415         (record_tm_clone_pair): Likewise.
20416         * varpool.c (varpool_create_empty_node): Likewise.
20417
20418 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20419
20420         * dwarf2out.c (tree_add_const_value_attribute): Call
20421         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
20422         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
20423         instead of ggc_internal_<x>alloc_stat.
20424         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
20425         (ggc_realloc): Likewise.
20426         * ggc-none.c (ggc_internal_alloc): Likewise.
20427         (ggc_internal_cleared_alloc): Likewise.
20428         * ggc-page.c: Likewise.
20429         * ggc.h (ggc_internal_alloc_stat): Likewise.
20430         (ggc_internal_alloc): Remove macro.
20431         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
20432         (ggc_internal_cleared_alloc): Remove macro.
20433         (GGC_RESIZEVEC): Adjust.
20434         (ggc_resizevar): Remove macro.
20435         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
20436         (ggc_internal_cleared_vec_alloc_stat): Likewise.
20437         (ggc_internal_vec_cleared_alloc): Remove macro.
20438         (ggc_alloc_atomic_stat): Drop _stat suffix.
20439         (ggc_alloc_atomic): Remove macro.
20440         (ggc_alloc_cleared_atomic): Remove macro.
20441         (ggc_alloc_string_stat): Drop _stat suffix.
20442         (ggc_alloc_string): Remove macro.
20443         (ggc_alloc_rtx_def_stat): Adjust.
20444         (ggc_alloc_tree_node_stat): Likewise.
20445         (ggc_alloc_cleared_tree_node_stat): Likewise.
20446         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
20447         (ggc_alloc_cleared_simd_clone_stat): Likewise.
20448         * gimple.c (gimple_build_omp_for): Likewise.
20449         (gimple_copy): Likewise.
20450         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
20451         * toplev.c (realloc_for_line_map): Adjust.
20452         * tree-data-ref.h (lambda_vector_new): Likewise.
20453         * tree-phinodes.c (allocate_phi_node): Likewise.
20454         * tree.c (grow_tree_vec_stat): Likewise.
20455         * vec.h (va_gc::reserve): Adjust.
20456
20457 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
20458
20459         * config/microblaze/microblaze.c (break_handler): New Declaration.
20460         (microblaze_break_function_p,microblaze_is_break_handler): New.
20461         (compute_frame_size): Use microblaze_break_function_p.
20462         Add the test of break_handler.
20463         (microblaze_function_prologue) : Add the test of variable
20464         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
20465         (microblaze_function_epilogue) : Add the test of break_handler.
20466         (microblaze_globalize_label) : Add the test of break_handler.
20467         Check the name by BREAK_HANDLER_NAME.
20468
20469         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
20470
20471         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
20472         microblaze_is_break_handler test.
20473         (call_internal1,call_value_intern): Use microblaze_break_function_p.
20474         Use SYMBOL_REF_DECL.
20475
20476         * config/microblaze/microblaze-protos.h
20477         (microblaze_break_function_p,microblaze_is_break_handler):
20478         New Declaration.
20479
20480         * doc/extend.texi (MicroBlaze break_handler Functions): Document
20481         new MicroBlaze break_handler functions.
20482
20483 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
20484
20485         * doc/extend.texi (Size of an asm): Move node text according
20486         to its @menu entry position.
20487
20488 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
20489
20490         PR tree-optimization/61140
20491         PR tree-optimization/61150
20492         PR tree-optimization/61197
20493         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
20494
20495 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
20496
20497         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
20498
20499 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
20500
20501         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
20502         __SIZEOF_INT128__ is defined.
20503
20504 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20505
20506         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
20507         (rs6000_delegitimize_address): Use it.
20508
20509 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20510
20511         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
20512         inplace argument.  Store the new address in the original MEM when true.
20513         * emit-rtl.c (change_address_1): Likewise.
20514         (adjust_address_1, adjust_automodify_address_1, offset_address):
20515         Update accordingly.
20516         * rtl.h (plus_constant): Add an inplace argument.
20517         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
20518         when true.  Avoid generating (plus X (const_int 0)).
20519         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
20520         in-place.  Pass true to plus_constant.
20521         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
20522
20523 2014-05-16  Dehao Chen  <dehao@google.com>
20524
20525         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
20526
20527 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20528
20529         PR target/54089
20530         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
20531         patterns.
20532         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
20533
20534 2014-05-16  Dehao Chen  <dehao@google.com>
20535
20536         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
20537         optimize_function_for_size_p.
20538         * regs.h (REG_FREQ_FROM_BB): Likewise.
20539
20540 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20541
20542         PR target/51244
20543         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
20544         negt_reg_operand cases.
20545         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
20546         predicate.
20547         * config/sh/predicates.md (cbranch_treg_value): Simplify.
20548
20549 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20550
20551         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
20552         target variants.
20553
20554 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
20555
20556         Revert:
20557         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
20558
20559         * tree-cfg.c (dump_function_to_file): Dump the return type of
20560         functions, in a line to itself before the function body, mimicking
20561         the layout of a C function.
20562
20563 2014-05-16  Dehao Chen  <dehao@google.com>
20564
20565         * cfghooks.c (make_forwarder_block): Use direct computation to
20566         get fall-through edge's count and frequency.
20567
20568 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
20569
20570         * config/arc/arc.c (arc_init): Fix typo in error message.
20571         * config/i386/i386.c (ix86_expand_builtin): Likewise.
20572         (split_stack_prologue_scratch_regno): Likewise.
20573         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
20574         word from error message.
20575
20576 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20577
20578         * ira-costs.c: Fix typo in comment.
20579
20580 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
20581
20582         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20583
20584 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
20585
20586         * varpool.c (dump_varpool_node): Dump write-only flag.
20587         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20588         write-only flag.
20589         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20590         write-only variables.
20591         * ipa.c (process_references): New function.
20592         (set_readonly_bit): New function.
20593         (set_writeonly_bit): New function.
20594         (clear_addressable_bit): New function.
20595         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20596         fix handling of aliases.
20597         * cgraph.h (struct varpool_node): Add writeonly flag.
20598
20599 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
20600
20601         PR rtl-optimization/60969
20602         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20603         Calculate costs for this case.
20604
20605 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
20606
20607         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20608         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20609
20610 2014-05-16  Richard Biener  <rguenther@suse.de>
20611
20612         PR tree-optimization/61194
20613         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20614         bool patterns ending in a COND_EXPR.
20615
20616 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20617
20618         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20619
20620 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20621
20622         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20623         where we were unable to cost an RTX.
20624
20625 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20626
20627         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20628         HIGH, LO_SUM.
20629
20630 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20631             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20632
20633         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
20634
20635 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20636             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20637
20638         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20639         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20640
20641 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20642             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20643
20644         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20645         operators.
20646
20647 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20648             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20649
20650         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20651         DIV/MOD.
20652
20653 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20654             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20655
20656         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20657         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20658
20659 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20660             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20661
20662         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20663         rotates and shifts.
20664
20665 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20666             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20667
20668         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20669         ZERO_EXTEND and SIGN_EXTEND better.
20670
20671 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20672             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20673
20674         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20675         logical operations.
20676
20677 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20678             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20679
20680         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20681         costs when costing loads and stores to memory.
20682
20683 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20684             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
20685
20686         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20687         for SET RTX.
20688
20689 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20690
20691         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20692
20693 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20694             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20695
20696         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20697         to...
20698         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20699         well formed.
20700         (aarch64_rtx_mult_cost): New.
20701         (aarch64_rtx_costs): Use it, refactor as appropriate.
20702
20703 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20704             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20705
20706         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20707         emit instructions, return number of instructions which would
20708         be emitted.
20709         (aarch64_add_constant): Update call to aarch64_build_constant.
20710         (aarch64_output_mi_thunk): Likewise.
20711         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20712         a CONST_DOUBLE.
20713
20714 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20715
20716         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20717         (TARGET_RTX_COSTS): Call it.
20718
20719 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20720
20721         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20722         (cortexa57_vector_cost): Likewise.
20723         (cortexa57_tunings): Use them.
20724
20725 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20726
20727         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20728         (cpu_addrcost_table): Use it.
20729         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20730         (aarch64_address_cost): Rewrite using aarch64_classify_address,
20731         move it.
20732
20733 2014-05-16  Richard Biener  <rguenther@suse.de>
20734
20735         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20736         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20737         (visit_phi): Ignore edges marked as not executable.
20738         (class cond_dom_walker): New.
20739         (cond_dom_walker::before_dom_children): Value-number
20740         control statements and mark successor edges as not
20741         executable if possible.
20742         (run_scc_vn): First walk all control statements in
20743         dominator order, marking edges as not executable.
20744         * tree-inline.c (copy_edges_for_bb): Be not confused
20745         about random edge flags.
20746
20747 2014-05-16  Richard Biener  <rguenther@suse.de>
20748
20749         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20750
20751 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
20752
20753         PR target/61193
20754         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20755         (__TM_simple_begin): Use it.
20756         (__TM_begin): Likewise.
20757
20758 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20759
20760         PR ipa/61085
20761         * ipa-prop.c (update_indirect_edges_after_inlining): Check
20762         type_preserved flag when the indirect edge is polymorphic.
20763
20764 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20765
20766         PR tree-optimization/61090
20767         * tree-sra.c (sra_modify_expr): Pass the current gsi to
20768         build_ref_for_model.
20769
20770 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20771
20772         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20773         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20774
20775 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
20776
20777         PR tree-optimization/61158
20778         * fold-const.c (fold_binary_loc): If X is zero-extended and
20779         shiftc >= prec, make sure zerobits is all ones instead of
20780         invoking undefined behavior.
20781
20782 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20783
20784         * regcprop.h: New file.
20785         * regcprop.c (skip_debug_insn_p): New decl.
20786         (replace_oldest_value_reg): Check skip_debug_insn_p.
20787         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20788         * shrink-wrap.c: Include regcprop.h.
20789         (prepare_shrink_wrap): Call
20790         copyprop_hardreg_forward_bb_without_debug_insn.
20791
20792 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20793
20794         * shrink-wrap.h: Update comment.
20795         * shrink-wrap.c: Update comment.
20796         (next_block_for_reg): Rename to live_edge_for_reg.
20797         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20798         (move_insn_for_shrink_wrap): Split live_edge.
20799         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20800
20801 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20802
20803         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20804         Delete.
20805         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20806         * config/sparc/sparc.md (fptype_ut699): New attribute.
20807         (in_branch_delay): Return false if -mfix-ut699 is specified and
20808         fptype_ut699 is set to single.
20809         (truncdfsf2): Add fptype_ut699 attribute.
20810         (fix_truncdfsi2): Likewise.
20811         (floatsisf2): Change fptype attribute.
20812         (fix_truncsfsi2): Likewise.
20813         (negtf2_notv9): Delete.
20814         (negtf2_v9): Likewise.
20815         (negtf2_hq): New instruction.
20816         (negtf2): New instruction and splitter.
20817         (negdf2_notv9): Rewrite.
20818         (abstf2_notv9): Delete.
20819         (abstf2_hq_v9): Likewise.
20820         (abstf2_v9): Likewise.
20821         (abstf2_hq): New instruction.
20822         (abstf2): New instruction and splitter.
20823         (absdf2_notv9): Rewrite.
20824
20825 2014-05-14  Cary Coutant  <ccoutant@google.com>
20826
20827         PR debug/61013
20828         * opts.c (common_handle_option): Don't special-case "-g".
20829         (set_debug_level): Default to at least level 2 with "-g".
20830
20831 2014-05-14  DJ Delorie  <dj@redhat.com>
20832
20833         * config/msp430/msp430.c (msp430_builtin): Add
20834         MSP430_BUILTIN_DELAY_CYCLES.
20835         (msp430_init_builtins): Register void __delay_cycles(long long).
20836         (msp430_builtin_decl): Add it.
20837         (cg_magic_constant): New.
20838         (msp430_expand_delay_cycles): New.
20839         (msp430_expand_builtin): Call it.
20840         (msp430_print_operand_raw): Change integer printing from "int" to
20841         HOST_WIDE_INT.
20842         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20843         (delay_cycles_start): New.
20844         (delay_cycles_end): New.
20845         (delay_cycles_32): New.
20846         (delay_cycles_32x): New.
20847         (delay_cycles_16): New.
20848         (delay_cycles_16x): New.
20849         (delay_cycles_2): New.
20850         (delay_cycles_1): New.
20851         * doc/extend.texi: Document __delay_cycles().
20852
20853 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
20854
20855         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20856         length attribute computation.
20857
20858 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
20859
20860         PR debug/61188
20861         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20862
20863 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
20864
20865         PR target/61084
20866         * config/sparc/sparc.md: Fix types of low and high in DI constant
20867         splitter.  Use gen_int_mode in some other splitters.
20868
20869 2014-05-14  Martin Jambor  <mjambor@suse.cz>
20870
20871         PR ipa/60897
20872         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20873
20874 2014-05-14  James Norris  <jnorris@codesourcery.com>
20875
20876         * omp-low.c (expand_parallel_call): Remove shadow variable.
20877         (expand_omp_taskreg): Likewise.
20878
20879 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
20880
20881         * common/config/i386/i386-common.c
20882         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20883         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20884         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20885         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20886         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20887         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20888         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20889         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20890         xsavecintrin.h, xsavesintrin.h.
20891         (x86_64-*-*): Ditto.
20892         * config/i386/clflushoptintrin.h: New.
20893         * config/i386/xsavecintrin.h: Ditto.
20894         * config/i386/xsavesintrin.h: Ditto.
20895         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20896         (bit_XSAVES): Ditto.
20897         (bit_XSAVES): Ditto.
20898         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20899         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20900         -mno-clflushopt.
20901         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20902         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20903         OPTION_MASK_ISA_XSAVES.
20904         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20905         -mxsavec, -mxsaves.
20906         (PTA_CLFLUSHOPT) Define.
20907         (PTA_XSAVEC): Ditto.
20908         (PTA_XSAVES): Ditto.
20909         (ix86_option_override_internal): Handle new options.
20910         (ix86_valid_target_attribute_inner_p): Ditto.
20911         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20912         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20913         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20914         (bdesc_special_args): Add __builtin_ia32_xsaves,
20915         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20916         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20917         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20918         (ix86_expand_builtin): Handle new builtins.
20919         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20920         (TARGET_CLFLUSHOPT_P): Ditto.
20921         (TARGET_XSAVEC): Ditto.
20922         (TARGET_XSAVEC_P): Ditto.
20923         (TARGET_XSAVES): Ditto.
20924         (TARGET_XSAVES_P): Ditto.
20925         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20926         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20927         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20928         (ANY_XRSTOR): New.
20929         (ANY_XRSTOR64): Ditto.
20930         (xrstor): Ditto.
20931         (xrstor): Change into <xrstor>.
20932         (xrstor_rex64): Change into <xrstor>_rex64.
20933         (xrstor64): Change into <xrstor>64
20934         (clflushopt): New.
20935         * config/i386/i386.opt (mclflushopt): New.
20936         (mxsavec): Ditto.
20937         (mxsaves): Ditto.
20938         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20939         xsavecintrin.h.
20940         * doc/invoke.texi: Document new options.
20941
20942 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20943
20944         PR rtl-optimization/60866
20945         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20946         Default it to -1.  Pass it down to init_simplejump_data.
20947         (init_simplejump_data): New parameter old_seqno.  Pass it down
20948         to get_seqno_for_a_jump.
20949         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
20950         initializing new jump seqno as a last resort.  Add comment.
20951         (sel_redirect_edge_and_branch): Save old seqno of the conditional
20952         jump and pass it down to sel_init_new_insn.
20953         (sel_redirect_edge_and_branch_force): Likewise.
20954
20955 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
20956
20957         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20958         shifted values to avoid build warning.
20959
20960 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20961
20962         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20963         * cfgrtl.c (rtl_merge_blocks): Fix comment.
20964         (cfg_layout_merge_blocks): Likewise.
20965         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20966
20967 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20968
20969         PR rtl-optimization/60901
20970         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20971         bb predecessor belongs to the same scheduling region.  Adjust comment.
20972
20973 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
20974
20975         * doc/sourcebuild.texi: (dfp_hw): Document.
20976         (p8vector_hw): Likewise.
20977         (powerpc_eabi_ok): Likewise.
20978         (powerpc_elfv2): Likewise.
20979         (powerpc_htm_ok): Likewise.
20980         (ppc_recip_hw): Likewise.
20981         (vsx_hw): Likewise.
20982
20983 2014-05-13  Cary Coutant  <ccoutant@google.com>
20984
20985         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20986
20987 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
20988
20989         * gengtype-parse.c (require3): Eliminate in favor of...
20990         (require4): New.
20991         (require_template_declaration): Update to support optional single *
20992         on a type.
20993
20994         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20995         (create_user_defined_type): Handle a single level of explicit
20996         pointerness within template arguments.
20997         (struct write_types_data): Add field "kind".
20998         (filter_type_name): Handle "*" character.
20999         (write_user_func_for_structure_ptr): Require a write_types_data
21000         rather than just a prefix string, so that we can look up the kind
21001         of the wtd and use it as an index into wrote_user_func_for_ptr,
21002         ensuring that such functions are written at most once.  Support
21003         subclasses by invoking the marking function of the ultimate base class.
21004         (write_user_func_for_structure_body): Require a write_types_data
21005         rather than just a prefix string, so that we can pass this to
21006         write_user_func_for_structure_ptr.
21007         (write_func_for_structure): Likewise.
21008         (ggc_wtd): Add initializer of new "kind" field.
21009         (pch_wtd): Likewise.
21010
21011         * gengtype.h (enum write_types_kinds): New.
21012         (struct type): Add field wrote_user_func_for_ptr to the "s"
21013         union member.
21014
21015 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
21016
21017         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
21018         instead of const_binop.
21019         (fold_binary_loc): Likewise.
21020
21021 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
21022
21023         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
21024         calculation to match get_ref_base_and_extent.
21025
21026 2014-05-13  Catherine Moore  <clm@codesourcery.com>
21027             Sandra Loosemore  <sandra@codesourcery.com>
21028
21029         * configure.ac: Fix assembly for explicit JALR relocation check.
21030         * configure: Regenerate.
21031
21032 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21033
21034         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
21035         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
21036         Remove associated type declarations and initialisations.
21037         (arm_expand_neon_builtin): Likewise.
21038         (neon_emit_pair_result_insn): Delete.
21039         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
21040         * config/arm/neon.md (neon_vtrn<mode>): Delete.
21041         (neon_vzip<mode>): Likewise.
21042         (neon_vuzp<mode>): Likewise.
21043
21044 2014-05-13  Richard Biener  <rguenther@suse.de>
21045
21046         PR ipa/60973
21047         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
21048         it needs revisiting whether the call still may be tail-called.
21049
21050 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21051
21052         * rtl.def (SYMBOL_REF): Remove middle "0" field.
21053         * rtl.h (block_symbol): Reduce number of fields to 2.
21054         (rtx_def): Add u2.symbol_ref_flags.
21055         (SYMBOL_REF_FLAGS): Use it.
21056         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
21057         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
21058         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
21059         Lower index of SYMBOL_REF_DATA.
21060         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
21061         Print SYMBOL_REF_FLAGS at the same time.
21062         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
21063
21064 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21065
21066         * rtl.def (VAR_LOCATION): Remove "i" field.
21067         * rtl.h (rtx_def): Add u2.var_location_status.
21068         (PAT_VAR_LOCATION_STATUS): Use it.
21069         (gen_rtx_VAR_LOCATION): Declare.
21070         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
21071         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
21072         * var-tracking.c (emit_note_insn_var_location): Remove casts.
21073
21074 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21075
21076         * rtl.def (scratch): Fix outdated comment and remove "0" field.
21077         * gengtype.c (adjust_field_rtx_def): Update accordingly.
21078
21079 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21080
21081         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
21082         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
21083         * rtl.h (rtx_def): Add insn_uid to u2 field.
21084         (RTX_FLAG_CHECK8): Delete in favor of...
21085         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
21086         (INSN_DELETED_P): Update accordingly.
21087         (INSN_UID): Use u2.insn_uid.
21088         (INSN_CHAIN_CODE_P): Define.
21089         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
21090         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
21091         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
21092         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
21093         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
21094         indices accordingly.
21095         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
21096         Update indices for insn-chain rtxes.
21097         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
21098         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
21099         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
21100         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
21101         * combine.c (try_combine): Likewise.
21102         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21103
21104 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21105
21106         * rtl.def (REG): Remove middle field.
21107         * rtl.h (rtx_def): Add orignal_regno to u2.
21108         (ORIGINAL_REGNO): Use it instead of field 1.
21109         (REG_ATTRS): Lower field index accordingly.
21110         * gengtype.c (adjust_field_rtx_def): Remove handling of
21111         ORIGINAL_REGNO.  Move REG_ATTRS index down.
21112         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
21113         code that prints the REGNO.
21114
21115 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21116
21117         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
21118         GENERATOR_FILE.
21119
21120 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21121
21122         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
21123
21124 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
21125
21126         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
21127         (alloc_iv): Lower base expressions containing ADDR_EXPR.
21128
21129 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
21130
21131         * config/aarch64/aarch64-protos.h
21132         (aarch64_hard_regno_caller_save_mode): New prototype.
21133         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
21134         New function.
21135         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
21136
21137 2014-05-13  Christian Bruel  <christian.bruel@st.com>
21138
21139         * target.def (mode_switching): New hook vector.
21140         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
21141         (mode_exit, modepriority_to_mode): Likewise.
21142         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
21143         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21144         * target.h: Include tm.h and hard-reg-set.h.
21145         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
21146         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
21147         * doc/tm.texi Regenerate.
21148         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21149         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21150         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
21151         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
21152         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21153         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21154         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
21155         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
21156         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
21157         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
21158         (ix86_emit_mode_set): Hookify.
21159         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
21160         Delete.
21161         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21162         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
21163         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
21164         (epiphany_mode_priority_to_mode): Remove declaration.
21165         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
21166         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
21167         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
21168         Likewise.
21169         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
21170         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
21171         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
21172
21173 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
21174
21175         PR target/61060
21176         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
21177         is const0_rtx, return immediately.  Don't test count == 0 when
21178         it is always true.
21179
21180 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21181
21182         * Makefile.in: add shrink-wrap.o.
21183         * config/i386/i386.c: include "shrink-wrap.h"
21184         * function.c: Likewise.
21185         (requires_stack_frame_p, next_block_for_reg,
21186         move_insn_for_shrink_wrap, prepare_shrink_wrap,
21187         dup_block_and_redirect): Move to shrink-wrap.c
21188         (thread_prologue_and_epilogue_insns): Extract three code segments
21189         as functions in shrink-wrap.c
21190         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
21191         shrink-wrap.h
21192         * shrink-wrap.c: New file.
21193         * shrink-wrap.h: New file.
21194
21195 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
21196
21197         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
21198         reference to Solaris.
21199
21200 2014-05-12  Mike Stump  <mikestump@comcast.net>
21201
21202         PR other/31778
21203         * genattrtab.c (filename): Add.
21204         (convert_set_attr_alternative): Improve error message.
21205         (check_defs): Restore read_md_filename for error messages.
21206         (gen_insn): Save filename.
21207
21208 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
21209
21210         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
21211         -fno-local-ivars and -fivar-visibility.
21212         * c-family/c.opt: Make -Wshadow also implicitly enable
21213         -Wshadow-ivar.
21214
21215 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
21216
21217         * doc/tm.texi: Remove reference to deleted macro.
21218         * doc/tm.texi.in: Likewise.
21219
21220 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21221
21222         PR target/60991
21223         * config/avr/avr.c (avr_out_store_psi): Use correct constant
21224         to restore Y.
21225
21226 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
21227
21228         PR libgcc/61152
21229         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
21230         * config/arm/aout.h (License): Same.
21231         * config/arm/bpabi.h (License): Same.
21232         * config/arm/elf.h (License): Same.
21233         * config/arm/linux-elf.h (License): Same.
21234         * config/arm/linux-gas.h (License): Same.
21235         * config/arm/netbsd-elf.h (License): Same.
21236         * config/arm/uclinux-eabi.h (License): Same.
21237         * config/arm/uclinux-elf.h (License): Same.
21238         * config/arm/vxworks.h (License): Same.
21239
21240 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
21241
21242         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
21243         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
21244         number of operands to 3.
21245         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
21246         * tree-nested.c (convert_nonlocal_omp_clauses,
21247         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
21248         * gimplify.c (gimplify_scan_omp_clauses): Handle
21249         OMP_CLAUSE_LINEAR_STMT.
21250         * omp-low.c (lower_rec_input_clauses): Fix typo.
21251         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
21252         cast between Fortran boolean_type_node and C _Bool if
21253         needed.
21254
21255 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
21256
21257         PR tree-optimization/61136
21258         * wide-int.h (multiple_of_p): Define a version that doesn't return
21259         the quotient.
21260         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
21261         integer_zerop/const_binop pair.
21262         (multiple_of_p): Likewise, converting both operands to widest_int
21263         precision.
21264
21265 2014-05-09  Teresa Johnson  <tejohnson@google.com>
21266
21267         * cgraphunit.c (analyze_functions): Use correct dump file.
21268
21269 2014-05-09  Florian Weimer  <fweimer@redhat.com>
21270
21271         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
21272         expand_used_vars.
21273         (stack_protect_return_slot_p): New function.
21274         (expand_used_vars): Call stack_protect_decl_p and
21275         stack_protect_return_slot_p for -fstack-protector-strong.
21276
21277 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
21278         Andrew Haley <aph@redhat.com>
21279         Richard Sandiford <rdsandiford@googlemail.com>
21280
21281         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
21282         pages.
21283
21284 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
21285
21286         PR middle-end/61111
21287         * fold-const.c (fold_binary_loc): Changed width of mask.
21288
21289 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
21290
21291         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
21292         unsigned int initializers for regno_in, regno_out.
21293
21294 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
21295
21296         PR target/61055
21297         * config/avr/avr.md (cc): Add new attribute set_vzn.
21298         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
21299         Set cc insn attribute to set_vzn instead of set_zn for alternatives
21300         with INC, DEC or NEG.
21301         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
21302         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
21303         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
21304
21305 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21306
21307         Revert:
21308         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21309
21310         * wide-int.cc (UTItype): Define.
21311         (UDWtype): Define for appropriate W_TYPE_SIZE.
21312
21313 2014-05-09  Richard Biener  <rguenther@suse.de>
21314
21315         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
21316         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
21317         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
21318         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
21319         ssa_propagate): Adjust.
21320
21321 2014-05-08  Jeff Law  <law@redhat.com>
21322
21323         PR tree-optimization/61009
21324         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
21325         tri-state rather than a boolean.  When a block is too big to
21326         thread through, inform caller via negative return value.
21327         (thread_across_edge): If a block was too big for normal threading,
21328         then it's too big for a joiner too, so remove temporary equivalences
21329         and return immediately.
21330
21331 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21332             Matthias Klose  <doko@ubuntu.com>
21333
21334         PR driver/61106
21335         * optc-gen.awk: Fix option handling for -Wunused-parameter.
21336
21337 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
21338
21339         PR target/59952
21340         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
21341
21342 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
21343
21344         PR target/61092
21345         * config/alpha/alpha.c: Include gimple-iterator.h.
21346         (alpha_gimple_fold_builtin): New function.  Move
21347         ALPHA_BUILTIN_UMULH folding from ...
21348         (alpha_fold_builtin): ... here.
21349         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
21350
21351 2014-05-08  Wei Mi  <wmi@google.com>
21352
21353         PR target/58066
21354         * config/i386/i386.c (ix86_compute_frame_layout): Update
21355         preferred_stack_boundary for call, expanded from tls descriptor.
21356         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
21357         to depend on SP register.
21358         (*tls_local_dynamic_base_32_gnu): Ditto.
21359         (*tls_local_dynamic_32_once): Ditto.
21360         (tls_global_dynamic_64_<mode>): Set
21361         ix86_tls_descriptor_calls_expanded_in_cfun.
21362         (tls_local_dynamic_base_64_<mode>): Ditto.
21363         (tls_global_dynamic_32): Set
21364         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
21365         to depend on SP register.
21366         (tls_local_dynamic_base_32): Ditto.
21367
21368 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21369
21370         * config/arm/arm_neon.h: Update comment.
21371         * config/arm/neon-docgen.ml: Delete.
21372         * config/arm/neon-gen.ml: Delete.
21373         * doc/arm-neon-intrinsics.texi: Update comment.
21374
21375 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21376
21377         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
21378         and v4sf versions.
21379         (vand, vorr, veor, vorn, vbic): Remove.
21380         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
21381         iterator.
21382         (neon_vsub_unspec): Likewise.
21383         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
21384
21385 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21386
21387         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
21388         (vadd_s16): Likewise.
21389         (vadd_s32): Likewise.
21390         (vadd_f32): Likewise.
21391         (vadd_u8): Likewise.
21392         (vadd_u16): Likewise.
21393         (vadd_u32): Likewise.
21394         (vadd_s64): Likewise.
21395         (vadd_u64): Likewise.
21396         (vaddq_s8): Likewise.
21397         (vaddq_s16): Likewise.
21398         (vaddq_s32): Likewise.
21399         (vaddq_s64): Likewise.
21400         (vaddq_f32): Likewise.
21401         (vaddq_u8): Likewise.
21402         (vaddq_u16): Likewise.
21403         (vaddq_u32): Likewise.
21404         (vaddq_u64): Likewise.
21405         (vmul_s8): Likewise.
21406         (vmul_s16): Likewise.
21407         (vmul_s32): Likewise.
21408         (vmul_f32): Likewise.
21409         (vmul_u8): Likewise.
21410         (vmul_u16): Likewise.
21411         (vmul_u32): Likewise.
21412         (vmul_p8): Likewise.
21413         (vmulq_s8): Likewise.
21414         (vmulq_s16): Likewise.
21415         (vmulq_s32): Likewise.
21416         (vmulq_f32): Likewise.
21417         (vmulq_u8): Likewise.
21418         (vmulq_u16): Likewise.
21419         (vmulq_u32): Likewise.
21420         (vsub_s8): Likewise.
21421         (vsub_s16): Likewise.
21422         (vsub_s32): Likewise.
21423         (vsub_f32): Likewise.
21424         (vsub_u8): Likewise.
21425         (vsub_u16): Likewise.
21426         (vsub_u32): Likewise.
21427         (vsub_s64): Likewise.
21428         (vsub_u64): Likewise.
21429         (vsubq_s8): Likewise.
21430         (vsubq_s16): Likewise.
21431         (vsubq_s32): Likewise.
21432         (vsubq_s64): Likewise.
21433         (vsubq_f32): Likewise.
21434         (vsubq_u8): Likewise.
21435         (vsubq_u16): Likewise.
21436         (vsubq_u32): Likewise.
21437         (vsubq_u64): Likewise.
21438         (vand_s8): Likewise.
21439         (vand_s16): Likewise.
21440         (vand_s32): Likewise.
21441         (vand_u8): Likewise.
21442         (vand_u16): Likewise.
21443         (vand_u32): Likewise.
21444         (vand_s64): Likewise.
21445         (vand_u64): Likewise.
21446         (vandq_s8): Likewise.
21447         (vandq_s16): Likewise.
21448         (vandq_s32): Likewise.
21449         (vandq_s64): Likewise.
21450         (vandq_u8): Likewise.
21451         (vandq_u16): Likewise.
21452         (vandq_u32): Likewise.
21453         (vandq_u64): Likewise.
21454         (vorr_s8): Likewise.
21455         (vorr_s16): Likewise.
21456         (vorr_s32): Likewise.
21457         (vorr_u8): Likewise.
21458         (vorr_u16): Likewise.
21459         (vorr_u32): Likewise.
21460         (vorr_s64): Likewise.
21461         (vorr_u64): Likewise.
21462         (vorrq_s8): Likewise.
21463         (vorrq_s16): Likewise.
21464         (vorrq_s32): Likewise.
21465         (vorrq_s64): Likewise.
21466         (vorrq_u8): Likewise.
21467         (vorrq_u16): Likewise.
21468         (vorrq_u32): Likewise.
21469         (vorrq_u64): Likewise.
21470         (veor_s8): Likewise.
21471         (veor_s16): Likewise.
21472         (veor_s32): Likewise.
21473         (veor_u8): Likewise.
21474         (veor_u16): Likewise.
21475         (veor_u32): Likewise.
21476         (veor_s64): Likewise.
21477         (veor_u64): Likewise.
21478         (veorq_s8): Likewise.
21479         (veorq_s16): Likewise.
21480         (veorq_s32): Likewise.
21481         (veorq_s64): Likewise.
21482         (veorq_u8): Likewise.
21483         (veorq_u16): Likewise.
21484         (veorq_u32): Likewise.
21485         (veorq_u64): Likewise.
21486         (vbic_s8): Likewise.
21487         (vbic_s16): Likewise.
21488         (vbic_s32): Likewise.
21489         (vbic_u8): Likewise.
21490         (vbic_u16): Likewise.
21491         (vbic_u32): Likewise.
21492         (vbic_s64): Likewise.
21493         (vbic_u64): Likewise.
21494         (vbicq_s8): Likewise.
21495         (vbicq_s16): Likewise.
21496         (vbicq_s32): Likewise.
21497         (vbicq_s64): Likewise.
21498         (vbicq_u8): Likewise.
21499         (vbicq_u16): Likewise.
21500         (vbicq_u32): Likewise.
21501         (vbicq_u64): Likewise.
21502         (vorn_s8): Likewise.
21503         (vorn_s16): Likewise.
21504         (vorn_s32): Likewise.
21505         (vorn_u8): Likewise.
21506         (vorn_u16): Likewise.
21507         (vorn_u32): Likewise.
21508         (vorn_s64): Likewise.
21509         (vorn_u64): Likewise.
21510         (vornq_s8): Likewise.
21511         (vornq_s16): Likewise.
21512         (vornq_s32): Likewise.
21513         (vornq_s64): Likewise.
21514         (vornq_u8): Likewise.
21515         (vornq_u16): Likewise.
21516         (vornq_u32): Likewise.
21517         (vornq_u64): Likewise.
21518
21519 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21520
21521         * wide-int.cc (UTItype): Define.
21522         (UDWtype): Define for appropriate W_TYPE_SIZE.
21523
21524 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
21525
21526         PR tree-optimization/59100
21527         * tree-ssa-phiopt.c: Include tree-inline.h.
21528         (neutral_element_p, absorbing_element_p): New functions.
21529         (value_replacement): Handle conditional binary operations with a
21530         neutral or absorbing element.
21531
21532 2014-05-08  Richard Biener  <rguenther@suse.de>
21533
21534         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
21535         folding the expression.
21536         (valueize_expr): Remove.
21537         (visit_reference_op_load): Do not valueize the result of
21538         vn_get_expr_for.
21539         (simplify_binary_expression): Likewise.
21540         (simplify_unary_expression): Likewise.
21541
21542 2014-05-08  Richard Biener  <rguenther@suse.de>
21543
21544         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
21545         looking at TYPE_ARG_TYPES.
21546
21547 2014-05-08  Richard Biener  <rguenther@suse.de>
21548
21549         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
21550         pointer propagation special-case.
21551
21552 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
21553
21554         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
21555         core part of address expressions.
21556
21557 2014-05-08  Alan Modra  <amodra@gmail.com>
21558
21559         PR target/60737
21560         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
21561         loads and stores when -mno-strict-align at any alignment.
21562         (expand_block_clear): Similarly.  Also correct calculation of
21563         instruction count.
21564
21565 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21566
21567         PR middle-end/39246
21568         * tree-complex.c (expand_complex_move): Keep line info when expanding
21569         complex move.
21570         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
21571         of complex expression. Use new argument to display correct location
21572         for values coming from phi statement.
21573         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
21574         (warn_uninitialized_phi): Pass location of phi argument to
21575         warn_uninit.
21576         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
21577         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
21578
21579 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
21580
21581         * config/rs6000/predicates.md (indexed_address_mem): New.
21582         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21583         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21584         fpstore_ux, fpstore_u.
21585         (sign_extend, indexed, update): New.
21586         (cell_micro): Adjust.
21587         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21588         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21589         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21590         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21591         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21592         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21593         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21594         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21595         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21596         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21597         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21598         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21599         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21600         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21601         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21602
21603         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21604         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21605         *vsx_extract_<mode>_store): Adjust.
21606         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21607         is_cracked_insn, insn_must_be_first_in_group,
21608         insn_must_be_last_in_group): Adjust.
21609
21610         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21611         Adjust.
21612         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21613         ppc440-fpstore): Adjust.
21614         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21615         ppc476-fpstore): Adjust.
21616         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21617         ppc601-fpstore): Adjust.
21618         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21619         Adjust.
21620         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21621         Adjust.
21622         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21623         ppc7450-fpstore): Adjust.
21624         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21625         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21626         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21627         Adjust.
21628         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21629         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21630         cell-fpstore, cell-fpstore-update): Adjust.
21631         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21632         ppce300c3_store, ppce300c3_fpstore): Adjust.
21633         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21634         e500mc_fpstore): Adjust.
21635         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21636         e500mc64_store, e500mc64_fpstore): Adjust.
21637         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21638         e5500_fpstore): Adjust.
21639         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21640         e6500_fpstore): Adjust.
21641         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21642         Adjust.
21643         * config/rs6000/power4.md (power4-load, power4-load-ext,
21644         power4-load-ext-update, power4-load-ext-update-indexed,
21645         power4-load-update-indexed, power4-load-update, power4-fpload,
21646         power4-fpload-update, power4-store, power4-store-update,
21647         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21648         Adjust.
21649         * config/rs6000/power5.md (power5-load, power5-load-ext,
21650         power5-load-ext-update, power5-load-ext-update-indexed,
21651         power5-load-update-indexed, power5-load-update, power5-fpload,
21652         power5-fpload-update, power5-store, power5-store-update,
21653         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21654         Adjust.
21655         * config/rs6000/power6.md (power6-load, power6-load-ext,
21656         power6-load-update, power6-load-update-indexed,
21657         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21658         power6-fpload-update, power6-store, power6-store-update,
21659         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21660         Adjust.
21661         * config/rs6000/power7.md (power7-load, power7-load-ext,
21662         power7-load-update, power7-load-update-indexed,
21663         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21664         power7-fpload-update, power7-store, power7-store-update,
21665         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21666         Adjust.
21667         * config/rs6000/power8.md (power8-load, power8-load-update,
21668         power8-load-ext, power8-load-ext-update, power8-fpload,
21669         power8-fpload-update, power8-store, power8-store-update-indexed,
21670         power8-fpstore, power8-fpstore-update): Adjust.
21671         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21672         Adjust.
21673         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21674         titan_lsu_store, titan_lsu_fpstore): Adjust.
21675         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21676
21677 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
21678
21679         PR target/60884
21680         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21681         unrolled byte insns.  Emit address increments after move insns.
21682
21683 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
21684
21685         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21686         const_gimple, rather than a gimple.
21687         (gimple_call_builtin_p): Likewise, for the three variants.
21688
21689         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21690         (gimple_call_builtin_p): Likewise, for the three variants.
21691
21692 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21693
21694         PR tree-optimization/61095
21695         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21696
21697 2014-05-07  Richard Biener  <rguenther@suse.de>
21698
21699         PR tree-optimization/61034
21700         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21701         (maybe_skip_until): Use translate to take into account
21702         lattices when trying to do disambiguations.
21703         (get_continuation_for_phi_1): Likewise.
21704         (get_continuation_for_phi): Adjust for added translate arguments.
21705         (walk_non_aliased_vuses): Likewise.
21706         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21707         (walk_non_aliased_vuses): Likewise.
21708         (call_may_clobber_ref_p_1): Declare.
21709         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21710         calls.  Stop early if we are only supposed to disambiguate.
21711         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21712
21713 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
21714
21715         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21716         Emit an error when the function has arguments.
21717
21718 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21719
21720         * cfgloop.h (unswitch_loops): Remove.
21721         * doc/passes.texi: Remove references to loop-unswitch.c
21722         * timevar.def (TV_LOOP_UNSWITCH): Remove.
21723
21724 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
21725
21726         * tree-vect-data-refs.c (vect_grouped_load_supported): New
21727         check for loads group of length 3.
21728         (vect_permute_load_chain): New permutations for loads group of
21729         length 3.
21730         * tree-vect-stmts.c (vect_model_load_cost): Change cost
21731         of vec_perm_shuffle for the new permutations.
21732
21733 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
21734
21735         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21736         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21737         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21738         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21739         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21740         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21741         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21742         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21743
21744 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21745
21746         * loop-unswitch.c: Delete.
21747
21748 2014-05-07  Richard Biener  <rguenther@suse.de>
21749
21750         * config.gcc: Always set need_64bit_hwint to yes.
21751
21752 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
21753
21754         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21755         of using optimize_size.
21756
21757 2014-05-06  Mike Stump  <mikestump@comcast.net>
21758
21759         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21760
21761 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
21762
21763         * config/i386/sse.md (*mov<mode>_internal)
21764         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21765         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21766         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21767         (*<code><mode>3, *andnot<mode>3<mask_name>)
21768         (<mask_codefor><code><mode>3<mask_name>): Only consider
21769         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21770
21771 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21772
21773         Revert:
21774         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
21775
21776         * lra-constraints.c (valid_address_p): Move earlier in file.
21777         Add a constraint argument to the address_info version.
21778         (satisfies_memory_constraint_p): New function.
21779         (satisfies_address_constraint_p): Likewise.
21780         (process_alt_operands, curr_insn_transform): Use them.
21781         (process_address): Pass the constraint to valid_address_p when
21782         checking address operands.
21783
21784 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
21785
21786         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21787         to their respective blocks.  Fix inadvertent use of "node".
21788
21789 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21790
21791         * emit-rtl.c (init_derived_machine_modes): New functionm, split
21792         out from...
21793         (init_emit_once): ...here.
21794         * rtl.h (init_derived_machine_modes): Declare.
21795         * toplev.c (do_compile): Call it even if no_backend.
21796
21797 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
21798             Mike Stump  <mikestump@comcast.net>
21799             Richard Sandiford  <rdsandiford@googlemail.com>
21800             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21801
21802         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21803         (rtx_equal_for_memref_p): Update comment.
21804         (adjust_offset_for_component_ref): Use wide-int interfaces.
21805         * builtins.c (get_object_alignment_2): Likewise.
21806         (c_readstr): Likewise.
21807         (target_char_cast): Add comment.
21808         (determine_block_size): Use wide-int interfaces.
21809         (expand_builtin_signbit): Likewise.
21810         (fold_builtin_int_roundingfn): Likewise.
21811         (fold_builtin_bitop): Likewise.
21812         (fold_builtin_bswap): Likewise.
21813         (fold_builtin_logarithm): Use signop.
21814         (fold_builtin_pow): Likewise.
21815         (fold_builtin_memory_op): Use wide-int interfaces.
21816         (fold_builtin_object_size): Likewise.
21817         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21818         nb_iterations_estimate.
21819         (record_niter_bound): Use wide-int interfaces.
21820         (get_estimated_loop_iterations_int): Likewise.
21821         (get_estimated_loop_iterations): Likewise.
21822         (get_max_loop_iterations): Likewise.
21823         * cfgloop.h: Include wide-int.h.
21824         (struct nb_iter_bound): Change bound to widest_int.
21825         (struct loop): Change nb_iterations_upper_bound and
21826         nb_iterations_estimate to widest_int.
21827         (record_niter_bound): Switch to use widest_int.
21828         (get_estimated_loop_iterations): Likewise.
21829         (get_max_loop_iterations): Likewise.
21830         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21831         update for wide-int.
21832         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21833         * combine.c (try_combine): Likewise.
21834         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21835         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21836         interfaces.
21837         (aarch64_float_const_representable_p): Likewise.
21838         * config/arc/arc.c: Include wide-int.h.
21839         (arc_can_use_doloop_p): Use wide-int interfaces.
21840         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21841         (vfp3_const_double_index): Likewise.
21842         * config/avr/avr.c (avr_out_round): Likewise.
21843         (avr_fold_builtin): Likewise.
21844         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21845         (bfin_can_use_doloop_p): Likewise.
21846         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21847         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21848         * config/i386/i386.c: Include wide-int.h.
21849         (ix86_data_alignment): Use wide-int interfaces.
21850         (ix86_local_alignment): Likewise.
21851         (ix86_emit_swsqrtsf): Update real_from_integer.
21852         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21853         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21854         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21855         (zero_constant): Likewise.
21856         (input_operand): Likewise.
21857         (splat_input_operand): Likewise.
21858         (non_logical_cint_operand): Change const_double to const_wide_int.
21859         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21860         (easy_altivec_constant): Remove comment.
21861         (paired_expand_vector_init): Use CONSTANT_P.
21862         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21863         (rs6000_emit_move): Update checks.
21864         (rs6000_aggregate_candidate): Use wide-int interfaces.
21865         (rs6000_expand_ternop_builtin): Likewise.
21866         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21867         (rs6000_assemble_integer): Likewise.
21868         (rs6000_hash_constant): Likewise.
21869         (output_toc): Likewise.
21870         (rs6000_rtx_costs): Likewise.
21871         (rs6000_emit_swrsqrt); Update call to real_from_integer.
21872         * config/rs6000/rs6000-c.c: Include wide-int.h.
21873         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21874         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21875         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21876         Handle CONST_WIDE_INT.
21877         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21878         Use tree_fits_uhwi_p.
21879         * config/sparc/sparc.c: Include wide-int.h.
21880         (sparc_fold_builtin): Use wide-int interfaces.
21881         * config/vax/vax.c: Include wide-int.h.
21882         (vax_float_literal): Use real_from_integer.
21883         * coretypes.h (struct hwivec_def): New.
21884         (hwivec): New.
21885         (const_hwivec): New.
21886         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21887         (equiv_constant): Handle CONST_WIDE_INT.
21888         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21889         (cselib_hash_rtx): Handle CONST_WIDE_INT.
21890         * dbxout.c (stabstr_U): Use wide-int interfaces.
21891         (dbxout_type): Update to use cst_fits_shwi_p.
21892         * defaults.h (LOG2_BITS_PER_UNIT): Define.
21893         (TARGET_SUPPORTS_WIDE_INT): Add default.
21894         * dfp.c: Include wide-int.h.
21895         (decimal_real_to_integer2): Use wide-int interfaces and rename to
21896         decimal_real_to_integer.
21897         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21898         decimal_real_to_integer.
21899         * doc/generic.texi (Constant expressions): Update for wide_int.
21900         * doc/rtl.texi (const_double): Likewise.
21901         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21902         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21903         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21904         (REAL_VALUE_FROM_INT): Remove.
21905         (TARGET_SUPPORTS_WIDE_INT): New.
21906         * doc/tm.texi: Regenerate.
21907         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21908         * double-int.h: Include wide-int.h.
21909         (struct wi::int_traits): New.
21910         * dwarf2out.c (get_full_len): New.
21911         (dw_val_equal_p): Add case dw_val_class_wide_int.
21912         (size_of_loc_descr): Likewise.
21913         (output_loc_operands): Likewise.
21914         (insert_double): Remove.
21915         (insert_wide_int): New.
21916         (add_AT_wide): New.
21917         (print_die): Add case dw_val_class_wide_int.
21918         (attr_checksum): Likewise.
21919         (attr_checksum_ordered): Likewise.
21920         (same_dw_val_p): Likewise.
21921         (size_of_die): Likewise.
21922         (value_format): Likewise.
21923         (output_die): Likewise.
21924         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21925         Use wide-int.
21926         (clz_loc_descriptor): Use wide-int interfaces.
21927         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
21928         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
21929         (round_up_to_align): Use wide-int interfaces.
21930         (field_byte_offset): Likewise.
21931         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
21932         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
21933         CONST_DOUBLE handling.  Use wide-int interfaces.
21934         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
21935         (gen_enumeration_type_die): Use add_AT_wide.
21936         (hash_loc_operands): Add case dw_val_class_wide_int.
21937         (compare_loc_operands): Likewise.
21938         * dwarf2out.h: Include wide-int.h.
21939         (wide_int_ptr): New.
21940         (enum dw_val_class): Add dw_val_class_wide_int.
21941         (struct dw_val_struct): Add val_wide.
21942         * emit-rtl.c (const_wide_int_htab): New.
21943         (const_wide_int_htab_hash): New.
21944         (const_wide_int_htab_eq): New.
21945         (lookup_const_wide_int): New.
21946         (const_double_htab_hash): Use wide-int interfaces.
21947         (const_double_htab_eq): Likewise.
21948         (rtx_to_double_int): Conditionally compile for wide-int.
21949         (immed_double_int_const): Rename to immed_wide_int_const and
21950         update for wide-int.
21951         (immed_double_const): Conditionally compile for wide-int.
21952         (init_emit_once): Use wide-int interfaces.
21953         * explow.c (plus_constant): Likewise.
21954         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
21955         (lshift_value): Use wide-int interfaces.
21956         (expand_mult): Likewise.
21957         (choose_multiplier): Likewise.
21958         (expand_smod_pow2): Likewise.
21959         (make_tree): Likewise.
21960         * expr.c (convert_modes): Consolidate handling of constants.
21961         Use wide-int interfaces.
21962         (emit_group_load_1): Add note.
21963         (store_expr): Update comment.
21964         (get_inner_reference): Use wide-int interfaces.
21965         (expand_constructor): Update comment.
21966         (expand_expr_real_2): Use wide-int interfaces.
21967         (expand_expr_real_1): Likewise.
21968         (reduce_to_bit_field_precision): Likewise.
21969         (const_vector_from_tree): Likewise.
21970         * final.c: Include wide-int-print.h.
21971         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
21972         * fixed-value.c: Include wide-int.h.
21973         (fixed_from_string): Use wide-int interfaces.
21974         (fixed_to_decimal): Likewise.
21975         (fixed_convert_from_real): Likewise.
21976         (real_convert_from_fixed): Likewise.
21977         * fold-const.h (mem_ref_offset): Return an offset_int.
21978         (div_if_zero_remainder): Remove code parameter.
21979         * fold-const.c (div_if_zero_remainder): Remove code parameter.
21980         Use wide-int interfaces.
21981         (may_negate_without_overflow_p): Use wide-int interfaces.
21982         (negate_expr_p): Likewise.
21983         (fold_negate_expr): Likewise.
21984         (int_const_binop_1): Likewise.
21985         (const_binop): Likewise.
21986         (fold_convert_const_int_from_int): Likewise.
21987         (fold_convert_const_int_from_real): Likewise.
21988         (fold_convert_const_int_from_fixed): Likewise.
21989         (fold_convert_const_fixed_from_int): Likewise.
21990         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
21991         (sign_bit_p): Use wide-int interfaces.
21992         (make_range_step): Likewise.
21993         (build_range_check): Likewise.  Pass an integer of the correct type
21994         instead of using integer_one_node.
21995         (range_predecessor): Pass an integer of the correct type instead
21996         of using integer_one_node.
21997         (range_successor): Likewise.
21998         (merge_ranges): Likewise.
21999         (unextend): Use wide-int interfaces.
22000         (extract_muldiv_1): Likewise.
22001         (fold_div_compare): Likewise.
22002         (fold_single_bit_test): Likewise.
22003         (fold_sign_changed_comparison): Likewise.
22004         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
22005         (fold_plusminus_mult_expr): Use wide-int interfaces.
22006         (native_encode_int): Likewise.
22007         (native_interpret_int): Likewise.
22008         (fold_unary_loc): Likewise.
22009         (pointer_may_wrap_p): Likewise.
22010         (size_low_cst): Likewise.
22011         (mask_with_tz): Likewise.
22012         (fold_binary_loc): Likewise.
22013         (fold_ternary_loc): Likewise.
22014         (multiple_of_p): Likewise.
22015         (tree_call_nonnegative_warnv_p): Update calls to
22016         tree_int_cst_min_precision and real_from_integer.
22017         (fold_negate_const): Use wide-int interfaces.
22018         (fold_abs_const): Likewise.
22019         (fold_relational_const): Use tree_int_cst_lt.
22020         (round_up_loc): Use wide-int interfaces.
22021         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
22022         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
22023         * gengtype.c: Remove include of double-int.h.
22024         (do_typedef): Use wide-int interfaces.
22025         (open_base_files): Add wide-int.h.
22026         (main): Add offset_int and widest_int typedefs.
22027         * gengtype-lex.l: Handle "^".
22028         (CXX_KEYWORD): Add "static".
22029         * gengtype-parse.c (require3): New.
22030         (require_template_declaration): Handle constant template arguments
22031         and nested templates.
22032         * gengtype-state.c: Don't include "double-int.h".
22033         * genpreds.c (write_one_predicate_function): Update comment.
22034         (write_tm_constrs_h): Add check for hval and lval use in
22035         CONST_WIDE_INT.
22036         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
22037         (add_to_sequence): Likewise.
22038         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
22039         and const_double_operand.
22040         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
22041         interfaces.
22042         * gimple-fold.c (get_base_constructor): Likewise.
22043         (fold_array_ctor_reference): Likewise.
22044         (fold_nonarray_ctor_reference): Likewise.
22045         (fold_const_aggregate_ref_1): Likewise.
22046         (gimple_val_nonnegative_real_p): Likewise.
22047         (gimple_fold_indirect_ref): Likewise.
22048         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
22049         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
22050         (struct slsr_cand_d): Change index to be widest_int.
22051         (struct incr_info_d): Change incr to be widest_int.
22052         (alloc_cand_and_find_basis): Use wide-int interfaces.
22053         (slsr_process_phi): Likewise.
22054         (backtrace_base_for_ref): Likewise.  Return a widest_int.
22055         (restructure_reference): Take a widest_int instead of a double_int.
22056         (slsr_process_ref): Use wide-int interfaces.
22057         (create_mul_ssa_cand): Likewise.
22058         (create_mul_imm_cand): Likewise.
22059         (create_add_ssa_cand): Likewise.
22060         (create_add_imm_cand): Take a widest_int instead of a double_int.
22061         (slsr_process_add): Use wide-int interfaces.
22062         (slsr_process_cast): Likewise.
22063         (slsr_process_copy): Likewise.
22064         (dump_candidate): Likewise.
22065         (dump_incr_vec): Likewise.
22066         (replace_ref): Likewise.
22067         (cand_increment): Likewise.  Return a widest_int.
22068         (cand_abs_increment): Likewise.
22069         (replace_mult_candidate): Take a widest_int instead of a double_int.
22070         (replace_unconditional_candidate): Use wide-int interfaces.
22071         (incr_vec_index): Take a widest_int instead of a double_int.
22072         (create_add_on_incoming_edge): Likewise.
22073         (create_phi_basis): Use wide-int interfaces.
22074         (replace_conditional_candidate): Likewise.
22075         (record_increment): Take a widest_int instead of a double_int.
22076         (record_phi_increments): Use wide-int interfaces.
22077         (phi_incr_cost): Take a widest_int instead of a double_int.
22078         (lowest_cost_path): Likewise.
22079         (total_savings): Likewise.
22080         (analyze_increments): Use wide-int interfaces.
22081         (ncd_with_phi): Take a widest_int instead of a double_int.
22082         (ncd_of_cand_and_phis): Likewise.
22083         (nearest_common_dominator_for_cands): Likewise.
22084         (insert_initializers): Use wide-int interfaces.
22085         (all_phi_incrs_profitable): Likewise.
22086         (replace_one_candidate): Likewise.
22087         (replace_profitable_candidates): Likewise.
22088         * godump.c: Include wide-int-print.h.
22089         (go_output_typedef): Use wide-int interfaces.
22090         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
22091         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
22092         (build_loop_iteration_domains): Likewise.
22093         * hooks.h: Include wide-int.h rather than double-int.h.
22094         (hook_bool_dint_dint_uint_bool_true): Delete.
22095         (hook_bool_wint_wint_uint_bool_true): Declare.
22096         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
22097         (hook_bool_wint_wint_uint_bool_true): New.
22098         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
22099         interfaces.
22100         (ubsan_expand_si_overflow_mul_check): Likewise.
22101         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
22102         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
22103         (get_ancestor_addr_info): Likewise.
22104         (ipa_modify_call_arguments): Likewise.
22105         * loop-doloop.c (doloop_modify): Likewise.
22106         (doloop_optimize): Likewise.
22107         * loop-iv.c (iv_number_of_iterations): Likewise.
22108         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
22109         (unroll_loop_constant_iterations): Likewise.
22110         (decide_unroll_runtime_iterations): Likewise.
22111         (unroll_loop_runtime_iterations): Likewise.
22112         (decide_peel_simple): Likewise.
22113         (decide_unroll_stupid): Likewise.
22114         * lto-streamer-in.c (streamer_read_wi): Add.
22115         (input_cfg): Use wide-int interfaces.
22116         (lto_input_tree_1): Likewise.
22117         * lto-streamer-out.c (streamer_write_wi): Add.
22118         (hash_tree): Use wide-int interfaces.
22119         (output_cfg): Likewise.
22120         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
22121         (GTFILES): Add wide-int.h and signop.h.
22122         (TAGS): Look for .cc files too.
22123         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
22124         * optabs.c (expand_subword_shift): Likewise.
22125         (expand_doubleword_shift): Likewise.
22126         (expand_absneg_bit): Likewise.
22127         (expand_copysign_absneg): Likewise.
22128         (expand_copysign_bit): Likewise.
22129         * postreload.c (reload_cse_simplify_set): Likewise.
22130         * predict.c (predict_iv_comparison): Likewise.
22131         * pretty-print.h: Include wide-int-print.h.
22132         (pp_wide_int) New.
22133         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
22134         * print-tree.c: Include wide-int-print.h.
22135         (print_node_brief): Use wide-int interfaces.
22136         (print_node): Likewise.
22137         * read-rtl.c (validate_const_wide_int): New.
22138         (read_rtx_code): Add CONST_WIDE_INT case.
22139         * real.c: Include wide-int.h.
22140         (real_to_integer2): Delete.
22141         (real_to_integer): New function, returning a wide_int.
22142         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22143         (ten_to_ptwo): Update call to real_from_integer.
22144         (real_digit): Likewise.
22145         * real.h: Include signop.h, wide-int.h and insn-modes.h.
22146         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
22147         (REAL_VALUE_TO_INT): Delete.
22148         (real_to_integer): Declare a wide-int form.
22149         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22150         * recog.c (const_int_operand): Improve comment.
22151         (const_scalar_int_operand): New.
22152         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
22153         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
22154         (split_double): Likewise.
22155         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
22156         (rtx_size): Likewise.
22157         (rtx_alloc_stat_v): New.
22158         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
22159         (cwi_output_hex): New.
22160         (iterative_hash_rtx): Handle CONST_WIDE_INT.
22161         (cwi_check_failed_bounds): New.
22162         * rtl.def (CONST_WIDE_INT): New.
22163         * rtl.h: Include <utility> and wide-int.h.
22164         (struct hwivec_def): New.
22165         (CWI_GET_NUM_ELEM): New.
22166         (CWI_PUT_NUM_ELEM): New.
22167         (struct rtx_def): Add num_elem and hwiv.
22168         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
22169         (CASE_CONST_UNIQUE): Likewise.
22170         (CASE_CONST_ANY): Likewise.
22171         (CONST_SCALAR_INT_P): Likewise.
22172         (CONST_WIDE_INT_P): New.
22173         (CWI_ELT): New.
22174         (HWIVEC_CHECK): New.
22175         (cwi_check_failed_bounds): New.
22176         (CWI_ELT): New.
22177         (HWIVEC_CHECK): New.
22178         (CONST_WIDE_INT_VEC) New.
22179         (CONST_WIDE_INT_NUNITS) New.
22180         (CONST_WIDE_INT_ELT) New.
22181         (rtx_mode_t): New type.
22182         (wi::int_traits <rtx_mode_t>): New.
22183         (wi::shwi): New.
22184         (wi::min_value): New.
22185         (wi::max_value): New.
22186         (rtx_alloc_v) New.
22187         (const_wide_int_alloc): New.
22188         (immed_wide_int_const): New.
22189         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
22190         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
22191         * signop.h: New file.
22192         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
22193         (simplify_const_unary_operation): Use wide-int interfaces.
22194         (simplify_binary_operation_1): Likewise.
22195         (simplify_const_binary_operation): Likewise.
22196         (simplify_const_relational_operation): Likewise.
22197         (simplify_immed_subreg): Likewise.
22198         * stmt.c (expand_case): Likewise.
22199         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
22200         signop rather than a bool.
22201         * stor-layout.c (layout_type): Use wide-int interfaces.
22202         (initialize_sizetypes): Update calls to
22203         set_min_and_max_values_for_integral_type.
22204         (set_min_and_max_values_for_integral_type): Take a signop rather
22205         than a bool.  Use wide-int interfaces.
22206         (fixup_signed_type): Update accordingly.  Remove
22207         HOST_BITS_PER_DOUBLE_INT limit.
22208         (fixup_unsigned_type): Likewise.
22209         * system.h (STATIC_CONSTANT_P): New.
22210         (STATIC_ASSERT): New.
22211         * target.def (can_use_doloop_p): Take widest_ints rather than
22212         double_ints.
22213         * target.h: Include wide-int.h rather than double-int.h.
22214         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
22215         than double_ints.
22216         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
22217         rather than INT_CST_LT_UNSIGNED.
22218         (can_use_doloop_if_innermost): Take widest_ints rather than
22219         double_ints.
22220         * tree-affine.c: Include wide-int-print.h.
22221         (double_int_ext_for_comb): Delete.
22222         (wide_int_ext_for_comb): New.
22223         (aff_combination_zero): Use wide-int interfaces.
22224         (aff_combination_const): Take a widest_int instead of a double_int.
22225         (aff_combination_elt): Use wide-int interfaces.
22226         (aff_combination_scale): Take a widest_int instead of a double_int.
22227         (aff_combination_add_elt): Likewise.
22228         (aff_combination_add_cst): Likewise.
22229         (aff_combination_add): Use wide-int interfaces.
22230         (aff_combination_convert): Likewise.
22231         (tree_to_aff_combination): Likewise.
22232         (add_elt_to_tree): Take a widest_int instead of a double_int.
22233         (aff_combination_to_tree): Use wide-int interfaces.
22234         (aff_combination_remove_elt): Likewise.
22235         (aff_combination_add_product): Take a widest_int instead of
22236         a double_int.
22237         (aff_combination_mult): Use wide-int interfaces.
22238         (aff_combination_expand): Likewise.
22239         (double_int_constant_multiple_p): Delete.
22240         (wide_int_constant_multiple_p): New.
22241         (aff_combination_constant_multiple_p): Take a widest_int pointer
22242         instead of a double_int pointer.
22243         (print_aff): Use wide-int interfaces.
22244         (get_inner_reference_aff): Take a widest_int pointer
22245         instead of a double_int pointer.
22246         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
22247         * tree-affine.h: Include wide-int.h.
22248         (struct aff_comb_elt): Change type of coef to widest_int.
22249         (struct affine_tree_combination): Change type of offset to widest_int.
22250         (double_int_ext_for_comb): Delete.
22251         (wide_int_ext_for_comb): New.
22252         (aff_combination_const): Use widest_int instead of double_int.
22253         (aff_combination_scale): Likewise.
22254         (aff_combination_add_elt): Likewise.
22255         (aff_combination_constant_multiple_p): Likewise.
22256         (get_inner_reference_aff): Likewise.
22257         (aff_comb_cannot_overlap_p): Likewise.
22258         (aff_combination_zero_p): Use wide-int interfaces.
22259         * tree.c: Include tree.h.
22260         (init_ttree): Use make_int_cst.
22261         (tree_code_size): Removed code for INTEGER_CST case.
22262         (tree_size): Add INTEGER_CST case.
22263         (make_node_stat): Update comment.
22264         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
22265         (build_int_cst_type): Use wide-int interfaces.
22266         (double_int_to_tree): Likewise.
22267         (double_int_fits_to_tree_p): Delete.
22268         (force_fit_type_double): Delete.
22269         (force_fit_type): New.
22270         (int_cst_hash_hash): Use wide-int interfaces.
22271         (int_cst_hash_eq): Likewise.
22272         (build_int_cst_wide): Delete.
22273         (wide_int_to_tree): New.
22274         (cache_integer_cst): Use wide-int interfaces.
22275         (build_low_bits_mask): Likewise.
22276         (cst_and_fits_in_hwi): Likewise.
22277         (real_value_from_int_cst): Likewise.
22278         (make_int_cst_stat): New.
22279         (integer_zerop): Use wide_int interfaces.
22280         (integer_onep): Likewise.
22281         (integer_all_onesp): Likewise.
22282         (integer_pow2p): Likewise.
22283         (integer_nonzerop): Likewise.
22284         (tree_log2): Likewise.
22285         (tree_floor_log2): Likewise.
22286         (tree_ctz): Likewise.
22287         (int_size_in_bytes): Likewise.
22288         (mem_ref_offset): Return an offset_int rather than a double_int.
22289         (build_type_attribute_qual_variant): Use wide_int interfaces.
22290         (type_hash_eq): Likewise
22291         (tree_int_cst_equal): Likewise.
22292         (tree_int_cst_lt): Delete.
22293         (tree_int_cst_compare): Likewise.
22294         (tree_fits_shwi_p): Use wide_int interfaces.
22295         (tree_fits_uhwi_p): Likewise.
22296         (tree_int_cst_sign_bit): Likewise.
22297         (tree_int_cst_sgn): Likewise.
22298         (tree_int_cst_min_precision): Take a signop rather than a bool.
22299         (simple_cst_equal): Use wide_int interfaces.
22300         (compare_tree_int): Likewise.
22301         (iterative_hash_expr): Likewise.
22302         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
22303         INT_CST_LT.
22304         (get_type_static_bounds): Use wide_int interfaces.
22305         (tree_int_cst_elt_check_failed): New.
22306         (build_common_tree_nodes): Reordered to set prec before filling in
22307         value.
22308         (int_cst_value): Check cst_and_fits_in_hwi.
22309         (widest_int_cst_value): Use wide_int interfaces.
22310         (upper_bound_in_type): Likewise.
22311         (lower_bound_in_type): Likewise.
22312         (num_ending_zeros): Likewise.
22313         (drop_tree_overflow): Likewise.
22314         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
22315         (gen_conditions_for_pow_cst_base): Likewise.
22316         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
22317         (group_case_labels_stmt): Use wide-int interfaces.
22318         (verify_gimple_assign_binary): Likewise.
22319         (print_loop): Likewise.
22320         * tree-chrec.c (tree_fold_binomial): Likewise.
22321         * tree-core.h (struct tree_base): Add int_length.
22322         (struct tree_int_cst): Change rep of value.
22323         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
22324         (dr_may_alias_p): Likewise.
22325         (max_stmt_executions_tree): Likewise.
22326         * tree.def (INTEGER_CST): Update comment.
22327         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
22328         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
22329         * tree-dump.c: Include wide-int.h and wide-int-print.h.
22330         (dequeue_and_dump): Use wide-int interfaces.
22331         * tree.h: Include wide-int.h.
22332         (NULL_TREE): Moved to earlier loc in file.
22333         (TREE_INT_CST_ELT_CHECK): New.
22334         (tree_int_cst_elt_check_failed): New.
22335         (TYPE_SIGN): New.
22336         (TREE_INT_CST): Delete.
22337         (TREE_INT_CST_LOW): Use wide-int interfaces.
22338         (TREE_INT_CST_HIGH): Delete.
22339         (TREE_INT_CST_NUNITS): New.
22340         (TREE_INT_CST_EXT_NUNITS): Likewise.
22341         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
22342         (TREE_INT_CST_ELT): Likewise.
22343         (INT_CST_LT): Delete.
22344         (tree_int_cst_elt_check): New (two forms).
22345         (type_code_size): Update comment.
22346         (make_int_cst_stat, make_int_cst): New.
22347         (tree_to_double_int): Delete.
22348         (double_int_fits_to_tree_p): Delete.
22349         (force_fit_type_double): Delete.
22350         (build_int_cstu): Replace with out-of-line function.
22351         (build_int_cst_wide): Delete.
22352         (tree_int_cst_lt): Define inline.
22353         (tree_int_cst_le): New.
22354         (tree_int_cst_compare): Define inline.
22355         (tree_int_cst_min_precision): Take a signop rather than a bool.
22356         (wi::int_traits <const_tree>): New.
22357         (wi::int_traits <tree>): New.
22358         (wi::extended_tree): New.
22359         (wi::int_traits <wi::extended_tree>): New.
22360         (wi::to_widest): New.
22361         (wi::to_offset): New.
22362         (wi::fits_to_tree_p): New.
22363         (wi::min_value): New.
22364         (wi::max_value): New.
22365         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
22366         (copy_tree_body_r): Likewise.
22367         * tree-object-size.c (compute_object_offset): Likewise.
22368         (addr_object_size): Likewise.
22369         * tree-predcom.c: Include wide-int-print.h.
22370         (struct dref_d): Change type of offset to widest_int.
22371         (dump_dref): Call wide-int printer.
22372         (aff_combination_dr_offset): Use wide-int interfaces.
22373         (determine_offset): Take a widest_int pointer rather than a
22374         double_int pointer.
22375         (split_data_refs_to_components): Use wide-int interfaces.
22376         (suitable_component_p): Likewise.
22377         (order_drefs): Likewise.
22378         (add_ref_to_chain): Likewise.
22379         (valid_initializer_p): Likewise.
22380         (determine_roots_comp): Likewise.
22381         * tree-pretty-print.c: Include wide-int-print.h.
22382         (dump_generic_node): Use wide-int interfaces.
22383         * tree-sra.c (sra_ipa_modify_expr): Likewise.
22384         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
22385         (move_fixed_address_to_symbol): Likewise.
22386         (move_hint_to_base): Likewise.
22387         (move_pointer_to_base): Likewise.
22388         (move_variant_to_index): Likewise.
22389         (most_expensive_mult_to_index): Likewise.
22390         (addr_to_parts): Likewise.
22391         (copy_ref_info): Likewise.
22392         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22393         (indirect_refs_may_alias_p): Likewise.
22394         (stmt_kills_ref_p_1): Likewise.
22395         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
22396         * tree-ssa-ccp.c: Update comment at top of file.  Include
22397         wide-int-print.h.
22398         (struct prop_value_d): Change type of mask to widest_int.
22399         (extend_mask): New function.
22400         (dump_lattice_value): Use wide-int interfaces.
22401         (get_default_value): Likewise.
22402         (set_constant_value): Likewise.
22403         (set_value_varying): Likewise.
22404         (valid_lattice_transition): Likewise.
22405         (set_lattice_value): Likewise.
22406         (value_to_double_int): Delete.
22407         (value_to_wide_int): New.
22408         (get_value_from_alignment): Use wide-int interfaces.
22409         (get_value_for_expr): Likewise.
22410         (do_dbg_cnt): Likewise.
22411         (ccp_finalize): Likewise.
22412         (ccp_lattice_meet): Likewise.
22413         (bit_value_unop_1): Use widest_ints rather than double_ints.
22414         (bit_value_binop_1): Likewise.
22415         (bit_value_unop): Use wide-int interfaces.
22416         (bit_value_binop): Likewise.
22417         (bit_value_assume_aligned): Likewise.
22418         (evaluate_stmt): Likewise.
22419         (ccp_fold_stmt): Likewise.
22420         (visit_cond_stmt): Likewise.
22421         (ccp_visit_stmt): Likewise.
22422         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22423         (constant_pointer_difference): Likewise.
22424         (associate_pointerplus): Likewise.
22425         (combine_conversions): Likewise.
22426         * tree-ssa-loop.h: Include wide-int.h.
22427         (struct tree_niter_desc): Change type of max to widest_int.
22428         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
22429         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
22430         (remove_redundant_iv_tests): Likewise.
22431         (canonicalize_loop_induction_variables): Likewise.
22432         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
22433         (constant_multiple_of): Take a widest_int pointer instead of
22434         a double_int pointer.
22435         (get_computation_aff): Use wide-int interfaces.
22436         (ptr_difference_cost): Likewise.
22437         (difference_cost): Likewise.
22438         (get_loop_invariant_expr_id): Likewise.
22439         (get_computation_cost_at): Likewise.
22440         (iv_elimination_compare_lt): Likewise.
22441         (may_eliminate_iv): Likewise.
22442         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
22443         instead of double_int.
22444         (max_loop_iterations): Likewise.
22445         (max_stmt_executions): Likewise.
22446         (estimated_stmt_executions): Likewise.
22447         * tree-ssa-loop-niter.c: Include wide-int-print.h.
22448         (split_to_var_and_offset): Use wide-int interfaces.
22449         (determine_value_range): Likewise.
22450         (bound_difference_of_offsetted_base): Likewise.
22451         (bounds_add): Take a widest_int instead of a double_int.
22452         (number_of_iterations_ne_max): Use wide-int interfaces.
22453         (number_of_iterations_ne): Likewise.
22454         (number_of_iterations_lt_to_ne): Likewise.
22455         (assert_loop_rolls_lt): Likewise.
22456         (number_of_iterations_lt): Likewise.
22457         (number_of_iterations_le): Likewise.
22458         (number_of_iterations_cond): Likewise.
22459         (number_of_iterations_exit): Likewise.
22460         (finite_loop_p): Likewise.
22461         (derive_constant_upper_bound_assign): Likewise.
22462         (derive_constant_upper_bound): Return a widest_int.
22463         (derive_constant_upper_bound_ops): Likewise.
22464         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
22465         (record_estimate): Take a widest_int rather than a double_int.
22466         (record_nonwrapping_iv): Use wide-int interfaces.
22467         (double_int_cmp): Delete.
22468         (wide_int_cmp): New.
22469         (bound_index): Take a widest_int rather than a double_int.
22470         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
22471         (maybe_lower_iteration_bound): Likewise.
22472         (estimate_numbers_of_iterations_loop): Likewise.
22473         (estimated_loop_iterations): Take a widest_int pointer than than
22474         a double_int pointer.
22475         (estimated_loop_iterations_int): Use wide-int interfaces.
22476         (max_loop_iterations): Take a widest_int pointer than than
22477         a double_int pointer.
22478         (max_loop_iterations_int): Use wide-int interfaces.
22479         (max_stmt_executions): Take a widest_int pointer than than
22480         a double_int pointer.
22481         (estimated_stmt_executions): Likewise.
22482         (n_of_executions_at_most): Use wide-int interfaces.
22483         (scev_probably_wraps_p): Likewise.
22484         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
22485         to real_to_integer.
22486         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
22487         interfaces.
22488         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
22489         double_ints.  Adjust for trailing_wide_ints <3> representation.
22490         (set_nonzero_bits): Likewise.
22491         (get_range_info): Return wide_ints rather than double_ints.
22492         Adjust for trailing_wide_ints <3> representation.
22493         (get_nonzero_bits): Likewise.
22494         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
22495         representation.
22496         * tree-ssanames.h (struct range_info_def): Replace min, max and
22497         nonzero_bits with a trailing_wide_ints <3>.
22498         (set_range_info): Use wide_int_refs rather than double_ints.
22499         (set_nonzero_bits): Likewise.
22500         (get_range_info): Return wide_ints rather than double_ints.
22501         (get_nonzero_bits): Likewise.
22502         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
22503         * tree-ssa-pre.c (phi_translate_1): Likewise.
22504         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
22505         (acceptable_pow_call): Likewise.
22506         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
22507         interfaces.
22508         (vn_reference_fold_indirect): Likewise.
22509         (vn_reference_maybe_forwprop_address): Likewise.
22510         (valueize_refs_1): Likewise.
22511         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
22512         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
22513         tree_int_cst_lt and tree_int_cst_le.
22514         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
22515         interfaces.
22516         (streamer_alloc_tree): Likewise.
22517         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
22518         (streamer_write_tree_header): Likewise.
22519         (streamer_write_integer_cst): Likewise.
22520         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22521         (build_constructors): Likewise.
22522         (array_value_type): Likewise.
22523         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
22524         (vect_check_gather): Likewise.
22525         * tree-vect-generic.c (build_replicated_const): Likewise.
22526         (expand_vector_divmod): Likewise.
22527         * tree-vect-loop.c (vect_transform_loop): Likewise.
22528         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
22529         (vect_do_peeling_for_alignment): Likewise.
22530         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
22531         * tree-vrp.c: Include wide-int.h.
22532         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
22533         (extract_range_from_assert): Use wide-int interfaces.
22534         (vrp_int_const_binop): Likewise.
22535         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
22536         double_int pointers.
22537         (ranges_from_anti_range): Use wide-int interfaces.
22538         (quad_int_cmp): Delete.
22539         (quad_int_pair_sort): Likewise.
22540         (extract_range_from_binary_expr_1): Use wide-int interfaces.
22541         (extract_range_from_unary_expr_1): Likewise.
22542         (adjust_range_with_scev): Likewise.
22543         (masked_increment): Take and return wide_ints rather than double_ints.
22544         (register_edge_assert_for_2): Use wide-int interfaces.
22545         (check_array_ref): Likewise.
22546         (search_for_addr_array): Likewise.
22547         (maybe_set_nonzero_bits): Likewise.
22548         (union_ranges): Pass an integer of the correct type instead of
22549         using integer_one_node.
22550         (intersect_ranges): Likewise.
22551         (simplify_truth_ops_using_ranges): Likewise.
22552         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
22553         (range_fits_type_p): Likewise.
22554         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
22555         a bool.
22556         (simplify_conversion_using_ranges): Use wide-int interfaces.
22557         (simplify_float_conversion_using_ranges): Likewise.
22558         (vrp_finalize): Likewise.
22559         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
22560         (gimple_stringops_transform): Likewise.
22561         * varasm.c (decode_addr_const): Likewise.
22562         (const_hash_1): Likewise.
22563         (const_rtx_hash_1): Likewise
22564         (output_constant): Likewise.
22565         (array_size_for_constructor): Likewise.
22566         (output_constructor_regular_field): Likewise.
22567         (output_constructor_bitfield): Likewise.
22568         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
22569         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
22570         GENERATOR_FILEs.
22571         * gencheck.c: Define BITS_PER_UNIT.
22572         * wide-int.cc: New.
22573         * wide-int.h: New.
22574         * wide-int-print.cc: New.
22575         * wide-int-print.h: New.
22576
22577 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22578
22579         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
22580
22581 2014-05-06  Richard Biener  <rguenther@suse.de>
22582
22583         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22584         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22585         (TODO_verify_all): Adjust.
22586         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22587         TODO_verify_stmts and TODO_verify_rtl_sharing.
22588         * bb-reorder.c: Likewise.
22589         * cfgexpand.c: Likewise.
22590         * cprop.c: Likewise.
22591         * cse.c: Likewise.
22592         * function.c: Likewise.
22593         * fwprop.c: Likewise.
22594         * gcse.c: Likewise.
22595         * gimple-ssa-isolate-paths.c: Likewise.
22596         * gimple-ssa-strength-reduction.c: Likewise.
22597         * ipa-split.c: Likewise.
22598         * loop-init.c: Likewise.
22599         * loop-unroll.c: Likewise.
22600         * lower-subreg.c: Likewise.
22601         * modulo-sched.c: Likewise.
22602         * postreload-gcse.c: Likewise.
22603         * predict.c: Likewise.
22604         * recog.c: Likewise.
22605         * sched-rgn.c: Likewise.
22606         * store-motion.c: Likewise.
22607         * tracer.c: Likewise.
22608         * trans-mem.c: Likewise.
22609         * tree-call-cdce.c: Likewise.
22610         * tree-cfg.c: Likewise.
22611         * tree-cfgcleanup.c: Likewise.
22612         * tree-complex.c: Likewise.
22613         * tree-eh.c: Likewise.
22614         * tree-emutls.c: Likewise.
22615         * tree-if-conv.c: Likewise.
22616         * tree-into-ssa.c: Likewise.
22617         * tree-loop-distribution.c: Likewise.
22618         * tree-object-size.c: Likewise.
22619         * tree-parloops.c: Likewise.
22620         * tree-pass.h: Likewise.
22621         * tree-sra.c: Likewise.
22622         * tree-ssa-ccp.c: Likewise.
22623         * tree-ssa-copy.c: Likewise.
22624         * tree-ssa-copyrename.c: Likewise.
22625         * tree-ssa-dce.c: Likewise.
22626         * tree-ssa-dom.c: Likewise.
22627         * tree-ssa-dse.c: Likewise.
22628         * tree-ssa-forwprop.c: Likewise.
22629         * tree-ssa-ifcombine.c: Likewise.
22630         * tree-ssa-loop-ch.c: Likewise.
22631         * tree-ssa-loop-ivcanon.c: Likewise.
22632         * tree-ssa-loop.c: Likewise.
22633         * tree-ssa-math-opts.c: Likewise.
22634         * tree-ssa-phiopt.c: Likewise.
22635         * tree-ssa-phiprop.c: Likewise.
22636         * tree-ssa-pre.c: Likewise.
22637         * tree-ssa-reassoc.c: Likewise.
22638         * tree-ssa-sink.c: Likewise.
22639         * tree-ssa-strlen.c: Likewise.
22640         * tree-ssa-tail-merge.c: Likewise.
22641         * tree-ssa-uncprop.c: Likewise.
22642         * tree-switch-conversion.c: Likewise.
22643         * tree-tailcall.c: Likewise.
22644         * tree-vect-generic.c: Likewise.
22645         * tree-vectorizer.c: Likewise.
22646         * tree-vrp.c: Likewise.
22647         * tsan.c: Likewise.
22648         * var-tracking.c: Likewise.
22649         * bt-load.c: Likewise.
22650         * cfgcleanup.c: Likewise.
22651         * combine-stack-adj.c: Likewise.
22652         * combine.c: Likewise.
22653         * compare-elim.c: Likewise.
22654         * config/epiphany/resolve-sw-modes.c: Likewise.
22655         * config/i386/i386.c: Likewise.
22656         * config/mips/mips.c: Likewise.
22657         * config/s390/s390.c: Likewise.
22658         * config/sh/sh_treg_combine.cc: Likewise.
22659         * config/sparc/sparc.c: Likewise.
22660         * dce.c: Likewise.
22661         * dse.c: Likewise.
22662         * final.c: Likewise.
22663         * ifcvt.c: Likewise.
22664         * mode-switching.c: Likewise.
22665         * passes.c: Likewise.
22666         * postreload.c: Likewise.
22667         * ree.c: Likewise.
22668         * reg-stack.c: Likewise.
22669         * regcprop.c: Likewise.
22670         * regrename.c: Likewise.
22671         * web.c: Likewise.
22672
22673 2014-05-06  Richard Biener  <rguenther@suse.de>
22674
22675         PR middle-end/61070
22676         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22677         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22678
22679 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
22680
22681         PR ipa/60965
22682         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22683
22684 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
22685             Tom de Vries  <tom@codesourcery.com>
22686
22687         * target.def (call_fusage_contains_non_callee_clobbers): New
22688         DEFHOOKPOD.
22689         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22690         Hooks to @menu.
22691         (@node Miscellaneous Register Hooks): New node.
22692         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22693         * doc/tm.texi: Regenerate.
22694
22695 2014-05-05  Marek Polacek  <polacek@redhat.com>
22696
22697         PR driver/61065
22698         * opts.c (common_handle_option): Call error_at instead of warning_at.
22699
22700 2014-05-05  Richard Biener  <rguenther@suse.de>
22701
22702         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22703         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
22704         under the TODO_verify_il umbrella.
22705
22706 2014-05-05  Richard Biener  <rguenther@suse.de>
22707
22708         * passes.c (execute_function_todo): Move TODO_verify_flow under
22709         the TODO_verify_ul umbrella.
22710
22711 2014-05-05  Richard Biener  <rguenther@suse.de>
22712
22713         PR middle-end/61010
22714         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22715         X & CST away from a CST that is the mask of a mode.
22716
22717 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22718
22719         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22720         int argument to enum machine_mode.
22721         (picochip_class_max_nregs): Ditto.
22722         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22723         (picochip_class_max_nregs): Ditto.
22724
22725 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22726
22727         * target.def: Add new target hook.
22728         * doc/tm.texi: Regenerate.
22729         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22730         * targhooks.c (default_keep_leaf_when_profiled): New function.
22731
22732         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22733         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22734
22735 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
22736
22737         PR tree-optimization/60363
22738         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22739         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
22740         (update_destination_phis): New parameter.
22741         (create_edge_and_update_destination_phis): Ditto.
22742         (ssa_fix_duplicate_block_edges): Pass new arguments.
22743         (thread_single_edge): Ditto.
22744
22745 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
22746
22747         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22748         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22749         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22750         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22751         Use RS6000_BTM_HARD_FLOAT.
22752         (BU_MISC_2): Likewise.
22753         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22754         RS6000_BTM_HARD_FLOAT.
22755         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22756         is explicitly used.
22757         (rs6000_invalid_builtin): Add hard floating builtin support.
22758         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22759         hard float builtins.
22760         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22761
22762 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22763
22764         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22765         Add missing function* argument.
22766
22767 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22768
22769         * lra-constraints.c (valid_address_p): Move earlier in file.
22770         Add a constraint argument to the address_info version.
22771         (satisfies_memory_constraint_p): New function.
22772         (satisfies_address_constraint_p): Likewise.
22773         (process_alt_operands, curr_insn_transform): Use them.
22774         (process_address): Pass the constraint to valid_address_p when
22775         checking address operands.
22776
22777 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22778
22779         * config/mips/mips.c (mips_isa_rev): New variable.
22780         (mips_set_architecture): Set it.
22781         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22782         from mips_isa_rev.
22783         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22784         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22785         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22786         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22787         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22788         conditions in terms of mips_isa_rev.
22789         (mips_isa_rev): Declare.
22790
22791 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22792
22793         * config/sh/sh-mem.cc: Use tabs instead of spaces.
22794         (prob_unlikely, prob_likely): Make variables const.
22795
22796 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
22797
22798         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22799
22800 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22801
22802         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22803
22804 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22805
22806         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22807         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22808         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22809         functions.
22810         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22811         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22812         sh_pass_in_reg_p.
22813         Replace usage of ROUND_REG with sh_round_reg.
22814         Use CEIL instead of ROUND_ADVANCE.
22815
22816 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22817
22818         PR target/61026
22819         * config/sh/sh.c: Include stdlib headers before everything else.
22820
22821 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
22822
22823         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22824         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22825         (gimplify_adjust_omp_clauses): Simd region is never
22826         directly nested in combined parallel.  Instead, for linear
22827         with copyin/copyout, if in combined for simd loop, make decl
22828         firstprivate/lastprivate on OMP_FOR.
22829         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22830         expand_omp_for_static_chunk): When setting endvar, also set
22831         fd->loop.v to the same value.
22832
22833 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22834
22835         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22836
22837 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
22838
22839         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22840         expression.
22841
22842 2014-05-02  Marek Polacek  <polacek@redhat.com>
22843
22844         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22845
22846 2014-05-02  Kito Cheng  <kito@0xlab.org>
22847
22848         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22849         to a C expression marco.
22850         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22851         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22852         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22853         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22854         HONOR_REG_ALLOC_ORDER.
22855         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22856
22857 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22858
22859         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22860
22861 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22862
22863         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22864
22865 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
22866
22867         * tree-if-conv.c (is_cond_scalar_reduction): New function.
22868         (convert_scalar_cond_reduction): Likewise.
22869         (predicate_scalar_phi): Add recognition and transformation
22870         of simple conditioanl reduction to be vectorizable.
22871
22872 2014-05-01  Marek Polacek  <polacek@redhat.com>
22873
22874         PR c/43245
22875         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22876
22877 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
22878
22879         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22880         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22881         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22882         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22883         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22884         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22885         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22886         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22887
22888 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
22889
22890         * config/arc/arc.opt (mlra): Move comment above option name
22891         to avoid mis-parsing as language options.
22892
22893 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22894
22895         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22896         * config/sol2.h: ... here.
22897         * config/sol2-10.h: Remove.
22898
22899         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22900         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22901         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22902         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22903         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22904         * config/sol2.h: ... here.
22905         (SECTION_NAME_FORMAT): Don't redefine.
22906         (STARTFILE_ARCH32_SPEC): Rename to ...
22907         (STARTFILE_ARCH_SPEC): ... this.
22908         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22909         * config/sparc/sol2.h: ... here.
22910         (SECTION_NAME_FORMAT): Don't undef.
22911         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22912         (SUBTARGET_EXTRA_SPECS): Remove.
22913         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22914
22915         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22916         (MD_STARTFILE_PREFIX): Remove.
22917         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22918         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22919         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22920         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22921         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22922         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22923         * config/i386/sol2.h: ... here.
22924         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22925         * config/i386/sol2-bi.h: Remove.
22926         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22927         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22928
22929         * config/i386/t-sol2-64: Rename to ...
22930         * config/i386/t-sol2: ... this.
22931         * config/sparc/t-sol2-64: Rename to ...
22932         * config/sparc/t-sol2: ... this.
22933
22934         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22935         sol2_tm_file_head, sol2_tm_file_tail.
22936         Include ${cpu_type}/sol2.h before sol2.h.
22937         Remove sol2-10.h.
22938         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22939         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22940         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22941         Reflect i386/t-sol2-64 renaming.
22942         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22943         Reflect sparc/t-sol2-64 renaming.
22944
22945 2014-04-30  Richard Biener  <rguenther@suse.de>
22946
22947         * passes.c (execute_function_todo): Move TODO_verify_stmts
22948         and TODO_verify_ssa under the TODO_verify_il umbrella.
22949         * tree-ssa.h (verify_ssa): Adjust prototype.
22950         * tree-ssa.c (verify_ssa): Add parameter to tell whether
22951         we should verify SSA operands.
22952         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22953         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22954         whether we should verify whether not throwing stmts have EH info.
22955         * graphite-scop-detection.c (create_sese_edges): Adjust.
22956         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22957         * tree-eh.c (lower_try_finally_switch): Do not add the
22958         default case label twice.
22959
22960 2014-04-30  Marek Polacek  <polacek@redhat.com>
22961
22962         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22963         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22964         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22965         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22966
22967 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22968
22969         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22970         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22971         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22972         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22973         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22974         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22975         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22976         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22977
22978 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
22979
22980         * tree-cfg.c (dump_function_to_file): Dump the return type of
22981         functions, in a line to itself before the function body, mimicking
22982         the layout of a C function.
22983
22984 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
22985
22986         PR tree-optimization/60971
22987         * tree-tailcall.c (process_assignment): Reject conversions which
22988         reduce precision.
22989
22990 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22991
22992         * calls.c (initialize_argument_information): Always treat
22993         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22994         (expand_call): Likewise.
22995         (emit_library_call_calue_1): Likewise.
22996         * expr.c (PUSH_ARGS_REVERSED): Do not define.
22997         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22998         code accordingly.
22999
23000 2014-04-29  Nick Clifton  <nickc@redhat.com>
23001
23002         * config/msp430/msp430.md (umulsidi): Fix typo.
23003         (mulhisi3): Enable even inside interrupt handlers.
23004         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
23005         bigger return address pushed in large mode.
23006
23007 2014-04-29  Nick Clifton  <nickc@redhat.com>
23008
23009         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
23010         (arc_init_reg_tables): Use a machine_mode enum to iterate over
23011         available modes.
23012         * config/m32r/m32r.c (init_reg_tables): Likewise.
23013         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
23014         enum to hold the modes.
23015
23016 2014-04-29  Richard Biener  <rguenther@suse.de>
23017
23018         * dominance.c (free_dominance_info): Add overload with
23019         function parameter.
23020         (dom_info_state): Likewise.
23021         (dom_info_available_p): Likewise.
23022         * basic-block.h (free_dominance_info, dom_info_state,
23023         dom_info_available_p): Declare overloads.
23024         * passes.c (execute_function_todo): Verify that verifiers
23025         don't change dominator info state.  Drop dominator info
23026         for IPA pass invocations.
23027         * cgraph.c (release_function_body): Restore asserts that
23028         dominator information is released.
23029
23030 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
23031
23032         * doc/invoke.texi: Fix typo.
23033         * tree-vrp.c: Fix typos.
23034         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
23035
23036 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23037
23038         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
23039
23040 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
23041
23042         * config/aarch64/aarch64-builtins.c
23043         (aarch64_types_storestruct_lane_qualifiers): New.
23044         (TYPES_STORESTRUCT_LANE): Likewise.
23045         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
23046         (st3_lane): Likewise.
23047         (st4_lane): Likewise.
23048         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
23049         (vec_store_lanesci_lane<mode>): Likewise.
23050         (vec_store_lanesxi_lane<mode>): Likewise.
23051         (aarch64_st2_lane<VQ:mode>): Likewise.
23052         (aarch64_st3_lane<VQ:mode>): Likewise.
23053         (aarch64_st4_lane<VQ:mode>): Likewise.
23054         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
23055         * config/aarch64/arm_neon.h
23056         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
23057         use new macro arguments.
23058         (__ST3_LANE_FUNC): Likewise.
23059         (__ST4_LANE_FUNC): Likewise.
23060         * config/aarch64/iterators.md (V_TWO_ELEM): New.
23061         (V_THREE_ELEM): Likewise.
23062         (V_FOUR_ELEM): Likewise.
23063
23064 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
23065
23066         * doc/gimple.texi: Replace the description of the now-defunct
23067         union gimple_statement_d with a diagram showing the
23068         gimple_statement_base class hierarchy and its relationships to
23069         the GSS_ and GIMPLE_ enums.
23070
23071 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
23072
23073         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
23074         * config/aarch64/aarch64.c
23075         (aarch64_cannot_change_mode_class): Weaken conditions.
23076         (aarch64_modes_tieable_p): New.
23077         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
23078
23079 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
23080
23081         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23082         (loadsync_<mode>): Change mode.
23083         (load_quadpti, store_quadpti): New.
23084         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23085         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23086
23087 2014-04-28  Martin Jambor  <mjambor@suse.cz>
23088
23089         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
23090         same alias type as the original statement.
23091         (subreplacement_assignment_data): New type.
23092         (handle_unscalarized_data_in_subtree): New type of parameter,
23093         generate new memory accesses with same alias type as the original
23094         statement.
23095         (load_assign_lhs_subreplacements): Likewise.
23096         (sra_modify_constructor_assign): Generate new memory accesses with
23097         same alias type as the original statement.
23098
23099 2014-04-28  Richard Biener  <rguenther@suse.de>
23100
23101         * tree-pass.h (TODO_verify_il): Define.
23102         (TODO_verify_all): Complete properly.
23103         * passes.c (execute_function_todo): Move existing loop-closed
23104         SSA verification under TODO_verify_il.
23105         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
23106         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
23107         Fix tree sharing issue.
23108
23109 2014-04-28  Richard Biener  <rguenther@suse.de>
23110
23111         PR middle-end/60092
23112         * builtins.def (DEF_C11_BUILTIN): Add.
23113         (BUILT_IN_ALIGNED_ALLOC): Likewise.
23114         * coretypes.h (enum function_class): Add function_c11_misc.
23115         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23116         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
23117         (call_may_clobber_ref_p_1): Likewise.
23118         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23119         (mark_all_reaching_defs_necessary_1): Likewise.
23120         (propagate_necessity): Likewise.
23121         (eliminate_unnecessary_stmts): Likewise.
23122         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
23123
23124 2014-04-28  Richard Biener  <rguenther@suse.de>
23125
23126         * tree-vrp.c (vrp_var_may_overflow): Remove.
23127         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
23128         with overflow immediately bump to one before that value and
23129         let iteration figure out overflow status.
23130
23131 2014-04-28  Richard Biener  <rguenther@suse.de>
23132
23133         * configure.ac: Do valgrind header checks unconditionally.
23134         Add --enable-valgrind-annotations.
23135         * system.h: Guard valgrind header inclusion with
23136         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
23137         * alloc-pool.c (pool_alloc, pool_free): Use
23138         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
23139         to guard possibly dead code.
23140         * config.in: Regenerated.
23141         * configure: Likewise.
23142
23143 2014-04-28  Jeff Law  <law@redhat.com>
23144
23145         PR tree-optimization/60902
23146         * tree-ssa-threadedge.c
23147         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
23148         over real defs when invalidating outputs from statements that do not
23149         produce useful outputs for threading.
23150
23151 2014-04-28  Richard Biener  <rguenther@suse.de>
23152
23153         PR tree-optimization/60979
23154         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
23155         SCOPs that end in a block with a successor with abnormal
23156         predecessors.
23157
23158 2014-04-28  Richard Biener  <rguenther@suse.de>
23159
23160         * tree-pass.h (execute_pass_list): Adjust prototype.
23161         * passes.c (pass_manager::execute_early_local_passes): Adjust.
23162         (do_per_function): Change callback signature, push all actual
23163         work to the callbals.
23164         (do_per_function_toporder): Likewise.
23165         (execute_function_dump): Adjust.
23166         (execute_function_todo): Likewise.
23167         (clear_last_verified): Likewise.
23168         (verify_curr_properties): Likewise.
23169         (update_properties_after_pass): Likewise.
23170         (execute_pass_list_1): Split out from ...
23171         (execute_pass_list): ... here.  Adjust.
23172         (execute_ipa_pass_list): Likewise.
23173         * cgraphunit.c (cgraph_add_new_function): Adjust.
23174         (analyze_function): Likewise.
23175         (expand_function): Likewise.
23176         * cgraph.c (release_function_body): Free dominance info
23177         here instead of asserting it was magically freed elsewhere.
23178
23179 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
23180
23181         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
23182         * configure: Regenerate.
23183         * config/sparc/sparc.opt (muser-mode): New option.
23184         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
23185         for LEON3.
23186         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
23187         * doc/invoke.texi (SPARC options): Document -muser-mode.
23188
23189 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
23190
23191         * cselib.c (find_slot_memmode): Delete.
23192         (cselib_hasher): Change compare_type to a struct.
23193         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
23194         constants.
23195         (preserve_constants_and_equivs): Adjust for new compare_type.
23196         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
23197         (wrap_constant): Delete.
23198         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
23199
23200 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
23201
23202         * doc/install.texi (Building with profile feedback): Remove
23203         outdated sentence.
23204
23205 2014-04-26  Tom de Vries  <tom@codesourcery.com>
23206
23207         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
23208         array accesses.
23209
23210 2014-04-25  Cary Coutant  <ccoutant@google.com>
23211
23212         PR debug/60929
23213         * dwarf2out.c (should_move_die_to_comdat): A type definition
23214         can contain a subprogram definition, but don't move it to a
23215         comdat unit.
23216         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
23217         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
23218         from original DIE.
23219         (clone_tree_hash): Rename to...
23220         (clone_tree_partial): ...this; change callers.  Copy
23221         DW_TAG_subprogram DIEs as declarations.
23222         (copy_decls_walk): Don't copy children of a declaration into a
23223         type unit.
23224
23225 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
23226
23227         PR target/60969
23228         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
23229         alternative 12.
23230
23231 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
23232
23233         * config/arm/predicates.md (call_insn_operand): Add long_call check.
23234         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
23235         reg for long_call.
23236         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
23237         restriction.
23238
23239 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23240
23241         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
23242
23243 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23244
23245         PR tree-optimization/60930
23246         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
23247         creating a multiply candidate by folding two constant
23248         multiplicands when the result overflows.
23249
23250 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
23251
23252         PR tree-optimization/60960
23253         * tree-vect-generic.c (expand_vector_operation): Only call
23254         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
23255
23256 2014-04-25  Tom de Vries  <tom@codesourcery.com>
23257
23258         * expr.c (clobber_reg_mode): New function.
23259         * expr.h (clobber_reg): New function.
23260
23261 2014-04-25  Tom de Vries  <tom@codesourcery.com>
23262
23263         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
23264         clobbers.
23265
23266 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
23267             Tom de Vries  <tom@codesourcery.com>
23268
23269         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
23270         handle.
23271         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
23272         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
23273         new argument to find_all_hard_reg_sets call.
23274
23275 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23276
23277         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
23278         Use HOST_WIDE_INT_C for mask literal.
23279         (aarch_rev16_shleft_mask_imm_p): Likewise.
23280
23281 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
23282
23283         PR target/60941
23284         * config/sparc/sparc.md (ashlsi3_extend): Delete.
23285
23286 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
23287
23288         PR preprocessor/56540
23289         * config/i386/i386-c.c (ix86_target_macros): Define
23290         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
23291
23292 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23293
23294         * configure.ac (tga_func): Remove.
23295         (LIB_TLS_SPEC): Remove.
23296         * configure: Regenerate.
23297         * config.in: Regenerate.
23298         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
23299
23300 2014-04-25  Richard Biener  <rguenther@suse.de>
23301
23302         PR ipa/60912
23303         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
23304         call stmt use/clobber sets during stmt walk instead of
23305         walking the possibly incomplete set of caller edges.
23306
23307 2014-04-25  Richard Biener  <rguenther@suse.de>
23308
23309         PR ipa/60911
23310         * passes.c (apply_ipa_transforms): Inline into only caller ...
23311         (execute_one_pass): ... here.  Properly bring in function
23312         bodies for nodes we want to apply IPA transforms to.
23313
23314 2014-04-24  Cong Hou  <congh@google.com>
23315
23316         PR tree-optimization/60896
23317         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
23318         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
23319         (vect_mark_pattern_stmts): Set the def type of all statements in
23320         PATTERN_DEF_SEQ as vect_internal_def.
23321
23322 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23323
23324         * doc/extend.texi (PowerPC Built-in Functions): Document new
23325         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
23326         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
23327
23328         * config/rs6000/predicates.md (const_0_to_3_operand): New
23329         predicate to match 0..3 integer constants.
23330
23331         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
23332         to support adding miscellaneous builtin functions.
23333         (BU_DFP_MISC_2): Likewise.
23334         (BU_P7_MISC_1): Likewise.
23335         (BU_P7_MISC_2): Likewise.
23336         (BU_P8V_MISC_3): Likewise.
23337         (BU_MISC_1): Likewise.
23338         (BU_MISC_2): Likewise.
23339         (DIVWE): Add extended divide builtin functions.
23340         (DIVWEO): Likewise.
23341         (DIVWEU): Likewise.
23342         (DIVWEUO): Likewise.
23343         (DIVDE): Likewise.
23344         (DIVDEO): Likewise.
23345         (DIVDEU): Likewise.
23346         (DIVDEUO): Likewise.
23347         (DXEX): Add decimal floating-point builtin functions.
23348         (DXEXQ): Likewise.
23349         (DDEDPD): Likewise.
23350         (DDEDPDQ): Likewise.
23351         (DENBCD): Likewise.
23352         (DENBCDQ): Likewise.
23353         (DIEX): Likewise.
23354         (DIEXQ): Likewise.
23355         (DSCLI): Likewise.
23356         (DSCLIQ): Likewise.
23357         (DSCRI): Likewise.
23358         (DSCRIQ): Likewise.
23359         (CDTBCD): Add new BCD builtin functions.
23360         (CBCDTD): Likewise.
23361         (ADDG6S): Likewise.
23362         (BCDADD): Likewise.
23363         (BCDADD_LT): Likewise.
23364         (BCDADD_EQ): Likewise.
23365         (BCDADD_GT): Likewise.
23366         (BCDADD_OV): Likewise.
23367         (BCDSUB): Likewise.
23368         (BCDSUB_LT): Likewise.
23369         (BCDSUB_EQ): Likewise.
23370         (BCDSUB_GT): Likewise.
23371         (BCDSUB_OV): Likewise.
23372         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
23373         (UNPACK_TD): Likewise.
23374         (PACK_TF): Likewise.
23375         (UNPACK_TF): Likewise.
23376         (UNPACK_TF_0): Likewise.
23377         (UNPACK_TF_1): Likewise.
23378         (PACK_V1TI): Likewise.
23379         (UNPACK_V1TI): Likewise.
23380
23381         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23382         support for decimal floating point builtin functions.
23383         (rs6000_expand_ternop_builtin): Add checks for the new builtin
23384         functions that take constant arguments.
23385         (rs6000_invalid_builtin): Add decimal floating point builtin support.
23386         (rs6000_init_builtins): Setup long double, _Decimal64, and
23387         _Decimal128 types for new builtin functions.
23388         (builtin_function_type): Set the unsigned flags appropriately for
23389         the new builtin functions.
23390         (rs6000_opt_masks): Add support for decimal floating point builtin
23391         functions.
23392
23393         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
23394         floating point builtin functions.
23395         (RS6000_BTM_COMMON): Likewise.
23396         (RS6000_BTI_long_double): Likewise.
23397         (RS6000_BTI_dfloat64): Likewise.
23398         (RS6000_BTI_dfloat128): Likewise.
23399         (long_double_type_internal_node): Likewise.
23400         (dfloat64_type_internal_node): Likewise.
23401         (dfloat128_type_internal_node): Likewise.
23402
23403         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
23404         2.07 bcd arithmetic instructions.
23405         (UNSPEC_BCDSUB): Likewise.
23406         (UNSPEC_BCD_OVERFLOW): Likewise.
23407         (UNSPEC_BCD_ADD_SUB): Likewise.
23408         (bcd_add_sub): Likewise.
23409         (BCD_TEST): Likewise.
23410         (bcd<bcd_add_sub>): Likewise.
23411         (bcd<bcd_add_sub>_test): Likewise.
23412         (bcd<bcd_add_sub>_test2): Likewise.
23413         (bcd<bcd_add_sub>_<code>): Likewise.
23414         (peephole2 for combined bcd ops): Likewise.
23415
23416         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
23417         decimal floating point builtin functions.
23418         (UNSPEC_DENBCD): Likewise.
23419         (UNSPEC_DXEX): Likewise.
23420         (UNSPEC_DIEX): Likewise.
23421         (UNSPEC_DSCLI): Likewise.
23422         (UNSPEC_DSCRI): Likewise.
23423         (D64_D128): Likewise.
23424         (dfp_suffix): Likewise.
23425         (dfp_ddedpd_<mode>): Likewise.
23426         (dfp_denbcd_<mode>): Likewise.
23427         (dfp_dxex_<mode>): Likewise.
23428         (dfp_diex_<mode>): Likewise.
23429         (dfp_dscli_<mode>): Likewise.
23430         (dfp_dscri_<mode>): Likewise.
23431
23432         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
23433         builtin functions.
23434         (UNSPEC_CDTBCD): Likewise.
23435         (UNSPEC_CBCDTD): Likewise.
23436         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
23437         (UNSPEC_DIVEO): Likewise.
23438         (UNSPEC_DIVEU): Likewise.
23439         (UNSPEC_DIVEUO): Likewise.
23440         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
23441         pack/unpack 128-bit types.
23442         (UNSPEC_PACK_128BIT): Likewise.
23443         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
23444         (udiv<mode>3): Use idiv_ldiv mode attribute.
23445         (div<mode>3): Likewise.
23446         (addg6s): Add new BCD builtin functions.
23447         (cdtbcd): Likewise.
23448         (cbcdtd): Likewise.
23449         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
23450         (div_extend): Likewise.
23451         (div<div_extend>_<mode>"): Likewise.
23452         (FP128_64): Add support for new builtin functions to pack/unpack
23453         128-bit types.
23454         (unpack<mode>): Likewise.
23455         (unpacktf_0): Likewise.
23456         (unpacktf_1): Likewise.
23457         (unpack<mode>_dm): Likewise.
23458         (unpack<mode>_nodm): Likewise.
23459         (pack<mode>): Likewise.
23460         (unpackv1ti): Likewise.
23461         (packv1ti): Likewise.
23462
23463 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
23464
23465         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
23466         is disabled.
23467
23468 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
23469
23470         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
23471         * gimplify.c (omp_is_private): Change last argument's type to int.
23472         Only diagnose lastprivate if the simd argument is 1, only diagnose
23473         linear if the simd argument is 2.
23474         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
23475         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
23476         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
23477         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
23478         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
23479         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23480         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
23481         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23482         * tree-nested.c (convert_nonlocal_omp_clauses,
23483         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
23484
23485 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
23486
23487         PR target/60822
23488         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
23489         operand 1.
23490
23491 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
23492
23493         * flag-types.h (enum ivar_visibility): Add.
23494
23495 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
23496
23497         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
23498         function * argument.
23499
23500 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
23501
23502         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
23503
23504 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
23505             Tom de Vries  <tom@codesourcery.com>
23506
23507         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
23508         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
23509         reg-note.
23510         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
23511         * emit-rtl.c (try_split): Same.
23512
23513 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
23514             Tom de Vries  <tom@codesourcery.com>
23515
23516         * common.opt (fuse-caller-save): New option.
23517
23518 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
23519
23520         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
23521         elements for big-endian.
23522
23523 2014-04-24  Richard Biener  <rguenther@suse.de>
23524
23525         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
23526         during TER and instead use the sepops interface for expanding
23527         non-GIMPLE_SINGLE_RHS.
23528
23529 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23530
23531         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
23532         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
23533
23534 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23535
23536         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
23537         assembler 64-bit option.
23538         * configure: Regenerate.
23539
23540 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23541
23542         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
23543         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
23544         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
23545         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
23546         (TARGET_CRYPTO): Take TARGET_SIMD into account.
23547
23548 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23549
23550         * config/aarch64/aarch64-builtins.c
23551         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
23552         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
23553         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
23554         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
23555         builtins.
23556         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
23557         (Vrevsuff): New mode attribute.
23558
23559 2014-04-24  Terry Guo  <terry.guo@arm.com>
23560
23561         * config/arm/arm.h (machine_function): Define variable
23562         after_arm_reorg here.
23563         * config/arm/arm.c (after_arm_reorg): Remove the definition.
23564         (arm_split_constant): Update the way to access variable
23565         after_arm_reorg.
23566         (arm_reorg): Ditto.
23567         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
23568
23569 2014-04-23  Tom de Vries  <tom@codesourcery.com>
23570
23571         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
23572
23573 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
23574
23575         * is-a.h: Update comments to reflect the following changes to the
23576         "pointerness" of the API, making the template parameter match the
23577         return type, allowing use of is-a.h with typedefs of pointers.
23578         (is_a_helper::cast): Return a T rather then a pointer to a T, so
23579         that the return type matches the parameter to the is_a_helper.
23580         (as_a): Likewise.
23581         (dyn_cast): Likewise.
23582
23583         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23584         pointer from the is-a.h API.
23585
23586         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23587         (is_a_helper <cgraph_node *>::test): ...this, matching change to
23588         is-a.h API.
23589         (is_a_helper <varpool_node>::test): Likewise, convert to...
23590         (is_a_helper <varpool_node *>::test): ...this.
23591
23592         (varpool_first_variable): Update for removal of implicit pointer
23593         from the is-a.h API.
23594         (varpool_next_variable): Likewise.
23595         (varpool_first_static_initializer): Likewise.
23596         (varpool_next_static_initializer): Likewise.
23597         (varpool_first_defined_variable): Likewise.
23598         (varpool_next_defined_variable): Likewise.
23599         (cgraph_first_defined_function): Likewise.
23600         (cgraph_next_defined_function): Likewise.
23601         (cgraph_first_function): Likewise.
23602         (cgraph_next_function): Likewise.
23603         (cgraph_first_function_with_gimple_body): Likewise.
23604         (cgraph_next_function_with_gimple_body): Likewise.
23605         (cgraph_alias_target): Likewise.
23606         (varpool_alias_target): Likewise.
23607         (cgraph_function_or_thunk_node): Likewise.
23608         (varpool_variable_node): Likewise.
23609         (symtab_real_symbol_p): Likewise.
23610         * cgraphunit.c (referred_to_p): Likewise.
23611         (analyze_functions): Likewise.
23612         (handle_alias_pairs): Likewise.
23613         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23614         * gimple-ssa.h (gimple_vuse_op): Likewise.
23615         (gimple_vdef_op): Likewise.
23616         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23617         * gimple.c (gimple_build_asm_1): Likewise.
23618         (gimple_build_try): Likewise.
23619         (gimple_build_resx): Likewise.
23620         (gimple_build_eh_dispatch): Likewise.
23621         (gimple_build_omp_for): Likewise.
23622         (gimple_omp_for_set_clauses): Likewise.
23623
23624         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23625         (is_a_helper <gimple_statement_asm *>::test): ...this.
23626         (is_a_helper <gimple_statement_bind>::test): Convert to...
23627         (is_a_helper <gimple_statement_bind *>::test): ...this.
23628         (is_a_helper <gimple_statement_call>::test): Convert to...
23629         (is_a_helper <gimple_statement_call *>::test): ...this.
23630         (is_a_helper <gimple_statement_catch>::test): Convert to...
23631         (is_a_helper <gimple_statement_catch *>::test): ...this.
23632         (is_a_helper <gimple_statement_resx>::test): Convert to...
23633         (is_a_helper <gimple_statement_resx *>::test): ...this.
23634         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23635         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23636         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23637         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23638         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23639         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23640         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23641         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23642         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23643         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23644         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23645         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23646         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23647         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23648         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23649         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23650         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23651         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23652         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23653         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23654         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23655         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23656         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23657         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23658         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23659         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23660         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23661         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23662         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23663         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23664         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23665         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23666         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23667         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23668         (is_a_helper <gimple_statement_phi>::test): Convert to...
23669         (is_a_helper <gimple_statement_phi *>::test): ...this.
23670         (is_a_helper <gimple_statement_transaction>::test): Convert to...
23671         (is_a_helper <gimple_statement_transaction *>::test): ...this.
23672         (is_a_helper <gimple_statement_try>::test): Convert to...
23673         (is_a_helper <gimple_statement_try *>::test): ...this.
23674         (is_a_helper <gimple_statement_wce>::test): Convert to...
23675         (is_a_helper <gimple_statement_wce *>::test): ...this.
23676         (is_a_helper <const gimple_statement_asm>::test): Convert to...
23677         (is_a_helper <const gimple_statement_asm *>::test): ...this.
23678         (is_a_helper <const gimple_statement_bind>::test): Convert to...
23679         (is_a_helper <const gimple_statement_bind *>::test): ...this.
23680         (is_a_helper <const gimple_statement_call>::test): Convert to...
23681         (is_a_helper <const gimple_statement_call *>::test): ...this.
23682         (is_a_helper <const gimple_statement_catch>::test): Convert to...
23683         (is_a_helper <const gimple_statement_catch *>::test): ...this.
23684         (is_a_helper <const gimple_statement_resx>::test): Convert to...
23685         (is_a_helper <const gimple_statement_resx *>::test): ...this.
23686         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23687         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23688         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23689         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23690         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23691         Convert to...
23692         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23693         ...this.
23694         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23695         Convert to...
23696         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23697         ...this.
23698         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23699         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23700         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23701         to...
23702         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23703         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23704         to...
23705         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23706         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23707         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23708         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23709         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23710         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23711         to...
23712         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23713         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23714         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23715         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23716         to...
23717         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23718         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23719         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23720         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23721         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23722         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23723         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23724         (is_a_helper <const gimple_statement_phi>::test): Convert to...
23725         (is_a_helper <const gimple_statement_phi *>::test): ...this.
23726         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23727         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23728         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23729         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23730         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23731         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23732         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23733         to...
23734         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23735         ...this.
23736         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23737         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23738
23739         (gimple_use_ops): Update for removal of implicit pointer from the
23740         is-a.h API.
23741         (gimple_set_use_ops): Likewise.
23742         (gimple_vuse): Likewise.
23743         (gimple_vdef): Likewise.
23744         (gimple_vuse_ptr): Likewise.
23745         (gimple_vdef_ptr): Likewise.
23746         (gimple_set_vuse): Likewise.
23747         (gimple_set_vdef): Likewise.
23748         (gimple_omp_return_set_lhs): Likewise.
23749         (gimple_omp_return_lhs): Likewise.
23750         (gimple_omp_return_lhs_ptr): Likewise.
23751         (gimple_call_fntype): Likewise.
23752         (gimple_call_set_fntype): Likewise.
23753         (gimple_call_set_internal_fn): Likewise.
23754         (gimple_call_use_set): Likewise.
23755         (gimple_call_clobber_set): Likewise.
23756         (gimple_bind_vars): Likewise.
23757         (gimple_bind_set_vars): Likewise.
23758         (gimple_bind_body_ptr): Likewise.
23759         (gimple_bind_set_body): Likewise.
23760         (gimple_bind_add_stmt): Likewise.
23761         (gimple_bind_block): Likewise.
23762         (gimple_bind_set_block): Likewise.
23763         (gimple_asm_ninputs): Likewise.
23764         (gimple_asm_noutputs): Likewise.
23765         (gimple_asm_nclobbers): Likewise.
23766         (gimple_asm_nlabels): Likewise.
23767         (gimple_asm_input_op): Likewise.
23768         (gimple_asm_input_op_ptr): Likewise.
23769         (gimple_asm_output_op): Likewise.
23770         (gimple_asm_output_op_ptr): Likewise.
23771         (gimple_asm_set_output_op): Likewise.
23772         (gimple_asm_clobber_op): Likewise.
23773         (gimple_asm_set_clobber_op): Likewise.
23774         (gimple_asm_label_op): Likewise.
23775         (gimple_asm_set_label_op): Likewise.
23776         (gimple_asm_string): Likewise.
23777         (gimple_catch_types): Likewise.
23778         (gimple_catch_types_ptr): Likewise.
23779         (gimple_catch_handler_ptr): Likewise.
23780         (gimple_catch_set_types): Likewise.
23781         (gimple_catch_set_handler): Likewise.
23782         (gimple_eh_filter_types): Likewise.
23783         (gimple_eh_filter_types_ptr): Likewise.
23784         (gimple_eh_filter_failure_ptr): Likewise.
23785         (gimple_eh_filter_set_types): Likewise.
23786         (gimple_eh_filter_set_failure): Likewise.
23787         (gimple_eh_must_not_throw_fndecl): Likewise.
23788         (gimple_eh_must_not_throw_set_fndecl): Likewise.
23789         (gimple_eh_else_n_body_ptr): Likewise.
23790         (gimple_eh_else_e_body_ptr): Likewise.
23791         (gimple_eh_else_set_n_body): Likewise.
23792         (gimple_eh_else_set_e_body): Likewise.
23793         (gimple_try_eval_ptr): Likewise.
23794         (gimple_try_cleanup_ptr): Likewise.
23795         (gimple_try_set_eval): Likewise.
23796         (gimple_try_set_cleanup): Likewise.
23797         (gimple_wce_cleanup_ptr): Likewise.
23798         (gimple_wce_set_cleanup): Likewise.
23799         (gimple_phi_capacity): Likewise.
23800         (gimple_phi_num_args): Likewise.
23801         (gimple_phi_result): Likewise.
23802         (gimple_phi_result_ptr): Likewise.
23803         (gimple_phi_set_result): Likewise.
23804         (gimple_phi_arg): Likewise.
23805         (gimple_phi_set_arg): Likewise.
23806         (gimple_resx_region): Likewise.
23807         (gimple_resx_set_region): Likewise.
23808         (gimple_eh_dispatch_region): Likewise.
23809         (gimple_eh_dispatch_set_region): Likewise.
23810         (gimple_omp_critical_name): Likewise.
23811         (gimple_omp_critical_name_ptr): Likewise.
23812         (gimple_omp_critical_set_name): Likewise.
23813         (gimple_omp_for_clauses): Likewise.
23814         (gimple_omp_for_clauses_ptr): Likewise.
23815         (gimple_omp_for_set_clauses): Likewise.
23816         (gimple_omp_for_collapse): Likewise.
23817         (gimple_omp_for_index): Likewise.
23818         (gimple_omp_for_index_ptr): Likewise.
23819         (gimple_omp_for_set_index): Likewise.
23820         (gimple_omp_for_initial): Likewise.
23821         (gimple_omp_for_initial_ptr): Likewise.
23822         (gimple_omp_for_set_initial): Likewise.
23823         (gimple_omp_for_final): Likewise.
23824         (gimple_omp_for_final_ptr): Likewise.
23825         (gimple_omp_for_set_final): Likewise.
23826         (gimple_omp_for_incr): Likewise.
23827         (gimple_omp_for_incr_ptr): Likewise.
23828         (gimple_omp_for_set_incr): Likewise.
23829         (gimple_omp_for_pre_body_ptr): Likewise.
23830         (gimple_omp_for_set_pre_body): Likewise.
23831         (gimple_omp_parallel_clauses): Likewise.
23832         (gimple_omp_parallel_clauses_ptr): Likewise.
23833         (gimple_omp_parallel_set_clauses): Likewise.
23834         (gimple_omp_parallel_child_fn): Likewise.
23835         (gimple_omp_parallel_child_fn_ptr): Likewise.
23836         (gimple_omp_parallel_set_child_fn): Likewise.
23837         (gimple_omp_parallel_data_arg): Likewise.
23838         (gimple_omp_parallel_data_arg_ptr): Likewise.
23839         (gimple_omp_parallel_set_data_arg): Likewise.
23840         (gimple_omp_task_clauses): Likewise.
23841         (gimple_omp_task_clauses_ptr): Likewise.
23842         (gimple_omp_task_set_clauses): Likewise.
23843         (gimple_omp_task_child_fn): Likewise.
23844         (gimple_omp_task_child_fn_ptr): Likewise.
23845         (gimple_omp_task_set_child_fn): Likewise.
23846         (gimple_omp_task_data_arg): Likewise.
23847         (gimple_omp_task_data_arg_ptr): Likewise.
23848         (gimple_omp_task_set_data_arg): Likewise.
23849         (gimple_omp_taskreg_clauses): Likewise.
23850         (gimple_omp_taskreg_clauses_ptr): Likewise.
23851         (gimple_omp_taskreg_set_clauses): Likewise.
23852         (gimple_omp_taskreg_child_fn): Likewise.
23853         (gimple_omp_taskreg_child_fn_ptr): Likewise.
23854         (gimple_omp_taskreg_set_child_fn): Likewise.
23855         (gimple_omp_taskreg_data_arg): Likewise.
23856         (gimple_omp_taskreg_data_arg_ptr): Likewise.
23857         (gimple_omp_taskreg_set_data_arg): Likewise.
23858         (gimple_omp_task_copy_fn): Likewise.
23859         (gimple_omp_task_copy_fn_ptr): Likewise.
23860         (gimple_omp_task_set_copy_fn): Likewise.
23861         (gimple_omp_task_arg_size): Likewise.
23862         (gimple_omp_task_arg_size_ptr): Likewise.
23863         (gimple_omp_task_set_arg_size): Likewise.
23864         (gimple_omp_task_arg_align): Likewise.
23865         (gimple_omp_task_arg_align_ptr): Likewise.
23866         (gimple_omp_task_set_arg_align): Likewise.
23867         (gimple_omp_single_clauses): Likewise.
23868         (gimple_omp_single_clauses_ptr): Likewise.
23869         (gimple_omp_single_set_clauses): Likewise.
23870         (gimple_omp_target_clauses): Likewise.
23871         (gimple_omp_target_clauses_ptr): Likewise.
23872         (gimple_omp_target_set_clauses): Likewise.
23873         (gimple_omp_target_child_fn): Likewise.
23874         (gimple_omp_target_child_fn_ptr): Likewise.
23875         (gimple_omp_target_set_child_fn): Likewise.
23876         (gimple_omp_target_data_arg): Likewise.
23877         (gimple_omp_target_data_arg_ptr): Likewise.
23878         (gimple_omp_target_set_data_arg): Likewise.
23879         (gimple_omp_teams_clauses): Likewise.
23880         (gimple_omp_teams_clauses_ptr): Likewise.
23881         (gimple_omp_teams_set_clauses): Likewise.
23882         (gimple_omp_sections_clauses): Likewise.
23883         (gimple_omp_sections_clauses_ptr): Likewise.
23884         (gimple_omp_sections_set_clauses): Likewise.
23885         (gimple_omp_sections_control): Likewise.
23886         (gimple_omp_sections_control_ptr): Likewise.
23887         (gimple_omp_sections_set_control): Likewise.
23888         (gimple_omp_for_set_cond): Likewise.
23889         (gimple_omp_for_cond): Likewise.
23890         (gimple_omp_atomic_store_set_val): Likewise.
23891         (gimple_omp_atomic_store_val): Likewise.
23892         (gimple_omp_atomic_store_val_ptr): Likewise.
23893         (gimple_omp_atomic_load_set_lhs): Likewise.
23894         (gimple_omp_atomic_load_lhs): Likewise.
23895         (gimple_omp_atomic_load_lhs_ptr): Likewise.
23896         (gimple_omp_atomic_load_set_rhs): Likewise.
23897         (gimple_omp_atomic_load_rhs): Likewise.
23898         (gimple_omp_atomic_load_rhs_ptr): Likewise.
23899         (gimple_omp_continue_control_def): Likewise.
23900         (gimple_omp_continue_control_def_ptr): Likewise.
23901         (gimple_omp_continue_set_control_def): Likewise.
23902         (gimple_omp_continue_control_use): Likewise.
23903         (gimple_omp_continue_control_use_ptr): Likewise.
23904         (gimple_omp_continue_set_control_use): Likewise.
23905         (gimple_transaction_body_ptr): Likewise.
23906         (gimple_transaction_label): Likewise.
23907         (gimple_transaction_label_ptr): Likewise.
23908         (gimple_transaction_set_body): Likewise.
23909         (gimple_transaction_set_label): Likewise.
23910
23911         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23912         * ipa-inline-analysis.c (inline_write_summary): Likewise.
23913         * ipa-ref.c (ipa_record_reference): Likewise.
23914         * ipa-reference.c (analyze_function): Likewise.
23915         (ipa_reference_write_optimization_summary): Likewise.
23916         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23917         (address_taken_from_non_vtable_p): Likewise.
23918         (comdat_can_be_unshared_p_1): Likewise.
23919         * lto-cgraph.c (lto_output_ref): Likewise.
23920         (add_references): Likewise.
23921         (compute_ltrans_boundary): Likewise.
23922         (output_symtab): Likewise.
23923         (input_ref): Likewise.
23924         (input_cgraph_1): Likewise.
23925         (output_cgraph_opt_summary): Likewise.
23926         * lto-streamer-out.c (lto_output): Likewise.
23927         (output_symbol_p): Likewise.
23928         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23929         (lsei_start_function_in_partition): Likewise.
23930         (lsei_next_variable_in_partition): Likewise.
23931         (lsei_start_variable_in_partition): Likewise.
23932         * symtab.c (insert_to_assembler_name_hash): Likewise.
23933         (unlink_from_assembler_name_hash): Likewise.
23934         (symtab_unregister_node): Likewise.
23935         (symtab_remove_node): Likewise.
23936         (dump_symtab_node): Likewise.
23937         (verify_symtab_base): Likewise.
23938         (verify_symtab_node): Likewise.
23939         (symtab_make_decl_local): Likewise.
23940         (symtab_alias_ultimate_target): Likewise.
23941         (symtab_resolve_alias): Likewise.
23942         (symtab_get_symbol_partitioning_class): Likewise.
23943         * tree-phinodes.c (allocate_phi_node): Likewise.
23944         (reserve_phi_args_for_new_edge): Likewise.
23945         (remove_phi_args): Likewise.
23946         * varpool.c (varpool_node_for_asm): Likewise.
23947         (varpool_remove_unreferenced_decls): Likewise.
23948
23949 2014-04-23  Jeff Law  <law@redhat.com>
23950
23951         PR tree-optimization/60902
23952         * tree-ssa-threadedge.c
23953         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23954         invalidate outputs from statements that do not produce useful
23955         outputs for threading.
23956
23957 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
23958
23959         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23960         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23961         machine descriptions for Stack Smashing Protector.
23962
23963 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
23964
23965         * aarch64.md (<optab>_rol<mode>3): New pattern.
23966         (<optab>_rolsi3_uxtw): Likewise.
23967         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23968
23969 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
23970
23971         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23972         (arm_cortex_a12_tune): Likewise.
23973
23974 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23975
23976         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23977
23978 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23979
23980         * config/arm/arm.md (arm_rev16si2): New pattern.
23981         (arm_rev16si2_alt): Likewise.
23982         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23983
23984 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23985
23986         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23987         (rev16<mode>2_alt): Likewise.
23988         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23989         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23990         (aarch_rev16_shleft_mask_imm_p): Likewise.
23991         (aarch_rev16_p_1): Likewise.
23992         (aarch_rev16_p): Likewise.
23993         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23994         (aarch_rev16_shright_mask_imm_p): Likewise.
23995         (aarch_rev16_shleft_mask_imm_p): Likewise.
23996
23997 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23998
23999         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
24000         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
24001         rev cost.
24002         (cortex_a53_extra_costs): Likewise.
24003         (cortex_a57_extra_costs): Likewise.
24004         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
24005         (cortexa7_extra_costs): Likewise.
24006         (cortexa8_extra_costs): Likewise.
24007         (cortexa12_extra_costs): Likewise.
24008         (cortexa15_extra_costs): Likewise.
24009         (v7m_extra_costs): Likewise.
24010         (arm_new_rtx_costs): Handle BSWAP.
24011
24012 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24013
24014         * config/arm/arm.c (cortexa8_extra_costs): New table.
24015         (arm_cortex_a8_tune): New tuning struct.
24016         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
24017
24018 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24019
24020         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
24021
24022 2014-04-23  Richard Biener  <rguenther@suse.de>
24023
24024         * Makefile.in (OBJS): Remove loop-unswitch.o.
24025         * tree-pass.h (make_pass_rtl_unswitch): Remove.
24026         * passes.def (pass_rtl_unswitch): Likewise.
24027         * loop-init.c (gate_rtl_unswitch): Likewise.
24028         (rtl_unswitch): Likewise.
24029         (pass_data_rtl_unswitch): Likewise.
24030         (pass_rtl_unswitch): Likewise.
24031         (make_pass_rtl_unswitch): Likewise.
24032         * rtl.h (reversed_condition): Likewise.
24033         (compare_and_jump_seq): Likewise.
24034         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
24035         and make static.
24036         * loop-unroll.c (compare_and_jump_seq): Likewise.
24037
24038 2014-04-23  Richard Biener  <rguenther@suse.de>
24039
24040         PR tree-optimization/60903
24041         * tree-ssa-loop-im.c (analyze_memory_references): Remove
24042         commented code block.
24043         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
24044         loop flags to newly created BBs and edges.
24045
24046 2014-04-23  Nick Clifton  <nickc@redhat.com>
24047
24048         * config/msp430/msp430.c (msp430_handle_option): Move function
24049         to msp430-common.c
24050         (msp430_option_override): Simplify mcu and mcpu option handling.
24051         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
24052         support for -mhwmult command line option.
24053         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
24054         -mhwmult command line option.
24055         (msp430_hwmult_enabled): Delete.
24056         (msp43o_output_labelref): Add support for -mhwmult command line option.
24057         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
24058         (umulsidi3): Likewise.
24059         * config/msp430/msp430.opt (mmcu): Add Report attribute.
24060         (mcpu, mlarge, msmall): Likewise.
24061         (mhwmult): New option.
24062         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
24063         prototype.
24064         (msp430_is_f5_mcu): Remove prototype.
24065         (msp430_use_f5_series_hwmult): Add prototype.
24066         * config/msp430/msp430-opts.h: New file.
24067         * common/config/msp430: New directory.
24068         * common/config/msp430/msp430-common.c: New file.
24069         * config.gcc (msp430): Remove target_has_targetm_common.
24070         * doc/invoke.texi: Document -mhwmult command line option.
24071
24072 2014-04-23  Nick Clifton  <nickc@redhat.com>
24073
24074         * config/i386/cygwin.h (ENDFILE_SPEC): Include
24075         default-manifest.o if it can be found in the search path.
24076         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
24077
24078 2014-04-23  Terry Guo  <terry.guo@arm.com>
24079
24080         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
24081
24082 2014-04-23  Richard Biener  <rguenther@suse.de>
24083
24084         PR middle-end/60895
24085         * tree-inline.c (declare_return_variable): Use mark_addressable.
24086
24087 2014-04-23  Richard Biener  <rguenther@suse.de>
24088
24089         PR middle-end/60891
24090         * loop-init.c (loop_optimizer_init): Make sure to apply
24091         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
24092
24093 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24094
24095         PR sanitizer/60275
24096         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
24097         New options.
24098         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
24099         if flag_sanitize_undefined_trap_on_error.
24100         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
24101         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
24102         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
24103         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
24104         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
24105         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
24106         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
24107         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
24108         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
24109         * ubsan.c (ubsan_instrument_unreachable): Return
24110         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
24111         (ubsan_expand_null_ifn): Emit __builtin_trap ()
24112         if flag_sanitize_undefined_trap_on_error and
24113         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
24114         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
24115         instrument_bool_enum_load): Emit __builtin_trap () if
24116         flag_sanitize_undefined_trap_on_error and
24117         __builtin_handle_*_abort () if !flag_sanitize_recover.
24118         * doc/invoke.texi (-fsanitize-recover,
24119         -fsanitize-undefined-trap-on-error): Document.
24120
24121 2014-04-22  Christian Bruel  <christian.bruel@st.com>
24122
24123         * config/sh/sh.md (mov<mode>): Replace movQIHI.
24124          Force immediates to SImode.
24125
24126 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
24127
24128         * config/nios2/nios2.md (UNSPEC_ROUND): New.
24129         (lroundsfsi2): New.
24130         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
24131         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
24132         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
24133         (nios2_fpu_insn): Add entry for round.
24134         (N2FPU_NO_ERRNO_P): Define.
24135         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
24136         flag_errno_math.
24137         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
24138
24139 2014-04-22  Richard Henderson  <rth@redhat.com>
24140
24141         * config/aarch64/aarch64 (addti3, subti3): New expanders.
24142         (add<GPI>3_compare0): Remove leading * from name.
24143         (add<GPI>3_carryin): Likewise.
24144         (sub<GPI>3_compare0): Likewise.
24145         (sub<GPI>3_carryin): Likewise.
24146         (<su_optab>mulditi3): New expander.
24147         (multi3): New expander.
24148         (madd<GPI>): Remove leading * from name.
24149
24150 2014-04-22  Martin Jambor  <mjambor@suse.cz>
24151
24152         * cgraphclones.c (cgraph_function_versioning): Copy
24153         ipa_transforms_to_apply instead of asserting it is empty.
24154
24155 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
24156
24157         PR target/60868
24158         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
24159         on count_exp to get mode.
24160
24161 2014-04-22  Andrew Pinski  <apinski@cavium.com>
24162
24163         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24164         Handle TLS for ILP32.
24165         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
24166         (tlsie_small_<mode>): this and handle PTR.
24167         (tlsie_small_sidi): New pattern.
24168         (tlsle_small): Change to an expand to handle ILP32.
24169         (tlsle_small_<mode>): New pattern.
24170         (tlsdesc_small): Rename to ...
24171         (tlsdesc_small_<mode>): this and handle PTR.
24172
24173 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24174
24175         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
24176
24177 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24178
24179         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24180         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
24181         (aarch64_types_signed_poly_qualifiers): Likewise.
24182         (aarch64_types_unsigned_signed_qualifiers): Likewise.
24183         (aarch64_types_poly_signed_qualifiers): Likewise.
24184         (TYPES_REINTERP_SS): Type macro added.
24185         (TYPES_REINTERP_SU): Likewise.
24186         (TYPES_REINTERP_SP): Likewise.
24187         (TYPES_REINTERP_US): Likewise.
24188         (TYPES_REINTERP_PS): Likewise.
24189         (aarch64_fold_builtin): New expression folding added.
24190         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
24191         Declarations removed.
24192         (REINTERP_SS): Declarations added.
24193         (REINTERP_US): Likewise.
24194         (REINTERP_PS): Likewise.
24195         (REINTERP_SU): Likewise.
24196         (REINTERP_SP): Likewise.
24197         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
24198         (vreinterpretq_p8_f64): Likewise.
24199         (vreinterpret_p16_f64): Likewise.
24200         (vreinterpretq_p16_f64): Likewise.
24201         (vreinterpret_f32_f64): Likewise.
24202         (vreinterpretq_f32_f64): Likewise.
24203         (vreinterpret_f64_f32): Likewise.
24204         (vreinterpret_f64_p8): Likewise.
24205         (vreinterpret_f64_p16): Likewise.
24206         (vreinterpret_f64_s8): Likewise.
24207         (vreinterpret_f64_s16): Likewise.
24208         (vreinterpret_f64_s32): Likewise.
24209         (vreinterpret_f64_s64): Likewise.
24210         (vreinterpret_f64_u8): Likewise.
24211         (vreinterpret_f64_u16): Likewise.
24212         (vreinterpret_f64_u32): Likewise.
24213         (vreinterpret_f64_u64): Likewise.
24214         (vreinterpretq_f64_f32): Likewise.
24215         (vreinterpretq_f64_p8): Likewise.
24216         (vreinterpretq_f64_p16): Likewise.
24217         (vreinterpretq_f64_s8): Likewise.
24218         (vreinterpretq_f64_s16): Likewise.
24219         (vreinterpretq_f64_s32): Likewise.
24220         (vreinterpretq_f64_s64): Likewise.
24221         (vreinterpretq_f64_u8): Likewise.
24222         (vreinterpretq_f64_u16): Likewise.
24223         (vreinterpretq_f64_u32): Likewise.
24224         (vreinterpretq_f64_u64): Likewise.
24225         (vreinterpret_s64_f64): Likewise.
24226         (vreinterpretq_s64_f64): Likewise.
24227         (vreinterpret_u64_f64): Likewise.
24228         (vreinterpretq_u64_f64): Likewise.
24229         (vreinterpret_s8_f64): Likewise.
24230         (vreinterpretq_s8_f64): Likewise.
24231         (vreinterpret_s16_f64): Likewise.
24232         (vreinterpretq_s16_f64): Likewise.
24233         (vreinterpret_s32_f64): Likewise.
24234         (vreinterpretq_s32_f64): Likewise.
24235         (vreinterpret_u8_f64): Likewise.
24236         (vreinterpretq_u8_f64): Likewise.
24237         (vreinterpret_u16_f64): Likewise.
24238         (vreinterpretq_u16_f64): Likewise.
24239         (vreinterpret_u32_f64): Likewise.
24240         (vreinterpretq_u32_f64): Likewise.
24241
24242 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24243
24244         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24245         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
24246         (vreinterpret_p8_s8): Likewise.
24247         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
24248         (vreinterpret_p8_s16): Likewise.
24249         (vreinterpret_p8_s32): Likewise.
24250         (vreinterpret_p8_s64): Likewise.
24251         (vreinterpret_p8_f32): Likewise.
24252         (vreinterpret_p8_u8): Likewise.
24253         (vreinterpret_p8_u16): Likewise.
24254         (vreinterpret_p8_u32): Likewise.
24255         (vreinterpret_p8_u64): Likewise.
24256         (vreinterpret_p8_p16): Likewise.
24257         (vreinterpretq_p8_s8): Likewise.
24258         (vreinterpretq_p8_s16): Likewise.
24259         (vreinterpretq_p8_s32): Likewise.
24260         (vreinterpretq_p8_s64): Likewise.
24261         (vreinterpretq_p8_f32): Likewise.
24262         (vreinterpretq_p8_u8): Likewise.
24263         (vreinterpretq_p8_u16): Likewise.
24264         (vreinterpretq_p8_u32): Likewise.
24265         (vreinterpretq_p8_u64): Likewise.
24266         (vreinterpretq_p8_p16): Likewise.
24267         (vreinterpret_p16_s8): Likewise.
24268         (vreinterpret_p16_s16): Likewise.
24269         (vreinterpret_p16_s32): Likewise.
24270         (vreinterpret_p16_s64): Likewise.
24271         (vreinterpret_p16_f32): Likewise.
24272         (vreinterpret_p16_u8): Likewise.
24273         (vreinterpret_p16_u16): Likewise.
24274         (vreinterpret_p16_u32): Likewise.
24275         (vreinterpret_p16_u64): Likewise.
24276         (vreinterpret_p16_p8): Likewise.
24277         (vreinterpretq_p16_s8): Likewise.
24278         (vreinterpretq_p16_s16): Likewise.
24279         (vreinterpretq_p16_s32): Likewise.
24280         (vreinterpretq_p16_s64): Likewise.
24281         (vreinterpretq_p16_f32): Likewise.
24282         (vreinterpretq_p16_u8): Likewise.
24283         (vreinterpretq_p16_u16): Likewise.
24284         (vreinterpretq_p16_u32): Likewise.
24285         (vreinterpretq_p16_u64): Likewise.
24286         (vreinterpretq_p16_p8): Likewise.
24287         (vreinterpret_f32_s8): Likewise.
24288         (vreinterpret_f32_s16): Likewise.
24289         (vreinterpret_f32_s32): Likewise.
24290         (vreinterpret_f32_s64): Likewise.
24291         (vreinterpret_f32_u8): Likewise.
24292         (vreinterpret_f32_u16): Likewise.
24293         (vreinterpret_f32_u32): Likewise.
24294         (vreinterpret_f32_u64): Likewise.
24295         (vreinterpret_f32_p8): Likewise.
24296         (vreinterpret_f32_p16): Likewise.
24297         (vreinterpretq_f32_s8): Likewise.
24298         (vreinterpretq_f32_s16): Likewise.
24299         (vreinterpretq_f32_s32): Likewise.
24300         (vreinterpretq_f32_s64): Likewise.
24301         (vreinterpretq_f32_u8): Likewise.
24302         (vreinterpretq_f32_u16): Likewise.
24303         (vreinterpretq_f32_u32): Likewise.
24304         (vreinterpretq_f32_u64): Likewise.
24305         (vreinterpretq_f32_p8): Likewise.
24306         (vreinterpretq_f32_p16): Likewise.
24307         (vreinterpret_s64_s8): Likewise.
24308         (vreinterpret_s64_s16): Likewise.
24309         (vreinterpret_s64_s32): Likewise.
24310         (vreinterpret_s64_f32): Likewise.
24311         (vreinterpret_s64_u8): Likewise.
24312         (vreinterpret_s64_u16): Likewise.
24313         (vreinterpret_s64_u32): Likewise.
24314         (vreinterpret_s64_u64): Likewise.
24315         (vreinterpret_s64_p8): Likewise.
24316         (vreinterpret_s64_p16): Likewise.
24317         (vreinterpretq_s64_s8): Likewise.
24318         (vreinterpretq_s64_s16): Likewise.
24319         (vreinterpretq_s64_s32): Likewise.
24320         (vreinterpretq_s64_f32): Likewise.
24321         (vreinterpretq_s64_u8): Likewise.
24322         (vreinterpretq_s64_u16): Likewise.
24323         (vreinterpretq_s64_u32): Likewise.
24324         (vreinterpretq_s64_u64): Likewise.
24325         (vreinterpretq_s64_p8): Likewise.
24326         (vreinterpretq_s64_p16): Likewise.
24327         (vreinterpret_u64_s8): Likewise.
24328         (vreinterpret_u64_s16): Likewise.
24329         (vreinterpret_u64_s32): Likewise.
24330         (vreinterpret_u64_s64): Likewise.
24331         (vreinterpret_u64_f32): Likewise.
24332         (vreinterpret_u64_u8): Likewise.
24333         (vreinterpret_u64_u16): Likewise.
24334         (vreinterpret_u64_u32): Likewise.
24335         (vreinterpret_u64_p8): Likewise.
24336         (vreinterpret_u64_p16): Likewise.
24337         (vreinterpretq_u64_s8): Likewise.
24338         (vreinterpretq_u64_s16): Likewise.
24339         (vreinterpretq_u64_s32): Likewise.
24340         (vreinterpretq_u64_s64): Likewise.
24341         (vreinterpretq_u64_f32): Likewise.
24342         (vreinterpretq_u64_u8): Likewise.
24343         (vreinterpretq_u64_u16): Likewise.
24344         (vreinterpretq_u64_u32): Likewise.
24345         (vreinterpretq_u64_p8): Likewise.
24346         (vreinterpretq_u64_p16): Likewise.
24347         (vreinterpret_s8_s16): Likewise.
24348         (vreinterpret_s8_s32): Likewise.
24349         (vreinterpret_s8_s64): Likewise.
24350         (vreinterpret_s8_f32): Likewise.
24351         (vreinterpret_s8_u8): Likewise.
24352         (vreinterpret_s8_u16): Likewise.
24353         (vreinterpret_s8_u32): Likewise.
24354         (vreinterpret_s8_u64): Likewise.
24355         (vreinterpret_s8_p8): Likewise.
24356         (vreinterpret_s8_p16): Likewise.
24357         (vreinterpretq_s8_s16): Likewise.
24358         (vreinterpretq_s8_s32): Likewise.
24359         (vreinterpretq_s8_s64): Likewise.
24360         (vreinterpretq_s8_f32): Likewise.
24361         (vreinterpretq_s8_u8): Likewise.
24362         (vreinterpretq_s8_u16): Likewise.
24363         (vreinterpretq_s8_u32): Likewise.
24364         (vreinterpretq_s8_u64): Likewise.
24365         (vreinterpretq_s8_p8): Likewise.
24366         (vreinterpretq_s8_p16): Likewise.
24367         (vreinterpret_s16_s8): Likewise.
24368         (vreinterpret_s16_s32): Likewise.
24369         (vreinterpret_s16_s64): Likewise.
24370         (vreinterpret_s16_f32): Likewise.
24371         (vreinterpret_s16_u8): Likewise.
24372         (vreinterpret_s16_u16): Likewise.
24373         (vreinterpret_s16_u32): Likewise.
24374         (vreinterpret_s16_u64): Likewise.
24375         (vreinterpret_s16_p8): Likewise.
24376         (vreinterpret_s16_p16): Likewise.
24377         (vreinterpretq_s16_s8): Likewise.
24378         (vreinterpretq_s16_s32): Likewise.
24379         (vreinterpretq_s16_s64): Likewise.
24380         (vreinterpretq_s16_f32): Likewise.
24381         (vreinterpretq_s16_u8): Likewise.
24382         (vreinterpretq_s16_u16): Likewise.
24383         (vreinterpretq_s16_u32): Likewise.
24384         (vreinterpretq_s16_u64): Likewise.
24385         (vreinterpretq_s16_p8): Likewise.
24386         (vreinterpretq_s16_p16): Likewise.
24387         (vreinterpret_s32_s8): Likewise.
24388         (vreinterpret_s32_s16): Likewise.
24389         (vreinterpret_s32_s64): Likewise.
24390         (vreinterpret_s32_f32): Likewise.
24391         (vreinterpret_s32_u8): Likewise.
24392         (vreinterpret_s32_u16): Likewise.
24393         (vreinterpret_s32_u32): Likewise.
24394         (vreinterpret_s32_u64): Likewise.
24395         (vreinterpret_s32_p8): Likewise.
24396         (vreinterpret_s32_p16): Likewise.
24397         (vreinterpretq_s32_s8): Likewise.
24398         (vreinterpretq_s32_s16): Likewise.
24399         (vreinterpretq_s32_s64): Likewise.
24400         (vreinterpretq_s32_f32): Likewise.
24401         (vreinterpretq_s32_u8): Likewise.
24402         (vreinterpretq_s32_u16): Likewise.
24403         (vreinterpretq_s32_u32): Likewise.
24404         (vreinterpretq_s32_u64): Likewise.
24405         (vreinterpretq_s32_p8): Likewise.
24406         (vreinterpretq_s32_p16): Likewise.
24407         (vreinterpret_u8_s8): Likewise.
24408         (vreinterpret_u8_s16): Likewise.
24409         (vreinterpret_u8_s32): Likewise.
24410         (vreinterpret_u8_s64): Likewise.
24411         (vreinterpret_u8_f32): Likewise.
24412         (vreinterpret_u8_u16): Likewise.
24413         (vreinterpret_u8_u32): Likewise.
24414         (vreinterpret_u8_u64): Likewise.
24415         (vreinterpret_u8_p8): Likewise.
24416         (vreinterpret_u8_p16): Likewise.
24417         (vreinterpretq_u8_s8): Likewise.
24418         (vreinterpretq_u8_s16): Likewise.
24419         (vreinterpretq_u8_s32): Likewise.
24420         (vreinterpretq_u8_s64): Likewise.
24421         (vreinterpretq_u8_f32): Likewise.
24422         (vreinterpretq_u8_u16): Likewise.
24423         (vreinterpretq_u8_u32): Likewise.
24424         (vreinterpretq_u8_u64): Likewise.
24425         (vreinterpretq_u8_p8): Likewise.
24426         (vreinterpretq_u8_p16): Likewise.
24427         (vreinterpret_u16_s8): Likewise.
24428         (vreinterpret_u16_s16): Likewise.
24429         (vreinterpret_u16_s32): Likewise.
24430         (vreinterpret_u16_s64): Likewise.
24431         (vreinterpret_u16_f32): Likewise.
24432         (vreinterpret_u16_u8): Likewise.
24433         (vreinterpret_u16_u32): Likewise.
24434         (vreinterpret_u16_u64): Likewise.
24435         (vreinterpret_u16_p8): Likewise.
24436         (vreinterpret_u16_p16): Likewise.
24437         (vreinterpretq_u16_s8): Likewise.
24438         (vreinterpretq_u16_s16): Likewise.
24439         (vreinterpretq_u16_s32): Likewise.
24440         (vreinterpretq_u16_s64): Likewise.
24441         (vreinterpretq_u16_f32): Likewise.
24442         (vreinterpretq_u16_u8): Likewise.
24443         (vreinterpretq_u16_u32): Likewise.
24444         (vreinterpretq_u16_u64): Likewise.
24445         (vreinterpretq_u16_p8): Likewise.
24446         (vreinterpretq_u16_p16): Likewise.
24447         (vreinterpret_u32_s8): Likewise.
24448         (vreinterpret_u32_s16): Likewise.
24449         (vreinterpret_u32_s32): Likewise.
24450         (vreinterpret_u32_s64): Likewise.
24451         (vreinterpret_u32_f32): Likewise.
24452         (vreinterpret_u32_u8): Likewise.
24453         (vreinterpret_u32_u16): Likewise.
24454         (vreinterpret_u32_u64): Likewise.
24455         (vreinterpret_u32_p8): Likewise.
24456         (vreinterpret_u32_p16): Likewise.
24457         (vreinterpretq_u32_s8): Likewise.
24458         (vreinterpretq_u32_s16): Likewise.
24459         (vreinterpretq_u32_s32): Likewise.
24460         (vreinterpretq_u32_s64): Likewise.
24461         (vreinterpretq_u32_f32): Likewise.
24462         (vreinterpretq_u32_u8): Likewise.
24463         (vreinterpretq_u32_u16): Likewise.
24464         (vreinterpretq_u32_u64): Likewise.
24465         (vreinterpretq_u32_p8): Likewise.
24466         (vreinterpretq_u32_p16): Likewise.
24467
24468 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24469
24470         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
24471         Pattern extended.
24472         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
24473         (sqabs): Likewise.
24474         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
24475         (vqnegd_s64): Likewise.
24476         (vqabs_s64): Likewise.
24477         (vqabsd_s64): Likewise.
24478
24479 2014-04-22  Richard Henderson  <rth@redhat.com>
24480
24481         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
24482         computation to the top of the loop.
24483
24484 2014-04-22  Renlin  <renlin.li@arm.com>
24485             Jiong Wang  <jiong.wang@arm.com>
24486
24487         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
24488         * config/aarch64/aarch64.c (aarch64_layout_frame)
24489         (aarch64_initial_elimination_offset): Likewise.
24490
24491 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24492
24493         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
24494         Fix indentation.
24495
24496 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
24497
24498         * machmode.h (bitwise_mode_for_mode): Declare.
24499         * stor-layout.h (bitwise_type_for_mode): Likewise.
24500         * stor-layout.c (bitwise_mode_for_mode): New function.
24501         (bitwise_type_for_mode): Likewise.
24502         * builtins.c (fold_builtin_memory_op): Use it instead of
24503         int_mode_for_mode and build_nonstandard_integer_type.
24504
24505 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24506
24507         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
24508         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
24509         (*-*-solaris2*): Simplify.
24510         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
24511         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
24512         *-*-solaris2.9* handling.
24513
24514         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
24515         as bug.
24516         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
24517         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
24518         handling, simplify.
24519         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
24520         * configure: Regenerate.
24521
24522         * config/i386/sol2-9.h: Remove.
24523
24524         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
24525         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
24526         Remove Solaris 9 references.
24527
24528 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
24529
24530         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
24531         (floatuns<GPI:mode><GPF:mode>2): Remove.
24532         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
24533         and floatuns conversions.
24534         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
24535         and floatuns conversions.
24536         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
24537         (w1,w2): New mode attributes for inequal width conversions.
24538
24539 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
24540
24541         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
24542         the output asm format.
24543
24544 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
24545
24546         * config/aarch64/aarch64-simd.md
24547         (aarch64_cm<optab>di): Always split.
24548         (*aarch64_cm<optab>di): New.
24549         (aarch64_cmtstdi): Always split.
24550         (*aarch64_cmtstdi): New.
24551
24552 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24553
24554         PR tree-optimization/60823
24555         * omp-low.c (ipa_simd_modify_function_body): Go through
24556         all SSA_NAMEs and for those refering to vector arguments
24557         which are going to be replaced adjust SSA_NAME_VAR and,
24558         if it is a default definition, change it into a non-default
24559         definition assigned at the beginning of function from new_decl.
24560         (ipa_simd_modify_stmt_ops): Rewritten.
24561         * tree-dfa.c (set_ssa_default_def): When removing default def,
24562         check for NULL loc instead of NULL *loc.
24563
24564 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24565
24566         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
24567         restrictions on core registers for DImode values in Thumb2.
24568
24569 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24570
24571         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
24572         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
24573
24574 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24575
24576         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
24577         (*iordi_notzesidi_di): Likewise.
24578         (*iordi_notsesidi_di): Likewise.
24579
24580 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24581
24582         * config/arm/arm-protos.h (tune_params): New struct members.
24583         * config/arm/arm.c: Initialise tune_params per processor.
24584         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24585         for speed, based on new tune_params.
24586
24587 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24588
24589         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24590         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24591         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24592         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24593         * config/aarch64/arm_neon.h (vrnd_f64): Added.
24594         (vrnda_f64): Likewise.
24595         (vrndi_f64): Likewise.
24596         (vrndm_f64): Likewise.
24597         (vrndn_f64): Likewise.
24598         (vrndp_f64): Likewise.
24599         (vrndx_f64): Likewise.
24600
24601 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24602
24603         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24604         GET_MODE_SIZE argument is enum machine_mode.
24605
24606 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24607
24608         PR target/60910
24609         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24610         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24611
24612 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
24613
24614         PR middle-end/60281
24615         * asan.c (asan_emit_stack_protection): Force the base to align to
24616         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
24617         appropriate bits if STRICT_ALIGNMENT.
24618         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24619         when asan is on.
24620         (expand_used_vars): Leave a space in the stack frame for alignment
24621         if STRICT_ALIGNMENT.
24622
24623 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
24624
24625         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24626         than a gimple.
24627         (gimple_store_p): Likewise.
24628         (gimple_assign_load_p): Likewise.
24629         (gimple_assign_cast_p): Likewise.
24630         (gimple_clobber_p): Likewise.
24631
24632         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24633         rather than a gimple.
24634         (gimple_assign_cast_p): Likewise.
24635
24636 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24637
24638         PR target/60735
24639         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24640         If mode is DDmode and TARGET_E500_DOUBLE allow move.
24641
24642         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24643         more debug information for E500 if -mdebug=reg.
24644
24645 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
24646
24647         PR target/60909
24648         * config/i386/i386.c (ix86_expand_builtin)
24649         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24650         register for target RTX.
24651         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24652
24653 2014-04-18  Cong Hou  <congh@google.com>
24654
24655         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24656         the widen-mult pattern by handling two operands with different sizes,
24657         and operands whose size is smaller than half of the result type.
24658
24659 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
24660
24661         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24662         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24663         (do_estimate_edge_time): Compute it.
24664         * ipa-inline.c (want_inline_small_function_p): Bypass
24665         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24666
24667 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
24668
24669         * ipa-inline.c (spec_rem): New static variable.
24670         (dump_overall_stats): New function.
24671         (dump_inline_stats): New function.
24672
24673 2014-04-18  Richard Henderson  <rth@redhat.com>
24674
24675         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24676         to GET_MODE_SIZE, not a reg_class_t.
24677
24678 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24679
24680         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24681         (vsx_xxmrglw_<mode>): Likewise.
24682
24683 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
24684
24685         PR target/60876
24686         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24687         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24688         (rs6000_init_hard_regno_mode_ok): Likewise.
24689
24690 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
24691
24692         * ipa-inline.c (inline_small_functions): Account only non-cold
24693         functions.
24694         * doc/invoke.texi (inline-unit-growth): Update documentation.
24695
24696 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
24697
24698         * config/rs6000/rs6000.md (addti3, subti3): New.
24699
24700 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24701
24702         PR target/60863
24703         * config/i386/i386.c (ix86_expand_clear): Remove outdated
24704         comment.  Check optimize_insn_for_size_p instead of
24705         optimize_insn_for_speed_p.
24706
24707 2014-04-17  Martin Jambor  <mjambor@suse.cz>
24708
24709         * gimple-iterator.c (gsi_start_edge): New function.
24710         * gimple-iterator.h (gsi_start_edge): Declare.
24711         * tree-sra.c (single_non_eh_succ): New function.
24712         (disqualify_ops_if_throwing_stmt): Renamed to
24713         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
24714         having one non-EH successor BB.
24715         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24716         generate loads into replacements.
24717         (sra_modify_assign): Likewise and and also use the simple path for
24718         such statements.
24719         (sra_modify_function_body): Commit statements on edges.
24720
24721 2014-04-17  Richard Biener  <rguenther@suse.de>
24722
24723         PR middle-end/60849
24724         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24725         comparison results and add clarifying comment.
24726
24727 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
24728
24729         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24730         (blank_mode): Initialize it.
24731         (emit_mode_size_inline, emit_mode_nunits_inline,
24732         emit_mode_inner_inline): New functions.
24733         (emit_insn_modes_h): Call them and surround their output with
24734         #if GCC_VERSION >= 4001 ... #endif.
24735         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24736         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24737         mode_* arrays if the argument is __builtin_constant_p.
24738         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24739         is enum machine_mode.
24740
24741 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24742
24743         * passes.c (opt_pass::execute): Adjust.
24744         (pass_manager::execute_pass_mode_switching): Likewise.
24745         (early_local_passes::execute): Likewise.
24746         (execute_one_pass): Pass cfun to the pass's execute method.
24747         * tree-pass.h (opt_pass::execute): Add function * argument.
24748         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24749         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24750         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24751         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24752         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24753         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24754         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24755         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24756         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24757         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24758         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24759         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24760         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24761         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24762         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24763         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24764         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24765         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24766         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24767         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24768         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24769         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24770         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24771         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24772         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24773         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24774         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24775         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24776         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24777         Adjust.
24778
24779 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24780
24781         * passes.c (opt_pass::gate): Take function * argument.
24782         (gate_all_early_local_passes): Merge into
24783         (early_local_passes::gate): this.
24784         (gate_all_early_optimizations): Merge into
24785         (all_early_optimizations::gate): this.
24786         (gate_all_optimizations): Mege into
24787         (all_optimizations::gate): this.
24788         (gate_all_optimizations_g): Merge into
24789         (all_optimizations_g::gate): this.
24790         (gate_rest_of_compilation): Mege into
24791         (rest_of_compilation::gate): this.
24792         (gate_postreload): Merge into
24793         (postreload::gate): this.
24794         (dump_one_pass): Pass cfun to the pass's gate method.
24795         (execute_ipa_summary_passes): Likewise.
24796         (execute_one_pass): Likewise.
24797         (ipa_write_summaries_2): Likewise.
24798         (ipa_write_optimization_summaries_1): Likewise.
24799         (ipa_read_summaries_1): Likewise.
24800         (ipa_read_optimization_summaries_1): Likewise.
24801         (execute_ipa_stmt_fixups): Likewise.
24802         * tree-pass.h (opt_pass::gate): Add function * argument.
24803         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24804         combine-stack-adj.c, combine.c, compare-elim.c,
24805         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24806         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24807         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24808         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
24809         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24810         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24811         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24812         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24813         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24814         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24815         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24816         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24817         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24818         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24819         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24820         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24821         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24822         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24823         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24824         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24825         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24826         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24827         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24828         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24829         var-tracking.c, vtable-verify.c, web.c: Adjust.
24830
24831 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24832
24833         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24834         * configure: Regenerate.
24835
24836 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24837
24838         * passes.c (dump_one_pass): don't check pass->has_gate.
24839         (execute_ipa_summary_passes): Likewise.
24840         (execute_one_pass): Likewise.
24841         (ipa_write_summaries_2): Likewise.
24842         (ipa_write_optimization_summaries_1): Likewise.
24843         (ipa_read_optimization_summaries_1): Likewise.
24844         (execute_ipa_stmt_fixups): Likewise.
24845         * tree-pass.h (pass_data::has_gate): Remove.
24846         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24847         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24848         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24849         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24850         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24851         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24852         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24853         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24854         gimple-low.c, gimple-ssa-isolate-paths.c,
24855         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24856         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24857         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24858         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24859         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24860         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24861         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24862         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24863         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24864         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24865         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24866         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24867         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24868         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24869         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24870         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24871         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24872         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24873         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24874         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24875         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24876         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24877         Adjust.
24878
24879 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24880
24881         * pass_manager.h (pass_manager::register_dump_files_1): Remove
24882         declaration.
24883         * passes.c (pass_manager::register_dump_files_1): Merge into
24884         (pass_manager::register_dump_files): this, and remove its handling of
24885         properties since the pass always has the properties anyway.
24886         (pass_manager::pass_manager): Adjust.
24887
24888 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24889
24890         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24891         * passes.c (pass_manager::register_dump_files_1): Remove dead code
24892         dealing with properties.
24893         (pass_manager::register_dump_files): Adjust.
24894
24895 2014-03-20  Mark Wielaard  <mjw@redhat.com>
24896
24897         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24898         then represent the bound as normal constant value.
24899
24900 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
24901
24902         PR target/60847
24903         Forward port from 4.8 branch
24904         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
24905
24906         * config/i386/bmiintrin.h (_blsi_u32): New.
24907         (_blsi_u64): Ditto.
24908         (_blsr_u32): Ditto.
24909         (_blsr_u64): Ditto.
24910         (_blsmsk_u32): Ditto.
24911         (_blsmsk_u64): Ditto.
24912         (_tzcnt_u32): Ditto.
24913         (_tzcnt_u64): Ditto.
24914
24915 2014-04-17  Kito Cheng  <kito@0xlab.org>
24916
24917         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24918
24919 2014-04-17  Richard Biener  <rguenther@suse.de>
24920
24921         PR middle-end/60849
24922         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24923         boolean results for comparisons.
24924
24925 2014-04-17  Richard Biener  <rguenther@suse.de>
24926
24927         PR tree-optimization/60836
24928         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24929         initial PHI args to be gimple values.
24930
24931 2014-04-17  Richard Biener  <rguenther@suse.de>
24932
24933         PR tree-optimization/60841
24934         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24935         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24936         of stmts to SLP build.
24937         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24938         (vect_analyze_slp): Likewise.
24939         (vect_analyze_slp_instance): Likewise.
24940         (vect_build_slp_tree): Limit overall SLP tree growth.
24941         * tree-vectorizer.h (vect_analyze_data_refs,
24942         vect_analyze_slp): Adjust prototypes.
24943
24944 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24945
24946         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24947         Silvermont.
24948
24949 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24950
24951         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24952         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24953         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24954         for TARGET_SLOW_PSHUFB
24955
24956 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24957
24958         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24959         * config/i386/i386.c (intel_cost): Ditto.
24960
24961 2014-04-17  Joey Ye  <joey.ye@arm.com>
24962
24963         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24964
24965 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24966
24967         * opts.c (common_handle_option): Disable -fipa-reference coorectly
24968         with -fuse-profile.
24969
24970 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24971
24972         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24973         (type_all_derivations_known_p): New predicate.
24974         (type_all_ctors_visible_p): New predicate.
24975         (type_possibly_instantiated_p): New predicate.
24976         (get_odr_type): Compute all_derivations_known.
24977         (dump_odr_type): Dump the flag.
24978         (maybe_record_type): Cleanup.
24979         (record_target_from_binfo): Add bases_to_consider array;
24980         record bases for types w/o instances and skip CXX destructor.
24981         (possible_polymorphic_call_targets_1): Add bases_to_consider
24982         and consider_construction parameters; check if type may have instance.
24983         (get_polymorphic_call_info): Set maybe_in_construction to true
24984         when we know nothing.
24985         (record_targets_from_bases): Skip CXX destructors; they are
24986         never called for types in construction.
24987         (possible_polymorphic_call_targets): Do not record target when
24988         type may not have instance.
24989
24990 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24991
24992         PR ipa/60854
24993         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24994         external aliases alive, too.
24995
24996 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
24997
24998         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24999         definition.
25000
25001 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
25002
25003         * final.c (compute_alignments): Do not apply loop alignment to a block
25004         falling through to the exit.
25005
25006 2014-04-16  Catherine Moore  <clm@codesourcery.com>
25007
25008         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
25009         Adjust constraints for microMIPS store patterns.
25010
25011 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
25012
25013         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
25014
25015 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
25016
25017         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
25018         (append_use): Run at -O0.
25019         (append_vdef): Likewise.
25020         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
25021         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
25022
25023 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
25024
25025         PR tree-optimization/60844
25026         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
25027         (propagate_op_to_single_use, remove_visited_stmt_chain,
25028         linearize_expr, repropagate_negates, reassociate_bb): Use it
25029         instead of gsi_remove.
25030
25031 2014-04-16  Martin Jambor  <mjambor@suse.cz>
25032
25033         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
25034         ipa_transforms_to_apply.
25035         (cgraph_function_versioning): Assert that old_node has empty
25036         ipa_transforms_to_apply.
25037         * trans-mem.c (ipa_tm_create_version): Likewise.
25038         * tree-inline.c (tree_function_versioning): Do not duplicate
25039         ipa_transforms_to_apply.
25040
25041 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25042
25043         PR target/60817
25044         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
25045         x86_64-*-* cases.
25046         Pass necessary as flags on 64-bit Solaris/x86.
25047         Use lowercase relocs for x86_64-*-*.
25048         * configure: Regenerate.
25049
25050 2014-04-15  Jan Hubicka  <jh@suse.cz>
25051
25052         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
25053         (maybe_record_node, likely_target_p): Use it.
25054
25055 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25056
25057         PR target/60839
25058         Revert following patch
25059
25060         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25061
25062         PR target/60735
25063         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25064         software floating point or no floating point registers, do not
25065         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
25066         in GPRs that occurs after we tested for GPRs that would never be
25067         true.
25068
25069         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25070         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25071         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
25072         specifically allow DDmode, since that does not use the SPE SIMD
25073         instructions.
25074
25075 2014-03-21  Mark Wielaard  <mjw@redhat.com>
25076
25077         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
25078         as unsigned or int depending on type and value used.
25079
25080 2014-04-15  Richard Biener  <rguenther@suse.de>
25081
25082         PR rtl-optimization/56965
25083         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
25084         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
25085         ... here.
25086         * alias.c (true_dependence_1): Do not call
25087         nonoverlapping_component_refs_p.
25088         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
25089         nonoverlapping_component_refs_p.
25090         (indirect_refs_may_alias_p): Likewise.
25091
25092 2014-04-15  Teresa Johnson  <tejohnson@google.com>
25093
25094         * cfg.c (dump_bb_info): Fix flags check.
25095         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
25096
25097 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25098
25099         PR rtl-optimization/60663
25100         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
25101         avoid 0 cost.
25102
25103 2014-04-15  Richard Biener  <rguenther@suse.de>
25104
25105         * lto-streamer.h (LTO_major_version): Bump to 4.
25106
25107 2014-04-15  Richard Biener  <rguenther@suse.de>
25108
25109         * common.opt (lto_partition_model): New enum.
25110         (flto-partition=): Merge separate options with a single with argument,
25111         add -flto-partition=one support.
25112         * flag-types.h (enum lto_partition_model): Declare.
25113         * opts.c (finish_options): Remove duplicate -flto-partition=
25114         option check.
25115         * lto-wrapper.c (run_gcc): Adjust.
25116
25117 2014-04-15  Richard Biener  <rguenther@suse.de>
25118
25119         * alias.c (ncr_compar): New function.
25120         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
25121
25122 2014-04-15  Richard Biener  <rguenther@suse.de>
25123
25124         * alias.c (record_component_aliases): Do not walk BINFOs.
25125
25126 2014-04-15  Richard Biener  <rguenther@suse.de>
25127
25128         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25129         Add struct function argument and adjust.
25130         (find_func_aliases_for_call): Likewise.
25131         (find_func_aliases): Likewise.
25132         (find_func_clobbers): Likewise.
25133         (intra_create_variable_infos): Likewise.
25134         (compute_points_to_sets): Likewise.
25135         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
25136
25137 2014-04-15  Richard Biener  <rguenther@suse.de>
25138
25139         * tree.c (iterative_hash_expr): Use enum tree_code_class
25140         to store TREE_CODE_CLASS.
25141         (tree_block): Likewise.
25142         (tree_set_block): Likewise.
25143         * tree.h (fold_build_pointer_plus_loc): Use
25144         convert_to_ptrofftype_loc.
25145
25146 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
25147
25148         PR plugins/59335
25149         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
25150         added in 4.9.
25151
25152 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
25153
25154         * cfgloop.h (struct loop): Move force_vectorize down.
25155         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
25156         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
25157         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
25158         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
25159         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
25160         * tree-core.h (enum annot_expr_kind): Add new kind values.
25161         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
25162         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
25163         kinds.
25164         * tree.def (ANNOTATE_EXPR): Tweak comment.
25165
25166 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25167
25168         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
25169         cxa_pure_virtual).
25170
25171 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
25172
25173         * tree.h (TYPE_IDENTIFIER): Declare.
25174         * tree.c (subrange_type_for_debug_p): Use it.
25175         * godump.c (go_format_type): Likewise.
25176         * dwarf2out.c (is_cxx_auto, modified_type_die,
25177         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
25178         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
25179
25180 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25181
25182         PR lto/60820
25183         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
25184
25185 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
25186
25187         * config/i386/i386.c (examine_argument): Return bool.  Return true if
25188         parameter should be passed in memory.
25189         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
25190         (construct_container): Update calls to examine_argument.
25191         (function_arg_advance_64): Ditto.
25192         (return_in_memory_32): Merge with ix86_return_in_memory.
25193         (return_in_memory_64): Ditto.
25194         (return_in_memory_ms_64): Ditto.
25195
25196 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25197
25198         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
25199         * coverage.c (coverage_compute_profile_id): Handle externally visible
25200         symbols.
25201
25202 2014-04-14  Martin Jambor  <mjambor@suse.cz>
25203
25204         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
25205         DECL_DISREGARD_INLINE_LIMITS functions.
25206
25207 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
25208
25209         PR target/60827
25210         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
25211
25212 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
25213
25214         PR target/60827
25215         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
25216         optimize_insn_for_speed_p instead of
25217         optimize_function_for_speed_p.
25218
25219 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
25220
25221         * doc/invoke.texi (free): Document AArch64.
25222
25223 2014-04-14  Richard Biener  <rguenther@suse.de>
25224
25225         PR tree-optimization/60042
25226         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
25227         (insert_into_preds_of_block): Do not prevent PHI insertion
25228         for REFERENCE exprs here ...
25229         (eliminate_dom_walker::before_dom_children): ... but prevent
25230         their use here under similar conditions when applied to the
25231         IL after PRE optimizations.
25232
25233 2014-04-14  Richard Biener  <rguenther@suse.de>
25234
25235         * passes.def: Move early points-to after early SRA.
25236
25237 2014-04-14  Richard Biener  <rguenther@suse.de>
25238
25239         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
25240         check for which sign-changes we allow when forwarding
25241         a converted value into a switch.
25242
25243 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
25244
25245         * stor-layout.c (place_field): Finalize non-constant offset for the
25246         field, if any.
25247
25248 2014-04-14  Richard Biener  <rguenther@suse.de>
25249
25250         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
25251         as argument.
25252         (expand_switch_using_bit_tests_p): Likewise.
25253         (process_switch): Compute and pass on speed_p based on the
25254         switch stmt.
25255         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
25256         optimize_bb_for_speed_p.
25257
25258 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
25259
25260         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
25261         * function.h (struct function): Rename has_force_vect_loops into
25262         has_force_vectorize_loops.
25263         * lto-streamer-in.c (input_cfg): Adjust for renaming.
25264         (input_struct_function_base): Likewise.
25265         * lto-streamer-out.c (output_cfg): Likewise.
25266         (output_struct_function_base): Likewise.
25267         * omp-low.c (expand_omp_simd): Likewise.
25268         * tree-cfg.c (move_sese_region_to_fn): Likewise.
25269         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
25270         (version_loop_for_if_conversion): Likewise.
25271         (tree_if_conversion): Likewise.
25272         (main_tree_if_conversion): Likewise.
25273         (gate_tree_if_conversion): Likewise.
25274         * tree-inline.c (copy_loops): Likewise.
25275         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
25276         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
25277         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25278         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
25279         * tree-vectorizer.c (vectorize_loops): Likewise.
25280         * tree-vectorizer.h (unlimited_cost_model): Likewise.
25281
25282 2014-04-14  Richard Biener  <rguenther@suse.de>
25283
25284         PR lto/60720
25285         * lto-streamer-out.c (wrap_refs): New function.
25286         (lto_output): Wrap symbol references in global initializes in
25287         type-preserving MEM_REFs.
25288
25289 2014-04-14  Christian Bruel  <christian.bruel@st.com>
25290
25291         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
25292
25293 2014-04-14  Christian Bruel  <christian.bruel@st.com>
25294
25295         * config/sh/sh.md (setmemqi): New expand pattern.
25296         * config/sh/sh.h (CLEAR_RATIO): Define.
25297         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
25298         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
25299
25300 2014-04-14  Richard Biener  <rguenther@suse.de>
25301
25302         PR middle-end/55022
25303         * fold-const.c (negate_expr_p): Don't negate directional rounding
25304         division.
25305         (fold_negate_expr): Likewise.
25306
25307 2014-04-14  Richard Biener  <rguenther@suse.de>
25308
25309         PR tree-optimization/59817
25310         PR tree-optimization/60453
25311         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
25312         recursion to catch all CHRECs in the scalar evolution and restrict
25313         the predicate for the remains appropriately.
25314
25315 2014-04-12  Catherine Moore  <clm@codesourcery.com>
25316
25317         * config/mips/constraints.md: Add new register constraint "kb".
25318         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
25319         (*movhi_internal): Likewise.
25320         (*movqi_internal): Likewise.
25321         * config/mips/mips.h (M16_STORE_REGS): New register class.
25322         (REG_CLASS_NAMES): Add M16_STORE_REGS.
25323         (REG_CLASS_CONTENTS): Likewise.
25324         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
25325
25326 2014-04-11  Tobias Burnus  <burnus@net-b.de>
25327
25328         PR c/60194
25329         * doc/invoke.texi (-Wformat-signedness): Document it.
25330         (Wformat=2): Mention that this enables -Wformat-signedness.
25331
25332 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25333
25334         * common/config/epiphany/epiphany-common.c
25335         (epiphany_option_optimization_table): Enable section anchors by
25336         default at -O1 or higher.
25337         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
25338         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
25339         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
25340         carries no extra cost.
25341         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
25342         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
25343         * config/epiphany/predicates.md (memclob_operand): New predicate.
25344         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
25345         Use memclob_operand predicate and X constraint for operand 3.
25346
25347 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25348
25349         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
25350         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
25351         its operands.
25352
25353 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25354
25355         PR rtl-optimization/60651
25356         * mode-switching.c (optimize_mode_switching): Make sure to emit
25357         sets of a lower numbered entity before sets of a higher numbered
25358         entity to a mode of the same or lower priority.
25359         When creating a seginfo for a basic block that starts with a code
25360         label, move the insertion point past the code label.
25361         (new_seginfo): Document and enforce requirement that
25362         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
25363         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
25364         * doc/tm.texi: Regenerate.
25365
25366 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25367
25368         PR target/60811
25369         * config/arc/arc.c (arc_save_restore): Fix assert typo.
25370
25371 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
25372
25373         * BASE-VER: Set to 4.10.0.
25374
25375 2014-04-11  Tobias Burnus  <burnus@net-b.de>
25376
25377         PR other/59055
25378         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
25379         * doc/gcc.texi (Service): Update description in the @menu
25380         * doc/invoke.texi (Option Summary): Remove misplaced and
25381         duplicated @menu.
25382
25383 2014-04-11  Steve Ellcey  <sellcey@mips.com>
25384             Jakub Jelinek  <jakub@redhat.com>
25385
25386         PR middle-end/60556
25387         * expr.c (convert_move): Use emit_store_flag_force instead of
25388         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
25389         argument to it.
25390
25391 2014-04-11  Richard Biener  <rguenther@suse.de>
25392
25393         PR middle-end/60797
25394         * varasm.c (assemble_alias): Avoid endless error reporting
25395         recursion by setting TREE_ASM_WRITTEN.
25396
25397 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25398
25399         * config/s390/s390.md: Add a splitter for NOT rtx.
25400
25401 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
25402
25403         PR rtl-optimization/60663
25404         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
25405
25406 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
25407             Jakub Jelinek  <jakub@redhat.com>
25408
25409         PR lto/60567
25410         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
25411         flag from decl_node to node.
25412
25413 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25414
25415         PR debug/60655
25416         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
25417         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
25418         ameliorating the cases where it can be.
25419
25420 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
25421
25422         Revert
25423         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
25424
25425         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25426         (loadsync_<mode>): Change mode.
25427         (load_quadpti, store_quadpti): New.
25428         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25429         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25430         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
25431
25432 2014-04-09  Cong Hou  <congh@google.com>
25433
25434         PR testsuite/60773
25435         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
25436         documentation.
25437
25438 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25439
25440         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
25441         instead of vnor to exploit possible fusion opportunity in the
25442         future.
25443         (altivec_expand_vec_perm_const_le): Likewise.
25444
25445 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
25446
25447         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25448         (loadsync_<mode>): Change mode.
25449         (load_quadpti, store_quadpti): New.
25450         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25451         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25452
25453 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
25454
25455         PR target/60763
25456         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
25457         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
25458         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
25459
25460 2014-04-08  Richard Biener  <rguenther@suse.de>
25461
25462         PR middle-end/60706
25463         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
25464         a 64bit widest int print double-int similar to on HWI64 hosts.
25465
25466 2014-04-08  Richard Biener  <rguenther@suse.de>
25467
25468         PR tree-optimization/60785
25469         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
25470         default defs properly.
25471
25472 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
25473
25474         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
25475         (Weffc++): Likewise.
25476
25477 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
25478
25479         * ipa-devirt.c (maybe_record_node): When node is not recorded,
25480         set completep to false rather than true.
25481
25482 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
25483
25484         PR target/60504
25485         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
25486         ARM_TARGET2_DWARF_FORMAT.
25487
25488 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
25489
25490         PR target/60609
25491         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
25492         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
25493         ADDR_DIFF_VEC.
25494
25495 2014-04-07  Richard Biener  <rguenther@suse.de>
25496
25497         PR tree-optimization/60766
25498         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
25499         (may_eliminate_iv): Convert cand_value_at result to desired type.
25500
25501 2014-04-07  Jason Merrill  <jason@redhat.com>
25502
25503         PR c++/60731
25504         * common.opt (-fno-gnu-unique): Add.
25505         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
25506
25507 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25508
25509         * haifa-sched.c: Fix outdated function reference and minor
25510         grammar errors in introductory comment.
25511
25512 2014-04-07  Richard Biener  <rguenther@suse.de>
25513
25514         PR middle-end/60750
25515         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
25516         for noreturn calls.
25517         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
25518
25519 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
25520
25521         PR debug/55794
25522         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
25523         size accounting for thunks.
25524         (pa_asm_output_mi_thunk): Use final_start_function() and
25525         final_end_function() to output function start and end directives.
25526
25527 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
25528
25529         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
25530         device specific ISA/ feature information. Remove short_sp and
25531         errata_skip ds.  Add avr_device_specific_features enum to have device
25532         specific info.
25533         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
25534         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
25535         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
25536         updated device specific info.
25537         * config/avr/avr-mcus.def: Merge device specific details to
25538         dev_attribute field.
25539         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
25540         errata_skip.
25541         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
25542         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
25543         assembler if RMW isa supported by current device.
25544         * config/avr/genmultilib.awk: Update as device info structure changed.
25545         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
25546
25547 2014-04-04  Cong Hou  <congh@google.com>
25548
25549         PR tree-optimization/60656
25550         * tree-vect-stmts.c (supportable_widening_operation):
25551         Fix a bug that elements in a vector with vect_used_by_reduction
25552         property are incorrectly reordered when the operation on it is not
25553         consistant with the one in reduction operation.
25554
25555 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
25556
25557         PR rtl-optimization/60155
25558         * gcse.c (record_set_data): New function.
25559         (single_set_gcse): New function.
25560         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
25561         (hoist_code): Likewise.
25562         (get_pressure_class_and_nregs): Likewise.
25563
25564 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
25565
25566         * explow.c (probe_stack_range): Emit a final optimization blockage.
25567
25568 2014-04-04  Anthony Green  <green@moxielogic.com>
25569
25570         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
25571         typos.
25572
25573 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
25574
25575         PR ipa/59626
25576         * lto-cgraph.c (input_overwrite_node): Check that partitioning
25577         flags are set only during streaming.
25578         * ipa.c (process_references, walk_polymorphic_call_targets,
25579         symtab_remove_unreachable_nodes): Drop bodies of always inline
25580         after early inlining.
25581         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25582
25583 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
25584         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25585
25586         PR debug/60655
25587         * dwarf2out.c (const_ok_for_output_1): Reject expressions
25588         containing a NOT.
25589
25590 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25591
25592         PR bootstrap/60743
25593         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25594         duration.
25595         (cortex_a53_fdivd): Likewise.
25596
25597 2014-04-04  Martin Jambor  <mjambor@suse.cz>
25598
25599         PR ipa/60640
25600         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25601         Adjust all callers.
25602         * cgraph.c (clone_of_p): Also return true if thunks match.
25603         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25604         cgraph_function_or_thunk_node and an obsolete comment.
25605         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25606         file.
25607         (build_function_decl_skip_args): Likewise.
25608         (set_new_clone_decl_and_node_flags): New function.
25609         (duplicate_thunk_for_node): Likewise.
25610         (redirect_edge_duplicating_thunks): Likewise.
25611         (cgraph_clone_node): New parameter args_to_skip, pass it to
25612         redirect_edge_duplicating_thunks which is called instead of
25613         cgraph_redirect_edge_callee.
25614         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25615         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25616
25617 2014-04-04  Jeff Law  <law@redhat.com>
25618
25619         PR target/60657
25620         * config/arm/predicates.md (const_int_I_operand): New predicate.
25621         (const_int_M_operand): Similarly.
25622         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25623         const_int_operand.
25624         (insv_t2, extv_reg, extzv_t2): Likewise.
25625         (load_multiple_with_writeback): Similarly for const_int_I_operand.
25626         (pop_multiple_with_writeback_and_return): Likewise.
25627         (vfp_pop_multiple_with_writeback): Likewise
25628
25629 2014-04-04  Richard Biener  <rguenther@suse.de>
25630
25631         PR ipa/60746
25632         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25633         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25634         non-GIMPLE_LABELs.
25635         * gimplify.h (gimple_add_tmp_var_fn): Declare.
25636         * gimplify.c (gimple_add_tmp_var_fn): New function.
25637         * gimple-expr.h (create_tmp_reg_fn): Declare.
25638         * gimple-expr.c (create_tmp_reg_fn): New function.
25639         * gimple-low.c (record_vars_into): Don't change cfun.
25640         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25641         code generation without cfun.
25642
25643 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
25644
25645         PR bootstrap/60719
25646         * Makefile.in (install-driver): Fix shell scripting.
25647
25648 2014-04-03  Cong Hou  <congh@google.com>
25649
25650         PR tree-optimization/60505
25651         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25652         threshold of number of iterations below which no vectorization
25653         will be done.
25654         * tree-vect-loop.c (new_loop_vec_info):
25655         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25656         * tree-vect-loop.c (vect_analyze_loop_operations):
25657         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25658         * tree-vect-loop.c (vect_transform_loop):
25659         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25660         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25661         of iterations of the loop and see if we should build the epilogue.
25662
25663 2014-04-03  Richard Biener  <rguenther@suse.de>
25664
25665         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25666         (streamer_tree_cache_create): Adjust.
25667         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25668         to allow optional nodes array.
25669         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25670         (streamer_tree_cache_append): Likewise.
25671         (streamer_tree_cache_create): Create nodes array optionally
25672         as specified by parameter.
25673         * lto-streamer-out.c (create_output_block): Avoid maintaining
25674         the node array in the writer cache.
25675         (DFS_write_tree): Remove assertion.
25676         (produce_asm_for_decls): Free the out decl state hash table early.
25677         * lto-streamer-in.c (lto_data_in_create): Adjust for
25678         streamer_tree_cache_create prototype change.
25679
25680 2014-04-03  Richard Biener  <rguenther@suse.de>
25681
25682         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25683         set TREE_CHAIN to NULL_TREE.
25684
25685 2014-04-03  Richard Biener  <rguenther@suse.de>
25686
25687         PR tree-optimization/60740
25688         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25689         over all GIMPLE_COND operands.
25690
25691 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
25692
25693         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25694         (Weffc++): Remove Scott's numbering, merge lists and reference
25695         Wnon-virtual-dtor.
25696
25697 2014-04-03  Nick Clifton  <nickc@redhat.com>
25698
25699         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25700         properly.
25701
25702 2014-04-03  Martin Jambor  <mjambor@suse.cz>
25703
25704         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25705         mention gcc_unreachable before failing.
25706         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25707         removed symbols.
25708
25709 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
25710
25711         PR ipa/60659
25712         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25713         inconsistent code and instead mark the context inconsistent.
25714         (possible_polymorphic_call_targets): For inconsistent contexts
25715         return empty complete list.
25716
25717 2014-04-02  Anthony Green  <green@moxielogic.com>
25718
25719         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25720         (extendqisi2, extendhisi2): Define.
25721         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25722         (WCHAR_TYPE): Change to unsigned int.
25723
25724 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25725
25726         PR tree-optimization/60733
25727         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25728         insertion point for PHI candidates to be the end of the feeding
25729         block for the PHI argument.
25730
25731 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
25732
25733         PR rtl-optimization/60650
25734         * lra-constraints.c (process_alt_operands): Decrease reject for
25735         earlyclobber matching.
25736
25737 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25738
25739         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25740
25741 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25742
25743         * config/spu/spu.c (pad_bb): Do not crash when the last
25744         insn is CODE_FOR_blockage.
25745
25746 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25747
25748         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25749         lies outside the target mode.
25750
25751 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25752
25753         PR target/60735
25754         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25755         software floating point or no floating point registers, do not
25756         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
25757         in GPRs that occurs after we tested for GPRs that would never be
25758         true.
25759
25760         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25761         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25762         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
25763         specifically allow DDmode, since that does not use the SPE SIMD
25764         instructions.
25765
25766 2014-04-02  Richard Biener  <rguenther@suse.de>
25767
25768         PR middle-end/60729
25769         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25770         MODE_INTs.  Properly use negv_optab.
25771         (expand_abs): Likewise.
25772
25773 2014-04-02  Richard Biener  <rguenther@suse.de>
25774
25775         PR bootstrap/60719
25776         * Makefile.in (install-driver): Guard extra installs with special
25777         names properly.
25778
25779 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25780
25781         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25782         Document vec_vgbbd.
25783
25784 2014-04-01  Richard Henderson  <rth@redhat.com>
25785
25786         PR target/60704
25787         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25788         alternative enabled before register allocation.
25789
25790 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
25791
25792         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25793         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25794         typo.
25795         (nios2_large_got_address): Remove unneeded 'sym' parameter.
25796         (nios2_got_address): Update nios2_large_got_address call site.
25797         (nios2_delegitimize_address): New function.
25798         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25799         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25800         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25801
25802 2014-04-01  Martin Husemann  <martin@duskware.de>
25803
25804         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25805         for -mabi=32.
25806
25807 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
25808
25809         PR rtl-optimization/60604
25810         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25811         check from register_operand.
25812         (register_operand): Redefine in terms of general_operand.
25813         (nonmemory_operand): Use register_operand for the non-constant cases.
25814
25815 2014-04-01  Richard Biener  <rguenther@suse.de>
25816
25817         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25818
25819 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25820
25821         * doc/invoke.texi (mapp-regs): Clarify.
25822
25823 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
25824
25825         * config/i386/avx512fintrin.h (__v32hi): Define type.
25826         (__v64qi): Likewise.
25827         (_mm512_set1_epi8): Define.
25828         (_mm512_set1_epi16): Define.
25829         (_mm512_set4_epi32): Define.
25830         (_mm512_set4_epi64): Define.
25831         (_mm512_set4_pd): Define.
25832         (_mm512_set4_ps): Define.
25833         (_mm512_setr4_epi64): Define.
25834         (_mm512_setr4_epi32): Define.
25835         (_mm512_setr4_pd): Define.
25836         (_mm512_setr4_ps): Define.
25837         (_mm512_setzero_epi32): Define.
25838
25839 2014-03-31  Martin Jambor  <mjambor@suse.cz>
25840
25841         PR middle-end/60647
25842         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25843         callsite_arguments_match_p.  Updated all callers.  Also check types of
25844         corresponding formal parameters and actual arguments.
25845         (not_all_callers_have_enough_arguments_p) Renamed to
25846         some_callers_have_mismatched_arguments_p.
25847
25848 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
25849
25850         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25851
25852 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
25853
25854         PR target/60034
25855         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25856         section anchor.
25857
25858 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
25859
25860         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25861         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25862         Split out
25863         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25864         Use FMAMODE_NOVF512 mode iterator.
25865         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25866         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25867         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25868         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25869         Split out
25870         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25871         Use VF_128_256 mode iterator.
25872         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25873         Ditto.
25874
25875 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25876
25877         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25878         static chain if needed.
25879
25880 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25881
25882         PR target/60697
25883         * lra-constraints.c (index_part_to_reg): New.
25884         (process_address): Use it.
25885
25886 2014-03-27  Jeff Law  <law@redhat.com>
25887             Jakub Jelinek  <jakub@redhat.com>
25888
25889         PR target/60648
25890         * expr.c (do_tablejump): Use simplify_gen_binary rather than
25891         gen_rtx_{PLUS,MULT} to build up the address expression.
25892
25893         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25894         creating non-canonical RTL.
25895
25896 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25897
25898         PR ipa/60243
25899         * ipa-inline.c (want_inline_small_function_p): Short circuit large
25900         functions; reorganize to make cheap checks first.
25901         (inline_small_functions): Do not estimate growth when dumping;
25902         it is expensive.
25903         * ipa-inline.h (inline_summary): Add min_size.
25904         (growth_likely_positive): New function.
25905         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25906         (set_cond_stmt_execution_predicate): Cleanup.
25907         (estimate_edge_size_and_time): Compute min_size.
25908         (estimate_calls_size_and_time): Likewise.
25909         (estimate_node_size_and_time): Likewise.
25910         (inline_update_overall_summary): Update min_size.
25911         (do_estimate_edge_time): Likewise.
25912         (do_estimate_edge_size): Update.
25913         (do_estimate_edge_hints): Update.
25914         (growth_likely_positive): New function.
25915
25916 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
25917
25918         PR target/60693
25919         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25920         also if addr has VOIDmode.
25921
25922 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25923
25924         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25925         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25926         Declare extern.
25927         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25928         instructions as well as AdvancedSIMD loads.
25929
25930 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25931
25932         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25933         Use crypto_aese type.
25934         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25935         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25936         crypto_aese, crypto_aesmc.  Move to types.md.
25937         * config/arm/types.md (crypto_aes): Split into crypto_aese,
25938         crypto_aesmc.
25939         * config/arm/iterators.md (crypto_type): Likewise.
25940
25941 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25942
25943         * cgraph.c: Include expr.h and tree-dfa.h.
25944         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25945         remove LHS.
25946
25947 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25948
25949         PR target/60675
25950         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25951         regs from checking multi-reg pseudos.
25952
25953 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25954
25955         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25956
25957 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25958
25959         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25960         if it would clobber the stack pointer, even temporarily.
25961
25962 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25963
25964         * mode-switching.c: Make small adjustments to the top comment.
25965
25966 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
25967
25968         * config/rs6000/constraints.md (wD constraint): New constraint to
25969         match the constant integer to get the top DImode/DFmode out of a
25970         vector in a VSX register.
25971
25972         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25973         match the constant integer to get the top DImode/DFmode out of a
25974         vector in a VSX register.
25975
25976         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25977         for ISA 2.07.
25978
25979         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25980         vbpermq builtins.
25981
25982         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25983         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25984
25985         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25986         Optimize vec_extract of 64-bit values, where the value being
25987         extracted is in the top word, where we can use scalar
25988         instructions.  Add direct move and store support.  Combine the big
25989         endian/little endian vector select load support into a single insn.
25990         (vsx_extract_<mode>_internal1): Likewise.
25991         (vsx_extract_<mode>_internal2): Likewise.
25992         (vsx_extract_<mode>_load): Likewise.
25993         (vsx_extract_<mode>_store): Likewise.
25994         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25995         combined into vsx_extract_<mode>_load.
25996         (vsx_extract_<mode>_one_le): Likewise.
25997
25998         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25999         define the top 64-bit vector element.
26000
26001         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
26002         constraint.
26003
26004         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26005         Document vec_vbpermq builtin.
26006
26007         PR target/60672
26008         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
26009         enable use of xxsldwi and xxpermdi builtin functions.
26010         (vec_xxpermdi): Likewise.
26011
26012         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26013         Document use of vec_xxsldwi and vec_xxpermdi builtins.
26014
26015 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26016
26017         PR rtl-optimization/60650
26018         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
26019         first_p.  Use it.
26020         (find_spills_for): New.
26021         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
26022         Spill all pseudos on the second iteration.
26023
26024 2014-03-27  Marek Polacek  <polacek@redhat.com>
26025
26026         PR c/50347
26027         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
26028         types.
26029
26030 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26031
26032         * config/s390/s390.c (s390_can_use_return_insn): Check for
26033         call-saved FPRs on 31 bit.
26034
26035 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
26036
26037         PR middle-end/60682
26038         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
26039         if they need regimplification, just drop them instead of
26040         calling gimple_regimplify_operands on them.
26041
26042 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26043
26044         PR target/60580
26045         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
26046         (aarch64_frame_pointer_required): Adjust logic.
26047         (aarch64_can_eliminate): Adjust logic.
26048         (aarch64_override_options_after_change): Adjust logic.
26049
26050 2014-03-27  Dehao Chen  <dehao@google.com>
26051
26052         * ipa-inline.c (early_inliner): Update node's inline info.
26053
26054 2014-03-26  Dehao Chen  <dehao@google.com>
26055
26056         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
26057         compiler inserted conditional jumps for NAN float check.
26058
26059 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
26060
26061         * ubsan.h (ubsan_create_data): Change second argument's type
26062         to const location_t *.
26063         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
26064         _("<unknown>").
26065         (ubsan_create_data): Change second argument to const location_t *PLOC.
26066         Create Loc field whenever PLOC is non-NULL.
26067         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
26068         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
26069         callers.
26070
26071         PR other/59545
26072         * real.c (real_to_integer2): Change type of low to UHWI.
26073
26074 2014-03-26  Tobias Burnus  <burnus@net-b.de>
26075
26076         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
26077         (CILK_SELF_SPECS): New define.
26078         (driver_self_specs): Use it.
26079
26080 2014-03-26  Richard Biener  <rguenther@suse.de>
26081
26082         * tree-pretty-print.c (percent_K_format): Implement special
26083         case for LTO and its stripped down BLOCK tree.
26084
26085 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
26086
26087         PR sanitizer/60636
26088         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
26089
26090         * tree-vrp.c (simplify_internal_call_using_ranges): If only
26091         one range is range_int_cst_p, but not both, at least optimize
26092         addition/subtraction of 0 and multiplication by 0 or 1.
26093         * gimple-fold.c (gimple_fold_call): Fold
26094         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
26095         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
26096         INTEGER_CSTs, try to fold at least x * 0 and y - y.
26097
26098 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
26099
26100         PR rtl-optimization/60452
26101         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
26102         <case REG>: Return 1 for invalid offsets from the frame pointer.
26103
26104 2014-03-26  Marek Polacek  <polacek@redhat.com>
26105
26106         PR c/37428
26107         * doc/extend.texi (C Extensions): Mention variable-length arrays in
26108         a structure/union.
26109
26110 2014-03-26  Marek Polacek  <polacek@redhat.com>
26111
26112         PR c/39525
26113         * doc/extend.texi (Designated Inits): Describe what happens to omitted
26114         field members.
26115
26116 2014-03-26  Marek Polacek  <polacek@redhat.com>
26117
26118         PR other/59545
26119         * ira-color.c (update_conflict_hard_regno_costs): Perform the
26120         multiplication in unsigned type.
26121
26122 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
26123
26124         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
26125
26126 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
26127
26128         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
26129
26130 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
26131
26132         PR ipa/60315
26133         * cif-code.def (UNREACHABLE) New code.
26134         * ipa-inline.c (inline_small_functions): Skip edges to
26135         __builtlin_unreachable.
26136         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
26137         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
26138         predicate to __bulitin_unreachable.
26139         (set_cond_stmt_execution_predicate): Fix issue when
26140         invert_tree_comparison returns ERROR_MARK.
26141         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
26142         propagate to inline clones.
26143         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
26144         to unreachable.
26145         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
26146         * cgraphclones.c (cgraph_clone_node): If call destination is already
26147         ureachable, do not redirect it back.
26148         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
26149         unreachable.
26150
26151 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
26152
26153         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
26154         Do not modify inline clones.
26155
26156 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
26157
26158         * config/i386/i386.md (general_sext_operand): New mode attr.
26159         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
26160         don't generate (sign_extend (const_int)).
26161         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
26162         operands[2].  Use We constraint instead of <i> and
26163         <general_sext_operand> predicate instead of <general_operand>.
26164         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
26165         * config/i386/constraints.md (We): New constraint.
26166         * config/i386/predicates.md (x86_64_sext_operand,
26167         sext_operand): New predicates.
26168
26169 2014-03-25  Martin Jambor  <mjambor@suse.cz>
26170
26171         PR ipa/60600
26172         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
26173         inconsistent devirtualizations to __builtin_unreachable.
26174
26175 2014-03-25  Marek Polacek  <polacek@redhat.com>
26176
26177         PR c/35449
26178         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
26179
26180 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
26181
26182         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
26183         order of elements for big-endian.
26184
26185 2014-03-25  Richard Biener  <rguenther@suse.de>
26186
26187         PR middle-end/60635
26188         * gimplify-me.c (gimple_regimplify_operands): Update the
26189         re-gimplifed stmt.
26190
26191 2014-03-25  Martin Jambor  <mjambor@suse.cz>
26192
26193         PR ipa/59176
26194         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
26195         (lto_output_varpool_node): Likewise.
26196         (input_overwrite_node): Likewise.
26197         (input_varpool_node): Likewise.
26198
26199 2014-03-25  Richard Biener  <rguenther@suse.de>
26200
26201         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
26202         (run_gcc): Likewise.
26203
26204 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
26205
26206         * combine.c (simplify_compare_const): Add MODE argument.
26207         Handle mode_width 0 as very large mode_width.
26208         (try_combine, simplify_comparison): Adjust callers.
26209
26210         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
26211         type to avoid signed integer overflow.
26212         * explow.c (plus_constant): Likewise.
26213
26214 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26215
26216         * doc/generic.texi: Correct typos.
26217
26218 2014-03-24  Tobias Burnus  <burnus@net-b.de>
26219
26220         * doc/invoke.texi (-flto): Expand section about
26221         using static libraries with LTO.
26222
26223 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26224
26225         PR rtl-optimization/60501
26226         * optabs.def (addptr3_optab): New optab.
26227         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
26228         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
26229         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
26230
26231         * lra.c (emit_add3_insn): Use the addptr pattern if available.
26232
26233         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
26234
26235 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
26236
26237         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
26238         _mm512_set1_pd.
26239
26240         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
26241         (_mm256_undefined_ps): Define.
26242         (_mm256_undefined_pd): Define.
26243         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
26244         (_mm_undefined_pd): Define.
26245         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
26246         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
26247         (_mm512_undefined_ps): Define.
26248         (_mm512_undefined_pd): Define.
26249         Use _mm*_undefined_*.
26250         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
26251
26252 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
26253
26254         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
26255         (lshr_simd): DI mode added.
26256         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
26257         (aarch64_ushr_simddi): Likewise.
26258         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
26259         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
26260         (vshrd_n_u64): Likewise.
26261
26262 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26263
26264         * Makefile.in (s-macro_list): Depend on cc1.
26265
26266 2014-03-23  Teresa Johnson  <tejohnson@google.com>
26267
26268         * ipa-utils.c (ipa_print_order): Use specified dump file.
26269
26270 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
26271
26272         PR rtl-optimization/60601
26273         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
26274
26275         * gcc.c (eval_spec_function): Initialize save_growing_value.
26276
26277 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
26278
26279         PR sanitizer/60613
26280         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
26281         code == MINUS_EXPR, never swap op0 with op1.
26282
26283         * toplev.c (init_local_tick): Avoid signed integer multiplication
26284         overflow.
26285         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
26286         shift by first operand's bitsize.
26287
26288 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
26289
26290         PR target/60610
26291         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
26292         redefine to 1 or 0.
26293         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
26294         TARGET_ISA_64BIT_P(x).
26295
26296 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26297
26298         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
26299         pattern for vector nor instead of subtract from splat(-1).
26300         (altivec_expand_vec_perm_const_le): Likewise.
26301
26302 2014-03-21  Richard Henderson  <rth@twiddle.net>
26303
26304         PR target/60598
26305         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
26306         related insns after epilogue_completed.
26307
26308 2014-03-21  Martin Jambor  <mjambor@suse.cz>
26309
26310         PR ipa/59176
26311         * cgraph.h (symtab_node): New flag body_removed.
26312         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
26313         when removing bodies.
26314         * symtab.c (dump_symtab_base): Dump body_removed flag.
26315         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
26316         had their bodies removed.
26317
26318 2014-03-21  Martin Jambor  <mjambor@suse.cz>
26319
26320         PR ipa/60419
26321         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
26322         in the border.
26323
26324 2014-03-21  Richard Biener  <rguenther@suse.de>
26325
26326         PR tree-optimization/60577
26327         * tree-core.h (struct tree_base): Document nothrow_flag use
26328         in DECL_NONALIASED.
26329         * tree.h (DECL_NONALIASED): New.
26330         (may_be_aliased): Adjust.
26331         * coverage.c (build_var): Set DECL_NONALIASED.
26332
26333 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26334
26335         * expr.c (expand_expr_real_1): Remove outdated comment.
26336
26337 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
26338
26339         PR middle-end/60597
26340         * ira.c (adjust_cleared_regs): Call copy_rtx on
26341         *reg_equiv[REGNO (loc)].src_p before passing it to
26342         simplify_replace_fn_rtx.
26343
26344         PR target/60568
26345         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
26346         into CONST, put pic register as first operand of PLUS.  Use
26347         gen_const_mem for both 32-bit and 64-bit PIC got loads.
26348
26349 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26350
26351         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
26352
26353 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26354
26355         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
26356         around for store forwarding issue in the FPU on the UT699.
26357         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
26358         loads and operations if -mfix-ut699 is specified.
26359         (divtf3_hq): Tweak attribute.
26360         (sqrttf2_hq): Likewise.
26361
26362 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26363
26364         * calls.c (store_one_arg): Remove incorrect const qualification on the
26365         type of the temporary.
26366         * cfgexpand.c (expand_return): Likewise.
26367         * expr.c (expand_constructor): Likewise.
26368         (expand_expr_real_1): Likewise.
26369
26370 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26371
26372         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
26373         of parts.
26374
26375 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26376
26377         PR target/60039
26378         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
26379
26380 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
26381
26382         * config/arm/aarch-common-protos.h
26383         (alu_cost_table): Fix spelling of "extend".
26384         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
26385
26386 2014-03-19  Richard Biener  <rguenther@suse.de>
26387
26388         PR middle-end/60553
26389         * tree-core.h (tree_type_common): Re-order pointer members
26390         to reduce recursion depth during GC walks.
26391
26392 2014-03-19  Marek Polacek  <polacek@redhat.com>
26393
26394         PR sanitizer/60569
26395         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
26396         before accessing it.
26397
26398 2014-03-19  Richard Biener  <rguenther@suse.de>
26399
26400         PR lto/59543
26401         * lto-streamer-in.c (input_function): In WPA stage do not drop
26402         debug stmts.
26403
26404 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
26405
26406         PR tree-optimization/60559
26407         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
26408         with build_zero_cst assignment.
26409
26410 2014-03-18  Kai Tietz  <ktietz@redhat.com>
26411
26412         PR rtl-optimization/56356
26413         * sdbout.c (sdbout_parms): Verify that parms'
26414         incoming argument is valid.
26415         (sdbout_reg_parms): Likewise.
26416
26417 2014-03-18  Richard Henderson  <rth@redhat.com>
26418
26419         PR target/60562
26420         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
26421         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
26422         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
26423
26424 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
26425
26426         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
26427         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
26428         Italicize plugin event names in description.  Explain that
26429         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
26430         Remind that no GCC functions should be called after PLUGIN_FINISH.
26431         Explain what pragmas with expansion are.
26432
26433 2014-03-18  Martin Liska  <mliska@suse.cz>
26434
26435         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
26436         gimple call statement is update.
26437         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
26438         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
26439
26440 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
26441
26442         PR sanitizer/60557
26443         * ubsan.c (ubsan_instrument_unreachable): Call
26444         initialize_sanitizer_builtins.
26445         (ubsan_pass): Likewise.
26446
26447         PR sanitizer/60535
26448         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
26449         varpool_finalize_decl instead of rest_of_decl_compilation.
26450
26451 2014-03-18  Richard Biener  <rguenther@suse.de>
26452
26453         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
26454         by using bitmap_and_compl instead of bitmap_and_compl_into.
26455         (df_rd_transfer_function): Likewise.
26456
26457 2014-03-18  Richard Biener  <rguenther@suse.de>
26458
26459         * doc/lto.texi (fresolution): Fix typo.
26460
26461 2014-03-18  Richard Biener  <rguenther@suse.de>
26462
26463         * doc/invoke.texi (flto): Update for changes in 4.9.
26464
26465 2014-03-18  Richard Biener  <rguenther@suse.de>
26466
26467         * doc/loop.texi: Remove section on the removed lambda framework.
26468         Update loop docs with recent changes in preserving loop structure.
26469
26470 2014-03-18  Richard Biener  <rguenther@suse.de>
26471
26472         * doc/lto.texi (-fresolution): Document.
26473
26474 2014-03-18  Richard Biener  <rguenther@suse.de>
26475
26476         * doc/contrib.texi: Adjust my name.
26477
26478 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
26479
26480         PR ipa/58721
26481         * internal-fn.c: Include diagnostic-core.h.
26482         (expand_BUILTIN_EXPECT): New function.
26483         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
26484         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
26485         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
26486         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
26487         IFN_BUILTIN_EXPECT.
26488         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
26489         Revert 3 argument __builtin_expect code.
26490         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
26491         * gimple-fold.c (gimple_fold_call): Likewise.
26492         * tree.h (fold_builtin_expect): New prototype.
26493         * builtins.c (build_builtin_expect_predicate): Add predictor
26494         argument, if non-NULL, create 3 argument __builtin_expect.
26495         (fold_builtin_expect): No longer static.  Add ARG2 argument,
26496         pass it through to build_builtin_expect_predicate.
26497         (fold_builtin_2): Adjust caller.
26498         (fold_builtin_3): Handle BUILT_IN_EXPECT.
26499         * internal-fn.def (BUILTIN_EXPECT): New.
26500
26501 2014-03-18  Tobias Burnus  <burnus@net-b.de>
26502
26503         PR ipa/58721
26504         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
26505         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
26506         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
26507
26508 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
26509
26510         PR ipa/58721
26511         * predict.c (combine_predictions_for_bb): Fix up formatting.
26512         (expr_expected_value_1, expr_expected_value): Add predictor argument,
26513         fill what it points to if non-NULL.
26514         (tree_predict_by_opcode): Adjust caller, use the predictor.
26515         * predict.def (PRED_COMPARE_AND_SWAP): Add.
26516
26517 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
26518
26519         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
26520         proper constant for the store mode.
26521
26522 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
26523
26524         * symtab.c (change_decl_assembler_name): Fix transparent alias
26525         chain construction.
26526
26527 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
26528
26529         * config/aarch64/aarch64.c: Correct the comments about the
26530         aarch64 stack layout.
26531
26532 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
26533
26534         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
26535         check for GF_OMP_FOR_KIND_FOR.
26536
26537 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
26538
26539         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
26540         ymm and zmm register names.
26541
26542 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
26543
26544         PR target/60516
26545         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
26546         note creation for the 2010-08-31 changes.
26547
26548 2014-03-17  Marek Polacek  <polacek@redhat.com>
26549
26550         PR middle-end/60534
26551         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
26552         as -fno-tree-loop-vectorize.
26553         (expand_omp_simd): Likewise.
26554
26555 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26556
26557         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
26558         (eligible_for_call_delay): New prototype.
26559         * config/sparc/sparc.c (tls_call_delay): Rename into...
26560         (eligible_for_call_delay): ...this.  Return false if the instruction
26561         cannot be put in the delay slot of a branch.
26562         (eligible_for_restore_insn): Simplify.
26563         (eligible_for_return_delay): Return false if the instruction cannot be
26564         put in the delay slot of a branch and simplify.
26565         (eligible_for_sibcall_delay): Return false if the instruction cannot be
26566         put in the delay slot of a branch.
26567         * config/sparc/sparc.md (fix_ut699): New attribute.
26568         (tls_call_delay): Delete.
26569         (in_call_delay): Reimplement.
26570         (eligible_for_sibcall_delay): Rename into...
26571         (in_sibcall_delay): ...this.
26572         (eligible_for_return_delay): Rename into...
26573         (in_return_delay): ...this.
26574         (in_branch_delay): Reimplement.
26575         (in_uncond_branch_delay): Delete.
26576         (in_annul_branch_delay): Delete.
26577
26578 2014-03-14  Richard Henderson  <rth@redhat.com>
26579
26580         PR target/60525
26581         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26582         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26583         (*floathi<X87MODEF>2_i387_with_temp): Remove.
26584         (floathi splitters): Remove.
26585         (float<SWI48x>xf2): New pattern.
26586         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
26587         code that tried to handle DImode for 32-bit, but which was excluded
26588         by the pattern's condition.  Drop allocation of stack temporary.
26589         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26590         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26591         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26592         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26593         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26594         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26595         (*float<SWI48><MODEF>2_sse_interunit): Remove.
26596         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26597         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26598         (*float<SWI48x><X87MODEF>2_i387): Remove.
26599         (all float _with_temp splitters): Remove.
26600         (*float<SWI48x><MODEF>2_i387): New pattern.
26601         (*float<SWI48><MODEF>2_sse): New pattern.
26602         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26603         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26604
26605 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
26606             Marek Polacek  <polacek@redhat.com>
26607
26608         PR middle-end/60484
26609         * common.opt (dump_base_name_prefixed): New Variable.
26610         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26611         if x_dump_base_name_prefixed is already set, set it at the end.
26612
26613 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
26614
26615         PR rtl-optimization/60508
26616         * lra-constraints.c (get_reload_reg): Add new parameter
26617         in_subreg_p.
26618         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26619         Pass the new parameter values.
26620
26621 2014-03-14  Richard Biener  <rguenther@suse.de>
26622
26623         * common.opt: Revert unintented changes from r205065.
26624         * opts.c: Likewise.
26625
26626 2014-03-14  Richard Biener  <rguenther@suse.de>
26627
26628         PR middle-end/60518
26629         * cfghooks.c (split_block): Properly adjust all loops the
26630         block was a latch of.
26631
26632 2014-03-14  Martin Jambor  <mjambor@suse.cz>
26633
26634         PR lto/60461
26635         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26636         and simplify it.
26637
26638 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
26639
26640         PR target/59396
26641         * config/avr/avr.c (avr_set_current_function): Pass function name
26642         through default_strip_name_encoding before sanity checking instead
26643         of skipping the first char of the assembler name.
26644
26645 2014-03-13  Richard Henderson  <rth@redhat.com>
26646
26647         PR debug/60438
26648         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26649         (ix86_force_to_memory, ix86_free_from_memory): Remove.
26650         * config/i386/i386-protos.h: Likewise.
26651         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26652         in the expander instead of a splitter.
26653         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26654         any possibility of requiring a memory.
26655         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26656         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26657         (fp branch splitters): Update for ix86_split_fp_branch.
26658         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26659         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26660         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26661         (*fop_<MODEF>_2_i387): Remove f/r alternative.
26662         (*fop_<MODEF>_3_i387): Likewise.
26663         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26664         (splitters for the fop_* register patterns): Remove.
26665         (fscalexf4_i387): Rename from *fscalexf4_i387.
26666         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26667
26668 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
26669
26670         PR tree-optimization/59779
26671         * tree-dfa.c (get_ref_base_and_extent): Use double_int
26672         type for bitsize and maxsize instead of HOST_WIDE_INT.
26673
26674 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
26675
26676         PR rtl-optimization/57320
26677         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26678         the CFG after thread_prologue_and_epilogue_insns.
26679
26680 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
26681
26682         PR rtl-optimization/57189
26683         * lra-constraints.c (process_alt_operands): Disfavor spilling
26684         vector pseudos.
26685
26686 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
26687
26688         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26689
26690 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
26691
26692         PR tree-optimization/59025
26693         PR middle-end/60418
26694         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26695         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26696
26697 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
26698
26699         PR target/60486
26700         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26701         calls of avr_out_plus_1.
26702
26703 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
26704
26705         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26706         BB's single pred and update the father loop's latch info later.
26707
26708 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26709
26710         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26711         (VEC_M): Likewise.
26712         (VEC_N): Likewise.
26713         (VEC_R): Likewise.
26714         (VEC_base): Likewise.
26715         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26716         registers, we need to swap double words in little endian mode.
26717
26718         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26719         to be a container mode for 128-bit integer operations added in ISA
26720         2.07.  Unlike TImode and PTImode, the preferred register set is
26721         the Altivec/VMX registers for the 128-bit operations.
26722
26723         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26724         declarations.
26725         (rs6000_split_128bit_ok_p): Likewise.
26726
26727         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26728         macros for creating ISA 2.07 normal and overloaded builtin
26729         functions with 3 arguments.
26730         (BU_P8V_OVERLOAD_3): Likewise.
26731         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26732         for use as overloaded functions.
26733         (VPERM_1TI_UNS): Likewise.
26734         (VSEL_1TI): Likewise.
26735         (VSEL_1TI_UNS): Likewise.
26736         (ST_INTERNAL_1ti): Likewise.
26737         (LD_INTERNAL_1ti): Likewise.
26738         (XXSEL_1TI): Likewise.
26739         (XXSEL_1TI_UNS): Likewise.
26740         (VPERM_1TI): Likewise.
26741         (VPERM_1TI_UNS): Likewise.
26742         (XXPERMDI_1TI): Likewise.
26743         (SET_1TI): Likewise.
26744         (LXVD2X_V1TI): Likewise.
26745         (STXVD2X_V1TI): Likewise.
26746         (VEC_INIT_V1TI): Likewise.
26747         (VEC_SET_V1TI): Likewise.
26748         (VEC_EXT_V1TI): Likewise.
26749         (EQV_V1TI): Likewise.
26750         (NAND_V1TI): Likewise.
26751         (ORC_V1TI): Likewise.
26752         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26753         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
26754         overloaded builtin.
26755         (VADDUQM): Likewise.
26756         (VSUBCUQ): Likewise.
26757         (VADDEUQM): Likewise.
26758         (VADDECUQ): Likewise.
26759         (VSUBEUQM): Likewise.
26760         (VSUBECUQ): Likewise.
26761
26762         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26763         __int128_t and __uint128_t types.
26764         (__uint128_type): Likewise.
26765         (altivec_categorize_keyword): Add support for vector __int128_t,
26766         vector __uint128_t, vector __int128, and vector unsigned __int128
26767         as a container type for TImode operations that need to be done in
26768         VSX/Altivec registers.
26769         (rs6000_macro_to_expand): Likewise.
26770         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26771         to support 128-bit integer instructions vaddcuq, vadduqm,
26772         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26773         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26774
26775         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26776         for V1TImode, and set up preferences to use VSX/Altivec registers.
26777         Setup VSX reload handlers.
26778         (rs6000_debug_reg_global): Likewise.
26779         (rs6000_init_hard_regno_mode_ok): Likewise.
26780         (rs6000_preferred_simd_mode): Likewise.
26781         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26782         (easy_altivec_constant): Likewise.
26783         (output_vec_const_move): Likewise.
26784         (rs6000_expand_vector_set): Convert V1TImode set and extract to
26785         simple move.
26786         (rs6000_expand_vector_extract): Likewise.
26787         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26788         addressing.
26789         (rs6000_const_vec): Add support for V1TImode.
26790         (rs6000_emit_le_vsx_load): Swap double words when loading or
26791         storing TImode/V1TImode.
26792         (rs6000_emit_le_vsx_store): Likewise.
26793         (rs6000_emit_le_vsx_move): Likewise.
26794         (rs6000_emit_move): Add support for V1TImode.
26795         (altivec_expand_ld_builtin): Likewise.
26796         (altivec_expand_st_builtin): Likewise.
26797         (altivec_expand_vec_init_builtin): Likewise.
26798         (altivec_expand_builtin): Likewise.
26799         (rs6000_init_builtins): Add support for V1TImode type.  Add
26800         support for ISA 2.07 128-bit integer builtins.  Define type names
26801         for the VSX/Altivec vector types.
26802         (altivec_init_builtins): Add support for overloaded vector
26803         functions with V1TImode type.
26804         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26805         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26806         external function.
26807         (rs6000_split_128bit_ok_p): Likewise.
26808         (rs6000_handle_altivec_attribute): Create V1TImode from vector
26809         __int128_t and vector __uint128_t.
26810
26811         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26812         and mode attributes.
26813         (VSX_M): Likewise.
26814         (VSX_M2): Likewise.
26815         (VSm): Likewise.
26816         (VSs): Likewise.
26817         (VSr): Likewise.
26818         (VSv): Likewise.
26819         (VS_scalar): Likewise.
26820         (VS_double): Likewise.
26821         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26822
26823         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26824         we support the ISA 2.07 128-bit integer arithmetic instructions.
26825         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26826         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26827         and TImode types for use with the builtin functions.
26828         (V1TI_type_node): Likewise.
26829         (unsigned_V1TI_type_node): Likewise.
26830         (intTI_type_internal_node): Likewise.
26831         (uintTI_type_internal_node): Likewise.
26832
26833         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26834         128-bit builtin functions.
26835         (UNSPEC_VADDEUQM): Likewise.
26836         (UNSPEC_VADDECUQ): Likewise.
26837         (UNSPEC_VSUBCUQ): Likewise.
26838         (UNSPEC_VSUBEUQM): Likewise.
26839         (UNSPEC_VSUBECUQ): Likewise.
26840         (VM): Add V1TImode to vector mode iterators.
26841         (VM2): Likewise.
26842         (VI_unit): Likewise.
26843         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26844         (altivec_vaddcuq): Likewise.
26845         (altivec_vsubuqm): Likewise.
26846         (altivec_vsubcuq): Likewise.
26847         (altivec_vaddeuqm): Likewise.
26848         (altivec_vaddecuq): Likewise.
26849         (altivec_vsubeuqm): Likewise.
26850         (altivec_vsubecuq): Likewise.
26851
26852         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26853         mode iterators.
26854         (BOOL_128): Likewise.
26855         (BOOL_REGS_OUTPUT): Likewise.
26856         (BOOL_REGS_OP1): Likewise.
26857         (BOOL_REGS_OP2): Likewise.
26858         (BOOL_REGS_UNARY): Likewise.
26859         (BOOL_REGS_AND_CR0): Likewise.
26860
26861         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26862         128-bit integer builtin support.
26863         (vec_vadduqm): Likewise.
26864         (vec_vaddecuq): Likewise.
26865         (vec_vaddeuqm): Likewise.
26866         (vec_vsubecuq): Likewise.
26867         (vec_vsubeuqm): Likewise.
26868         (vec_vsubcuq): Likewise.
26869         (vec_vsubuqm): Likewise.
26870
26871         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26872         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26873         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26874         128-bit integer add/subtract to ISA 2.07.
26875
26876 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26877
26878         * config/arc/arc.c (arc_predicate_delay_insns):
26879         Fix third argument passed to conditionalize_nonjump.
26880
26881 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
26882
26883         * config/aarch64/aarch64-builtins.c
26884         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26885         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26886         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26887         instead of __builtin_lfloor.
26888         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26889
26890 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26891
26892         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26893         (tree_ssa_ifcombine_bb_1): New function.
26894         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
26895         is an empty forwarder block to then_bb or vice versa and then_bb
26896         and else_bb are effectively swapped.
26897
26898 2014-03-12  Christian Bruel  <christian.bruel@st.com>
26899
26900         PR target/60264
26901         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26902         REG_CFA_DEF_CFA note.
26903         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26904         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26905
26906 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26907
26908         PR tree-optimization/60454
26909         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26910
26911 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26912
26913         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26914         Do not define target_cpu_default2 to generic.
26915         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26916         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26917         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26918
26919 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26920             Marc Glisse  <marc.glisse@inria.fr>
26921
26922         PR tree-optimization/60502
26923         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26924         instead of build_low_bits_mask.
26925
26926 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26927
26928         PR middle-end/60482
26929         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26930         if there are multiple uses, but op doesn't live on E edge.
26931         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26932         clobber stmts before __builtin_unreachable.
26933
26934 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
26935
26936         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26937         hard_frame_pointer_rtx.
26938         * cse.c (cse_insn): Remove volatile check.
26939         * cselib.c (cselib_process_insn): Likewise.
26940         * dse.c (scan_insn): Likewise.
26941
26942 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26943
26944         * config/arc/arc.c (conditionalize_nonjump): New function,
26945         broken out of ...
26946         (arc_ifcvt): ... this.
26947         (arc_predicate_delay_insns): Use it.
26948
26949 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26950
26951         * config/arc/predicates.md (extend_operand): During/after reload,
26952         allow const_int_operand.
26953         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26954         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
26955         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26956         to "i".
26957         (umulsi3_highpart_i): Likewise.
26958
26959 2014-03-11  Richard Biener  <rguenther@suse.de>
26960
26961         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26962         Add asserts to guard possible wrong-code bugs.
26963
26964 2014-03-11  Richard Biener  <rguenther@suse.de>
26965
26966         PR tree-optimization/60429
26967         PR tree-optimization/60485
26968         * tree-ssa-structalias.c (set_union_with_increment): Properly
26969         take into account all fields that overlap the shifted vars.
26970         (do_sd_constraint): Likewise.
26971         (do_ds_constraint): Likewise.
26972         (get_constraint_for_ptr_offset): Likewise.
26973
26974 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
26975
26976         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26977         (nios2_compute_frame_layout):
26978         Add calculation of cfun->machine->fp_save_offset.
26979         (nios2_expand_prologue): Correct setting of frame pointer register
26980         in prologue.
26981         (nios2_expand_epilogue): Update recovery of stack pointer from
26982         frame pointer accordingly.
26983         (nios2_initial_elimination_offset): Update calculation of offset
26984         for eliminating to HARD_FRAME_POINTER_REGNUM.
26985
26986 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
26987
26988         PR ipa/60457
26989         * ipa.c (symtab_remove_unreachable_nodes): Don't call
26990         cgraph_get_create_node on VAR_DECLs.
26991
26992 2014-03-10  Richard Biener  <rguenther@suse.de>
26993
26994         PR middle-end/60474
26995         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26996
26997 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
26998
26999         * config/vms/vms.opt (vms_float_format): New variable.
27000
27001 2014-03-08  Tobias Burnus  <burnus@net-b.de>
27002
27003         * doc/invoke.texi (-fcilkplus): Update implementation status.
27004
27005 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
27006             Richard Biener  <rguenther@suse.de>
27007
27008         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
27009         consistently accross all TUs.
27010         (run_gcc): Enable -fshort-double automatically at link at link-time
27011         and disallow override.
27012
27013 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
27014
27015         PR target/58271
27016         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
27017         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
27018         if they can't be used.
27019
27020 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27021
27022         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
27023         for Solaris 11/x86 ld.
27024         * configure: Regenerate.
27025
27026 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27027
27028         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
27029         (LIB_TLS_SPEC): Save as ld_tls_libs.
27030         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
27031         (HAVE_AS_IX86_TLSLDM): New test.
27032         * configure, config.in: Regenerate.
27033         * config/i386/i386.c (legitimize_tls_address): Fall back to
27034         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
27035         cannot support TLS_MODEL_LOCAL_DYNAMIC.
27036         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
27037         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
27038
27039 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
27040
27041         * common.opt (fira-loop-pressure): Mark as optimization.
27042
27043 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
27044
27045         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
27046         an OpenMP mappable type.
27047
27048 2014-03-06  Matthias Klose  <doko@ubuntu.com>
27049
27050         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
27051         MULTILIB_OSDIRNAMES is not defined.
27052
27053 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
27054             Meador Inge  <meadori@codesourcery.com>
27055
27056         PR target/58595
27057         * config/arm/arm.c (arm_tls_symbol_p): Remove.
27058         (arm_legitimize_address): Call legitimize_tls_address for any
27059         arm_tls_referenced_p expression, handle constant addend.  Call it
27060         before testing for !TARGET_ARM.
27061         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
27062
27063 2014-03-06  Richard Biener  <rguenther@suse.de>
27064
27065         PR middle-end/60445
27066         PR lto/60424
27067         PR lto/60427
27068         Revert
27069         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
27070
27071         * tree-streamer.c (record_common_node): Assert we don't record
27072         nodes with type double.
27073         (preload_common_node): Skip type double, complex double and double
27074         pointer since it is now frontend dependent due to fshort-double option.
27075
27076 2014-03-06  Richard Biener  <rguenther@suse.de>
27077
27078         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
27079         or -fno-lto is specified and the linker has full plugin support.
27080         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
27081         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
27082         * lto-wrapper.c (merge_and_complain): Merge compile-time
27083         optimization levels.
27084         (run_gcc): And pass it through to the link options.
27085
27086 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
27087
27088         PR debug/60381
27089         Revert:
27090         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27091         PR debug/59992
27092         * cselib.c (remove_useless_values): Skip to avoid quadratic
27093         behavior if the condition moved from...
27094         (cselib_process_insn): ... here holds.
27095
27096 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
27097
27098         PR plugins/59335
27099         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
27100         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
27101
27102         PR plugins/59335
27103         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
27104         (TM_H): Add x86-tune.def.
27105
27106 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27107
27108         * config/aarch64/aarch64.c (generic_tunings):
27109         Use cortexa57_extra_costs.
27110
27111 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
27112
27113         PR lto/60404
27114         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
27115         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
27116         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
27117         cost for in_lto_p.
27118
27119 2014-03-04  Heiher  <r@hev.cc>
27120
27121         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
27122         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
27123
27124 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
27125
27126         * config/i386/predicates.md (const2356_operand): Change to ...
27127         (const2367_operand): ... this.
27128         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
27129         const2367_operand.
27130         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27131         (*avx512pf_scatterpf<mode>sf): Ditto.
27132         (avx512pf_scatterpf<mode>df): Ditto.
27133         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27134         (*avx512pf_scatterpf<mode>df): Ditto.
27135         * config/i386/i386.c (ix86_expand_builtin): Update
27136         incorrect hint operand error message.
27137
27138 2014-03-04  Richard Biener  <rguenther@suse.de>
27139
27140         * lto-section-in.c (lto_get_section_data): Fix const cast.
27141
27142 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
27143
27144         * tree-streamer.c (record_common_node): Assert we don't record
27145         nodes with type double.
27146         (preload_common_node): Skip type double, complex double and double
27147         pointer since it is now frontend dependent due to fshort-double option.
27148
27149 2014-03-04  Richard Biener  <rguenther@suse.de>
27150
27151         PR lto/60405
27152         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
27153         (lto_input_toplevel_asms): Likewise.
27154         * lto-section-in.c (lto_get_section_data): Instead do it here
27155         for every section.
27156
27157 2014-03-04  Richard Biener  <rguenther@suse.de>
27158
27159         PR tree-optimization/60382
27160         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
27161         dead PHIs a reduction.
27162
27163 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
27164
27165         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
27166         hint value.
27167         (_mm_prefetch): Move out of GCC target("sse") pragma.
27168         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
27169         GCC target("prfchw") pragma.
27170         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
27171         for locality <= 2.
27172         * config/i386/i386.c (ix86_option_override_internal): Enable
27173         -mprfchw with -mprefetchwt1.
27174
27175 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27176
27177         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
27178         Mark as varying.
27179
27180 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27181
27182         * opts.h (CL_PCH_IGNORE): Define.
27183         * targhooks.c (option_affects_pch_p):
27184         Return false for options that have CL_PCH_IGNORE set.
27185         * opt-functions.awk: Process PchIgnore.
27186         * doc/options.texi: Document PchIgnore.
27187
27188         * config/arc/arc.opt (misize): Add PchIgnore property.
27189
27190 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27191
27192         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
27193         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
27194         constraint on constants to permit them being loaded into
27195         GENERAL_REGS or BASE_REGS.
27196
27197 2014-03-03  Nick Clifton  <nickc@redhat.com>
27198
27199         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
27200         anti-cacnonical alternatives.
27201         (negandhi3_real): New pattern.
27202         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
27203
27204 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27205
27206         * config/avr/avr-mcus.def: Remove atxmega16x1.
27207         * config/avr/avr-tables.opt: Regenerate.
27208         * config/avr/t-multilib: Regenerate.
27209         * doc/avr-mmcu.texi: Regenerate.
27210
27211 2014-03-03  Tobias Grosser  <tobias@grosser.es>
27212             Mircea Namolaru  <mircea.namolaru@inria.fr>
27213
27214         PR tree-optimization/58028
27215         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
27216         scalar dimensions.
27217
27218 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27219
27220         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
27221         not handled by recognizers.
27222
27223 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
27224
27225         PR middle-end/60175
27226         * function.c (expand_function_end): Don't emit
27227         clobber_return_register sequence if clobber_after is a BARRIER.
27228         * cfgexpand.c (construct_exit_block): Append instructions before
27229         return_label to prev_bb.
27230
27231 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27232
27233         * config/rs6000/constraints.md: Document reserved use of "wc".
27234
27235 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
27236
27237         PR ipa/60150
27238         * ipa.c (function_and_variable_visibility): When dissolving comdat
27239         group, also set all symbols to local.
27240
27241 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
27242
27243         PR ipa/60306
27244
27245         Revert:
27246         2013-12-14  Jan Hubicka  <jh@suse.cz>
27247         PR middle-end/58477
27248         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
27249
27250 2014-03-02  Jon Beniston  <jon@beniston.com>
27251
27252         PR bootstrap/48230
27253         PR bootstrap/50927
27254         PR bootstrap/52466
27255         PR target/46898
27256         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
27257           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
27258         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
27259         (simple_return, *simple_return): New patterns
27260         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
27261         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
27262
27263 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
27264
27265         * dwarf2out.c (gen_subprogram_die): Tidy.
27266
27267 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
27268
27269         PR target/60071
27270         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
27271         (*mov_t_msb_neg_negc): ... this new insn.
27272
27273 2014-02-28  Jason Merrill  <jason@redhat.com>
27274
27275         PR c++/58678
27276         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
27277         function.
27278
27279 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
27280
27281         PR c++/60314
27282         * dwarf2out.c (decltype_auto_die): New static.
27283         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
27284         (gen_type_die_with_usage): Handle 'decltype(auto)'.
27285         (is_cxx_auto): Likewise.
27286
27287 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
27288
27289         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
27290         we are not using general regs only.
27291
27292 2014-02-28  Richard Biener  <rguenther@suse.de>
27293
27294         PR target/60280
27295         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
27296         previous fix and only allow to remove trivial pre-headers
27297         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
27298         (remove_forwarder_block): Properly update the latch of a loop.
27299
27300 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27301
27302         PR debug/59992
27303         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
27304         (cselib_preserved_hash_table): New.
27305         (preserve_constants_and_equivs): Move preserved vals to it.
27306         (cselib_find_slot): Look it up first.
27307         (cselib_init): Initialize it.
27308         (cselib_finish): Release it.
27309         (dump_cselib_table): Dump it.
27310
27311 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27312
27313         PR debug/59992
27314         * cselib.c (remove_useless_values): Skip to avoid quadratic
27315         behavior if the condition moved from...
27316         (cselib_process_insn): ... here holds.
27317
27318 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27319
27320         PR debug/57232
27321         * var-tracking.c (vt_initialize): Apply the same condition to
27322         preserve the CFA base value.
27323
27324 2014-02-28  Joey Ye  <joey.ye@arm.com>
27325
27326         PR target/PR60169
27327         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
27328         if reload in progress or completed.
27329
27330 2014-02-28  Tobias Burnus  <burnus@net-b.de>
27331
27332         PR middle-end/60147
27333         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
27334         NAMELIST_DECL.
27335
27336 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
27337
27338         * doc/tm.texi.in (Condition Code Status): Update documention for
27339         relative locations of cc0-setter and cc0-user.
27340
27341 2014-02-27  Jeff Law  <law@redhat.com>
27342
27343         PR rtl-optimization/52714
27344         * combine.c (try_combine): When splitting an unrecognized PARALLEL
27345         into two independent simple sets, if I3 is a jump, ensure the
27346         pattern we place into I3 is a (set (pc) ...).
27347
27348 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
27349             Jeff Law  <law@redhat.com>
27350
27351         PR rtl-optimization/49847
27352         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
27353         are in different blocks.
27354         * doc/tm.texi (Condition Code Status): Update documention for
27355         relative locations of cc0-setter and cc0-user.
27356
27357 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27358
27359         PR target/59222
27360         * lra.c (lra_emit_add): Check SUBREG too.
27361
27362 2014-02-27  Andreas Schwab  <schwab@suse.de>
27363
27364         * config/m68k/m68k.c (m68k_option_override): Disable
27365         -flive-range-shrinkage for classic m68k.
27366         (m68k_override_options_after_change): Likewise.
27367
27368 2014-02-27  Marek Polacek  <polacek@redhat.com>
27369
27370         PR middle-end/59223
27371         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
27372         -Wmaybe-uninitialized.
27373
27374 2014-02-27  Alan Modra  <amodra@gmail.com>
27375
27376         PR target/57936
27377         * reload1.c (emit_input_reload_insns): When reload_override_in,
27378         set old to rl->in_reg when rl->in_reg is a subreg.
27379
27380 2014-02-26  Richard Biener  <rguenther@suse.de>
27381
27382         PR bootstrap/60343
27383         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
27384
27385 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
27386
27387         * common/config/i386/predicates.md (const1256_operand): Remove.
27388         (const2356_operand): New.
27389         (const_1_to_2_operand): Remove.
27390         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27391         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27392         (*avx512pf_gatherpf<mode>sf): Ditto.
27393         (avx512pf_gatherpf<mode>df): Ditto.
27394         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27395         (*avx512pf_gatherpf<mode>df): Ditto.
27396         (avx512pf_scatterpf<mode>sf): Ditto.
27397         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27398         (*avx512pf_scatterpf<mode>sf): Ditto.
27399         (avx512pf_scatterpf<mode>df): Ditto.
27400         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27401         (*avx512pf_scatterpf<mode>df): Ditto.
27402         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
27403
27404 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
27405
27406         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
27407         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
27408         (_mm512_mask_testn_epi64_mask): Move to ...
27409         * config/i386/avx512cdintrin.h: Here.
27410         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
27411         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
27412         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
27413         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
27414         TARGET_AVX512F from TARGET_AVX512CD.
27415
27416 2014-02-26  Richard Biener  <rguenther@suse.de>
27417
27418         PR ipa/60327
27419         * ipa.c (walk_polymorphic_call_targets): Properly guard
27420         call to inline_update_overall_summary.
27421
27422 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
27423
27424         PR target/60280
27425         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
27426         and latches only if requested.  Fix latch if it is removed.
27427         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
27428         LOOPS_HAVE_PREHEADERS.
27429
27430 2014-02-25  Andrew Pinski  <apinski@cavium.com>
27431
27432         * builtins.c (expand_builtin_thread_pointer): Create a new target
27433         when the target is NULL.
27434
27435 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
27436
27437         PR rtl-optimization/60317
27438         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27439         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27440         * lra-assigns.c: Include params.h.
27441         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
27442         other reload pseudos considerations.
27443
27444 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27445
27446         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
27447         to use canonical form for nor<mode>3.
27448
27449 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27450
27451         PR target/55426
27452         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
27453         conversions.
27454
27455 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
27456
27457         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
27458         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
27459         (ix86_handle_option): Handle OPT_mprefetchwt1.
27460         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
27461         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27462         PREFETCHWT1 CPUID.
27463         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27464         OPTION_MASK_ISA_PREFETCHWT1.
27465         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
27466         (PTA_PREFETCHWT1): New.
27467         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
27468         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
27469         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
27470         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
27471         (*prefetch_avx512pf_<mode>_: Change into ...
27472         (*prefetch_prefetchwt1_<mode>: This.
27473         * config/i386/i386.opt (mprefetchwt1): New.
27474         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
27475         (_mm_prefetch): Handle intent to write.
27476         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
27477
27478 2014-02-25  Richard Biener  <rguenther@suse.de>
27479
27480         PR middle-end/60291
27481         * emit-rtl.c (mem_attrs_htab): Remove.
27482         (mem_attrs_htab_hash): Likewise.
27483         (mem_attrs_htab_eq): Likewise.
27484         (set_mem_attrs): Always allocate new mem-attrs when something changed.
27485         (init_emit_once): Do not allocate mem_attrs_htab.
27486
27487 2014-02-25  Richard Biener  <rguenther@suse.de>
27488
27489         PR lto/60319
27490         * lto-opts.c (lto_write_options): Output non-explicit conservative
27491         -fwrapv, -fno-trapv and -fno-strict-overflow.
27492         * lto-wrapper.c (merge_and_complain): Handle merging those options.
27493         (run_gcc): And pass them through.
27494
27495 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
27496
27497         * sel-sched.c (calculate_new_fences): New parameter ptime.
27498         Calculate it as a maximum over all fence cycles.
27499         (sel_sched_region_2): Adjust the call to calculate_new_fences.
27500         Print the final schedule timing when sched_verbose.
27501
27502 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
27503
27504         PR rtl-optimization/60292
27505         * sel-sched.c (fill_vec_av_set): Do not reset target availability
27506         bit fot the fence instruction.
27507
27508 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
27509
27510         * calls.h: Fix typo in comment.
27511
27512 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
27513
27514         * config/pa/pa.c (pa_output_move_double): Don't valididate when
27515         adjusting offsetable addresses.
27516
27517 2014-02-24  Guozhi Wei  <carrot@google.com>
27518
27519         * sparseset.h (sparseset_pop): Fix the wrong index.
27520
27521 2014-02-24  Walter Lee  <walt@tilera.com>
27522
27523         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
27524         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
27525         triplet.
27526         * common/config/tilegx/tilegx-common.c
27527         (TARGET_DEFAULT_TARGET_FLAGS): Define.
27528         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
27529         (LINK_SPEC): Ditto.
27530         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
27531         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
27532         (tilegx_gimplify_va_arg_expr): Handle big endian.
27533         (tilegx_expand_unaligned_load): Ditto.
27534         (tilegx_expand_unaligned_store): Ditto.
27535         (TARGET_RETURN_IN_MSB): New.
27536         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
27537         (TARGET_ENDIAN_DEFAULT): New.
27538         (TARGET_BIG_ENDIAN): Handle big endian.
27539         (BYTES_BIG_ENDIAN): Ditto.
27540         (WORDS_BIG_ENDIAN): Ditto.
27541         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
27542         (ENDIAN_SPEC): New.
27543         (EXTRA_SPECS): New.
27544         * config/tilegx/tilegx.md (extv): Handle big endian.
27545         (extzv): Ditto.
27546         (insn_st<n>): Ditto.
27547         (insn_st<n>_add<bitsuffix>): Ditto.
27548         (insn_stnt<n>): Ditto.
27549         (insn_stnt<n>_add<bitsuffix>):Ditto.
27550         (vec_interleave_highv8qi): Handle big endian.
27551         (vec_interleave_highv8qi_be): New.
27552         (vec_interleave_highv8qi_le): New.
27553         (insn_v1int_h): Handle big endian.
27554         (vec_interleave_lowv8qi): Handle big endian.
27555         (vec_interleave_lowv8qi_be): New.
27556         (vec_interleave_lowv8qi_le): New.
27557         (insn_v1int_l): Handle big endian.
27558         (vec_interleave_highv4hi): Handle big endian.
27559         (vec_interleave_highv4hi_be): New.
27560         (vec_interleave_highv4hi_le): New.
27561         (insn_v2int_h): Handle big endian.
27562         (vec_interleave_lowv4hi): Handle big endian.
27563         (vec_interleave_lowv4hi_be): New.
27564         (vec_interleave_lowv4hi_le): New.
27565         (insn_v2int_l): Handle big endian.
27566         (vec_interleave_highv2si): Handle big endian.
27567         (vec_interleave_highv2si_be): New.
27568         (vec_interleave_highv2si_le): New.
27569         (insn_v4int_h): Handle big endian.
27570         (vec_interleave_lowv2si): Handle big endian.
27571         (vec_interleave_lowv2si_be): New.
27572         (vec_interleave_lowv2si_le): New.
27573         (insn_v4int_l): Handle big endian.
27574         * config/tilegx/tilegx.opt (mbig-endian): New option.
27575         (mlittle-endian): New option.
27576         * doc/install.texi: Document tilegxbe-linux.
27577         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
27578
27579 2014-02-24  Martin Jambor  <mjambor@suse.cz>
27580
27581         PR ipa/60266
27582         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27583         there are no parameter descriptors.
27584
27585 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
27586
27587         PR rtl-optimization/60268
27588         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27589         initialization to ...
27590         (sched_rgn_init): ... here.
27591         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27592
27593 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27594
27595         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27596         names.
27597
27598 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
27599
27600         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27601         definition.
27602
27603 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27604
27605         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27606         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27607
27608 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27609
27610         * config/microblaze/predicates.md: Add cmp_op predicate.
27611         * config/microblaze/microblaze.md: Add branch_compare instruction
27612         which uses cmp_op predicate and emits cmp insn before branch.
27613         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27614         to microblaze_expand_conditional_branch and consolidate logic.
27615         (microblaze_expand_conditional_branch): emit branch_compare
27616         insn instead of handling cmp op separate from branch insn.
27617
27618 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27619
27620         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27621         to permit subregs.
27622
27623 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27624
27625         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27626         define_insn with define_expand and new define_insn
27627         *altivec_lve<VI_char>x_internal.
27628         (altivec_stve<VI_char>x): Replace define_insn with define_expand
27629         and new define_insn *altivec_stve<VI_char>x_internal.
27630         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27631         prototype.
27632         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27633         lve*x built-ins.
27634         (altivec_expand_stvex_be): New function.
27635
27636 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
27637
27638         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27639         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27640         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27641         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27642
27643 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
27644
27645         PR target/60298
27646         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27647         instead of emit_move_insn.
27648
27649 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27650
27651         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27652         vspltw with vsldoi.
27653         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27654         gen_altivec_vsumsws.
27655
27656 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27657
27658         * config/rs6000/altivec.md (altivec_lvxl): Rename as
27659         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27660         (altivec_lvxl_<mode>): New define_expand incorporating
27661         -maltivec=be semantics where needed.
27662         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27663         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27664         semantics where needed.
27665         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27666         (altivec_stvx_<mode>): New define_expand incorporating
27667         -maltivec=be semantics where needed.
27668         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27669         VM2 iterator instead of V4SI.
27670         (altivec_stvxl_<mode>): New define_expand incorporating
27671         -maltivec=be semantics where needed.
27672         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27673         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27674         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27675         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27676         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27677         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27678         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27679         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27680         ALTIVEC_BUILTIN_STVXL.
27681         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27682         (altivec_expand_stvx_be): Likewise.
27683         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27684         (altivec_expand_lvx_be): Likewise.
27685         (altivec_expand_stvx_be): Likewise.
27686         (altivec_expand_builtin): Add cases for
27687         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27688         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27689         (altivec_init_builtins): Add definitions for
27690         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27691         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27692
27693 2014-02-21  Catherine Moore  <clm@codesourcery.com>
27694
27695         * doc/invoke.texi (mvirt, mno-virt): Document.
27696         * config/mips/mips.opt (mvirt): New option.
27697         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27698
27699 2014-02-21  Richard Biener  <rguenther@suse.de>
27700
27701         PR tree-optimization/60276
27702         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27703         (STMT_VINFO_MIN_NEG_DIST): New macro.
27704         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27705         STMT_VINFO_MIN_NEG_DIST.
27706         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27707         made for negative dependence distances still hold.
27708
27709 2014-02-21  Richard Biener  <rguenther@suse.de>
27710
27711         PR middle-end/60291
27712         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27713         DECL_INITIAL for globals not in the current function context.
27714
27715 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27716
27717         PR tree-optimization/56490
27718         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27719         * tree-ssa-uninit.c: Include params.h.
27720         (compute_control_dep_chain): Add num_calls argument, return false
27721         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27722         num_calls to recursive call.
27723         (find_predicates): Change dep_chain into normal array,
27724         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27725         variable and adjust compute_control_dep_chain caller.
27726         (find_def_preds): Likewise.
27727
27728 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
27729
27730         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27731         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27732
27733 2014-02-21  Nick Clifton  <nickc@redhat.com>
27734
27735         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27736         (pushhi1): Likewise.
27737         (popqi1): Add mode to pre_dec.
27738         (pophi1): Likewise.
27739
27740 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27741
27742         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27743         mode for mask of V8SFmode permutation.
27744
27745 2014-02-20  Richard Henderson  <rth@redhat.com>
27746
27747         PR c++/60272
27748         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27749         a new pseudo for OLDVAL.
27750
27751 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
27752
27753         PR target/57896
27754         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27755         gen_reg_rtx if d->testing_p.
27756         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27757         if d->testing_p and we will certainly return true.
27758         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
27759         if d->testing_p.
27760
27761 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
27762
27763         * emit-rtl.c (gen_reg_rtx): Assert that
27764         crtl->emit.regno_pointer_align_length is non-zero.
27765
27766 2014-02-20  Richard Henderson  <rth@redhat.com>
27767
27768         PR c++/60272
27769         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27770         on failure the store back into EXPECT.
27771
27772 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
27773             Sandra Loosemore  <sandra@codesourcery.com>
27774
27775         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27776         * config/nios2/nios2.c (nios2_function_profiler): Add
27777         -fPIC (flag_pic == 2) support.
27778         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27779         (nios2_large_offset_p): New function.
27780         (nios2_unspec_reloc_p): Move up position, update to use
27781         nios2_large_offset_p.
27782         (nios2_unspec_address): Remove function.
27783         (nios2_unspec_offset): New function.
27784         (nios2_large_got_address): New function.
27785         (nios2_got_address): Add large offset support.
27786         (nios2_legitimize_tls_address): Update usage of removed and new
27787         functions.
27788         (nios2_symbol_binds_local_p): New function.
27789         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27790         (nios2_legitimize_address): Update to use nios2_large_offset_p.
27791         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27792         (nios2_print_operand): Merge H/L processing, add hiadj/lo
27793         processing for (const (unspec ...)).
27794         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27795
27796 2014-02-20  Richard Biener  <rguenther@suse.de>
27797
27798         * tree-cfg.c (replace_uses_by): Mark altered BBs before
27799         doing the substitution.
27800         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27801
27802 2014-02-20  Martin Jambor  <mjambor@suse.cz>
27803
27804         PR ipa/55260
27805         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27806         info when checking whether lattices are bottom.
27807
27808 2014-02-20  Richard Biener  <rguenther@suse.de>
27809
27810         PR middle-end/60221
27811         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27812         regions at -O0.
27813
27814 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
27815
27816         PR ipa/58555
27817         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27818         parameter specifying the scaling.
27819         (inline_call): Update.
27820         (want_inline_recursively): Guard division by zero.
27821         (recursive_inlining): Update.
27822         * ipa-inline.h (clone_inlined_nodes): Update.
27823
27824 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27825
27826         PR target/60204
27827         * config/i386/i386.c (classify_argument): Pass structures of size
27828         64 bytes or less in register.
27829
27830 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27831             Kirill Yukhin  <kirill.yukhin@intel.com>
27832
27833         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27834         (_mm_rcp28_round_ss): Ditto.
27835         (_mm_rsqrt28_round_sd): Ditto.
27836         (_mm_rsqrt28_round_ss): Ditto.
27837         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27838         (_mm_rcp14_round_ss): Ditto.
27839         (_mm_rsqrt14_round_sd): Ditto.
27840         (_mm_rsqrt14_round_ss): Ditto.
27841         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27842         the first input operand, get rid of match_dup.
27843         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27844         attribute to sse.
27845         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27846         Ditto.
27847         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27848         operand as the first input operand, set type attribute.
27849         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27850         Set type attribute.
27851         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27852         operand as the first input operand, set type attribute.
27853
27854 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27855
27856         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27857         bit of zero.
27858
27859 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
27860
27861         PR target/60207
27862         * config/i386/i386.c (construct_container): Remove TFmode check
27863         for X86_64_INTEGER_CLASS.
27864
27865 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
27866
27867         PR target/59794
27868         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27869         only when -Wpsabi is enabled.
27870
27871 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
27872
27873          PR target/59799
27874         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27875         passing arrays in registers are the same as for structs, so remove the
27876         special case for them.
27877
27878 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
27879
27880         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27881         destination type, extract only the valid bits if the source type is not
27882         integral and has a different mode.
27883
27884 2014-02-19  Richard Biener  <rguenther@suse.de>
27885
27886         PR ipa/60243
27887         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27888         for all calls.
27889
27890 2014-02-19  Richard Biener  <rguenther@suse.de>
27891
27892         PR ipa/60243
27893         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27894         (ipa_modify_call_arguments): Emit an argument load explicitely and
27895         preserve virtual SSA form there and for the replacement call.
27896         Do not update SSA form nor free dominance info.
27897
27898 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27899
27900         * ipa.c (function_and_variable_visibility): Also clear WEAK
27901         flag when disolving COMDAT_GROUP.
27902
27903 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27904
27905         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27906         * ipa-prop.c (ipa_set_jf_known_type): Return early when
27907         not devirtualizing.
27908         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27909         do more sanity checks.
27910         (detect_type_change): Return true when giving up early.
27911         (compute_complex_assign_jump_func): Fix type parameter of
27912         ipa_set_ancestor_jf.
27913         (compute_complex_ancestor_jump_func): Likewise.
27914         (update_jump_functions_after_inlining): Fix updating of
27915         ancestor function.
27916         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27917
27918 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27919
27920         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27921         inline clones when edge disappears.
27922
27923 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
27924
27925         PR target/60203
27926         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27927         Split 64-bit moves into 2 patterns.  Do not allow the use of
27928         direct move for TDmode in little endian, since the decimal value
27929         has little endian bytes within a word, but the 64-bit pieces are
27930         ordered in a big endian fashion, and normal subreg's of TDmode are
27931         not allowed.
27932         (mov<mode>_64bit_dm): Likewise.
27933         (movtd_64bit_nodm): Likewise.
27934
27935 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27936
27937         PR tree-optimization/60174
27938         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27939         statement of an SSA_NAME that occurs in an abnormal PHI node.
27940
27941 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27942
27943         PR sanitizer/60142
27944         * final.c (SEEN_BB): Remove.
27945         (SEEN_NOTE, SEEN_EMITTED): Renumber.
27946         (final_scan_insn): Don't force_source_line on second
27947         NOTE_INSN_BASIC_BLOCK.
27948
27949 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
27950
27951         PR target/60205
27952         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27953         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27954         (type_natural_mode): Warn ABI change when %zmm register is not
27955         available for AVX512F vector value passing.
27956
27957 2014-02-18  Kai Tietz  <ktietz@redhat.com>
27958
27959         PR target/60193
27960         * config/i386/i386.c (ix86_expand_prologue): Use value in
27961         rax register as displacement when restoring %r10 or %rax.
27962         Fix wrong offset when restoring both registers.
27963
27964 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27965
27966         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27967         assertion with conditional return.
27968
27969 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27970             Uros Bizjak  <ubizjak@gmail.com>
27971
27972         PR driver/60233
27973         * config/i386/driver-i386.c (host_detect_local_cpu): If
27974         YMM state is not saved by the OS, also clear has_f16c.  Move
27975         CPUID 0x80000001 handling before YMM state saving checking.
27976
27977 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
27978
27979         PR rtl-optimization/58960
27980         * haifa-sched.c (alloc_global_sched_pressure_data): New,
27981         factored out from ...
27982         (sched_init): ... here.
27983         (free_global_sched_pressure_data): New, factored out from ...
27984         (sched_finish): ... here.
27985         * sched-int.h (free_global_sched_pressure_data): Declare.
27986         * sched-rgn.c (nr_regions_initial): New static global.
27987         (haifa_find_rgns): Initialize it.
27988         (schedule_region): Disable sched-pressure for the newly
27989         generated regions.
27990
27991 2014-02-17  Richard Biener  <rguenther@suse.de>
27992
27993         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27994         release SSA defs of pattern stmts.
27995
27996 2014-02-17  Richard Biener  <rguenther@suse.de>
27997
27998         * tree-inline.c (expand_call_inline): Release the virtual
27999         operand defined by the call we are about to inline.
28000
28001 2014-02-17  Richard Biener  <rguenther@suse.de>
28002
28003         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
28004
28005 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
28006             Ilya Tocar  <ilya.tocar@intel.com>
28007
28008         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
28009         arguments order in builtin.
28010         (_mm512_permutexvar_epi64): Ditto.
28011         (_mm512_mask_permutexvar_epi64): Ditto
28012         (_mm512_maskz_permutexvar_epi32): Ditto
28013         (_mm512_permutexvar_epi32): Ditto
28014         (_mm512_mask_permutexvar_epi32): Ditto
28015
28016 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28017
28018         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
28019         (p8_vmrgow): Likewise.
28020
28021 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28022
28023         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
28024         endian targets.
28025
28026 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
28027
28028         PR target/60203
28029         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
28030         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
28031         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
28032         using direct move instructions on ISA 2.07.  Also adjust
28033         instruction length for 64-bit.
28034         (mov<mode>_64bit, TFmode/TDmode): Likewise.
28035         (mov<mode>_32bit, TFmode/TDmode): Likewise.
28036
28037 2014-02-15  Alan Modra  <amodra@gmail.com>
28038
28039         PR target/58675
28040         PR target/57935
28041         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28042         find_replacement on parts of insn rtl that might be reloaded.
28043
28044 2014-02-15  Richard Biener  <rguenther@suse.de>
28045
28046         PR tree-optimization/60183
28047         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
28048         (tree_ssa_phiprop): Calculate and free post-dominators.
28049
28050 2014-02-14  Jeff Law  <law@redhat.com>
28051
28052         PR rtl-optimization/60131
28053         * ree.c (get_extended_src_reg): New function.
28054         (combine_reaching_defs): Use it rather than assuming location of REG.
28055         (find_and_remove_re): Verify first operand of extension is
28056         a REG before adding the insns to the copy list.
28057
28058 2014-02-14  Roland McGrath  <mcgrathr@google.com>
28059
28060         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
28061         * configure: Regenerated.
28062         * config.in: Regenerated.
28063         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
28064         instead of ASM_SHORT.
28065
28066 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
28067             Richard Earnshaw  <rearnsha@arm.com>
28068
28069         PR rtl-optimization/59535
28070         * lra-constraints.c (process_alt_operands): Encourage alternative
28071         when unassigned pseudo class is superset of the alternative class.
28072         (inherit_reload_reg): Don't inherit when optimizing for code size.
28073         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
28074         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
28075         modes not less than 4 for Thumb1.
28076
28077 2014-02-14  Kyle McMartin  <kyle@redhat.com>
28078
28079         PR pch/60010
28080         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
28081
28082 2014-02-14  Richard Biener  <rguenther@suse.de>
28083
28084         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
28085         (get_frame_arg): Drop the assert with langhook types_compatible_p.
28086         Do not strip INDIRECT_REFs.
28087
28088 2014-02-14  Richard Biener  <rguenther@suse.de>
28089
28090         PR lto/60179
28091         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
28092         DECL_FUNCTION_SPECIFIC_TARGET.
28093         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
28094         * tree-streamer-out.c (pack_ts_target_option): Remove.
28095         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
28096         (write_ts_function_decl_tree_pointers): Do not stream
28097         DECL_FUNCTION_SPECIFIC_TARGET.
28098         * tree-streamer-in.c (unpack_ts_target_option): Remove.
28099         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
28100         (lto_input_ts_function_decl_tree_pointers): Do not stream
28101         DECL_FUNCTION_SPECIFIC_TARGET.
28102
28103 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
28104
28105         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
28106         (get_initial_def_for_induction, vectorizable_induction): Ignore
28107         debug stmts when looking for exit_phi.
28108         (vectorizable_live_operation): Fix up condition.
28109
28110 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28111
28112         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
28113         nreverse() because it changes the content of original tree list.
28114
28115 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28116
28117         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
28118         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
28119
28120 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28121
28122         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
28123         GNU coding standards.
28124
28125 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
28126
28127         PR debug/60152
28128         * dwarf2out.c (gen_subprogram_die): Don't call
28129         add_calling_convention_attribute if subr_die is old_die.
28130
28131 2014-02-13  Sharad Singhai  <singhai@google.com>
28132
28133         * doc/optinfo.texi: Fix order of nodes.
28134
28135 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
28136
28137         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
28138         operands[2], not operands[3].
28139
28140 2014-02-13  Richard Biener  <rguenther@suse.de>
28141
28142         PR bootstrap/59878
28143         * doc/install.texi (ISL): Update recommended version to 0.12.2,
28144         mention the possibility of an in-tree build.
28145         (CLooG): Update recommended version to 0.18.1, mention the
28146         possibility of an in-tree build and clarify that the ISL
28147         bundled with CLooG does not work.
28148
28149 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
28150
28151         PR target/43546
28152         * expr.c (compress_float_constant): If x is a hard register,
28153         extend into a pseudo and then move to x.
28154
28155 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28156
28157         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
28158         caused by bad second argument to warning_at() with -mhotpatch and
28159         nested functions (e.g. with gfortran).
28160
28161 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
28162
28163         * opts.c (option_name): Remove "enabled by default" rider.
28164
28165 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
28166
28167         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
28168
28169 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28170             Uros Bizjak  <ubizjak@gmail.com>
28171
28172         PR target/60151
28173         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
28174         * configure: Regenerated.
28175
28176 2014-02-12  Richard Biener  <rguenther@suse.de>
28177
28178         * vec.c (vec_prefix::calculate_allocation): Move as
28179         inline variant to vec.h.
28180         (vec_prefix::calculate_allocation_1): New out-of-line version.
28181         * vec.h (vec_prefix::calculate_allocation_1): Declare.
28182         (vec_prefix::m_has_auto_buf): Rename to ...
28183         (vec_prefix::m_using_auto_storage): ... this.
28184         (vec_prefix::calculate_allocation): Inline the easy cases
28185         and dispatch to calculate_allocation_1 which doesn't need the
28186         prefix address.
28187         (va_heap::reserve): Use gcc_checking_assert.
28188         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
28189         m_using_auto_storage.
28190         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
28191         member and adjust.
28192         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
28193         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
28194         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
28195
28196 2014-02-12  Richard Biener  <rguenther@suse.de>
28197
28198         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
28199         when we found a dependence.
28200
28201 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
28202
28203         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
28204         common code...
28205         (maybe_fold_stmt): ... into this new function.
28206         * omp-low.c (lower_omp): Update comment.
28207
28208         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
28209         last use.
28210
28211         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
28212         dereference.
28213
28214 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
28215
28216         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
28217         identifiers in comments.
28218         (cortexa53_extra_costs): Likewise.
28219         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
28220         (cortexa7_extra_costs): Likewise.
28221         (cortexa12_extra_costs): Likewise.
28222         (cortexa15_extra_costs): Likewise.
28223         (v7m_extra_costs): Likewise.
28224
28225 2014-02-12  Richard Biener  <rguenther@suse.de>
28226
28227         PR middle-end/60092
28228         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
28229         of posix_memalign being successful.
28230         (lower_stmt): Restrict lowering of posix_memalign to when
28231         -ftree-bit-ccp is enabled.
28232
28233 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28234
28235         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
28236         arg_loc.
28237         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
28238
28239 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
28240
28241         PR rtl-optimization/60116
28242         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
28243         other_insn once the combination has been validated.
28244
28245 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
28246
28247         PR lto/59468
28248         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
28249         and wrapper.
28250         * ipa-devirt.c: Include demangle.h
28251         (odr_violation_reported): New static variable.
28252         (add_type_duplicate): Update odr_violations.
28253         (maybe_record_node): Add completep parameter; update it.
28254         (record_target_from_binfo): Add COMPLETEP parameter;
28255         update it as needed.
28256         (possible_polymorphic_call_targets_1): Likewise.
28257         (struct polymorphic_call_target_d): Add nonconstruction_targets;
28258         rename FINAL to COMPLETE.
28259         (record_targets_from_bases): Sanity check we found the binfo;
28260         fix COMPLETEP updating.
28261         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
28262         parameter, fix computing of COMPLETEP.
28263         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
28264         at LTO time do demangling.
28265         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
28266         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
28267         parameter.
28268         (gimple_get_virt_method_for_binfo): Likewise.
28269         * gimple-fold.h (gimple_get_virt_method_for_binfo,
28270         gimple_get_virt_method_for_vtable): Update prototypes.
28271
28272 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
28273
28274         PR target/49008
28275         * genautomata.c (add_presence_absence): Fix typo with
28276         {final_}presence_list.
28277
28278 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
28279
28280         PR target/60137
28281         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
28282         for VSX/Altivec vectors that land in GPR registers.
28283
28284 2014-02-11  Richard Henderson  <rth@redhat.com>
28285             Jakub Jelinek  <jakub@redhat.com>
28286
28287         PR debug/59776
28288         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
28289         around drhs if type conversion to lacc->type is not useless.
28290
28291 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28292
28293         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
28294         tuning struct.
28295         (cortex-a57.cortex-a53): Likewise.
28296         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
28297
28298 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28299
28300         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
28301         arm_restrict_it.
28302
28303 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
28304
28305         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
28306         add_options_for_arm_vfp3.
28307
28308 2014-02-11  Jeff Law  <law@redhat.com>
28309
28310         PR middle-end/54041
28311         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
28312         object with an undesirable mode.
28313
28314 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28315
28316         PR libgomp/60107
28317         * config/i386/sol2-9.h: New file.
28318         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
28319         *-*-solaris2.9*): Use it.
28320
28321 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
28322
28323         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
28324         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
28325
28326 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
28327
28328         * config/microblaze/microblaze.c: Extend mcpu version format
28329
28330 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
28331
28332         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
28333
28334 2014-02-10  Richard Henderson  <rth@redhat.com>
28335
28336         PR target/59927
28337         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
28338         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
28339         ms-abi vs -mno-accumulate-outgoing-args.
28340         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
28341         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
28342         respect to ms-abi.
28343
28344 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28345
28346         PR middle-end/60080
28347         * cfgexpand.c (expand_asm_operands): Attach source location to
28348         ASM_INPUT rtx objects.
28349         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
28350
28351 2014-02-10  Nick Clifton  <nickc@redhat.com>
28352
28353         * config/mn10300/mn10300.c (popcount): New function.
28354         (mn10300_expand_prologue): Include saved registers in stack usage
28355         count.
28356
28357 2014-02-10  Jeff Law  <law@redhat.com>
28358
28359         PR middle-end/52306
28360         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
28361         when changing the SET_DEST of a prior insn to avoid an input reload.
28362
28363 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28364
28365         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
28366         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
28367         -mcall-openbsd, or -mcall-linux.
28368         (CC1_ENDIAN_BIG_SPEC): Remove.
28369         (CC1_ENDIAN_LITTLE_SPEC): Remove.
28370         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28371         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
28372         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
28373         and %cc1_endian_default.
28374         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28375
28376 2014-02-10  Richard Biener  <rguenther@suse.de>
28377
28378         PR tree-optimization/60115
28379         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
28380         MEM_REF handling.  Properly verify that the accesses are not
28381         out of the objects bound.
28382
28383 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28384
28385         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
28386         coretex to cortex.
28387
28388 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28389
28390         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
28391         proper constants and fix formatting.
28392         (possible_polymorphic_call_targets): Fix formatting.
28393
28394 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
28395             Ilya Tocar  <ilya.tocar@intel.com>
28396
28397         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
28398         (_mm512_loadu_epi32): Renamed into...
28399         (_mm512_loadu_si512): This.
28400         (_mm512_storeu_epi32): Renamed into...
28401         (_mm512_storeu_si512): This.
28402         (_mm512_maskz_ceil_ps): Removed.
28403         (_mm512_maskz_ceil_pd): Ditto.
28404         (_mm512_maskz_floor_ps): Ditto.
28405         (_mm512_maskz_floor_pd): Ditto.
28406         (_mm512_floor_round_ps): Ditto.
28407         (_mm512_floor_round_pd): Ditto.
28408         (_mm512_ceil_round_ps): Ditto.
28409         (_mm512_ceil_round_pd): Ditto.
28410         (_mm512_mask_floor_round_ps): Ditto.
28411         (_mm512_mask_floor_round_pd): Ditto.
28412         (_mm512_mask_ceil_round_ps): Ditto.
28413         (_mm512_mask_ceil_round_pd): Ditto.
28414         (_mm512_maskz_floor_round_ps): Ditto.
28415         (_mm512_maskz_floor_round_pd): Ditto.
28416         (_mm512_maskz_ceil_round_ps): Ditto.
28417         (_mm512_maskz_ceil_round_pd): Ditto.
28418         (_mm512_expand_pd): Ditto.
28419         (_mm512_expand_ps): Ditto.
28420         * config/i386/i386.c (ix86_builtins): Remove
28421         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
28422         (bdesc_args): Ditto.
28423         * config/i386/predicates.md (const1256_operand): New.
28424         (const_1_to_2_operand): Ditto.
28425         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28426         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28427         (*avx512pf_gatherpf<mode>sf): Ditto.
28428         (avx512pf_gatherpf<mode>df): Ditto.
28429         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28430         (*avx512pf_gatherpf<mode>df): Ditto.
28431         (avx512pf_scatterpf<mode>sf): Ditto.
28432         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28433         (*avx512pf_scatterpf<mode>sf): Ditto.
28434         (avx512pf_scatterpf<mode>df): Ditto.
28435         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28436         (*avx512pf_scatterpf<mode>df): Ditto.
28437         (avx512f_expand<mode>): Removed.
28438         (<shift_insn><mode>3<mask_name>): Change predicate type.
28439
28440 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
28441
28442         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
28443         not at the end of datarefs vector use ordered_remove to avoid
28444         reordering datarefs vector.
28445
28446         PR c/59984
28447         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
28448         mark local addressable non-static vars as GOVD_PRIVATE
28449         instead of GOVD_LOCAL.
28450         * omp-low.c (lower_omp_for): Move gimple_bind_vars
28451         and BLOCK_VARS of gimple_bind_block to new_stmt rather
28452         than copying them.
28453
28454         PR middle-end/60092
28455         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
28456         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
28457         assume_aligned or alloc_align attributes.
28458         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
28459         arguments.  Handle also assume_aligned and alloc_align attributes.
28460         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
28461         calls to functions with assume_aligned or alloc_align attributes.
28462         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
28463
28464 2014-02-08  Terry Guo  <terry.guo@arm.com>
28465
28466         * doc/invoke.texi: Document ARM -march=armv7e-m.
28467
28468 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
28469
28470         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
28471         flag on __cilkrts_rethrow builtin.
28472
28473         PR ipa/60026
28474         * ipa-cp.c (determine_versionability): Fail at -O0
28475         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
28476         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
28477
28478         Revert:
28479         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
28480
28481         PR ipa/60026
28482         * tree-inline.c (copy_forbidden): Fail for
28483         __attribute__((optimize (0))) functions.
28484
28485 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
28486
28487         * varpool.c: Include pointer-set.h.
28488         (varpool_remove_unreferenced_decls): Variables in other partitions
28489         will not be output; be however careful to not lose information
28490         about partitioning.
28491
28492 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
28493
28494         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
28495         lookup in the vtable constructor.
28496
28497 2014-02-07  Jeff Law  <law@redhat.com>
28498
28499         PR target/40977
28500         * config/m68k/m68k.md (ashldi_extsi): Turn into a
28501         define_insn_and_split.
28502
28503         * ipa-inline.c (inline_small_functions): Fix typos.
28504
28505 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28506
28507         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
28508         (s390_can_use_return_insn): Declare.
28509         * config/s390/s390.h (EPILOGUE_USES): Define.
28510         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
28511         instructions.
28512         (s390_chunkify_start): Handle return JUMP_LABELs.
28513         (s390_early_mach): Emit a main_pool instruction on the entry edge.
28514         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
28515         (s390_can_use_return_insn): New functions.
28516         (s390_fix_long_loop_prediction): Handle conditional returns.
28517         (TARGET_SET_UP_BY_PROLOGUE): Define.
28518         * config/s390/s390.md (ANY_RETURN): New code iterator.
28519         (*creturn, *csimple_return, return, simple_return): New patterns.
28520
28521 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28522
28523         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
28524         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
28525         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
28526         REG_CFA_RESTORE list when deciding not to restore a register.
28527
28528 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28529
28530         * config/s390/s390.c: Include tree-pass.h and context.h.
28531         (s390_early_mach): New function, split out from...
28532         (s390_emit_prologue): ...here.
28533         (pass_data_s390_early_mach): New pass structure.
28534         (pass_s390_early_mach): New class.
28535         (s390_option_override): Create and register early_mach pass.
28536         Move to end of file.
28537
28538 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28539
28540         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
28541         to match for the exit block.
28542
28543 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28544
28545         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
28546         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
28547         Reject misaligned operands.
28548
28549 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28550
28551         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
28552
28553 2014-02-07  Richard Biener  <rguenther@suse.de>
28554
28555         PR middle-end/60092
28556         * gimple-low.c (lower_builtin_posix_memalign): New function.
28557         (lower_stmt): Call it to lower posix_memalign in a way
28558         to make alignment info accessible.
28559
28560 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
28561
28562         PR c++/60082
28563         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
28564         __builtin_setjmp_receiver.
28565
28566 2014-02-07  Richard Biener  <rguenther@suse.de>
28567
28568         PR middle-end/60092
28569         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
28570         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
28571         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28572         Handle BUILT_IN_POSIX_MEMALIGN.
28573         (find_func_clobbers): Likewise.
28574         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28575         (call_may_clobber_ref_p_1): Likewise.
28576
28577 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28578
28579         PR ipa/59918
28580         * ipa-devirt.c (record_target_from_binfo): Remove overactive
28581         sanity check.
28582
28583 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28584
28585         PR ipa/59469
28586         * lto-cgraph.c (lto_output_node): Use
28587         symtab_get_symbol_partitioning_class.
28588         (lto_output_varpool_node): likewise.
28589         (symtab_get_symbol_partitioning_class): Move here from
28590         lto/lto-partition.c
28591         * cgraph.h (symbol_partitioning_class): Likewise.
28592         (symtab_get_symbol_partitioning_class): Declare.
28593
28594 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28595
28596         * ggc.h (ggc_internal_cleared_alloc): New macro.
28597         * vec.h (vec_safe_copy): Handle memory stats.
28598         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28599         * target-globals.c (save_target_globals): Likewise.
28600
28601 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28602
28603         PR target/60077
28604         * expr.c (emit_move_resolve_push): Export; be bit more selective
28605         on when to clear alias set.
28606         * expr.h (emit_move_resolve_push): Declare.
28607         * function.h (struct function): Add tail_call_marked.
28608         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28609         * config/i386/i386-protos.h (ix86_expand_push): Remove.
28610         * config/i386/i386.md (TImode move expander): De not call
28611         ix86_expand_push.
28612         (FP push expanders): Preserve memory attributes.
28613         * config/i386/sse.md (push<mode>1): Remove.
28614         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28615         (ix86_expand_push): Remove.
28616         * config/i386/mmx.md (push<mode>1): Remove.
28617
28618 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28619
28620         PR rtl-optimization/60030
28621         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28622         lopart with paradoxical subreg before shifting it up by hprec.
28623
28624 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28625
28626         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28627         Remove extra newline at end of file.
28628         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28629         (arm_issue_rate): Handle cortexa57.
28630         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28631         (cortex-a57.cortex-a53): Likewise.
28632
28633 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28634
28635         PR target/59575
28636         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28637         don't record in REG_FRAME_RELATED_EXPR registers not set in that
28638         bitmask.
28639         (arm_expand_prologue): Adjust all callers.
28640         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28641         info, registers also at the lowest numbered registers side.  Use
28642         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28643         XEXP.
28644
28645         PR debug/59992
28646         * var-tracking.c (adjust_mems): Before adding a SET to
28647         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28648
28649 2014-02-06  Alan Modra  <amodra@gmail.com>
28650
28651         PR target/60032
28652         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28653         change SDmode to DDmode when lra_in_progress.
28654
28655 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28656
28657         PR middle-end/59150
28658         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28659         free_data_ref on the dr first, and before goto again also set dr
28660         to the next dr.  For simd_lane_access, free old datarefs[i] before
28661         overwriting it.  For get_vectype_for_scalar_type failure, don't
28662         free_data_ref if simd_lane_access.
28663
28664         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28665
28666         PR target/60062
28667         * tree.h (opts_for_fn): New inline function.
28668         (opt_for_fn): Define.
28669         * config/i386/i386.c (ix86_function_regparm): Use
28670         opt_for_fn (decl, optimize) instead of optimize.
28671
28672 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28673
28674         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28675         for SYMBOL_REF in large memory model.
28676
28677 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28678
28679         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28680         and crypto support.
28681         (cortex-a57): Likewise.
28682         (cortex-a57.cortex-a53): Likewise.
28683
28684 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
28685             Kugan Vivekanandarajah  <kuganv@linaro.org>
28686
28687         * config/arm/arm.c (arm_vector_alignment_reachable): Check
28688         unaligned_access.
28689         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28690
28691 2014-02-06  Richard Biener  <rguenther@suse.de>
28692
28693         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28694         set_loop_copy and initialize_original_copy_tables.
28695
28696 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
28697
28698         * config/aarch64/aarch64-simd.md
28699         (aarch64_ashr_simddi): Change QI to SI.
28700
28701 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28702             Jakub Jelinek  <jakub@redhat.com>
28703
28704         PR middle-end/60013
28705         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28706         of the dataflow.
28707
28708 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28709
28710         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28711         CODE_FOR_altivec_vpku[hw]um to
28712         CODE_FOR_altivec_vpku[hw]um_direct.
28713         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28714         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28715         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28716         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28717
28718 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28719
28720         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28721         generation for -maltivec=be.
28722         (altivec_vsumsws): Simplify redundant test.
28723
28724 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28725
28726         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28727         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28728         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28729         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28730         gen_altivec_vpkuwum.
28731         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28732         BYTES_BIG_ENDIAN.
28733         (altivec_vpks<VI_char>ss): Likewise.
28734         (altivec_vpks<VI_char>us): Likewise.
28735         (altivec_vpku<VI_char>us): Likewise.
28736         (altivec_vpku<VI_char>um): Likewise.
28737         (altivec_vpku<VI_char>um_direct): New (copy of
28738         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28739         internal use).
28740         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28741         target is little endian and -maltivec=be is not specified.
28742         (*altivec_vupkhs<VU_char>_direct): New (copy of
28743         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28744         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28745         target is little endian and -maltivec=be is not specified.
28746         (*altivec_vupkls<VU_char>_direct): New (copy of
28747         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28748         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28749         little endian and -maltivec=be is not specified.
28750         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28751         little endian and -maltivec=be is not specified.
28752
28753 2014-02-05  Richard Henderson  <rth@redhat.com>
28754
28755         PR debug/52727
28756         * combine-stack-adj.c: Revert r206943.
28757         * sched-int.h (struct deps_desc): Add last_args_size.
28758         * sched-deps.c (init_deps): Initialize it.
28759         (sched_analyze_insn): Add OUTPUT dependencies between insns that
28760         contain REG_ARGS_SIZE notes.
28761
28762 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28763
28764         * lto-cgraph.c (asm_nodes_output): Make global.
28765         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28766         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28767         (driver_handle_option): Handle OPT_fwpa.
28768
28769 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
28770
28771         PR ipa/59947
28772         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28773         a comment typo and formatting issue.  If odr_hash hasn't been
28774         created, return vNULL and set *completep to false.
28775
28776         PR middle-end/57499
28777         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28778         bb with no successors.
28779
28780 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
28781
28782         PR target/59718
28783         * doc/invoke.texi (-march): Clarify documentation for ARM.
28784         (-mtune): Likewise.
28785         (-mcpu): Likewise.
28786
28787 2014-02-05  Richard Biener  <rguenther@suse.de>
28788
28789         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28790         when not vectorizing because of too many alias checks.
28791         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28792         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28793
28794 2014-02-05  Nick Clifton  <nickc@redhat.com>
28795
28796         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28797         accept extended registers in any mode when compiling for the MN10300.
28798
28799 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
28800
28801         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28802         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28803         sanitization attributes.
28804         (can_inline_edge_p): Likewise.
28805         (sanitize_attrs_match_for_inline_p): New function.
28806
28807 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28808
28809         * ipa-prop.c (detect_type_change): Shor circuit testing of
28810         type changes on THIS pointer.
28811
28812 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
28813
28814         PR target/59777
28815         * config/pa/pa.c (legitimize_tls_address): Return original address
28816         if not passed a SYMBOL_REF rtx.
28817         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28818         addresses.
28819         (pa_emit_move_sequence): Simplify TLS source operands.
28820         (pa_legitimate_constant_p): Reject all TLS constants.
28821         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28822         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28823
28824 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28825
28826         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28827         groups when we know they are controlled by LTO.
28828         * varasm.c (default_binds_local_p_1): If object is in other partition,
28829         it will be resolved locally.
28830
28831 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28832
28833         * config/host-linux.c (linux_gt_pch_use_address): Don't
28834         use SSIZE_MAX because it is not always defined.
28835
28836 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
28837
28838         PR bootstrap/59913
28839         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28840         threshold for pseudo splitting.
28841         (update_ebb_live_info): Process call argument hard registers and
28842         hard registers from insn definition too.
28843         (max_small_class_regs_num): New constant.
28844         (inherit_in_ebb): Update live hard regs through EBBs.  Update
28845         reloads_num only for small register classes.  Don't split for
28846         outputs of jumps.
28847
28848 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
28849
28850         PR ipa/60058
28851         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28852         is non-null.
28853
28854 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28855
28856         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28857         visibility is safe.
28858
28859 2014-02-04  Marek Polacek  <polacek@redhat.com>
28860
28861         * gdbinit.in (pel): Define.
28862
28863 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28864
28865         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28866         behavior.
28867
28868 2014-02-04  Richard Biener  <rguenther@suse.de>
28869
28870         PR lto/59723
28871         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28872         in function context local.
28873         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28874         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28875         similar to LTO_imported_decl_ref.
28876
28877 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
28878
28879         PR tree-optimization/60002
28880         * cgraphclones.c (build_function_decl_skip_args): Clear
28881         DECL_LANG_SPECIFIC.
28882
28883         PR tree-optimization/60023
28884         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28885         false to gsi_replace.
28886         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28887         has been in some EH region and vec_stmt could throw, add
28888         vec_stmt into the same EH region.
28889         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28890         has no lhs, ignore it.
28891         * internal-fn.c (expand_MASK_LOAD): Likewise.
28892
28893         PR ipa/60026
28894         * tree-inline.c (copy_forbidden): Fail for
28895         __attribute__((optimize (0))) functions.
28896
28897         PR other/58712
28898         * omp-low.c (simd_clone_struct_copy): If from->inbranch
28899         is set, copy one less argument.
28900         (expand_simd_clones): Don't subtract clone_info->inbranch
28901         from simd_clone_struct_alloc argument.
28902
28903         PR rtl-optimization/57915
28904         * recog.c (simplify_while_replacing): If all unary/binary/relational
28905         operation arguments are constant, attempt to simplify those.
28906
28907         PR middle-end/59261
28908         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28909         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28910
28911 2014-02-04  Richard Biener  <rguenther@suse.de>
28912
28913         PR tree-optimization/60012
28914         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28915         TBAA disambiguation to all DDRs.
28916
28917 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28918
28919         PR target/59788
28920         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28921         (LINK_SPEC): Use it for -shared, -shared-libgcc.
28922
28923 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28924
28925         PR ipa/59882
28926         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28927
28928 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28929
28930         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28931         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28932
28933 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28934
28935         PR ipa/59831
28936         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28937         to figure out targets of polymorphic calls with known decl.
28938         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28939         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28940         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28941         (get_polymorphic_call_info): ... here.
28942         (get_polymorphic_call_info_from_invariant): New function.
28943
28944 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28945
28946         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28947         lookup via vtable pointer; check for type consistency
28948         and turn inconsitent facts into UNREACHABLE.
28949         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28950         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28951         type inconsistent querries; return UNREACHABLE instead.
28952
28953 2014-02-03  Richard Henderson  <rth@twiddle.net>
28954
28955         PR tree-opt/59924
28956         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28957         already processed this node.
28958         (normalize_one_pred_1): Pass along mark_set.
28959         (normalize_one_pred): Create and destroy a pointer_set_t.
28960         (normalize_one_pred_chain): Likewise.
28961
28962 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
28963
28964         PR gcov-profile/58602
28965         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28966
28967 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28968
28969         PR ipa/59831
28970         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28971         -fno-devirtualize; try to devirtualize by the knowledge of
28972         virtual table pointer given by aggregate propagation.
28973         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28974         (ipa_print_node_jump_functions): Dump also offset that
28975         is relevant for polymorphic calls.
28976         (determine_known_aggregate_parts): Add arg_type parameter; use it
28977         instead of determining the type from pointer type.
28978         (ipa_compute_jump_functions_for_edge): Update call of
28979         determine_known_aggregate_parts.
28980         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28981         (gimple_get_virt_method_for_binfo): ... here; simplify using
28982         vtable_pointer_value_to_vtable.
28983         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28984         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28985         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28986         (vtable_pointer_value_to_vtable): Break out from ...; handle also
28987         POINTER_PLUS_EXPR.
28988         (vtable_pointer_value_to_binfo): ... here.
28989         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28990
28991 2014-02-03  Teresa Johnson  <tejohnson@google.com>
28992
28993         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28994         redef of outer loop index variable.
28995
28996 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
28997
28998         PR c++/53017
28999         PR c++/59211
29000         * doc/extend.texi (Function Attributes): Typo.
29001
29002 2014-02-03  Cong Hou  <congh@google.com>
29003
29004         PR tree-optimization/60000
29005         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
29006         if the vectorized statement is a store.  A store statement can only
29007         appear at the end of pattern statements.
29008
29009 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
29010
29011         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
29012         (ix86_option_override_internal): Default long double to 64-bit for
29013         32-bit Bionic and to 128-bit for 64-bit Bionic.
29014
29015         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
29016         TARGET_LONG_DOUBLE_128 is true.
29017         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
29018
29019         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
29020         (mlong-double-64): Negate -mlong-double-128.
29021         (mlong-double-128): New option.
29022
29023         * config/i386/i386-c.c (ix86_target_macros): Define
29024         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
29025
29026         * doc/invoke.texi: Document -mlong-double-128.
29027
29028 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
29029
29030         PR rtl-optimization/60024
29031         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
29032
29033 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
29034
29035         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
29036
29037 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
29038
29039         PR rtl-optimization/57662
29040         * sel-sched.c (code_motion_path_driver): Do not mark already not
29041         existing blocks in the visiting bitmap.
29042
29043 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
29044
29045         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
29046         on the insn being emitted.
29047
29048 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
29049             Will Deacon  <will.deacon@arm.com>
29050
29051         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
29052
29053 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29054
29055         * config/arm/arm-tables.opt: Regenerate.
29056
29057 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29058
29059         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
29060         for vector types other than V16QImode.
29061         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
29062         define_expand, and call altivec_expand_vec_perm_le when producing
29063         code with little endian element order.
29064         (*altivec_vperm_<mode>_internal): New insn having previous
29065         behavior of altivec_vperm_<mode>.
29066         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
29067         altivec_expand_vec_perm_le when producing code with little endian
29068         element order.
29069         (*altivec_vperm_<mode>_uns_internal): New insn having previous
29070         behavior of altivec_vperm_<mode>_uns.
29071
29072 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29073
29074         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
29075         (altivec_vsumsws): Add handling for -maltivec=be with a little
29076         endian target.
29077         (altivec_vsumsws_direct): New.
29078         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
29079         gen_altivec_vsumsws.
29080
29081 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
29082
29083         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
29084         vtable_pointer_value_to_binfo): New functions.
29085         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
29086         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
29087
29088 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
29089
29090         * config/nios2/nios2.md (load_got_register): Initialize GOT
29091         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
29092         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
29093
29094 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
29095
29096         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
29097         preserverd by passthrough, do not propagate the type.
29098
29099 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29100
29101         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
29102         (mips_atomic_assign_expand_fenv): New function.
29103         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29104
29105 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29106
29107         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
29108         (__builtin_mips_set_fcsr): Likewise.
29109         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
29110         MIPS_USI_FTYPE_VOID.
29111         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
29112         (mips16_expand_set_fcsr): Likewise.
29113         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
29114         (mips16_set_fcsr_stub): Likewise.
29115         (mips16_get_fcsr_one_only_stub): New class.
29116         (mips16_set_fcsr_one_only_stub): Likewise.
29117         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
29118         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
29119         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
29120         (hard_float): New availability predicate.
29121         (mips_builtins): Add get_fcsr and set_fcsr.
29122         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
29123         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
29124         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
29125         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
29126         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
29127         patterns.
29128
29129 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29130
29131         * config/mips/mips.c (mips_one_only_stub): New class.
29132         (mips_need_mips16_rdhwr_p): Replace with...
29133         (mips16_rdhwr_stub): ...this new variable.
29134         (mips16_stub_call_address): New function.
29135         (mips16_rdhwr_one_only_stub): New class.
29136         (mips_expand_thread_pointer): Use mips16_stub_call_address.
29137         (mips_output_mips16_rdhwr): Delete.
29138         (mips_finish_stub): New function.
29139         (mips_code_end): Use it to handle rdhwr stubs.
29140
29141 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
29142
29143         PR target/60017
29144         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
29145         when calculating size of integer atomic types.
29146
29147 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
29148
29149         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
29150
29151 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
29152
29153         PR tree-optimization/60003
29154         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
29155         * profile.c (branch_prob): Use gimple_call_builtin_p
29156         to check for BUILT_IN_SETJMP_RECEIVER.
29157         * tree-inline.c (copy_bb): Call notice_special_calls.
29158
29159 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
29160
29161         PR bootstrap/59985
29162         * lra-constraints.c (process_alt_operands): Update reload_sum only
29163         on the first pass.
29164
29165 2014-01-31  Richard Henderson  <rth@redhat.com>
29166
29167         PR middle-end/60004
29168         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
29169         until after else_eh is processed.
29170
29171 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
29172
29173         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
29174         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
29175         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
29176         in smmintrin.h, remove them.
29177         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
29178         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
29179         * config/i386/i386.md (ROUND_SAE): Fix value.
29180         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
29181         (const48_operand): New.
29182         * config/i386/subst.md (round), (round_expand): Use
29183         const_4_or_8_to_11_operand.
29184         (round_saeonly), (round_saeonly_expand): Use const48_operand.
29185
29186 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
29187
29188         * config/i386/constraints.md (Yk): Swap meaning with k.
29189         * config/i386/i386.md (movhi_internal): Change Yk to k.
29190         (movqi_internal): Ditto.
29191         (*k<logic><mode>): Ditto.
29192         (*andhi_1): Ditto.
29193         (*andqi_1): Ditto.
29194         (kandn<mode>): Ditto.
29195         (*<code>hi_1): Ditto.
29196         (*<code>qi_1): Ditto.
29197         (kxnor<mode>): Ditto.
29198         (kortestzhi): Ditto.
29199         (kortestchi): Ditto.
29200         (kunpckhi): Ditto.
29201         (*one_cmplhi2_1): Ditto.
29202         (*one_cmplqi2_1): Ditto.
29203         * config/i386/sse.md (): Change k to Yk.
29204         (avx512f_load<mode>_mask): Ditto.
29205         (avx512f_blendm<mode>): Ditto.
29206         (avx512f_store<mode>_mask): Ditto.
29207         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
29208         (avx512f_storedqu<mode>_mask): Ditto.
29209         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
29210         Ditto.
29211         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
29212         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
29213         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
29214         (avx512f_maskcmp<mode>3): Ditto.
29215         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
29216         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
29217         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
29218         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
29219         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
29220         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
29221         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
29222         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
29223         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
29224         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
29225         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
29226         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
29227         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
29228         (vec_extract_lo_<mode>_maskm): Ditto.
29229         (vec_extract_hi_<mode>_maskm): Ditto.
29230         (avx512f_vternlog<mode>_mask): Ditto.
29231         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
29232         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
29233         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
29234         (avx512f_<code>v8div16qi2_mask): Ditto.
29235         (avx512f_<code>v8div16qi2_mask_store): Ditto.
29236         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
29237         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
29238         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
29239         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
29240         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29241         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29242         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29243         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29244         (avx512cd_maskb_vec_dupv8di): Ditto.
29245         (avx512cd_maskw_vec_dupv16si): Ditto.
29246         (avx512f_vpermi2var<mode>3_maskz): Ditto.
29247         (avx512f_vpermi2var<mode>3_mask): Ditto.
29248         (avx512f_vpermi2var<mode>3_mask): Ditto.
29249         (avx512f_vpermt2var<mode>3_maskz): Ditto.
29250         (*avx512f_gathersi<mode>): Ditto.
29251         (*avx512f_gathersi<mode>_2): Ditto.
29252         (*avx512f_gatherdi<mode>): Ditto.
29253         (*avx512f_gatherdi<mode>_2): Ditto.
29254         (*avx512f_scattersi<mode>): Ditto.
29255         (*avx512f_scatterdi<mode>): Ditto.
29256         (avx512f_compress<mode>_mask): Ditto.
29257         (avx512f_compressstore<mode>_mask): Ditto.
29258         (avx512f_expand<mode>_mask): Ditto.
29259         * config/i386/subst.md (mask): Change k to Yk.
29260         (mask_scalar_merge): Ditto.
29261         (sd): Ditto.
29262
29263 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
29264
29265         * doc/extend.texi (Vector Extensions): Document ?: in C++.
29266
29267 2014-01-31  Richard Biener  <rguenther@suse.de>
29268
29269         PR middle-end/59990
29270         * builtins.c (fold_builtin_memory_op): Make sure to not
29271         use a floating-point mode or a boolean or enumeral type for
29272         the copy operation.
29273
29274 2014-01-30  DJ Delorie  <dj@redhat.com>
29275
29276         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
29277         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
29278         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
29279         whenever main() has an epilogue.
29280
29281 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29282
29283         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
29284         unused variable "field".
29285         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
29286         (vsx_mergeh_<mode>): Likewise.
29287         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
29288         (altivec_vmrghh): Likewise.
29289         (altivec_vmrghw): Likewise.
29290         (altivec_vmrglb): Likewise.
29291         (altivec_vmrglh): Likewise.
29292         (altivec_vmrglw): Likewise.
29293         (altivec_vspltb): Add missing uses.
29294         (altivec_vsplth): Likewise.
29295         (altivec_vspltw): Likewise.
29296         (altivec_vspltsf): Likewise.
29297
29298 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
29299
29300         PR target/59923
29301         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
29302         frame related instructions.
29303
29304 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29305
29306         PR rtl-optimization/59959
29307         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
29308         any reload of register whose subreg is invalid.
29309
29310 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
29311
29312         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
29313         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
29314         Add missing return type - void.
29315
29316 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29317
29318         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
29319         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
29320         remove element index adjustment for endian (now handled in vsx.md
29321         and altivec.md).
29322         (altivec_expand_vec_perm_const): Use
29323         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
29324         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
29325         (vsx_xxspltw_<mode>): Adjust element index for little endian.
29326         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
29327         define_expand and a new define_insn *altivec_vspltb_internal;
29328         adjust for -maltivec=be on a little endian target.
29329         (altivec_vspltb_direct): New.
29330         (altivec_vsplth): Divide into a define_expand and a new
29331         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
29332         little endian target.
29333         (altivec_vsplth_direct): New.
29334         (altivec_vspltw): Divide into a define_expand and a new
29335         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
29336         little endian target.
29337         (altivec_vspltw_direct): New.
29338         (altivec_vspltsf): Divide into a define_expand and a new
29339         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
29340         a little endian target.
29341
29342 2014-01-30  Richard Biener  <rguenther@suse.de>
29343
29344         PR tree-optimization/59993
29345         * tree-ssa-forwprop.c (associate_pointerplus): Check we
29346         can propagate form the earlier stmt and avoid the transform
29347         when the intermediate result is needed.
29348
29349 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
29350
29351         * README.Portability: Fix typo.
29352
29353 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
29354
29355         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
29356         comparison_operator with ordered_comparison_operator.
29357
29358 2014-01-30  Nick Clifton  <nickc@redhat.com>
29359
29360         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
29361         Rename to mn10300_store_multiple_regs.
29362         * config/mn10300/mn10300.c: Likewise.
29363         * config/mn10300/mn10300.md (store_movm): Fix typo: call
29364         store_multiple_regs.
29365         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
29366         Call mn10300_store_multiple_regs.
29367
29368 2014-01-30  Nick Clifton  <nickc@redhat.com>
29369             DJ Delorie  <dj@redhat.com>
29370
29371         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
29372         %fp 2 to keep registers after it properly word-aligned.
29373         (rl78_alloc_physical_registers_umul): Handle the case where both
29374         input operands are the same.
29375
29376 2014-01-30  Richard Biener  <rguenther@suse.de>
29377
29378         PR tree-optimization/59903
29379         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
29380         check properly.
29381
29382 2014-01-30  Jason Merrill  <jason@redhat.com>
29383
29384         PR c++/59633
29385         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
29386
29387         PR c++/59645
29388         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
29389
29390 2014-01-30  Richard Biener  <rguenther@suse.de>
29391
29392         PR tree-optimization/59951
29393         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
29394
29395 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
29396
29397         PR target/59784
29398         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
29399         SFmode to DFmode case.
29400
29401 2014-01-29  DJ Delorie  <dj@redhat.com>
29402
29403         * config/msp430/msp430.opt (-minrt): New.
29404         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
29405         if -minrt given.
29406         (ENDFILE_SPEC): Likewise.
29407
29408 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
29409
29410         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
29411         (estimate_function_body_sizes): Use it.
29412
29413 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
29414
29415         PR c++/58561
29416         * dwarf2out.c (is_cxx_auto): New.
29417         (is_base_type): Use it.
29418         (gen_type_die_with_usage): Likewise.
29419
29420 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29421
29422         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
29423         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
29424         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
29425         -maltivec=be with LE targets.
29426         (vsx_mergeh_<mode>): Likewise.
29427         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
29428         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
29429         (altivec_vmrghb): Replace with define_expand and new
29430         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
29431         (altivec_vmrghb_direct): New define_insn.
29432         (altivec_vmrghh): Replace with define_expand and new
29433         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
29434         (altivec_vmrghh_direct): New define_insn.
29435         (altivec_vmrghw): Replace with define_expand and new
29436         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
29437         (altivec_vmrghw_direct): New define_insn.
29438         (*altivec_vmrghsf): Adjust for endianness.
29439         (altivec_vmrglb): Replace with define_expand and new
29440         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
29441         (altivec_vmrglb_direct): New define_insn.
29442         (altivec_vmrglh): Replace with define_expand and new
29443         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
29444         (altivec_vmrglh_direct): New define_insn.
29445         (altivec_vmrglw): Replace with define_expand and new
29446         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
29447         (altivec_vmrglw_direct): New define_insn.
29448         (*altivec_vmrglsf): Adjust for endianness.
29449         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29450         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29451         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29452         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29453         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29454         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29455         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29456         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29457
29458 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29459
29460         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
29461         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
29462         whitespace.
29463
29464 2014-01-29  Richard Biener  <rguenther@suse.de>
29465
29466         PR tree-optimization/58742
29467         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
29468         associate_pointerplus_align.
29469         (associate_pointerplus_diff): New function.
29470         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
29471         and associate_pointerplus_diff.
29472
29473 2014-01-29  Richard Biener  <rguenther@suse.de>
29474
29475         * lto-streamer.h (LTO_major_version): Bump to 3.
29476         (LTO_minor_version): Reset to 0.
29477
29478 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
29479
29480         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
29481         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
29482         (arm_file_start): Generate correct asm header for armv7ve.
29483         * config/arm/bpabi.h: Add multilib support for armv7ve.
29484         * config/arm/driver-arm.c: Change the architectures of cortex-a7
29485         and cortex-a15 to armv7ve.
29486         * config/arm/t-aprofile: Add multilib support for armv7ve.
29487         * doc/invoke.texi: Document -march=armv7ve.
29488
29489 2014-01-29  Richard Biener  <rguenther@suse.de>
29490
29491         PR tree-optimization/58742
29492         * tree-ssa-forwprop.c (associate_plusminus): Return true
29493         if we changed sth, defer EH cleanup to ...
29494         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
29495         (simplify_mult): New function.
29496
29497 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
29498
29499         PR middle-end/59917
29500         PR tree-optimization/59920
29501         * tree.c (build_common_builtin_nodes): Remove
29502         __builtin_setjmp_dispatcher initialization.
29503         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
29504         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
29505         instead of gsi_after_labels + manually skipping debug stmts.
29506         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
29507         ignore bbs with IFN_ABNORMAL_DISPATCHER.
29508         * tree-inline.c (copy_edges_for_bb): Remove
29509         can_make_abnormal_goto argument, instead add abnormal_goto_dest
29510         argument.  Ignore computed_goto_p stmts.  Don't call
29511         make_abnormal_goto_edges.  If a call might need abnormal edges
29512         for non-local gotos, see if it already has an edge to
29513         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
29514         with true argument, don't do anything then, otherwise add
29515         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
29516         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
29517         caller.
29518         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
29519         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
29520         (lower_stmt): Don't set data->calls_builtin_setjmp.
29521         (lower_builtin_setjmp): Adjust comment.
29522         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
29523         * tree-cfg.c (found_computed_goto): Remove.
29524         (factor_computed_gotos): Remove.
29525         (make_goto_expr_edges): Return bool, true for computed gotos.
29526         Don't call make_abnormal_goto_edges.
29527         (build_gimple_cfg): Don't set found_computed_goto, don't call
29528         factor_computed_gotos.
29529         (computed_goto_p): No longer static.
29530         (make_blocks): Don't set found_computed_goto.
29531         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
29532         (make_edges): If make_goto_expr_edges returns true, push bb
29533         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
29534         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
29535         vector.  Record mapping between bbs and OpenMP regions if there
29536         are any, adjust make_gimple_omp_edges caller.  Call
29537         handle_abnormal_edges.
29538         (make_abnormal_goto_edges): Remove.
29539         * tree-cfg.h (make_abnormal_goto_edges): Remove.
29540         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
29541         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
29542         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
29543         * internal-fn.def (ABNORMAL_DISPATCHER): New.
29544         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
29545         filling *region also set *region_idx to (*region)->entry->index.
29546
29547         PR other/58712
29548         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
29549         For REGs set ORIGINAL_REGNO.
29550
29551 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
29552
29553         * doc/md.texi: Mention that a target shouldn't implement
29554         vec_widen_(s|u)mul_even/odd pair if it is less efficient
29555         than hi/lo pair.
29556
29557 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
29558
29559         PR tree-optimization/59594
29560         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
29561         a copy of the datarefs vector rather than the vector itself.
29562
29563 2014-01-28  Jason Merrill  <jason@redhat.com>
29564
29565         PR c++/53756
29566         * dwarf2out.c (auto_die): New static.
29567         (gen_type_die_with_usage): Handle C++1y 'auto'.
29568         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
29569         on definition.
29570
29571 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
29572
29573         PR target/59672
29574         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
29575         (SPEC_X32): Likewise.
29576         (SPEC_64): Likewise.
29577         * config/i386/i386.c (ix86_option_override_internal): Turn off
29578         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
29579         for TARGET_16BIT.
29580         (x86_file_start): Output .code16gcc for TARGET_16BIT.
29581         * config/i386/i386.h (TARGET_16BIT): New macro.
29582         (TARGET_16BIT_P): Likewise.
29583         * config/i386/i386.opt: Add m16.
29584         * doc/invoke.texi: Document -m16.
29585
29586 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
29587
29588         PR preprocessor/59935
29589         * input.c (location_get_source_line): Bail out on when line number
29590         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29591
29592 2014-01-28  Richard Biener  <rguenther@suse.de>
29593
29594         PR tree-optimization/58742
29595         * tree-ssa-forwprop.c (associate_plusminus): Handle
29596         pointer subtraction of the form (T)(P + A) - (T)P.
29597
29598 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29599
29600         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29601         at const_int_cost.
29602
29603 2014-01-28  Richard Biener  <rguenther@suse.de>
29604
29605         Revert
29606         2014-01-28  Richard Biener  <rguenther@suse.de>
29607
29608         PR rtl-optimization/45364
29609         PR rtl-optimization/59890
29610         * var-tracking.c (local_get_addr_clear_given_value): Handle
29611         already cleared slot.
29612         (val_reset): Handle not allocated local_get_addr_cache.
29613         (vt_find_locations): Use post-order on the inverted CFG.
29614
29615 2014-01-28  Richard Biener  <rguenther@suse.de>
29616
29617         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29618
29619 2014-01-28  Richard Biener  <rguenther@suse.de>
29620
29621         PR rtl-optimization/45364
29622         PR rtl-optimization/59890
29623         * var-tracking.c (local_get_addr_clear_given_value): Handle
29624         already cleared slot.
29625         (val_reset): Handle not allocated local_get_addr_cache.
29626         (vt_find_locations): Use post-order on the inverted CFG.
29627
29628 2014-01-28  Alan Modra  <amodra@gmail.com>
29629
29630         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29631         * configure.ac <recursive call for build != host>: Define
29632         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29633         and LD_FOR_BUILD too.
29634         * configure: Regenerate.
29635
29636 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
29637
29638         * config/i386/i386.c (get_builtin_code_for_version): Separate
29639         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29640         Broadwell from Haswell.
29641
29642 2014-01-27  Steve Ellcey  <sellcey@mips.com>
29643
29644         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29645         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29646         * config/mips/mips.c (mips_option_override): Change setting
29647         of TARGET_DSP.
29648         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29649         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29650         Change from Mask to Var.
29651
29652 2014-01-27  Jeff Law  <law@redhat.com>
29653
29654         * ipa-inline.c (inline_small_functions): Fix typo.
29655
29656 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
29657
29658         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29659         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29660         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29661         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29662         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29663         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29664         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29665         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29666         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29667         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29668         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29669         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29670         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29671         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29672         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29673         (_mm512_storeu_epi64): Ditto.
29674         (_mm512_cmpge_epi32_mask): Ditto.
29675         (_mm512_cmpge_epu32_mask): Ditto.
29676         (_mm512_cmpge_epi64_mask): Ditto.
29677         (_mm512_cmpge_epu64_mask): Ditto.
29678         (_mm512_cmple_epi32_mask): Ditto.
29679         (_mm512_cmple_epu32_mask): Ditto.
29680         (_mm512_cmple_epi64_mask): Ditto.
29681         (_mm512_cmple_epu64_mask): Ditto.
29682         (_mm512_cmplt_epi32_mask): Ditto.
29683         (_mm512_cmplt_epu32_mask): Ditto.
29684         (_mm512_cmplt_epi64_mask): Ditto.
29685         (_mm512_cmplt_epu64_mask): Ditto.
29686         (_mm512_cmpneq_epi32_mask): Ditto.
29687         (_mm512_cmpneq_epu32_mask): Ditto.
29688         (_mm512_cmpneq_epi64_mask): Ditto.
29689         (_mm512_cmpneq_epu64_mask): Ditto.
29690         (_mm512_expand_pd): Ditto.
29691         (_mm512_expand_ps): Ditto.
29692         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29693         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29694         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29695         * config/i386/i386.c (ix86_builtins): Add
29696         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29697         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29698         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29699         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29700         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29701         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29702         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29703         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29704         IX86_BUILTIN_PMOVUSQW512_MEM.
29705         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29706         __builtin_ia32_pmovsqd512mem_mask,
29707         __builtin_ia32_pmovqd512mem_mask,
29708         __builtin_ia32_pmovusqw512mem_mask,
29709         __builtin_ia32_pmovsqw512mem_mask,
29710         __builtin_ia32_pmovqw512mem_mask,
29711         __builtin_ia32_pmovusdw512mem_mask,
29712         __builtin_ia32_pmovsdw512mem_mask,
29713         __builtin_ia32_pmovdw512mem_mask,
29714         __builtin_ia32_pmovqb512mem_mask,
29715         __builtin_ia32_pmovusqb512mem_mask,
29716         __builtin_ia32_pmovsqb512mem_mask,
29717         __builtin_ia32_pmovusdb512mem_mask,
29718         __builtin_ia32_pmovsdb512mem_mask,
29719         __builtin_ia32_pmovdb512mem_mask.
29720         (bdesc_args): Add __builtin_ia32_expanddf512,
29721         __builtin_ia32_expandsf512.
29722         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29723         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29724         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29725         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29726         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29727         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29728         (avx512f_<code>v8div16qi2_mask_store): This.
29729         (avx512f_expand<mode>): New.
29730
29731 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
29732
29733         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29734         New.
29735         (_mm512_mask_prefetch_i64gather_pd): Ditto.
29736         (_mm512_prefetch_i32scatter_pd): Ditto.
29737         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29738         (_mm512_prefetch_i64scatter_pd): Ditto.
29739         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29740         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29741         (_mm512_mask_prefetch_i64gather_ps): Ditto.
29742         (_mm512_prefetch_i32scatter_ps): Ditto.
29743         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29744         (_mm512_prefetch_i64scatter_ps): Ditto.
29745         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29746         * config/i386/i386-builtin-types.def: Define
29747         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29748         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29749         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29750         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29751         IX86_BUILTIN_SCATTERPFQPD.
29752         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29753         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29754         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29755         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29756         __builtin_ia32_scatterpfqps.
29757         (ix86_expand_builtin): Expand new built-ins.
29758         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29759         fix memory access data type.
29760         (*avx512pf_gatherpf<mode>_mask): Ditto.
29761         (*avx512pf_gatherpf<mode>): Ditto.
29762         (avx512pf_scatterpf<mode>): Ditto.
29763         (*avx512pf_scatterpf<mode>_mask): Ditto.
29764         (*avx512pf_scatterpf<mode>): Ditto.
29765         (GATHER_SCATTER_SF_MEM_MODE): New.
29766         (avx512pf_gatherpf<mode>df): Ditto.
29767         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29768         (*avx512pf_scatterpf<mode>df): Ditto.
29769
29770 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
29771
29772         PR bootstrap/59934
29773         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29774         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29775         reached.
29776
29777 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29778
29779         * common/config/arm/arm-common.c
29780         (arm_rewrite_mcpu): Handle multiple names.
29781         * config/arm/arm.h
29782         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29783
29784 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29785
29786         * gimple-builder.h (create_gimple_tmp): Delete.
29787
29788 2014-01-27  Christian Bruel  <christian.bruel@st.com>
29789
29790         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29791         words comparisons.
29792
29793 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
29794
29795         * config/pa/pa.md (call): Generate indirect long calls to non-local
29796         functions when outputing 32-bit code.
29797         (call_value): Likewise except for special call to buggy powf function.
29798
29799         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29800         portable runtime and PIC indirect calls.
29801         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29802         and PIC call sequences.  Use ldo instead of blr to set return register
29803         in PIC call sequence.
29804
29805 2014-01-25  Walter Lee  <walt@tilera.com>
29806
29807         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29808         avoid clobbering a live register.
29809
29810 2014-01-25  Walter Lee  <walt@tilera.com>
29811
29812         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29813         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29814         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29815         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29816
29817 2014-01-25  Walter Lee  <walt@tilera.com>
29818
29819         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29820         arguments on even registers.
29821         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29822         STACK_BOUNDARY.
29823         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29824         (BIGGEST_ALIGNMENT): Ditto.
29825         (BIGGEST_FIELD_ALIGNMENT): Ditto.
29826
29827 2014-01-25  Walter Lee  <walt@tilera.com>
29828
29829         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29830         insns before bundling.
29831         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29832
29833 2014-01-25  Walter Lee  <walt@tilera.com>
29834
29835         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29836         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29837         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29838
29839 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29840
29841         * config/mips/constraints.md (kl): Delete.
29842         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29843         define expands, using...
29844         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29845         instructions for MIPS16.
29846         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29847         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29848
29849 2014-01-25  Walter Lee  <walt@tilera.com>
29850
29851         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29852         (clzdi2): Ditto.
29853         (ffsdi2): Ditto.
29854
29855 2014-01-25  Walter Lee  <walt@tilera.com>
29856
29857         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29858         (TARGET_EXPAND_TO_RTL_HOOK): Define.
29859
29860 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29861
29862         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29863         Handle XOR.
29864
29865 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
29866
29867         * print-rtl.c (in_call_function_usage): New var.
29868         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29869         EXPR_LIST mode as mode and not as reg note name.
29870
29871         PR middle-end/59561
29872         * cfgloopmanip.c (copy_loop_info): If
29873         loop->warned_aggressive_loop_optimizations, make sure
29874         the flag is set in target loop too.
29875
29876 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
29877
29878         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29879         flag_cilkplus.
29880         * builtins.def: Likewise.
29881         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29882         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29883         * ira.c (ira_setup_eliminable_regset): Likewise.
29884         * omp-low.c (gate_expand_omp): Likewise.
29885         (execute_lower_omp): Likewise.
29886         (diagnose_sb_0): Likewise.
29887         (gate_diagnose_omp_blocks): Likewise.
29888         (simd_clone_clauses_extract): Likewise.
29889         (gate): Likewise.
29890
29891 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29892
29893         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29894         correction for little endian...
29895         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29896         here.
29897
29898 2014-01-24  Jeff Law  <law@redhat.com>
29899
29900         PR tree-optimization/59919
29901         * tree-vrp.c (find_assert_locations_1): Do not register asserts
29902         for non-returning calls.
29903
29904 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
29905
29906         * common/config/aarch64/aarch64-common.c
29907         (aarch64_rewrite_mcpu): Handle multiple names.
29908         * config/aarch64/aarch64.h
29909         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29910
29911 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
29912
29913         * input.c (add_file_to_cache_tab): Handle the case where fopen
29914         returns NULL.
29915
29916 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
29917
29918         PR target/59929
29919         * config/i386/i386.md (pushsf splitter): Get stack adjustment
29920         from push operand if code of push isn't PRE_DEC.
29921
29922 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
29923
29924         PR target/59909
29925         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29926         -mquad-memory-atomic.  Update -mquad-memory documentation to say
29927         it is only used for non-atomic loads/stores.
29928
29929         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29930         -mquad-memory or -mquad-memory-atomic switches.
29931
29932         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29933         -mquad-memory-atomic to ISA 2.07 support.
29934
29935         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29936         to separate support of normal quad word memory operations (ldq, stq)
29937         from the atomic quad word memory operations.
29938
29939         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29940         support to separate non-atomic quad word operations from atomic
29941         quad word operations.  Disable non-atomic quad word operations in
29942         little endian mode so that we don't have to swap words after the
29943         load and before the store.
29944         (quad_load_store_p): Add comment about atomic quad word support.
29945         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29946         options printed with -mdebug=reg.
29947
29948         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29949         -mquad-memory-atomic as the test for whether we have quad word
29950         atomic instructions.
29951         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29952         or -mp8-vector are used, allow byte/half-word atomic operations.
29953
29954         * config/rs6000/sync.md (load_lockedti): Insure that the address
29955         is a proper indexed or indirect address for the lqarx instruction.
29956         On little endian systems, swap the hi/lo registers after the lqarx
29957         instruction.
29958         (load_lockedpti): Use indexed_or_indirect_operand predicate to
29959         insure the address is valid for the lqarx instruction.
29960         (store_conditionalti): Insure that the address is a proper indexed
29961         or indirect address for the stqcrx. instruction.  On little endian
29962         systems, swap the hi/lo registers before doing the stqcrx.
29963         instruction.
29964         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29965         insure the address is valid for the stqcrx. instruction.
29966
29967         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29968         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29969         type of quad memory support is available.
29970
29971 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
29972
29973         PR regression/59915
29974         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29975         there is a danger of looping.
29976
29977 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
29978
29979         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29980         force flag_ira_loop_pressure if set via command line.
29981
29982 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29983
29984         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29985         (ashr_simd): New builtin handling DI mode.
29986         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29987         (aarch64_sshr_simddi): New match pattern.
29988         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29989         (vshrd_n_s64): Likewise.
29990         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29991
29992 2014-01-23  Nick Clifton  <nickc@redhat.com>
29993
29994         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29995         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29996         favour of mcu specific scripts.
29997         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29998         430x multilibs.
29999
30000 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
30001             Alex Velenko  <Alex.Velenko@arm.com>
30002
30003         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
30004         (vaddv_s16): Likewise.
30005         (vaddv_s32): Likewise.
30006         (vaddv_u8): Likewise.
30007         (vaddv_u16): Likewise.
30008         (vaddv_u32): Likewise.
30009         (vaddvq_s8): Likewise.
30010         (vaddvq_s16): Likewise.
30011         (vaddvq_s32): Likewise.
30012         (vaddvq_s64): Likewise.
30013         (vaddvq_u8): Likewise.
30014         (vaddvq_u16): Likewise.
30015         (vaddvq_u32): Likewise.
30016         (vaddvq_u64): Likewise.
30017         (vaddv_f32): Likewise.
30018         (vaddvq_f32): Likewise.
30019         (vaddvq_f64): Likewise.
30020         (vmaxv_f32): Likewise.
30021         (vmaxv_s8): Likewise.
30022         (vmaxv_s16): Likewise.
30023         (vmaxv_s32): Likewise.
30024         (vmaxv_u8): Likewise.
30025         (vmaxv_u16): Likewise.
30026         (vmaxv_u32): Likewise.
30027         (vmaxvq_f32): Likewise.
30028         (vmaxvq_f64): Likewise.
30029         (vmaxvq_s8): Likewise.
30030         (vmaxvq_s16): Likewise.
30031         (vmaxvq_s32): Likewise.
30032         (vmaxvq_u8): Likewise.
30033         (vmaxvq_u16): Likewise.
30034         (vmaxvq_u32): Likewise.
30035         (vmaxnmv_f32): Likewise.
30036         (vmaxnmvq_f32): Likewise.
30037         (vmaxnmvq_f64): Likewise.
30038         (vminv_f32): Likewise.
30039         (vminv_s8): Likewise.
30040         (vminv_s16): Likewise.
30041         (vminv_s32): Likewise.
30042         (vminv_u8): Likewise.
30043         (vminv_u16): Likewise.
30044         (vminv_u32): Likewise.
30045         (vminvq_f32): Likewise.
30046         (vminvq_f64): Likewise.
30047         (vminvq_s8): Likewise.
30048         (vminvq_s16): Likewise.
30049         (vminvq_s32): Likewise.
30050         (vminvq_u8): Likewise.
30051         (vminvq_u16): Likewise.
30052         (vminvq_u32): Likewise.
30053         (vminnmv_f32): Likewise.
30054         (vminnmvq_f32): Likewise.
30055         (vminnmvq_f64): Likewise.
30056
30057 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
30058
30059         * config/aarch64/aarch64-simd.md
30060         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
30061         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
30062         (*aarch64_mul3_elt<mode>): Likewise.
30063         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
30064         (*aarch64_mul3_elt_to_64v2df): Likewise.
30065         (*aarch64_mla_elt<mode>): Likewise.
30066         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
30067         (*aarch64_mls_elt<mode>): Likewise.
30068         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
30069         (*aarch64_fma4_elt<mode>): Likewise.
30070         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
30071         (*aarch64_fma4_elt_to_64v2df): Likewise.
30072         (*aarch64_fnma4_elt<mode>): Likewise.
30073         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
30074         (*aarch64_fnma4_elt_to_64v2df): Likewise.
30075         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
30076         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
30077         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
30078         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
30079         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
30080         (aarch64_sqdmull_lane<mode>_internal): Likewise.
30081         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
30082
30083 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
30084
30085         * config/aarch64/aarch64-simd.md
30086         (aarch64_be_checked_get_lane<mode>): New define_expand.
30087         * config/aarch64/aarch64-simd-builtins.def
30088         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
30089         New builtin definition.
30090         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
30091         Use new safe be builtin.
30092
30093 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
30094
30095         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
30096         New define_insn.
30097         (aarch64_be_st1<mode>): Likewise.
30098         (aarch_ld1<VALL:mode>): Define_expand modified.
30099         (aarch_st1<VALL:mode>): Likewise.
30100         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
30101         (UNSPEC_ST1): Likewise.
30102
30103 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
30104
30105         * config/microblaze/microblaze.md: Add trap insn and attribute
30106
30107 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
30108
30109         PR preprocessor/58580
30110         * input.h (location_get_source_line): Take an additional line_size
30111         parameter.
30112         (void diagnostics_file_cache_fini): Declare new function.
30113         * input.c (struct fcache): New type.
30114         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
30115         New static constants.
30116         (diagnostic_file_cache_init, total_lines_num)
30117         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
30118         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
30119         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
30120         (get_next_line, read_next_line, goto_next_line, read_line_num):
30121         New static function definitions.
30122         (diagnostic_file_cache_fini): New function.
30123         (location_get_source_line): Take an additional output line_len
30124         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
30125         read_line_num.
30126         * diagnostic.c (diagnostic_finish): Call
30127         diagnostic_file_cache_fini.
30128         (adjust_line): Take an additional input parameter for the length
30129         of the line, rather than calculating it with strlen.
30130         (diagnostic_show_locus): Adjust the use of
30131         location_get_source_line and adjust_line with respect to their new
30132         signature.  While displaying a line now, do not stop at the first
30133         null byte.  Rather, display the zero byte as a space and keep
30134         going until we reach the size of the line.
30135         * Makefile.in: Add vec.o to OBJS-libcommon
30136
30137 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
30138             Ilya Tocar  <ilya.tocar@intel.com>
30139
30140         * config/i386/avx512fintrin.h (_mm512_kmov): New.
30141         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
30142         (__builtin_ia32_kmov16): Ditto.
30143         * config/i386/i386.md (UNSPEC_KMOV): New.
30144         (kmovw): Ditto.
30145
30146 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
30147
30148         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
30149         (_mm512_storeu_si512): Ditto.
30150
30151 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
30152
30153         PR target/52125
30154         * rtl.h (get_referenced_operands): Declare.
30155         * recog.c (get_referenced_operands): New function.
30156         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
30157         operands have been referenced when recording LO_SUM references.
30158
30159 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
30160
30161         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
30162
30163 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
30164
30165         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
30166         Enable for generic and recent AMD targets.
30167
30168 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
30169
30170         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
30171         ARG_SIZE note when adjustment was eliminated.
30172
30173 2014-01-22  Jeff Law  <law@redhat.com>
30174
30175         PR tree-optimization/59597
30176         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
30177         in file.  Accept new argument REGISTERING and use it to modify
30178         dump output appropriately.
30179         (register_jump_thread): Corresponding changes.
30180         (mark_threaded_blocks): Reinstate code to cancel unprofitable
30181         thread paths involving joiner blocks.  Add code to dump cancelled
30182         jump threading paths.
30183
30184 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
30185
30186         PR rtl-optimization/59477
30187         * lra-constraints.c (inherit_in_ebb): Process call for living hard
30188         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
30189
30190 2014-01-22  Tom Tromey  <tromey@redhat.com>
30191
30192         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
30193         PARAMS.
30194         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
30195
30196 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30197
30198         PR rtl-optimization/59896
30199         * lra-constraints.c (process_alt_operands): Check unused note for
30200         matched operands of insn with no output reloads.
30201
30202 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
30203
30204         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
30205         (mips_move_from_gpr_cost): Likewise.
30206
30207 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30208
30209         PR rtl-optimization/59858
30210         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
30211         ira_class_hard_regs_num.
30212         (process_alt_operands): Increase reject for dying matched operand.
30213
30214 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
30215
30216         PR target/59003
30217         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
30218         smaller than size, perform several stores or loads and stores
30219         at dst + count - size to store or copy all of size bytes, rather
30220         than just last modesize bytes.
30221
30222 2014-01-20  DJ Delorie  <dj@redhat.com>
30223
30224         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
30225         that CLOBBERs are REGs before propogating their values.
30226
30227 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
30228
30229         PR middle-end/59789
30230         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
30231         (cgraph_inline_failed_type): New function.
30232         * cgraph.h (DEFCIFCODE): Add type.
30233         (cgraph_inline_failed_type_t): New enum.
30234         (cgraph_inline_failed_type): New prototype.
30235         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
30236         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30237         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
30238         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
30239         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
30240         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
30241         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
30242         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
30243         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
30244         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
30245         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
30246         OPTIMIZATION_MISMATCH.
30247         * tree-inline.c (expand_call_inline): Emit errors during
30248         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
30249
30250 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
30251
30252         PR target/59685
30253         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
30254         mode attribute in insn output.
30255
30256 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
30257
30258         * output.h (output_constant): Delete.
30259         * varasm.c (output_constant): Make private.
30260
30261 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
30262
30263         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
30264
30265 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
30266
30267         PR middle-end/59860
30268         * tree.h (fold_builtin_strcat): New prototype.
30269         * builtins.c (fold_builtin_strcat): No longer static.  Add len
30270         argument, if non-NULL, don't call c_strlen.  Optimize
30271         directly into __builtin_memcpy instead of __builtin_strcpy.
30272         (fold_builtin_2): Adjust fold_builtin_strcat caller.
30273         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
30274
30275 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
30276
30277         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30278         for SImode_address_operand operands, having only a REG argument.
30279
30280 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30281
30282         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
30283         loader name using mbig-endian.
30284         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
30285
30286 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
30287
30288         * doc/invoke.texi (-march): Clarify documentation for AArch64.
30289         (-mtune): Likewise.
30290         (-mcpu): Likewise.
30291
30292 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
30293
30294         * config/aarch64/aarch64-protos.h
30295         (aarch64_cannot_change_mode_class_ptr): Declare.
30296         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
30297         aarch64_cannot_change_mode_class_ptr): New.
30298         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
30299         backend hook aarch64_cannot_change_mode_class.
30300
30301 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
30302
30303         * common/config/aarch64/aarch64-common.c
30304         (aarch64_handle_option): Don't handle any option order logic here.
30305         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
30306         selected_cpu, warn on architecture version mismatch.
30307         (aarch64_override_options): Fix parsing order for option strings.
30308
30309 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30310             Iain Sandoe  <iain@codesourcery.com>
30311
30312         PR bootstrap/59496
30313         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
30314         warning.  Amend comment to reflect current functionality.
30315
30316 2014-01-20  Richard Biener  <rguenther@suse.de>
30317
30318         PR middle-end/59860
30319         * builtins.c (fold_builtin_strcat): Remove case better handled
30320         by tree-ssa-strlen.c.
30321
30322 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
30323
30324         * config/aarch64/aarch64.opt
30325         (mcpu, march, mtune): Make case-insensitive.
30326
30327 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
30328
30329         PR target/59880
30330         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30331         if operands[1] is a REG or ZERO_EXTEND of a REG.
30332
30333 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
30334
30335         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
30336
30337 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
30338
30339         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
30340         long non-pic millicode calls.
30341
30342 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30343
30344         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
30345
30346 2014-01-19  Kito Cheng  <kito@0xlab.org>
30347
30348         * builtins.c (expand_movstr): Check movstr expand done or fail.
30349
30350 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30351             H.J. Lu  <hongjiu.lu@intel.com>
30352
30353         PR target/59379
30354         * config/i386/i386.md (*lea<mode>): Zero-extend return register
30355         to DImode for zero-extended addresses.
30356
30357 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
30358
30359         PR rtl-optimization/57763
30360         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
30361         on the new indirect jump_insn and increment LABEL_NUSES (label).
30362
30363 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
30364
30365         PR bootstrap/59580
30366         PR bootstrap/59583
30367         * config.gcc (x86_archs): New variable.
30368         (x86_64_archs): Likewise.
30369         (x86_cpus): Likewise.
30370         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
30371         --with-arch/--with-cpu= options.
30372         Support --with-arch=/--with-cpu={nehalem,westmere,
30373         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
30374
30375 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30376
30377         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
30378         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
30379
30380 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30381
30382         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
30383
30384 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
30385
30386         PR target/58944
30387         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
30388         clear cpp_get_options (parse_in)->warn_unused_macros for
30389         ix86_target_macros_internal with cpp_define.
30390
30391 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
30392
30393         * jump.c (delete_related_insns): Keep (use (insn))s.
30394         * reorg.c (redundant_insn): Check for barriers too.
30395
30396 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30397
30398         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
30399
30400 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
30401
30402         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
30403         call to $$dyncall when TARGET_LONG_CALLS is true.
30404
30405 2014-01-17  Jeff Law  <law@redhat.com>
30406
30407         * ree.c (combine_set_extension): Temporarily disable test for
30408         changing number of hard registers.
30409
30410 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
30411
30412         PR middle-end/58125
30413         * ipa-inline-analysis.c (inline_free_summary):
30414         Do not free summary of aliases.
30415
30416 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
30417
30418         PR middle-end/59706
30419         * gimplify.c (gimplify_expr): Use create_tmp_var
30420         instead of create_tmp_var_raw.  If cond doesn't have
30421         integral type, don't add the IFN_ANNOTATE builtin at all.
30422
30423 2014-01-17  Martin Jambor  <mjambor@suse.cz>
30424
30425         PR ipa/59736
30426         * ipa-cp.c (prev_edge_clone): New variable.
30427         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
30428         Also resize prev_edge_clone vector.
30429         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
30430         (ipcp_edge_removal_hook): New function.
30431         (ipcp_driver): Register ipcp_edge_removal_hook.
30432
30433 2014-01-17  Andrew Pinski  <apinski@cavium.com>
30434             Steve Ellcey  <sellcey@mips.com>
30435
30436         PR target/59462
30437         * config/mips/mips.c (mips_print_operand): Check operand mode instead
30438         of operator mode.
30439
30440 2014-01-17  Jeff Law  <law@redhat.com>
30441
30442         PR middle-end/57904
30443         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
30444         so that pass_ccp runs first.
30445
30446 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30447
30448         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
30449         (ix86_adjust_cost): Use !TARGET_XXX.
30450         (do_reorder_for_imul): Likewise.
30451         (swap_top_of_ready_list): Likewise.
30452         (ix86_sched_reorder): Likewise.
30453
30454 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30455
30456         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30457         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
30458         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
30459         (intel_memset): New.  Duplicate slm_memset.
30460         (intel_cost): New.  Duplicate slm_cost.
30461         (m_INTEL): New macro.
30462         (processor_target_table): Add "intel".
30463         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
30464         with PROCESSOR_INTEL for "intel".
30465         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
30466         PROCESSOR_SILVERMONT.
30467         (ix86_issue_rate): Likewise.
30468         (ix86_adjust_cost): Likewise.
30469         (ia32_multipass_dfa_lookahead): Likewise.
30470         (swap_top_of_ready_list): Likewise.
30471         (ix86_sched_reorder): Likewise.
30472         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
30473         instead of TARGET_OPT_AGU.
30474         * config/i386/i386.h (TARGET_INTEL): New.
30475         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
30476         (processor_type): Add PROCESSOR_INTEL.
30477         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
30478         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
30479
30480 2014-01-17  Marek Polacek  <polacek@redhat.com>
30481
30482         PR c/58346
30483         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
30484         size is zero.
30485
30486 2014-01-17  Richard Biener  <rguenther@suse.de>
30487
30488         PR tree-optimization/46590
30489         * opts.c (default_options_table): Add entries for
30490         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
30491         all enabled at -O1 but not for -Og.
30492         * common.opt (fbranch-count-reg): Remove Init(1).
30493         (fmove-loop-invariants): Likewise.
30494         (ftree-pta): Likewise.
30495
30496 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
30497
30498         * config/i386/i386.c (ix86_data_alignment): For compatibility with
30499         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
30500         decls to at least the GCC 4.8 used alignments.
30501
30502         PR fortran/59440
30503         * tree-nested.c (convert_nonlocal_reference_stmt,
30504         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
30505         of GIMPLE_BIND stmts, adjust associated decls.
30506
30507 2014-01-17  Richard Biener  <rguenther@suse.de>
30508
30509         PR tree-optimization/46590
30510         * vec.h (vec<>::bseach): New member function implementing
30511         binary search according to C89 bsearch.
30512         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
30513         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
30514         bitmap pointer again.  Make accesses_in_loop a flat array.
30515         (mem_ref_obstack): New global.
30516         (outermost_indep_loop): Adjust for mem_ref->stored changes.
30517         (mark_ref_stored): Likewise.
30518         (ref_indep_loop_p_2): Likewise.
30519         (set_ref_stored_in_loop): New helper function.
30520         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
30521         (memref_free): Adjust.
30522         (record_mem_ref_loc): Simplify.
30523         (gather_mem_refs_stmt): Adjust.
30524         (sort_locs_in_loop_postorder_cmp): New function.
30525         (analyze_memory_references): Sort accesses_in_loop after
30526         loop postorder number.
30527         (find_ref_loc_in_loop_cmp): New function.
30528         (for_all_locs_in_loop): Find relevant cluster of locs in
30529         accesses_in_loop and iterate without recursion.
30530         (execute_sm): Avoid uninit warning.
30531         (struct ref_always_accessed): Simplify.
30532         (ref_always_accessed::operator ()): Likewise.
30533         (ref_always_accessed_p): Likewise.
30534         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
30535         loop postorder numbers here.
30536         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
30537         numbers.
30538
30539 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
30540
30541         PR c++/57945
30542         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
30543         on decls for which assemble_alias has been called.
30544
30545 2014-01-17  Nick Clifton  <nickc@redhat.com>
30546
30547         * config/msp430/msp430.opt: (mcpu): New option.
30548         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
30549         (msp430_option_override): Parse target_cpu.  If the MCU name
30550         matches a generic string, clear target_mcu.
30551         (msp430_attr): Allow numeric interrupt values up to 63.
30552         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
30553         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
30554         option.
30555         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
30556         Add mcpu matches.
30557         * config/msp430/msp430.md (popm): Use %J rather than %I.
30558         (addsi3): Use msp430_nonimmediate_operand for operand 2.
30559         (addhi_cy_i): Use immediate_operand for operand 2.
30560         * doc/invoke.texi: Document -mcpu option.
30561
30562 2014-01-17  Richard Biener  <rguenther@suse.de>
30563
30564         PR rtl-optimization/38518
30565         * df.h (df_analyze_loop): Declare.
30566         * df-core.c: Include cfgloop.h.
30567         (df_analyze_1): Split out main part of df_analyze.
30568         (df_analyze): Adjust.
30569         (loop_inverted_post_order_compute): New function.
30570         (loop_post_order_compute): Likewise.
30571         (df_analyze_loop): New function avoiding whole-function
30572         postorder computes.
30573         * loop-invariant.c (find_defs): Use df_analyze_loop.
30574         (find_invariants): Adjust.
30575         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
30576
30577 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30578
30579         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
30580         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30581
30582 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
30583
30584         * ipa-ref.c (ipa_remove_stmt_references): Fix references
30585         traversal when removing references.
30586
30587 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
30588
30589         PR ipa/59775
30590         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30591
30592 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
30593
30594         PR middle-end/56791
30595         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30596         pushing a reload for an autoinc when we had previously reloaded an
30597         inner part of the address.
30598
30599 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
30600
30601         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30602         field.
30603         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30604         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30605         when not giving up or versioning for alias only because of
30606         loop->safelen.
30607         (vect_analyze_data_ref_dependences): Set to true.
30608         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30609         is a GIMPLE_PHI.
30610         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30611         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30612         to the condition.
30613
30614         PR middle-end/58344
30615         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30616
30617         PR target/59839
30618         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30619         operand 0 predicate for gathers, use a new pseudo as subtarget.
30620
30621 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
30622
30623         PR middle-end/59609
30624         * lra-constraints.c (process_alt_operands): Add printing debug info.
30625         Check absence of input/output reloads for matched operands too.
30626
30627 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
30628
30629         PR rtl-optimization/59835
30630         * ira.c (ira_init_register_move_cost): Increase cost for
30631         impossible modes.
30632
30633 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
30634
30635         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30636
30637 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
30638
30639         PR target/59780
30640         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30641         non-register objects.  Use gen_(high/low)part more consistently.
30642         Fix assertions.
30643
30644 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
30645
30646         PR target/59844
30647         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30648         endian support, remove tests for WORDS_BIG_ENDIAN.
30649         (p8_mfvsrd_3_<mode>): Likewise.
30650         (reload_gpr_from_vsx<mode>): Likewise.
30651         (reload_gpr_from_vsxsf): Likewise.
30652         (p8_mfvsrd_4_disf): Likewise.
30653
30654 2014-01-16  Richard Biener  <rguenther@suse.de>
30655
30656         PR rtl-optimization/46590
30657         * lcm.c (compute_antinout_edge): Use postorder iteration.
30658         (compute_laterin): Use inverted postorder iteration.
30659
30660 2014-01-16  Nick Clifton  <nickc@redhat.com>
30661
30662         PR middle-end/28865
30663         * varasm.c (output_constant): Return the number of bytes actually
30664         emitted.
30665         (output_constructor_array_range): Update the field size with the
30666         number of bytes emitted by output_constant.
30667         (output_constructor_regular_field): Likewise.  Also do not
30668         complain if the total number of bytes emitted is now greater
30669         than the expected fieldpos.
30670         * output.h (output_constant): Update prototype and descriptive comment.
30671
30672 2014-01-16  Marek Polacek  <polacek@redhat.com>
30673
30674         PR middle-end/59827
30675         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30676         it is error_mark_node.
30677
30678 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
30679
30680         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30681         VALID_AVX256_REG_OR_OI_MODE.
30682
30683 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
30684
30685         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30686         current procedure should be profiled.
30687
30688 2014-01-15  Andrew Pinski  <apinski@cavium.com>
30689
30690         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30691         of moving from/to the STACK_REG register class.
30692
30693 2014-01-15  Richard Henderson  <rth@redhat.com>
30694
30695         PR debug/54694
30696         * reginfo.c (global_regs_decl): Globalize.
30697         * rtl.h (global_regs_decl): Declare.
30698         * ira.c (do_reload): Diagnose frame_pointer_needed and it
30699         reserved via global_regs.
30700
30701 2014-01-15  Teresa Johnson  <tejohnson@google.com>
30702
30703         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30704
30705 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
30706
30707         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30708         and vmulosh rather than call gen_vec_widen_smult_*.
30709         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30710         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30711         (vec_widen_smult_even_v16qi): Likewise.
30712         (vec_widen_umult_even_v8hi): Likewise.
30713         (vec_widen_smult_even_v8hi): Likewise.
30714         (vec_widen_umult_odd_v16qi): Likewise.
30715         (vec_widen_smult_odd_v16qi): Likewise.
30716         (vec_widen_umult_odd_v8hi): Likewise.
30717         (vec_widen_smult_odd_v8hi): Likewise.
30718         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30719         vmuloub rather than call gen_vec_widen_umult_*.
30720         (vec_widen_umult_lo_v16qi): Likewise.
30721         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30722         vmulosb rather than call gen_vec_widen_smult_*.
30723         (vec_widen_smult_lo_v16qi): Likewise.
30724         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30725         rather than call gen_vec_widen_umult_*.
30726         (vec_widen_umult_lo_v8hi): Likewise.
30727         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30728         rather than call gen_vec_widen_smult_*.
30729         (vec_widen_smult_lo_v8hi): Likewise.
30730
30731 2014-01-15  Jeff Law  <law@redhat.com>
30732
30733         PR tree-optimization/59747
30734         * ree.c (find_and_remove_re): Properly handle case where a second
30735         eliminated extension requires widening a copy created for elimination
30736         of a prior extension.
30737         (combine_set_extension): Ensure that the number of hard regs needed
30738         for a destination register does not change when we widen it.
30739
30740 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30741
30742         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30743         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30744         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30745         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30746         (avr-*-rtems*): Likewise.
30747         (bfin*-rtems*): Likewise.
30748         (moxie-*-rtems*): Likewise.
30749         (h8300-*-rtems*): Likewise.
30750         (i[34567]86-*-rtems*): Likewise.
30751         (lm32-*-rtems*): Likewise.
30752         (m32r-*-rtems*): Likewise.
30753         (m68k-*-rtems*): Likewise.
30754         (microblaze*-*-rtems*): Likewise.
30755         (mips*-*-rtems*): Likewise.
30756         (powerpc-*-rtems*): Likewise.
30757         (sh-*-rtems*): Likewise.
30758         (sparc-*-rtems*): Likewise.
30759         (sparc64-*-rtems*): Likewise.
30760         (v850-*-rtems*): Likewise.
30761         (m32c-*-rtems*): Likewise.
30762
30763 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
30764
30765         PR rtl-optimization/59511
30766         * ira.c (ira_init_register_move_cost): Use memory costs for some
30767         cases of register move cost calculations.
30768         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30769         instead of BB frequency.
30770         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30771         * lra-assigns.c (find_hard_regno_for): Ditto.
30772
30773 2014-01-15  Richard Biener  <rguenther@suse.de>
30774
30775         PR tree-optimization/59822
30776         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30777         (vectorizable_load): Use it to hoist defs of uses of invariant
30778         loads out of the loop.
30779
30780 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
30781             Kugan Vivekanandarajah  <kuganv@linaro.org>
30782
30783         PR target/59695
30784         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30785         truncation.
30786
30787 2014-01-15  Richard Biener  <rguenther@suse.de>
30788
30789         PR rtl-optimization/59802
30790         * lcm.c (compute_available): Use inverted postorder to seed
30791         the initial worklist.
30792
30793 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30794
30795         PR target/59803
30796         * config/s390/s390.c (s390_preferred_reload_class): Don't return
30797         ADDR_REGS for invalid symrefs in non-PIC code.
30798
30799 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
30800
30801         PR other/58712
30802         * builtins.c (determine_block_size): Initialize *probable_max_size
30803         even if len_rtx is CONST_INT.
30804
30805 2014-01-14  Andrew Pinski  <apinski@cavium.com>
30806
30807         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30808         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30809         (cortexa53_tunings): Likewise.
30810         (aarch64_sched_issue_rate): New function.
30811         (TARGET_SCHED_ISSUE_RATE): Define.
30812
30813 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30814
30815         * ira-costs.c (find_costs_and_classes): Add missed
30816         ira_init_register_move_cost_if_necessary.
30817
30818 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30819
30820         PR target/59787
30821         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30822
30823 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
30824
30825         PR target/59794
30826         * config/i386/i386.c (type_natural_mode): Add a bool parameter
30827         to indicate if type is used for function return value.  Warn ABI
30828         change if the vector mode isn't available for function return value.
30829         (ix86_function_arg_advance): Pass false to type_natural_mode.
30830         (ix86_function_arg): Likewise.
30831         (ix86_gimplify_va_arg): Likewise.
30832         (function_arg_32): Don't warn ABI change.
30833         (ix86_function_value): Pass true to type_natural_mode.
30834         (ix86_return_in_memory): Likewise.
30835         (ix86_struct_value_rtx): Removed.
30836         (TARGET_STRUCT_VALUE_RTX): Likewise.
30837
30838 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30839
30840         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30841         converting a conditional jump into a conditional return.
30842
30843 2014-01-14  Richard Biener  <rguenther@suse.de>
30844
30845         PR tree-optimization/58921
30846         PR tree-optimization/59006
30847         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30848         hoisting invariant stmts.
30849         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30850         invariant loads on the preheader edge if possible.
30851
30852 2014-01-14  Joey Ye  <joey.ye@arm.com>
30853
30854         * doc/plugin.texi (Building GCC plugins): Update to C++.
30855
30856 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
30857
30858         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30859         (_mm_rcp28_round_ss): Ditto.
30860         (_mm_rsqrt28_round_sd): Ditto.
30861         (_mm_rsqrt28_round_ss): Ditto.
30862         (_mm_rcp28_sd): Ditto.
30863         (_mm_rcp28_ss): Ditto.
30864         (_mm_rsqrt28_sd): Ditto.
30865         (_mm_rsqrt28_ss): Ditto.
30866         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30867         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30868         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30869         (IX86_BUILTIN_RCP28SD): Ditto.
30870         (IX86_BUILTIN_RCP28SS): Ditto.
30871         (IX86_BUILTIN_RSQRT28SD): Ditto.
30872         (IX86_BUILTIN_RSQRT28SS): Ditto.
30873         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30874         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30875         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30876         (ix86_expand_special_args_builtin): Expand new FTYPE.
30877         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30878         (srcp14<mode>): Make insn unary.
30879         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30880         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30881         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30882         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30883         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30884         Fix rounding: make it SAE only.
30885         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30886         Ditto.
30887         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30888         Ditto.
30889         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30890         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30891         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30892         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30893         (round_saeonly_mask_scalar_operand4): Ditto.
30894         (round_saeonly_mask_scalar_op3): Ditto.
30895         (round_saeonly_mask_scalar_op4): Ditto.
30896
30897 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30898
30899         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30900         Implement -maltivec=be for vec_insert and vec_extract.
30901
30902 2014-01-10  DJ Delorie  <dj@redhat.com>
30903
30904         * config/msp430/msp430.md (call_internal): Don't allow memory
30905         references with SP as the base register.
30906         (call_value_internal): Likewise.
30907         * config/msp430/constraints.md (Yc): New.  For memory references
30908         that don't use SP as a base register.
30909
30910         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30911         "an integer without a # prefix"
30912         * config/msp430/msp430.md (epilogue_helper): Use it.
30913
30914 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
30915
30916         PR target/59617
30917         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30918         AVX512F gather builtins.
30919         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30920         on gather decls with INTEGER_TYPE masktype.
30921         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30922         directly into the builtin rather than hoisting it before loop.
30923
30924         PR tree-optimization/59387
30925         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30926         (scev_const_prop): If folded_casts and type has undefined overflow,
30927         use force_gimple_operand instead of force_gimple_operand_gsi and
30928         for each added stmt if it is assign with
30929         arith_code_with_undefined_signed_overflow, call
30930         rewrite_to_defined_overflow.
30931         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30932         gimple-fold.h instead.
30933         (arith_code_with_undefined_signed_overflow,
30934         rewrite_to_defined_overflow): Moved to ...
30935         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30936         rewrite_to_defined_overflow): ... here.  No longer static.
30937         Include gimplify-me.h.
30938         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30939         rewrite_to_defined_overflow): New prototypes.
30940
30941 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30942
30943         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30944
30945 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
30946
30947         * builtins.c (get_object_alignment_2): Minor tweak.
30948         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30949
30950 2014-01-13  Christian Bruel  <christian.bruel@st.com>
30951
30952         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30953         optimized non constant lengths.
30954
30955 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
30956
30957         PR libgomp/59194
30958         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30959         load as __atomic_load_N if possible.
30960
30961 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30962
30963         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30964         target parameter.
30965         (rs6000_expand_builtin): Adjust call.
30966
30967 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30968
30969         PR target/58115
30970         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30971         * config/rs6000/rs6000.c: Include target-globals.h.
30972         (rs6000_set_current_function): Instead of doing target_reinit
30973         unconditionally, use save_target_globals_default_opts and
30974         restore_target_globals.
30975
30976         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30977         FPSCR.
30978         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30979         (rs6000_expand_builtin): Handle mffs and mtfsf.
30980         (rs6000_init_builtins): Define mffs and mtfsf.
30981         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30982         (rs6000_mffs): New pattern.
30983         (rs6000_mtfsf): New pattern.
30984
30985 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
30986
30987         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30988         Start narrowing with START.  Apply candidate-use pair
30989         and check overall cost in narrowing.
30990         (iv_ca_prune): Pass new argument.
30991
30992 2014-01-10  Jeff Law  <law@redhat.com>
30993
30994         PR middle-end/59743
30995         * ree.c (combine_reaching_defs): Ensure the defining statement
30996         occurs before the extension when optimizing extensions with
30997         different source and destination hard registers.
30998
30999 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
31000
31001         PR ipa/58585
31002         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
31003         vtables into the type inheritance graph.
31004
31005 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31006
31007         PR rtl-optimization/59754
31008         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
31009         modes in the REGNO != REGNO case.
31010
31011 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31012
31013         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
31014
31015 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31016
31017         PR tree-optimization/59745
31018         * tree-predcom.c (tree_predictive_commoning_loop): Call
31019         free_affine_expand_cache if giving up because components is NULL.
31020
31021         * target-globals.c (save_target_globals): Allocate < 4KB structs using
31022         GC in payload of target_globals struct instead of allocating them on
31023         the heap and the larger structs separately using GC.
31024         * target-globals.h (struct target_globals): Make regs, hard_regs,
31025         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
31026         of GTY((skip)) and change type to void *.
31027         (reset_target_globals): Cast loads from those fields to corresponding
31028         types.
31029
31030 2014-01-10  Steve Ellcey  <sellcey@mips.com>
31031
31032         PR plugins/59335
31033         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
31034         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
31035         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
31036
31037 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
31038
31039         PR target/59744
31040         * aarch64-modes.def (CC_Zmode): New flags mode.
31041         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
31042         represents an equality.
31043         (aarch64_get_condition_code): Handle CC_Zmode.
31044         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
31045
31046 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31047
31048         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
31049         extraction in good case.
31050
31051 2014-01-10  Richard Biener  <rguenther@suse.de>
31052
31053         PR tree-optimization/59374
31054         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
31055         checking after SLP discovery.  Mark stmts not participating
31056         in any SLP instance properly.
31057
31058 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31059
31060         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
31061         when handling a SET rtx.
31062
31063 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31064
31065         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
31066         (cortex-a57): Likewise.
31067         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
31068
31069 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31070
31071         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
31072         non-iwmmxt builtins.
31073
31074 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
31075
31076         PR ipa/58252
31077         PR ipa/59226
31078         * ipa-devirt.c record_target_from_binfo): Take as argument
31079         stack of binfos and lookup matching one for virtual inheritance.
31080         (possible_polymorphic_call_targets_1): Update.
31081
31082 2014-01-10  Huacai Chen  <chenhc@lemote.com>
31083
31084         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
31085         kernel strings for Loongson-2E/2F/3A.
31086
31087 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31088
31089         PR middle-end/59670
31090         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
31091         is_gimple_call before calling gimple_call_internal_p.
31092
31093 2014-01-09  Steve Ellcey  <sellcey@mips.com>
31094
31095         * Makefile.in (TREE_FLOW_H): Remove.
31096         (TREE_SSA_H): Add file names from tree-flow.h.
31097         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
31098         * tree.h: Remove tree-flow.h reference.
31099         * hash-table.h: Remove tree-flow.h reference.
31100         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
31101         reference with tree-ssa-loop.h.
31102
31103 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31104
31105         * doc/invoke.texi: Add -maltivec={be,le} options, and document
31106         default element-order behavior for -maltivec.
31107         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
31108         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
31109         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
31110         when targeting big endian, at least for now.
31111         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
31112
31113 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31114
31115         PR middle-end/47735
31116         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
31117         var satisfies use_register_for_decl, just take into account type
31118         alignment, rather than decl alignment.
31119
31120         PR tree-optimization/59622
31121         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
31122         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
31123         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
31124         Don't devirtualize for inplace at all.  For targets.length () == 1,
31125         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
31126
31127 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
31128
31129         * config/i386/i386.md (cpu): Remove the unused btver1.
31130
31131 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
31132
31133         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
31134
31135 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31136
31137         PR target/58115
31138         * tree-core.h (struct target_globals): New forward declaration.
31139         (struct tree_target_option): Add globals field.
31140         * tree.h (TREE_TARGET_GLOBALS): Define.
31141         (prepare_target_option_nodes_for_pch): New prototype.
31142         * target-globals.h (struct target_globals): Define even if
31143         !SWITCHABLE_TARGET.
31144         * tree.c (prepare_target_option_node_for_pch,
31145         prepare_target_option_nodes_for_pch): New functions.
31146         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
31147         * config/i386/i386.c: Include target-globals.h.
31148         (ix86_set_current_function): Instead of doing target_reinit
31149         unconditionally, use save_target_globals_default_opts and
31150         restore_target_globals.
31151
31152 2014-01-09  Richard Biener  <rguenther@suse.de>
31153
31154         PR tree-optimization/59715
31155         * tree-cfg.h (split_critical_edges): Declare.
31156         * tree-cfg.c (split_critical_edges): Export.
31157         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
31158
31159 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31160
31161         * cfgexpand.c (expand_stack_vars): Optionally disable
31162         asan stack protection.
31163         (expand_used_vars): Likewise.
31164         (partition_stack_vars): Likewise.
31165         * asan.c (asan_emit_stack_protection): Optionally disable
31166         after return stack usage.
31167         (instrument_derefs): Optionally disable memory access instrumentation.
31168         (instrument_builtin_call): Likewise.
31169         (instrument_strlen_call): Likewise.
31170         (asan_protect_global): Optionally disable global variables protection.
31171         * doc/invoke.texi: Added doc for new options.
31172         * params.def: Added new options.
31173         * params.h: Likewise.
31174
31175 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31176
31177         PR rtl-optimization/59724
31178         * ifcvt.c (cond_exec_process_if_block): Don't call
31179         flow_find_head_matching_sequence with 0 longest_match.
31180         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
31181         non-active insns if !stop_after.
31182         (try_head_merge_bb): Revert 2014-01-07 changes.
31183
31184 2014-01-08  Jeff Law  <law@redhat.com>
31185
31186         * ree.c (get_sub_rtx): New function, extracted from...
31187         (merge_def_and_ext): Here.
31188         (combine_reaching_defs): Use get_sub_rtx.
31189
31190 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
31191
31192         * cgraph.h (varpool_variable_node): Do not choke on null node.
31193
31194 2014-01-08  Catherine Moore  <clm@codesourcery.com>
31195
31196         * config/mips/mips.md (simple_return): Attempt to use JRC
31197         for microMIPS.
31198         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
31199
31200 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
31201
31202         PR rtl-optimization/59137
31203         * reorg.c (steal_delay_list_from_target): Call update_block for
31204         elided insns.
31205         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
31206
31207 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31208
31209         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
31210         two duplicate entries.
31211
31212 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
31213
31214         Revert:
31215         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
31216
31217         * config/mips/mips.c (mips_truncated_op_cost): New function.
31218         (mips_rtx_costs): Adjust test for BADDU.
31219         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
31220
31221         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
31222
31223         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
31224         (*baddu_si): ...this new pattern.
31225
31226 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
31227
31228         PR ipa/59722
31229         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
31230
31231 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31232
31233         PR middle-end/57748
31234         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
31235         inner_reference_p.
31236         (expand_expr, expand_normal): Adjust.
31237         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
31238         inner_reference_p. Use inner_reference_p to expand inner references.
31239         (store_expr): Adjust.
31240         * cfgexpand.c (expand_call_stmt): Adjust.
31241
31242 2014-01-08  Rong Xu  <xur@google.com>
31243
31244         * gcov-io.c (gcov_var): Move from gcov-io.h.
31245         (gcov_position): Ditto.
31246         (gcov_is_error): Ditto.
31247         (gcov_rewrite): Ditto.
31248         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
31249         only part to libgcc/libgcov.h.
31250
31251 2014-01-08  Marek Polacek  <polacek@redhat.com>
31252
31253         PR middle-end/59669
31254         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
31255
31256 2014-01-08  Marek Polacek  <polacek@redhat.com>
31257
31258         PR sanitizer/59667
31259         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
31260
31261 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
31262
31263         PR rtl-optimization/59649
31264         * stor-layout.c (get_mode_bounds): For BImode return
31265         0 and STORE_FLAG_VALUE.
31266
31267 2014-01-08  Richard Biener  <rguenther@suse.de>
31268
31269         PR middle-end/59630
31270         * gimple.h (is_gimple_builtin_call): Remove.
31271         (gimple_builtin_call_types_compatible_p): New.
31272         (gimple_call_builtin_p): New overload.
31273         * gimple.c (is_gimple_builtin_call): Remove.
31274         (validate_call): Rename to ...
31275         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
31276         check return types.
31277         (validate_type): New static function.
31278         (gimple_call_builtin_p): New overload and adjust.
31279         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
31280         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
31281         (gimple_fold_stmt_to_constant_1): Likewise.
31282         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
31283
31284 2014-01-08  Richard Biener  <rguenther@suse.de>
31285
31286         PR middle-end/59471
31287         * gimplify.c (gimplify_expr): Gimplify register-register type
31288         VIEW_CONVERT_EXPRs to separate stmts.
31289
31290 2014-01-07  Jeff Law  <law@redhat.com>
31291
31292         PR middle-end/53623
31293         * ree.c (combine_set_extension): Handle case where source
31294         and destination registers in an extension insn are different.
31295         (combine_reaching_defs): Allow source and destination registers
31296         in extension to be different under limited circumstances.
31297         (add_removable_extension): Remove restriction that the
31298         source and destination registers in the extension are the same.
31299         (find_and_remove_re): Emit a copy from the extension's
31300         destination to its source after the defining insn if
31301         the source and destination registers are different.
31302
31303         PR middle-end/59285
31304         * ifcvt.c (merge_if_block): If we are merging a block with more than
31305         one successor with a block with no successors, remove any BARRIER
31306         after the second block.
31307
31308 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
31309
31310         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
31311
31312 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
31313
31314         PR target/59652
31315         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
31316         for 14-bit register offsets when INT14_OK_STRICT is false.
31317
31318 2014-01-07  Roland Stigge  <stigge@antcom.de>
31319             Michael Meissner  <meissner@linux.vnet.ibm.com>
31320
31321         PR 57386/target
31322         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
31323         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
31324
31325 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
31326
31327         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
31328         -mcpu.
31329
31330 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
31331
31332         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
31333         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
31334         rtx is const0_rtx or not.
31335
31336 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
31337
31338         PR target/58115
31339         * target-globals.c (save_target_globals): Remove this_fn_optab
31340         handling.
31341         * toplev.c: Include optabs.h.
31342         (target_reinit): Temporarily restore the global options if another
31343         set of options are in force.
31344
31345 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
31346
31347         PR rtl-optimization/58668
31348         * cfgcleanup.c (flow_find_cross_jump): Don't count
31349         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
31350         to determine what is counted.
31351         (flow_find_head_matching_sequence): Use active_insn_p to determine
31352         what is counted.
31353         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
31354         counting change.
31355         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
31356         determine what is counted.
31357
31358         PR tree-optimization/59643
31359         * tree-predcom.c (split_data_refs_to_components): If one dr is
31360         read and one write, determine_offset fails and the write isn't
31361         in the bad component, just put the read into the bad component.
31362
31363 2014-01-07  Mike Stump  <mikestump@comcast.net>
31364             Jakub Jelinek  <jakub@redhat.com>
31365
31366         PR pch/59436
31367         * tree-core.h (struct tree_optimization_option): Change optabs
31368         type from unsigned char * to void *.
31369         * optabs.c (init_tree_optimization_optabs): Adjust
31370         TREE_OPTIMIZATION_OPTABS initialization.
31371
31372 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
31373
31374         PR target/59644
31375         * config/i386/i386.h (struct machine_function): Add
31376         no_drap_save_restore field.
31377         * config/i386/i386.c (ix86_save_reg): Use
31378         !cfun->machine->no_drap_save_restore instead of
31379         crtl->stack_realign_needed.
31380         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
31381         this function clears frame_pointer_needed.  Set
31382         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
31383         and DRAP reg is needed.
31384
31385 2014-01-06  Marek Polacek  <polacek@redhat.com>
31386
31387         PR c/57773
31388         * doc/implement-c.texi: Mention that other integer types are
31389         permitted as bit-field types in strictly conforming mode.
31390
31391 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
31392
31393         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
31394         is newly allocated.
31395
31396 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
31397
31398         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
31399
31400 2014-01-06  Martin Jambor  <mjambor@suse.cz>
31401
31402         PR ipa/59008
31403         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
31404         to int.
31405         * ipa-prop.c (ipa_print_node_params): Fix indentation.
31406
31407 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31408
31409         PR debug/59350
31410         PR debug/59510
31411         * var-tracking.c (add_stores): Preserve the value of the source even if
31412         we don't record the store.
31413
31414 2014-01-06  Terry Guo  <terry.guo@arm.com>
31415
31416         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
31417
31418 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
31419
31420         PR bootstrap/59541
31421         * config/darwin.c (darwin_function_section): Adjust return values to
31422         correspond to optimisation changes made in r206070.
31423
31424 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
31425
31426         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
31427         from prefetch_block tune setting.
31428         (nocona_cost): Correct size of prefetch block to 64.
31429
31430 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31431
31432         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
31433         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
31434         used to save the static chain register in the computation of the offset
31435         from which the FP registers need to be restored.
31436
31437 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
31438
31439         PR tree-optimization/59519
31440         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
31441         ICE if get_current_def (current_new_name) is already non-NULL, as long
31442         as it is a phi result of some other phi in *new_exit_bb that has
31443         the same argument.
31444
31445         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
31446         or vmovdqu* for misaligned_operand.
31447         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
31448         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
31449         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
31450         aligned_mem for AVX512F masked aligned load and store builtins and for
31451         non-temporal moves.
31452
31453 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
31454
31455         PR tree-optimization/59651
31456         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31457         Address range for negative step should be added by TYPE_SIZE_UNIT.
31458
31459 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
31460
31461         * config/m68k/m68k.c (handle_move_double): Handle pushes with
31462         overlapping registers also for registers other than the stack pointer.
31463
31464 2014-01-03  Marek Polacek  <polacek@redhat.com>
31465
31466         PR other/59661
31467         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
31468         __builtin_FILE.
31469
31470 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
31471
31472         PR target/59625
31473         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
31474         asm goto as jump.
31475
31476         * config/i386/i386.md (MODE_SIZE): New mode attribute.
31477         (push splitter): Use <P:MODE_SIZE> instead of
31478         GET_MODE_SIZE (<P:MODE>mode).
31479         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
31480         (mov -1, reg peephole2): Likewise.
31481         * config/i386/sse.md (*mov<mode>_internal,
31482         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
31483         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
31484         *<code><mode>3, *andnot<mode>3<mask_name>,
31485         <mask_codefor><code><mode>3<mask_name>): Likewise.
31486         * config/i386/subst.md (mask_mode512bit_condition,
31487         sd_mask_mode512bit_condition): Likewise.
31488
31489 2014-01-02  Xinliang David Li  <davidxl@google.com>
31490
31491         PR tree-optimization/59303
31492         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
31493         (dump_predicates): Better output format.
31494         (pred_equal_p): New function.
31495         (is_neq_relop_p): Ditto.
31496         (is_neq_zero_form_p): Ditto.
31497         (pred_expr_equal_p): Ditto.
31498         (pred_neg_p): Ditto.
31499         (simplify_pred): Ditto.
31500         (simplify_preds_2): Ditto.
31501         (simplify_preds_3): Ditto.
31502         (simplify_preds_4): Ditto.
31503         (simplify_preds): Ditto.
31504         (push_pred): Ditto.
31505         (push_to_worklist): Ditto.
31506         (get_pred_info_from_cmp): Ditto.
31507         (is_degenerated_phi): Ditto.
31508         (normalize_one_pred_1): Ditto.
31509         (normalize_one_pred): Ditto.
31510         (normalize_one_pred_chain): Ditto.
31511         (normalize_preds): Ditto.
31512         (normalize_cond_1): Remove function.
31513         (normalize_cond): Ditto.
31514         (is_gcond_subset_of): Ditto.
31515         (is_subset_of_any): Ditto.
31516         (is_or_set_subset_of): Ditto.
31517         (is_and_set_subset_of): Ditto.
31518         (is_norm_cond_subset_of): Ditto.
31519         (pred_chain_length_cmp): Ditto.
31520         (convert_control_dep_chain_into_preds): Type change.
31521         (find_predicates): Ditto.
31522         (find_def_preds): Ditto.
31523         (destroy_predicates_vecs): Ditto.
31524         (find_matching_predicates_in_rest_chains): Ditto.
31525         (use_pred_not_overlap_with_undef_path_pred): Ditto.
31526         (is_pred_expr_subset): Ditto.
31527         (is_pred_chain_subset_of): Ditto.
31528         (is_included_in): Ditto.
31529         (is_superset_of): Ditto.
31530
31531 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31532
31533         Update copyright years.
31534
31535 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31536
31537         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
31538         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
31539         config/arc/arc.md, config/arc/arc.opt,
31540         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
31541         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
31542         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
31543         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
31544         config/linux-protos.h, config/linux.c, config/winnt-c.c,
31545         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
31546         vtable-verify.c, vtable-verify.h: Use the standard form for the
31547         copyright notice.
31548
31549 2014-01-02  Tobias Burnus  <burnus@net-b.de>
31550
31551         * gcc.c (process_command): Update copyright notice dates.
31552         * gcov-dump.c: Ditto.
31553         * gcov.c: Ditto.
31554         * doc/cpp.texi: Bump @copying's copyright year.
31555         * doc/cppinternals.texi: Ditto.
31556         * doc/gcc.texi: Ditto.
31557         * doc/gccint.texi: Ditto.
31558         * doc/gcov.texi: Ditto.
31559         * doc/install.texi: Ditto.
31560         * doc/invoke.texi: Ditto.
31561
31562 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31563
31564         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
31565
31566 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
31567
31568         * config/i386/sse.md (*mov<mode>_internal): Guard
31569         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
31570
31571         PR rtl-optimization/59647
31572         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
31573         new_rtx into UNSIGNED_FLOAT rtxes.
31574 \f
31575 Copyright (C) 2014 Free Software Foundation, Inc.
31576
31577 Copying and distribution of this file, with or without modification,
31578 are permitted in any medium without royalty provided the copyright
31579 notice and this notice are preserved.