[PATCH AArch64]: Add constraint letter for stack_protect_test pattern
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2
3         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4         scratch register as written.
5
6 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7
8         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
9         assignment.
10
11 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12
13         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
14         expanders.
15
16 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17
18         PR target/62662
19         * config/s390/s390.c (s390_emit_epilogue): When doing the return
20         address load optimization force s390_optimize_prologue to leave it
21         that way.  Only do the optimization if we already decided to push
22         r14 into a stack slot.
23
24 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
25
26         * asan.c (build_check_stmt): Alignment arg was added.
27         (asan_expand_check_ifn): Optimization for alignment >= 8.
28
29 2014-09-19  Olivier Hainque  <hainque@adacore.com>
30
31         * config/i386/vxworksae.h: Remove obsolete definitions.
32         (STACK_CHECK_PROTECT): Define.
33         * config/i386/vx-common.h: Remove.  Merge contents within
34         config/i386/vxworks.h.
35         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
36         i386/vx-common.h.
37
38 2014-09-19  Olivier Hainque  <hainque@adacore.com>
39
40         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
41         * config/rs6000/t-vxworksmils: New file.
42         * config/rs6000/vxworksmils.h: New file.
43
44 2014-09-19  Olivier Hainque  <hainque@adacore.com>
45
46         * varasm.c (default_section_type_flags): Flag .persistent.bss
47         sections as SECTION_BSS.
48
49 2014-09-19  Nick Clifton  <nickc@redhat.com>
50
51         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
52         pop'ed registers so that DCE does not eliminate them.
53
54 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
55
56         PR lto/63298
57         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
58
59 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
60
61         * system.h (LIBGCC2_TF_CEXT): Poison.
62         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
63         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
64         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
65         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
66         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
67         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
68         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
69         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
70         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
71
72 2014-09-19  Kito Cheng  <kito@0xlab.org>
73
74         * except.h: Fix header guard.
75         * addresses.h: Add missing header guard.
76         * cfghooks.h: Likewise.
77         * collect-utils.h: Likewise.
78         * collect2-aix.h: Likewise.
79         * conditions.h: Likewise.
80         * cselib.h: Likewise.
81         * dwarf2asm.h: Likewise.
82         * graphds.h: Likewise.
83         * graphite-scop-detection.h: Likewise.
84         * gsyms.h: Likewise.
85         * hw-doloop.h: Likewise.
86         * incpath.h: Likewise.
87         * ipa-inline.h: Likewise.
88         * ipa-ref.h: Likewise.
89         * ira-int.h: Likewise.
90         * ira.h: Likewise.
91         * lra-int.h: Likewise.
92         * lra.h: Likewise.
93         * lto-section-names.h: Likewise.
94         * read-md.h: Likewise.
95         * reload.h: Likewise.
96         * rtl-error.h: Likewise.
97         * sdbout.h: Likewise.
98         * targhooks.h: Likewise.
99         * tree-affine.h: Likewise.
100         * xcoff.h: Likewise.
101         * xcoffout.h: Likewise.
102
103 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
104
105         PR debug/63285
106         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
107         if advance != 0.
108
109 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
110
111         PR target/61360
112         * lra.c (lra): Call recog_init.
113
114 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
115
116         PR c++/62017
117         * asan.c (transform_statements): Don't instrument clobber statements.
118
119 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
120
121         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
122         to neon_load1_1reg<q>.
123
124 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
125
126         PR debug/63284
127         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
128         if there are only debug stmts after the noreturn call, instead
129         remove the debug stmts.
130
131 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
132
133         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
134         (odr_types_equivalent_p): Use pair hash.
135         (odr_subtypes_equivalent_p): Likewise, do structural compare
136         on ODR types that may be mismatched.
137         (warn_odr): Support warning when only one field is given.
138         (odr_types_equivalent_p): Strenghten comparsions made;
139         support VOIDtype.
140         (add_type_duplicate): Update VISITED hash set.
141
142 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
143
144         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
145         Enable selection of 'posix' or no thread model.
146
147 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
148
149         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
150         when architecture is older than ARMv7.
151
152 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
153
154         PR target/61853
155         * config/pa/pa.c (pa_function_value): Directly handle aggregates
156         that fit exactly in a word or double word.
157
158 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
159
160         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
161         zmm/k regs support.
162
163 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
164             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
165             Anna Tikhonova  <anna.tikhonova@intel.com>
166             Ilya Tocar  <ilya.tocar@intel.com>
167             Andrey Turetskiy  <andrey.turetskiy@intel.com>
168             Ilya Verbin  <ilya.verbin@intel.com>
169             Kirill Yukhin  <kirill.yukhin@intel.com>
170             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
171
172         * config/i386/i386.c
173         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
174         * config/i386/sse.md
175         (define_mode_iterator VI48F_256): New.
176         (define_mode_attr extract_type): Ditto.
177         (define_mode_attr extract_suf): Ditto.
178         (define_mode_iterator AVX512_VEC): Ditto.
179         (define_expand
180         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
181         AVX512_VEC.
182         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
183         (define_insn
184         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
185         Ditto.
186         (define_mode_attr extract_type_2): Ditto.
187         (define_mode_attr extract_suf_2): Ditto.
188         (define_mode_iterator AVX512_VEC_2): Ditto.
189         (define_expand
190         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
191         AVX512_VEC_2 mode iterator.
192         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
193         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
194         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
195         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
196         (define_split for V16FI mode): Ditto.
197         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
198         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
199         (define_split for VI8F_256 mode): Ditto.
200         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
201         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
202         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
203         (define_split for VI4F_256 mode): Ditto.
204         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
205         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
206         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
207         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
208         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
209         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
210         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
211         Update `type' attribute, remove explicit `memory' attribute calculation.
212
213 2014-09-16  Kito Cheng  <kito@0xlab.org>
214
215         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
216         ira_spilled_reg_stack_slots_num if using lra.
217         (do_reload): Remove release ira_spilled_reg_stack_slots part.
218         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
219         make sure not using lra.
220         (ira_reuse_stack_slot): Likewise.
221         (ira_mark_new_stack_slot): Likewise.
222
223 2014-09-15  Andi Kleen  <ak@linux.intel.com>
224
225         * function.c (allocate_struct_function): Force
226         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
227         profiling is disabled.
228
229 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
230     
231         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
232         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
233         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
234         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
235         macro with statically checked member functions.
236         * rtl.h (rtx_insn::deleted): New method.
237         (rtx_insn::set_deleted): Likewise.
238         (rtx_insn::set_undeleted): Likewise.
239         (INSN_DELETED_P): Remove.
240
241 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
242
243         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
244         result of emit_jump_insn_before to a new variable.
245         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
246         (mark_jump_label_1): Likewise.
247         (mark_jump_label_asm): Likewise.
248         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
249         * rtl.h (mark_jump_label): Adjust.
250
251 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
252
253         * Makefile.in (dg_target_exps): Remove.
254         (check_gcc_parallelize): Change to just an upper bound number.
255         (check-%-subtargets): Always print the non-parallelized goals.
256         (check_p_vars, check_p_comma, check_p_subwork): Remove.
257         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
258         check_p_numbers3, check_p_numbers4, check_p_numbers5,
259         check_p_numbers6): New variables.
260         (check_p_numbers): Set to sequence from 1 to 9999.
261         (check_p_subdirs): Set to sequence from 1 to minimum of
262         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
263         or 128.
264         (check-%, check-parallel-%): Rewritten so that for parallelized
265         testing each job runs all the *.exp files, with
266         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
267
268 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
269
270         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
271         rtx to rtx_insn *.
272         (arc_sets_cc_p): Likewise.
273         * config/arc/arc.c (arc_print_operand): Use methods of
274         "final_sequence" for clarity, and to enable strengthening of
275         locals "jump" and "delay" from rtx to rtx_insn *.
276         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
277         rtx_insn *; use method of rtx_sequence for typesafety.
278         (arc_get_insn_variants): Use insn method of rtx_sequence for
279         typesafety.
280         (arc_pad_return): Likewise.
281         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
282         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
283         dyn_cast to rtx_sequence *, using insn method for typesafety.
284         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
285         rtx_sequence * and use insn method when invoking get_attr_length.
286         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
287         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
288         rtx_sequence *, introducing a local "seq", using its insn method
289         from typesafety and clarity.
290         (add_sched_insns_for_speculation): Strengthen local "next" from
291         rtx to rtx_insn *.
292         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
293         (predicate_insn): Likewise.
294         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
295         second param.
296         * config/cris/cris.c (cris_notice_update_cc): Likewise.
297         * config/epiphany/epiphany-protos.h
298         (extern void epiphany_insert_mode_switch_use): Likewise for param
299         "insn".
300         (get_attr_sched_use_fpu): Likewise for param.
301         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
302         Likewise for param "insn".
303         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
304         param "insn" of "target_insert_mode_switch_use" callback.
305         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
306         (frv_issues_to_branch_unit_p): Likewise.
307         (frv_pack_insn_p): Likewise.
308         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
309         const rtx * (i.e. mutable rtx_def * const *) to
310         rtx_insn * const *.
311         * config/i386/i386-protos.h (standard_sse_constant_opcode):
312         Strengthen first param from rtx to rtx_insn *.
313         (output_fix_trunc): Likewise.
314         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
315         (output_fix_trunc): Likewise.
316         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
317         local "insn".
318         (min_insn_size): Likewise for param "insn".
319         (get_mem_group): Likewise.
320         (is_cmp): Likewise.
321         (get_insn_path): Likewise.
322         (get_insn_group): Likewise.
323         (count_num_restricted): Likewise.
324         (fits_dispatch_window): Likewise.
325         (add_insn_window): Likewise.
326         (add_to_dispatch_window): Likewise.
327         (debug_insn_dispatch_info_file): Likewise.
328         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
329         first param.
330         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
331         "cmp" and local "prev".
332         (m32c_output_compare): Likewise for param "insn".
333         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
334         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
335         (define_predicate "large_insn_p"): Likewise.
336         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
337         param from rtx to rtx_insn *.
338         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
339         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
340         (m68k_sched_attr_size): Likewise.
341         (sched_get_opxy_mem_type): Likewise for param "insn".
342         (m68k_sched_attr_op_mem): Likewise.
343         (sched_mem_operand_p): Likewise.
344         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
345         * config/mep/mep.c (mep_multi_slot): Likewise.
346         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
347         first param.
348         (mips_sync_loop_insns): Likewise.
349         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
350         method of "final_sequence" for typesafety.
351         (mips_process_sync_loop): Strengthen param "insn" from rtx to
352         rtx_insn *.
353         (mips_output_sync_loop): Likewise.
354         (mips_sync_loop_insns): Likewise.
355         (mips_74k_agen_init): Likewise.
356         (mips_sched_init): Use NULL rather than NULL_RTX when working with
357         insns.
358         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
359         Strengthen param "insn" from rtx to rtx_insn *.
360         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
361         local "insn".
362         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
363         param.
364         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
365         "insn".  Use method of rtx_sequence for typesafety.
366         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
367         rtx_insn *.
368         (branch_needs_nop_p): Likewise.
369         (use_skip_p): Likewise.
370         (pa_insn_refs_are_delayed): Likewise.
371         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
372         for locals "insn", "ninsn".
373         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
374         "insn".
375         (is_cracked_insn): Likewise.
376         (is_branch_slot_insn): Likewise.
377         (is_nonpipeline_insn): Likewise.
378         (insn_terminates_group_p): Likewise.
379         (insn_must_be_first_in_group): Likewise.
380         (insn_must_be_last_in_group): Likewise.
381         (force_new_group): Likewise for param "next_insn".
382         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
383         "insn".
384         (s390_sched_score): Likewise.
385         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
386         (rtx sfunc_uses_reg): Likewise for sole param.
387         * config/sh/sh.c (sh_print_operand): Use insn method of
388         final_sequence for typesafety.
389         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
390         Use insn method of final_sequence for typesafety.
391         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
392         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
393         for param.
394         (eligible_for_return_delay): Likewise.
395         (eligible_for_sibcall_delay): Likewise.
396         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
397         (eligible_for_return_delay): Likewise.
398         (eligible_for_sibcall_delay): Likewise.
399         * config/stormy16/stormy16-protos.h
400         (xstormy16_output_cbranch_hi): Likewise for final param.
401         (xstormy16_output_cbranch_si): Likewise.
402         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
403         (xstormy16_output_cbranch_si): Likewise.
404         * config/v850/v850-protos.h (notice_update_cc): Likewise.
405         * config/v850/v850.c (notice_update_cc): Likewise.
406
407         * final.c (get_attr_length_1): Strengthen param "insn" and param
408         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
409         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
410         (get_attr_min_length): Likewise.
411         (shorten_branches): Likewise for signature of locals "length_fun"
412         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
413         from a checked cast and use its methods for clarity and to enable
414         strengthening local "inner_insn" from rtx to rtx_insn *.
415         * genattr.c (gen_attr): When writing out the prototypes of the
416         various generated "get_attr_" functions, strengthen the params of
417         the non-const functions from rtx to rtx_insn *.
418         Similarly, strengthen the params of insn_default_length,
419         insn_min_length, insn_variable_length_p, insn_current_length.
420         (main): Similarly, strengthen the param of num_delay_slots,
421         internal_dfa_insn_code, insn_default_latency, bypass_p,
422         insn_latency, min_issue_delay, print_reservation,
423         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
424         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
425         to hook_int_rtx_insn_unreachable.
426         * genattrtab.c (write_attr_get): When writing out the generated
427         "get_attr_" functions, strengthen the param "insn" from rtx to
428         rtx_insn *, eliminating a checked cast.
429         (make_automaton_attrs): When writing out prototypes of
430         "internal_dfa_insn_code_", "insn_default_latency_" functions
431         and the "internal_dfa_insn_code" and "insn_default_latency"
432         callbacks, strengthen their params from rtx to rtx_insn *
433         * genautomata.c (output_internal_insn_code_evaluation): When
434         writing out code, add a checked cast from rtx to rtx_insn * when
435         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
436         (output_dfa_insn_code_func): Strengthen param of generated
437         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
438         (output_trans_func): Likewise for generated function
439         "state_transition".
440         (output_internal_insn_latency_func): When writing out generated
441         function "internal_insn_latency", rename params from "insn" and
442         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
443         locals "insn" and "insn2" as rtx_insn * with checked casts once
444         we've proven that we're not dealing with const0_rtx.
445         (output_insn_latency_func):  Strengthen param of generated
446         function "insn_latency" from rtx to rtx_insn *.
447         (output_print_reservation_func): Likewise for generated function
448         "print_reservation".
449         (output_insn_has_dfa_reservation_p): Likewise for generated
450         function "insn_has_dfa_reservation_p".
451         * hooks.c (hook_int_rtx_unreachable): Rename to...
452         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
453         from rtx to rtx_insn *.
454         * hooks.h (hook_int_rtx_unreachable): Likewise.
455         (extern int hook_int_rtx_insn_unreachable): Likewise.
456         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
457         (get_attr_min_length): Likewise.
458         * recog.c (get_enabled_alternatives): Likewise.
459         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
460         * reorg.c (find_end_label): Introduce local rtx "pat" and
461         strengthen local "insn" from rtx to rtx_insn *.
462         (redundant_insn): Use insn method of "seq" rather than element for
463         typesafety; strengthen local "control" from rtx to rtx_insn *.
464         * resource.c (mark_referenced_resources): Add checked cast to
465         rtx_insn * within INSN/JUMP_INSN case.
466         (mark_set_resources): Likewise.
467         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
468         rtx to rtx_insn *.
469
470 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
471
472         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
473         param "label" from rtx to rtx_insn *.
474         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
475         and local "op".
476         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
477         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
478         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
479         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
480         * final.c (default_label_align_after_barrier_max_skip): Strengthen
481         param from rtx to rtx_insn *.
482         (default_loop_align_max_skip): Likewise.
483         (default_label_align_max_skip): Likewise.
484         (default_jump_align_max_skip): Likewise.
485         * target.def (label_align_after_barrier_max_skip): Likewise.
486         (loop_align_max_skip): Likewise.
487         (label_align_max_skip): Likewise.
488         (jump_align_max_skip): Likewise.
489         * targhooks.h (default_label_align_after_barrier_max_skip):
490         Likewise.
491         (default_loop_align_max_skip): Likewise.
492         (default_label_align_max_skip): Likewise.
493         (default_jump_align_max_skip): Likewise.
494
495 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
496
497         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
498         from const_rtx to const rtx_insn *.  Update union members from rtx
499         to rtx_insn *.
500         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
501         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
502         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
503         strengthen both params from const_rtx to const rtx_insn *.
504         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
505         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
506         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
507         rtx_insn *.
508         * target.def (can_follow_jump): Strengthen both params from
509         const_rtx to const rtx_insn *, and update default implementation
510         from hook_bool_const_rtx_const_rtx_true to
511         hook_bool_const_rtx_insn_const_rtx_insn_true.
512
513 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
514
515         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
516         "insn" from rtx to rtx_insn *.
517         * sched-int.h (deps_start_bb): Likewise for 2nd param.
518
519 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
520             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
521             Anna Tikhonova  <anna.tikhonova@intel.com>
522             Ilya Tocar  <ilya.tocar@intel.com>
523             Andrey Turetskiy  <andrey.turetskiy@intel.com>
524             Ilya Verbin  <ilya.verbin@intel.com>
525             Kirill Yukhin  <kirill.yukhin@intel.com>
526             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
527
528         * config/i386/sse.md
529         (define_insn "vcvtph2ps<mask_name>"): Add masking.
530         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
531         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
532         (define_expand "vcvtps2ph_mask"): New.
533         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
534         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
535         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
536
537 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
538             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
539             Anna Tikhonova  <anna.tikhonova@intel.com>
540             Ilya Tocar  <ilya.tocar@intel.com>
541             Andrey Turetskiy  <andrey.turetskiy@intel.com>
542             Ilya Verbin  <ilya.verbin@intel.com>
543             Kirill Yukhin  <kirill.yukhin@intel.com>
544             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
545
546         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
547         New.
548         (define_mode_iterator VI24_AVX512BW_1): Ditto.
549         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
550         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
551         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
552         also for TARGET_AVX512VL.
553         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
554
555 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
556
557         * doc/install.texi (Options specification): add 
558         --disable-libsanitizer item.
559
560 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
561             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
562
563         PR target/61407
564         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
565         and above.
566         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
567         kernel version check to avoid incrementing it after every major OS X
568         release.
569         (darwin_default_min_version): Avoid static memory buffer.
570
571 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
572
573         * tree.c (need_assembler_name_p): Store C++ type mangling only
574         for aggregates.
575
576 2014-09-13  Marek Polacek  <polacek@redhat.com>
577
578         * tree.c (protected_set_expr_location): Don't check whether T is
579         non-null here.
580
581 2014-09-12  DJ Delorie  <dj@redhat.com>
582
583         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
584         (extend_and_shift1_hipsi2): Likewise.
585         (extend_and_shift2_hipsi2): Likewise.
586
587 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
588
589         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
590         with NULL when dealing with an insn.
591         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
592         from rtx to rtx_insn *.
593         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
594         const_rtx to const rtx_insn *.
595         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
596
597 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
598
599         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
600         assert.
601
602 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
603
604         * target.def (libgcc_floating_mode_supported_p): New hook.
605         * targhooks.c (default_libgcc_floating_mode_supported_p): New
606         function.
607         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
608         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
609         (LIBGCC2_HAS_TF_MODE): Remove.
610         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
611         * doc/tm.texi: Regenerate.
612         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
613         machine mode.
614         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
615         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
616         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
617         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
618         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
619         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
620         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
621         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
622         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
623         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
624         function.
625         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
626         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
627         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
628         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
629         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
630         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
631         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
632         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
633         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
634         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
635         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
636         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
637         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
638         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
639         Remove.
640         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
641         New macro.
642         (ia64_libgcc_floating_mode_supported_p): New function.
643         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
644         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
645         (IA64_NO_LIBGCC_TFMODE): Define.
646         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
647         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
648         macro.
649         (pdp11_scalar_mode_supported_p): New function.
650         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
651         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
652
653 2014-09-12  Richard Biener  <rguenther@suse.de>
654
655         PR middle-end/63237
656         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
657
658 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
659
660         * tree.c (integer_each_onep): New function.
661         * tree.h (integer_each_onep): Declare it.
662         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
663         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
664         (X & 1) == 0 for vector and complex.
665
666 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
667
668         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
669         for A57.
670         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
671         cost to spilling from integer to FP registers.
672
673 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
674
675         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
676         move handling.
677         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
678         are now handled correctly.
679
680 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
681
682         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
683         handling of CALLER_SAVE_REGS and POINTER_REGS.
684
685 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
686
687         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
688         the number of hard registers.
689
690 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
691             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
692             Anna Tikhonova  <anna.tikhonova@intel.com>
693             Ilya Tocar  <ilya.tocar@intel.com>
694             Andrey Turetskiy  <andrey.turetskiy@intel.com>
695             Ilya Verbin  <ilya.verbin@intel.com>
696             Kirill Yukhin  <kirill.yukhin@intel.com>
697             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
698
699         * config/i386/sse.md
700         (define_mode_iterator VI48_AVX512VL): New.
701         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
702         "avx512f_vternlog<mode>_maskz" and update mode iterator.
703         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
704         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
705         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
706         "avx512f_vternlog<mode>_mask" and update mode iterator.
707         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
708         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
709         iterator.
710         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
711         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
712         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
713         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
714         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
715         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
716
717 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
718             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
719             Anna Tikhonova  <anna.tikhonova@intel.com>
720             Ilya Tocar  <ilya.tocar@intel.com>
721             Andrey Turetskiy  <andrey.turetskiy@intel.com>
722             Ilya Verbin  <ilya.verbin@intel.com>
723             Kirill Yukhin  <kirill.yukhin@intel.com>
724             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
725
726         * config/i386/sse.md (VI128_256): Delete.
727         (define_mode_iterator VI124_256): New.
728         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
729         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
730         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
731         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
732         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
733         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
734         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
735         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
736         iterator.
737         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
738         in presence of AVX-512.
739
740 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
741             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
742             Anna Tikhonova  <anna.tikhonova@intel.com>
743             Ilya Tocar  <ilya.tocar@intel.com>
744             Andrey Turetskiy  <andrey.turetskiy@intel.com>
745             Ilya Verbin  <ilya.verbin@intel.com>
746             Kirill Yukhin  <kirill.yukhin@intel.com>
747             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
748
749         * config/i386/sse.md
750         (define_expand "<avx512>_gathersi<mode>"): Rename from
751         "avx512f_gathersi<mode>".
752         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
753         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
754         (define_expand "<avx512>_gatherdi<mode>"): Rename from
755         "avx512f_gatherdi<mode>".
756         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
757         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
758         wide versions.
759         (define_expand "<avx512>_scattersi<mode>"): Rename from
760         "avx512f_scattersi<mode>".
761         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
762         (define_expand "<avx512>_scatterdi<mode>"): Rename from
763         "avx512f_scatterdi<mode>".
764         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
765
766 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
767
768         * ira.h (ira_finish_once): Delete.
769         * ira-int.h (target_ira_int::~target_ira_int): Declare.
770         (target_ira_int::free_ira_costs): Likewise.
771         (target_ira_int::free_register_move_costs): Likewise.
772         (ira_finish_costs_once): Delete.
773         * ira.c (free_register_move_costs): Replace with...
774         (target_ira_int::free_register_move_costs): ...this new function.
775         (target_ira_int::~target_ira_int): Define.
776         (ira_init): Call free_register_move_costs as a member function rather
777         than a global function.
778         (ira_finish_once): Delete.
779         * ira-costs.c (free_ira_costs): Replace with...
780         (target_ira_int::free_ira_costs): ...this new function.
781         (ira_init_costs): Call free_ira_costs as a member function rather
782         than a global function.
783         (ira_finish_costs_once): Delete.
784         * target-globals.c (target_globals::~target_globals): Call the
785         target_ira_int destructor.
786         * toplev.c: Include lra.h.
787         (finalize): Call lra_finish_once rather than ira_finish_once.
788
789 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
790
791         * common.opt (flto-odr-type-merging): New flag.
792         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
793         (types_same_for_odr): Likewise.
794         (odr_subtypes_equivalent_p): Likewise.
795         (add_type_duplicate): Do not walk type variants.
796         (register_odr_type): New function.
797         * ipa-utils.h (register_odr_type): Declare.
798         (odr_type_p): New function.
799         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
800         TYPE_DECLs
801         * doc/invoke.texi (-flto-odr-type-merging): Document.
802         * tree.c (need_assembler_name_p): Compute ODR names when asked
803         for it.
804         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
805
806 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
807
808         PR target/63228
809         * config/i386/i386.c (ix86_option_override_internal): Also turn
810         off OPTION_MASK_ABI_X32 for -m16.
811
812 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
813
814         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
815         GPR instead of P.
816
817 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
818
819         PR target/58757
820         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
821         Directly forward to __*_DENORM_MIN__.
822
823 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
824
825         * rtl.h (LABEL_REF_LABEL): New macro.
826
827         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
828         of XEXP (, 0), where we know that we have a LABEL_REF.
829         * cfgbuild.c (make_edges): Likewise.
830         (purge_dead_tablejump_edges): Likewise.
831         * cfgexpand.c (convert_debug_memory_address): Likewise.
832         * cfgrtl.c (patch_jump_insn): Likewise.
833         * combine.c (distribute_notes): Likewise.
834         * cse.c (hash_rtx_cb): Likewise.
835         (exp_equiv_p): Likewise.
836         (fold_rtx): Likewise.
837         (check_for_label_ref): Likewise.
838         * cselib.c (rtx_equal_for_cselib_1): Likewise.
839         (cselib_hash_rtx): Likewise.
840         * emit-rtl.c (mark_label_nuses): Likewise.
841         * explow.c (convert_memory_address_addr_space): Likewise.
842         * final.c (output_asm_label): Likewise.
843         (output_addr_const): Likewise.
844         * gcse.c (add_label_notes): Likewise.
845         * genconfig.c (walk_insn_part): Likewise.
846         * genrecog.c (validate_pattern): Likewise.
847         * ifcvt.c (cond_exec_get_condition): Likewise.
848         (noce_emit_store_flag): Likewise.
849         (noce_get_alt_condition): Likewise.
850         (noce_get_condition): Likewise.
851         * jump.c (maybe_propagate_label_ref): Likewise.
852         (mark_jump_label_1): Likewise.
853         (redirect_exp_1): Likewise.
854         (rtx_renumbered_equal_p): Likewise.
855         * lra-constraints.c (operands_match_p): Likewise.
856         * reload.c (operands_match_p): Likewise.
857         (find_reloads): Likewise.
858         * reload1.c (set_label_offsets): Likewise.
859         * reorg.c (get_branch_condition): Likewise.
860         * rtl.c (rtx_equal_p_cb): Likewise.
861         (rtx_equal_p): Likewise.
862         * rtlanal.c (reg_mentioned_p): Likewise.
863         (rtx_referenced_p): Likewise.
864         (get_condition): Likewise.
865         * sched-vis.c (print_value): Likewise.
866         * varasm.c (const_hash_1): Likewise.
867         (compare_constant): Likewise.
868         (const_rtx_hash_1): Likewise.
869         (output_constant_pool_1): Likewise.
870
871 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
872
873         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
874         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
875         instead of minus.
876         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
877         cr6_test_for_lt_reverse): Ditto.
878
879 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
880
881         PR c++/61489
882         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
883
884 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
885
886         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
887         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
888         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
889         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
890         Delete.
891
892         (aarch64_fold_builtin): Remove all reinterpret cases.
893
894         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
895
896         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
897
898         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
899         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
900         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
901         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
902         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
903         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
904         aarch64_reinterpretv2df<mode>): Delete.
905
906         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
907
908         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
909         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
910         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
911         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
912         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
913         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
914         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
915         vreinterpret_u32_f64): Use cast.
916
917         * config/aarch64/iterators.md (VD_RE): Delete.
918
919 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
920
921         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
922         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
923         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
924         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
925         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
926         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
927         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
928         Replace inline assembler with __aarch64_vset_lane_any.
929
930 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
931
932         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
933         types.
934         (vmull_high_lane_s32): Likewise.
935         (vmull_high_lane_u16): Likewise.
936         (vmull_high_lane_u32): Likewise.
937
938 2014-09-11  Jason Merrill  <jason@redhat.com>
939
940         PR c++/58678
941         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
942
943 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
944
945         PR target/63223
946         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
947         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
948         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
949
950 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
951             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
952             Anna Tikhonova  <anna.tikhonova@intel.com>
953             Ilya Tocar  <ilya.tocar@intel.com>
954             Andrey Turetskiy  <andrey.turetskiy@intel.com>
955             Ilya Verbin  <ilya.verbin@intel.com>
956             Kirill Yukhin  <kirill.yukhin@intel.com>
957             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
958
959         * config/i386/sse.md
960         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
961         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
962         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
963         New.
964         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
965         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
966         iterator.
967         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
968         New.
969         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
970         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
971         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
972         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
973         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
974         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
975         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
976         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
977         iterator.
978         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
979         New.
980         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
981         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
982         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
983
984 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
985
986         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
987         to access removed nodes.
988
989 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
990
991         PR tree-optimization/63186
992         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
993         (mark_nonssa_use): Likewise.
994         (verify_non_ssa_vars): Verify all header blocks for label
995         definitions.
996
997 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
998             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
999             Anna Tikhonova  <anna.tikhonova@intel.com>
1000             Ilya Tocar  <ilya.tocar@intel.com>
1001             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1002             Ilya Verbin  <ilya.verbin@intel.com>
1003             Kirill Yukhin  <kirill.yukhin@intel.com>
1004             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1005
1006         * config/i386/sse.md
1007         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
1008         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
1009         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
1010         "<avx2_avx512f>_permvar<mode><mask_name>".
1011         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
1012         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
1013         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
1014         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
1015         Ditto.
1016         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
1017         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1018         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
1019         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1020
1021 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1022
1023         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
1024         V2DF, V4SF, DF, and DI modes.
1025         (vsx_fmav2df2): Likewise.
1026         (vsx_float_fix_<mode>2): Likewise.
1027         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
1028
1029 2014-09-10  Xinliang David Li  <davidxl@google.com>
1030
1031         PR target/63209
1032         * config/arm/arm.md (movcond_addsi): Handle case where source
1033         and target operands are the same.
1034
1035 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
1036
1037         * final.c (this_is_asm_operands): Strengthen this variable from
1038         rtx to const rtx_insn *.
1039         * output.h (this_is_asm_operands): Likewise.
1040         * rtl-error.c (location_for_asm): Strengthen param "insn" from
1041         const_rtx to const rtx_insn *.
1042         (diagnostic_for_asm): Likewise.
1043         * rtl-error.h (error_for_asm): Likewise.
1044         (warning_for_asm): Likewise.
1045
1046 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
1047
1048         * genextract.c (print_header): When writing out insn_extract to
1049         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
1050         * recog.h (insn_extract): Strengthen the param from rtx to
1051         rtx_insn *.
1052
1053 2014-09-10  Mike Stump  <mikestump@comcast.net>
1054
1055         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
1056         8.6.1.
1057
1058 2014-09-10  Martin Jambor  <mjambor@suse.cz>
1059
1060         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
1061         (analyze): Do not set analyze flag if expand_thunk returns false;.
1062         (create_wrapper): Likewise.
1063         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
1064
1065 2014-09-10  Martin Jambor  <mjambor@suse.cz>
1066
1067         PR ipa/61654
1068         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
1069         new decl properly.  Analyze the new thunk if it is expanded.
1070
1071 2014-09-10  Andreas Schwab  <schwab@suse.de>
1072
1073         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
1074         [USED_FOR_TARGET]: Define.
1075
1076 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
1077
1078         * config/mips/mips.c (mips_secondary_reload_class): Handle
1079         regno < 0 case.
1080
1081 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
1082
1083         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
1084         assignment.
1085
1086 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
1087
1088         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
1089         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
1090         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
1091         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
1092         flag_delete_null_pointer_checks for them.
1093         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
1094         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
1095         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
1096         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
1097         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
1098         stmt's iterator.
1099         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
1100         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
1101         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
1102         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
1103         * doc/invoke.texi (-fsanitize=nonnull-attribute,
1104         -fsanitize=returns-nonnull-attribute): Document.
1105
1106         * ubsan.h (struct ubsan_mismatch_data): Removed.
1107         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
1108         * ubsan.c (ubsan_source_location): For unknown locations,
1109         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
1110         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
1111         Allow more than one location and arbitrary extra arguments passed
1112         in ... instead of through MISMATCH pointer.
1113         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
1114         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
1115         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
1116         callers.
1117
1118 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1119             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1120             Anna Tikhonova  <anna.tikhonova@intel.com>
1121             Ilya Tocar  <ilya.tocar@intel.com>
1122             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1123             Ilya Verbin  <ilya.verbin@intel.com>
1124             Kirill Yukhin  <kirill.yukhin@intel.com>
1125             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1126
1127         * config/i386/sse.md
1128         (define_mode_iterator VI48F): New.
1129         (define_insn "<avx512>_compress<mode>_mask"): Rename from
1130         "avx512f_compress<mode>_mask" and update mode iterator.
1131         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
1132         "avx512f_compressstore<mode>_mask" and update mode iterator.
1133         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
1134         "avx512f_expand<mode>_maskz" and update mode iterator.
1135         (define_insn "<avx512>_expand<mode>_mask"): Rename from
1136         "avx512f_expand<mode>_mask" and update mode iterator.
1137
1138 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1139             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1140             Anna Tikhonova  <anna.tikhonova@intel.com>
1141             Ilya Tocar  <ilya.tocar@intel.com>
1142             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1143             Ilya Verbin  <ilya.verbin@intel.com>
1144             Kirill Yukhin  <kirill.yukhin@intel.com>
1145             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1146
1147         * config/i386/i386.c
1148         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
1149         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
1150         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
1151         avx512dq_rangepv4sf_mask.
1152         * config/i386/sse.md
1153         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
1154         UNSPEC_RANGE.
1155         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
1156         (define_insn "reduces<mode>"): Ditto.
1157         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1158         Ditto.
1159         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
1160         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
1161         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
1162
1163 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1164             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1165             Anna Tikhonova  <anna.tikhonova@intel.com>
1166             Ilya Tocar  <ilya.tocar@intel.com>
1167             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1168             Ilya Verbin  <ilya.verbin@intel.com>
1169             Kirill Yukhin  <kirill.yukhin@intel.com>
1170             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1171
1172         * config/i386/i386.c
1173         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
1174         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
1175         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
1176         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
1177         avx512vl_getmantv2df_mask.
1178         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
1179         avx512f_vgetmantv4sf_round.
1180         * config/i386/sse.md
1181         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
1182         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
1183         mode iterator.
1184         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
1185         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
1186         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
1187         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
1188         iterator..
1189         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
1190         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
1191         update mode iterator.
1192         (define_expand
1193         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
1194         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
1195         mode iterator.
1196         (define_insn
1197         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
1198         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
1199         update mode iterator.
1200         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
1201         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
1202         iterator..
1203         (define_insn
1204         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
1205         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
1206         mode iterator..
1207         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
1208         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
1209         update mode iterator.
1210         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
1211         "avx512f_getmant<mode><round_saeonly_name>".
1212
1213 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
1214
1215         PR ipa/63166
1216         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
1217
1218 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1219             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1220             Anna Tikhonova  <anna.tikhonova@intel.com>
1221             Ilya Tocar  <ilya.tocar@intel.com>
1222             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1223             Ilya Verbin  <ilya.verbin@intel.com>
1224             Kirill Yukhin  <kirill.yukhin@intel.com>
1225             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1226
1227         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
1228         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
1229         (define_mode_iterator FMAMODE_AVX512): New.
1230         (define_mode_iterator FMAMODE): Remove conditions.
1231         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
1232         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
1233         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
1234         mode iterator.
1235         (define_mode_iterator FMAMODE_NOVF512): Remove.
1236         (define_insn "*fma_fmadd_<mode>"): Rename from
1237         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
1238         FMAMODE mode iterator.
1239         (define_mode_iterator VF_SF_AVX512VL): New.
1240         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
1241         Use VF_SF_AVX512VL mode iterator.
1242         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
1243         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1244         iterator.
1245         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
1246         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1247         iterator.
1248         (define_insn "*fma_fmsub_<mode>"): Rename from
1249         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
1250         FMAMODE mode iterator.
1251         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
1252         Use VF_SF_AVX512VL mode iterator.
1253         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
1254         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1255         iterator.
1256         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
1257         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1258         iterator.
1259         (define_insn "*fma_fnmadd_<mode>"): Rename from
1260         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
1261         use FMAMODE mode iterator.
1262         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
1263         Use VF_SF_AVX512VL mode iterator.
1264         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
1265         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1266         iterator.
1267         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
1268         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1269         iterator.
1270         (define_insn "*fma_fnmsub_<mode>"): Rename from
1271         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
1272         FMAMODE mode iterator.
1273         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
1274         Use VF_SF_AVX512VL mode iterator.
1275         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
1276         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1277         iterator.
1278         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
1279         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1280         iterator.
1281         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
1282         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
1283         use VF_AVX512VL mode iterator.
1284         (define_insn "*fma_fmaddsub_<mode>"): Rename from
1285         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
1286         remove subst usage.
1287         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
1288         Use VF_SF_AVX512VL mode iterator.
1289         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
1290         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1291         iterator.
1292         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
1293         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1294         iterator.
1295         (define_insn "*fma_fmsubadd_<mode>"): Rename from
1296         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
1297         remove usage of subst.
1298         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
1299         Use VF_SF_AVX512VL mode iterator.
1300         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
1301         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1302         iterator.
1303         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
1304         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1305         iterator.
1306
1307 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
1308
1309         Revert r213751:
1310         * calls.c (precompute_arguments): Check
1311          promoted_for_signed_and_unsigned_p and set the promoted mode.
1312         (promoted_for_signed_and_unsigned_p): New function.
1313         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
1314         and set the promoted mode.
1315         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
1316         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
1317         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
1318
1319 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1320
1321         * opth-gen.awk: Generate mapping from cpp message reasons to the
1322         options that enable them.
1323         * doc/options.texi (CppReason): Document.
1324
1325 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1326
1327         * doc/invoke.texi (Wnormalized=): Update.
1328
1329 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
1330
1331         PR target/63195
1332         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
1333         operands.  Split off the constant operand alternative to ...
1334         (*bool<mode>3_imm): New.
1335
1336 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1337
1338         * rtl.h (single_set_2): Strengthen first param from const_rtx to
1339         const rtx_insn *, and move prototype to above...
1340         (single_set): ...this.  Convert this from a macro to an inline
1341         function, enforcing the requirement that the param is a const
1342         rtx_insn *.
1343         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
1344
1345         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
1346         Strengthen both params from rtx to rtx_insn *.
1347         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
1348         Likewise; introduce locals "producer_set", "consumer_set", using
1349         them in place of "producer" and "consumer" when dealing with SET
1350         rather than insn.
1351         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
1352         when invoking single_set in region guarded by INSN_P.
1353         (avr_out_bitop): Likewise.
1354         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
1355         region guarded by GET_CODE check, using methods to strengthen
1356         local "this_insn" from rtx to rtx_insn *, and for clarity.
1357         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
1358         Strengthen local "insn" from rtx to rtx_insn *.
1359         (define_insn_and_split "xload<mode>_A"): Likewise.
1360         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
1361         "insn".
1362         (find_load): Likewise for return type.
1363         (workaround_speculation): Likewise for both locals named
1364         "load_insn".
1365         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
1366         local "cc0_user".
1367         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
1368         for local "prev".
1369         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
1370         param 2.
1371         * config/h8300/h8300.c (notice_update_cc): Likewise.
1372         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
1373         "insn" and "dep_insn".
1374         (exact_store_load_dependency): Likewise for both params.
1375         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
1376         since this now clashes with inline function.  Instead, delay
1377         calling single_set until the point where its needed, and then
1378         assign the result to "compare_set" and rework the conditional that
1379         follows.
1380         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
1381         local "last" from rtx to rtx_insn *.
1382         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
1383         second param.
1384         (mips_store_data_bypass_p): Likewise for both params.
1385         * config/mips/mips.c (mips_load_store_insns): Likewise for second
1386         param.
1387         (mips_store_data_bypass_p): Likewise for both params.
1388         (mips_orphaned_high_part_p): Likewise for param "insn".
1389         * config/mn10300/mn10300.c (extract_bundle): Likewise.
1390         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
1391         Introduce local rtx "insn2_pat".
1392         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
1393         "ninsn".
1394         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
1395         Introduce local rtx "set", using it in place of "insn" for the
1396         result of single_set.  This appears to fix a bug, since the call
1397         to find_regno_note on a SET does nothing.
1398         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
1399         params from rtx to rtx_insn *.
1400         (set_to_load_agen): Likewise.
1401         * config/s390/s390.c (s390_label_align): Likewise for local
1402         "prev_insn".  Introduce new rtx locals "set" and "src", using
1403         them in place of "prev_insn" for the results of single_set
1404         and SET_SRC respectively.
1405         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
1406         Introduce new rtx local "set" using in place of "jump" for the
1407         result of single_set.  Use SET_SRC (set) rather than plain
1408         XEXP (set, 1).
1409         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
1410         rtx to rtx_insn *.
1411         (noncall_uses_reg): Likewise.
1412         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
1413         guarded by GET_CODE check, using its methods for clarity, and to
1414         enable strengthening local "this_insn" from rtx to rtx_insn *.
1415         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
1416         "insn" from rtx to rtx_insn *.
1417         (define_expand "umulhisi3"): Likewise.
1418         (define_expand "smulsi3_highpart"): Likewise.
1419         (define_expand "umulsi3_highpart"): Likewise.
1420         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1421         local "after".  Replace GET_CODE check with a dyn_cast,
1422         introducing new local rtx_sequence * "seq", using insn method for
1423         typesafety.
1424
1425         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
1426         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
1427         place of "insn" once we're dealing with patterns rather than the
1428         input insn.
1429         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
1430         (scan_trace): Likewise for local "elt", updating lookups within
1431         sequence to use insn method rather than element method.
1432         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
1433         to rtx_insn *.
1434         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
1435         * ifcvt.c (noce_try_abs): Likewise for local "insn".
1436         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
1437         invoking single_set.
1438         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
1439         "insn" from rtx to rtx_insn *.
1440         (skip_usage_debug_insns): Likewise for return type, adding a
1441         checked cast.
1442         (check_secondary_memory_needed_p): Likewise for local "insn".
1443         (inherit_reload_reg): Likewise.
1444         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
1445         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
1446         checked casts.
1447         (store_data_bypass_p): Likewise for both params.
1448         (if_test_bypass_p): Likewise.
1449         * recog.h (store_data_bypass_p): Likewise for both params.
1450         (if_test_bypass_p): Likewise.
1451         * reload.c (find_equiv_reg): Likewise for local "where".
1452         * reorg.c (delete_jump): Likewise for param "insn".
1453         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
1454         to const rtx_insn *.
1455         * store-motion.c (replace_store_insn): Likewise for param "del".
1456         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
1457         and use its methods for clarity, and to strengthen local "del"
1458         from rtx to rtx_insn *.
1459         (build_store_vectors): Use insn method of "st" when calling
1460         replace_store_insn for typesafety and clarity.
1461
1462 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1463
1464         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
1465         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
1466         on how to make it legal in future.
1467
1468 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1469
1470         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
1471         to rtx_insn *.
1472         (restinsn): Likewise.
1473         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
1474         Likewise for param.
1475         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
1476         Likewise.
1477         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
1478         first param.
1479         (arc_hazard): Likewise for both params.
1480         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
1481         checked casts to rtx_sequence * and uses of the insn method for
1482         type-safety.
1483         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
1484         (arc_adjust_insn_length): Likewise for param "insn".
1485         (struct insn_length_parameters_s): Likewise for first param of
1486         "get_variants" callback field.
1487         (arc_get_insn_variants): Likewise for first param and local
1488         "inner".  Replace a check of GET_CODE with a dyn_cast to
1489         rtx_sequence *, using methods for type-safety and clarity.
1490         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
1491         rtx_sequence * and uses of the insn method for type-safety when
1492         invoking arc_adjust_insn_length.
1493         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
1494         for param.
1495         (arm_address_offset_is_imm): Likewise.
1496         (struct tune_params): Likewise for params 1 and 3 of the
1497         "sched_adjust_cost" callback field.
1498         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
1499         params 1 and 3 ("insn" and "dep").
1500         (xscale_sched_adjust_cost): Likewise.
1501         (fa726te_sched_adjust_cost): Likewise.
1502         (cortexa7_older_only): Likewise for param "insn".
1503         (cortexa7_younger): Likewise.
1504         (arm_attr_length_move_neon): Likewise.
1505         (arm_address_offset_is_imm): Likewise.
1506         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
1507         * config/avr/avr.c (avr_notice_update_cc): Likewise.
1508         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
1509         (workaround_speculation): Likewise for local "last_condjump".
1510         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
1511         (shadow_or_blockage_p): Likewise.
1512         (get_unit_reqs): Likewise.
1513         (get_unit_operand_masks): Likewise.
1514         (c6x_registers_update): Likewise.
1515         (returning_call_p): Likewise.
1516         (can_use_callp): Likewise.
1517         (convert_to_callp): Likewise.
1518         (find_last_same_clock): Likwise for local "t".
1519         (reorg_split_calls): Likewise for local "shadow".
1520         (hwloop_pattern_reg): Likewise for param "insn".
1521         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
1522         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1523         (frv_extract_membar): Likewise.
1524         (frv_optimize_membar_local): Strengthen param "last_membar" from
1525         rtx * to rtx_insn **.
1526         (frv_optimize_membar_global): Strengthen param "membar" from rtx
1527         to rtx_insn *.
1528         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
1529         to rtx_insn **.
1530         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
1531         both params from rtx to rtx_insn *.
1532         (ia64_ld_address_bypass_p): Likewise.
1533         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
1534         "insn".
1535         (ia64_safe_type): Likewise.
1536         (group_barrier_needed): Likewise.
1537         (safe_group_barrier_needed): Likewise.
1538         (ia64_single_set): Likewise.
1539         (is_load_p): Likewise.
1540         (record_memory_reference): Likewise.
1541         (get_mode_no_for_insn): Likewise.
1542         (important_for_bundling_p): Likewise.
1543         (unknown_for_bundling_p): Likewise.
1544         (ia64_st_address_bypass_p): Likewise for both params.
1545         (ia64_ld_address_bypass_p): Likewise.
1546         (expand_vselect): Introduce new local rtx_insn * "insn", using it
1547         in place of rtx "x" after the emit_insn call.
1548         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
1549         Strengthen param from rtx to rtx_insn *.
1550         (ix86_agi_dependent): Likewise for both params.
1551         (ix86_attr_length_immediate_default): Likewise for param 1.
1552         (ix86_attr_length_address_default): Likewise for param.
1553         (ix86_attr_length_vex_default): Likewise for param 1.
1554         * config/i386/i386.c (ix86_attr_length_immediate_default):
1555         Likewise for param "insn".
1556         (ix86_attr_length_address_default): Likewise.
1557         (ix86_attr_length_vex_default): Likewise.
1558         (ix86_agi_dependent): Likewise for both params.
1559         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
1560         (vselect_insn): Likewise for this variable.
1561         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
1562         for param 1.
1563         (m68k_sched_attr_opy_type): Likewise.
1564         * config/m68k/m68k.c (sched_get_operand): Likewise.
1565         (sched_attr_op_type): Likewise.
1566         (m68k_sched_attr_opx_type): Likewise.
1567         (m68k_sched_attr_opy_type): Likewise.
1568         (sched_get_reg_operand): Likewise.
1569         (sched_get_mem_operand): Likewise.
1570         (m68k_sched_address_bypass_p): Likewise for both params.
1571         (sched_get_indexed_address_scale): Likewise.
1572         (m68k_sched_indexed_address_bypass_p): Likewise.
1573         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
1574         (m68k_sched_indexed_address_bypass_p): Likewise.
1575         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
1576         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
1577         removing another.
1578         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
1579         params from rtx to rtx_insn *.
1580         (mips_fmadd_bypass): Likewise.
1581         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
1582         (mips_linked_madd_p): Likewise.
1583         (mips_macc_chains_last_hilo): Likewise for this variable.
1584         (mips_macc_chains_record): Likewise for param.
1585         (vr4130_last_insn): Likewise for this variable.
1586         (vr4130_swap_insns_p): Likewise for both params.
1587         (mips_ls2_variable_issue): Likewise for param.
1588         (mips_need_noat_wrapper_p): Likewise for param "insn".
1589         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
1590         in place of "x" after the emit_insn.
1591         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
1592         params from rtx to rtx_insn *.
1593         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
1594         (pa_combine_instructions): Introduce local "par" for result of
1595         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1596         to make_insn_raw.
1597         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1598         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1599         (rl78_alloc_physical_registers_op1): Likewise.
1600         (rl78_alloc_physical_registers_op2): Likewise.
1601         (rl78_alloc_physical_registers_ro1): Likewise.
1602         (rl78_alloc_physical_registers_cmp): Likewise.
1603         (rl78_alloc_physical_registers_umul): Likewise.
1604         (rl78_alloc_address_registers_macax): Likewise.
1605         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1606         * config/s390/predicates.md (execute_operation): Likewise for
1607         local "insn".
1608         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1609         params.
1610         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1611         (addr_generation_dependency_p): Likewise for param "insn".
1612         (s390_agen_dep_p): Likewise for both params.
1613         (s390_fpload_toreg): Likewise for param "insn".
1614         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1615         * config/sh/sh.c (sh_loop_align): Likewise for param and local
1616         "next".
1617         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1618         * config/sh/sh_treg_combine.cc
1619         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1620         and local "i".
1621         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1622         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1623         "and_insn", "load", "shift".
1624         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1625         "insn".
1626         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1627         for XEXP (note, 0) of the REG_CC_SETTER note.
1628         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1629         rtx_insn *, eliminating a checked cast made redundant by this.
1630         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1631         to rtx_insn *.
1632         * genattr.c (main): When writing out the prototype to
1633         const_num_delay_slots, strengthen the param from rtx to
1634         rtx_insn *.
1635         * genattrtab.c (write_const_num_delay_slots): Likewise when
1636         writing out the implementation of const_num_delay_slots.
1637         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1638         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1639         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1640         favor of new rtx locals "src" and "set" and new local rtx_insn *
1641         "insn" and "seq".
1642         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1643         to rtx_insn *.
1644         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1645         locals "cond", "if_then_else", "set" and new rtx_insn * locals
1646         "insn" and "seq".
1647         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1648         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
1649         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
1650         the top-level scope, replacing with new more tightly-scoped rtx
1651         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1652         "new_insn", "copy_of_insn_b", and make local rtx "set" more
1653         tightly-scoped.
1654         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1655         rtx_insn *.
1656         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1657         "move_insn".
1658         (ira_setup_alts): Likewise for param "insn".
1659         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1660         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1661         and an rtx_insn *.
1662         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1663         new more-tightly scoped rtx locals "add3_insn", "insn",
1664         "add2_insn" and rtx_insn * "move_insn".
1665         * postreload-gcse.c (eliminate_partially_redundant_load): Add
1666         checked cast on result of gen_move_insn when invoking
1667         extract_insn.
1668         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1669         rtx_insn *.
1670         (verify_changes): Add a checked cast on "object" when invoking
1671         insn_invalid_p.
1672         (extract_insn_cached): Strengthen param "insn" from rtx to
1673         rtx_insn *.
1674         (extract_constrain_insn_cached): Likewise.
1675         (extract_insn): Likewise.
1676         * recog.h (insn_invalid_p): Likewise for param 1.
1677         (recog_memoized): Likewise for param.
1678         (extract_insn): Likewise.
1679         (extract_constrain_insn_cached): Likewise.
1680         (extract_insn_cached): Likewise.
1681         * reload.c (can_reload_into): Likewise for local "test_insn".
1682         * reload.h (cleanup_subreg_operands): Likewise for param.
1683         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1684         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1685         result of emit_insn.  Remove a checked cast made redundant by this
1686         change.
1687         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1688         rtx to rtx_insn *.
1689         * sel-sched.c (get_reg_class): Likewise.
1690
1691 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1692         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1693
1694          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1695          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1696         Define.
1697         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1698
1699 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1700
1701         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1702         const rtx_insn *, and from rtx to rtx_insn * for the other
1703         overloaded variant.
1704         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1705         INSN_LOCATION, since we know INSN_P holds.
1706         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1707         (insn_file): Likewise.
1708         (insn_scope): Likewise.
1709         (insn_location): Likewise.
1710
1711         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1712         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1713         for the result of gen_load_const_gp.
1714         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1715         param from rtx to rtx_insn *.
1716         * config/rs6000/rs6000.c (output_call): Likewise.
1717         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1718         introducing a checked cast to rtx_sequence * and use of the insn
1719         method.
1720         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1721         from rtx to rtx_insn *.
1722         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1723         (insn_line): Likewise.
1724         (insn_file): Likewise.
1725         (insn_location): Likewise.
1726         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1727         from rtx to rtx_insn *.
1728         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1729         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1730         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1731         via a checked cast.
1732         * reorg.c (relax_delay_slots): Strengthen locals named "after"
1733         from rtx to rtx_insn *; use methods of "pat" for type-safety.
1734
1735 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1736
1737         * combine.c (try_combine): Eliminate checked cast on result of
1738         gen_rtx_INSN.
1739         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1740         autogenerated one by strengthening the return type and params 2 and 3
1741         from rtx to rtx_insn *, and by naming the params.
1742         * gengenrtl.c (special_rtx): Add INSN to those that are
1743         special-cased.
1744         * rtl.h (gen_rtx_INSN): New prototype.
1745
1746 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1747
1748         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1749         than NULL_RTX.
1750         (no_equiv): Likewise.
1751         (update_equiv_regs): Likewise.
1752         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
1753         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1754         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
1755         clarity.
1756         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1757         from rtx to rtx_insn_list *.
1758         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1759         rtx_insn_list * and use methods for clarity and typesafety.
1760         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1761         "list".
1762         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
1763         redundant check on INSN_P (insns): this cannot hold, as "insns" is
1764         an INSN_LIST, not an insn.
1765         (reverse_equiv_p): Strengthen local "insns" from rtx to
1766         rtx_insn_list * and use methods for clarity and typesafety.
1767         (contains_reloaded_insn_p): Likewise for local "list".
1768
1769 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
1770
1771         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1772         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1773         (arm_builtin_vectorized_function): Likewise.
1774         * config/arm/arm_neon_builtins.def: New macro for copysignf.
1775         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1776
1777 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
1778
1779         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1780         * builtins.h (default_target_builtins): Likewise.
1781         * gcse.h (default_target_gcse): Likewise.
1782         * target-globals.h (target_globals): Add a destructor.  Convert
1783         void-pointer fields back to their real type and change from
1784         GTY((atomic)) to GTY((skip)).
1785         (restore_target_globals): Remove casts accordingly.
1786         * target-globals.c (save_target_globals): Use XCNEW rather than
1787         ggc_internal_cleared_alloc to allocate non-GC structures.
1788         Use ggc_cleared_alloc to allocate the target_globals structure
1789         itself.
1790         (target_globals::~target_globals): Define.
1791
1792 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1793
1794         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1795         mnemonic instead of fldmfdd.
1796         * config/arm/arm.c (vfp_output_fstmd): Rename to...
1797         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
1798         Output vpush when address register is SP.
1799         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1800         (vfp_output_vstmd): ... This.
1801         * config/arm/vfp.md (push_multi_vfp): Update call to
1802         vfp_output_vstmd.
1803
1804 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1805
1806         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1807
1808 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1809
1810         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1811         (*sqrtdf2_vfp): Likewise.
1812         (*cmpsf_vfp): Likewise.
1813         (*cmpsf_trap_vfp): Likewise.
1814         (*cmpdf_vfp): Likewise.
1815         (*cmpdf_trap_vfp): Likewise.
1816
1817 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1818
1819         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1820         (*truncdfsf2_vfp): Likewise.
1821         (*truncsisf2_vfp): Likewise.
1822         (*truncsidf2_vfp): Likewise.
1823         (fixuns_truncsfsi2): Likewise.
1824         (fixuns_truncdfsi2): Likewise.
1825         (*floatsisf2_vfp): Likewise.
1826         (*floatsidf2_vfp): Likewise.
1827         (floatunssisf2): Likewise.
1828         (floatunssidf2): Likewise.
1829
1830 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1831
1832         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1833         (*muldf3_vfp): Likewise.
1834         (*mulsf3negsf_vfp): Likewise.
1835         (*muldf3negdf_vfp): Likewise.
1836         (*mulsf3addsf_vfp): Likewise.
1837         (*muldf3adddf_vfp): Likewise.
1838         (*mulsf3subsf_vfp): Likewise.
1839         (*muldf3subdf_vfp): Likewise.
1840         (*mulsf3negsfaddsf_vfp): Likewise.
1841         (*fmuldf3negdfadddf_vfp): Likewise.
1842         (*mulsf3negsfsubsf_vfp): Likewise.
1843         (*muldf3negdfsubdf_vfp): Likewise.
1844
1845 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1846
1847         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1848         (*absdf2_vfp): Likewise.
1849         (*negsf2_vfp): Likewise.
1850         (*negdf2_vfp): Likewise.
1851         (*addsf3_vfp): Likewise.
1852         (*adddf3_vfp): Likewise.
1853         (*subsf3_vfp): Likewise.
1854         (*subdf3_vfp): Likewise.
1855         (*divsf3_vfp): Likewise.
1856         (*divdf3_vfp): Likewise.
1857
1858 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1859
1860         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1861         multiple.
1862         (arm_print_operand): Don't convert real values to decimal
1863         representation in default case.
1864         (fp_immediate_constant): Delete.
1865         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1866         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1867         syntax.
1868         (*thumb2_movsi_vfp): Likewise.
1869         (*movdi_vfp): Likewise.
1870         (*movdi_vfp_cortexa8): Likewise.
1871         (*movhf_vfp_neon): Likewise.
1872         (*movhf_vfp): Likewise.
1873         (*movsf_vfp): Likewise.
1874         (*thumb2_movsf_vfp): Likewise.
1875         (*movdf_vfp): Likewise.
1876         (*thumb2_movdf_vfp): Likewise.
1877         (*movsfcc_vfp): Likewise.
1878         (*thumb2_movsfcc_vfp): Likewise.
1879         (*movdfcc_vfp): Likewise.
1880         (*thumb2_movdfcc_vfp): Likewise.
1881
1882 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
1883
1884         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1885         (-mtune): Likewise.
1886         (-mcpu): Likewise.
1887
1888 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1889
1890         PR target/61749
1891         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1892         Use qualifier_immediate for last operand.  Rename to...
1893         (aarch64_types_ternop_lane_qualifiers): ... This.
1894         (TYPES_QUADOP): Rename to...
1895         (TYPES_TERNOP_LANE): ... This.
1896         (aarch64_simd_expand_args): Return const0_rtx when encountering user
1897         error.  Change return of 0 to return of NULL_RTX.
1898         (aarch64_crc32_expand_builtin): Likewise.
1899         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1900         ICE when expanding unknown builtin.
1901         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1902         TERNOP_LANE qualifiers.
1903         (sqdmlsl_lane): Likewise.
1904         (sqdmlal_laneq): Likewise.
1905         (sqdmlsl_laneq): Likewise.
1906         (sqdmlal2_lane): Likewise.
1907         (sqdmlsl2_lane): Likewise.
1908         (sqdmlal2_laneq): Likewise.
1909         (sqdmlsl2_laneq): Likewise.
1910
1911 2014-09-09  Nick Clifton  <nickc@redhat.com>
1912
1913         * doc/invoke.texi (Optimization Options): Add missing @gol to the
1914         end of a line.
1915         (S/390 and zSeries Options): Remove superfluous word from the
1916         description of the -mhotpatch option.
1917
1918 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1919
1920         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1921         * ira.c: #include "shrink-wrap.h"
1922         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1923         * ifcvt.c: #include "shrink-wrap.h"
1924         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1925
1926 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
1927
1928         * common/config/picochip/picochip-common.c: Remove.
1929         * config.gcc: Remove support for picochip.
1930         * config/picochip/constraints.md: Remove.
1931         * config/picochip/dfa_space.md: Remove.
1932         * config/picochip/dfa_speed.md: Remove.
1933         * config/picochip/picochip-protos.h: Remove.
1934         * config/picochip/picochip.c: Remove.
1935         * config/picochip/picochip.h: Remove.
1936         * config/picochip/picochip.md: Remove.
1937         * config/picochip/picochip.opt: Remove.
1938         * config/picochip/predicates.md: Remove.
1939         * config/picochip/t-picochip: Remove.
1940         * doc/md.texi: Don't document picochi.
1941
1942 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1943
1944         * basic-block.h (control_flow_insn_p): Strengthen param from
1945         const_rtx to const rtx_insn *.
1946         * cfgbuild.c (control_flow_insn_p): Likewise.
1947
1948 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1949
1950         * gcse.c (modify_mem_list): Strengthen this variable from
1951         vec<rtx> * to vec<rtx_insn *> *.
1952         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1953         vec<rtx_insn *>.
1954         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1955         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1956         (record_last_mem_set_info): Strengthen param "insn" from rtx to
1957         rtx_insn *.
1958         (record_last_set_info): Likewise for local "last_set_insn".
1959
1960 2014-09-08  DJ Delorie  <dj@redhat.com>
1961
1962         * doc/invoke.texi (MSP430 Options): Add -minrt.
1963
1964 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1965
1966         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
1967         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1968         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1969         handling SH_SPLAT.
1970         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1971         of extracted lane.
1972         (adjust_splat): New function.
1973         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1974         (dump_swap_insn_table): Add case for SH_SPLAT.
1975
1976 2014-09-08  Richard Biener  <rguenther@suse.de>
1977
1978         PR ipa/63196
1979         * tree-inline.c (copy_loops): The source loop header should
1980         always be non-NULL.
1981         (tree_function_versioning): If loops need fixup after removing
1982         unreachable blocks fix them.
1983         * omp-low.c (simd_clone_adjust): Do not add incr block to
1984         loop under construction.
1985
1986 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1987
1988         * config/aarch64/aarch64-builtins.c
1989         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1990
1991 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1992
1993         * config/i386/cygming.h (TF_SIZE): Remove.
1994         * config/i386/darwin.h (TF_SIZE): Remove.
1995         * config/i386/dragonfly.h (TF_SIZE): Remove.
1996         * config/i386/freebsd.h (TF_SIZE): Remove.
1997         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1998         * config/i386/openbsdelf.h (TF_SIZE): Remove.
1999         * config/i386/sol2.h (TF_SIZE): Remove.
2000         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
2001         * config/ia64/linux.h (TF_SIZE): Remove.
2002         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
2003         * doc/tm.texi: Regenerate.
2004         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
2005
2006 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
2007
2008         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
2009         Remove.
2010         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
2011         Remove.
2012         * doc/tm.texi: Regenerate.
2013         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
2014         Poison.
2015         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
2016         * config/cris/cris.h (__make_dp): Remove.
2017
2018 2014-09-08  Richard Biener  <rguenther@suse.de>
2019
2020         PR bootstrap/63204
2021         * cfgloop.c (mark_loop_for_removal): Track former header
2022         unconditionally.
2023         * cfgloop.h (struct loop): Add former_header member unconditionally.
2024         * loop-init.c (fix_loop_structure): Enable bogus loop removal
2025         diagnostic unconditionally.
2026
2027 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
2028
2029         PR target/63190
2030         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
2031         constraint for operand0 and remove write only modifier from operand3.
2032
2033 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
2034
2035         PR rtl-optimization/62208
2036         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
2037         rather than const0_rtx in eq/ne-xor simplifications.
2038
2039 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
2040
2041         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
2042         (arc_output_mi_thunk): Likewise.
2043
2044         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
2045         arguments to silence bogus warning.
2046
2047 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
2048
2049         PR middle-end/63171
2050         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
2051
2052 2014-09-06  Tom de Vries  <tom@codesourcery.com>
2053
2054         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
2055         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
2056         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2057
2058 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
2059
2060         PR target/63188
2061         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
2062         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
2063
2064 2014-09-05  Easwaran Raman  <eraman@google.com>
2065
2066         PR rtl-optimization/62146
2067         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
2068         hoisted instruction unconditional.
2069
2070 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
2071
2072         PR target/63187
2073         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
2074         Do not allow any_mask_operand for operands[2].
2075         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
2076
2077 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2078
2079         * config/arc/arc.c (arc_print_operand): Use insn method of
2080         final_sequence for type-safety.
2081         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
2082         "insn" from rtx to rtx_insn *.
2083         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
2084         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
2085         Likewise for locals "branch", "label".
2086         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
2087         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
2088         (same_cmp_following_p): Likewise for locals "i2", "i3".
2089         * config/sh/sh_optimize_sett_clrt.cc
2090         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
2091         param "cbranch_insn".
2092         * function.c (convert_jumps_to_returns): Likewis for local "jump".
2093         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
2094         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
2095         const rtx_insn *.
2096         (condjump_p): Likewise.
2097         (condjump_in_parallel_p): Likewise.
2098         (pc_set): Likewise.
2099         (any_uncondjump_p): Likewise.
2100         (any_condjump_p): Likewise.
2101         (condjump_label): Likewise.
2102         (returnjump_p): Strengthen param "insn" from rtx to
2103         const rtx_insn *.
2104         (onlyjump_p): Strengthen param "insn" from const_rtx to
2105         const rtx_insn *.
2106         (jump_to_label_p): Likewise.
2107         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
2108         (invert_jump): Likewise.
2109         * reorg.c (simplejump_or_return_p): Add checked cast when calling
2110         simplejump_p.
2111         (get_jump_flags): Strengthen param "insn" from rtx to
2112         const rtx_insn *.
2113         (get_branch_condition): Likewise.
2114         (condition_dominates_p): Likewise.
2115         (make_return_insns): Move declaration of local "pat" earlier, to
2116         after we've handled NONJUMP_INSN_P and non-sequences, using its
2117         methods to simplify the code and for type-safety.
2118         * rtl.h (find_constant_src): Strengthen param from const_rtx to
2119         const rtx_insn *.
2120         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
2121         (condjump_p): Strengthen param from const_rtx to
2122         const rtx_insn *.
2123         (any_condjump_p): Likewise.
2124         (any_uncondjump_p): Likewise.
2125         (pc_set): Likewise.
2126         (condjump_label): Likewise.
2127         (simplejump_p): Likewise.
2128         (returnjump_p): Likewise.
2129         (onlyjump_p): Likewise.
2130         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
2131         (invert_jump): Likewise.
2132         (condjump_in_parallel_p): Strengthen param from const_rtx to
2133         const rtx_insn *.
2134         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
2135         to const rtx_insn *.
2136         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
2137         to const rtx_insn *.
2138         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
2139
2140 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2141
2142         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
2143         above the conditional, and convert the check on GET_CODE to a
2144         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
2145         the conditional.  Simplify the conditional by using methods of
2146         "trial_seq".
2147
2148 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2149
2150         * haifa-sched.c (check_clobbered_conditions): Strengthen local
2151         "link" from rtx to rtx_insn_list *, and use its methods for
2152         clarity and type-safety.
2153         (toggle_cancelled_flags): Likewise.
2154         (restore_last_backtrack_point): Likewise.
2155         (queue_to_ready): Use insn method of "link" in one place.
2156         (schedule_block): Strengthen local "link" from rtx to
2157         rtx_insn_list *, and use its methods for clarity and type-safety.
2158
2159 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2160
2161         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
2162         param "insn" from const_rtx to const rtx_insn *.
2163         (sched_get_reverse_condition_uncached): Likewise.
2164         (sched_get_condition_with_rev): Likewise.
2165         (sched_has_condition_p): Likewise.
2166         (sched_insns_conditions_mutex_p): Likewise for both params.
2167         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
2168         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
2169         (setup_insn_reg_uses): Move local "list" to be more tightly
2170         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
2171         its methods for clarity and type-safety.
2172         (sched_analyze_1): Strengthen local "pending" from rtx to
2173         rtx_insn_list *, and local "pending_mem" from rtx to
2174         rtx_expr_list *.  Use methods of each for clarity and type-safety.
2175         (sched_analyze_2): Likewise.
2176         (sched_analyze_insn): Likewise.
2177
2178         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
2179         param from const_rtx to const rtx_insn *.
2180         (sched_insns_conditions_mutex_p): Likewise for both params.
2181         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
2182         param.
2183
2184         * system.h (CONST_CAST_RTX_INSN): New macro.
2185
2186 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2187
2188         * recog.c (peep2_attempt): Strengthen return type from rtx to
2189         rtx_insn *.
2190         (peep2_update_life): Likewise for params "last", "prev", removing
2191         a checked cast made redundant by this.
2192         (peephole2_optimize): Likewise for local "last".
2193
2194 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2195
2196         * basic-block.h (set_block_for_insn): Eliminate this macro in
2197         favor of...
2198         * rtl.h (set_block_for_insn): New inline function, imposing the
2199         requirement that the "insn" param is an rtx_insn *.
2200
2201 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2202
2203         * caller-save.c (setup_save_areas): Strengthen local "insn" from
2204         rtx to rtx_insn *.
2205         * final.c (get_call_reg_set_usage): Likewise for first param,
2206         eliminating a checked cast.
2207         * regs.h (get_call_reg_set_usage): Likewise for first param.
2208         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
2209         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
2210         cast, replacing references to "x" with "call_insn" where
2211         appropriate.
2212         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
2213         rtx_insn *, adding a checked cast.
2214
2215 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2216
2217         * output.h (final_scan_insn): Strengthen first param from rtx to
2218         rtx_insn *.
2219
2220         * final.c (final_scan_insn): Likewise, renaming it back from
2221         "uncast_insn" to "insn", eliminating the checked cast.
2222
2223         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
2224         "vec" with an rtx_sequence * "seq", taking a copy of
2225         "final_sequence", and using methods of "seq" for clarity, and for
2226         type-safety in the calls to final_scan_insn.
2227         * config/mips/mips.c (mips_output_conditional_branch): Use methods
2228         of "final_sequence" for clarity, and for type-safety in the call to
2229         final_scan_insn.
2230         * config/sh/sh.c (print_slot): Strengthen param from rtx to
2231         rtx_sequence * and rename from "insn" to "seq".
2232
2233 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2234
2235         * jump.c (delete_related_insns): Introduce a new local "table" by
2236         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
2237         get_labels method of "table" to simplify access to the labels in
2238         the jump table.
2239
2240 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2241
2242         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
2243         f_minmaxs, f_minmaxd types.
2244
2245 2014-09-05  Richard Biener  <rguenther@suse.de>
2246
2247         * cfgloop.c (mark_loop_for_removal): Record former header
2248         when ENABLE_CHECKING.
2249         * cfgloop.h (strut loop): Add former_header member when
2250         ENABLE_CHECKING.
2251         * loop-init.c (fix_loop_structure): Sanity check loops
2252         marked for removal if they re-appeared.
2253
2254 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2255
2256         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
2257         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
2258
2259         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
2260         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
2261         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
2262         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
2263         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
2264         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
2265         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
2266         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
2267         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
2268         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
2269         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
2270         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
2271         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
2272         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
2273         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
2274         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
2275         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
2276         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
2277         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
2278         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
2279         with int{32,16,8}_t.
2280
2281 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2282
2283         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
2284         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
2285         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
2286         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
2287         Remove temporary __asm__ and reimplement.
2288
2289 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2290
2291         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
2292         handling cmge, cmgt, cmeq, cmtst.
2293
2294         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
2295         cmlt, cmgeu, cmgtu, cmtst): Remove.
2296
2297         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
2298         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
2299         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
2300         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
2301
2302 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2303
2304         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
2305         TYPES_TST): Define.
2306         (aarch64_fold_builtin): Update pattern for cmtst.
2307
2308         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
2309         Declare.
2310
2311         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
2312
2313         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
2314         Switch operands, separate out more cases, refactor.
2315
2316         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
2317
2318         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
2319         argument; rename old version to...
2320         (aarch64_const_vec_all_same_in_range_p): ...this.
2321         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
2322
2323         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
2324
2325 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2326
2327         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2328         Remove qualifier_const_pointer, update comment.
2329
2330 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2331
2332         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
2333
2334 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2335
2336         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
2337         varargs with pointer parameter.
2338         (aarch64_simd_expand_builtin): pass pointer into previous.
2339
2340 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2341
2342         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
2343         alus_ext.
2344
2345 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2346
2347         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
2348         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
2349         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
2350         Replace temporary asm with call to builtin.
2351         (vrbit_p8, vrbitq_p8): New functions.
2352
2353 2014-09-05  Richard Biener  <rguenther@suse.de>
2354
2355         * cfgloop.c (mark_loop_for_removal): New function.
2356         * cfgloop.h (mark_loop_for_removal): Declare.
2357         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
2358         (merge_blocks): Likewise.
2359         (duplicate_block): Likewise.
2360         * except.c (sjlj_emit_dispatch_table): Likewise.
2361         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
2362         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
2363         (thread_through_loop_header): Likewise.
2364
2365 2014-09-05  Richard Biener  <rguenther@suse.de>
2366
2367         PR middle-end/63148
2368         * fold-const.c (try_move_mult_to_index): Remove.
2369         (fold_binary_loc): Do not call it.
2370         * tree-data-ref.c (dr_analyze_indices): Strip conversions
2371         from the base object again.
2372
2373 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
2374
2375         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
2376         DImode.
2377
2378 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2379
2380         PR target/55701
2381         * config/arm/arm.md (setmem): New pattern.
2382         * config/arm/arm-protos.h (struct tune_params): New fields.
2383         (arm_gen_setmem): New prototype.
2384         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
2385         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2386         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2387         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
2388         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
2389         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
2390         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
2391         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2392         (arm_const_inline_cost): New function.
2393         (arm_block_set_max_insns): New function.
2394         (arm_block_set_non_vect_profit_p): New function.
2395         (arm_block_set_vect_profit_p): New function.
2396         (arm_block_set_unaligned_vect): New function.
2397         (arm_block_set_aligned_vect): New function.
2398         (arm_block_set_unaligned_non_vect): New function.
2399         (arm_block_set_aligned_non_vect): New function.
2400         (arm_block_set_vect, arm_gen_setmem): New functions.
2401
2402 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2403
2404         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
2405
2406 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2407
2408         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
2409
2410 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2411
2412         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
2413         an rtx.
2414         * valtrack.h: Adjust.
2415
2416 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2417
2418         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
2419         an rtx.
2420         (emit_jump_insn_before_noloc): Likewise.
2421         (emit_call_insn_before_noloc): Likewise.
2422         (emit_label_before): Likewise.
2423         (emit_label_after): Likewise.
2424         (emit_insn_before_setloc): Likewise.
2425         (emit_jump_insn_before_setloc): Likewise.
2426         (emit_call_insn_before_setloc): Likewise.
2427         (emit_call_insn_before): Likewise.
2428         * rtl.h: Adjust.
2429
2430 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2431
2432         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
2433         rtx_insn *, eliminating a checked cast.
2434
2435 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2436
2437         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
2438         const_rtx to const rtx_insn *.
2439         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
2440         cast.
2441
2442 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2443
2444         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
2445         fixup_args_size_notes.
2446         * expr.c (fixup_args_size_notes): Strengthen first two params from
2447         rtx to rtx_insn *, eliminating a checked cast.
2448         * rtl.h (fixup_args_size_notes): Strengthen first two params from
2449         rtx to rtx_insn *.
2450
2451 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2452
2453         * haifa-sched.c (get_ready_element): Strengthen return type from
2454         rtx to rtx_insn *.
2455         * sched-int.h (get_ready_element): Likewise.
2456
2457 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
2458
2459         PR target/63165
2460         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
2461         indexed_or_indirect_operand instead of memory_operand.
2462         (floatsi<mode>2_lfiwzx_mem): Ditto.
2463
2464 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2465
2466         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
2467         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
2468         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
2469
2470 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2471
2472         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
2473         rtx.
2474         (get_last_nonnote_insn): Likewise.
2475         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
2476         * resource.c (find_basic_block): Likewise.
2477         * rtl.h: Adjust.
2478         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
2479         const_rtx.
2480
2481 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
2482
2483         * genattr.c (main): Within the prototype of insn_latency written
2484         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
2485         * genautomata.c (output_internal_maximal_insn_latency_func):
2486         Within the implementation of insn_latency written out to
2487         insn-automata.c, strengthen both params from rtx to rtx_insn *,
2488         eliminating a pair of checked casts.
2489
2490 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
2491
2492         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
2493         rtx_insn *.
2494
2495         * rtl.h (eh_returnjump_p): Likewise.
2496
2497 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
2498
2499         * Makefile.in (TAGS): Handle constructs in timevar.def.
2500
2501 2014-09-04  Guozhi Wei  <carrot@google.com>
2502
2503         PR target/62040
2504         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
2505         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
2506         it into two patterns.
2507         (move_lo_quad_internal_be_<mode>): Likewise.
2508
2509 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2510
2511         * doc/options.texi: Document that Var and Init are required if CPP
2512         is given.
2513         * optc-gen.awk: Require Var and Init if CPP is given.
2514         * common.opt (Wpedantic): Use Init.
2515
2516 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2517
2518         * config/rs6000/rs6000.c (special_handling_values): Add
2519         SH_EXTRACT.
2520         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
2521         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
2522         as swappable with special handling SH_EXTRACT.  Remove
2523         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
2524         optimization.
2525         (adjust_extract): New function.
2526         (handle_special_swappables): Add default to case statement; add
2527         case for SH_EXTRACT that calls adjust_extract.
2528         (dump_swap_insn_table): Handle SH_EXTRACT.
2529
2530 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2531
2532         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
2533         selection of 0th memory doubleword, regardless of endianness.
2534
2535 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2536
2537         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
2538
2539 2014-09-04  Alan Modra  <amodra@gmail.com>
2540
2541         PR debug/60655
2542         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
2543         can't be output.
2544
2545 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
2546
2547         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
2548         * targhooks.c (default_dwarf_frame_reg_mode): New function.
2549         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
2550         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
2551         * doc/tm.texi: Regenerate.
2552         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
2553         selection logic to default_dwarf_frame_reg_mode.
2554
2555 2014-09-03  Marek Polacek  <polacek@redhat.com>
2556
2557         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
2558         by -Wall.
2559
2560 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
2561
2562         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
2563         the automodified register.
2564
2565 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
2566
2567         * output.h (get_some_local_dynamic_name): Declare.
2568         * final.c (some_local_dynamic_name): New variable.
2569         (get_some_local_dynamic_name): New function.
2570         (final_end_function): Clear some_local_dynamic_name.
2571         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
2572         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2573         (print_operand): Report an error if '%&' is used inappropriately.
2574         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
2575         (get_some_local_dynamic_name_1): Delete.
2576         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
2577         (rs6000_get_some_local_dynamic_name): Delete.
2578         (rs6000_get_some_local_dynamic_name_1): Delete.
2579         (print_operand): Report an error if '%&' is used inappropriately.
2580         * config/s390/s390.c (machine_function): Remove some_ld_name.
2581         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2582         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
2583         * config/sparc/sparc.c: Include rtl-iter.h.
2584         (machine_function): Remove some_ld_name.
2585         (sparc_print_operand): Report an error if '%&' is used inappropriately.
2586         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2587
2588 2014-09-03  Richard Henderson  <rth@redhat.com>
2589
2590         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
2591         (aarch64_popwb_pair_reg): Remove.
2592         (aarch64_set_frame_expr): Remove.
2593         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
2594         the restore ops performed by the insns generated.
2595         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
2596         insn.  Perform the calls_eh_return addition later; do not attempt to
2597         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
2598         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2599         special markup at all.  Load cfun->machine->frame.hard_fp_offset
2600         into a local variable.
2601         (aarch64_frame_pointer_required): Don't check calls_alloca.
2602
2603 2014-09-03  Richard Biener  <rguenther@suse.de>
2604
2605         * opts.c (default_options_optimization): Adjust
2606         max-combine-insns to 2 for -Og.
2607
2608 2014-09-03  Martin Jambor  <mjambor@suse.cz>
2609
2610         PR ipa/62015
2611         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2612         pass-trough jump functions correctly.
2613
2614 2014-09-03  Martin Jambor  <mjambor@suse.cz>
2615
2616         PR ipa/61986
2617         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2618         created replacements in ascending order of offsets.
2619         (known_aggs_to_agg_replacement_list): Likewise.
2620
2621 2014-09-03  Martin Liska  <mliska@suse.cz>
2622
2623         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2624         is set to set uninitialized value for vnresult.
2625
2626 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2627
2628         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2629         for TARGET_MUST_PASS_IN_STACK.
2630
2631 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2632
2633         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2634         for TARGET_ARG_PARTIAL_BYTES.
2635
2636 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2637
2638         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2639         instructions for varargs implementation.
2640         (nds32_expand_epilogue): Emit stack adjustment instructions for
2641         varargs implementation.
2642
2643 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2644
2645         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2646         optimization detection.
2647
2648 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2649
2650         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2651         arguments.
2652         (nds32_function_arg_advance): Deal with nameless arguments.
2653         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2654         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2655         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2656
2657 2014-09-03  Richard Biener  <rguenther@suse.de>
2658
2659         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2660         (struct bb_bitmap_sets): Remove deferred member.
2661         (BB_DEFERRED): Remove.
2662         (defer_or_phi_translate_block): Remove.
2663         (compute_antic_aux): Remove deferring of blocks, assert
2664         proper iteration order.
2665         (compute_antic): Do not set BB_DEFERRED.
2666         (eliminate): Allocate el_avail of proper size initially.
2667
2668 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2669
2670         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2671         according to the value of crtl->args.pretend_args_size.
2672
2673 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2674
2675         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2676         varargs information.
2677
2678 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2679
2680         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2681         implementation for TARGET_SETUP_INCOMING_VARARGS.
2682         (nds32_strict_argument_naming): Refine comment.
2683         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2684         Define for future implementation.
2685
2686 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
2687
2688         * config/i386/adxintrin.h (_subborrow_u32): New.
2689         (_addcarry_u32): Ditto.
2690         (_subborrow_u64): Ditto.
2691         (_addcarry_u64): Ditto.
2692         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2693         IX86_BUILTIN_SBB64.
2694         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2695         __builtin_ia32_sbb_u64
2696
2697 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2698
2699         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2700         GPR-specific stuff.
2701         (nds32_function_arg_advance): Likewise.
2702         (nds32_init_cumulative_args): Likewise.
2703         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2704         (NDS32_FIRST_GPR_REGNUM): Define.
2705         (NDS32_LAST_GPR_REGNUM): Define.
2706         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2707         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2708         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2709         (machine_function): Use GRP-specific stuff.
2710
2711 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2712
2713         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2714         (nds32_expand_epilogue): Likewise.
2715         (nds32_expand_prologue_v3push): Likewise.
2716         (nds32_expand_epilogue_v3pop): Likewise.
2717
2718 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2719
2720         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2721         v3push/v3pop for variadic function.
2722         * config/nds32/nds32.md (prologue, epilogue): Likewise.
2723
2724 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2725
2726         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2727         Check rtx for varargs implementation.
2728         (nds32_output_stack_pop): Likewise.
2729         * config/nds32/nds32-protos.h: Have a rtx argument for
2730         nds32_output_stack_push and nds32_output_stack_pop.
2731         * config/nds32/nds32.md: Likewise.
2732
2733 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2734
2735         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2736         to check if FUNC is an interrupt service routine.
2737         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2738
2739 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2740
2741         * config/nds32/nds32.h (machine_function): Add some fields for variadic
2742         arguments implementation.
2743
2744 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2745
2746         * config/nds32/nds32-predicates.c
2747         (nds32_valid_stack_push_pop): Rename to ...
2748         (nds32_valid_stack_push_pop_p): ... this.
2749         * config/nds32/nds32-protos.h: Likewise.
2750         * config/nds32/predicates.md: Likewise.
2751
2752 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2753
2754         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2755         (nds32_emit_stack_v3push): ... this.
2756         (nds32_gen_stack_v3pop): Rename to ...
2757         (nds32_emit_stack_v3pop): ... this and consider CFA restore
2758         information.
2759
2760 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2761
2762         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2763         (nds32_emit_stack_push_multiple): ... this.
2764         (nds32_gen_stack_pop_multiple): Rename to ...
2765         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2766         information.
2767
2768 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2769
2770         PR target/61078
2771         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2772         and add a second splitter to handle the remaining cases.
2773
2774 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2775
2776         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2777
2778 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2779
2780         * cfgexpand.c (label_rtx_for_bb): Change type to
2781         hash_map<basic_block, rtx_code_label *> *.
2782         (expand_gimple_basic_block): Adjust.
2783         (pass_expand::execute): Likewise.
2784
2785 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2786
2787         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2788         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2789         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2790         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2791         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2792         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2793         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2794         of rtx.
2795
2796 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2797
2798         * alloc-pool.c: Include coretypes.h.
2799         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2800         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2801         hash_set instead of htab.
2802         * ggc-page.c (in_gc): New variable.
2803         (ggc_free): Do nothing if a collection is taking place.
2804         (ggc_collect): Set in_gc appropriately.
2805         * ggc.h (gt_ggc_mx(const char *)): New function.
2806         (gt_pch_nx(const char *)): Likewise.
2807         (gt_ggc_mx(int)): Likewise.
2808         (gt_pch_nx(int)): Likewise.
2809         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2810         (hash_map::hash_entry::pch_nx): Likewise.
2811         (hash_map::hash_entry::pch_nx_helper): Likewise.
2812 (hash_map::hash_map): Adjust.
2813 (hash_map::create_ggc): New function.
2814 (gt_ggc_mx): Likewise.
2815 (gt_pch_nx): Likewise.
2816         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2817 (default_hashset_traits::pch_nx): Likewise.
2818 (hash_set::hash_entry::ggc_mx): Likewise.
2819 (hash_set::hash_entry::pch_nx): Likewise.
2820 (hash_set::hash_entry::pch_nx_helper): Likewise.
2821 (hash_set::hash_set): Adjust.
2822 (hash_set::create_ggc): New function.
2823 (hash_set::elements): Likewise.
2824 (gt_ggc_mx): Likewise.
2825 (gt_pch_nx): Likewise.
2826         * hash-table.h (hash_table::hash_table): Adjust.
2827 (hash_table::m_ggc): New member.
2828         (hash_table::~hash_table): Adjust.
2829         (hash_table::expand): Likewise.
2830         (hash_table::empty): Likewise.
2831 (gt_ggc_mx): New function.
2832         (hashtab_entry_note_pointers): Likewise.
2833 (gt_pch_nx): Likewise.
2834
2835 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2836
2837         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
2838         built-in definition.
2839         (XVCVUXDDP_SCALE): Likewise.
2840         (XVCVDPSXDS_SCALE): Likewise.
2841         (XVCVDPUXDS_SCALE): Likewise.
2842         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
2843         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2844         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2845         VSX_BUILTIN_XVCVDPUXDS_SCALE.
2846         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2847         prototype.
2848         * config/rs6000/rs6000.c (real.h): New include.
2849         (rs6000_scale_v2df): New function.
2850         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2851         (UNSPEC_VSX_XVCVUXDDP): Likewise.
2852         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2853         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2854         (vsx_xvcvsxddp_scale): New define_expand.
2855         (vsx_xvcvsxddp): New define_insn.
2856         (vsx_xvcvuxddp_scale): New define_expand.
2857         (vsx_xvcvuxddp): New define_insn.
2858         (vsx_xvcvdpsxds_scale): New define_expand.
2859         (vsx_xvcvdpsxds): New define_insn.
2860         (vsx_xvcvdpuxds_scale): New define_expand.
2861         (vsx_xvcvdpuxds): New define_insn.
2862         * doc/extend.texi (vec_ctf): Add new prototypes.
2863         (vec_cts): Likewise.
2864         (vec_ctu): Likewise.
2865         (vec_splat): Likewise.
2866         (vec_div): Likewise.
2867         (vec_mul): Likewise.
2868
2869 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2870
2871         PR target/62275
2872         * config/arm/neon.md
2873         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2874         <v_cmp_result>): New pattern.
2875         * config/arm/iterators.md (NEON_VCVT): New int iterator.
2876         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2877         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2878         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2879         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2880         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2881
2882 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2883
2884         PR target/62275
2885         * config/arm/iterators.md (FIXUORS): New code iterator.
2886         (VCVT): New int iterator.
2887         (su_optab): New code attribute.
2888         (su): Likewise.
2889         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2890
2891 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2892
2893         * config/aarch64/predicates.md (aarch64_comparison_operation):
2894         New special predicate.
2895         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2896         aarch64_comparison_operation instead of matching an operator.
2897         Update operand numbers.
2898         (csinc3<mode>_insn): Likewise.
2899         (*csinv3<mode>_insn): Likewise.
2900         (*csneg3<mode>_insn): Likewise.
2901         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2902         * config/aarch64/aarch64.c (aarch64_get_condition_code):
2903         Return -1 instead of aborting on invalid condition codes.
2904         (aarch64_print_operand): Update aarch64_get_condition_code callsites
2905         to assert that the returned condition code is valid.
2906         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2907
2908 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
2909
2910         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2911         tree.def, and gimple.def
2912
2913 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
2914             Balaji V. Iyer  <balaji.v.iyer@intel.com>
2915             Igor Zamyatin  <igor.zamyatin@intel.com>
2916
2917         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2918         (__cilkrts_cilk_for_64): Likewise.
2919         * cilk-common.c (declare_cilk_for_builtin): New function.
2920         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2921         __cilkrts_cilk_for_64 bultins.
2922         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2923         CILK_TI_F_LOOP_64.
2924         (cilk_for_32_fndecl): New define.
2925         (cilk_for_64_fndecl): Likewise.
2926         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2927         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2928         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2929         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2930         GF_OMP_FOR_COMBINED_INTO.
2931         * gimplify.c (gimplify_scan_omp_clauses): Added
2932         OMP_CLAUSE__CILK_FOR_COUNT_ case.
2933         (gimplify_adjust_omp_clauses): Ditto.
2934         (gimplify_omp_for): Added CILK_FOR case.
2935         (gimplify_expr): Ditto.
2936         * omp-low.c: Include cilk.h.
2937         (extract_omp_for_data): Set appropriate kind for
2938         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2939         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2940         (create_omp_child_function_name): Added second argument to handle
2941         cilk_for case.
2942         (cilk_for_check_loop_diff_type): New function.
2943         (expand_cilk_for_call): Likewise.
2944         (expand_cilk_for): Likewise.
2945         (create_omp_child_function): Set cilk_for_count; handle the cases when
2946         it is true; call create_omp_child_function_name with second argument.
2947         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2948         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2949         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2950         * tree-nested.c (convert_nonlocal_omp_clauses): Added
2951         OMP_CLAUSE__CILK_FOR_COUNT_ case.
2952         (convert_local_omp_clauses): Ditto.
2953         * tree-pretty-print.c (dump_omp_clause): Added
2954         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2955         (dump_generic_node): Added CILK_FOR case.
2956         * tree.c (omp_clause_num_ops): New element
2957         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2958         (omp_clause_code_name): New element _Cilk_for_count_.
2959         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2960         * tree.def: Add tree code for CILK_FOR.
2961
2962 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2963
2964         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2965         (ppc403-compare): Add "exts with dot" case.
2966         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2967         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2968         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2969         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2970         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2971         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2972         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2973         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2974         cell-cmp-microcoded): Similarly.
2975         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2976         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2977         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2978         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2979         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2980         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2981         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2982         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2983         (power6-compare): Add "exts with dot" case.
2984         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2985         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2986         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2987
2988         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2989         if avoiding Cell microcode.
2990         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2991         (is_cracked_insn): Ditto.
2992         (insn_must_be_first_in_group): Ditto.
2993         * config/rs6000/rs6000.md (dot): Adjust comment.
2994         (cell_micro): Handle exts+dot.
2995         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2996         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2997         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2998         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2999         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
3000         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
3001         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
3002
3003 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3004
3005         * config/rs6000/rs6000.md (QHSI): Delete.
3006         (EXTQI, EXTHI, EXTSI): New mode iterators.
3007         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
3008         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
3009         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
3010         9 anonymous instructions, and 8 splitters): Delete.
3011         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
3012         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
3013         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
3014         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
3015         *zero_extendsi<mode>2_dot2): New.
3016
3017 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3018
3019         * config/rs6000/rs6000.md (any_extend): New code iterator.
3020         (u, su): New code attributes.
3021         (dmode, DMODE): New mode attributes.
3022         (<su>mul<mode>3_highpart): New.
3023         (*<su>mul<mode>3_highpart): New.
3024         (<su>mulsi3_highpart_le): New.
3025         (<su>muldi3_highpart_le): New.
3026         (<su>mulsi3_highpart_64): New.
3027         (<u>mul<mode><dmode>3): New.
3028         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
3029         splitters): Delete.
3030         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
3031         splitters): Delete.
3032
3033 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3034
3035         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
3036         *mulsi3_internal2, and two splitters): Delete.
3037         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
3038         Delete.
3039         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
3040
3041 2014-09-02  Richard Biener  <rguenther@suse.de>
3042
3043         PR tree-optimization/62695
3044         * tree-ssa-structalias.c (find_func_clobbers): Add missing
3045         vector truncate.
3046
3047 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
3048
3049         PR target/62312
3050         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
3051
3052 2014-09-01  Andi Kleen  <ak@linux.intel.com>
3053
3054         * file-find.c (add_prefix_begin): Add.
3055         (do_add_prefix): Rename from add_prefix with first argument.
3056         (add_prefix): Add new wrapper.
3057         * file-find.h (add_prefix_begin): Add.
3058         * gcc-ar.c (main): Support -B option.
3059
3060 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3061
3062         * genemit.c: Include dumpfile.h.
3063         (gen_split): Print name of splitter function to dump file.
3064
3065 2014-09-01  Richard Biener  <rguenther@suse.de>
3066
3067         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
3068         Use stack auto_vecs for constraint expressions.
3069         (find_func_aliases_for_call): Likewise.
3070         (find_func_aliases): Likewise.
3071         (find_func_clobbers): Likewise.
3072
3073 2014-09-01  Richard Biener  <rguenther@suse.de>
3074
3075         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
3076         operands vector in most cases.  Remove redundant code.
3077
3078 2014-09-01  Olivier Hainque  <hainque@adacore.com>
3079
3080         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
3081         $WIND_BASE instead of designating a harcoded arbitrary home dir.
3082         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
3083
3084 2014-09-01  Richard Biener  <rguenther@suse.de>
3085
3086         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
3087         copy_reference_ops_from_call, vn_nary_op_compute_hash,
3088         vn_reference_compute_hash, vn_reference_insert): Remove.
3089         (vn_reference_lookup_call): New function.
3090         * tree-ssa-sccvn.c (vn_reference_compute_hash,
3091         copy_reference_ops_from_ref, copy_reference_ops_from_call,
3092         vn_reference_insert, vn_nary_op_compute_hash): Make static.
3093         (create_reference_ops_from_call): Remove.
3094         (vn_reference_lookup_3): Properly update shared_lookup_references.
3095         (vn_reference_lookup_pieces): Assert that we updated
3096         shared_lookup_references properly.
3097         (vn_reference_lookup): Likewise.
3098         (vn_reference_lookup_call): New function.
3099         (visit_reference_op_call): Use it.  Avoid re-building the
3100         reference ops.
3101         (visit_reference_op_load): Remove redundant lookup.
3102         (visit_reference_op_store): Perform special tail-merging work
3103         only when possibly doing tail-merging.
3104         (visit_use): Likewise.
3105         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
3106
3107 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
3108
3109         PR target/62025
3110         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
3111         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
3112         (find_inc): Revert 2014-08-13 change.
3113
3114 2014-09-01  Marek Polacek  <polacek@redhat.com>
3115
3116         PR middle-end/61903
3117         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
3118         Change the type of V to unsigned HOST_WIDE_INT.
3119
3120 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3121
3122         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
3123         the size of byte markers.
3124         (do_shift_rotate): Fix confusion between host, target and marker byte
3125         size.
3126         (verify_symbolic_number_p): Likewise.
3127         (find_bswap_or_nop_1): Likewise.
3128         (find_bswap_or_nop): Likewise.
3129
3130 2014-09-01  Olivier Hainque  <hainque@adacore.com>
3131
3132         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
3133         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
3134
3135 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
3136
3137         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
3138         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
3139         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
3140
3141 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
3142
3143         PR sanitizer/61897
3144         PR sanitizer/62140
3145         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
3146         (build_check_stmt): Likewise.
3147         (instrument_strlen_call): Likewise.
3148         (asan_expand_check_ifn): Likewise and fix types.
3149         (maybe_cast_to_ptrmode): New function.
3150
3151 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3152
3153         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
3154
3155 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
3156
3157         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
3158
3159 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
3160
3161         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
3162         prefix to function labels when generating fast indirect calls.
3163
3164 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
3165
3166         PR bootstrap/62304
3167
3168         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
3169         param back from rtx_insn * to rtx.  Rename param from "label" to
3170         "label_or_return", reintroducing "label" as an rtx_insn * after
3171         we've ensured it's not a RETURN.
3172         (first_active_target_insn): Likewise for return type and param;
3173         add a checked cast to rtx_insn * once we've ensured "insn" is not
3174         a RETURN.
3175         (steal_delay_list_from_target): Convert param "pnew_thread" back
3176         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
3177         with JUMP_LABEL.
3178         (own_thread_p): Convert param "thread" back from an rtx_insn * to
3179         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
3180         cast once we've established we're not dealing with a RETURN,
3181         renaming subsequent uses of "thread" to "thread_insn".
3182         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
3183         to JUMP_LABEL.
3184         (follow_jumps): Convert return type and param "label" from
3185         rtx_insn * back to rtx.  Move initialization of "value" to after
3186         the handling for ANY_RETURN_P, adding a checked cast there to
3187         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
3188         rename to "this_label_or_return", reintroducing "this_label" as
3189         an rtx_insn * once we've handled the case where it could be an
3190         ANY_RETURN_P.
3191         (fill_slots_from_thread): Rename param "thread" to
3192         "thread_or_return", converting from an rtx_insn * back to an rtx.
3193         Reintroduce name "thread" as an rtx_insn * local with a checked
3194         cast once we've handled the case of it being an ANY_RETURN_P.
3195         Convert local "new_thread" from an rtx_insn * back to an rtx.
3196         Add a checked cast when assigning to "trial" from "new_thread".
3197         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
3198         checked cast to rtx_insn * from "new_thread" when invoking
3199         get_label_before.
3200         (fill_eager_delay_slots): Convert locals "target_label",
3201         "insn_at_target" from rtx_insn * back to rtx.
3202         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
3203         (relax_delay_slots): Convert locals "trial", "target_label" from
3204         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
3205         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
3206         invoking update_block.
3207         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
3208         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
3209
3210         * resource.h (mark_target_live_regs): Undo erroneous conversion
3211         of second param of r214693, converting it back from rtx_insn * to
3212         rtx, since it could be a RETURN.
3213
3214         * resource.c (find_dead_or_set_registers): Similarly, convert
3215         param "jump_target" back from an rtx_insn ** to an rtx *, as we
3216         could be writing back a RETURN.  Rename local rtx_insn * "next" to
3217         "next_insn", and introduce "lab_or_return" as a local rtx,
3218         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
3219         (mark_target_live_regs): Undo erroneous conversion
3220         of second param of r214693, converting it back from rtx_insn * to
3221         rtx, since it could be a RETURN.  Rename it from "target" to
3222         "target_maybe_return", reintroducing the name "target" as a local
3223         rtx_insn * with a checked cast, after we've handled the case of
3224         ANY_RETURN_P.
3225
3226 2014-08-29  DJ Delorie  <dj@redhat.com>
3227
3228         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
3229         pointer size up to a power of two.
3230         * defaults.h (DWARF2_ADDR_SIZE): Round up.
3231         (POINTER_SIZE_UNITS): New, rounded up value.
3232         * dwarf2asm.c (size_of_encoded_value): Use it.
3233         (dw2_output_indirect_constant_1): Likewise.
3234         * expmed.c (init_expmed_one_conv): We now know the sizes of
3235         partial int modes.
3236         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
3237         * optabs.c (expand_float): Use precision, not size.
3238         (expand_fix): Likewise.
3239         * simplify-rtx (simplify_unary_operation_1): Likewise.
3240         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3241         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
3242         (default_assemble_integer) Likewise.
3243         (dump_tm_clone_pairs): Likewise.
3244         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
3245         * var-tracking.c (adjust_mems): Allow partial-int modes also.
3246         (prepare_call_arguments): Likewise.
3247         * stor-layout.c (finalize_type_size): Preserve precision.
3248         (layout_type): Use precision, not size.
3249
3250         * expr.c (convert_move): If the target has an explicit converter,
3251         use it.
3252
3253 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
3254
3255         * gdbinit.in: Skip various inline functions in rtl.h when
3256         stepping.
3257
3258 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
3259
3260         PR bootstrap/62301
3261         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
3262
3263 2014-08-29  Richard Biener  <rguenther@suse.de>
3264
3265         PR tree-optimization/62291
3266         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
3267         exactly the vector size needed and use quick_push.
3268         (phi_translate_1): Adjust comment.
3269         (valid_in_sets): Remove block argument and remove pointless
3270         checking of NAMEs.
3271         (dependent_clean): Adjust for removal of block argument.
3272         (clean): Likewise.
3273         (compute_antic_aux): Likewise.
3274         (compute_partial_antic_aux): Likewise.
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/sse.md
3286         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
3287         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
3288         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
3289         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
3290
3291 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3292             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3293             Anna Tikhonova  <anna.tikhonova@intel.com>
3294             Ilya Tocar  <ilya.tocar@intel.com>
3295             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3296             Ilya Verbin  <ilya.verbin@intel.com>
3297             Kirill Yukhin  <kirill.yukhin@intel.com>
3298             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3299
3300         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
3301         * config/i386/sse.md
3302         (define_mode_iterator VI4_128_8_256): New.
3303         (define_mode_iterator VI2_128_4_256): Ditto.
3304         (define_mode_iterator PMOV_DST_MODE): Rename into
3305         (define_mode_iterator PMOV_DST_MODE_1): this.
3306         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
3307         Use PMOV_DST_MODE_1 mode iterator.
3308         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3309         Ditto.
3310         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3311         Ditto.
3312         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
3313         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
3314         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
3315         (define_mode_iterator PMOV_DST_MODE_2): New.
3316         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
3317         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
3318         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
3319         Ditto.
3320         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
3321         (define_mode_attr pmov_dst_3): Ditto.
3322         (define_mode_attr pmov_dst_zeroed_3): Ditto.
3323         (define_mode_attr pmov_suff_3): Ditto.
3324         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
3325         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
3326         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
3327         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
3328         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
3329         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
3330         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
3331         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
3332         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
3333         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
3334         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
3335         (define_mode_attr pmov_dst_4): Ditto.
3336         (define_mode_attr pmov_dst_zeroed_4): Ditto.
3337         (define_mode_attr pmov_suff_4): Ditto.
3338         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
3339         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
3340         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
3341         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
3342         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
3343         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
3344         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
3345         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
3346         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
3347         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
3348         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
3349
3350 2014-08-29  Richard Biener  <rguenther@suse.de>
3351
3352         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
3353         NON_LVALUE_EXPR in gimple.
3354
3355 2014-08-29  Richard Biener  <rguenther@suse.de>
3356
3357         PR middle-end/62292
3358         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
3359         from previous refactoring.
3360         (gimple_fold_builtin_strncpy): Likewise.
3361
3362 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
3363
3364         PR bootstrap/62300
3365         * function.c (assign_parm_setup_reg): Remove erroneous checked
3366         cast to rtx_insn * on result of gen_extend_insn in favor of
3367         introducing a new local rtx "pat".
3368
3369 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3370
3371         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
3372         to silence warning.
3373         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
3374
3375 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3376
3377         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
3378         (next_insn): Likewise.
3379         * emit-rtl.c (next_insn): Likewise.
3380         (previous_insn): Likewise.
3381         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
3382         "insn" and "next" from rtx to rtx_insn *.
3383         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
3384         "insn", "insn1", "vliw_start",  "prologue_end_note",
3385         "last_insn_in_packet".
3386
3387 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3388
3389         * shrink-wrap.h (active_insn_between): Strengthen both params from
3390         rtx to rtx_insn *.
3391         * function.c (active_insn_between): Likewise.
3392
3393 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3394
3395         * genattr.c (main): When writing out insn-attr.h, strengthen param
3396         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
3397         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
3398         writing out the definition of dfa_clear_single_insn_cache to the
3399         generated insn-automata.c
3400
3401 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3402
3403         * resource.h (clear_hashed_info_for_insn): Strengthen param from
3404         rtx to rtx_insn *.
3405         (incr_ticks_for_insn): Likewise.
3406         (init_resource_info): Likewise.
3407
3408         * resource.c (init_resource_info): Likewise.
3409         (clear_hashed_info_for_insn): Likewise.
3410         (incr_ticks_for_insn): Likewise.
3411
3412         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
3413         rtx to rtx_insn *.
3414         (steal_delay_list_from_target): Use methods of "seq".
3415         (try_merge_delay_insns): Use methods of "merged_insns".
3416         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
3417         (reorg_redirect_jump): Likewise for param "jump".
3418
3419 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3420
3421         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
3422         rtx to rtx_insn *.
3423         * config/s390/s390.c (s390_split_branches): Eliminate top-level
3424         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
3425         "set_insn".
3426         (s390_mainpool_finish): In three places, split out a local rtx
3427         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
3428         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
3429          and split another local rtx "insn" out into rtx "pat" and
3430         rtx_insn * "insn".
3431         * config/sh/sh.c (output_branchy_insn): Rather than working
3432         directly on operands[9], introduce local rtx_code_label *
3433         variables named "lab" in two places, working on them, and then
3434         assigning them to operands[9], so that the intervening operations
3435         are known by the type system to be on insns.
3436
3437 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3438
3439         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
3440         const rtx_insn *.
3441
3442         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
3443         in invocation of INSN_HAS_LOCATION.
3444
3445 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3446
3447         * config/rs6000/altivec.h (vec_xl): New #define.
3448         (vec_xst): Likewise.
3449         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
3450         (XXSPLTD_V2DI): Likewise.
3451         (DIV_V2DI): Likewise.
3452         (UDIV_V2DI): Likewise.
3453         (MUL_V2DI): Likewise.
3454         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3455         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
3456         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
3457         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
3458         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
3459         (UNSPEC_VSX_DIVSD): Likewise.
3460         (UNSPEC_VSX_DIVUD): Likewise.
3461         (UNSPEC_VSX_MULSD): Likewise.
3462         (vsx_mul_v2di): New insn-and-split.
3463         (vsx_div_v2di): Likewise.
3464         (vsx_udiv_v2di): Likewise.
3465         (vsx_xxspltd_<mode>): New insn.
3466
3467 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3468
3469         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
3470         NEXT_INSN.
3471         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
3472         (NEXT_INSN): Likewise.
3473         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
3474         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
3475         const rtx_insn *.
3476         (no_labels_between_p): Likewise for both params.
3477
3478         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
3479         cast when using NEXT_INSN on operands[2].
3480         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
3481         "insn" from rtx to rtx_insn *, adding a checked cast.
3482         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
3483         rtx_insn *.
3484         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
3485         for third param.
3486         (arc_text_label): Likewise for param "insn".
3487         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
3488         "insn".
3489         (arc_ccfsm_record_condition): Likewise for param "jump".
3490         (arc_text_label): Likewise for local "label".
3491         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
3492         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
3493         a method for typesafety.  Add a checked cast.
3494         * config/arc/constraints.md (Clb): Add a checked cast when getting
3495         the CODE_LABEL from a LABEL_REF.
3496         * config/arm/arm.c (require_pic_register): Strengthen locals
3497         "seq", "insn" from rtx to rtx_insn *.
3498         (create_fix_barrier): Likewise for locals "selected", "next".
3499         (thumb1_reorg): Likewise for locals "prev", "insn".
3500         (arm_expand_prologue): Likewise for local "last".
3501         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
3502         operands[0].
3503         (thumb2_output_casesi): Likewise for operands[2].
3504         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
3505         strengthen local "insn" from rtx to rtx_insn *.
3506         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
3507         type and param "insn".
3508         (find_prev_insn_start): Likewise.
3509         (hwloop_optimize): Likewise for locals "insn", "last_insn",
3510         "prev".
3511         (gen_one_bundle): Likewise for loal "t".
3512         (find_load): Likewise for param "insn".
3513         (workaround_speculation): Likewise for locals "insn", "next",
3514         "target", "next_tgt".
3515         * config/c6x/c6x.c (assign_reservations): Likewise for both params
3516         and for locals "insn", "within", "last".
3517         (count_unit_reqs): Likewise for params "head", "tail" and local
3518         "insn".
3519         (try_rename_operands): Likewise for params "head", "tail".
3520         (reshuffle_units): Likewise for locals "head", "tail", "insn".
3521         (struct c6x_sched_context): Likewise for fields
3522         "last_scheduled_insn", "last_scheduled_iter0".
3523         (init_sched_state): Replace NULL_RTX with NULL.
3524         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
3525         to rtx_insn *.
3526         (undo_split_delayed_nonbranch): Likewise for param and for local
3527         "prev".
3528         (conditionalize_after_sched): Likewise for local "insn".
3529         (bb_earliest_end_cycle): Likewise.
3530         (filter_insns_above): Likewise for locals "insn", "next".
3531         (hwloop_optimize): Remove redundant checked cast.
3532         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
3533         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
3534         NULL_RTX with NULL.
3535         (cris_simple_epilogue): Likewise.
3536         (cris_expand_prologue): Likewise.
3537         (cris_expand_epilogue): Likewise.
3538         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
3539         local "insn" from rtx to rtx_insn *.
3540         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
3541         (struct frv_packet_group): Likewise for the elements within array
3542         fields "insns", "sorted", and for field "nop".
3543         (frv_packet): Likewise for the elements within array field
3544         "insns".
3545         (frv_add_insn_to_packet): Likewise for param "insn".
3546         (frv_insert_nop_in_packet): Likewise for param "insn" and local
3547         "last".
3548         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
3549         (frv_sort_insn_group_1): Likewise for local "insn".
3550         (frv_optimize_membar_local): Likewise.
3551         (frv_align_label): Likewise for locals "x", "last", "barrier",
3552         "label".
3553         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
3554         local.
3555         (ia64_sched_init): Likewise for local "insn".
3556         (scheduled_good_insn): Likewise for param "last".
3557         (struct _ia64_sched_context): Likewise for field
3558         "last_scheduled_insn".
3559         (ia64_init_sched_context): Replace NULL_RTX with NULL.
3560         (struct bundle_state): Likewise for field "insn".
3561         (issue_nops_and_insn): Likewise for param "insn".
3562         (get_next_important_insn): Likewise for return type and both
3563         params.
3564         (ia64_add_bundle_selector_before): Likewise for param "insn".
3565         (bundling): Likewise for params "prev_head_insn", "tail" and
3566         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
3567         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
3568         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
3569         Strengthen final param from rtx to rtx_insn *.
3570         (iq2000_move_1word): Likewise for second param.
3571         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
3572         param "cur_insn" and local "next_insn".
3573         (iq2000_move_1word): Likewise for param "insn".
3574         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
3575         casts when using NEXT_INSN on operands[1].
3576         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
3577         "insn" from rtx to rtx_insn *.
3578         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
3579         "x", introducing local rtx_insn * "insn" for when working with the
3580         CODE_LABEL of the LABEL_REF.
3581         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
3582         rtx_insn *.
3583         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
3584         param.
3585         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
3586         type.
3587         (conditionalize_block): Likewise for return type and param.
3588         (mcore_is_dead): Likewise for param "first" and local "insn".
3589         (emit_new_cond_insn): Likewise for return type.
3590         (conditionalize_block): Likewise for return type, param, and
3591         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
3592         "newinsn".
3593         (conditionalize_optimization): Likewise for local "insn".
3594         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
3595         using NEXT_INSN.
3596         * config/microblaze/microblaze.md: Add checked casts when using
3597         NEXT_INSN.
3598         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3599         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3600         and rtx_insn * "insn".
3601         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3602         checked cast when using NEXT_INSN on operands[2].
3603         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3604         local "insn" from rtx to rtx_insn *.
3605         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3606         Likewise.
3607         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3608         Add a checked cast when using NEXT_INSN on operands[1].
3609         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3610         rtx to rtx_insn *.
3611         (pa_output_cbranch): Likewise for final param.
3612         (pa_output_lbranch): Likewise for second param.
3613         (pa_output_bb): Likewise for third param.
3614         (pa_output_bvb): Likewise.
3615         (pa_output_dbra): Likewise for second param.
3616         (pa_output_movb): Likewise.
3617         (pa_output_parallel_movb): Likewise.
3618         (pa_output_parallel_addb): Likewise.
3619         (pa_output_millicode_call): Likewise for first param.
3620         (pa_output_mul_insn): Likewise for second param.
3621         (pa_output_div_insn): Likewise for third param.
3622         (pa_output_mod_insn): Likewise for second param.
3623         (pa_jump_in_call_delay): Likewise for param.
3624         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3625         (pa_output_div_insn): Likewise.
3626         (pa_output_mod_insn): Likewise.
3627         (pa_output_cbranch): Likewise.
3628         (pa_output_lbranch): Likewise.
3629         (pa_output_bb): Likewise.
3630         (pa_output_bvb): Likewise.
3631         (pa_output_dbra): Likewise.
3632         (pa_output_movb): Likewise.
3633         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3634         to simplify and for typesafety.
3635         (pa_output_call): Use method of rtx_sequence *.
3636         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3637         (pa_jump_in_call_delay): Likewise.
3638         (pa_output_parallel_movb): Likewise.
3639         (pa_output_parallel_addb): Likewise.
3640         (pa_following_call): Likewise.
3641         (pa_combine_instructions): Likewise for locals "anchor",
3642         "floater".
3643         (pa_can_combine_p): Likewise for params "anchor", "floater" and
3644         locals "start", "end".
3645         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3646         param "insn" and local "local_insn".
3647         (picochip_final_prescan_insn): Likewise for local "local_insn".
3648         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3649         local "insn".
3650         (uses_TOC): Likewise.
3651         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3652         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3653         splitting out to more tightly-scoped locals, 3 as rtx and one as
3654         rtx_insn *.
3655         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3656         to rtx_insn *.
3657         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3658         where needed.
3659         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3660         to rtx_insn *.
3661         (fixup_addr_diff_vecs): Likewise.
3662         (reg_unused_after): Likewise for param 2.
3663         (sh_can_redirect_branch): Likewise for both params.
3664         (check_use_sfunc_addr): Likewise for param 1.
3665         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3666         (find_barrier): Likewise for local "last_got".
3667         (gen_block_redirect): Likewise for return type, param "jump" and
3668         locals "prev", "scan", "next", "insn".
3669         (struct far_branch): Likewise for fields "near_label",
3670         "insert_place", "far_label".
3671         (gen_far_branch): Likewise for local "jump".
3672         (fixup_addr_diff_vecs): Likewise for param "first" and locals
3673         "insn", "prev".
3674         (barrier_align): Likewise for param and for locals "prev", "x".
3675         Introduce local rtx_sequence * "prev_seq" and use insn method for
3676         typesafety and clarity.
3677         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3678         (get_dest_uid): Likewise for local "dest".
3679         (split_branches): Likewise for locals "next", "beyond", "label",
3680         "block", "far_label".  Add checked casts when assigning to
3681         bp->far_label and "far_label".
3682         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3683         (sequence_insn_p): Likewise.
3684         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
3685         more loop-scoped rtx "insn" when walking LABEL_REFS.
3686         (sh_can_redirect_branch): Strengthen both params from rtx to
3687         rtx_insn *.
3688         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
3689         new local rtx_sequence * "seq" via a dyn_cast, and use a method
3690         for clarity and typesafety.
3691         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3692         "insn" from rtx to rtx_insn *.
3693         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3694         when using NEXT_INSN on the CODE_LABEL in operands[2].
3695         (define_insn "casesi_worker_2"): Likewise.
3696         (define_insn "casesi_shift_media"): Likewise.
3697         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3698         operands[3].
3699         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3700         Strengthen field "insn" from rtx to rtx_insn *.
3701         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3702         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3703         param "start_insn" and local "start_insn".
3704         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3705         field "insn".
3706         (find_set_of_reg_bb): Likewise for param "insn".
3707         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3708         (trace_reg_uses): Likewise for param "start_insn".
3709         (sh_treg_combine::cbranch_trace): Likewise for field
3710         "cbranch_insn".
3711         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3712         param "insn".
3713         (sh_treg_combine::record_set_of_reg): Likewise for param
3714         "start_insn" and local "i".
3715         (sh_treg_combine::can_remove_cstore): Likewise for local
3716         "prev_insn".
3717         (sh_treg_combine::try_optimize_cbranch): Likewise for param
3718         "insn".
3719         (sh_treg_combine::execute): Likewise for local "i".
3720         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3721         param.
3722         (sparc_check_64): Likewise for second param.
3723         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3724         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
3725         dyn_cast, using its insn method for typesafety and clarity.
3726         (empty_delay_slot): Strengthen param "insn" from rtx to
3727         rtx_insn *.
3728         (set_extends): Likewise.
3729         (sparc_check_64): Likewise.
3730         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3731         for locals "seq", "last_insn".
3732         (combine_bnp): Likewise for param "insn".
3733         (xstormy16_reorg): Likewise for local "insn".
3734         * config/v850/v850.c (substitute_ep_register): Likewise for params
3735         "first_insn", "last_insn" and local "insn".
3736         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3737         elements of "regs" array, and local "insn".
3738         * except.c (emit_note_eh_region_end): Likewise for param "insn".
3739         * final.c (final_sequence): Strengthen this global from rtx to
3740         rtx_sequence *.
3741         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3742         rtx_insn *.
3743         (final_scan_insn): Update assignment to "final_sequence" to be
3744         from "seq", the cast version of "body", for type-safety.
3745         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3746         "insns" from rtx to rtx_insn *.
3747         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3748         * genattr.c (main): When writing out generated insn-attr.h,
3749         strengthen params 1 and 3 of eligible_for_delay,
3750         eligible_for_annul_true, eligible_for_annul_false from rtx to
3751         rtx_insn *.
3752         * genattrtab.c (write_eligible_delay): Likewise when writing out
3753         generated insn-attrtab.c; also local "insn" the generated
3754         functions.
3755         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3756         to rtx_insn *.
3757         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3758         "start_label" from rtx to rtx_insn *.
3759         * ira.c (decrease_live_ranges_number): Likewise for local "p".
3760         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3761         "insns" and local "insn".
3762         (validate_equiv_mem): Likewise for param "start" and local "insn".
3763         (memref_used_between_p): Likewise for params "start", "end" and
3764         local "insn".
3765         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3766         final param.
3767         * loop-doloop.c (doloop_optimize): Within region guarded by
3768         INSN_P (doloop_pat), introduce a new local rtx_insn *
3769         "doloop_insn" via a checked cast, and use it for typesafety,
3770         eventually writing the value back into doloop_pat.
3771         * output.h (final_sequence): Strengthen this global from rtx to
3772         rtx_sequence *.
3773         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3774         reintroducing "insn" as an rtx_insn * via a checked cast.
3775         Strengthen param "attempt" and local "new_insn"from rtx to
3776         rtx_insn *.
3777         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3778         to rtx_insn *.
3779         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3780         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3781         "p" in favor of more tightly-scoped replacements, sometimes rtx
3782         and sometimes rtx_insn *, as appropriate.
3783         (delete_output_reload): Eliminate top-level rtx "i1", splitting
3784         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3785         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
3786         local "trial" from rtx to rtx_insn *.
3787         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3788         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
3789         rtx_sequence * and use methods for clarity and typesafety.
3790         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3791         rtx to rtx_insn *.  Strenghten local "li" from rtx to
3792         rtx_insn_list * and use its methods for clarity and typesafety.
3793         (steal_delay_list_from_target): Strengthen param "insn" from rtx
3794         to rtx_insn *.
3795         (steal_delay_list_from_fallthrough): Likewise.
3796         (try_merge_delay_insns): Likewise for param "thread" and locals
3797         "trial", "next_trial", "delay_insn".
3798         (redundant_insn): Likewise for param "target" and local "trial".
3799         (own_thread_p): Likewise for param "thread" and locals
3800         "active_insn", "insn".
3801         (get_label_before): Likewise for param "insn".
3802         (fill_simple_delay_slots): Likewise for local "new_label"; use
3803         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3804         (label_before_next_insn): Strengthen return type and local "insn"
3805         from rtx to rtx_insn *.
3806         (relax_delay_slots): Likewise for locals "other", "tmp".
3807         (make_return_insns): Likewise for param "first" and locals "insn",
3808         "jump_insn", "prev".  Move declaration of "pat" to its assignment
3809         and strengthen from rtx to rtx_sequence *.  Use its methods for
3810         clarity and typesafety.
3811         * rtlanal.c (no_labels_between_p): Strengthen params from
3812         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
3813         rtx_insn *.
3814         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3815         from const_rtx to const rtx_insn *.
3816         (reg_set_between_p): Rename param "from_insn" to
3817         "uncast_from_insn", and reintroduce "from_insn" as a
3818         const rtx_insn * via a checked cast.
3819         (modified_between_p): Likewise for param "start" as "uncast_start".
3820         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3821         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3822         "tmp", head" from rtx to rtx_insn *.
3823         (recompute_rev_top_order): Likewise for local "insn".
3824         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3825         * store-motion.c (build_store_vectors): Likewise for local "insn".
3826         Strengthen local "st" from rtx to rtx_insn_list * and use methods
3827         for clarity and typesafety.
3828         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3829         rtx to rtx_insn *.
3830         (computation_cost): Likewise for local "seq".
3831         (get_address_cost): Likewise.
3832
3833 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3834
3835         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3836         const rtx_insn *.
3837         (label_is_jump_target_p): Likewise for second param.
3838
3839         * rtlanal.c (tablejump_p): Likewise for param "insn".
3840         (label_is_jump_target_p): Likewise for param "jump_insn".
3841
3842 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3843
3844         * rtl.h (find_first_parameter_load): Strengthen return type and
3845         both params from rtx to rtx_insn *.
3846         * rtlanal.c (find_first_parameter_load): Strengthen return type,
3847         both params and locals "before", "first_set" from rtx to
3848         rtx_insn *.  Remove now-redundant cast.
3849         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3850
3851 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3852
3853         * rtl.h (find_last_value): Delete.
3854         * rtlanal.c (find_last_value): Delete.
3855
3856 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3857
3858         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3859         from rtx to rtx_insn *.
3860         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3861         rtx "note" with new local rtx_insn * "new_head" when calculating
3862         head insn of new basic block.
3863         * combine.c (combine_split_insns): Strengthen return type and local
3864         "ret" from rtx to rtx_insn *.
3865         (likely_spilled_retval_p): Likewise for locals "use" and "p".
3866         (try_combine): Eliminate local "m_split", splitting into new
3867         locals "m_split_insn" and "m_split_pat".
3868         (find_split_point): Strengthen local "seq" from rtx into
3869         rtx_insn *.
3870         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3871         locals "label", "branch".
3872         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3873         for local "insn".
3874         (define_expand "umulsi3_highpart"): Likewise for local "insn".
3875         * dse.c (note_add_store_info): Likewise for fields "first",
3876         "current".
3877         (note_add_store): Likewise for local "insn".
3878         (emit_inc_dec_insn_before): Likewise for locals "insn",
3879         "new_insn", "cur".
3880         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3881         (replace_read): Likewise for locals "insns", "this_insn".
3882         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3883         (notice_eh_throw): Likewise for param "insn".
3884         (before_next_cfi_note): Likewise for return type, param, and local
3885         "prev".
3886         (connect_traces): Likewise for local "note".
3887         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3888         (verify_rtl_sharing): Likewise.
3889         (unshare_all_rtl_in_chain): Likewise for param "insn".
3890         (get_first_nonnote_insn): Likewise for local "insn".
3891         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
3892         "seq" and use its methods to clarify things.
3893         (next_insn): Strengthen return type from rtx to rtx_insn *.
3894         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3895         local rtx_insn * using a checked cast, dropping a checked cast
3896         made redundant by this change.  Use a cast to and method of
3897         rtx_sequence to clarify the code.
3898         (previous_insn): Rename param "insn" to "uncast_insn" and
3899         reintroduce "insn" as a local rtx_insn * using a checked cast,
3900         dropping a checked cast made redundant by this change.  Use a cast
3901         to and method of rtx_sequence to clarify the code.
3902         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3903         reintroduce "insn" as a local rtx_insn * using a checked cast,
3904         dropping a checked cast made redundant by this change.
3905         (next_nonnote_insn_bb): Likewise.
3906         (prev_nonnote_insn): Likewise.
3907         (prev_nonnote_insn_bb): Likewise.
3908         (next_nondebug_insn): Likewise.
3909         (prev_nondebug_insn): Likewise.
3910         (next_nonnote_nondebug_insn): Likewise.
3911         (prev_nonnote_nondebug_insn): Likewise.
3912         (next_real_insn): Likewise.
3913         (prev_real_insn): Likewise.
3914         (next_active_insn): Likewise.
3915         (prev_active_insn): Likewise.
3916         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
3917         clarity.
3918         (prev_cc0_setter): Likewise.
3919         (try_split): Rename param "trial" to "uncast_trial" and
3920         reintroduce "insn" as a local rtx_insn * using a checked cast,
3921         dropping checked casts made redundant by this change.
3922         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3923         rtx to rtx_insn *.
3924         (remove_insn): Rename param "insn" to "uncast_insn" and
3925         reintroduce "insn" as a local rtx_insn * using a checked cast.
3926         (emit_pattern_after_setloc): Likewise for param "after", as
3927         "uncast_after".
3928         (emit_pattern_after): Likewise.  Strengthen local "prev" from
3929         rtx to rtx_insn *.
3930         (emit_pattern_before_setloc): Rename param "before" to
3931         "uncast_before" and reintroduce "before" as a local rtx_insn *
3932         using a checked cast.  Strengthen locals "first", "last" from
3933         rtx to rtx_insn *.
3934         (emit_pattern_before): Likewise rename/cast param "before" to
3935         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3936         * except.c (copy_reg_eh_region_note_forward): Strengthen param
3937         "first" and local "insn" from rtx to rtx_insn *.
3938         (copy_reg_eh_region_note_backward): Likewise for param "last"
3939         and local "insn".
3940         * expr.c (fixup_args_size_notes): Rename param "last" to
3941         "uncast_last" and reintroduce "last" as a local rtx_insn *
3942         using a checked cast.  Strengthen local "insn" from rtx to
3943         rtx_insn *.
3944         * function.c (set_insn_locations): Strengthen param "insn" from
3945         rtx to rtx_insn *.
3946         (record_insns): Likewise for param "insns" and local "tmp".
3947         (active_insn_between): Rename param "tail" to
3948         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3949         using a checked cast.
3950         (thread_prologue_and_epilogue_insns): Split out top-level local
3951         rtx "seq" into three different rtx_insn * locals.  Strengthen
3952         local "prologue_seq" from rtx to rtx_insn *.
3953         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3954         from rtx to rtx_insn *.
3955         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3956         (priority): Likewise for locals "prev_first", "twin".
3957         (setup_insn_max_reg_pressure): Likewise for param "after".
3958         (sched_setup_bb_reg_pressure_info): Likewise.
3959         (no_real_insns_p): Strengthen params from const_rtx to
3960         const rtx_insn *.
3961         (schedule_block): Strengthen local "next_tail" from rtx to
3962         rtx_insn *.
3963         * ifcvt.c (find_active_insn_before): Strengthen return type and
3964         param "insn" from rtx to rtx_insn *.
3965         (find_active_insn_after): Likewise.
3966         (cond_exec_process_insns): Likewise for param "start" and local "insn".
3967         (cond_exec_process_if_block): Likewise for locals "then_start",
3968         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3969         (noce_process_if_block): Likewise for local "jump".
3970         (merge_if_block): Likewise for two locals named "end".
3971         (cond_exec_find_if_block): Likewise for local "last_insn".
3972         * jump.c (delete_related_insns): Rename param "insn" to
3973         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3974         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
3975         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3976         NULL.
3977         (split_reg): Likewise.
3978         * lra.c (lra_process_new_insns): Likewise.
3979         * modulo-sched.c (permute_partial_schedule): Strengthen param
3980         "last" from rtx to rtx_insn *.
3981         * optabs.c (add_equal_note): Likewise for param "insns" and local
3982         "last_insn".
3983         (expand_binop_directly): Add checked casts to rtx_insn * within
3984         NEXT_INSN (pat) uses.
3985         (expand_unop_direct): Likewise.
3986         (maybe_emit_unop_insn): Likewise.
3987         * recog.c (peep2_attempt): Strengthen locals "last",
3988         "before_try", "x" from rtx to rtx_insn *.
3989         * reorg.c (optimize_skip): Strengthen return type and local
3990         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
3991         and locals "trial", "next_trial" from rtx to rtx_insn *.
3992         * resource.c (next_insn_no_annul): Strengthen return type and
3993         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
3994         rtx_sequence to clarify the code.
3995         (mark_referenced_resources): Add a checked cast to rtx_insn *
3996         within PREV_INSN (x).
3997         (find_dead_or_set_registers): Strengthen return type, param
3998         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3999         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
4000         to rtx_insn **.
4001         (mark_target_live_regs): Strengthen params "insns" and "target",
4002         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
4003         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
4004         the code.
4005         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
4006         from rtx to rtx_insn *.
4007         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
4008         from rtx to rtx_insn *.
4009         (copy_reg_eh_region_note_backward): Likewise.
4010         (unshare_all_rtl_in_chain): Likewise for sole param.
4011         (dump_rtl_slim): Strengthen second and third params from const_rtx
4012         to const rtx_insn *.
4013         * sched-deps.c (sched_free_deps): Strengthen params "head" and
4014         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
4015         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
4016         "next_tail" from rtx to rtx_insn *.
4017         (begin_move_insn): Likewise for local "next".
4018         * sched-int.h (sched_free_deps): Likewise for first and second
4019         params.
4020         (no_real_insns_p): Strengthen both params from const_rtx to
4021         const rtx_insn *.
4022         (sched_setup_bb_reg_pressure_info): Strengthen second params from
4023         rtx to rtx_insn *.
4024         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
4025         "next_tail".
4026         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
4027         and locals "insn", "tail" from const_rtx to const rtx_insn *.
4028         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
4029         rtx_insn *.
4030         (debug_rtl_slim): Strengthen params "first" and "last" from
4031         const_rtx to const rtx_insn *.
4032         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
4033         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
4034         (convert_to_simple_return): Likewise for param "returnjump".
4035         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
4036         "prologue_seq".
4037         (convert_to_simple_return): Likewise for param "returnjump".
4038         * valtrack.c (propagate_for_debug): Likewise for params
4039         "insn", "last".
4040         * valtrack.h (propagate_for_debug): Likewise for second param.
4041
4042 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4043
4044         * output.h (insn_current_reference_address): Strengthen param
4045         from rtx to rtx_insn *.
4046         * final.c (insn_current_reference_address): Likewise.
4047
4048 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4049
4050         * basic-block.h (inside_basic_block_p): Strengthen param from
4051         const_rtx to const rtx_insn *.
4052         * cfgbuild.c (inside_basic_block_p): Likewise.
4053
4054 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4055
4056         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
4057         rtx_insn *.
4058         (get_trace_info): Likewise for param "insn".
4059         (save_point_p): Likewise.
4060         (maybe_record_trace_start): Likewise for both params.
4061         (maybe_record_trace_start_abnormal): Likewise.
4062         (create_trace_edges): Likewise for sole param and for three of the
4063         locals named "lab".
4064         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
4065         to rtx_insn *, and update a call to pat->element to pat->insn.
4066
4067 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4068
4069         * function.h (struct expr_status): Convert field "x_forced_labels"
4070         from rtx_expr_list * to rtx_insn_list *.
4071
4072         * cfgbuild.c (make_edges): Convert local "x" from an
4073         rtx_expr_list * to an rtx_insn_list *, replacing use of
4074         "element" method with "insn" method.
4075         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4076         * except.c (sjlj_emit_dispatch_table): Replace use of
4077         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
4078         forced_labels.
4079         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
4080         rtx_expr_list * to an rtx_insn_list *, replacing use of
4081         "element" method with "insn" method.
4082         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4083         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
4084         rtx_insn *, adding a checked cast.  Replace use of
4085         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
4086         forced_labels.
4087         (expand_label): Likewise for local "label_r".
4088
4089 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4090
4091         * function.h (struct rtl_data): Convert field
4092         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
4093         rtx_insn_list *.
4094         * rtl.h (remove_node_from_insn_list): New prototype.
4095
4096         * builtins.c (expand_builtin): When prepending to
4097         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
4098         gen_rtx_EXPR_LIST.
4099         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
4100         to rtx_insn_list *, and use its "insn" method rather than
4101         "element" method.
4102         * cfgrtl.c (delete_insn): Use new function
4103         remove_node_from_insn_list rather than
4104         remove_node_from_expr_list.
4105         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
4106         to rtx_insn_list *, and use its "insn" method rather than
4107         "element" method.
4108         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4109         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4110         * rtlanal.c (remove_node_from_insn_list): New function, adapted
4111         from remove_node_from_expr_list.
4112         * stmt.c (expand_label): When prepending to
4113         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
4114         gen_rtx_EXPR_LIST.
4115
4116 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4117
4118         * function.h (struct rtl_data): Strengthen fields "x_return_label"
4119         and "x_naked_return_label" from rtx to rtx_code_label *.
4120
4121 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4122
4123         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
4124         (SET_NEXT_INSN): Likewise.
4125         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
4126
4127         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
4128         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
4129         to split out the SEQUENCE from local "bundle", strengthening the
4130         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
4131         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
4132         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
4133         and the type of the elements of the "slot" array from rtx to
4134         rtx_insn *.
4135         (reorg_split_calls): Likewise for locals "insn" and "next", and
4136         the type of the elements of the "slot" array.
4137
4138         * config/frv/frv.c (frv_nops): Likewise for the elements of this
4139         array.
4140         (frv_function_prologue): Likewise for locals "insn", "next",
4141         "last_call".
4142         (frv_register_nop): Introduce a local "nop_insn" to be the
4143         rtx_insn * containing rtx "nop".
4144
4145         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
4146         used as an insn and sometimes as a pattern, so rename it to
4147         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
4148         using it where dealing with the core insn.
4149
4150         * config/picochip/picochip.c (reorder_var_tracking_notes):
4151         Strengthen locals "insn", "next", "last_insn", "queue",
4152         "next_queue", "prev" from rtx to rtx_insn *.
4153
4154         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
4155         the second param is an rtx_insn ** rather than an rtx **.
4156         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
4157         from rtx to rtx_sequence *, and introduce local named "sequence",
4158         using methods of rtx_sequence to clarify the code.
4159         (remove_insn): Introduce local rtx_sequence * named "sequence" and
4160         use its methods.
4161         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
4162         Rename param "after" to "uncast_after", reintroducing "after" as a
4163         local rtx_insn * with a checked cast.
4164         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
4165         reintroducing "after" as a local rtx_insn * with a checked cast.
4166         Strengthen local "last" from rtx to rtx_insn * and remove the
4167         now-redundant checked casts.
4168         (copy_delay_slot_insn): Strengthen return type and param from rtx
4169         to rtx_insn *.
4170
4171         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
4172         "last" from rtx to rtx_insn *.
4173
4174 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4175
4176         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
4177         param from rtx to rtx_insn *.
4178
4179         * emit-rtl.c (copy_delay_slot_insn): Likewise.
4180
4181         * reorg.c (skip_consecutive_labels): Strengthen return type, param
4182         and local "insn" from rtx to rtx_insn *.
4183         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
4184         (unfilled_slots_next): Likewise.
4185         (function_return_label): Strengthen from rtx to rtx_code_label *.
4186         (function_simple_return_label): Likewise.
4187         (first_active_target_insn): Strengthen return type and param from
4188         rtx to rtx_insn *.
4189         (find_end_label): Strengthen return type from rtx to
4190         rtx_code_label *; strengthen locals as appropriate.
4191         (emit_delay_sequence): Strengthen return type, param "insn" and
4192         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
4193         and local "li" from rtx to rtx_insn_list *, using methods of
4194         rtx_insn_list for clarity and typesafety.
4195         (add_to_delay_list): Strengthen return type and param "insn" from
4196         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
4197         rtx_insn_list * and use methods of rtx_insn_list.
4198         (delete_from_delay_slot): Strengthen return type, param "insn",
4199         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
4200         Strengthen local "seq" from rtx to rtx_sequence *, and local
4201         "delay_list" from rtx to rtx_insn_list *, using methods of
4202         rtx_sequence for clarity and type-safety.
4203         (delete_scheduled_jump): Add checked cast when invoking
4204         delete_from_delay_slot.  Strengthen local "trial" from rtx to
4205         rtx_insn *.
4206         (optimize_skip): Strengthen return type and local "delay_list"
4207         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
4208         rtx_insn *.
4209         (steal_delay_list_from_target): Strengthen return type, param
4210         "delay_list" and local "new_delay_list" from rtx to
4211         rtx_insn_list *.  Strengthen param "seq" from rtx to
4212         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
4213         rtx_insn **.
4214         Split out local "temp" into multiple more-tightly scoped locals:
4215         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
4216         of rtx_insn_list and rtx_sequence for clarity and typesafety.
4217         Strengthen locals named "trial" from rtx to rtx_insn *.
4218         (steal_delay_list_from_fallthrough): Strengthen return type and
4219         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
4220         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
4221         Strengthen local "trial" from rtx to rtx_insn *.
4222         (try_merge_delay_insns): Strength local "merged_insns" from rtx
4223         to rtx_insn_list * and use its methods.  Strengthen local "pat"
4224         from rtx to rtx_sequence * and use its methods.  Strengthen locals
4225         "dtrial" and "new_rtx" from rtx to rtx_insn *.
4226         (get_label_before): Strengthen return type and local "label" from
4227         rtx to rtx_insn *.
4228         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
4229         "next_trial", "next", prev".  Strengthen local "delay_list" from
4230         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
4231         rtx_insn **.
4232         (follow_jumps): Strengthen return type, param "label" and locals
4233         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
4234         (fill_slots_from_thread): Strengthen return type, param
4235         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
4236         "insn", "thread", "opposite_thread" and locals "new_thread",
4237         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
4238         "sequence" from a checked cast to rtx_sequence so that we can call
4239         steal_delay_list_from_target and steal_delay_list_from_fallthrough
4240         with an rtx_sequence *.
4241         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
4242         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
4243         Strengthen local "delay_list" from rtx to rtx_insn_list *.
4244         (relax_delay_slots): Strengthen param "first" and locals "insn",
4245         "next", "trial", "delay_insn", "target_label" from rtx to
4246         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
4247         Introduce a local "trial_seq" for PATTERN (trial) of type
4248         rtx_sequence *, in both cases using methods of rtx_sequence.
4249         (dbr_schedule): Strengthen param "first" and locals "insn",
4250         "next", "epilogue_insn" from rtx to rtx_insn *.
4251
4252 2014-08-28  Richard Biener  <rguenther@suse.de>
4253
4254         PR tree-optimization/62283
4255         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4256         Do not peel loops for alignment where the vector loop likely
4257         doesn't run at least VF times.
4258
4259 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
4260
4261         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
4262         important_candidates.  Consider all important candidates if
4263         IVS doesn't give any result.  Remove check on ivs->upto.
4264         (try_add_cand_for): Call iv_ca_add_use only once.
4265
4266 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4267             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4268             Anna Tikhonova  <anna.tikhonova@intel.com>
4269             Ilya Tocar  <ilya.tocar@intel.com>
4270             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4271             Ilya Verbin  <ilya.verbin@intel.com>
4272             Kirill Yukhin  <kirill.yukhin@intel.com>
4273             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4274
4275         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
4276         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
4277         masking.
4278         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
4279         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4280         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4281         (define_insn "*mul<mode>3"): Add EVEX version.
4282
4283 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4284             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4285             Anna Tikhonova  <anna.tikhonova@intel.com>
4286             Ilya Tocar  <ilya.tocar@intel.com>
4287             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4288             Ilya Verbin  <ilya.verbin@intel.com>
4289             Kirill Yukhin  <kirill.yukhin@intel.com>
4290             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4291
4292         * config/i386/sse.md
4293         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
4294         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
4295         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
4296         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
4297         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
4298         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
4299         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
4300         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
4301         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
4302         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
4303         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
4304         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
4305         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
4306         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
4307         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
4308         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
4309
4310 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4311             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4312             Anna Tikhonova  <anna.tikhonova@intel.com>
4313             Ilya Tocar  <ilya.tocar@intel.com>
4314             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4315             Ilya Verbin  <ilya.verbin@intel.com>
4316             Kirill Yukhin  <kirill.yukhin@intel.com>
4317             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4318
4319         * config/i386/sse.md
4320         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
4321         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
4322         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
4323
4324 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4325             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4326             Anna Tikhonova  <anna.tikhonova@intel.com>
4327             Ilya Tocar  <ilya.tocar@intel.com>
4328             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4329             Ilya Verbin  <ilya.verbin@intel.com>
4330             Kirill Yukhin  <kirill.yukhin@intel.com>
4331             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4332
4333         * config/i386/sse.md
4334         (define_mode_iterator VI128_256): New.
4335         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
4336
4337 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4338             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4339             Anna Tikhonova  <anna.tikhonova@intel.com>
4340             Ilya Tocar  <ilya.tocar@intel.com>
4341             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4342             Ilya Verbin  <ilya.verbin@intel.com>
4343             Kirill Yukhin  <kirill.yukhin@intel.com>
4344             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4345
4346         * config/i386/sse.md
4347         (define_mode_iterator VI8_256_512): New.
4348         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
4349         Ditto.
4350         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4351         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
4352         Ditto.
4353         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
4354
4355 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4356
4357         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
4358         pointer to the cumulative reloc value and return the value for
4359         this reloc instead.
4360         (compute_reloc_for_rtx): Take a const_rtx.  Call
4361         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
4362         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
4363         for_each_rtx for the CONST case.
4364
4365 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4366
4367         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
4368         (mark_constants_in_pattern): ...this new function to iterate over
4369         all the subrtxes.
4370         (mark_constants): Update accordingly.
4371
4372 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4373
4374         * varasm.c: Include rtl-iter.h.
4375         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
4376         Remove the pointer to the cumulative hashval_t and just return
4377         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
4378         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4379         Accumulate the hashval_ts here instead of const_rtx_hash_1.
4380
4381 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4382
4383         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
4384         Give real type of data parameter.  Remove return value.
4385         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
4386         to iterate over subrtxes.
4387
4388 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4389
4390         * var-tracking.c (use_narrower_mode_test): Turn from being a
4391         for_each_rtx callback to being a function that examines each
4392         subrtx itself.
4393         (adjust_mems): Update accordingly.
4394
4395 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4396
4397         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
4398         callback to being a function that examines each subrtx itself.
4399         Remove handling of null rtxes.
4400         (add_uses): Update accordingly.
4401
4402 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4403
4404         * var-tracking.c: Include rtl-iter.h.
4405         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
4406         to being a function that examines each subrtx itself.
4407         (use_type): Update accordingly.
4408
4409 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4410
4411         * store-motion.c: Include rtl-iter.h.
4412         (extract_mentioned_regs_1): Delete.
4413         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
4414         for_each_rtx to iterate over subrtxes.
4415
4416 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4417
4418         * sel-sched.c: Include rtl-iter.h
4419         (count_occurrences_1): Delete.
4420         (count_occurrences_equiv): Turn rtxes into const_rtxes.
4421         Use FOR_EACH_SUBRTX rather than for_each_rtx.
4422
4423 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4424
4425         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
4426         * rtlanal.c (tls_referenced_p_1): Delete.
4427         (tls_referenced_p): Take a const_rtx rather than an rtx.
4428         Use FOR_EACH_SUBRTX rather than for_each_rtx.
4429
4430 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4431
4432         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
4433         (for_each_inc_dec): Take an rtx rather than an rtx *.
4434         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
4435         (cselib_record_sets): Likewise.
4436         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
4437         (check_for_inc_dec): Likewise.
4438         * rtlanal.c (for_each_inc_dec_ops): Delete.
4439         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
4440         rather than a pointer to the memory address.  Replace
4441         for_each_inc_dec_ops argument with separate function and data
4442         arguments.  Abort on non-autoinc addresses.
4443         (for_each_inc_dec_find_mem): Delete.
4444         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
4445         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
4446
4447 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4448
4449         * rtl.h (find_all_hard_regs): Declare.
4450         * rtlanal.c (find_all_hard_regs): New function.
4451         (record_hard_reg_uses_1): Delete.
4452         (record_hard_reg_uses): Use find_all_hard_regs.
4453
4454 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4455
4456         * rtl.h (replace_label_data): Delete.
4457         (replace_label): Take the old label, new label and update-nuses flag
4458         as direct arguments.  Return void.
4459         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
4460         * rtlanal.c (replace_label): Update interface as above.  Handle
4461         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
4462         iterator.  Use FOR_EACH_SUBRTX_PTR.
4463
4464 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4465
4466         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
4467         with const_rtx parameters.
4468         * varasm.c (get_pool_constant): Likewise.
4469         * rtlanal.c (rtx_referenced_p_1): Delete.
4470         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4471         Assert that the rtx we're looking for is nonnull.  Allow searches
4472         for constant pool SYMBOL_REFs.
4473
4474 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4475
4476         * reload1.c: Include rtl-iter.h.
4477         (note_reg_elim_costly): Turn from being a for_each_rtx callback
4478         to being a function that examines each subrtx itself.
4479         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
4480
4481 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4482
4483         * regcprop.c (cprop_find_used_regs_1): Delete.
4484         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4485
4486 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4487
4488         * regcprop.c: Include rtl-iter.h.
4489         (kill_value): Take a const_rtx.
4490         (kill_autoinc_value): Turn from being a for_each_rtx callback
4491         to being a function that examines each subrtx itself.
4492         (copyprop_hardreg_forward_1): Update accordingly.
4493
4494 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4495
4496         * reg-stack.c: Include rtl-iter.h.
4497         (subst_stack_regs_in_debug_insn): Delete.
4498         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
4499         instead of for_each_rtx.
4500
4501 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4502
4503         * lower-subreg.c (find_decomposable_subregs): Turn from being
4504         a for_each_rtx callback to being a function that examines each
4505         subrtx itself.  Remove handling of null rtxes.
4506         (decompose_multiword_subregs): Update accordingly.
4507
4508 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4509
4510         * lower-subreg.c (adjust_decomposed_uses): Delete.
4511         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
4512         Remove handling of null rtxes.
4513
4514 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4515
4516         * lower-subreg.c: Include rtl-iter.h.
4517         (resolve_subreg_use): Turn from being a for_each_rtx callback
4518         to being a function that examines each subrtx itself.  Remove
4519         handling of null rtxes.
4520         (resolve_reg_notes, resolve_simple_move): Update accordingly.
4521         (decompose_multiword_subregs): Likewise.
4522
4523 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4524
4525         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
4526         to being a function that examines each subrtx itself.
4527         (simplify_using_condition, simplify_using_initial_values): Update
4528         accordingly.
4529
4530 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4531
4532         * loop-iv.c: Include rtl-iter.h.
4533         (find_single_def_src): New function.
4534         (replace_single_def_regs): Turn from being a for_each_rtx callback
4535         to being a function that examines each subrtx itself.
4536         (replace_in_expr, simplify_using_initial_values): Update accordingly.
4537
4538 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4539
4540         * jump.c (eh_returnjump_p_1): Delete.
4541         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4542         Remove handling of null rtxes.
4543
4544 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4545
4546         * jump.c: Include rtl-iter.h.
4547         (returnjump_p_1): Delete.
4548         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4549         Remove handling of null rtxes.
4550
4551 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4552
4553         * ira.c: Include rtl-iter.h.
4554         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
4555         to being a function that examines each subrtx itself.  Remove
4556         handling of null rtxes.
4557         (update_equiv_regs): Update call accordingly.
4558
4559 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4560
4561         * fwprop.c: Include rtl-iter.h.
4562         (varying_mem_p): Turn from being a for_each_rtx callback to being
4563         a function that examines each subrtx itself.
4564         (propagate_rtx): Update accordingly.
4565
4566 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4567
4568         * function.c: Include rtl-iter.h
4569         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
4570         callback to being a function that examines each subrtx itself.
4571         Return the changed flag.
4572         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
4573         (instantiate_virtual_regs): Update calls accordingly.
4574
4575 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4576
4577         * final.c: Include rtl-iter.h.
4578         (mark_symbol_ref_as_used): Delete.
4579         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
4580         for_each_rtx.
4581
4582 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4583
4584         * emit-rtl.c: Include rtl-iter.h.
4585         (find_auto_inc): Turn from being a for_each_rtx callback to being
4586         a function that examines each subrtx itself.  Assume the first operand
4587         to an RTX_AUTOINC is the automodified register.
4588         (try_split): Update call accordingly.
4589
4590 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4591
4592         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4593         Return a bool, inverting the result so that 0/false means "not ok".
4594         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
4595         subrtxes of a CONST.
4596         (mem_loc_descriptor, add_const_value_attribute)
4597         (resolve_addr_in_expr): Update calls accordingly.
4598
4599 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4600
4601         * dwarf2out.c: Include rtl-iter.h.
4602         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4603         Remove unused data parameter.  Return a bool, inverting the result
4604         so that 0/false means "not ok".
4605         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
4606         instead of for_each_rtx.
4607
4608 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4609
4610         * dse.c: Include rtl-iter.h.
4611         (check_mem_read_rtx): Change void * parameter to real type.
4612         Remove return value.
4613         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
4614         for_each_rtx.  Don't handle null rtxes.
4615
4616 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4617
4618         * df-problems.c: Include rtl-iter.h.
4619         (find_memory): Turn from being a for_each_rtx callback to being
4620         a function that examines each subrtx itself.  Continue to look for
4621         volatile references even after a nonvolatile one has been found.
4622         (can_move_insns_across): Update calls accordingly.
4623
4624 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4625
4626         * ddg.c (walk_mems_2, walk_mems_1): Delete.
4627         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4628         to iterate over subrtxes.  Return a bool rather than an int.
4629
4630 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4631
4632         * ddg.c: Include rtl-iter.h.
4633         (mark_mem_use_1): Rename to...
4634         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
4635         instead of for_each_rtx.
4636         (mem_read_insn_p): Update accordingly.
4637
4638 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4639
4640         * cse.c (change_cc_mode_args): Delete.
4641         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4642         a function that examines each subrtx itself.  Take the fields of
4643         change_cc_mode_args as argument and return void.
4644         (cse_change_cc_mode_insn): Update calls accordingly.
4645
4646 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4647
4648         * cse.c (is_dead_reg): Change argument to const_rtx.
4649         (dead_debug_insn_data): Delete.
4650         (is_dead_debug_insn): Expand commentary.  Turn from being a
4651         for_each_rtx callback to being a function that examines
4652         each subrtx itself.  Take the fields of dead_debug_insn_data
4653         as argument.
4654         (delete_trivially_dead_insns): Update call accordingly.
4655
4656 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4657
4658         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
4659         being a for_each_rtx callback to being a function that examines
4660         each subrtx itself.
4661         (cse_extended_basic_block): Update call accordingly.
4662
4663 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4664
4665         * cse.c (check_dependence_data): Delete.
4666         (check_dependence): Change from being a for_each_rtx callback to being
4667         a function that examines all subrtxes itself.  Don't handle null rtxes.
4668         (invalidate): Update call accordingly.
4669
4670 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4671
4672         * cse.c: Include rtl-iter.h.
4673         (approx_reg_cost_1): Delete.
4674         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4675         Don't handle null rtxes.
4676
4677 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4678
4679         * cfgcleanup.c: Include rtl-iter.h.
4680         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4681         to being a function that examines each subrtx itself.
4682         (thread_jump): Update accordingly.
4683
4684 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4685
4686         * combine-stack-adj.c: Include rtl-iter.h.
4687         (record_stack_refs_data): Delete.
4688         (record_stack_refs): Turn from being a for_each_rtx callback
4689         to being a function that examines each subrtx itself.
4690         Take a pointer to the reflist.  Invert sense of return value
4691         so that true means success and false means failure.  Don't
4692         handle null rtxes.
4693         (combine_stack_adjustments_for_block): Update accordingly.
4694
4695 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4696
4697         * combine.c (record_truncated_value): Turn from being a for_each_rtx
4698         callback to a function that takes an rtx and returns a bool
4699         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4700         for_each_rtx.
4701
4702 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4703
4704         * combine.c: Include rtl-iter.h.
4705         (unmentioned_reg_p_1): Delete.
4706         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4707         Don't handle null rtxes.
4708
4709 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4710
4711         * calls.c: Include rtl-iter.h.
4712         (internal_arg_pointer_based_exp_1): Delete.
4713         (internal_arg_pointer_based_exp): Take a const_rtx.
4714         Use FOR_EACH_SUBRTX to iterate over subrtxes.
4715
4716 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4717
4718         * caller-save.c: Include rtl-iter.h.
4719         (add_used_regs_1): Delete.
4720         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4721         to iterate over subrtxes.  Assert that any remaining pseudos
4722         have been spilled.
4723
4724 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4725
4726         * bt-load.c: Include rtl-iter.h.
4727         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4728         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
4729         to iterate over subrtxes.
4730         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4731         find_btr_use rather than btr_referenced_p.
4732
4733 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4734
4735         * alias.c: Include rtl-iter.h.
4736         (refs_newer_value_cb): Delete.
4737         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4738
4739 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4740
4741         * rtl-iter.h: New file.
4742         * rtlanal.c: Include it.
4743         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4744         (generic_subrtx_iterator <T>::add_single_to_queue)
4745         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4746         (generic_subrtx_iterator <T>::free_array): New functions.
4747         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4748         (generic_subrtx_iterator <const_rtx_accessor>)
4749         (generic_subrtx_iterator <rtx_var_accessor>
4750         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4751         (setup_reg_subrtx_bounds): New function.
4752         (init_rtlanal): Call it.
4753
4754 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4755
4756         PR target/62261
4757         * config/sh/sh.md (ashlsi3): Handle negative shift count for
4758         TARGET_SHMEDIA.
4759         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4760
4761 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
4762
4763         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4764
4765 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4766
4767         * rtl.h (JUMP_LABEL_AS_INSN): New.
4768
4769 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4770
4771         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4772         rtx_expr_list **.
4773         (alloc_EXPR_LIST): Strengthen return type from rtx to
4774         rtx_expr_list *.
4775         (remove_free_EXPR_LIST_node): Likewise for param.
4776         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4777         from rtx to rtx_expr_list *.
4778         * sched-int.h (struct deps_desc): Strengthen fields
4779         "pending_read_mems" and "pending_write_mems" from rtx to
4780         rtx_expr_list *.
4781
4782         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4783         rtx to rtx_expr_list *.
4784         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4785         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4786         rtx_expr_list **.
4787         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
4788         from rtx to rtx_expr_list *.
4789         * loop-iv.c (simplify_using_initial_values): Strengthen local
4790         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4791         "pnote_next" from rtx * to rtx_expr_list **.
4792         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
4793         param "exprp" from rtx * to rtx_expr_list **.
4794         (add_insn_mem_dependence): Strengthen local "mem_list" from
4795         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
4796         to rtx_expr_list *.
4797         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4798         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
4799         param "old_mems_p" from rtx * to rtx_expr_list **.
4800         * var-tracking.c (struct adjust_mem_data): Strengthen field
4801         "side_effects" from rtx to rtx_expr_list *.
4802         (adjust_insn): Replace NULL_RTX with NULL when assigning to
4803         rtx_expr_list *.
4804         (prepare_call_arguments): Likewise.
4805
4806 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4807
4808         * function.h (struct rtl_data): Strengthen field
4809         "x_stack_slot_list" from rtx to rtx_expr_list *.
4810
4811         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4812         when assigning to stack_slot_list.
4813
4814 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4815
4816         * function.h (struct rtl_data): Strengthen field
4817         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4818         * rtl.h (remove_node_from_expr_list): Strengthen second param from
4819         rtx * to rtx_expr_list **.
4820
4821         * cfgbuild.c (make_edges): In loop over
4822         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4823         rtx_expr_list *, and use methods of the latter class to clarify
4824         the code.
4825         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4826         rtx_expr_list *, and use methods of the latter class to clarify
4827         the code.
4828         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4829         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4830         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4831         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
4832         to rtx_expr_list *.  Use methods of the latter class to clarify
4833         the code.
4834
4835 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4836
4837         * function.h (struct expr_status): Strengthen field
4838         "x_forced_labels" from rtx to rtx_expr_list *.
4839
4840         * cfgbuild.c (make_edges): Split local "x" into two locals,
4841         strengthening one from rtx to rtx_expr_list *, and using methods
4842         of said class.
4843         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4844         loop over forced_labels, introduce strengthen it from rtx to
4845         rtx_expr_list *, using methods to clarify the code.
4846         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4847         to rtx_expr_list *, using methods of said class to clarify the
4848         code.
4849         * reload1.c (set_initial_label_offsets): Split local "x" into two
4850         per-loop variables, strengthening the first from rtx to
4851         rtx_expr_list * and using methods.
4852
4853 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4854
4855         * coretypes.h (class rtx_expr_list): Add forward declaration.
4856         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4857         * gengenrtl.c (special_rtx): Add EXPR_LIST.
4858         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4859         invariant: GET_CODE (X) == EXPR_LIST.
4860         (is_a_helper <rtx_expr_list *>::test): New.
4861         (rtx_expr_list::next): New.
4862         (rtx_expr_list::element): New.
4863         (gen_rtx_EXPR_LIST): New.
4864
4865 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4866
4867         * varasm.c (mark_constants): Convert a GET_CODE check into a
4868         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4869         Use methods of rtx_sequence to clarify the code.
4870
4871 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4872
4873         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4874         local "seq" via a checked cast, and use methods of rtx_sequence
4875         to simplify the code.
4876
4877 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4878
4879         * resource.c (mark_referenced_resources): Strengthen local
4880         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4881         using methods of rtx_sequence to clarify the code.
4882         (find_dead_or_set_registers): Within the switch statement, convert
4883         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
4884         the JUMP_P handling, introduce another local "seq", adding a
4885         checked cast to rtx_sequence *.  In both cases, use methods of
4886         rtx_sequence to clarify the code.
4887         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4888         via a checked cast, and use methods of rtx_sequence to simplify
4889         the code.
4890
4891 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4892
4893         * reorg.c (redundant_insn): In two places in the function, replace
4894         a check of GET_CODE with a dyn_cast, introducing local "seq", and
4895         usings methods of rtx_sequence to clarify the code.
4896
4897 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4898
4899         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4900         local "seq" with a checked cast, and use methods of rtx_sequence
4901         to clarify the code.
4902
4903 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4904
4905         * function.c (contains): Introduce local "seq" for PATTERN (insn),
4906         with a checked cast, in the region for where we know it's a
4907         SEQUENCE.  Use methods of rtx_sequence.
4908
4909 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4910
4911         * final.c (get_attr_length_1): Replace GET_CODE check with a
4912         dyn_cast, introducing local "seq" and the use of methods of
4913         rtx_sequence.
4914         (shorten_branches): Likewise, introducing local "body_seq".
4915         Strengthen local "inner_insn" from rtx to rtx_insn *.
4916         (reemit_insn_block_notes): Replace GET_CODE check with a
4917         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4918         Use methods of rtx_sequence.
4919         (final_scan_insn): Likewise, introducing local "seq" for when
4920         "body" is known to be a SEQUENCE, using its methods.
4921
4922 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4923
4924         * except.c (can_throw_external): Strengthen local "seq" from rtx
4925         to rtx_sequence *.  Use methods of rtx_sequence.
4926         (insn_nothrow_p): Likewise.
4927
4928 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4929
4930         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4931         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4932         Use methods of rtx_sequence.
4933         (scan_trace): Likewise for local "pat".
4934
4935 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4936
4937         * coretypes.h (class rtx_sequence): Add forward declaration.
4938         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4939         invariant: GET_CODE (X) == SEQUENCE.
4940         (is_a_helper <rtx_sequence *>::test): New.
4941         (is_a_helper <const rtx_sequence *>::test): New.
4942         (rtx_sequence::len): New.
4943         (rtx_sequence::element): New.
4944         (rtx_sequence::insn): New.
4945
4946 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4947
4948         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4949         rtx_insn_list **.
4950         (alloc_INSN_LIST): Strengthen return type from rtx to
4951         rtx_insn_list *.
4952         (copy_INSN_LIST): Likewise for return type and param.
4953         (concat_INSN_LIST): Likewise for both params and return type.
4954         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4955         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
4956         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4957         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
4958
4959         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4960         "implicit_sets", "control_uses", "clobbers" from rtx to
4961         rtx_insn_list *.
4962         (struct deps_desc): Likewise for fields "pending_read_insns",
4963         "pending_write_insns", "pending_jump_insns",
4964         "last_pending_memory_flush", "last_function_call",
4965         "last_function_call_may_noreturn", "sched_before_next_call",
4966         "sched_before_next_jump".
4967         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4968         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4969
4970         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4971         from rtx to rtx_insn_list *.
4972         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4973         rtx_insn_list *.
4974
4975         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4976         to rtx_insn_list **.
4977         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4978         rtx_insn_list *.
4979         (queue_insn): Likewise for local "link".
4980         (struct haifa_saved_data): Strengthen field "insn_queue" from
4981         rtx * to rtx_insn_list **.
4982         (save_backtrack_point): Update allocation of save->insn_queue to
4983         reflect the strengthening of elements from rtx to rtx_insn_list *.
4984         (queue_to_ready): Strengthen local "link" from rtx to
4985         rtx_insn_list *; use methods "next" and "insn" when traversing the
4986         list.
4987         (early_queue_to_ready): Likewise for locals "link", "next_link",
4988         "prev_link".
4989         (schedule_block): Update allocation of insn_queue to reflect the
4990         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
4991         local "link" from rtx to rtx_insn_list *, and use methods when
4992         working it.
4993         (add_to_speculative_block): Strengthen locals "twins" and
4994         "next_node" from rtx to rtx_insn_list *, and use methods when
4995         working with them.  Strengthen local "twin" from rtx to
4996         rtx_insn *, eliminating a checked cast.
4997         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4998         from rtx to rtx_insn_list *, and use methods when working with
4999         them.
5000
5001         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
5002         from rtx to rtx_insn_list *, adding a checked cast.
5003         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
5004         rtx_insn_list **.
5005         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
5006         "newlink" from rtx to rtx_insn_list *.  Strengthen local
5007         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
5008         from rtx to rtx_insn *.
5009         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
5010         from rtx to rtx_insn_list *.  Use methods of the latter class.
5011         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
5012         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
5013         (remove_free_INSN_LIST_node): Strengthen return type and local
5014         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
5015         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
5016         rtx_insn_list *, using "insn" method.
5017
5018         * sched-deps.c (add_dependence_list):  Strengthen param "list"
5019         from rtx to rtx_insn_list *, and use methods when working with it.
5020         (add_dependence_list_and_free):  Strengthen param "listp" from
5021         rtx * to rtx_insn_list **.
5022         (remove_from_dependence_list): Strenghten param "listp" from rtx *
5023         to rtx_insn_list **, and use methods when working with *listp.
5024         (remove_from_both_dependence_lists): Strengthen param "listp" from
5025         rtx * to rtx_insn_list **
5026         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
5027         to rtx_insn_list **.  Eliminate local "link", in favor of two new
5028         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
5029         respectively.
5030         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
5031         by introducing local "cond_deps".
5032         (remove_from_deps): Strengthen param "insn" from rtx to
5033         rtx_insn *.
5034
5035         * sched-rgn.c (concat_insn_mem_list): Strengthen param
5036         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
5037         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
5038         Use methods of rtx_insn_list.
5039
5040         * store-motion.c (struct st_expr): Strengthen fields
5041         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
5042         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
5043         rtx_insn_list *.
5044         (find_moveable_store): Split out "tmp" into multiple more-tightly
5045         scoped locals.  Use methods of rtx_insn_list *.
5046         (compute_store_table): Strengthen local "tmp" from rtx to
5047         rtx_insn *.  Use methods of rtx_insn_list *.
5048
5049 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5050
5051         * coretypes.h (class rtx_insn_list): Add forward declaration.
5052         * rtl.h (class rtx_insn_list): New subclass of rtx_def
5053         (is_a_helper <rtx_insn_list *>::test): New.
5054         (rtx_insn_list::next): New.
5055         (rtx_insn_list::insn): New.
5056         (gen_rtx_INSN_LIST): Add prototype.
5057         * emit-rtl.c (gen_rtx_INSN_LIST): New.
5058         * gengenrtl.c (special_rtx): Add INSN_LIST.
5059
5060 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5061
5062         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
5063         "prev" from rtx to rtx_insn *.
5064
5065 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5066
5067         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
5068         functions.  Require merely an rtx for now, not an rtx_insn *.
5069         (BLOCK_FOR_INSN): Likewise.
5070         (INSN_LOCATION): Likewise.
5071         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
5072
5073 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5074
5075         * rtl.h (PATTERN): Convert this macro into a pair of inline
5076         functions, for now, requiring const_rtx and rtx.
5077
5078 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5079
5080         * target.def (unwind_emit): Strengthen param "insn" from rtx to
5081         rtx_insn *.
5082         (final_postscan_insn): Likewise.
5083         (adjust_cost): Likewise.
5084         (adjust_priority): Likewise.
5085         (variable_issue): Likewise.
5086         (macro_fusion_pair_p): Likewise.
5087         (dfa_post_cycle_insn): Likewise.
5088         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
5089         (first_cycle_multipass_issue): Likewise.
5090         (dfa_new_cycle): Likewise.
5091         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
5092         (speculate_insn): Likewise for param "insn".
5093         (gen_spec_check): Likewise for params "insn" and "label".
5094         (get_insn_spec_ds): Likewise for param "insn".
5095         (get_insn_checked_ds): Likewise.
5096         (dispatch_do): Likewise.
5097         (dispatch): Likewise.
5098         (cannot_copy_insn_p): Likewise.
5099         (invalid_within_doloop): Likewise.
5100         (legitimate_combined_insn): Likewise.
5101         (needed): Likewise.
5102         (after): Likewise.
5103
5104         * doc/tm.texi: Automatically updated to reflect changes to
5105         target.def.
5106
5107         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
5108         working with insn.
5109         (schedule_block): Likewise.
5110         (sched_init): Likewise.
5111         (sched_speculate_insn): Strengthen param "insn" from rtx to
5112         rtx_insn *.
5113         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
5114         working with insn.
5115         * hooks.c (hook_bool_rtx_true): Rename to...
5116         hook_bool_rtx_insn_true): ...this, and strengthen first param from
5117         rtx to rtx_insn *.
5118         (hook_constcharptr_const_rtx_null): Rename to...
5119         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
5120         first param from const_rtx to const rtx_insn *.
5121         (hook_bool_rtx_int_false): Rename to...
5122         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
5123         param from rtx to rtx_insn *.
5124         (hook_void_rtx_int): Rename to...
5125         (hook_void_rtx_insn_int): ...this, and strengthen first param from
5126         rtx to rtx_insn *.
5127
5128         * hooks.h (hook_bool_rtx_true): Rename to...
5129         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
5130         rtx to rtx_insn *.
5131         (hook_bool_rtx_int_false): Rename to...
5132         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
5133         param from rtx to rtx_insn *.
5134         (hook_void_rtx_int): Rename to...
5135         (hook_void_rtx_insn_int): ...this, and strengthen first param from
5136         rtx to rtx_insn *.
5137         (hook_constcharptr_const_rtx_null): Rename to...
5138         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
5139         first param from const_rtx to const rtx_insn *.
5140
5141         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
5142         and local "prev" from rtx to rtx_insn *.
5143
5144         * sched-int.h (sched_speculate_insn): Strengthen first param from
5145         rtx to rtx_insn *.
5146
5147         * sel-sched.c (create_speculation_check): Likewise for local "label".
5148         * targhooks.c (default_invalid_within_doloop): Strengthen param
5149         "insn" from const_rtx to const rtx_insn *.
5150         * targhooks.h (default_invalid_within_doloop): Strengthen param
5151         from const_rtx to const rtx_insn *.
5152
5153         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
5154         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
5155
5156         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
5157         "insn".
5158         (arc_invalid_within_doloop): Likewise, with const.
5159
5160         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
5161         (arm_cannot_copy_insn_p): Likewise for param "insn".
5162         (arm_unwind_emit): Likewise.
5163
5164         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
5165         "dep_insn".
5166
5167         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
5168         (c6x_variable_issue): Likewise.  Removed now-redundant checked
5169         cast.
5170         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
5171
5172         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
5173         Likewise for param "insn".
5174         (epiphany_mode_after): Likewise.
5175         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
5176         params "insn", "dep_insn".
5177         (epiphany_mode_needed): Likewise for param "insn".
5178         (epiphany_mode_after): Likewise.
5179
5180         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
5181         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
5182         (ix86_avx_u128_mode_needed): Likewise.
5183         (ix86_i387_mode_needed): Likewise.
5184         (ix86_mode_needed): Likewise.
5185         (ix86_avx_u128_mode_after): Likewise.
5186         (ix86_mode_after): Likewise.
5187         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
5188         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
5189         (ix86_adjust_priority): Likewise for param "insn".
5190         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
5191         (do_dispatch): Likewise.
5192         (has_dispatch): Likewise.
5193         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
5194
5195         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
5196         reflect renaming of default hook implementation from
5197         hook_constcharptr_const_rtx_null to
5198         hook_constcharptr_const_rtx_insn_null.
5199         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
5200         rtx to rtx_insn *.
5201         (ia64_variable_issue): Likewise for param "insn".
5202         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
5203         (ia64_dfa_new_cycle): Likewise.
5204         (ia64_get_insn_spec_ds): Likewise.
5205         (ia64_get_insn_checked_ds): Likewise.
5206         (ia64_speculate_insn): Likewise.
5207         (ia64_gen_spec_check): Likewise for params "insn", "label".
5208         (ia64_asm_unwind_emit): Likewise for param "insn".
5209
5210         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
5211
5212         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
5213         "insn", "def_insn".
5214         (m68k_sched_variable_issue): Likewise for param "insn".
5215
5216         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
5217         "def_insn".
5218
5219         * config/microblaze/microblaze.c (microblaze_adjust_cost):
5220         Likewise for params "insn", "dep".
5221
5222         * config/mips/mips.c (mips_adjust_cost): Likewise.
5223         (mips_variable_issue): Likewise for param "insn".
5224         (mips_final_postscan_insn): Likewise.
5225
5226         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
5227         for params "insn", "dep".
5228
5229         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
5230         "dep_insn".
5231         (pa_adjust_priority): Likewise for param "insn".
5232
5233         * config/picochip/picochip.c (picochip_sched_adjust_cost):
5234         Likewise for params "insn", "dep_insn".
5235
5236         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
5237         param "insn".
5238         (rs6000_variable_issue): Likewise.
5239         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
5240         (rs6000_debug_adjust_cost): Likewise.
5241         (rs6000_adjust_priority): Likewise for param "insn".
5242         (rs6000_use_sched_lookahead_guard): Likewise.
5243         (get_next_active_insn): Likewise for return type and both params.
5244         (redefine_groups): Likewise for params "prev_head_insn", "tail"
5245         and locals "insn", "next_insn".
5246         (pad_groups): Likewise.
5247
5248         * config/s390/s390.c (s390_adjust_priority): Likewise for param
5249         "insn".
5250         (s390_cannot_copy_insn_p): Likewise.
5251         (s390_sched_variable_issue): Likewise for third param, eliminating
5252         checked cast.
5253         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
5254         default hook implementation from hook_constcharptr_const_rtx_null
5255         to hook_constcharptr_const_rtx_insn_null.
5256
5257         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
5258         from rtx to rtx_insn *.
5259         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
5260         (sh_variable_issue): Likewise for param "insn".
5261         (sh_dfa_new_cycle): Likewise.
5262         (sh_mode_needed): Likewise.
5263         (sh_mode_after): Likewise.
5264
5265         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
5266         params "insn", "dep_insn".
5267         (hypersparc_adjust_cost): Likewise.
5268         (sparc_adjust_cost): Likewise.
5269
5270         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
5271         param, eliminated checked cast.
5272         (spu_sched_adjust_cost): Likewise for first and third params.
5273
5274         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
5275         params "insn" and "dep_insn" from rtx to rtx_insn *.
5276
5277         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
5278
5279 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5280
5281         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
5282         (set_is_load_p): ...this, updating to work on a SET pattern rather
5283         than an insn.
5284         (is_store_insn): Rename to...
5285         (set_is_store_p): ...this, updating to work on a SET pattern
5286         rather than an insn.
5287         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
5288         top of function to where it is needed.  Rewrite the bogus
5289         condition that checks for "insn" and "dep" being PARALLEL to
5290         instead use single_set, introducing locals "insn_set" and
5291         "dep_set".  Given that we only ever returned "cost" for a non-pair
5292         of SETs, bail out early if we don't have a pair of SET.
5293         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
5294         use the new locals "insn_set" and "dep_set", and update calls to
5295         is_load_insn and is_store_insn to be calls to set_is_load_p and
5296         set_is_store_p.
5297
5298 2014-08-27  Guozhi Wei  <carrot@google.com>
5299
5300         PR target/62262
5301         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
5302         amount before using it.
5303
5304 2014-08-27  Richard Biener  <rguenther@suse.de>
5305
5306         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
5307         get_maxval_strlen inside a more useful API.
5308         (gimple_fold_builtin_with_strlen): Remove and fold into ...
5309         (gimple_fold_builtin): ... caller.
5310         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
5311         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
5312         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
5313         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
5314         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
5315         gimple_fold_builtin_sprintf): Adjust to compute maxval
5316         themselves.
5317
5318 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
5319
5320         PR other/62248
5321         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
5322
5323 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5324             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5325             Anna Tikhonova  <anna.tikhonova@intel.com>
5326             Ilya Tocar  <ilya.tocar@intel.com>
5327             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5328             Ilya Verbin  <ilya.verbin@intel.com>
5329             Kirill Yukhin  <kirill.yukhin@intel.com>
5330             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5331
5332         * config/i386/sse.md
5333         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
5334         Use `concat_tg_mode' attribute to determine asm register size.
5335
5336 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5337             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5338             Anna Tikhonova  <anna.tikhonova@intel.com>
5339             Ilya Tocar  <ilya.tocar@intel.com>
5340             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5341             Ilya Verbin  <ilya.verbin@intel.com>
5342             Kirill Yukhin  <kirill.yukhin@intel.com>
5343             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5344
5345         * config/i386/sse.md
5346         (define_mode_iterator VI48_AVX512VL): New.
5347         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
5348         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
5349         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
5350         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5351         with VI1): Change mode iterator.
5352         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5353         with VI_ULOADSTORE_BW_AVX512VL): New.
5354         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5355         with VI_ULOADSTORE_F_AVX512VL): Ditto.
5356         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5357         with VI1): Change mode iterator.
5358         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5359         with VI_ULOADSTORE_BW_AVX512VL): New.
5360         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5361         with VI_ULOADSTORE_F_AVX512VL): Ditto.
5362         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5363         with VI1): Change mode iterator.
5364         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5365         with VI_ULOADSTORE_BW_AVX512VL): New.
5366         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5367         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
5368         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
5369         (define_insn "<avx512>_storedqu<mode>_mask" with
5370         VI48_AVX512VL): New.
5371         (define_insn "<avx512>_storedqu<mode>_mask" with
5372         VI12_AVX512VL): Ditto.
5373
5374 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5375             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5376             Anna Tikhonova  <anna.tikhonova@intel.com>
5377             Ilya Tocar  <ilya.tocar@intel.com>
5378             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5379             Ilya Verbin  <ilya.verbin@intel.com>
5380             Kirill Yukhin  <kirill.yukhin@intel.com>
5381             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5382
5383         * config/i386/sse.md
5384         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
5385         (define_mode_iterator VI48_AVX512BW): New.
5386         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
5387         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5388         with VI48_AVX2_48_AVX512F): New.
5389         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5390         with VI2_AVX512VL): Ditto.
5391
5392 2014-08-27  Richard Biener  <rguenther@suse.de>
5393
5394         PR middle-end/62239
5395         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
5396         (fold_builtin_3): Do not fold strcat_chk here.
5397         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
5398         from builtins.c.
5399         (gimple_fold_builtin): Fold strcat_chk here.
5400
5401 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
5402
5403         * dwarf2out.h (dwarf2out_decl): Remove prototype.
5404         * dwarf2out.c (dwarf2out_decl): Make static.
5405
5406 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
5407
5408         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
5409
5410 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5411
5412         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
5413         from rtx to rtx_insn *.
5414         (cselib_lookup_from_insn): Likewise for final param.
5415         (cselib_subst_to_values_from_insn): Likewise.
5416         (cselib_add_permanent_equiv): Likewise.
5417
5418         * cselib.c (cselib_current_insn): Likewise for this variable.
5419         (cselib_subst_to_values_from_insn): Likewise for param "insn".
5420         (cselib_lookup_from_insn): Likewise.
5421         (cselib_add_permanent_equiv): Likewise for param "insn" and local
5422         "save_cselib_current_insn".
5423         (cselib_process_insn): Replace use of NULL_RTX with NULL.
5424
5425         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
5426         from rtx to rtx_insn *.
5427
5428 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5429
5430         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
5431         rtx_insn *.
5432
5433 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5434
5435         * df.h (df_dump_insn_problem_function): Strengthen first param of
5436         this callback from const_rtx to const rtx_insn *.
5437         (struct df_insn_info): Strengthen field "insn" from rtx to
5438         rtx_insn *.
5439         (DF_REF_INSN): Eliminate this function, reinstating the older
5440         macro definition.
5441         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
5442         (df_reg_defined): Likewise.
5443         (df_find_use): Likewise.
5444         (df_reg_used): Likewise.
5445         (df_dump_insn_top): Strengthen param 1 from const_rtx to
5446         const rtx_insn *.
5447         (df_dump_insn_bottom): Likewise.
5448         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
5449         (df_insn_debug_regno): Likewise.
5450         (debug_df_insn): Likewise.
5451         (df_rd_simulate_one_insn): Likewise for param 2.
5452         (df_word_lr_simulate_defs): Likewise for param 1.
5453         (df_word_lr_simulate_uses): Likewise.
5454         (df_md_simulate_one_insn): Likewise for param 2.
5455         (df_simulate_find_noclobber_defs): Likewise for param 1.
5456         (df_simulate_find_defs): Likewise.
5457         (df_simulate_defs): Likewise.
5458         (df_simulate_uses): Likewise.
5459         (df_simulate_one_insn_backwards): Likewise for param 2.
5460         (df_simulate_one_insn_forwards): Likewise.
5461         (df_uses_create): Likewise for param 2.
5462         (df_insn_create_insn_record): Likewise for param 1.
5463         (df_insn_delete): Likewise.
5464         (df_insn_rescan): Likewise.
5465         (df_insn_rescan_debug_internal): Likewise.
5466         (df_insn_change_bb): Likewise.
5467         (df_notes_rescan): Likewise.
5468         * rtl.h (remove_death): Likewise for param 2.
5469         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
5470         const rtx_insn *.
5471         * sched-int.h (reemit_notes): Strengthen param from rtx to
5472         rtx_insn *.
5473         * valtrack.h (propagate_for_debug): Likewise for param 1.
5474
5475         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
5476         local "tmp_rtx" from const_rtx to const rtx_insn *.
5477         * combine.c (remove_death): Strengthen param "insn" from rtx to
5478         rtx_insn *.
5479         (move_deaths): Likewise for local "where_dead".
5480         * cse.c (delete_trivially_dead_insns): Introduce local
5481         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
5482         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
5483         rtx_insn *.
5484         (df_reg_defined): Likewise.
5485         (df_find_use): Likewise.
5486         (df_reg_used): Likewise.
5487         (df_dump_insn_problem_data): Strengthen param "insn" from
5488         const_rtx to const rtx_insn *.
5489         (df_dump_insn_top): Likewise.
5490         (df_dump_insn_bottom): Likewise.
5491         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
5492         (df_insn_debug_regno): Likewise.
5493         (debug_df_insn): Likewise.
5494         (DF_REF_INSN): Delete.
5495         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
5496         from rtx to rtx_insn *.
5497         (df_chain_insn_top_dump): Strengthen param "insn" from
5498         const_rtx to const rtx_insn *.
5499         (df_chain_insn_bottom_dump): Likewise.
5500         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
5501         rtx_insn *.
5502         (df_word_lr_simulate_uses): Likewise.
5503         (df_print_note): Likewise.
5504         (df_remove_dead_and_unused_notes): Likewise.
5505         (df_set_unused_notes_for_mw): Likewise.
5506         (df_set_dead_notes_for_mw): Likewise.
5507         (df_create_unused_note): Likewise.
5508         (df_simulate_find_defs): Likewise.
5509         (df_simulate_find_uses): Likewise.
5510         (df_simulate_find_noclobber_defs): Likewise.
5511         (df_simulate_defs): Likewise.
5512         (df_simulate_uses): Likewise.
5513         (df_simulate_one_insn_backwards): Likewise.
5514         (df_simulate_one_insn_forwards): Likewise.
5515         (df_md_simulate_one_insn): Likewise.
5516         * df-scan.c (df_uses_create): Likewise.
5517         (df_insn_create_insn_record): Likewise.
5518         (df_insn_delete): Likewise.
5519         (df_insn_rescan): Likewise.
5520         (df_insn_rescan_debug_internal): Likewise.
5521         (df_insn_change_bb): Likewise.
5522         (df_notes_rescan): Likewise.
5523         (df_refs_add_to_chains): Likewise.
5524         (df_insn_refs_verify): Likewise.
5525         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
5526         when invoking df_insn_delete.
5527         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
5528         (set_unique_reg_note): Add checked cast.
5529         * final.c (cleanup_subreg_operands): Likewise.
5530         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
5531         "insn" from rtx to rtx_insn *.
5532         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
5533         "last" from rtx to rtx_insn *.
5534         * ira-emit.c (change_regs_in_insn): New function.
5535         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
5536         Invoke change_regs_in_insn rather than change_regs.
5537         * ira.c (update_equiv_regs): Strengthen locals "insn",
5538         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
5539         for_each_rtx_in_insn rather than for_each_rtx.
5540         * recog.c (confirm_change_group): Add checked casts.
5541         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
5542         Add checked cast.
5543         (peep2_fill_buffer): Add checked cast.
5544         * rtlanal.c (remove_note): Likewise.
5545         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
5546         locals "next" "end" from rtx to rtx_insn *.
5547
5548 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5549
5550         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
5551         to rtx_insn *.
5552         (struct reg_use_data): Likewise for field "insn".
5553         (insn_cost): Likewise for param.
5554         (real_insn_for_shadow): Likewise for return type and param.
5555         (increase_insn_priority): Likewise for param 1.
5556         (debug_dependencies): Likewise for both params.
5557
5558         * haifa-sched.c (insn_delay): Likewise for param "insn".
5559         (real_insn_for_shadow): Likewise for return type and param "insn".
5560         (update_insn_after_change): Likewise for param "insn".
5561         (recompute_todo_spec): Likewise for param "next" and locals "pro",
5562         "other".
5563         (insn_cost): Likewise for param "insn".
5564         (increase_insn_priority): Likewise.
5565         (calculate_reg_deaths): Likewise.
5566         (setup_insn_reg_pressure_info): Likewise.
5567         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
5568         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
5569         (model_recompute): Likewise.
5570         (must_restore_pattern_p): Likewise for param "next".
5571         (model_excess_cost): Likewise for param "insn".
5572         (queue_remove): Likewise.
5573         (adjust_priority): Likewise for param "prev".
5574         (update_register_pressure): Likewise for param "insn".
5575         (setup_insn_max_reg_pressure): Likewise for local "insn".
5576         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
5577         (model_add_to_schedule): Likewise.
5578         (model_reset_queue_indices): Likewise for local "insn".
5579         (unschedule_insns_until): Strengthen local "recompute_vec" from
5580         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
5581         "con" from rtx to rtx_insn *.
5582         (restore_last_backtrack_point): Likewise for both locals "x". Add
5583         checked casts.
5584         (estimate_insn_tick): Likewise for param "insn".
5585         (commit_schedule): Likewise for params "prev_head", "tail" and
5586         local "x".
5587         (verify_shadows): Likewise for locals "i1", "i2".
5588         (dump_insn_stream): Likewise for params "head", "tail" and locals
5589         "next_tail", "insn".
5590         (schedule_block): Likewise for locals "insn", "x".  Add a checked
5591         cast.
5592         (fix_inter_tick): Likewise for params "head", "tail".
5593         (create_check_block_twin): Likewise for local "jump".
5594         (haifa_change_pattern): Likewise for param "insn".
5595         (haifa_speculate_insn): Likewise.
5596         (dump_new_block_header): Likewise for params "head", "tail".
5597         (fix_jump_move): Likewise for param "jump".
5598         (move_block_after_check): Likewise.
5599         (sched_init_insn_luid): Likewise for param "insn".
5600         (sched_init_luids): Likewise for local "insn".
5601         (insn_luid): Likewise for param "insn".
5602         (init_h_i_d): Likewise.
5603         (haifa_init_h_i_d): Likewise for local "insn".
5604         (haifa_init_insn): Likewise for param "insn".
5605         * sched-deps.c (add_dependence): Likewise for local "real_pro",
5606         "other".
5607         (create_insn_reg_use): Likewise for param "insn".
5608         (setup_insn_reg_uses): Likewise.  Add a checked cast.
5609         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5610         "tail" from rtx to rtx_insn *.
5611         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5612         "insn", "next_tail".
5613
5614 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5615
5616         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5617         from rtx to rtx_insn *.
5618         (model_add_to_schedule): Likewise for locals "start", "end",
5619         "iter".
5620
5621 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5622
5623         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5624         rtx_insn *.
5625         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
5626         "to" and locals "insn", "next", "copy".  Remove now-redundant
5627         checked cast.
5628
5629 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5630
5631         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5632         rtx_insn * and param 4 from rtx * to rtx_insn **.
5633         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5634         param 2 from rtx * to rtx_insn **.
5635
5636         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5637         rtx_insn * and final param from rtx * to rtx_insn **.
5638
5639         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5640         from rtx to rtx_insn *.
5641         (try_head_merge_bb): Likewise for both locals named "move_upto".
5642         * df-problems.c (can_move_insns_across): Likewise for params
5643         "from", "to", "across_from", "across_to" and locals "insn",
5644         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
5645         rtx_insn **.
5646         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5647         from rtx to rtx_insn *.
5648         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5649         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
5650         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5651         rtx_insn *.
5652         (noce_try_abs): Likewise.
5653         (noce_get_condition): Likewise for param "jump".  Strengthen param
5654         "earliest" from rtx * to rtx_insn **.
5655         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5656         rtx_insn *.
5657         (find_cond_trap): Likewise.
5658         (dead_or_predicable): Likewise for local "earliest".
5659         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
5660         checked cast.
5661         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5662         and local "prev".  Strengthen param "earliest" from rtx * to
5663         rtx_insn **.
5664         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5665         Strengthen param "earliest" from rtx * to rtx_insn **.
5666
5667 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5668
5669         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5670         "to" and local "insn" from rtx to rtx_insn *.
5671
5672 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5673
5674         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5675         from rtx to rtx_insn *.
5676         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5677         (code_motion_path_driver): Likewise for local "last_insn".
5678         (simplify_changed_insns): Likewise for local "insn".
5679
5680 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5681
5682         * rtl.h (push_to_sequence): Strengthen param from rtx to
5683         rtx_insn *.
5684         (push_to_sequence2): Likewise for both params.
5685         (delete_insns_since): Likewise for param.
5686         (reorder_insns_nobb): Likewise for all three params.
5687         (set_new_first_and_last_insn): Likewise for both params.
5688
5689         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5690         rtx_insn *.  Remove now-redundant cast.
5691         (set_last_insn): Likewise.
5692
5693         * builtins.c (expand_builtin_return): Strengthen local
5694         "call_fusage" from rtx to rtx_insn *.
5695         * cfgrtl.c (create_basic_block_structure): Likewise for local
5696         "after".
5697         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5698         "first", "last" and local "insn".
5699         (delete_insns_since): Likewise for param "from".
5700         (reorder_insns_nobb): Likewise for params "from", "to", "after"
5701         and local "x".
5702         (push_to_sequence): Likewise for param "first" and local "last".
5703         (push_to_sequence2): Likewise for params "first" and "last".
5704         * lra.c (emit_add3_insn): Likewise for local "last".
5705         (lra_emit_add): Likewise.
5706         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5707         "last_insn".
5708         (process_address_1): Likewise for locals "insn", last".
5709         * modulo-sched.c (ps_first_note): Likewise for return type.
5710         * optabs.c (expand_binop_directly): Likewise for param "last".
5711
5712 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5713
5714         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5715         to rtx_insn*.
5716         * emit-rtl.c (get_last_insn_anywhere): Likewise.
5717
5718 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5719
5720         * function.h (struct sequence_stack): Strengthen fields "first"
5721         and "last" from rtx to rtx_insn *.
5722         (struct emit_status): Likewise for fields "x_first_insn" and
5723         "x_last_insn".
5724
5725         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5726         (set_first_insn): Add checked cast.
5727         (get_last_insn): Remove now-redundant checked cast.
5728         (set_last_insn): Add checked cast.
5729
5730         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5731         "saved_first" and "saved_last" from rtx to rtx_insn *.
5732
5733 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5734
5735         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5736         (unlink_insn_chain): Strengthen both params from rtx to
5737         rtx_insn *.
5738
5739         * cfgrtl.c (cfg_layout_function_header): Likewise for this
5740         variable.
5741         (unlink_insn_chain): Likewise for params "first" and "last".
5742         Remove now-redundant checked cast.
5743         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5744         (fixup_reorder_chain): Strengthen local "insn" from rtx to
5745         rtx_insn *.
5746         * emit-rtl.c (link_insn_into_chain): Likewise for all three
5747         params.
5748         (add_insn): Likewise for param "insn" and local "prev".
5749         (add_insn_after_nobb): Likewise for both params and local "next".
5750         (add_insn_before_nobb): Likewise for both params and local "prev".
5751         (add_insn_after): Rename param "after" to "uncast_after",
5752         introducing local "after" with another checked cast.
5753         (add_insn_before): Rename params "insn" and "before", giving them
5754         "uncast_" prefixes, adding the old names back using checked casts.
5755         (emit_note_after): Likewise for param "after".
5756         (emit_note_before): Likewise for param "before".
5757         (emit_label): Add a checked cast.
5758
5759 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5760
5761         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
5762         "insn" from rtx to rtx_insn *.
5763
5764         * cselib.c (cselib_record_sets_hook): Likewise.
5765
5766         * var-tracking.c (add_with_sets): Likewise, renaming back from
5767         "uncast_insn" to "insn" and eliminating the checked cast from rtx
5768         to rtx_insn *.
5769
5770 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5771
5772         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5773         and "header_" from rtx to rtx_insn *.
5774         (struct basic_block_d): Likewise for field "head_" within "x"
5775         field of union basic_block_il_dependent.
5776         (BB_HEAD): Drop function...
5777         (SET_BB_HEAD): ...and this function in favor of...
5778         (BB_HEAD): ...reinstate macro.
5779         (BB_END): Drop function...
5780         (SET_BB_END): ...and this function in favor of...
5781         (BB_END): ...reinstate macro.
5782         (BB_HEADER): Drop function...
5783         (SET_BB_HEADER): ...and this function in favor of...
5784         (BB_HEADER): ...reinstate macro.
5785
5786         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5787         (fix_crossing_unconditional_branches): Likewise.
5788         * caller-save.c (save_call_clobbered_regs): Likewise.
5789         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5790         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5791         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5792         (merge_blocks_move_successor_nojumps): Likewise.
5793         (outgoing_edges_match): Update use of for_each_rtx to
5794         for_each_rtx_in_insn.
5795         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5796         (expand_gimple_cond): Likewise.
5797         (expand_gimple_tailcall): Likewise.
5798         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5799         SET_BB_END.
5800         (construct_exit_block): Drop use of SET_BB_END.
5801         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5802         rtx_insn *.
5803         (delete_insn): Rename param "insn" to "uncast_insn", introducing
5804         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
5805         SET_BB_HEAD and SET_BB_END.
5806         (create_basic_block_structure): Drop use of SET_BB_HEAD and
5807         SET_BB_END.
5808         (rtl_delete_block): Drop use of SET_BB_HEAD.
5809         (rtl_split_block): Drop use of SET_BB_END.
5810         (emit_nop_for_unique_locus_between): Likewise.
5811         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5812         (block_label): Drop use of SET_BB_HEAD.
5813         (fixup_abnormal_edges): Drop use of SET_BB_END.
5814         (record_effective_endpoints): Drop use of SET_BB_HEADER.
5815         (relink_block_chain): Likewise.
5816         (fixup_reorder_chain): Drop use of SET_BB_END.
5817         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5818         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5819         rtx_insn **.  Drop use of SET_BB_HEADER.
5820         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5821         SET_BB_HEAD.
5822         (BB_HEAD): Delete this function.
5823         (SET_BB_HEAD): Likewise.
5824         (BB_END): Likewise.
5825         (SET_BB_END): Likewise.
5826         (BB_HEADER): Likewise.
5827         (SET_BB_HEADER): Likewise.
5828         * emit-rtl.c (add_insn_after):  Rename param "insn" to
5829         "uncast_insn", adding a new local "insn" and a checked cast to
5830         rtx_insn *.  Drop use of SET_BB_END.
5831         (remove_insn): Strengthen locals "next" and "prev" from rtx to
5832         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
5833         (reorder_insns): Drop use of SET_BB_END.
5834         (emit_insn_after_1): Strengthen param "first" and locals "last",
5835         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
5836         (emit_pattern_after_noloc): Add checked cast.
5837         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5838         (restore_other_notes): Likewise.
5839         (move_insn): Likewise.
5840         (sched_extend_bb): Likewise.
5841         (fix_jump_move): Likewise.
5842         * ifcvt.c (noce_process_if_block): Likewise.
5843         (dead_or_predicable): Likewise.
5844         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5845         * reg-stack.c (change_stack): Drop use of SET_BB_END.
5846         * sel-sched-ir.c (sel_move_insn): Likewise.
5847         * sel-sched.c (move_nop_to_previous_block): Likewise.
5848
5849         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5850         SET_BB_END.
5851         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5852
5853 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5854
5855         * basic-block.h (create_basic_block_structure): Strengthen params
5856         1 "head" and 2 "end" from rtx to rtx_insn *.
5857         * cfgrtl.c (create_basic_block_structure): Likewise.
5858         (rtl_create_basic_block): Update casts from void * to rtx to
5859         rtx_insn *, so that we can pass them as rtx_insn * to
5860         create_basic_block_structure.
5861         * sel-sched-ir.c (sel_create_basic_block): Likewise.
5862
5863 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5864
5865         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5866         rtx_insn **.
5867         (check_for_inc_dec): Strengthen param "insn" from rtx to
5868         rtx_insn *.
5869
5870         * cselib.h (cselib_process_insn): Likewise.
5871
5872         * cselib.c (cselib_record_sets): Likewise.
5873         (cselib_process_insn): Likewise.
5874
5875         * dse.c (struct insn_info): Likewise for field "insn".
5876         (check_for_inc_dec_1): Likewise for local "insn".
5877         (check_for_inc_dec): Likewise for param "insn".
5878         (scan_insn): Likewise.
5879         (dse_step1): Likewise for local "insn".
5880
5881         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5882         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
5883
5884 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5885
5886         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5887         from rtx to rtx_insn *.
5888         (DEP_PRO): Delete this function and...
5889         (SET_DEP_PRO): ...this function in favor of...
5890         (DEP_PRO): ...reinstate this macro.
5891         (DEP_CON): Delete this function and...
5892         (SET_DEP_CON): ...this function in favor of...
5893         (DEP_CON): ...reinstate this old macro.
5894         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5895         (init_dep): Likewise.
5896         (set_priorities): Likewise for both params.
5897         (sd_copy_back_deps): Likewise for params 1 and 2.
5898
5899         * haifa-sched.c (priority): Likewise for param "insn" and local
5900         "next".
5901         (set_priorities): Likewise for params "head" and "tail" and local
5902         "insn".
5903         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5904         local "consumer".
5905         (add_to_speculative_block): Add a checked cast.
5906         (create_check_block_twin): Drop use of SET_DEP_CON.
5907         (add_jump_dependencies): Strengthen params "insn" and "jump" from
5908         rtx to rtx_insn *.
5909
5910         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5911         Drop use of SET_DEP_PRO
5912         (init_dep): Strengthen params "pro" and "con" from rtx to
5913         rtx_insn *.
5914         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
5915         use of SET_DEP_CON.
5916         (DEP_PRO): Delete.
5917         (DEP_CON): Delete.
5918         (SET_DEP_PRO): Delete.
5919         (SET_DEP_CON): Delete.
5920
5921 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5922
5923         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5924         from rtx to rtx_insn *.
5925         (VINSN_INSN_RTX): Eliminate rvalue function and...
5926         (SET_VINSN_INSN): ...lvalue function in favor of...
5927         (VINSN_INSN_RTX): reinstate this old macro.
5928
5929         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5930         in favor of VINSN_INSN_RTX.
5931         (VINSN_INSN_RTX): Delete this function.
5932         (SET_VINSN_INSN_RTX): Likewise.
5933
5934 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5935
5936         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5937         (BND_TO): Delete this function and...
5938         (SET_BND_TO): ...this functions in favor of...
5939         (BND_TO): ...reinstating this macro.
5940         (struct _fence): Strengthen field "executing_insns" from
5941         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
5942         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5943         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5944         and param "insn" from rtx to insn_t.
5945         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5946         rtx_insn *.
5947
5948         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5949         vec<rtx_insn *> .
5950         (rtx_vec_t): Likewise.
5951         (struct sched_deps_info_def): Strengthen param of "start_insn"
5952         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
5953         "note_mem_dep" callback and first param of "note_dep" callback.
5954
5955         * haifa-sched.c (add_to_speculative_block): Strengthen param
5956         "insn" from rtx to rtx_insn *.
5957         (clear_priorities): Likewise.
5958         (calc_priorities): Likewise for local "insn".
5959
5960         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5961         Remove redundant checked cast.
5962         (haifa_note_mem_dep): Likewise for param "pending_insn".
5963         (haifa_note_dep): Likewise for param "elem".
5964         (note_mem_dep): Likewise for param "e".
5965         (sched_analyze_1): Add checked casts.
5966         (sched_analyze_2): Likewise.
5967
5968         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5969         from rtx to rtx_insn *.
5970         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5971         from vec<rtx> * to vec<rtx_insn *> *.
5972
5973         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5974         scaffolding.
5975         (flist_add): Strengthen param "executing_insns" from
5976         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5977         (advance_deps_context): Remove now-redundant checked cast.
5978         (init_fences): Replace uses of NULL_RTX with NULL.
5979         (merge_fences): Strengthen params "last_scheduled_insn" and
5980         "sched_next" from rtx to rtx_insn * and "executing_insns" from
5981         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5982         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5983         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5984         an instruction, rather than doing double-duty as a pattern.
5985         (return_nop_to_pool): Update for change of insn_t.
5986         (deps_init_id): Remove now-redundant checked cast.
5987         (struct sched_scan_info_def): Strengthen param of "init_insn"
5988         callback from rtx to insn_t.
5989         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5990         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5991         NULL.
5992         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5993         "end" from rtx to rtx_insn *.
5994         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5995         (rtx insn_rtx, bool force_unique_p)
5996         (BND_TO): Delete function.
5997         (SET_BND_TO): Delete function.
5998
5999         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
6000         rtx to rtx_insn *.
6001         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
6002         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
6003         rtx to rtx_insn *.
6004         (undo_transformations): Likewise for param "insn".
6005         (update_liveness_on_insn): Likewise.
6006         (compute_live_below_insn): Likewise for param "insn" and local
6007         "succ".
6008         (update_data_sets): Likewise for param "insn".
6009         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
6010         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
6011         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
6012         rtx_insn *.
6013         (move_cond_jump): Likewise for param "insn".
6014         (move_cond_jump): Drop use of SET_BND_TO.
6015         (compute_av_set_on_boundaries): Likewise.
6016         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
6017         (update_and_record_unavailable_insns): Strengthen local "bb_end"
6018         from rtx to rtx_insn *.
6019         (maybe_emit_renaming_copy): Likewise for param "insn".
6020         (maybe_emit_speculative_check): Likewise.
6021         (handle_emitting_transformations): Likewise.
6022         (remove_insn_from_stream): Likewise.
6023         (code_motion_process_successors): Strengthen local "succ" from rtx
6024         to insn_t.
6025
6026 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6027
6028         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
6029         ilist_t, not _xlist_t;
6030         (ILIST_INSN): Define in terms of new union field "insn".
6031         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
6032         _XLIST_NEXT.
6033         (struct _list_node): Add new field "insn" to the union, of type
6034         insn_t.
6035         (ilist_add): Replace macro with an inline function, requiring an
6036         insn_t.
6037         (ilist_remove): Define this macro directly in terms of
6038         _list_remove, rather than indirectly via _xlist_remove.
6039         (ilist_clear): Likewise, in terms of _list_clear rather than
6040         _xlist_clear.
6041         (ilist_is_in_p): Replace macro with an inline function, requiring
6042         an insn_t.
6043         (_list_iter_cond_insn): New function.
6044         (ilist_iter_remove): Define this macro directly in terms of
6045         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
6046         (ilist_iterator): Define directly in terms of _list_iterator
6047         rather than indirectly through _xlist_iterator.
6048         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
6049         than in terms of _FOR_EACH_X.
6050         (FOR_EACH_INSN_1): Likewise.
6051
6052 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
6053
6054         PR target/60606
6055         PR target/61330
6056         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
6057         DECL_HARD_REGISTER and return for invalid register specifications.
6058         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
6059         DECL_HARD_REGISTER, call expand_one_error_var.
6060         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
6061         CC_REGNUM with non-MODE_CC modes.
6062         (arm_regno_class): Return NO_REGS for PC_REGNUM.
6063
6064 2014-08-26  Marek Polacek  <polacek@redhat.com>
6065
6066         PR c/61271
6067         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
6068
6069 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
6070
6071         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
6072         qi cost; add di cost.
6073         (cortexa57_addrcost_table): Likewise.
6074
6075 2014-08-26  Marek Polacek  <polacek@redhat.com>
6076
6077         PR c/61271
6078         * expr.c (is_aligning_offset): Remove logical not.
6079
6080 2014-08-26  Marek Polacek  <polacek@redhat.com>
6081
6082         PR c/61271
6083         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
6084         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
6085
6086 2014-08-26  Richard Biener  <rguenther@suse.de>
6087
6088         PR tree-optimization/62175
6089         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6090         expand possibly trapping operations.
6091
6092 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6093
6094         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
6095         "insn" from rtx to rtx_insn *.
6096         (permute_load): Likewise for param "insn".
6097         (permute_store): Likewise.
6098         (handle_special_swappables): Likewise for local "insn".
6099         (replace_swap_with_copy): Likewise for locals "insn" and
6100         "new_insn".
6101         (rs6000_analyze_swaps): Likewise for local "insn".
6102
6103 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6104
6105         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
6106         to rtx_insn *.
6107
6108 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6109
6110         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
6111         "note_list" from rtx to rtx_insn *.
6112         (BB_NOTE_LIST): Replace this function and...
6113         (SET_BB_NOTE_LIST): ...this function with...
6114         (BB_NOTE_LIST): ...the former macro implementation.
6115
6116         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
6117         local "from_start" from rtx to rtx_insn *.  Strengthen param
6118         "to_endp" from rtx * to rtx_insn **.
6119
6120         * haifa-sched.c (concat_note_lists): Likewise.
6121         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
6122         BB_NOTE_LIST.
6123         (sel_restore_notes): Likewise.
6124         (move_bb_info): Likewise.
6125         (BB_NOTE_LIST): Delete this function.
6126         (SET_BB_NOTE_LIST): Delete this function.
6127         * sel-sched.c (create_block_for_bookkeeping): Eliminate
6128         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
6129
6130 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6131
6132         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
6133         from rtx * to rtx_insn **.
6134         (reorder2): Likewise.
6135         (dependencies_evaluation_hook): Strengthen params "head", "tail"
6136         from rtx to rtx_insn *.
6137
6138         * doc/tm.texi: Update mechanically for above change to target.def.
6139
6140         * sched-int.h (note_list): Strengthen this variable from rtx to
6141         rtx_insn *.
6142         (remove_notes): Likewise for both params.
6143         (restore_other_notes): Likewise for return type and first param.
6144         (struct ready_list): Strengthen field "vec" from rtx * to
6145         rtx_insn **.
6146         (struct dep_replacement): Strenghten field "insn" from rtx to
6147         rtx_insn *.
6148         (struct deps_desc): Likewise for fields "last_debug_insn",
6149         "last_args_size".
6150         (struct haifa_sched_info): Likewise for callback field
6151         "can_schedule_ready_p"'s param, for first param of "new_ready"
6152         callback field, for both params of "rank" callback field, for
6153         first field of "print_insn" callback field (with a const), for
6154         both params of "contributes_to_priority" callback, for param
6155         of "insn_finishes_block_p" callback, for fields "prev_head",
6156         "next_tail", "head", "tail", for first param of "add_remove_insn"
6157         callback, for first param of "begin_schedule_ready" callback, for
6158         both params of "begin_move_insn" callback, and for second param
6159         of "advance_target_bb" callback.
6160         (add_dependence): Likewise for params 1 and 2.
6161         (sched_analyze): Likewise for params 2 and 3.
6162         (deps_analyze_insn): Likewise for param 2.
6163         (ready_element): Likewise for return type.
6164         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6165         (try_ready): Strenghten param from rtx to rtx_insn *.
6166         (sched_emit_insn): Likewise for return type.
6167         (record_delay_slot_pair): Likewise for params 1 and 2.
6168         (add_delay_dependencies): Likewise for param.
6169         (contributes_to_priority): Likewise for both params.
6170         (find_modifiable_mems): Likewise.
6171
6172         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
6173         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
6174         "first_older_only_insn" from rtx to rtx_insn *.
6175         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
6176         rtx_insn **.
6177
6178         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
6179         "last_scheduled_iter0" from rtx to rtx_insn *.
6180         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
6181         (c6x_sched_reorder_1): Strengthen param "ready" and locals
6182         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
6183         "insn" from rtx to rtx_insn *.
6184         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
6185         rtx_insn **.
6186         (c6x_sched_reorder2): Strengthen param "ready" and locals
6187         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
6188         "insn" from rtx to rtx_insn *.
6189         (c6x_variable_issue):  Add a checked cast when assigning from insn
6190         to ss.last_scheduled_iter0.
6191         (split_delayed_branch): Strengthen param "insn" and local "i1"
6192         from rtx to rtx_insn *.
6193         (split_delayed_nonbranch): Likewise.
6194         (undo_split_delayed_nonbranch): Likewise for local "insn".
6195         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
6196         "entry_after", "end_packet", "head_insn", "tail_insn",
6197         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
6198         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
6199         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
6200         but add a checked cast on loop->start_label.  Consolidate calls to
6201         avoid assigning result of gen_spkernel to "insn", now an
6202         rtx_insn *.
6203
6204         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
6205         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
6206         rtx to rtx_insn *.
6207         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
6208         rtx_insn **.  Strengthen locals "top", "next" from rtx to
6209         rtx_insn *.
6210         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
6211         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
6212         (add_parameter_dependencies): Strengthen params "call", "head" and
6213         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
6214         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
6215         (add_dependee_for_func_arg): Likewise for param "arg" and local
6216         "insn".
6217         (ix86_dependencies_evaluation_hook): Likewise for params "head",
6218         "tail" and locals "insn", "first_arg".
6219
6220         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
6221         for params "head", "tail" and locals "insn", "next", "next_tail".
6222         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
6223         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
6224         "insn", "lowest", "highest" from rtx to rtx_insn *.
6225         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
6226         rtx_insn **.
6227         (ia64_sched_reorder2): Likewise.
6228
6229         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
6230         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
6231         from rtx * to rtx_insn **.
6232         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
6233         rtx_insn **.
6234         (mep_print_sched_insn): Strengthen param "insn" from rtx to
6235         rtx_insn *.
6236         (mep_sched_reorder): Strengthen param "ready" from rtx * to
6237         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
6238         to rtx_insn *.
6239
6240         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
6241         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
6242         to rtx_insn *.
6243         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
6244         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
6245         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
6246         rtx_insn **.
6247         (vr4130_reorder): Likewise.
6248         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
6249         rtx to rtx_insn *.
6250         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
6251         rtx_insn **.
6252         (mips_sched_reorder): Likewise.
6253         (mips_sched_reorder2): Likewise.
6254
6255         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
6256
6257         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
6258         Strengthen local "tmp" from rtx to rtx_insn *.
6259         (rs6000_sched_reorder2): Likewise.
6260
6261         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
6262         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
6263         (s390_sched_reorder): Strengthen param "ready" from rtx * to
6264         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
6265
6266         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
6267         "tmp2" from rtx to rtx_insn *.
6268         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
6269         Strengthen local "insn" from rtx to rtx_insn *.
6270         (ready_reorder): Strengthen param "ready" from rtx * to
6271         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
6272         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
6273         (sh_reorder2): Likewise.
6274
6275         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
6276         local "insn" from rtx to rtx_insn *.
6277
6278         * haifa-sched.c (note_list): Strengthen this variable from rtx to
6279         rtx_insn *.
6280         (scheduled_insns): Strengthen this variable from vec<rtx> to
6281         vec<rtx_insn *>.
6282         (set_modulo_params): Likewise for locals "i1", "i2".
6283         (record_delay_slot_pair): Likewise for params "i1", "i2".
6284         (add_delay_dependencies): Likewise for param "insn".
6285         (cond_clobbered_p): Likewise.
6286         (recompute_todo_spec): Likewise for local "prev".
6287         (last_scheduled_insn): Likewise for this variable.
6288         (nonscheduled_insns_begin): Likewise.
6289         (model_set_excess_costs): Strengthen param "insns" from rtx * to
6290         rtx_insn **.
6291         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
6292         rtx_insn *.
6293         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
6294         Strengthen local "insn" from rtx to rtx_insn *.
6295         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
6296         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6297         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
6298         (ready_remove_first): Likewise for return type and local "t".
6299         (ready_element): Likewise for return type.
6300         (ready_remove): Likewise for return type and local "t".
6301         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
6302         (check_clobbered_conditions): Strengthen local "x" from rtx to
6303         rtx_insn *, adding a checked cast.
6304         (schedule_insn): Likewise for param "insn".
6305         (remove_notes): Likewise for params "head", "tail" and locals
6306         "next_tail", "insn", "next".
6307         (struct haifa_saved_data): Likewise for fields
6308         "last_scheduled_insn", "nonscheduled_insns_begin".
6309         (save_backtrack_point): Update for change to field "vec" of
6310         struct ready_list.
6311         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
6312         rtx_insn **.
6313         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
6314         from rtx to rtx_insn *
6315         (resolve_dependencies): Strengthen param "insn" from rtx to
6316         rtx_insn *
6317         (restore_other_notes): Likewise for return type, for param "head"
6318         and local "note_head".
6319         (undo_all_replacements): Likewise for local "insn".
6320         (first_nonscheduled_insn): Likewise for return type and local "insn".
6321         (queue_to_ready): Likewise for local "insn", adding checked casts.
6322         (early_queue_to_ready): Likewise for local "insn".
6323         (debug_ready_list_1): Strengthen local "p" from rtx * to
6324         rtx_insn **.
6325         (move_insn): Strengthen param "insn" and local "note" from rtx to
6326         rtx_insn *
6327         (insn_finishes_cycle_p): Likewise for param "insn".
6328         (max_issue): Likewise for local "insn".
6329         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
6330         to rtx_insn **.
6331         (commit_schedule): Strengthen param "prev_head" and local "insn"
6332         from rtx to rtx_insn *
6333         (prune_ready_list): Likewise for local "insn".
6334         (schedule_block): Likewise for locals "prev_head", "head", "tail",
6335         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
6336         (set_priorities): Likewise for local "prev_head".
6337         (try_ready): Likewise for param "next".
6338         (fix_tick_ready): Likewise.
6339         (change_queue_index): Likewise.
6340         (sched_extend_ready_list): Update for change to field "vec" of
6341         struct ready_list.
6342         (generate_recovery_code): Strengthen param "insn" from rtx to
6343         rtx_insn *.
6344         (begin_speculative_block): Likewise.
6345         (create_check_block_twin): Likewise for param "insn" and locals
6346         "label", "check", "twin".  Introduce local "check_pat" to avoid
6347         "check" being used as a plain rtx before being used as an insn.
6348         (fix_recovery_deps): Add a checked cast to rtx_insn * when
6349         extracting elements from ready_list.
6350         (sched_remove_insn): Strengthen param "insn" from rtx to
6351         rtx_insn *.
6352         (sched_emit_insn): Likewise for return type.
6353         (ready_remove_first_dispatch): Likewise for return type and local
6354         "insn".
6355
6356         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
6357
6358         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
6359         const rtx_insn *.
6360
6361         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
6362         from rtx to rtx_insn *.
6363         (add_dependence_list): Likewise for param "insn".  Add a checked
6364         cast.
6365         (add_dependence_list_and_free): Strengthen param "insn" from rtx
6366         to rtx_insn *.  Strengthen param "list_p" from rtx * to
6367         rtx_insn **.
6368         (chain_to_prev_insn): Strengthen param "insn" and locals
6369         "prec_nonnote", "i" from rtx to rtx_insn *.
6370         (flush_pending_lists): Likewise for param "insn".
6371         (cur_insn): Likewise for this variable.
6372         (haifa_start_insn): Add a checked cast.
6373         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
6374         (sched_analyze_reg): Likewise for param "insn".
6375         (sched_analyze_1): Likewise.
6376         (sched_analyze_2): Likewise.  Add checked casts.
6377         (sched_analyze_insn): Likewise.  Also for local "prev".
6378         (deps_analyze_insn): Likewise for param "insn".
6379         (sched_analyze): Likewise for params "head", "tail" and local "insn".
6380         (add_dependence_1): Likewise for params "insn", "elem".
6381         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
6382         (parse_add_or_inc): Likewise for param "insn".
6383         (find_inc): Likewise for local "inc_cand".
6384         (find_modifiable_mems): Likewise for params "head", "tail" and
6385         locals "insn", "next_tail".
6386
6387         * sched-ebb.c (init_ready_list): Likewise for local "insn".
6388         (begin_schedule_ready): Likewise for param "insn".
6389         (begin_move_insn): Likewise for params "insn" and "last".
6390         (ebb_print_insn): Strengthen param "insn" from const_rtx to
6391         const rtx_insn *.
6392         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
6393         (ebb_contributes_to_priority): Likewise for params "next", "insn".
6394         (ebb_add_remove_insn): Likewise for param "insn".
6395         (advance_target_bb): Likewise.
6396
6397         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
6398         "insn".
6399         (check_live): Likewise for param "insn".
6400         (init_ready_list): Likewise for local "insn".
6401         (can_schedule_ready_p): Likewise for param "insn".
6402         (begin_schedule_ready): Likewise.
6403         (new_ready): Likewise for param "next".
6404         (rgn_print_insn): Likewise for param "insn".
6405         (rgn_rank): Likewise for params "insn1", "insn2".
6406         (contributes_to_priority): Likewise for params "next", "insn".
6407         (rgn_insn_finishes_block_p): Likewise for param "insn".
6408         (add_branch_dependences): Likewise for params "head", "tail" and
6409         locals "insn", "last".
6410         (rgn_add_remove_insn): Likewise for param "insn".
6411         (advance_target_bb): Likewise.
6412
6413         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
6414         const_rtx to const rtx_insn *.
6415
6416         * sel-sched-dump.h (sel_print_insn): Likewise.
6417
6418         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
6419         (deps_init_id): Likewise.
6420
6421         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
6422         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
6423         rtx_insn **.
6424
6425 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6426
6427         * output.h (final_start_function): Strengthen param 1 from rtx to
6428         rtx_insn *.
6429
6430         * final.c (final_start_function): Likewise, renaming back from
6431         "uncast_first" to "first", and dropping the checked cast from rtx
6432         to rtx_insn *.
6433
6434 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6435
6436         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
6437         * final.c (final): Likewise.  Rename param back from
6438         "uncast_first" to "first" and eliminate the checked cast from rtx
6439         to rtx_insn *.
6440
6441 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6442
6443         * output.h (shorten_branches): Strengthen param from rtx to
6444         rtx_insn *.
6445
6446         * final.c (shorten_branches): Likewise, renaming param back from
6447         "uncast_first" to "first", and dropping the checked cast from rtx
6448         to rtx_insn *.
6449
6450         * genattr.c (gen_attr): Likewise when writing out the prototype of
6451         shorten_branches.
6452
6453 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6454
6455         * sched-int.h (struct haifa_sched_info): Strengthen fields
6456         "prev_head" and "next_tail" from rtx to rtx_insn *.
6457
6458 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6459
6460         * rtl.h (rtx_jump_table_data::get_labels): New method.
6461         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
6462         with use of the new rtx_jump_table_data::get_labels method.
6463         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
6464         to rtx_jump_table_data *.  Simplify by using get_labels method.
6465         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
6466         a dyn_cast, introducing local "table", using it to replace
6467         label-lookup logic with a get_labels method call.
6468         (patch_jump_insn): Simplify using get_labels method.
6469         * dwarf2cfi.c (create_trace_edges): Likewise.
6470         * rtlanal.c (label_is_jump_target_p): Likewise.
6471
6472 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6473
6474         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
6475         to rtx_insn *.
6476
6477         * emit-rtl.c (unshare_all_rtl_1): Likewise.
6478         (unshare_all_rtl_again): Likewise, also for local "p".
6479
6480 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6481
6482         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
6483         to rtx_insn *.
6484         * cfgrtl.c (delete_insn_and_edges): Likewise.
6485
6486 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6487
6488         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
6489         from rtx to rtx_insn *.
6490
6491         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
6492
6493 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6494
6495         * function.c (thread_prologue_and_epilogue_insns): Likewise for
6496         locals "returnjump", "epilogue_end", "insn", "next".
6497
6498         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
6499         "returnjump" from rtx * to rtx_insn **.
6500         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
6501
6502 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6503
6504         * basic-block.h (struct edge_def). Strengthen "r" within
6505         union edge_def_insns from rtx to rtx_insn *.
6506
6507         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
6508         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
6509         rtx_insn *.
6510         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
6511         from rtx to rtx_insn *.
6512         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
6513         rtx_insn *.
6514         * postreload-gcse.c (reg_killed_on_edge): Likewise.
6515         (reg_used_on_edge): Likewise.
6516         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
6517         (gt_pch_nx): New overload for rtx_insn *&.
6518         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
6519         from rtx to rtx_insn *.
6520
6521 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6522
6523         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
6524         from rtx to rtx_insn *.
6525         (BB_FOOTER): Replace function with access macro.
6526         (SET_BB_FOOTER): Delete.
6527
6528         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
6529         with BB_FOOTER.
6530         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6531         (emit_barrier_after_bb): Likewise.
6532         (record_effective_endpoints): Likewise.
6533         (relink_block_chain): Likewise.
6534         (fixup_fallthru_exit_predecessor): Likewise.
6535         (cfg_layout_duplicate_bb): Likewise.
6536         (cfg_layout_split_block): Likewise.
6537         (cfg_layout_delete_block): Likewise.
6538         (cfg_layout_merge_blocks): Likewise.
6539         (BB_FOOTER): Delete function.
6540         (SET_BB_FOOTER): Delete function.
6541         * combine.c (update_cfg_for_uncondjump): Replace uses of
6542         SET_BB_FOOTER with BB_FOOTER.
6543
6544 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6545
6546         * except.h (struct eh_landing_pad_d): Strengthen field
6547         "landing_pad" from rtx to rtx_code_label *.
6548
6549         * except.c (sjlj_emit_dispatch_table): Likewise for param
6550         "dispatch_label"
6551         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
6552
6553 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6554
6555         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
6556         first param from rtx to rtx_insn *.
6557         * config/xtensa/xtensa.c (struct machine_function): Likewise for
6558         field "set_frame_ptr_insn".
6559         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
6560         "csend" from rtx to rtx_code_label *.
6561         (xtensa_expand_atomic): Likewise for local "csloop".
6562         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
6563         rtx_insn *.
6564         (xtensa_call_tls_desc): Likewise for return type and locals
6565         "call_insn", "insns".
6566         (xtensa_legitimize_tls_address): Likewise for local "insns".
6567         (xtensa_expand_prologue): Likewise for locals "insn", "first".
6568
6569 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6570
6571         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
6572         first param from rtx to rtx_insn *.
6573         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
6574         "insn".
6575
6576 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6577
6578         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
6579         Strengthen param 1 from rtx to rtx_insn *.
6580         (tilepro_output_cbranch): Likewise.
6581         (tilepro_adjust_insn_length): Likewise.
6582         (tilepro_final_prescan_insn): Likewise for sole param.
6583
6584         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
6585         Likewise for local "last".
6586         (cbranch_predicted_p): Likewise for param "insn".
6587         (tilepro_output_simple_cbranch_with_opcode): Likewise.
6588         (tilepro_output_cbranch_with_opcode): Likewise.
6589         (tilepro_output_cbranch): Likewise.
6590         (frame_emit_load): Likewise for return type and locals "seq",
6591         "insn".
6592         (emit_sp_adjust): Likewise for return type and local "insn".
6593         (tilepro_expand_epilogue): Likewise for locals "last_insn",
6594         "insn".
6595         (tilepro_adjust_insn_length): Likewise for param "insn".
6596         (next_insn_to_bundle): Likewise for return type and params
6597         "r", "end".
6598         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6599         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6600         local "new_insns".
6601         (match_addli_pcrel): Likewise for param "insn".
6602         (replace_addli_pcrel): Likewise.
6603         (match_auli_pcrel): Likewise.
6604         (replace_auli_pcrel): Likewise.
6605         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6606         "next_insn".
6607         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6608         "queue", "next_queue", "prev".
6609         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6610         (tilepro_final_prescan_insn): Likewise for param "insn".
6611
6612 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6613
6614         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6615         Strengthen param 1 from rtx to rtx_insn *.
6616         (tilegx_output_cbranch): Likewise.
6617         (tilegx_adjust_insn_length): Likewise.
6618         (tilegx_final_prescan_insn): Likewise for sole param.
6619
6620         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6621         or local "last".
6622         (cbranch_predicted_p): Likewise for param "insn".
6623         (tilegx_output_simple_cbranch_with_opcode): Likewise.
6624         (tilegx_output_cbranch_with_opcode): Likewise.
6625         (tilegx_output_cbranch): Likewise.
6626         (frame_emit_load): Likewise for return type.
6627         (set_frame_related_p): Likewise for locals "seq", "insn".
6628         (emit_sp_adjust): Likewise for return type, and for local "insn".
6629         Introduce local "pat" for use in place of "insn" where the latter
6630         isn't an instruction.
6631         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6632         from rtx to rtx_insn *.
6633         (tilegx_adjust_insn_length): Likewise for param "insn".
6634         (next_insn_to_bundle): Likewise for return type and params "r" and
6635         "end".
6636         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6637         "end".
6638         (replace_insns): Likewise for params "old_insn", "new_insns".
6639         (replace_mov_pcrel_step1): Likewise for param "insn" and local
6640         "new_insns".
6641         (replace_mov_pcrel_step2): Likewise.
6642         (replace_mov_pcrel_step3): Likewise.
6643         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6644         "next_insn".
6645         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6646         "queue", "next_queue", "prev".
6647         (tilegx_output_mi_thunk): Likewise for local "insn".
6648         (tilegx_final_prescan_insn): Likewise for param "insn".
6649
6650 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6651
6652         * config/spu/spu.c (frame_emit_store): Strengthen return type from
6653         rtx to rtx_insn *.
6654         (frame_emit_load): Likewise.
6655         (frame_emit_add_imm): Likewise, also for local "insn".
6656         (spu_expand_prologue): Likewise for local "insn".
6657         (struct spu_bb_info): Likewise for field "prop_jump".
6658         (emit_nop_for_insn): Likewise for param "insn" and local
6659         "new_insn".
6660         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6661         "hbr_insn".
6662         (spu_emit_branch_hint): Likewise for params "before", "branch" and
6663         locals "hint", "insn".
6664         (get_branch_target): Likewise for param "branch".
6665         (insn_clobbers_hbr): Likewise for param "insn".
6666         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6667         locals "insn", "before_4", "before_16".
6668         (insert_hbrp): Likewise for local "insn".
6669         (spu_machine_dependent_reorg): Likewise for locals "branch",
6670         "insn", "next", "bbend".
6671         (uses_ls_unit): Likewise for param "insn".
6672         (get_pipe): Likewise.
6673         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6674         introducing a checked cast.
6675         (spu_sched_adjust_cost): Likewise for params "insn" and
6676         "dep_insn".
6677         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6678         (spu_sms_res_mii): Likewise.
6679
6680 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6681
6682         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6683         from rtx to rtx_insn *.
6684         (output_cbranch): Likewise for param 6.
6685         (output_return): Likewise for param 1.
6686         (output_sibcall): Likewise.
6687         (output_v8plus_shift): Likewise.
6688         (output_v8plus_mult): Likewise.
6689         (output_v9branch): Likewise for param 7.
6690         (output_cbcond):  Likewise for param 3.
6691
6692         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6693         for local "insn".
6694         (sparc_legitimize_pic_address): Likewise.
6695         (sparc_emit_call_insn): Likewise.
6696         (emit_save_or_restore_regs): Likewise.
6697         (emit_window_save): Likewise for return type and local "insn".
6698         (sparc_expand_prologue): Likewise for local "insn".
6699         (sparc_flat_expand_prologue): Likewise.
6700         (output_return): Likewise for param "insn".
6701         (output_sibcall): Likewise for param "insn" and local "delay".
6702         (output_ubranch): Likewise for param "insn".
6703         (output_cbranch): Likewise.
6704         (output_cbcond): Likewise.
6705         (output_v9branch): Likewise.
6706         (output_v8plus_shift): Likewise.
6707         (sparc_output_mi_thunk): Likewise for local "insn".
6708         (get_some_local_dynamic_name): Likewise.
6709         (output_v8plus_mult): Likewise for param "insn".
6710
6711 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6712
6713         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6714         from rtx to rtx_insn *.
6715         (output_branchy_insn): Likewise for param 3.
6716         (output_far_jump): Likewise for param 1.
6717         (final_prescan_insn): Likewise.
6718         (sh_insn_length_adjustment): Likewise for sole param.
6719
6720         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6721         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6722         rtx_code_label *.
6723         (sh_emit_compare_and_set): Likewise for local "lab".
6724         (output_far_jump): Strengthen param "insn" and local "prev" from
6725         rtx to rtx_insn *.
6726         (output_branchy_insn): Likewise for param "insn" and local
6727         "next_insn".
6728         (output_ieee_ccmpeq): Likewise for param "insn".
6729         (struct label_ref_list_d): Strengthen field "label" from rtx to
6730         rtx_code_label *.
6731         (pool_node): Likewise.
6732         (pool_window_label): Likewise for this global.
6733         (add_constant): Likewise for return type and locals "lab", "new_rtx".
6734         (dump_table): Strengthen params "start", "barrier" and local
6735         "scan" from rtx to rtx_insn *.
6736         (broken_move): Likewise for param "insn".
6737         (untangle_mova): Likewise for params "first_mova" and "new_mova".
6738         Strengthen param "first_mova" from rtx * to rtx_insn **.
6739         (mova_p): Likewise for param "insn".
6740         (fixup_mova): Likewise for param "mova".
6741         (find_barrier): Likewise for return type, params "mova" and
6742         "from", and locals "barrier_before_mova", "found_barrier",
6743         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
6744         "label" from rtx to rtx_code_label *.
6745         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6746         rtx to rtx_insn *.
6747         (sh_reorg): Likewise for locals "link", "scan", "barrier".
6748         (split_branches): Likewise for param "first" and local "insn".
6749         (final_prescan_insn): Likewise for param "insn".
6750         (sequence_insn_p): Likewise for locals "prev", "next".
6751         (sh_insn_length_adjustment): Likewise for param "insn".
6752         (sh_can_redirect_branch): Likewise for local "insn".
6753         (find_r0_life_regions): Likewise for locals "end", "insn".
6754         (sh_output_mi_thunk): Likewise for local "insns".
6755
6756 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6757
6758         * config/score/score.c (score_output_mi_thunk): Strengthen local
6759         "insn" from rtx to rtx_insn *.
6760         (score_prologue): Likewise.
6761
6762 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6763
6764         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6765         1 from rtx to rtx_insn *.
6766         (s390_emit_jump): Likewise for return type.
6767         (s390_emit_call): Likewise.
6768         (s390_load_got): Likewise.
6769
6770         * config/s390/s390.c (last_scheduled_insn): Likewise for this
6771         variable.
6772         (s390_match_ccmode): Likewise for param "insn".
6773         (s390_emit_jump): Likewise for return type.
6774         (s390_split_branches): Likewise for local "label".
6775         (struct constant): Strengthen field "label" from rtx to
6776         rtx_code_label *.
6777         (struct constant_pool): Likewise for field "label".  Strengthen
6778         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6779         rtx_insn *.
6780         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6781         insns.
6782         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6783         (s390_end_pool): Likewise.
6784         (s390_dump_pool): Likewise for local "insn".
6785         (s390_mainpool_start): Likewise.
6786         (s390_chunkify_start): Likewise.
6787         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6788         with insns.  Strengthen locals "label", "jump", "barrier", "next",
6789         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6790         (s390_chunkify_finish): Strengthen local "insn" from rtx to
6791         rtx_insn *.
6792         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6793         "jump", "label", "next_insn".
6794         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6795         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6796         "tbegin_insn".
6797         (s390_load_got): Likewise for return type and local "insns".
6798         (s390_save_gprs_to_fprs): Likewise for local "insn".
6799         (s390_restore_gprs_from_fprs): Likewise.
6800         (pass_s390_early_mach::execute): Likewise.
6801         (s390_emit_prologue): Likewise for local "insns".
6802         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6803         rtx_code_label *.
6804         (s390_emit_call): Strengthen return type and local "insn" from
6805         rtx to rtx_insn *.
6806         (s390_emit_tpf_eh_return): Likewise for local "insn".
6807         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6808         "next_insn", introducing locals "s_pat", "rpat" to allow this.
6809         (s390_fix_long_loop_prediction): Likewise for param "insn" and
6810         local "cur_insn".
6811         (s390_non_addr_reg_read_p): Likewise for param "insn".
6812         (find_cond_jump): Likewise for return type and param "insn".
6813         (s390_swap_cmp): Likewise for param "insn".
6814         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6815         "prev_insn", "next_insn".
6816         (s390_reorg): Likewise for locals "insn", "target".
6817         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6818         (s390_sched_variable_issue): For now, rename param "insn" to
6819         "uncast_insn", introducing a checked cast.
6820         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6821         insn.
6822         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6823         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
6824
6825 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6826
6827         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6828         param from rtx to rtx_insn *.
6829         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6830
6831 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6832
6833         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6834         4 from rtx to rtx_insn *.
6835         (rs6000_final_prescan_insn): Likewise for first param.
6836         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6837         local "insn".
6838         (rs6000_get_some_local_dynamic_name): Likewise.
6839         (output_cbranch): Likewise for param "insn".
6840         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6841         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6842         (rs6000_emit_allocate_stack): Likewise for local "insn".
6843         (load_cr_save): Likewise.
6844         (restore_saved_cr): Likewise.
6845         (restore_saved_lr): Likewise.
6846         (emit_cfa_restores): Likewise.
6847         (rs6000_output_function_epilogue): Likewise for locals "insn" and
6848         "deleted_debug_label".
6849         (rs6000_output_mi_thunk): Likewise for local "insn".
6850         (rs6000_final_prescan_insn): Likewise for param "insn".
6851
6852 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6853
6854         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6855         Strengthen param "insn" from rtx to rtx_insn *.
6856         * config/picochip/picochip.c (picochip_current_prescan_insn):
6857         Likewise for this variable.
6858         (picochip_final_prescan_insn): Likewise for param "insn".
6859
6860 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6861
6862         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6863         from rtx to rtx_insn *.
6864         (pa_output_indirect_call): Likewise.
6865         (pa_adjust_insn_length): Likewise.
6866         (pa_attr_length_millicode_call): Likewise.
6867         (pa_attr_length_call): Likewise.
6868         (pa_attr_length_indirect_call): Likewise.
6869
6870         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6871         "insn".
6872         (pa_attr_length_millicode_call): Likewise.
6873         (pa_attr_length_call): Likewise.
6874         (pa_output_call): Likewise.
6875         (pa_attr_length_indirect_call): Likewise.
6876         (pa_output_indirect_call): Likewise.
6877
6878 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6879
6880         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6881         Strengthen first param from rtx to rtx_insn *.
6882         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6883         param "insn".
6884
6885 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6886
6887         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6888         type from rtx to rtx_insn *.
6889         (mips_expand_call): Likewise.
6890         (mips_adjust_insn_length): Likewise for first param.
6891         (mips_output_conditional_branch): Likewise.
6892         (mips_output_order_conditional_branch): Likewise.
6893         (mips_final_prescan_insn): Likewise.
6894
6895         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6896         rtx_insn * for the SEQUENCE case.
6897         (SEQ_END): Likewise.
6898         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6899         (mips_emit_call_insn): Likewise, also for local "insn".
6900         (mips16_gp_pseudo_reg): Likewise for local "scan".
6901         (mips16_build_call_stub): Likewise for return type and for local
6902         "insn".  Introduce a new local "pattern" so that "insn" can indeed
6903         be an insn.
6904         (mips_expand_call): Strengthen return type and local "insn" from
6905         rtx to rtx_insn *.
6906         (mips_block_move_loop): Strengthen local "label" from rtx to
6907         rtx_code_label *.
6908         (mips_expand_synci_loop): Likewise for locals "label",
6909         "end_label".
6910         (mips_set_frame_expr): Strengthen local "insn" from rtx to
6911         rtx_insn *.
6912         (mips16e_collect_argument_saves): Likewise for locals "insn",
6913         "next".
6914         (mips_find_gp_ref): Likewise for param of callback for "pred"
6915         param, and for local "insn".
6916         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6917         (mips_insn_has_flexible_gp_ref_p): Likewise.
6918         (mips_epilogue_emit_cfa_restores): Likewise for return type and
6919         local "insn".
6920         (mips_epilogue_set_cfa): Likewise for local "insn".
6921         (mips_expand_epilogue): Likewise.
6922         (mips_adjust_insn_length): Likewise for param "insn".
6923         (mips_output_conditional_branch): Likewise.
6924         (mips_output_order_conditional_branch): Likewise.
6925         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6926         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6927         "falu2_turn_enabled_insn".
6928         (mips_builtin_branch_and_move): Strengthen locals "true_label",
6929         "done_label" from rtx to rtx_code_label *.
6930         (struct mips16_constant): Likewise for field "label".
6931         (mips16_add_constant): Likewise for return type.
6932         (mips16_emit_constants_1): Strengthen return type and param "insn"
6933         from rtx to rtx_insn *.
6934         (mips16_emit_constants): Likewise for param "insn".
6935         (mips16_insn_length): Likewise.
6936         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6937         to rtx_code_label *.
6938         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6939         from rtx to rtx_insn *.
6940         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6941         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
6942         (r10k_simplify_address): Strengthen param "insn" and local
6943         "def_insn" from rtx to rtx_insn *.
6944         (r10k_safe_address_p): Strengthen param "insn" from rtx to
6945         rtx_insn *.
6946         (r10k_needs_protection_p_1): Update target type of cast of data
6947         from to rtx to rtx_insn *.
6948         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6949         rtx * to rtx_insn **.
6950         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6951         rtx_insn *.
6952         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6953         (mips_call_expr_from_insn): Likewise for param "insn".
6954         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6955         (mips_find_pic_call_symbol): Likewise for param "insn".
6956         (mips_annotate_pic_calls): Likewise for local "insn".
6957         (mips_sim_insn): Likewise for this variable.
6958         (struct mips_sim): Likewise for field "insn" within elements of
6959         last_set array.
6960         (mips_sim_wait_reg): Likewise for param "insn".
6961         (mips_sim_wait_regs): Likewise.
6962         (mips_sim_wait_units): Likewise.
6963         (mips_sim_wait_insn): Likewise.
6964         (mips_sim_issue_insn): Likewise.
6965         (mips_sim_finish_insn): Likewise.
6966         (mips_seq_time): Likewise for param "seq" and local "insn".
6967         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6968         locals "first", "second".
6969         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6970         "last", "last2", "next".
6971         (mips_avoid_hazard): Likewise for params "after", "insn".
6972         (mips_reorg_process_insns): Likewise for locals "insn",
6973         "last_insn", "subinsn", "next_insn".
6974         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6975         (mips16_split_long_branches): Likewise for locals "insn" "jump",
6976         "jump_sequence".
6977         (mips_output_mi_thunk): Likewise for local "insn".
6978         (mips_final_prescan_insn): Likewise for param "insn".
6979
6980 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6981
6982         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6983         Strengthen return type and local "insns" from rtx to rtx_insn *.
6984         (microblaze_legitimize_tls_address): Likewise for local "insns".
6985         (microblaze_block_move_loop): Strengthen local "label" from rtx
6986         to rtx_code_label *.
6987         (microblaze_expand_prologue): Strengthen two locals named "insn"
6988         from rtx to rtx_insn *.
6989         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6990         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6991         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
6992         to rtx_code_label *.
6993
6994 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6995
6996         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6997         param from rtx to rtx_insn *.
6998         (mep_reuse_lo): Likewise for third param.
6999         (mep_use_post_modify_p): Likewise for first param.
7000         (mep_core_address_length): Likewise.
7001         (mep_cop_address_length): Likewise.
7002         (mep_final_prescan_insn): Likewise.
7003         (mep_store_data_bypass_p): Likewise for both params.
7004         (mep_mul_hilo_bypass_p): Likewise.
7005         (mep_ipipe_ldc_p): Likewise for param.
7006
7007         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
7008         (mep_rewrite_mult): Likewise.
7009         (mep_rewrite_mulsi3): Likewise.
7010         (mep_rewrite_maddsi3): Likewise.
7011         (mep_reuse_lo_p_1): Likewise.
7012         (mep_reuse_lo_p): Likewise.
7013         (mep_frame_expr): Likewise.
7014         (mep_make_parallel): Likewise for both params.
7015         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
7016         local "insn".
7017         (mep_use_post_modify_p): Likewise for param "insn".
7018         (mep_core_address_length): Likewise.
7019         (mep_cop_address_length): Likewise.
7020         (mep_reg_set_in_function): Likewise for local "insn".
7021         (mep_asm_without_operands_p): Likewise.
7022         (F): Likewise for return type and param "x".
7023         (add_constant): Likewise for local "insn".
7024         (maybe_dead_move): Likewise for return type and local "insn".
7025         (mep_expand_prologue): Likewise for local "insn".
7026         (mep_final_prescan_insn): Likewise for param "insn".
7027         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
7028         "next", "follow", "x".
7029         (mep_insert_repeat_label_last): Likewise for return type, param
7030         "last_insn", and locals "next", "prev".  Strengthen param "label"
7031         from rtx to rtx_code_label *.
7032         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
7033         rtx_insn *.
7034         (struct mep_doloop_end): Likewise for fields "insn" and
7035         "fallthrough".
7036         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
7037         Strengthen local "repeat_label" from rtx to rtx_code_label *.
7038         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
7039         rtx_insn *.
7040         (mep_invert_branch): Likewise for params "insn" and "after".
7041         (mep_reorg_erepeat): Likewise for param "insns" and locals
7042         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
7043         "l" from rtx to rtx_code_label *.
7044         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
7045         from rtx to rtx_insn *.
7046         (mep_reorg_addcombine): Likewise for param "insns" and locals
7047         "i", "n".
7048         (add_sp_insn_p): Likewise for param "insn".
7049         (mep_reorg_noframe): Likewise for param "insns" and locals
7050         "start_frame_insn", "end_frame_insn", "next".
7051         (mep_reorg): Likewise for local "insns".
7052         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
7053         cast.
7054         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
7055         (mep_mul_hilo_bypass_p): Likewise.
7056         (mep_ipipe_ldc_p): Likewise for param "insn".
7057         (mep_make_bundle): Likewise for return type, param "cop" and local
7058         "insn", splitting out the latter into a new local "seq" for when it
7059         is a SEQUENCE rather than an insn.
7060         (core_insn_p): Likewise for param "insn".
7061         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
7062         "last", "first", "note", "prev", "core_insn".
7063
7064 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7065
7066         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
7067         rtx to rtx_insn *.
7068         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
7069         (m68k_final_prescan_insn): Likewise for first param.
7070
7071         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
7072         (m68k_set_frame_related): Likewise for param "insn".
7073         (output_btst): Likewise for param "insn".
7074         (m68k_final_prescan_insn): Likewise.
7075         (m68k_move_to_reg): Likewise for local "insn".
7076         (m68k_call_tls_get_addr): Likewise for local "insns".
7077         (m68k_call_m68k_read_tp): Likewise.
7078         (strict_low_part_peephole_ok): Likewise for param "first_insn".
7079         (m68k_output_mi_thunk): Likewise for local "insn".
7080
7081 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7082
7083         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
7084         first param from rtx to rtx_insn *.
7085         (iq2000_adjust_insn_length): Likewise.
7086         (iq2000_output_conditional_branch): Likewise.
7087         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
7088         "insn" and local "nop_insn".
7089         (iq2000_annotate_frame_insn): Likewise for param "insn".
7090         (iq2000_expand_prologue): Likewise for both locals "insn".
7091         (iq2000_adjust_insn_length): Likewise for param "insn".
7092         (iq2000_output_conditional_branch): Likewise.
7093
7094 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7095
7096         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
7097         "insns" from rtx to rtx_insn *.
7098         (ia64_emit_cond_move): Likewise for locals "insn", "first".
7099         (struct spill_fill_data): Likewise for field "init_after" and for
7100         elements of array field "prev_insn".
7101         (spill_restore_mem): Likewise for locals "insn", "first".
7102         (do_spill): Likewise for local "insn".
7103         (do_restore): Likewise.
7104         (ia64_expand_prologue): Likewise.
7105         (ia64_expand_epilogue): Likewise.
7106         (emit_insn_group_barriers): Likewise for locals "insn",
7107         "last_label".
7108         (emit_all_insn_group_barriers): Likewise for locals "insn",
7109         "last".
7110         (dfa_stop_insn): Likewise for this global.
7111         (dfa_pre_cycle_insn): Likewise.
7112         (ia64_nop): Likewise.
7113         (final_emit_insn_group_barriers): Likewise for locals "insn",
7114         "last".
7115         (emit_predicate_relation_info): Likewise for locals "head", "n",
7116         "insn", "b", "a".
7117         (ia64_reorg): Likewise for local "insn".
7118         (ia64_output_mi_thunk): Likewise.
7119         (expand_vec_perm_interleave_2): Likewise for local "seq".
7120
7121 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7122
7123         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
7124         param 1 "insn" from rtx to rtx_insn *.
7125         (ix86_use_lea_for_mov): Likewise.
7126         (ix86_avoid_lea_for_addr): Likewise.
7127         (ix86_split_lea_for_addr): Likewise.
7128         (ix86_lea_for_add_ok): Likewise.
7129         (ix86_output_call_insn): Likewise.
7130
7131         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
7132         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
7133         (ix86_output_function_epilogue): Likewise for locals "insn",
7134         "deleted_debug_label".
7135         (legitimize_tls_address): Likewise for local "insn".
7136         (get_some_local_dynamic_name): Likewise.
7137         (increase_distance): Likewise for params "prev", "next".
7138         (distance_non_agu_define_in_bb): Likewise for params "insn",
7139         "start" and locals "prev", "next".
7140         (distance_non_agu_define): Likewise for param "insn".
7141         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
7142         locals "next", "prev".
7143         (distance_agu_use): Likewise for param "insn".
7144         (ix86_lea_outperforms): Likewise.
7145         (ix86_ok_to_clobber_flags): Likewise.
7146         (ix86_avoid_lea_for_add): Likewise.
7147         (ix86_use_lea_for_mov): Likewise.
7148         (ix86_avoid_lea_for_addr): Likewise.
7149         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
7150         (ix86_split_lea_for_addr): Likewise for param "insn".
7151         (ix86_lea_for_add_ok): Likewise for param "insn".
7152         (ix86_expand_carry_flag_compare): Likewise for local
7153         "compare_seq".
7154         (ix86_expand_int_movcc): Likewise.
7155         (ix86_output_call_insn): Likewise for param "insn".
7156         (ix86_output_call_insn): Likewise for local "i".
7157         (x86_output_mi_thunk): Introduce local "insn", using it in place
7158         of "tmp" when dealing with insns.
7159         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
7160         "start".
7161         (ix86_pad_returns): Likewise for locals "ret", "prev".
7162         (ix86_count_insn_bb): Likewise for local "insn".
7163         (ix86_pad_short_function): Likewise for locals "ret", "insn".
7164         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
7165         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
7166         (expand_vec_perm_interleave2): Likewise for local "seq".
7167         (expand_vec_perm_vperm2f128_vblend): Likewise.
7168         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
7169         call to for_each_rtx with for_each_rtx_in_insn.
7170
7171 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7172
7173         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
7174         "label" from rtx to rtx_code_label *.
7175         (ix86_expand_prologue): Likewise.
7176         (ix86_expand_split_stack_prologue): Likewise for locals "label",
7177         "varargs_label".
7178         (ix86_split_idivmod): Likewise for locals "end_label" and
7179         "qimode_label".
7180         (ix86_expand_branch): Likewise for local "label2".
7181         (ix86_expand_aligntest): Likewise for return type and local "label".
7182         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
7183         "top_label".
7184         (expand_movmem_epilogue): Likewise for the various locals named
7185         "label".
7186         (expand_setmem_epilogue): Likewise.
7187         (expand_small_movmem_or_setmem): Likewise for local "label".
7188         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7189         Strengthen param "done_label" from rtx * to rtx_code_label **.
7190         Strengthen locals "loop_label" and "label" from rtx to
7191         rtx_code_label *.
7192         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7193         Likewise for locals "loop_label", "label".
7194         (ix86_expand_set_or_movmem): Likewise for locals "label",
7195         "jump_around_label", "hot_label".
7196         (ix86_expand_strlensi_unroll_1): Likewise for locals
7197         "align_2_label", align_3_label", "align_4_label", "end_0_label",
7198         "end_2_label".
7199         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
7200         (void ix86_emit_i387_log1p): Likewise for locals "label1",
7201         "label2", "jump_label".
7202         (ix86_expand_sse_compare_and_jump): Likewise for return type and
7203         local "label".
7204         (ix86_expand_lfloorceil): Likewise for local "label".
7205         (ix86_expand_rint): Likewise.
7206         (ix86_expand_floorceildf_32): Likewise.
7207         (ix86_expand_floorceil): Likewise.
7208         (ix86_expand_rounddf_32): Likewise.
7209         (ix86_expand_trunc): Likewise.
7210         (ix86_expand_truncdf_32): Likewise.
7211         (ix86_expand_round): Likewise.
7212
7213 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7214
7215         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
7216         first param from rtx to rtx_insn *.
7217         (h8300_insn_length_from_table): Likewise.
7218         * config/h8300/h8300.c (F): Likewise for return type and param
7219         "x".
7220         (Fpa): Add a checked cast to rtx_insn *.
7221         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
7222         rtx_insn *.
7223         (final_prescan_insn): Likewise for param "insn".
7224         (h8300_binary_length): Likewise.
7225         (h8300_insn_length_from_table): Likewise.
7226
7227 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7228
7229         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
7230         Strengthen first param "insn" from rtx to rtx_insn *.
7231
7232         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
7233         Likewise.
7234         (frame_insn): Likewise for return type.  Introduce local "insn"
7235         for use in place of local "x" for use as an rtx_insn *.
7236         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
7237         (epiphany_expand_prologue): Likewise for local "insn".
7238         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
7239         * config/epiphany/resolve-sw-modes.c
7240         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
7241         "seq".
7242
7243 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7244
7245         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
7246         param from rtx to rtx_insn *.
7247         (c6x_final_prescan_insn): Likewise for first param.
7248
7249         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
7250         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
7251         (c6x_expand_compare): Strengthen local "insns" from rtx to
7252         rtx_insn *.
7253         (c6x_get_unit_specifier): Likewise for param "insn".
7254         (c6x_print_unit_specifier_field): Likewise.
7255         (c6x_final_prescan_insn): Likewise.
7256         (emit_add_sp_const): Likewise for local "insn".
7257         (c6x_expand_prologue): Likewise.
7258
7259 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7260
7261         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
7262         param 1 from rtx to rtx_insn *.
7263         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
7264         the various locals named "insn".
7265         (expand_epilogue_reg_restore): Likewise.
7266         (frame_related_constant_load): Likewise.
7267         (add_to_reg): Likewise.
7268         (emit_link_insn): Likewise.
7269         (do_link): Likewise.
7270         (expand_interrupt_handler_prologue): Likewise.
7271         (branch_dest): Likewise for param "branch".
7272         (asm_conditional_branch): Likewise for param "insn".
7273         (gen_one_bundle): Likewise for elements of param "slot" and local
7274         "t".
7275         (bfin_gen_bundles): Likewise for locals "insn", "next" and
7276         elements of local "slot".
7277         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7278         "queue", "next_queue", "prev".
7279         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
7280         (add_sched_insns_for_speculation): Likewise for local "insn".
7281
7282 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7283
7284         * config/avr/avr-protos.h (output_movqi): Strengthen first param
7285         from rtx to rtx_insn *.
7286         (output_movhi): Likewise.
7287         (output_movsisf): Likewise.
7288         (avr_out_tstsi): Likewise.
7289         (avr_out_tsthi): Likewise.
7290         (avr_out_tstpsi): Likewise.
7291         (avr_out_compare): Likewise.
7292         (avr_out_compare64): Likewise.
7293         (avr_out_movpsi): Likewise.
7294         (ashlqi3_out): Likewise.
7295         (ashlhi3_out): Likewise.
7296         (ashlsi3_out): Likewise.
7297         (ashrqi3_out): Likewise.
7298         (ashrhi3_out): Likewise.
7299         (ashrsi3_out): Likewise.
7300         (lshrqi3_out): Likewise.
7301         (lshrhi3_out): Likewise.
7302         (lshrsi3_out): Likewise.
7303         (avr_out_ashlpsi3): Likewise.
7304         (avr_out_ashrpsi3): Likewise.
7305         (avr_out_lshrpsi3): Likewise.
7306         (avr_out_fract): Likewise.
7307         (avr_out_sbxx_branch): Likewise.
7308         (avr_out_round): Likewise.
7309         (avr_out_xload): Likewise.
7310         (avr_out_movmem): Likewise.
7311         (adjust_insn_length): Likewise.
7312         (avr_out_lpm): Likewise.
7313         (reg_unused_after): Likewise.
7314         (_reg_unused_after): Likewise.
7315         (avr_jump_mode): Likewise for second param.
7316         (jump_over_one_insn): Likewise for first param.
7317         (avr_final_prescan_insn): Likewise.
7318         (out_shift_with_cnt): Likewise for second param.
7319
7320         * config/avr/avr.c (get_sequence_length): Likewise for param
7321         "insns" and local "insn".
7322         (emit_push_byte): Likewise for local "insn".
7323         (emit_push_sfr): Likewise.
7324         (avr_prologue_setup_frame): Likewise for locals "insn",
7325         "fp_plus_insns", "sp_plus_insns".
7326         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
7327         "sp_plus_insns".
7328         (avr_jump_mode): Likewise for param "insn".
7329         (avr_final_prescan_insn): Likewise.
7330         (avr_find_unused_d_reg): Likewise.
7331         (avr_out_lpm_no_lpmx): Likewise.
7332         (avr_out_lpm): Likewise.
7333         (avr_out_xload): Likewise.
7334         (output_movqi): Likewise.
7335         (output_movhi): Likewise.
7336         (out_movqi_r_mr): Likewise.
7337         (out_movhi_r_mr): Likewise.
7338         (out_movsi_r_mr): Likewise.
7339         (out_movsi_mr_r): Likewise.
7340         (output_movsisf): Likewise.
7341         (avr_out_load_psi): Likewise.
7342         (avr_out_store_psi): Likewise.
7343         (avr_out_movpsi): Likewise.
7344         (out_movqi_mr_r): Likewise.
7345         (avr_out_movhi_mr_r_xmega): Likewise.
7346         (out_movhi_mr_r): Likewise.
7347         (compare_condition): Likewise for param "insn" and local "next".
7348         (compare_sign_p): Likewise for param "insn".
7349         (compare_diff_p): Likewise.
7350         (compare_eq_p): Likewise.
7351         (avr_out_compare): Likewise.
7352         (avr_out_compare64): Likewise.
7353         (avr_out_tsthi): Likewise.
7354         (avr_out_tstpsi): Likewise.
7355         (avr_out_tstsi): Likewise.
7356         (out_shift_with_cnt): Likewise.
7357         (ashlqi3_out): Likewise.
7358         (ashlhi3_out): Likewise.
7359         (avr_out_ashlpsi3): Likewise.
7360         (ashlsi3_out): Likewise.
7361         (ashrqi3_out): Likewise.
7362         (ashrhi3_out): Likewise.
7363         (avr_out_ashrpsi3): Likewise.
7364         (ashrsi3_out): Likewise.
7365         (lshrqi3_out): Likewise.
7366         (lshrhi3_out): Likewise.
7367         (avr_out_lshrpsi3): Likewise.
7368         (lshrsi3_out): Likewise.
7369         (avr_out_fract): Likewise.
7370         (avr_out_round): Likewise.
7371         (avr_adjust_insn_length): Likewise.
7372         (reg_unused_after): Likewise.
7373         (_reg_unused_after): Likewise.
7374         (avr_compare_pattern): Likewise.
7375         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
7376         and locals "branch1", "branch2", "insn2", "jump".
7377         (avr_reorg): Likewise for local "insn".
7378         (avr_2word_insn_p): Likewise for param "insn".
7379         (jump_over_one_insn_p): Likewise.
7380         (avr_out_sbxx_branch): Likewise.
7381         (avr_out_movmem): Likewise.
7382
7383 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7384
7385         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
7386         param from rtx to rtx_insn *.
7387         (thumb1_final_prescan_insn): Likewise.
7388         (thumb2_final_prescan_insn): Likewise.
7389
7390         * config/arm/arm.c (emit_set_insn): Strengthen return type from
7391         rtx to rtx_insn *.
7392         (struct minipool_node): Likewise for field "insn".
7393         (dump_minipool): Likewise for param "scan".
7394         (create_fix_barrier): Likewise for local "from".  Strengthen local
7395         "label" from rtx to rtx_code_label *.
7396         (push_minipool_barrier): Strengthen param "insn" from rtx to
7397         rtx_insn *.
7398         (push_minipool_fix): Likewise.
7399         (note_invalid_constants): Likewise.
7400         (thumb2_reorg): Likewise for local "insn".
7401         (arm_reorg): Likewise.
7402         (thumb2_final_prescan_insn): Likewise for param
7403         "insn" and local "first_insn".
7404         (arm_final_prescan_insn): Likewise for param "insn" and locals
7405         "start_insn", "this_insn".
7406         (arm_debugger_arg_offset): Likewise for param "insn".
7407         (thumb1_emit_multi_reg_push): Likewise for return type and local
7408         "insn".
7409         (thumb1_final_prescan_insn): Likewise for param "insn".
7410         (thumb_far_jump_used_p): Likewise for local "insn".
7411         (thumb1_expand_prologue): Likewise.
7412         (arm_expand_epilogue_apcs_frame): Likewise.
7413         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
7414         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
7415         from rtx to rtx_code_label *.
7416         (arm_split_atomic_op): Likewise for local "label".
7417         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
7418
7419 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7420
7421         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
7422         first param from rtx to rtx_insn *.
7423         (arc_verify_short): Likewise.
7424         (arc_short_long): Likewise.
7425         (arc_need_delay): Likewise.
7426
7427         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
7428         "target_insn".
7429         (arc_ccfsm_advance): Likewise for param "insn" and locals
7430         "start_insn", "this_insn".
7431         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
7432         (arc_ccfsm_post_advance): Likewise for param "insn".
7433         (arc_next_active_insn): Likewise for return type and param "insn".
7434         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
7435         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
7436         (output_short_suffix): Likewise for local "insn".
7437         (arc_final_prescan_insn): Likewise for param "insn".  Remove
7438         now-redundant checked cast.
7439         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
7440         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
7441         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
7442         for use where lc_set became an insn.
7443         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
7444         rtx to rtx_insn *.
7445         (arc_get_insn_variants): Likewise for local "prev".
7446         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
7447         "next".
7448         (arc_predicate_delay_insns): Likewise for local "insn".
7449         (arc_pad_return): Likewise for local "prev".  For now, add a
7450         checked cast when extracting the insn from "final_sequence".
7451         (arc_short_long): Likewise for param "insn".
7452         (arc_need_delay): Likewise for param "insn" and local "next".
7453         (arc_label_align): Likewise for locals "prev", "next".
7454
7455 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7456
7457         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
7458         "insn" from rtx to rtx_insn *.
7459         (alpha_gp_save_rtx): Likewise for local "seq".
7460         (alpha_instantiate_decls): Likewise for local "top".
7461         (get_some_local_dynamic_name): Likewise for local "insn".
7462         (alpha_does_function_need_gp): Likewise.
7463         (set_frame_related_p): Likewise for return type and for locals
7464         "seq" and "insn".
7465         (emit_frame_store_1): Likewise for local "insn".
7466         (alpha_expand_prologue): Likewise for locals "insn", "seq".
7467         (alpha_end_function): Likewise for local "insn".
7468         (alpha_output_mi_thunk_osf): Likewise.
7469         (alphaev4_insn_pipe): Likewise for param "insn".
7470         (alphaev5_insn_pipe): Likewise.
7471         (alphaev4_next_group): Likewise for return type and param 1
7472         "insn".
7473         (alphaev5_next_group): Likewise.
7474         (alpha_align_insns_1): Likewise for return type and param 1 of
7475         callback param "next_group", and for locals "i", "next", "prev",
7476         "where", "where2", "insn".
7477
7478 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
7479
7480         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
7481         rather than modifying the stmt.
7482
7483 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7484
7485         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
7486         cgraph_state conversion.
7487
7488 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7489
7490         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7491         Strengthen local "insns" from rtx to rtx_insn *.
7492         (aarch64_set_frame_expr): Likewise for local "insn".
7493         (aarch64_save_or_restore_fprs): Likewise.
7494         (aarch64_save_or_restore_callee_save_registers): Likewise.
7495         (aarch64_expand_prologue): Likewise.
7496         (aarch64_expand_epilogue): Likewise.
7497         (aarch64_output_mi_thunk): Likewise.
7498         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
7499         "label2" from rtx to rtx_code_label *.
7500         (aarch64_split_atomic_op): Likewise for local "label".
7501
7502 2014-08-25  Martin Liska  <mliska@suse.cz>
7503
7504         * cgraph.h (symtab_node):
7505         (bool needed_p (void)): created from decide_is_symbol_needed
7506         (bool referred_to_p (void)): created from referred_to_p
7507         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
7508         * cgraph.h (cgraph_node):
7509         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
7510         (void expand (void)): created from expand_function
7511         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
7512         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
7513         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
7514         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
7515         * cgraph.h (varpool_node):
7516         (static void add (tree decl): created from varpool_add_new_variable
7517         * cgraph.h (cgraph_edge):
7518         void remove (void);
7519         (void remove_caller (void)): created from cgraph_edge_remove_caller
7520         (void remove_callee (void)): created from cgraph_edge_remove_callee
7521         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
7522           created from cgraph_set_call_stmt
7523         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
7524         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
7525         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
7526           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
7527         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
7528           created from cgraph_speculative_call_info
7529         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
7530           int freq_scale, bool update_original)): created from cgraph_clone_edge
7531         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
7532         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
7533         (bool recursive_p (void)): created from cgraph_edge_recursive_p
7534         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
7535         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
7536         (static void rebuild_references (void)): created from cgraph_rebuild_references
7537         * cgraph.h (symbol_table):
7538         (create_reference): renamed from add_reference
7539         (maybe_create_reference): renamed from maybe_add_reference
7540         (void register_symbol (symtab_node *node)): new function
7541         (void clear_asm_symbols (void)): new function
7542         (void unregister (symtab_node *node)): new function
7543         (void release_symbol (cgraph_node *node, int uid)): new function
7544         (cgraph_node * allocate_cgraph_symbol (void)): new function
7545         (void initialize (void)): created from cgraph_init
7546         (symtab_node *first_symbol (void)):new function
7547         (asm_node *first_asm_symbol (void)):new function
7548         (symtab_node *first_defined_symbol (void)):new function
7549         (varpool_node *first_variable (void)):new function
7550         (varpool_node *next_variable (varpool_node *node)):new function
7551         (varpool_node *first_static_initializer (void)):new function
7552         (varpool_node *next_static_initializer (varpool_node *node)):new function
7553         (varpool_node *first_defined_variable (void)):new function
7554         (varpool_node *next_defined_variable (varpool_node *node)):new function
7555         (cgraph_node *first_defined_function (void)):new function
7556         (cgraph_node *next_defined_function (cgraph_node *node)):new function
7557         (cgraph_node *first_function (void)):new function
7558         (cgraph_node *next_function (cgraph_node *node)):new function
7559         (cgraph_node *first_function_with_gimple_body (void)):new function
7560         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
7561         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
7562           created from symtab_remove_unreachable_nodes
7563         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
7564         (void process_new_functions (void)): created from cgraph_process_new_functions
7565         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
7566         (bool output_variables (void)): created from varpool_node::output_variables
7567         (void output_asm_statements (void)): created from output_asm_statements
7568         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
7569         (void compile (void)): created from compile
7570         (void output_weakrefs (void)): created from output_weakrefs
7571         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
7572         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
7573           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
7574         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
7575         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
7576           created from cgraph_next_function_with_gimple_body
7577         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
7578           created from cgraph_remove_edge_removal_hook
7579         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
7580           created from cgraph_add_node_removal_hook
7581         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
7582           created from cgraph_remove_node_removal_hook
7583         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
7584           created from varpool_add_node_removal_hook
7585         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
7586           created from varpool_remove_node_removal_hook
7587         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
7588           created from cgraph_add_function_insertion_hook
7589         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
7590           created from cgraph_remove_function_insertion_hook
7591         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
7592           created from varpool_add_variable_insertion_hook
7593         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
7594           created from varpool_remove_variable_insertion_hook
7595         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
7596           created from cgraph_add_edge_duplication_hook
7597         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7598           created from cgraph_remove_edge_duplication_hook
7599         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7600           created from cgraph_add_node_duplication_hook
7601         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7602           created from cgraph_remove_node_duplication_hook
7603         (void call_edge_removal_hooks (cgraph_edge *e)):
7604           created from cgraph_call_edge_removal_hooks
7605         (void call_cgraph_insertion_hooks (cgraph_node *node)):
7606           created from call_function_insertion_hooks 
7607         (void call_cgraph_removal_hooks (cgraph_node *node)):
7608           created from cgraph_call_node_removal_hooks 
7609         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7610           created from cgraph_node::call_duplication_hooks 
7611         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7612           created from cgraph_call_edge_duplication_hooks
7613         (void call_varpool_removal_hooks (varpool_node *node)):
7614           created from varpool_call_node_removal_hooks
7615         (void call_varpool_insertion_hooks (varpool_node *node)):
7616           created from varpool_call_variable_insertion_hooks
7617         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7618           created from insert_to_assembler_name_hash
7619         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7620           created from unlink_from_assembler_name_hash
7621         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7622           created from symtab_prevail_in_asm_name_hash
7623         (void symtab_initialize_asm_name_hash (void)):
7624           created from symtab_initialize_asm_name_hash
7625         (void change_decl_assembler_name (tree decl, tree name)):
7626           created from change_decl_assembler_name
7627         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7628         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7629           created from decl_assembler_name_hash
7630         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7631           created from decl_assembler_name_equal
7632         (static hashval_t hash_node_by_assembler_name (const void *p)):
7633           created from hash_node_by_assembler_name
7634         (static int eq_assembler_name (const void *p1, const void *p2)):
7635           created from eq_assembler_name
7636
7637 2014-08-25  Marek Polacek  <polacek@redhat.com>
7638
7639         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7640
7641 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
7642
7643         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7644         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7645         SWI1248_AVX512BW mode iterator.
7646
7647 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
7648
7649         PR target/62111
7650         * config/sh/predicates.md (general_extend_operand): Disable
7651         TRUNCATE before reload completes.
7652
7653 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
7654
7655         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7656
7657 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
7658
7659         PR target/61996
7660         * config/sh/sh.opt (musermode): Allow negative form.
7661         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7662         targets that don't support it.
7663         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7664         Document -mno-usermode option.
7665
7666 2014-08-24  Kito Cheng  <kito@0xlab.org>
7667
7668         * system.h (CALLER_SAVE_PROFITABLE): Poison.
7669         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7670         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7671         * doc/tm.texi: Regenerate.
7672
7673 2014-08-24  Kito Cheng  <kito@0xlab.org>
7674
7675         * ira.c: Fix typo in comment.
7676
7677 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
7678
7679         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7680         Deprecate c++1y. Change language to reflect greater confidence in C++14.
7681
7682 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
7683
7684         PR target/62038
7685         * config/pa/pa.c (pa_output_function_epilogue): Don't set
7686         last_address when the current function is a thunk.
7687         (pa_asm_output_mi_thunk): When we don't have named sections or they
7688         are not being used, check that thunk can reach the stub table with a
7689         short branch.
7690
7691 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7692
7693         * web.c (union_match_dups): Strengthen param "insn" from rtx to
7694         rtx_insn *.
7695         (pass_web::execute): Likewise for local "insn".
7696
7697 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7698
7699         * var-tracking.c (struct micro_operation_def): Strengthen field
7700         "insn" from rtx to rtx_insn *.
7701         (struct emit_note_data_def): Likewise.
7702         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7703         (vt_stack_adjustments): Likewise for local "insn".
7704         (adjust_insn): Likewise for param "insn".
7705         (val_store): Likewise.
7706         (val_resolve): Likewise.
7707         (struct count_use_info): Likewise for field "insn".
7708         (log_op_type): Likewise for param "insn".
7709         (reverse_op): Likewise.
7710         (prepare_call_arguments): Likewise.
7711         (add_with_sets):  The initial param takes an insn, but we can't
7712         yet strengthen it from rtx to rtx_insn * since it's used as a
7713         cselib_record_sets_hook callback.  For now rename initial param
7714         from "insn" to "uncast_insn", and introduce a local "insn" of
7715         the stronger rtx_insn * type, with a checked cast.
7716         (compute_bb_dataflow): Strengthen local "insn" from rtx to
7717         rtx_insn *.
7718         (emit_note_insn_var_location): Likewise.
7719         (emit_notes_for_changes): Likewise.
7720         (emit_notes_for_differences): Likewise.
7721         (next_non_note_insn_var_location): Likewise for return type and
7722         for param "insn".
7723         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7724         (vt_initialize): Likewise for local "insn".
7725         (delete_debug_insns): Likewise for locals "insn" and "next".
7726
7727 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7728
7729         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7730         rtx_insn *.
7731         (mark_constant_pool): Likewise for local "insn".
7732
7733 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7734
7735         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7736         rtx to rtx_insn *.
7737         (dead_debug_promote_uses): Likewise.
7738         (dead_debug_insert_temp): Likewise.
7739
7740 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7741
7742         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7743         from const_rtx to const rtx_insn *.
7744         (store_killed_after): Likewise.  Strengthen locals "last", "act"
7745         from rtx to rtx_insn *.
7746         (store_killed_before): Strengthen param "insn" from const_rtx to
7747         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
7748         (find_moveable_store): Strengthen param "insn" from rtx to
7749         rtx_insn *.
7750         (compute_store_table): Likewise for local "insn".
7751         (insert_insn_start_basic_block): Likewise for param "insn" and
7752         locals "prev", "before", "insn".
7753         (insert_store): For now, add a checked cast to rtx_insn * on the
7754         result of gen_move_insn.
7755         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7756         to rtx_insn *.
7757         (replace_store_insn): Likewise.  For now, add a checked cast to
7758         rtx_insn * on the result of gen_move_insn.
7759
7760 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7761
7762         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7763         rtx_insn *.
7764         (expand_sjlj_dispatch_table): Likewise.
7765
7766 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7767
7768         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7769         "insn" from rtx to rtx_insn *.
7770
7771 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7772
7773         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7774         "insn" from rtx to rtx_insn *.
7775         (dup_block_and_redirect): Likewise for param 3 "before".
7776
7777         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7778         from rtx to rtx_insn *.
7779         (move_insn_for_shrink_wrap): Likewise.
7780         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7781         (dup_block_and_redirect): Likewise for param "before" and local
7782         "insn".
7783         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7784         "end".
7785         (convert_to_simple_return): Likewise for local "start".
7786
7787         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7788         Strengthen local "insn" from rtx to rtx_insn *, for use when
7789         invoking requires_stack_frame_p.
7790
7791 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7792
7793         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7794         rtx_insn *.
7795         (speculate_expr): Likewise for locals "orig_insn_rtx",
7796         "spec_insn_rtx".
7797         (eq_transformed_insns): Likewise for locals "i1", "i2".
7798         (check_for_new_jump): Likewise for return type and local "end".
7799         (find_new_jump): Likewise for return type and local "jump".
7800         (sel_split_edge): Likewise for local "jump".
7801         (sel_create_recovery_block): Likewise.
7802         (sel_redirect_edge_and_branch_force): Likewise.
7803         (sel_redirect_edge_and_branch): Likewise.
7804
7805 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7806
7807         * sel-sched.c (substitute_reg_in_expr): Strengthen local
7808         "new_insn" from rtx to rtx_insn *.
7809         (create_insn_rtx_with_rhs): Likewise for return type and for local
7810         "insn_rtx".
7811         (create_insn_rtx_with_lhs): Likewise.
7812         (create_speculation_check): Likewise for local "insn_rtx".
7813         (implicit_clobber_conflict_p): Likewise for local "insn".
7814         (get_expr_cost): Likewise.
7815         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7816         (move_cond_jump): Likewise for locals "next", "prev", "link",
7817         "head", "from", "to".
7818
7819 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7820
7821         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7822         "next" from rtx to rtx_insn *.
7823         (find_conditional_protection): Likewise for local "next".
7824         (is_conditionally_protected): Likewise for local "insn1".
7825         (is_pfree): Likewise for locals "insn1", "insn2".
7826
7827 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7828
7829         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7830         from rtx to rtx_insn *.
7831
7832         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7833         locals "insn1", "insn2" from rtx to rtx_insn *.
7834         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7835         locals "insn", "prev", "last_jump", "next_tail".
7836         (schedule_ebb): Likewise for params "head", "tail".
7837         (schedule_ebbs): Likewise for locals "tail", "head".
7838
7839         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7840         to rtx_insn on "last_insn" in one of the invocations of
7841         schedule_ebb.
7842
7843 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7844
7845         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7846         "elem", "insn" from rtx to rtx_insn *.
7847         (change_spec_dep_to_hard): Likewise.
7848         (get_back_and_forw_lists): Likewise for local "con".
7849         (sd_add_dep): Likewise for locals "elem", "insn".
7850         (sd_resolve_dep): Likewise for locals "pro", "con".
7851         (sd_unresolve_dep): Likewise.
7852         (sd_delete_dep): Likewise.
7853         (chain_to_prev_insn): Likewise for local "pro".
7854         (find_inc): Likewise for locals "pro", "con".
7855
7856 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7857
7858         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7859         to rtx_insn *.
7860         (reg_set_between_p): Strengthen local "insn" from const_rtx to
7861         const rtx_insn *.
7862         (modified_between_p): Strengthen local "insn" from rtx to
7863         rtx_insn *.
7864         (remove_reg_equal_equiv_notes_for_regno): Likewise.
7865         (keep_with_call_p): Strengthen local "i2" from const_rtx to
7866         const rtx_insn *.
7867
7868 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7869
7870         * resource.c (next_insn_no_annul): Strengthen local "next" from
7871         rtx to rtx_insn *.
7872         (mark_referenced_resources): Likewise for local "insn".
7873
7874 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7875
7876         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7877         to rtx_insn *.
7878         (find_reloads): Likewise for param 1.
7879         (subst_reloads): Likewise for sole param.
7880         (find_equiv_reg): Likwise for param 2.
7881         (regno_clobbered_p): Likwise for param 2.
7882         (reload): Likewise for param 1.
7883
7884         * caller-save.c (save_call_clobbered_regs): Strengthen local
7885         "insn" from rtx to rtx_insn *.
7886         (insert_one_insn): Likewise for local "insn".
7887
7888         * reload.c (this_insn): Likewise for this global.
7889         (find_reloads): Likewise for param "insn".
7890         (find_reloads_toplev): Likewise.
7891         (find_reloads_address): Likewise.
7892         (subst_reg_equivs): Likewise.
7893         (update_auto_inc_notes): Likewise.
7894         (find_reloads_address_1): Likewise.
7895         (find_reloads_subreg_address): Likewise.
7896         (subst_reloads): Likewise.
7897         (find_equiv_reg): Likewise, also for local "p".
7898         (regno_clobbered_p): Likewise for param "insn".
7899
7900         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7901         array.
7902         (spill_reg_store): Likewise for the elements of this array.
7903         (remove_init_insns): Likewise for local "equiv_insn".
7904         (will_delete_init_insn_p): Likewise for param "insn".
7905         (reload): Likewise for param ""first" and local "insn".
7906         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7907         rtx_insn *.
7908         (calculate_elim_costs_all_insns): Likewise.
7909         (delete_caller_save_insns): Likewise.
7910         (spill_failure): Likewise for param "insn".
7911         (delete_dead_insn): Likewise.
7912         (set_label_offsets): Likewise.
7913         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7914         "prev_insn".
7915         (elimination_costs_in_insn): Likewise for param "insn".
7916         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7917         when referring to an insn.
7918         (set_initial_label_offsets): Likewise.
7919         (set_offsets_for_label): Strengthen param "insn" from rtx to
7920         rtx_insn *.
7921         (init_eliminable_invariants): Likewise for param "first" and local
7922         "insn".
7923         (fixup_eh_region_note): Likewise for param "insn".
7924         (reload_as_needed): Likewise for locals "prev", "insn",
7925         "old_next", "old_prev", "next".
7926         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7927         "last".
7928         (reload_inheritance_insn): Strengthen elements of this array from
7929         rtx to rtx_insn *.
7930         (failed_reload): Likewise for param "insn".
7931         (choose_reload_regs): Likewise for local "insn".  Replace use of
7932         NULL_RTX with NULL when referring to an insn.
7933         (input_reload_insns): Strengthen elements of this array from rtx
7934         to rtx_insn *.
7935         (other_input_address_reload_insns): Likewise for this global.
7936         (other_input_reload_insns): Likewise for this global.
7937         (input_address_reload_insns): Likwise for the elements of this
7938         array.
7939         (inpaddr_address_reload_insns): Likwise for the elements of this
7940         array.
7941         (output_reload_insns): Likewise for the elements of this array.
7942         (output_address_reload_insns): Likewise for the elements of this
7943         array.
7944         (outaddr_address_reload_insns): Likewise for the elements of this
7945         array.
7946         (operand_reload_insns): Likewise for this global.
7947         (other_operand_reload_insns): Likewise for this global.
7948         (other_output_reload_insns): Likewise for the elements of this
7949         array.
7950         (new_spill_reg_store): Likewise for the elements of this
7951         array.
7952         (emit_input_reload_insns): Likewise for locals "insn", "temp".
7953         Strengthen local "where" from rtx * to rtx_insn **.
7954         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7955         from rtx to rtx_insn *.
7956         (do_input_reload): Likewise for local "insn".
7957         (do_output_reload): Likewise for local "insn".
7958         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7959         (emit_insn_if_valid_for_reload): Likewise for return type and local
7960         "last".  Add checked cast to rtx_insn when returning "insn" since
7961         this has been through emit_insn.
7962         (gen_reload): Strengthen return type and locals "last", "insn", "set"
7963         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
7964         returning "insn" since it's been through
7965         emit_insn_if_valid_for_reload at this point.
7966         (delete_output_reload): Strengthen param "insn" and locals
7967         "output_reload_insn", "i2" from rtx to rtx_insn *.
7968         (delete_address_reloads): Likewise for params "dead_insn",
7969         "current_insn" and locals "prev", "next".
7970         (delete_address_reloads_1): Likewise for params "dead_insn",
7971         "current_insn" and locals "prev", "i2".
7972         (inc_for_reload): Likewise for locals "last", "add_insn".
7973         (add_auto_inc_notes): Strengthen param "insn" from rtx to
7974         rtx_insn *.
7975
7976         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7977         param of this duplicate of the prototype from reload.h
7978
7979 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7980
7981         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7982         rtx to rtx_insn *.
7983         (regstat_bb_compute_calls_crossed): Likewise.
7984
7985 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7986
7987         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7988         to rtx_insn *.
7989         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7990         with an insn.
7991         (regrename_analyze): Strengthen local "insn" from rtx to
7992         rtx_insn *.
7993         (scan_rtx_reg): Likewise for param "insn".
7994         (scan_rtx_address): Likewise.
7995         (scan_rtx): Likewise.
7996         (restore_operands): Likewise.
7997         (record_out_operands): Likewise.
7998         (build_def_use): Likewise for local "insn".  Replace use of
7999         NULL_RTX with NULL when dealing with an insn.
8000
8001 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8002
8003         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
8004         * reginfo.c (reg_scan): Likewise, also for local "insn".
8005         (reg_scan_mark_refs): Likewise for param "insn".
8006         (init_subregs_of_mode): Likewise for local "insn".
8007
8008 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8009
8010         * regcprop.c (struct queued_debug_insn_change): Strengthen field
8011         "insn" from rtx to rtx_insn *.
8012         (replace_oldest_value_reg): Likewise for param "insn".
8013         (replace_oldest_value_addr): Likewise.
8014         (replace_oldest_value_mem): Likewise.
8015         (apply_debug_insn_changes): Likewise for local "last_insn".
8016         (copyprop_hardreg_forward_1): Likewise for local "insn".
8017
8018 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8019
8020         * reg-stack.c (next_flags_user): Strengthen return type and param
8021         "insn" from rtx to rtx_insn *.
8022         (straighten_stack): Likewise for param "insn".
8023         (check_asm_stack_operands): Likewise.
8024         (remove_regno_note): Likewise.
8025         (emit_pop_insn): Likewise for return type, param "insn", local
8026         "pop_insn".
8027         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
8028         "limit" from rtx to rtx_insn *.
8029         (swap_to_top): Likewise for param "insn".
8030         (move_for_stack_reg): Likewise.
8031         (move_nan_for_stack_reg): Likewise.
8032         (swap_rtx_condition): Likewise.
8033         (compare_for_stack_reg): Likewise.
8034         (subst_all_stack_regs_in_debug_insn): Likewise.
8035         (subst_stack_regs_pat): Likewise, and local "insn2".
8036         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
8037         rtx_insn *.
8038         (subst_stack_regs): Likewise.
8039         (change_stack): Likewise.
8040         (convert_regs_1): Likewise for locals "insn", "next".
8041
8042 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8043
8044         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
8045         rtx_insn *.
8046         (combine_set_extension): Likewise for param "curr_insn".
8047         (transform_ifelse): Likewise for param "def_insn".
8048         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
8049         from vec<rtx> * to vec<rtx_insn *> *.
8050         (is_cond_copy_insn): Likewise for param "insn".
8051         (struct ext_state): Strengthen the four vec fields from vec<rtx>
8052         to vec<rtx_insn *>.
8053         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
8054         local "def_insn" from rtx to rtx_insn *.
8055         (get_sub_rtx): Likewise for param "def_insn".
8056         (merge_def_and_ext): Likewise.
8057         (combine_reaching_defs): Likewise.
8058         (add_removable_extension): Likewise for param "insn".
8059         (find_removable_extensions): Likewise for local "insn".
8060         (find_and_remove_re): Likewise for locals "curr_insn" and
8061         "def_insn".  Strengthen locals "reinsn_del_list" and
8062         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
8063
8064 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8065
8066         * recog.c (split_insn): Strengthen param "insn" and locals
8067         "first", "last" from rtx to rtx_insn *.
8068         (split_all_insns): Likewise for locals "insn", "next".
8069         (split_all_insns_noflow): Likewise.
8070
8071 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8072
8073         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
8074         const rtx_insn *.
8075         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
8076         (debug_rtx_find): Likewise for param 1 "x".
8077
8078         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
8079         const_rtx to const rtx_insn *.  Likewise for local "insn".
8080         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
8081         (debug_rtx_find): Likewise for param 1 "x".
8082         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
8083         from const_rtx to const rtx_insn * within the appropriate cases of
8084         the switch statement.
8085
8086         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
8087         Strengthen local "insns" from rtx to rtx_insn * since this is
8088         passed to a call to debug_rtx_list.
8089
8090 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8091
8092         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
8093         to rtx_insn *.
8094
8095         * function.c (stack_protect_epilogue): Add checked cast to
8096         rtx_insn for now when invoking predict_insn_def.
8097
8098         * predict.c (predict_insn): Strengthen param "insn" from rtx to
8099         rtx_insn *.
8100         (predict_insn_def): Likewise.
8101         (rtl_predict_edge): Likewise for local "last_insn".
8102         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
8103         const rtx_insn *.
8104         (combine_predictions_for_insn): Strengthen param "insn" from rtx
8105         to rtx_insn *.
8106         (bb_estimate_probability_locally): Likewise for local "last_insn".
8107         (expensive_function_p): Likewise for local "insn".
8108
8109         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
8110         local "jmp", since this is used when invoking predict_insn_def.
8111
8112 2014-08-22  Marek Polacek  <polacek@redhat.com>
8113
8114         PR c++/62199
8115         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
8116
8117 2014-08-22  Marek Polacek  <polacek@redhat.com>
8118
8119         PR c/61271
8120         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
8121         a comparison in parens.
8122         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
8123         in parens.
8124
8125 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8126
8127         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
8128         rtx_insn *.
8129
8130         * cprop.c (fis_get_condition): Likewise.
8131
8132         * postreload.c (reload_cse_regs): Likewise for param "first".
8133         (reload_cse_simplify): Likewise for param "insn".
8134         (reload_cse_regs_1): Likewise for local "insn".
8135         (reload_cse_simplify_set): Likewise for param "insn".
8136         (reload_cse_simplify_operands): Likewise.
8137         (struct reg_use): Likewise for field "insn".
8138         (reload_combine_purge_insn_uses): Likewise for param "insn".
8139         (fixup_debug_insns): Likewise for params "from", "to" and local
8140         "insn".
8141         (try_replace_in_use): Likewise for local "use_insn".
8142         (reload_combine_recognize_const_pattern): Likewise for param
8143         "insn" and locals "add_moved_after_insn", "use_insn".
8144         (reload_combine_recognize_pattern): Likewise for param "insn" and
8145         local "prev".
8146         (reload_combine): Likewise for locals "insn", "prev".
8147         (reload_combine_note_use): Likewise for param "insn".
8148         (move2add_use_add2_insn): Likewise.
8149         (move2add_use_add3_insn): Likewise.
8150         (reload_cse_move2add): Likewise, also for local "next".
8151         (move2add_note_store): Likewise for local "insn".
8152
8153 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8154
8155         * postreload-gcse.c (struct occr): Strengthen field "insn" from
8156         rtx to rtx_insn *.
8157         (struct unoccr): Likewise.
8158         (struct modifies_mem): Likewise.
8159         (alloc_mem): Likewise for local "insn".
8160         (insert_expr_in_table): Likewise for param "insn".
8161         (dump_expr_hash_table_entry): Likewise for local "insn".
8162         (oprs_unchanged_p): Likewise for param "insn".
8163         (load_killed_in_block_p): Likewise for local "setter".
8164         (record_last_reg_set_info): Likewise for param "insn".
8165         (record_last_reg_set_info_regno): Likewise.
8166         (record_last_mem_set_info): Likewise.
8167         (record_last_set_info): Likewise for local "last_set_insn".
8168         (record_opr_changes): Likewise for param "insn".
8169         (hash_scan_set): Likewise.
8170         (compute_hash_table): Likewise for local "insn".
8171         (get_avail_load_store_reg): Likewise for param "insn".
8172         (eliminate_partially_redundant_load): Likewise, also for locals
8173         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
8174         RTX for insns.
8175         (eliminate_partially_redundant_loads): Likewise for local "insn".
8176
8177 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8178
8179         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
8180         rtx to rtx_insn *.
8181         (expand_binop): Likewise for locals "entry_last", "last", "insns"
8182         (expand_twoval_unop): Likewise for locals entry_last", "last".
8183         (expand_twoval_binop): Likewise.
8184         (expand_twoval_binop_libfunc): Likewise for local "insns".
8185         (widen_leading): Likewise for local "last".
8186         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
8187         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
8188         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
8189         (expand_parity): Likewise for locals "last" and "seq".
8190         (expand_ffs): Likewise for local "seq".  Strengthen local
8191         "nonzero_label" from rtx to rtx_code_label *.
8192         (expand_absneg_bit): Strengthen local "insns" from rtx to
8193         rtx_insn *.
8194         (expand_unop_direct): Likewise for local "last".
8195         (expand_unop): Likewise for locals "last", "insns".
8196         (expand_abs_nojump): Likewise for local "last".
8197         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
8198         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
8199         rtx_insn *.
8200         (expand_copysign_absneg): Strengthen local "label" from rtx to
8201         rtx_code_label *.
8202         (expand_copysign_bit): Strengthen local "insns" from rtx to
8203         rtx_insn *.
8204         (struct no_conflict_data): Likewise for fields "first", "insn".
8205         (emit_libcall_block_1): Likewise for param "insns" and locals
8206         "next", "last", "insn".
8207         (emit_libcall_block): For now, add a checked cast to rtx_insn *
8208         on "insns" when invoking emit_libcall_block_1.  Ultimately we
8209         want to strengthen insns itself.
8210         (prepare_cmp_insn): Strengthen local "last" from rtx to
8211         rtx_insn *.
8212         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
8213         (prepare_float_lib_cmp): Likewise for local "insns".
8214         (emit_conditional_move): Likewise for local "last".
8215         (emit_conditional_add): Likewise.
8216         (have_sub2_insn): Likewise for local "seq".
8217         (expand_float): Likewise for local "insns".  Strengthen locals
8218         "label", "neglabel" from rtx to rtx_code_label *.
8219         (expand_fix): Likewise for locals "last", "insn", "insns" (to
8220         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
8221         (expand_fixed_convert): Likewise for local "insns" (to
8222         rtx_insn *).
8223         (expand_sfix_optab): Likewise for local "last".
8224         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
8225         to rtx_code_label *.
8226         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
8227         from rtx to rtx_insn *.
8228         (expand_atomic_fetch_op): Likewise for local "insn".
8229         (maybe_legitimize_operand_same_code): Likewise for local "last".
8230         (maybe_legitimize_operands): Likewise.
8231
8232 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8233
8234         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
8235         "insn" from rtx to rtx_insn *.
8236         (ps_rtl_insn): Likewise for return type.
8237         (doloop_register_get): Likewise for params "head", "tail" and
8238         locals "insn", "first_insn_not_to_check".
8239         (schedule_reg_move): Likewise for local "this_insn".
8240         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
8241         of gen_move_insn for now.
8242         (reset_sched_times): Strengthen local "insn" from rtx to
8243         rtx_insn *.
8244         (permute_partial_schedule): Likewise.
8245         (duplicate_insns_of_cycles): Likewise for local "u_insn".
8246         (dump_insn_location): Likewise for param "insn".
8247         (loop_canon_p): Likewise for local "insn".
8248         (sms_schedule): Likewise.
8249         (print_partial_schedule): Likewise.
8250         (ps_has_conflicts): Likewise.
8251
8252 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8253
8254         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
8255         "tailp" from rtx * to rtx_insn **.
8256
8257         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
8258         from rtx to rtx_insn *.
8259         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
8260         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
8261         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
8262         rtx to rtx_insn *.
8263         * modulo-sched.c (const_iteration_count): Strengthen return type
8264         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
8265         use of NULL_RTX with NULL when working with insns.
8266         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
8267         to rtx_insn *.
8268         (sms_schedule): Likewise.
8269         * sched-rgn.c (init_ready_list): Likewise, also for locals
8270         "src_head" and "src_next_tail".
8271         (compute_block_dependences): Likewise.
8272         (free_block_dependencies): Likewise.
8273         (debug_rgn_dependencies): Likewise.
8274         (free_rgn_deps): Likewise.
8275         (compute_priorities): Likewise.
8276         (schedule_region): Likewise.
8277         * sel-sched.c (find_ebb_boundaries): Likewise.
8278
8279         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
8280         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
8281
8282 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8283
8284         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
8285         from rtx to rtx_insn *.
8286         (new_seginfo): Likewise for param "insn".
8287         (create_pre_exit): Likewise for locals "last_insn",
8288         "before_return_copy", "return_copy".
8289         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
8290         "mode_set".
8291
8292 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8293
8294         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
8295         from rtx to rtx_insn *.
8296         (lra_push_insn): Likewise for 1st param.
8297         (lra_push_insn_and_update_insn_regno_info): Likewise.
8298         (lra_pop_insn): Likewise for return type.
8299         (lra_invalidate_insn_data): Likewise for 1st param.
8300         (lra_set_insn_deleted): Likewise.
8301         (lra_delete_dead_insn): Likewise.
8302         (lra_process_new_insns): Likewise for first 3 params.
8303         (lra_set_insn_recog_data): Likewise for 1st param.
8304         (lra_update_insn_recog_data): Likewise.
8305         (lra_set_used_insn_alternative): Likewise.
8306         (lra_invalidate_insn_regno_info): Likewise.
8307         (lra_update_insn_regno_info): Likewise.
8308         (lra_former_scratch_operand_p): Likewise.
8309         (lra_eliminate_regs_1): Likewise.
8310         (lra_get_insn_recog_data): Likewise.
8311
8312         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
8313         rtx to rtx_insn *.
8314
8315         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
8316         "mv1" and "mv2".
8317         (substitute_within_insn): New.
8318         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
8319         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
8320         Replace call to "substitute" with call to substitute_within_insn.
8321
8322         * lra-constraints.c (curr_insn): Strengthen from rtx to
8323         rtx_insn *.
8324         (get_equiv_with_elimination): Likewise for param "insn".
8325         (match_reload): Strengthen params "before" and "after" from rtx *
8326         to rtx_insn **.
8327         (emit_spill_move): Likewise for return type.  Add a checked cast
8328         to rtx_insn * on result of gen_move_insn for now.
8329         (check_and_process_move): Likewise for local "before".  Replace
8330         NULL_RTX with NULL when referring to insns.
8331         (process_addr_reg): Strengthen params "before" and "after" from
8332         rtx * to rtx_insn **.
8333         (insert_move_for_subreg): Likewise.
8334         (simplify_operand_subreg): Strengthen locals "before" and "after"
8335         from rtx to rtx_insn *.
8336         (process_address_1): Strengthen params "before" and "after" from
8337         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
8338         rtx to rtx_insn *.
8339         (process_address): Strengthen params "before" and "after" from
8340         rtx * to rtx_insn **.
8341         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
8342         (curr_insn_transform): Strengthen locals "before" and "after"
8343         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
8344         to insns.
8345         (loc_equivalence_callback): Update cast of "data", changing
8346         resulting type from rtx to rtx_insn *.
8347         (substitute_pseudo_within_insn): New.
8348         (inherit_reload_reg): Strengthen param "insn" from rtx to
8349         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
8350         NULL when referring to insns.  Add a checked cast to rtx_insn *
8351         when using usage_insn to invoke lra_update_insn_regno_info.
8352         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
8353         likewise for locals "restore", "save".  Add checked casts to
8354         rtx_insn * when using usage_insn to invoke
8355         lra_update_insn_regno_info and lra_process_new_insns.  Replace
8356         NULL_RTX with NULL when referring to insns.
8357         (split_if_necessary): Strengthen param "insn" from rtx to
8358         rtx_insn *.
8359         (update_ebb_live_info): Likewise for params "head", "tail" and local
8360         "prev_insn".
8361         (get_last_insertion_point): Likewise for return type and local "insn".
8362         (get_live_on_other_edges): Likewise for local "last".
8363         (inherit_in_ebb): Likewise for params "head", "tail" and locals
8364         "prev_insn", "next_insn", "restore".
8365         (remove_inheritance_pseudos): Likewise for local "prev_insn".
8366         (undo_optional_reloads): Likewise for local "insn".
8367
8368         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
8369         "insn".
8370         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
8371         insns.
8372         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
8373         rtx_insn *.
8374         (spill_pseudos): Likewise for local "insn".
8375         (init_elimination): Likewise.
8376         (process_insn_for_elimination): Likewise for param "insn".
8377
8378         * lra-lives.c (curr_insn): Likewise.;
8379
8380         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
8381         (remove_pseudos): Likewise for param "insn".
8382         (spill_pseudos): Likewise for local "insn".
8383         (lra_final_code_change): Likewise for locals "insn", "curr".
8384
8385         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
8386         (lra_set_insn_deleted): Likewise.
8387         (lra_delete_dead_insn): Likewise, and for local "prev".
8388         (new_insn_reg): Likewise for param "insn".
8389         (lra_set_insn_recog_data): Likewise.
8390         (lra_update_insn_recog_data): Likewise.
8391         (lra_set_used_insn_alternative): Likewise.
8392         (get_insn_freq): Likewise.
8393         (invalidate_insn_data_regno_info): Likewise.
8394         (lra_invalidate_insn_regno_info): Likewise.
8395         (lra_update_insn_regno_info): Likewise.
8396         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
8397         vec<rtx_insn *>.
8398         (lra_push_insn_1): Strengthen param "insn" from rtx to
8399         rtx_insn *.
8400         (lra_push_insn): Likewise.
8401         (lra_push_insn_and_update_insn_regno_info): Likewise.
8402         (lra_pop_insn): Likewise for return type and local "insn".
8403         (push_insns): Likewise for params "from", "to", and local "insn".
8404         (setup_sp_offset): Likewise for params "from", "last" and locals
8405         "before", "insn".
8406         (lra_process_new_insns): Likewise for params "insn", "before",
8407         "after" and local "last".
8408         (struct sloc): Likewise for field "insn".
8409         (lra_former_scratch_operand_p): Likewise for param "insn".
8410         (remove_scratches): Likewise for locals "insn", "last".
8411         (check_rtl): Likewise for local "insn".
8412         (add_auto_inc_notes): Likewise for param "insn".
8413         (update_inc_notes): Likewise for local "insn".
8414         (lra): Replace NULL_RTX with NULL when referring to insn.
8415
8416 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8417
8418         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
8419         to rtx_insn *.
8420         (resolve_reg_notes): Likewise.
8421         (resolve_simple_move): Likewise for return type, param "insn", and
8422         locals "insns", "minsn".
8423         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
8424         (resolve_use): Likewise.
8425         (resolve_debug): Likewise.
8426         (find_decomposable_shift_zext): Likewise.
8427         (resolve_shift_zext): Likewise for return type, param "insn", and
8428         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
8429         (decompose_multiword_subregs): Likewise for local "insn",
8430         "orig_insn", "decomposed_shift", "end".
8431
8432 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8433
8434         * basic-block.h (basic_block split_edge_and_insert): Strengthen
8435         param "insns" from rtx to rtx_insn *.
8436
8437         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
8438         rtx to rtx_insn *.
8439         (struct iv_to_split): Likewise.
8440         (loop_exit_at_end_p): Likewise for local "insn".
8441         (split_edge_and_insert): Likewise for param "insns".
8442         (compare_and_jump_seq): Likewise for return type, param "cinsn",
8443         and locals "seq", "jump".
8444         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
8445         "branch_code"; update invocations of compare_and_jump_seq to
8446         eliminate NULL_RTX in favor of NULL.
8447         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
8448         rtx to rtx_insn *.
8449         (reset_debug_uses_in_loop): Likewise.
8450         (analyze_insn_to_expand_var): Likewise for param "insn".
8451         (analyze_iv_to_split_insn): Likewise.
8452         (analyze_insns_in_loop): Likewise for local "insn".
8453         (insert_base_initialization): Likewise for param
8454         "insn" and local "seq".
8455         (split_iv): Likewise for param "insn" and local "seq".
8456         (expand_var_during_unrolling): Likewise for param "insn".
8457         (insert_var_expansion_initialization): Likewise for local "seq".
8458         (combine_var_copies_in_loop_exit): Likewise.
8459         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
8460         "insn".
8461         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
8462         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
8463         "next".
8464
8465 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8466
8467         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
8468         rtx_insn *.
8469         (iv_analyze_result): Likewise.
8470         (iv_analyze_expr): Likewise.
8471         (biv_p): Likewise.
8472
8473         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
8474         local "def_insn" from rtx to rtx_insn *.
8475         (get_biv_step_1): Likewise for local "insn".
8476         (iv_analyze_expr): Likewise for param "insn".
8477         (iv_analyze_def): Likewise for local "insn".
8478         (iv_analyze_op): Likewise for param "insn".
8479         (iv_analyze): Likewise.
8480         (iv_analyze_result): Likewise.
8481         (biv_p): Likewise.
8482         (suitable_set_for_replacement): Likewise.
8483         (simplify_using_initial_values): Likewise for local "insn".
8484         (iv_number_of_iterations): Likewise for param "insn".
8485         (check_simple_exit): Add checked cast to rtx_insn when invoking
8486         iv_number_of_iterations for now (until get_condition is
8487         strengthened).
8488
8489         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
8490         "insn" from rtx to rtx_insn *.
8491         (analyze_insns_in_loop): Likewise for local "insn".
8492
8493 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8494
8495         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
8496         to rtx_insn *.
8497         (struct invariant): Likewise.
8498         (hash_invariant_expr_1): Likewise for param "insn".
8499         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
8500         (find_exits): Likewise for local "insn".
8501         (create_new_invariant): Likewise for param "insn".
8502         (check_dependencies): Likewise.
8503         (find_invariant_insn): Likewise.
8504         (record_uses): Likewise.
8505         (find_invariants_insn): Likewise.
8506         (find_invariants_bb): Likewise for local "insn".
8507         (get_pressure_class_and_nregs): Likewise for param "insn".
8508         (calculate_loop_reg_pressure): Likewise for local "insn".
8509
8510 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8511
8512         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
8513         to rtx_insn *.
8514         (add_test): Likewise for locals "seq", "jump".
8515         (doloop_modify): Likewise for locals "sequence", "jump_insn".
8516
8517 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8518
8519         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
8520         rtx_insn *.
8521         (rebuild_jump_labels_chain): Likewise for param "chain".
8522
8523         * cfgexpand.c (pass_expand::execute): Add checked cast to
8524         rtx_insn * when calling rebuild_jump_labels_chain in region where
8525         we know e->insns.r is non-NULL.
8526
8527         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
8528         rtx_insn *.
8529         (rebuild_jump_labels): Likewise.
8530         (rebuild_jump_labels_chain): Likewise for param "chain".
8531         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
8532         (init_label_info): Likewise for param "f".
8533         (maybe_propagate_label_ref): Likewise for params "jump_insn",
8534         "prev_nonjump_insn".
8535         (mark_all_labels): Likewise for param "f" and locals "insn",
8536         "prev_nonjump_insn".
8537
8538 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8539
8540         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
8541         from rtx to rtx_insn *insn.
8542         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
8543         (ira_add_allocno_copy): Likewise.
8544         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
8545         rtx to rtx_insn *.
8546         (ira_create_copy): Likewise.
8547         (ira_add_allocno_copy): Likewise.
8548         (create_bb_allocnos): Likewise for local "insn".
8549         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
8550         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
8551         process_regs_for_copy for rtx_insn * param.
8552         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
8553         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
8554         process_regs_for_copy for rtx_insn * param.
8555         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
8556         * ira-costs.c (record_reg_classes): Likewise for param "insn".
8557         (record_operand_costs): Likewise.
8558         (scan_one_insn): Likewise for return type, and for param "insn".
8559         (process_bb_for_costs): Likewise for local "insn".
8560         (process_bb_node_for_hard_reg_moves): Likewise.
8561         * ira-emit.c (struct move): Likewise for field "insn".
8562         (create_move): Eliminate use of NULL_RTX when dealing with an
8563         rtx_insn *.
8564         (emit_move_list): Strengthen return type and locals "result",
8565         "insn" from rtx to rtx_insn *insn.
8566         (emit_moves): Likewise for locals "insns", "tmp".
8567         (ira_emit): Likewise for local "insn".
8568         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
8569         "insn".
8570         (find_call_crossed_cheap_reg): Likewise.
8571         (process_bb_node_lives): Likewise for local "insn".
8572         * ira.c (decrease_live_ranges_number): Likewise.
8573         (compute_regs_asm_clobbered): Likewise.
8574         (build_insn_chain): Likewise.
8575         (find_moveable_pseudos): Likewise, also locals "def_insn",
8576         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
8577         to rtx_insn **.  Add a checked cast when assigning from
8578         "closest_use" into closest_uses array in a region where we know
8579         it's a non-NULL insn.
8580         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
8581         to rtx_insn *.
8582         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
8583         "last_interesting_insn", "uin".
8584         (move_unallocated_pseudos): Likewise for locals "def_insn",
8585         "move_insn", "newinsn".
8586
8587 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8588
8589         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
8590         Strengthen locals "done_label", "do_error" from rtx to
8591         rtx_code_label *.
8592         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
8593         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
8594         rtx_code_label *.
8595         (ubsan_expand_si_overflow_neg_check): Likewise for locals
8596         "done_label", "do_error" to rtx_code_label * and local  "last" to
8597         rtx_insn *.
8598         (ubsan_expand_si_overflow_mul_check): Likewise for locals
8599         "done_label", "do_error", "large_op0", "small_op0_large_op1",
8600         "one_small_one_large", "both_ops_large", "after_hipart_neg",
8601         "after_lopart_neg", "do_overflow", "hipart_different"  to
8602         rtx_code_label * and local  "last" to rtx_insn *.
8603
8604 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8605
8606         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8607         "insn" and "move_insn" from rtx to rtx_insn *.
8608
8609 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8610
8611         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8612         rtx_insn *.
8613         (cheap_bb_rtx_cost_p): Likewise.
8614         (first_active_insn): Likewise for return type and local "insn".
8615         (last_active_insn):  Likewise for return type and locals "insn",
8616         "head".
8617         (struct noce_if_info): Likewise for fields "jump", "insn_a",
8618         "insn_b".
8619         (end_ifcvt_sequence): Likewise for return type and locals "insn",
8620         "seq".
8621         (noce_try_move): Likewise for local "seq".
8622         (noce_try_store_flag): Likewise.
8623         (noce_try_store_flag_constants): Likewise.
8624         (noce_try_addcc): Likewise.
8625         (noce_try_store_flag_mask): Likewise.
8626         (noce_try_cmove): Likewise.
8627         (noce_try_minmax): Likewise.
8628         (noce_try_abs): Likewise.
8629         (noce_try_sign_mask): Likewise.
8630         (noce_try_bitop): Likewise.
8631         (noce_can_store_speculate_p): Likewise for local "insn".
8632         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8633         seq".
8634         (check_cond_move_block): Likewise for local "insn".
8635         (cond_move_convert_if_block): Likewise.
8636         (cond_move_process_if_block): Likewise for locals "seq",
8637         "loc_insn".
8638         (noce_find_if_block): Likewise for local "jump".
8639         (merge_if_block): Likewise for local "last".
8640         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8641         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8642         (block_has_only_trap): Likewise for return type and local "trap".
8643         (find_if_case_1): Likewise for local "jump".
8644         (dead_or_predicable): Likewise for locals "head", "end", "jump",
8645         "insn".
8646
8647 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8648
8649         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8650         "last_insn", "loop_end" from rtx to rtx_insn *.
8651
8652         * hw-doloop.c (scan_loop): Likewise for local "insn".
8653         (discover_loop): Likewise for param "tail_insn".
8654         (discover_loops): Likewise for local "tail".
8655
8656         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8657         cast to rtx_insn * when assigning from an rtx local to a
8658         hwloop_info's "last_insn" field.
8659
8660 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8661
8662         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8663         (add_delay_dependencies): Strengthen local "pro" from rtx to
8664         rtx_insn *.
8665         (recompute_todo_spec): Likewise.
8666         (dep_cost_1): Likewise for locals "insn", "used".
8667         (schedule_insn): Likewise for local "dbg".
8668         (schedule_insn): Likewise for locals "pro", "next".
8669         (unschedule_insns_until): Likewise for local "con".
8670         (restore_pattern): Likewise for local "next".
8671         (estimate_insn_tick): Likewise for local "pro".
8672         (resolve_dependencies): Likewise for local "next".
8673         (fix_inter_tick): Likewise.
8674         (fix_tick_ready): Likewise for local "pro".
8675         (add_to_speculative_block): Likewise for locals "check", "twin",
8676         "pro".
8677         (sched_extend_bb): Likewise for locals "end", "insn".
8678         (init_before_recovery): Likewise for local "x".
8679         (sched_create_recovery_block): Likewise for local "barrier".
8680         (create_check_block_twin): Likewise for local "pro".
8681         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8682         "consumer".
8683         (unlink_bb_notes): Update for change to type of bb_header.
8684         Strengthen locals "prev", "label", "note", "next" from rtx to
8685         rtx_insn *.
8686         (clear_priorities): Likewise for local "pro".
8687
8688 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8689
8690         * gcse.c (struct occr): Strengthen field "insn" from rtx to
8691         rtx_insn *.
8692         (test_insn): Likewise for this global.
8693         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8694         const rtx_insn *.
8695         (oprs_anticipatable_p): Likewise.
8696         (oprs_available_p): Likewise.
8697         (insert_expr_in_table): Strengthen param "insn" from  rtx to
8698         rtx_insn *.
8699         (hash_scan_set): Likewise.
8700         (hash_scan_clobber): Likewise.
8701         (hash_scan_call): Likewise.
8702         (hash_scan_insn): Likewise.
8703         (compute_hash_table_work): Likewise for local "insn".
8704         (process_insert_insn): Likewise for return type and local "pat".
8705         (insert_insn_end_basic_block): Likewise for locals "new_insn",
8706         "pat", "pat_end", "maybe_cc0_setter".
8707         (pre_edge_insert): Likewise for local "insn".
8708         (pre_insert_copy_insn): Likewise for param "insn".
8709         (pre_insert_copies): Likewise for local "insn".
8710         (struct set_data): Likewise for field "insn".
8711         (single_set_gcse): Likewise for param "insn".
8712         (gcse_emit_move_after): Likewise.
8713         (pre_delete): Likewise for local "insn".
8714         (update_bb_reg_pressure): Likewise for param "from" and local
8715         "insn".
8716         (should_hoist_expr_to_dom): Likewise for param "from".
8717         (hoist_code): Likewise for local "insn".
8718         (get_pressure_class_and_nregs): Likewise for param "insn".
8719         (calculate_bb_reg_pressure): Likewise for local "insn".
8720         (compute_ld_motion_mems): Likewise.
8721
8722 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8723
8724         * genpeep.c (main): Rename param back from "uncast_ins1" to
8725         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
8726         checked cast.
8727
8728         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8729
8730 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8731
8732         PR target/62195
8733         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8734         documentation to state it is only for VSX operations.
8735
8736         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8737         constraint only active if VSX.
8738
8739         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8740         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8741         (lfiwzx): Likewise.
8742
8743 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8744
8745         * fwprop.c (single_def_use_dom_walker::before_dom_children):
8746         Strengthen local "insn" from rtx to rtx_insn *.
8747         (use_killed_between): Likewise for param "target_insn".
8748         (all_uses_available_at): Likewise for param "target_insn" and
8749         local "next".
8750         (update_df_init): Likewise for params "def_insn", "insn".
8751         (update_df): Likewise for param "insn".
8752         (try_fwprop_subst): Likewise for param "def_insn" and local
8753         "insn".
8754         (free_load_extend): Likewise for param "insn".
8755         (forward_propagate_subreg): Likewise for param "def_insn" and
8756         local "use_insn".
8757         (forward_propagate_asm): Likewise for param "def_insn" and local
8758         "use_insn".
8759         (forward_propagate_and_simplify): Likewise for param "def_insn"
8760         and local "use_insn".
8761         (forward_propagate_into): Likewise for locals "def_insn" and
8762         "use_insn".
8763
8764 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8765
8766         * function.c (emit_initial_value_sets): Strengthen local "seq"
8767         from rtx to rtx_insn *.
8768         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8769         local "seq".
8770         (instantiate_virtual_regs): Likewise for local "insn".
8771         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8772         (reorder_blocks_1): Likewise for param "insns" and local "insn".
8773         (expand_function_end): Likewise for locals "insn" and "seq".
8774         (epilogue_done): Likewise for local "insn".
8775         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8776         "last", "trial".
8777         (reposition_prologue_and_epilogue_notes): Likewise for locals
8778         "insn", "last", "note", "first".
8779         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8780         (pass_match_asm_constraints::execute): Likewise for local "insn".
8781
8782 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8783
8784         * output.h (final_scan_insn): Strengthen return type from rtx to
8785         rtx_insn *.
8786         (final_forward_branch_p): Likewise for param.
8787         (current_output_insn): Likewise for this global.
8788
8789         * final.c (rtx debug_insn): Likewise for this variable.
8790         (current_output_insn): Likewise.
8791         (get_attr_length_1): Rename param "insn" to "uncast_insn",
8792         adding "insn" back in as an rtx_insn * with a checked cast, so
8793         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8794         first param.
8795         (compute_alignments): Strengthen local "label" from rtx to
8796         rtx_insn *.
8797         (shorten_branches): Rename param from "first" to "uncast_first",
8798         introducing a new local rtx_insn * "first" using a checked cast to
8799         effectively strengthen "first" from rtx to rtx_insn * without
8800         affecting the type signature.  Strengthen locals "insn", "seq",
8801         "next", "label" from rtx to rtx_insn *.
8802         (change_scope): Strengthen param "orig_insn" and local "insn" from
8803         rtx to rtx_insn *.
8804         (final_start_function): Rename param from "first" to "uncast_first",
8805         introducing a new local rtx_insn * "first" using a checked cast to
8806         effectively strengthen "first" from rtx to rtx_insn * without
8807         affecting the type signature.  Strengthen local "insn" from rtx to
8808         rtx_insn *.
8809         (dump_basic_block_info): Strengthen param "insn" from rtx to
8810         rtx_insn *.
8811         (final): Rename param from "first" to "uncast_first",
8812         introducing a new local rtx_insn * "first" using a checked cast to
8813         effectively strengthen "first" from rtx to rtx_insn * without
8814         affecting the type signature.  Strengthen locals "insn", "next"
8815         from rtx to rtx_insn *.
8816         (output_alternate_entry_point): Strengthen param "insn" from rtx to
8817         rtx_insn *.
8818         (call_from_call_insn): Strengthen param "insn" from rtx to
8819         rtx_call_insn *.
8820         (final_scan_insn): Rename param from "insn" to "uncast_insn",
8821         introducing a new local rtx_insn * "insn" using a checked cast to
8822         effectively strengthen "insn" from rtx to rtx_insn * without
8823         affecting the type signature.  Strengthen return type and locals
8824         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
8825         now-redundant checked cast to rtx_insn * from both invocations of
8826         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
8827         introducing a local "call_insn" for use when invoking
8828         call_from_call_insn.
8829         (notice_source_line): Strengthen param "insn" from rtx to
8830         rtx_insn *.
8831         (leaf_function_p): Likewise for local "insn".
8832         (final_forward_branch_p): Likewise.
8833         (leaf_renumber_regs): Likewise for param "first".
8834         (rest_of_clean_state): Likewise for locals "insn" and "next".
8835         (self_recursive_call_p): Likewise for param "insn".
8836         (collect_fn_hard_reg_usage): Likewise for local "insn".
8837         (get_call_fndecl): Likewise for param "insn".
8838         (get_call_cgraph_rtl_info): Likewise.
8839         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8840         introducing a new local rtx_insn * "insn" using a checked cast to
8841         effectively strengthen "insn" from rtx to rtx_insn * without
8842         affecting the type signature.
8843
8844         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8845         cast when assigning from param "insn" to current_output_insn.
8846         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8847         so that we can assign it back to current_output_insn.
8848
8849 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8850
8851         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8852         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8853         atmxt540s and atmxt540sreva devices.
8854         * config/avr/avr-tables.opt: Regenerate.
8855         * config/avr/t-multilib: Regenerate.
8856         * doc/avr-mmcu.texi: Regenerate.
8857
8858 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8859
8860         * expr.c (convert_move): Strengthen local "insns" from rtx to
8861         rtx_insn *.
8862         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8863         "top_label" from rtx to rtx_code_label *.
8864         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8865         rtx_insn *.
8866         (emit_single_push_insn): Likewise for locals "prev", "last".
8867         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8868         to rtx_code_label *.
8869         (store_constructor): Likewise for locals "loop_start", "loop_end".
8870         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8871         rtx_insn *.
8872         (expand_expr_real_2): Likewise.
8873         (expand_expr_real_1): Strengthen local "label" from rtx to
8874         rtx_code_label *.
8875
8876 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8877
8878         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8879         from rtx to rtx_insn *.
8880         (store_bit_field_1): Likewise.
8881         (extract_bit_field_1): Likewise.
8882         (expand_mult_const): Likewise for local "insns".
8883         (expmed_mult_highpart): Strengthen local "label" from rtx to
8884         rtx_code_label *.
8885         (expand_smod_pow2): Likewise.
8886         (expand_sdiv_pow2): Likewise.
8887         (expand_divmod): Strengthen locals "last", "insn" from rtx to
8888         rtx_insn *.  Strengthen locals "label", "label1", "label2",
8889         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8890         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8891         (emit_store_flag): Likewise.
8892         (emit_store_flag_force): Strengthen local "label" from rtx to
8893         rtx_code_label *.
8894         (do_cmp_and_jump): Likewise for param "label".
8895
8896 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8897
8898         * explow.c (force_reg): Strengthen local "insn" from rtx to
8899         rtx_insn *.
8900         (adjust_stack_1): Likewise.
8901         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
8902         "final_label", "available_label", "space_available" from rtx to
8903         rtx_code_label *.
8904         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8905         (anti_adjust_stack_and_probe): Likewise.
8906
8907 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8908
8909         * except.h (sjlj_emit_function_exit_after): Strengthen param
8910         "after" from rtx to rtx_insn *.  This is only called with
8911         result of get_last_insn (in function.c) so type-change should be
8912         self-contained.
8913
8914         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8915         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8916         to rtx_insn *.  These fields are only used from except.c so this
8917         type-change should be self-contained to this patch.
8918
8919         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8920         local "last" from rtx to rtx_insn *.
8921         (dw2_build_landing_pads): Likewise for local "seq".
8922         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8923         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8924         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
8925         rtx to rtx_insn *.
8926         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8927         to rtx_insn *.
8928         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8929         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8930         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8931         referring to an insn.  Strengthen local "dispatch_label" from
8932         rtx to rtx_code_label *.
8933         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8934         rtx_insn *.
8935         (expand_eh_return): Strengthen local "around_label" from
8936         rtx to rtx_code_label *.
8937         (convert_to_eh_region_ranges): Strengthen locals "iter",
8938         "last_action_insn", "first_no_action_insn",
8939         "first_no_action_insn_before_switch",
8940         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8941
8942 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8943
8944         * dwarf2out.c (last_var_location_insn): Strengthen this variable
8945         from rtx to rtx_insn *.
8946         (cached_next_real_insn): Likewise.
8947         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8948         working with insns.
8949         (dwarf2out_var_location): Strengthen locals "next_real",
8950         "next_note", "expected_next_loc_note", "last_start", "insn" from
8951         rtx to rtx_insn *.
8952
8953 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8954
8955         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8956         from rtx to rtx_insn *.
8957         (create_pseudo_cfg): Likewise for local "insn".
8958
8959 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8960
8961         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8962         from rtx to rtx_insn *.
8963         (df_bb_regno_last_def_find): Likewise.
8964
8965         * df-problems.c (df_rd_bb_local_compute): Likewise.
8966         (df_lr_bb_local_compute): Likewise.
8967         (df_live_bb_local_compute): Likewise.
8968         (df_chain_remove_problem): Likewise.
8969         (df_chain_create_bb): Likewise.
8970         (df_word_lr_bb_local_compute): Likewise.
8971         (df_remove_dead_eq_notes): Likewise for param "insn".
8972         (df_note_bb_compute): Likewise for local "insn".
8973         (simulate_backwards_to_point): Likewise.
8974         (df_md_bb_local_compute): Likewise.
8975
8976         * df-scan.c (df_scan_free_bb_info): Likewise.
8977         (df_scan_start_dump): Likewise.
8978         (df_scan_start_block): Likewise.
8979         (df_install_ref_incremental): Likewise for local "insn".
8980         (df_insn_rescan_all): Likewise.
8981         (df_reorganize_refs_by_reg_by_insn): Likewise.
8982         (df_reorganize_refs_by_insn_bb): Likewise.
8983         (df_recompute_luids): Likewise.
8984         (df_bb_refs_record): Likewise.
8985         (df_update_entry_exit_and_calls): Likewise.
8986         (df_bb_verify): Likewise.
8987
8988 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8989
8990         * ddg.h (struct ddg_node): Strengthen fields "insn" and
8991         "first_note" from rtx to rtx_insn *.
8992         (get_node_of_insn): Likewise for param 2 "insn".
8993         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8994
8995         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8996         rtx_insn *.
8997         (mem_write_insn_p): Likewise.
8998         (mem_access_insn_p): Likewise.
8999         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
9000         (def_has_ccmode_p): Likewise for param "insn".
9001         (add_cross_iteration_register_deps): Likewise for locals
9002         "def_insn" and "use_insn".
9003         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
9004         (build_intra_loop_deps): Likewise for local "src_insn".
9005         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
9006         to rtx_insn *.
9007         (get_node_of_insn): Likewise for param "insn".
9008
9009 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9010
9011         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
9012         (deletable_insn_p): Strengthen param "insn" from rtx to
9013         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
9014         find_call_stack_args, since this is guarded by CALL_P (insn).
9015         (marked_insn_p): Strengthen param "insn" from rtx to
9016         rtx_insn *.
9017         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
9018         invoking find_call_stack_args, since this is guarded by
9019         CALL_P (insn).
9020         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
9021         rtx_insn *; we know this is an insn since this was called by
9022         mark_nonreg_stores.
9023         (mark_nonreg_stores_2): Likewise.
9024         (mark_nonreg_stores): Strengthen param "insn" from rtx to
9025         rtx_insn *.
9026         (find_call_stack_args): Strengthen param "call_insn" from rtx to
9027         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
9028         to rtx_insn *.
9029         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
9030         from rtx to rtx_insn *.
9031         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
9032         "next", "ref_insn".
9033         (delete_unmarked_insns): Likewise for locals "insn", "next".
9034         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
9035         (mark_reg_dependencies): Likewise for param "insn".
9036         (rest_of_handle_ud_dce): Likewise for local "insn".
9037         (word_dce_process_block): Likewise.
9038         (dce_process_block): Likewise.
9039
9040 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9041
9042         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
9043         from rtx to rtx_insn *.
9044         (struct change_cc_mode_args): Likewise for field "insn".
9045         (this_insn): Strengthen from rtx to rtx_insn *.
9046         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
9047         with insn.
9048         (validate_canon_reg): Strengthen param "insn" from rtx to
9049         rtx_insn *.
9050         (canon_reg): Likewise.
9051         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
9052         dealing with insn.
9053         (record_jump_equiv): Strengthen param "insn" from rtx to
9054         rtx_insn *.
9055         (try_back_substitute_reg): Likewise, also for locals "prev",
9056         "bb_head".
9057         (find_sets_in_insn): Likewise for param "insn".
9058         (canonicalize_insn): Likewise.
9059         (cse_insn): Likewise.  Add a checked cast.
9060         (invalidate_from_clobbers): Likewise for param "insn".
9061         (invalidate_from_sets_and_clobbers): Likewise.
9062         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
9063         dealing with insn.
9064         (cse_prescan_path): Strengthen local "insn" from rtx to
9065         rtx_insn *.
9066         (cse_extended_basic_block): Likewise for locals "insn" and
9067         "prev_insn".
9068         (cse_main): Likewise for param "f".
9069         (check_for_label_ref): Likewise for local "insn".
9070         (set_live_p): Likewise for second param ("insn").
9071         (insn_live_p): Likewise for first param ("insn") and for local
9072         "next".
9073         (cse_change_cc_mode_insn): Likewise for first param "insn".
9074         (cse_change_cc_mode_insns): Likewise for first and second params
9075         "start" and "end".
9076         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
9077         and "end".
9078         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
9079         "cc_src_insn".
9080
9081 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9082             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9083             Anna Tikhonova  <anna.tikhonova@intel.com>
9084             Ilya Tocar  <ilya.tocar@intel.com>
9085             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9086             Ilya Verbin  <ilya.verbin@intel.com>
9087             Kirill Yukhin  <kirill.yukhin@intel.com>
9088             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9089
9090         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
9091         New.
9092         * config/i386/sse.md
9093         (define_mode_iterator VI248_AVX2): Delete.
9094         (define_mode_iterator VI2_AVX2_AVX512BW): New.
9095         (define_mode_iterator VI48_AVX2): Ditto.
9096         (define_insn <shift_insn><mode>3): Delete.
9097         (define_insn "<shift_insn><mode>3<mask_name>" with
9098         VI2_AVX2_AVX512BW): New.
9099         (define_insn "<shift_insn><mode>3<mask_name>" with
9100         VI48_AVX2): Ditto.
9101
9102 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9103             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9104             Anna Tikhonova  <anna.tikhonova@intel.com>
9105             Ilya Tocar  <ilya.tocar@intel.com>
9106             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9107             Ilya Verbin  <ilya.verbin@intel.com>
9108             Kirill Yukhin  <kirill.yukhin@intel.com>
9109             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9110
9111         * config/i386/sse.md
9112         (define_mode_iterator VI4F_BRCST32x2): New.
9113         (define_mode_attr 64x2_mode): Ditto.
9114         (define_mode_attr 32x2mode): Ditto.
9115         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
9116         with VI4F_BRCST32x2): Ditto.
9117         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
9118         with V16FI mode iterator): Ditto.
9119         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
9120         with V16FI): Ditto.
9121         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
9122         with VI8F_BRCST64x2): Ditto.
9123
9124 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9125             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9126             Anna Tikhonova  <anna.tikhonova@intel.com>
9127             Ilya Tocar  <ilya.tocar@intel.com>
9128             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9129             Ilya Verbin  <ilya.verbin@intel.com>
9130             Kirill Yukhin  <kirill.yukhin@intel.com>
9131             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9132
9133         * config/i386/sse.md
9134         (define_mode_iterator VI8_AVX512VL): New.
9135         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
9136
9137 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9138
9139         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
9140         (define_mode_iterator V48_AVX512VL): New.
9141         (define_mode_iterator V12_AVX512VL): Ditto.
9142         (define_insn <avx512>_load<mode>_mask): Split into two similar
9143         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
9144         Refactor output template.
9145         (define_insn "<avx512>_store<mode>_mask"): Ditto.
9146
9147 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9148
9149         * cprop.c (struct occr): Strengthen field "insn" from rtx to
9150         rtx_insn *.
9151         (reg_available_p): Likewise for param "insn".
9152         (insert_set_in_table): Likewise.
9153         (hash_scan_set): Likewise.
9154         (hash_scan_insn): Likewise.
9155         (make_set_regs_unavailable): Likewise.
9156         (compute_hash_table_work): Likewise for local "insn".
9157         (reg_not_set_p): Strengthen param "insn" from const_rtx to
9158         const rtx_insn *.
9159         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
9160         (try_replace_reg): Likewise.
9161         (find_avail_set): Likewise.
9162         (cprop_jump): Likewise for params "setcc", "jump".
9163         (constprop_register): Likewise for param "insn".
9164         (cprop_insn): Likewise.
9165         (do_local_cprop): Likewise.
9166         (local_cprop_pass): Likewise for local "insn".
9167         (bypass_block): Likewise for params "setcc" and "jump".
9168         (bypass_conditional_jumps): Likewise for locals "setcc" and
9169         "insn".
9170         (one_cprop_pass): Likewise for local "insn".
9171
9172 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9173
9174         * compare-elim.c (struct comparison_use): Strengthen field "insn"
9175         from rtx to rtx_insn *.
9176         (struct comparison): Likewise, also for field "prev_clobber".
9177         (conforming_compare): Likewise for param "insn".
9178         (arithmetic_flags_clobber_p): Likewise.
9179         (find_flags_uses_in_insn): Likewise.
9180         (find_comparison_dom_walker::before_dom_children): Likewise for
9181         locals "insn", "next", "last_clobber".
9182         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
9183
9184 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9185
9186         * combine-stack-adj.c (struct csa_reflist): Strengthen field
9187         "insn" from rtx to rtx_insn *.
9188         (single_set_for_csa): Likewise for param "insn".
9189         (record_one_stack_ref): Likewise.
9190         (try_apply_stack_adjustment): Likewise.
9191         (struct record_stack_refs_data): Likewise for field "insn".
9192         (maybe_move_args_size_note): Likewise for params "last" and "insn".
9193         (prev_active_insn_bb): Likewise for return type and param "insn".
9194         (next_active_insn_bb): Likewise.
9195         (force_move_args_size_note): Likewise for params "prev" and "last"
9196         and locals "test", "next_candidate", "prev_candidate".
9197         (combine_stack_adjustments_for_block): Strengthen locals
9198         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
9199         rtx_insn *.
9200
9201 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9202
9203         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
9204         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
9205         (subst_insn): Likewise for this variable.
9206         (added_links_insn): Likewise.
9207         (struct insn_link): Likewise for field "insn".
9208         (alloc_insn_link): Likewise for param "insn".
9209         (struct undobuf): Likewise for field "other_insn".
9210         (find_single_use): Likewise for param "insn" and local "next".
9211         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
9212         (delete_noop_moves): Likewise for locals "insn", "next".
9213         (create_log_links): Likewise for locals "insn", "use_insn".
9214         Strengthen local "next_use" from rtx * to rtx_insn **.
9215         (insn_a_feeds_b): Likewise for params "a", "b".
9216         (combine_instructions): Likewise for param "f" and locals "insn",
9217         "next", "prev", "first", "last_combined_insn", "link", "link1",
9218         "temp".  Replace use of NULL_RTX with NULL when referring to
9219         insns.
9220         (setup_incoming_promotions): Likewise for param "first"
9221         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
9222         (can_combine_p): Likewise for params "insn", "i3", "pred",
9223         "pred2", "succ", "succ2" and for local "p".
9224         (combinable_i3pat): Likewise for param "i3".
9225         (cant_combine_insn_p): Likewise for param "insn".
9226         (likely_spilled_retval_p): Likewise.
9227         (adjust_for_new_dest): Likewise.
9228         (update_cfg_for_uncondjump): Likewise, also for local "insn".
9229         (try_combine): Likewise for return type and for params "i3", "i2",
9230         "i1", "i0", "last_combined_insn", and for locals "insn",
9231         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
9232         "i0_insn".  Eliminate local "tem" in favor of new locals
9233         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
9234         checked cast for now to rtx_insn * on the return type of
9235         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
9236         insns.
9237         (find_split_point): Strengthen param "insn" from rtx to
9238         rtx_insn *.
9239         (simplify_set): Likewise for local "other_insn".
9240         (recog_for_combine): Likewise for param "insn".
9241         (record_value_for_reg): Likewise.
9242         (record_dead_and_set_regs_1): Likewise for local
9243         "record_dead_insn".
9244         (record_dead_and_set_regs): Likewise for param "insn".
9245         (record_promoted_value): Likewise.
9246         (check_promoted_subreg): Likewise.
9247         (get_last_value_validate): Likewise.
9248         (reg_dead_at_p): Likewise.
9249         (move_deaths): Likewise for param "to_insn".
9250         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
9251         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
9252         in favor of new locals "tem_note" and "tem_insn", the latter being
9253         an rtx_insn *.
9254         (distribute_links): Strengthen locals "place", "insn" from rtx to
9255         rtx_insn *.
9256
9257 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9258
9259         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
9260         than a const_rtx.
9261         (can_delete_label_p): Require a const rtx_code_label * rather than
9262         a const_rtx.
9263         (delete_insn): Add checked cast to rtx_code_label * when we know
9264         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
9265         rtx to rtx_insn *.
9266         (delete_insn_chain): Strengthen locals "prev" and "current" from
9267         rtx to rtx_insn *.  Add a checked cast when assigning from
9268         "finish" (strengthening the params will come later).  Add a
9269         checked cast to rtx_note * in region where we know
9270         NOTE_P (current).
9271         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
9272         rtx_insn *.
9273         (compute_bb_for_insn): Likewise.
9274         (free_bb_for_insn): Likewise for local "insn".
9275         (compute_bb_for_insn): Likewise.
9276         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
9277         local "insn" from rtx to rtx_insn *
9278         (flow_active_insn_p): Require a const rtx_insn * rather than a
9279         const_rtx.
9280         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
9281         rtx_insn *.
9282         (can_fallthru): Likewise for locals "insn" and "insn2".
9283         (bb_note): Likewise for local "note".
9284         (first_insn_after_basic_block_note): Likewise for local "note" and
9285         for return type.
9286         (rtl_split_block): Likewise for locals "insn" and "next".
9287         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
9288         "end".
9289         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
9290         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
9291         "prev", "tmp".
9292         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
9293         them), "kill_from", "barrier", "new_insn".
9294         (patch_jump_insn): Likewise for params "insn", "old_label".
9295         (redirect_branch_edge): Likewise for locals "old_label", "insn".
9296         (force_nonfallthru_and_redirect): Likewise for locals "insn",
9297         "old_label", "new_label".
9298         (rtl_tidy_fallthru_edge): Likewise for local "q".
9299         (rtl_split_edge): Likewise for locals "before", "last".
9300         (commit_one_edge_insertion): Likewise for locals "before",
9301         "after", "insns", "tmp", "last", adding a checked cast where
9302         currently necessary.
9303         (commit_edge_insertions): Likewise.
9304         (rtl_dump_bb): Likewise for locals "insn", "last".
9305         (print_rtl_with_bb): Likewise for local "x".
9306         (rtl_verify_bb_insns): Likewise for local "x".
9307         (rtl_verify_bb_pointers): Likewise for local "insn".
9308         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
9309         "head", "end".
9310         (rtl_verify_fallthru): Likewise for local "insn".
9311         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
9312         (purge_dead_edges): Likewise for local "insn".
9313         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
9314         (skip_insns_after_block): Likewise for return type and for locals
9315         "insn", "last_insn", "next_head", "prev".
9316         (record_effective_endpoints): Likewise for locals "next_insn",
9317         "insn", "end".
9318         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
9319         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
9320         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
9321         (duplicate_insn_chain): For now, add checked cast from rtx to
9322         rtx_insn * when returning insn.
9323         (cfg_layout_duplicate_bb): Likewise for local "insn".
9324         (cfg_layout_delete_block): Likewise for locals "insn", "next",
9325         "prev", "remaints".
9326         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
9327         (rtl_block_empty_p): Likewise.
9328         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
9329         "split_point", "last".
9330         (rtl_block_ends_with_call_p): Likewise for local "insn".
9331         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
9332         const rtx_insn *.
9333         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
9334         "split_at_insn" from rtx to rtx_insn *.
9335         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
9336         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
9337         to const rtx_insn *.
9338         (rtl_account_profile_record): Likewise.
9339
9340 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9341
9342         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
9343         rtx to rtx_insn *.
9344         (average_num_loop_insns): Likewise.
9345         (init_set_costs): Likewise for local "seq".
9346         (seq_cost): Likewise for param "seq", from const_rtx to const
9347         rtx_insn *.
9348
9349 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9350
9351         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
9352         rtx to rtx_insn *.
9353
9354 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9355
9356         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
9357         "f1" and "f2" from rtx * to rtx_insn **.
9358         (flow_find_head_matching_sequence): Likewise.
9359
9360         * cfgcleanup.c (try_simplify_condjump): Strengthen local
9361         "cbranch_insn" from rtx to rtx_insn *.
9362         (thread_jump): Likewise for local "insn".
9363         (try_forward_edges): Likewise for local "last".
9364         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
9365         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
9366         "real_b_end".
9367         (can_replace_by): Likewise for params "i1", "i2".
9368         (old_insns_match_p): Likewise.
9369         (merge_notes): Likewise.
9370         (walk_to_nondebug_insn): Likewise for param "i1".
9371         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
9372         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
9373         "afterlast1", "afterlast2" from rtx to rtx_insn *.
9374         (flow_find_head_matching_sequence): Strengthen params "f1" and
9375         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
9376         "last1", "last2", "beforelast1", "beforelast2" from rtx to
9377         rtx_insn *.
9378         (outgoing_edges_match): Likewise for locals "last1", "last2".
9379         (try_crossjump_to_edge): Likewise for local "insn".
9380         Replace call to for_each_rtx with for_each_rtx_in_insn.
9381
9382         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
9383         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
9384         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
9385         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
9386         (try_optimize_cfg): Strengthen local "last" from rtx to
9387         rtx_insn *.
9388         (delete_dead_jumptables): Likewise for locals "insn", "next",
9389         "label".
9390
9391         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
9392         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
9393         "rtx else_first_tail", to reflect the basic-block.h changes above.
9394
9395 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9396
9397         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
9398         rtx_insn *.
9399         (purge_dead_tablejump_edges): Likewise.
9400         (find_bb_boundaries): Likewise for locals "insn", "end",
9401         "flow_transfer_insn".
9402
9403 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9404
9405         * caller-save.c (save_call_clobbered_regs): Strengthen locals
9406         "ins" and "prev" from rtx to rtx_insn *.
9407
9408 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9409
9410         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
9411         rtx_insn *.
9412         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
9413         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
9414         "scan_start".
9415         (load_register_parameters): Likewise for local "before_arg".
9416         (check_sibcall_argument_overlap): Likewise for param "insn".
9417         (expand_call): Likewise for locals "normal_call_insns",
9418         "tail_call_insns", "insns", "before_call", "after_args",
9419         "before_arg", "last", "prev".  Strengthen one of the "last" from
9420         rtx to rtx_call_insn *.
9421         (fixup_tail_calls): Strengthen local "insn" from rtx to
9422         rtx_insn *.
9423         (emit_library_call_value_1): Likewise for locals "before_call" and
9424         "last".
9425
9426 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9427
9428         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
9429         and "last" from rtx to rtx_insn *.
9430         (expand_builtin_nonlocal_goto): Likewise for local "insn".
9431         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
9432         rtx_call_insn *.
9433         (expand_errno_check): Strengthen local "lab" from rtx to
9434         rtx_code_label *.
9435         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
9436         rtx_insn *.
9437         (expand_builtin_mathfn_2): Likewise.
9438         (expand_builtin_mathfn_ternary): Likewise.
9439         (expand_builtin_mathfn_3): Likewise.
9440         (expand_builtin_interclass_mathfn): Likewise for local "last".
9441         (expand_builtin_int_roundingfn): Likewise for local "insns".
9442         (expand_builtin_int_roundingfn_2): Likewise.
9443         (expand_builtin_strlen): Likewise for local "before_strlen".
9444         (expand_builtin_strncmp): Likewise for local "seq".
9445         (expand_builtin_signbit): Likewise for local "last".
9446         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
9447         from rtx to rtx_code_label *.
9448         (expand_stack_restore):  Strengthen local "prev" from rtx to
9449         rtx_insn *.
9450
9451 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9452
9453         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
9454         to rtx_insn *.
9455         (struct btr_def_s): Likewise.
9456         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
9457         const rtx_insn *.
9458         (add_btr_def): Likewise.
9459         (new_btr_user): Likewise.
9460         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
9461         rtx to rtx_insn *.
9462         (link_btr_uses): Likewise.
9463         (move_btr_def): Likewise for locals "insp", "old_insn",
9464         "new_insn".  Add checked cast to rtx_insn * for now on result of
9465         gen_move_insn.
9466         (can_move_up): Strengthen param "insn" from const_rtx to
9467         const rtx_insn *.
9468
9469 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9470
9471         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
9472         rtx_insn *.
9473         (get_uncond_jump_length): Likewise for locals "label", "jump".
9474         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
9475         "jump", "insn".
9476         (add_labels_and_missing_jumps): Likewise for local "new_jump".
9477         (fix_up_fall_thru_edges): Likewise for local "old_jump".
9478         (find_jump_block): Likewise for local "insn".
9479         (fix_crossing_conditional_branches): Likewise for locals
9480         "old_jump", "new_jump".
9481         (fix_crossing_unconditional_branches): Likewise for locals
9482         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
9483         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
9484
9485 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9486
9487         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
9488         rtx to rtx_insn *.
9489         (struct mem_insn): Likewise for field "insn".
9490         (reg_next_use): Strengthen from rtx * to rtx_insn **.
9491         (reg_next_inc_use): Likewise.
9492         (reg_next_def): Likewise.
9493         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
9494         from rtx to rtx_insn *.
9495         (move_insn_before): Likewise for param "next_insn" and local "insns".
9496         (attempt_change): Likewise for local "mov_insn".
9497         (try_merge): Likewise for param "last_insn".
9498         (get_next_ref): Likewise for return type and local "insn".
9499         Strengthen param "next_array" from rtx * to rtx_insn **.
9500         (parse_add_or_inc): Strengthen param "insn" from rtx to
9501         rtx_insn *.
9502         (find_inc): Likewise for locals "insn" and "other_insn" (three of
9503         the latter).
9504         (merge_in_block): Likewise for locals "insn", "curr",
9505         "other_insn".
9506         (pass_inc_dec::execute): Update allocations of the arrays to
9507         reflect the stronger types.
9508
9509 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9510
9511         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
9512         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
9513         from rtx to rtx_code_label *.
9514
9515 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9516
9517         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
9518         to rtx_insn *.
9519
9520 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9521
9522         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
9523         generated a warning and prevented bootstrapping the compiler.
9524
9525 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9526
9527         * rtl.h (delete_related_insns): Strengthen return type from rtx to
9528         rtx_insn *.
9529
9530         * jump.c (delete_related_insns): Likewise, also for locals "next"
9531         and "prev".
9532
9533 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9534
9535         * genautomata.c (output_internal_insn_latency_func): When writing
9536         the function "internal_insn_latency" to insn-automata.c,
9537         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
9538         allowing the optional guard function of (define_bypass) clauses to
9539         expect a pair of rtx_insn *, rather than a pair of rtx.
9540         (output_insn_latency_func): When writing the function
9541         "insn_latency", add an "uncast_" prefix to params "insn" and
9542         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
9543         using checked casts from the params, thus enabling the above
9544         change to the generated "internal_insn_latency" function.
9545
9546 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
9547
9548         PR tree-optimization/62091
9549         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
9550         handle correctly arrays.
9551         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
9552         inheritance binfos.
9553         (record_known_type): Walk into inner type.
9554         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
9555         condition on no type changes.
9556
9557 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9558
9559         * genattrtab.c (write_attr_get): Within the generated get_attr_
9560         functions, rename param "insn" to "uncast_insn" and reintroduce
9561         "insn" as an local rtx_insn * using a checked cast, so that "insn"
9562         is an rtx_insn * within insn-attrtab.c
9563
9564 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9565
9566         * output.h (peephole): Strengthen return type from rtx to
9567         rtx_insn *.
9568         * rtl.h (delete_for_peephole): Likewise for both params.
9569         * genpeep.c (main): In generated "peephole" function, strengthen
9570         return type and local "insn" from rtx to rtx_insn *.  For now,
9571         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
9572         rtx_insn *, with a checked cast.
9573         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
9574         locals "insn", "next", "prev" from rtx to rtx_insn *.
9575
9576 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
9577
9578         PR tree-optimization/62112
9579         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
9580         * gimple-iterator.h (gsi_replace): Return bool.
9581         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
9582         moved from ref_may_alias_global_p.
9583         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
9584         New overloads.
9585         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
9586         (stmt_kills_ref_p_1): Rename...
9587         (stmt_kills_ref_p): ... to this.
9588         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
9589         stmt_kills_ref_p): Declare.
9590         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
9591         Move the self-assignment case...
9592         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
9593
9594 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9595
9596         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9597
9598         * emit-rtl.c (try_split): Likewise, also for locals "before" and
9599         "after".  For now, don't strengthen param "trial", which requires
9600         adding checked casts when returning it.
9601
9602 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9603
9604         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9605         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
9606         "var_location" hook from rtx to rtx_insn *.
9607         (debug_nothing_rtx): Delete in favor of...
9608         (debug_nothing_rtx_code_label): New prototype.
9609         (debug_nothing_rtx_rtx): Delete unused prototype.
9610         (debug_nothing_rtx_insn): New prototype.
9611
9612         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9613         invoking debug_hooks->var_location (in two places, one in a NOTE
9614         case of a switch statement, the other guarded by a CALL_P
9615         conditional.  Add checked cast to rtx_code_label * when invoking
9616         debug_hooks->label (within CODE_LABEL case of switch statement).
9617
9618         * dbxout.c (dbx_debug_hooks): Update "label" hook from
9619         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
9620         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9621         (xcoff_debug_hooks): Likewise.
9622         * debug.c (do_nothing_debug_hooks): Likewise.
9623         (debug_nothing_rtx): Delete in favor of...
9624         (debug_nothing_rtx_insn): New function.
9625         (debug_nothing_rtx_rtx): Delete unused function.
9626         (debug_nothing_rtx_code_label): New function.
9627         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9628         debug_nothing_rtx to debug_nothing_rtx_code_label.
9629         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9630         to rtx_insn *.
9631         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9632         debug_nothing_rtx to debug_nothing_rtx_insn.
9633         (sdbout_label): Strengthen param "insn" from rtx to
9634         rtx_code_label *.
9635         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9636         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
9637         "var_location" hook from debug_nothing_rtx to
9638         debug_nothing_rtx_insn.
9639
9640 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9641
9642         * recog.h (insn_output_fn): Update this function typedef to match
9643         the changes below to the generated output functions, strengthening
9644         the 2nd param from rtx to rtx_insn *.
9645
9646         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9647         insn when invoking an output function, to match the new signature
9648         of insn_output_fn with a stronger second param.
9649
9650         * genconditions.c (write_header): In the generated code for
9651         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9652         to match the other changes in this patch.
9653
9654         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9655         the generated "gen_" functions from rtx to rtx_insn * within their
9656         implementations.
9657
9658         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9659         the subfunctions within the generated "recog_", "split", "peephole2"
9660         function trees from rtx to rtx_insn *.  For now, the top-level
9661         generated functions ("recog", "split", "peephole2") continue to
9662         take a plain rtx for "insn", to avoid introducing dependencies on
9663         other patches.  Rename this 2nd param from "insn" to
9664         "uncast_insn", and reintroduce "insn" as a local variable of type
9665         rtx_insn *, initialized at the top of the generated function with
9666         a checked cast on "uncast_insn".
9667         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9668         the generated "gen_" functions from rtx to rtx_insn * within their
9669         prototypes.
9670
9671         * genoutput.c (process_template): Strengthen the 2nd param within
9672         the generated "output_" functions "insn" from rtx to rtx_insn *.
9673
9674 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9675
9676         * tree-profile.c (tree_profiling): Skip external functions
9677         when doing coverage instrumentation.
9678         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9679
9680 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9681
9682         * config/rs6000/altivec.h (vec_cpsgn): New #define.
9683         (vec_mergee): Likewise.
9684         (vec_mergeo): Likewise.
9685         (vec_cntlz): Likewise.
9686         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9687         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9688         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9689         VMRGEW, and VMRGOW.
9690         * doc/extend.texi: Document various forms of vec_cpsgn,
9691         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9692         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9693         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9694         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9695         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9696
9697 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9698
9699         * config/rs6000/rs6000.c (context.h): New include.
9700         (tree-pass.h): Likewise.
9701         (make_pass_analyze_swaps): New decl.
9702         (rs6000_option_override): Register pass_analyze_swaps.
9703         (swap_web_entry): New subsclass of web_entry_base (df.h).
9704         (special_handling_values): New enum.
9705         (union_defs): New function.
9706         (union_uses): Likewise.
9707         (insn_is_load_p): Likewise.
9708         (insn_is_store_p): Likewise.
9709         (insn_is_swap_p): Likewise.
9710         (rtx_is_swappable_p): Likewise.
9711         (insn_is_swappable_p): Likewise.
9712         (chain_purpose): New enum.
9713         (chain_contains_only_swaps): New function.
9714         (mark_swaps_for_removal): Likewise.
9715         (swap_const_vector_halves): Likewise.
9716         (adjust_subreg_index): Likewise.
9717         (permute_load): Likewise.
9718         (permute_store): Likewise.
9719         (handle_special_swappables): Likewise.
9720         (replace_swap_with_copy): Likewise.
9721         (dump_swap_insn_table): Likewise.
9722         (rs6000_analyze_swaps): Likewise.
9723         (pass_data_analyze_swaps): New pass_data.
9724         (pass_analyze_swaps): New rtl_opt_pass.
9725         (make_pass_analyze_swaps): New function.
9726         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9727
9728 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9729
9730         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9731         type from rtx to rtx_insn *.
9732         (create_copy_of_insn_rtx): Likewise.
9733         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9734         (create_copy_of_insn_rtx): Likewise, also for local "res".
9735
9736 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9737
9738         * rtl.h (find_first_parameter_load): Strengthen return type from
9739         rtx to rtx_insn *.
9740         * rtlanal.c (find_first_parameter_load): Strengthen return type
9741         from rtx to rtx_insn *.  Add checked cast for now, to postpone
9742         strengthening the params.
9743
9744 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9745
9746         PR fortran/44054
9747         * diagnostic.c: Set default caret.
9748         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9749         line is needed.
9750         * diagnostic.h (struct diagnostic_context):
9751
9752 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9753
9754         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9755         (sel_bb_head): Strengthen return type insn_t (currently just an
9756         rtx) to rtx_insn *.
9757         (sel_bb_end): Likewise.
9758
9759         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9760         (sel_bb_head): Strengthen return type and local "head" from
9761         insn_t (currently just an rtx) to rtx_insn *.
9762         (sel_bb_end): Likewise for return type.
9763         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9764         working with insn.
9765
9766 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9767
9768         * basic-block.h (get_last_bb_insn): Strengthen return type from
9769         rtx to rtx_insn *.
9770         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9771         end".
9772
9773 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9774
9775         PR fortran/44054
9776         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9777          to here ...
9778         (diagnostic_report_diagnostic): ... from here.
9779         * toplev.c (general_init): Move code to c-family.
9780
9781 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9782
9783         * df.h (web_entry_base): Replace existing struct web_entry with a
9784         new class web_entry_base with only the predecessor member.
9785         (unionfind_root): Remove declaration and move to class member.
9786         (unionfind_union): Remove declaration and move to friend
9787         function.
9788         (union_defs): Remove declaration.
9789         * web.c (web_entry_base::unionfind_root): Modify to be member
9790         function and adjust accessors.
9791         (unionfind_union): Modify to be friend function and adjust
9792         accessors.
9793         (web_entry): New subclass of web_entry_base containing the reg
9794         member.
9795         (union_match_dups): Modify for struct -> class changes.
9796         (union_defs): Likewise.
9797         (entry_register): Likewise.
9798         (pass_web::execute): Likewise.
9799
9800 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
9801
9802         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9803         builtin define __VEC_ELEMENT_REG_ORDER__.
9804
9805 2014-08-20  Martin Jambor  <mjambor@suse.cz>
9806             Wei Mi  <wmi@google.com>
9807
9808         PR ipa/60449
9809         PR middle-end/61776
9810         * tree-ssa-operands.c (update_stmt_operands): Remove
9811         MODIFIED_NORETURN_CALLS.
9812         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9813         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9814         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9815         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9816         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9817         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9818         (gimple_call_set_ctrl_altering): New func.
9819         (gimple_call_ctrl_altering_p): Ditto.
9820         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9821         (make_blocks): Use gimple_call_initialize_ctrl_altering.
9822         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9823         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9824         remove MODIFIED_NORETURN_CALLS.
9825
9826 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9827
9828         * coverage.c (coverage_compute_profile_id): Return non-0;
9829         also handle symbols with unique name.
9830         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9831
9832 2014-08-20  Steve Ellcey  <sellcey@mips.com>
9833
9834         PR middle-end/49191
9835         * doc/sourcebuild.texi (non_strict_align): New.
9836
9837 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9838
9839         * cgraphunit.c (ipa_passes, compile): Reshedule
9840         symtab_remove_unreachable_nodes passes; update comments.
9841         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9842         TODO_remove_functions before the pass; the functions ought to be
9843         already removed.
9844         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9845         TODO_remove_functions.
9846         * passes.c (pass_data_early_local_passes): Do not schedule function
9847         removal.
9848         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9849
9850 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9851
9852         PR c/59304
9853         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9854         before setting the option.
9855         * diagnostic.c (diagnostic_classify_diagnostic): Record
9856         command-line status.
9857
9858 2014-08-20  Richard Biener  <rguenther@suse.de>
9859
9860         PR lto/62190
9861         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9862         to build uint{16,32,64}_type_node.
9863
9864 2014-08-20  Terry Guo  <terry.guo@arm.com>
9865
9866         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9867         with immediate_operand.
9868
9869 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
9870
9871         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9872         "insn" from an as_a to a safe_as_a, for the case when "insn" is
9873         NULL.
9874
9875 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9876
9877         PR preprocessor/51303
9878         * incpath.c (remove_duplicates): Use cpp_warning.
9879
9880 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9881
9882         PR c/60975
9883         PR c/53063
9884         * doc/options.texi (CPP): Document it.
9885         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9886         * optc-gen.awk: Handle CPP.
9887         * opth-gen.awk: Likewise.
9888
9889 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9890
9891         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9892         rtx_insn *.
9893         (duplicate_insn_chain): Likewise.
9894         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9895         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
9896         checked cast for now (until we can strengthen the params in the
9897         same way).
9898         (duplicate_insn_chain): Likewise.
9899
9900 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9901
9902         * rtl.h (next_cc0_user): Strengthen return type from rtx to
9903         rtx_insn *.
9904         (prev_cc0_setter): Likewise.
9905
9906         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9907         rtx_insn *, adding checked casts for now as necessary.
9908         (prev_cc0_setter): Likewise.
9909
9910 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9911
9912         * expr.h (emit_move_insn): Strengthen return type from rtx to
9913         rtx_insn *.
9914         (emit_move_insn_1): Likewise.
9915         (emit_move_complex_push): Likewise.
9916         (emit_move_complex_parts): Likewise.
9917
9918         * expr.c (emit_move_via_integer): Strengthen return type from rtx
9919         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
9920         with insns.
9921         (emit_move_complex_push): Strengthen return type from rtx to
9922         rtx_insn *.
9923         (emit_move_complex): Likewise, also for local "ret".
9924         (emit_move_ccmode): Likewise.
9925         (emit_move_multi_word): Likewise for return type and locals
9926         "last_insn", "seq".
9927         (emit_move_insn_1): Likewise for return type and locals "result",
9928         "ret".
9929         (emit_move_insn): Likewise for return type and local "last_insn".
9930         (compress_float_constant): Likewise.
9931
9932 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9933
9934         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9935         from rtx to rtx_insn *.
9936
9937         * rtl.h (emit_insn_before): Likewise.
9938         (emit_insn_before_noloc): Likewise.
9939         (emit_insn_before_setloc): Likewise.
9940         (emit_jump_insn_before): Likewise.
9941         (emit_jump_insn_before_noloc): Likewise.
9942         (emit_jump_insn_before_setloc): Likewise.
9943         (emit_call_insn_before): Likewise.
9944         (emit_call_insn_before_noloc): Likewise.
9945         (emit_call_insn_before_setloc): Likewise.
9946         (emit_debug_insn_before): Likewise.
9947         (emit_debug_insn_before_noloc): Likewise.
9948         (emit_debug_insn_before_setloc): Likewise.
9949         (emit_label_before): Likewise.
9950         (emit_insn_after): Likewise.
9951         (emit_insn_after_noloc): Likewise.
9952         (emit_insn_after_setloc): Likewise.
9953         (emit_jump_insn_after): Likewise.
9954         (emit_jump_insn_after_noloc): Likewise.
9955         (emit_jump_insn_after_setloc): Likewise.
9956         (emit_call_insn_after): Likewise.
9957         (emit_call_insn_after_noloc): Likewise.
9958         (emit_call_insn_after_setloc): Likewise.
9959         (emit_debug_insn_after): Likewise.
9960         (emit_debug_insn_after_noloc): Likewise.
9961         (emit_debug_insn_after_setloc): Likewise.
9962         (emit_label_after): Likewise.
9963         (emit_insn): Likewise.
9964         (emit_debug_insn): Likewise.
9965         (emit_jump_insn): Likewise.
9966         (emit_call_insn): Likewise.
9967         (emit_label): Likewise.
9968         (gen_clobber): Likewise.
9969         (emit_clobber): Likewise.
9970         (gen_use): Likewise.
9971         (emit_use): Likewise.
9972         (emit): Likewise.
9973
9974         (emit_barrier_before): Strengthen return type from rtx to
9975         rtx_barrier *.
9976         (emit_barrier_after): Likewise.
9977         (emit_barrier): Likewise.
9978
9979         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
9980         from rtx to rtx_insn *.  Add checked casts for now when converting
9981         "last" from rtx to rtx_insn *.
9982         (emit_insn_before_noloc): Likewise for return type.
9983         (emit_jump_insn_before_noloc): Likewise.
9984         (emit_call_insn_before_noloc): Likewise.
9985         (emit_debug_insn_before_noloc): Likewise.
9986         (emit_barrier_before): Strengthen return type and local "insn"
9987         from rtx to rtx_barrier *.
9988         (emit_label_before): Strengthen return type from rtx to
9989         rtx_insn *.  Add checked cast for now when returning param
9990         (emit_pattern_after_noloc): Strengthen return type from rtx to
9991         rtx_insn *.  Add checked casts for now when converting "last" from
9992         rtx to rtx_insn *.
9993         (emit_insn_after_noloc): Strengthen return type from rtx to
9994         rtx_insn *.
9995         (emit_jump_insn_after_noloc): Likewise.
9996         (emit_call_insn_after_noloc): Likewise.
9997         (emit_debug_insn_after_noloc): Likewise.
9998         (emit_barrier_after): Strengthen return type from rtx to
9999         rtx_barrier *.
10000         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
10001         Add checked cast for now when converting "label" from rtx to
10002         rtx_insn *.
10003         (emit_pattern_after_setloc): Strengthen return type from rtx to
10004         rtx_insn *.  Add checked casts for now when converting "last" from
10005         rtx to rtx_insn *.
10006         (emit_pattern_after): Strengthen return type from rtx to
10007         rtx_insn *.
10008         (emit_insn_after_setloc): Likewise.
10009         (emit_insn_after): Likewise.
10010         (emit_jump_insn_after_setloc): Likewise.
10011         (emit_jump_insn_after): Likewise.
10012         (emit_call_insn_after_setloc): Likewise.
10013         (emit_call_insn_after): Likewise.
10014         (emit_debug_insn_after_setloc): Likewise.
10015         (emit_debug_insn_after): Likewise.
10016         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
10017         when converting "last" from rtx to rtx_insn *.
10018         (emit_pattern_before): Strengthen return type from rtx to
10019         rtx_insn *.
10020         (emit_insn_before_setloc): Likewise.
10021         (emit_insn_before): Likewise.
10022         (emit_jump_insn_before_setloc): Likewise.
10023         (emit_jump_insn_before): Likewise.
10024         (emit_call_insn_before_setloc): Likewise.
10025         (emit_call_insn_before): Likewise.
10026         (emit_debug_insn_before_setloc): Likewise.
10027         (emit_debug_insn_before): Likewise.
10028         (emit_insn): Strengthen return type and locals "last", "insn",
10029         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
10030         within cases where we know we have an insn.
10031         (emit_debug_insn): Likewise.
10032         (emit_jump_insn): Likewise.
10033         (emit_call_insn): Strengthen return type and local "insn" from rtx
10034         to rtx_insn *.
10035         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
10036         a checked cast to rtx_insn * for now on "label".
10037         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
10038         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
10039         (emit_use): Likewise.
10040         (gen_use): Likewise, also for local "seq".
10041         (emit): Likewise for return type and local "insn".
10042         (rtx_insn): Likewise for return type and local "new_rtx".
10043
10044         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
10045         from rtx to rtx_barrier *.
10046
10047         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
10048         changed return type from rtx to rtx_insn *, we must update
10049         "emit_fn" type, and this in turn means updating...
10050         (frame_insn): ...this.  Strengthen return type from rtx to
10051         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
10052
10053 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10054
10055         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
10056         rtx to rtx_jump_table_data *.  Also for local.
10057         * rtl.h (emit_jump_table_data): Likewise.
10058
10059 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10060
10061         * basic-block.h (create_basic_block_structure): Strengthen third
10062         param "bb_note" from rtx to rtx_note *.
10063         * rtl.h (emit_note_before): Strengthen return type from rtx to
10064         rtx_note *.
10065         (emit_note_after): Likewise.
10066         (emit_note): Likewise.
10067         (emit_note_copy): Likewise.  Also, strengthen param similarly.
10068         * function.h (struct rtl_data): Strengthen field
10069         "x_stack_check_probe_note" from rtx to rtx_note *.
10070
10071         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
10072         from rtx to rtx_note *.
10073         * cfgrtl.c (create_basic_block_structure): Strengthen third param
10074         "bb_note" from rtx to rtx_note *.
10075         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
10076         when calling emit_note_copy.
10077         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
10078         rtx_note *.
10079         (emit_note_after): Likewise.
10080         (emit_note_before): Likewise.
10081         (emit_note_copy): Likewise.  Also, strengthen param similarly.
10082         (emit_note): Likewise.
10083         * except.c (emit_note_eh_region_end): Likewise for return type.
10084         Strengthen local "next" from rtx to rtx_insn *.
10085         (convert_to_eh_region_ranges): Strengthen local "note"
10086         from rtx to rtx_note *.
10087         * final.c (change_scope): Likewise.
10088         (reemit_insn_block_notes): Likewise, for both locals named "note".
10089         Also, strengthen local "insn" from rtx to rtx_insn *.
10090         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
10091         rtx to rtx_note *.
10092         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
10093         strengthen local "seq" from rtx to rtx_insn *.
10094         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
10095         to rtx_note *.
10096         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
10097         vec<rtx_note *>.
10098         (get_bb_note_from_pool): Strengthen return type from rtx to
10099         rtx_note *.
10100         (sel_create_basic_block): Strengthen local "new_bb_note" from
10101         insn_t to rtx_note *.
10102         * var-tracking.c (emit_note_insn_var_location): Strengthen local
10103         "note" from rtx to rtx_note *.
10104         (emit_notes_in_bb): Likewise.
10105
10106 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10107
10108         * function.h (struct rtl_data): Strengthen field
10109         "x_parm_birth_insn" from rtx to rtx_insn *.
10110         * function.c (struct assign_parm_data_all): Strengthen fields
10111         "first_conversion_insn" and "last_conversion_insn" from rtx to
10112         rtx_insn *.
10113
10114 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10115
10116         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
10117         to rtx_insn *; also for local "var_end_seq".
10118         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
10119         (maybe_cleanup_end_of_block): Likewise for param "last" and local
10120         "insn".
10121         (expand_gimple_cond): Likewise for locals "last2" and "last".
10122         (mark_transaction_restart_calls): Likewise for local "insn".
10123         (expand_gimple_stmt): Likewise for return type and locals "last"
10124         and "insn".
10125         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
10126         (avoid_complex_debug_insns): Likewise for param "insn".
10127         (expand_debug_locations): Likewise for locals "insn", "last",
10128         "prev_insn" and "insn2".
10129         (expand_gimple_basic_block): Likewise for local "last".
10130         (construct_exit_block): Likewise for locals "head", "end",
10131         "orig_end".
10132         (pass_expand::execute): Likewise for locals "var_seq",
10133         "var_ret_seq", "next".
10134
10135 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10136
10137         * asan.h (asan_emit_stack_protection): Strengthen return type from
10138         rtx to rtx_insn *.
10139         * asan.c (asan_emit_stack_protection): Likewise.  Add local
10140         "insns" to hold the return value.
10141
10142 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10143
10144         * basic-block.h (bb_note): Strengthen return type from rtx to
10145         rtx_note *.
10146         * sched-int.h (bb_note): Likewise.
10147         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
10148
10149 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10150
10151         * rtl.h (make_insn_raw): Strengthen return type from rtx to
10152         rtx_insn *.
10153
10154         * emit-rtl.c (make_insn_raw): Strengthen return type and local
10155         "insn" from rtx to rtx_insn *.
10156         (make_debug_insn_raw): Strengthen return type from rtx to
10157         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
10158         (make_jump_insn_raw):  Strengthen return type from rtx to
10159         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
10160         (make_call_insn_raw):  Strengthen return type from rtx to
10161         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
10162         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
10163         callback from rtx to rtx_insn *; likewise for local "insn" and
10164         "next", adding a checked cast to rtx_insn in the relevant cases of
10165         the switch statement.
10166         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
10167         callback from rtx to rtx_insn *.
10168         (emit_pattern_after_setloc): Likewise.
10169         (emit_pattern_after): Likewise.
10170         (emit_pattern_before_setloc): Likewise.
10171         (emit_pattern_before): Likewise.
10172
10173 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10174
10175         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
10176         rtx_call_insn *.
10177         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
10178         accepting an rtx_insn *.
10179         (last_call_insn): Strengthen return type from rtx to
10180         rtx_call_insn *.
10181
10182 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10183
10184         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
10185         "insns" from rtx to rtx_insn *.
10186         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
10187         locals "insn" and "prev".
10188
10189 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10190
10191         * rtl.h (tablejump_p): Strengthen third param from rtx * to
10192         rtx_jump_table_data **.
10193
10194         * cfgbuild.c (make_edges): Introduce local "table", using it in
10195         place of "tmp" for jump table data.
10196         (find_bb_boundaries): Strengthen local "table" from rtx to
10197         rtx_jump_table_data *.
10198         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10199         (outgoing_edges_match): Likewise for locals "table1" and "table2".
10200         (try_crossjump_to_edge): Likewise.
10201         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
10202         "table".
10203         (patch_jump_insn): Introduce local "table", using it in place of
10204         "tmp" for jump table data.
10205         (force_nonfallthru_and_redirect): Introduce local "table", so that
10206         call to tablejump_p can receive an rtx_jump_table_data **.  Update
10207         logic around the call to overwrite "note" appropriately if
10208         tablejump_p returns non-zero.
10209         (get_last_bb_insn): Introduce local "table", using it in place of
10210         "tmp" for jump table data.
10211         * dwarf2cfi.c (create_trace_edges): Likewise.
10212
10213         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
10214         from rtx to rtx_jump_table_data *.
10215         (create_fix_barrier): Strengthen local "tmp" from rtx to
10216         rtx_jump_table_data *.
10217         (arm_reorg): Likewise for local "table".
10218
10219         * config/s390/s390.c (s390_chunkify_start): Likewise.
10220
10221         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
10222
10223         * jump.c (delete_related_insns): Strengthen local "lab_next" from
10224         rtx to rtx_jump_table_data *.
10225
10226         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
10227         rtx_jump_table_data **.  Add a checked cast when writing through
10228         the pointer: we know there that local "table" is non-NULL and that
10229         JUMP_TABLE_DATA_P (table) holds.
10230         (label_is_jump_target_p): Introduce local "table", using it in
10231         place of "tmp" for jump table data.
10232
10233 2014-08-19  Marek Polacek  <polacek@redhat.com>
10234
10235         PR c++/62153
10236         * doc/invoke.texi: Document -Wbool-compare.
10237
10238 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10239
10240         * rtl.h (entry_of_function): Strengthen return type from rtx to
10241         rtx_insn *.
10242         * cfgrtl.c (entry_of_function): Likewise.
10243
10244 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10245
10246         * emit-rtl.h (get_insns): Strengthen return type from rtx to
10247         rtx_insn *, adding a checked cast for now.
10248         (get_last_insn): Likewise.
10249
10250 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10251
10252         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
10253         rtx_code_label *.
10254
10255         * emit-rtl.c (gen_label_rtx): Likewise.
10256
10257 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10258
10259         * rtl.h (previous_insn): Strengthen return type from rtx to
10260         rtx_insn *.
10261         (next_insn): Likewise.
10262         (prev_nonnote_insn): Likewise.
10263         (prev_nonnote_insn_bb): Likewise.
10264         (next_nonnote_insn): Likewise.
10265         (next_nonnote_insn_bb): Likewise.
10266         (prev_nondebug_insn): Likewise.
10267         (next_nondebug_insn): Likewise.
10268         (prev_nonnote_nondebug_insn): Likewise.
10269         (next_nonnote_nondebug_insn): Likewise.
10270         (prev_real_insn): Likewise.
10271         (next_real_insn): Likewise.
10272         (prev_active_insn): Likewise.
10273         (next_active_insn): Likewise.
10274
10275         * emit-rtl.c (next_insn): Strengthen return type from rtx to
10276         rtx_insn *, adding a checked cast.
10277         (previous_insn): Likewise.
10278         (next_nonnote_insn): Likewise.
10279         (next_nonnote_insn_bb): Likewise.
10280         (prev_nonnote_insn): Likewise.
10281         (prev_nonnote_insn_bb): Likewise.
10282         (next_nondebug_insn): Likewise.
10283         (prev_nondebug_insn): Likewise.
10284         (next_nonnote_nondebug_insn): Likewise.
10285         (prev_nonnote_nondebug_insn): Likewise.
10286         (next_real_insn): Likewise.
10287         (prev_real_insn): Likewise.
10288         (next_active_insn): Likewise.
10289         (prev_active_insn): Likewise.
10290
10291         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
10292         param "stepfunc" so that it returns an rtx_insn * rather than an
10293         rtx, to track the change to prev_nonnote_insn_bb, which is the
10294         only function this is called with.
10295         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
10296
10297 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
10298
10299         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
10300         assert.
10301
10302 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10303
10304         * coretypes.h (class rtx_debug_insn): Add forward declaration.
10305         (class rtx_nonjump_insn): Likewise.
10306         (class rtx_jump_insn): Likewise.
10307         (class rtx_call_insn): Likewise.
10308         (class rtx_jump_table_data): Likewise.
10309         (class rtx_barrier): Likewise.
10310         (class rtx_code_label): Likewise.
10311         (class rtx_note): Likewise.
10312
10313         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
10314         adding the invariant DEBUG_INSN_P (X).
10315         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
10316         the invariant NONJUMP_INSN_P (X).
10317         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
10318         the invariant JUMP_P (X).
10319         (class rtx_call_insn): New, a subclass of rtx_insn, adding
10320         the invariant CALL_P (X).
10321         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
10322         invariant JUMP_TABLE_DATA_P (X).
10323         (class rtx_barrier): New, a subclass of rtx_insn, adding the
10324         invariant BARRIER_P (X).
10325         (class rtx_code_label): New, a subclass of rtx_insn, adding
10326         the invariant LABEL_P (X).
10327         (class rtx_note): New, a subclass of rtx_insn, adding
10328         the invariant NOTE_P(X).
10329         (is_a_helper <rtx_debug_insn *>::test): New.
10330         (is_a_helper <rtx_nonjump_insn *>::test): New.
10331         (is_a_helper <rtx_jump_insn *>::test): New.
10332         (is_a_helper <rtx_call_insn *>::test): New.
10333         (is_a_helper <rtx_jump_table_data *>::test): New functions,
10334         overloaded for both rtx and rtx_insn *.
10335         (is_a_helper <rtx_barrier *>::test): New.
10336         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
10337         for both rtx and rtx_insn *.
10338         (is_a_helper <rtx_note *>::test): New.
10339
10340 2014-08-19  Marek Polacek  <polacek@redhat.com>
10341
10342         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
10343         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10344         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
10345         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10346
10347 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10348
10349         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
10350         rtx_insn *.  To help with transition, for now, convert from an
10351         access macro into a pair of functions: BND_TO, returning an
10352         rtx_insn *, and...
10353         (SET_BND_TO): New function, for use where BND_TO is used as an
10354         lvalue.
10355
10356         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
10357         SET_BND_TO.
10358         (BND_TO): New function, adding a checked cast.
10359         (SET_BND_TO): New function.
10360
10361         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
10362         SET_BND_TO.
10363         (compute_av_set_on_boundaries): Likewise.
10364
10365 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
10366
10367         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
10368         destination if it is used in source.
10369         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
10370         (*popcount<mode>2_falsedep_1): Likewise.
10371
10372 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
10373
10374         PR other/62168
10375         * configure.ac: Set install_gold_as_default to no first.
10376         * configure: Regenerated.
10377
10378 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10379
10380         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
10381         "note_list" field will eventually be an rtx_insn *.  To help with
10382         transition, for now, convert from an access macro into a pair of
10383         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
10384         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
10385         used as an lvalue.
10386
10387         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
10388         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
10389
10390         * sel-sched-ir.c (init_bb): Likewise.
10391         (sel_restore_notes): Likewise.
10392         (move_bb_info): Likewise.
10393         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
10394         (SET_BB_NOTE_LIST): New function.
10395
10396 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10397
10398         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
10399         field will eventually be an rtx_insn *.  To help with transition,
10400         for now, convert from an access macro into a pair of functions:
10401         VINSN_INSN_RTX, returning an rtx_insn *, and...
10402         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
10403         is used as an lvalue.
10404
10405         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
10406         SET_VINSN_INSN_RTX where it's used as an lvalue.
10407         (VINSN_INSN_RTX): New function.
10408         (SET_VINSN_INSN_RTX): New function.
10409
10410 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10411
10412         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
10413         eventually be rtx_insn *, but to help with transition, for now,
10414         convert from an access macro into a pair of functions: DEP_PRO
10415         returning an rtx_insn * and...
10416         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
10417         lvalue, returning an rtx&.
10418         (DEP_CON): Analogous changes to DEP_PRO above.
10419         (SET_DEP_CON): Likewise.
10420
10421         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
10422         an lvalue to SET_DEP_CON.
10423         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
10424         (sd_copy_back_deps): Likewise for DEP_CON.
10425         (DEP_PRO): New function, adding a checked cast for now.
10426         (DEP_CON): Likewise.
10427         (SET_DEP_PRO): New function.
10428         (SET_DEP_CON): Likewise.
10429
10430 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
10431
10432         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
10433         (extra_options): Add i386/cygwin.opt.
10434         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
10435         (CPP_SPEC): Accept -pthread.
10436         (LINK_SPEC): Ditto.
10437         (GOMP_SELF_SPECS): Update comment.
10438         * config/i386/cygwin.opt: New file for -pthread flag.
10439
10440 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10441
10442         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
10443         * df.h (DF_REF_INSN): Convert from a macro to a function, so
10444         that we can return an rtx_insn *.
10445
10446 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
10447
10448         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
10449         when building executables, not DLLs.  Add --large-address-aware
10450         under the same conditions.
10451         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
10452         when building executables, not DLLs.  Add --large-address-aware
10453         under the same conditions when using -m32.
10454
10455         * config/i386/cygwin-stdint.h: Throughout, make type
10456         definitions dependent on target architecture, not host.
10457
10458 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10459
10460         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
10461         the return type from rtx to rtx_insn *,  which will enable various
10462         conversions in followup patches.  For now this is is done by a
10463         checked cast.
10464         (NEXT_INSN): Likewise.
10465         (SET_PREV_INSN): Convert to an inline function.  This is intended
10466         for use as an lvalue, and so returns an rtx& to allow in-place
10467         modification.
10468         (SET_NEXT_INSN): Likewise.
10469
10470 2014-07-08  Mark Wielaard  <mjw@redhat.com>
10471
10472         PR debug/59051
10473         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
10474
10475 2014-08-19  Marek Polacek  <polacek@redhat.com>
10476
10477         PR c/61271
10478         * cgraphunit.c (handle_alias_pairs): Fix condition.
10479
10480 2014-08-19  Richard Biener  <rguenther@suse.de>
10481
10482         * gimple-fold.c (fold_gimple_assign): Properly build a
10483         null-pointer constant when devirtualizing addresses.
10484
10485 2014-07-07  Mark Wielaard  <mjw@redhat.com>
10486
10487         * dwarf2out.c (decl_quals): New function.
10488         (modified_type_die): Take one cv_quals argument instead of two,
10489         one for const and one for volatile.
10490         (add_type_attribute): Likewise.
10491         (generic_parameter_die): Call add_type_attribute with one modifier
10492         argument.
10493         (base_type_for_mode): Likewise.
10494         (add_bounds_info): Likewise.
10495         (add_subscript_info): Likewise.
10496         (gen_array_type_die): Likewise.
10497         (gen_descr_array_type_die): Likewise.
10498         (gen_entry_point_die): Likewise.
10499         (gen_enumeration_type_die): Likewise.
10500         (gen_formal_parameter_die): Likewise.
10501         (gen_subprogram_die): Likewise.
10502         (gen_variable_die): Likewise.
10503         (gen_const_die): Likewise.
10504         (gen_field_die): Likewise.
10505         (gen_pointer_type_die): Likewise.
10506         (gen_reference_type_die): Likewise.
10507         (gen_ptr_to_mbr_type_die): Likewise.
10508         (gen_inheritance_die): Likewise.
10509         (gen_subroutine_type_die): Likewise.
10510         (gen_typedef_die): Likewise.
10511         (force_type_die): Likewise.
10512
10513 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10514
10515         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
10516         if unset.
10517         * configure: Regenerate.
10518
10519 2014-08-19  Richard Biener  <rguenther@suse.de>
10520
10521         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
10522         DECL_EXTERNALs in BLOCKs as non-references.
10523         * tree-streamer-out.c (streamer_write_chain): Likewise.
10524
10525 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10526             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10527             Anna Tikhonova  <anna.tikhonova@intel.com>
10528             Ilya Tocar  <ilya.tocar@intel.com>
10529             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10530             Ilya Verbin  <ilya.verbin@intel.com>
10531             Kirill Yukhin  <kirill.yukhin@intel.com>
10532             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10533
10534         * config/i386/sse.md
10535         (define_mode_iterator VI48_AVX512F): Delete.
10536         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
10537         (define_mode_iterator VI2_AVX512VL): Ditto.
10538         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
10539         Delete.
10540         (define_insn
10541         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
10542         New.
10543         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
10544         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
10545         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10546         with VI48_AVX512F_AVX512VL): New.
10547         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10548         with VI2_AVX512VL): Ditto.
10549
10550 2014-08-19  Marek Polacek  <polacek@redhat.com>
10551
10552         * doc/invoke.texi: Document -Wc99-c11-compat.
10553
10554 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10555
10556         * rtl.h (PREV_INSN): Split macro in two: the existing one,
10557         for rvalues, and...
10558         (SET_PREV_INSN): New macro, for use as an lvalue.
10559         (NEXT_INSN, SET_NEXT_INSN): Likewise.
10560
10561         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
10562         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
10563         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10564         (fixup_abnormal_edges): Likewise.
10565         (unlink_insn_chain): Likewise.
10566         (fixup_reorder_chain): Likewise.
10567         (cfg_layout_delete_block): Likewise.
10568         (cfg_layout_merge_blocks): Likewise.
10569         * combine.c (update_cfg_for_uncondjump): Likewise.
10570         * emit-rtl.c (link_insn_into_chain): Likewise.
10571         (remove_insn): Likewise.
10572         (delete_insns_since): Likewise.
10573         (reorder_insns_nobb): Likewise.
10574         (emit_insn_after_1): Likewise.
10575         * final.c (rest_of_clean_state): Likewise.
10576         (final_scan_insn): Likewise.
10577         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
10578         * haifa-sched.c (concat_note_lists): Likewise.
10579         (remove_notes): Likewise.
10580         (restore_other_notes): Likewise.
10581         (move_insn): Likewise.
10582         (unlink_bb_notes): Likewise.
10583         (restore_bb_notes): Likewise.
10584         * jump.c (delete_for_peephole): Likewise.
10585         * optabs.c (emit_libcall_block_1): Likewise.
10586         * reorg.c (emit_delay_sequence): Likewise.
10587         (fill_simple_delay_slots): Likewise.
10588         * sel-sched-ir.c (sel_move_insn): Likewise.
10589         (sel_remove_insn): Likewise.
10590         (get_bb_note_from_pool): Likewise.
10591         * sel-sched.c (move_nop_to_previous_block): Likewise.
10592
10593         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
10594         * config/c6x/c6x.c (gen_one_bundle): Likewise.
10595         (c6x_gen_bundles): Likewise.
10596         (hwloop_optimize): Likewise.
10597         * config/frv/frv.c (frv_function_prologue): Likewise.
10598         (frv_register_nop): Likewise.
10599         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10600         (ia64_reorg): Likewise.
10601         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10602         (mep_make_bundle): Likewise.
10603         (mep_bundle_insns): Likewise.
10604         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10605         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10606         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10607
10608 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10609
10610         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
10611         return type from rtx to rtx_insn *.
10612         (BB_END): Likewise.
10613         (BB_HEADER): Likewise.
10614         (BB_FOOTER): Likewise.
10615         (SET_BB_HEAD): Convert to a function.
10616         (SET_BB_END): Likewise.
10617         (SET_BB_HEADER): Likewise.
10618         (SET_BB_FOOTER): Likewise.
10619
10620         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10621         Strengthen the return type from rtx to rtx_insn *.  For now, this
10622         is done by adding a checked cast, but this will eventually
10623         become a field lookup.
10624         (BB_END): Likewise.
10625         (BB_HEADER): Likewise.
10626         (BB_FOOTER): Likewise.
10627         (SET_BB_HEAD): New function, from macro of same name.  This is
10628         intended for use as an lvalue, and so returns an rtx& to allow
10629         in-place modification.
10630         (SET_BB_END): Likewise.
10631         (SET_BB_HEADER): Likewise.
10632         (SET_BB_FOOTER): Likewise.
10633
10634 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10635
10636         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10637         for rvalues, and...
10638         (SET_BB_HEAD): New macro, for use as a lvalue.
10639         (BB_END, SET_BB_END): Likewise.
10640         (BB_HEADER, SET_BB_HEADER): Likewise.
10641         (BB_FOOTER, SET_BB_FOOTER): Likewise.
10642
10643         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10644         of BB_* macros into SET_BB_* macros.
10645         (fix_crossing_unconditional_branches): Likewise.
10646         * caller-save.c (save_call_clobbered_regs): Likewise.
10647         (insert_one_insn): Likewise.
10648         * cfgbuild.c (find_bb_boundaries): Likewise.
10649         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10650         (outgoing_edges_match): Likewise.
10651         (try_optimize_cfg): Likewise.
10652         * cfgexpand.c (expand_gimple_cond): Likewise.
10653         (expand_gimple_tailcall): Likewise.
10654         (expand_gimple_basic_block): Likewise.
10655         (construct_exit_block): Likewise.
10656         * cfgrtl.c (delete_insn): Likewise.
10657         (create_basic_block_structure): Likewise.
10658         (rtl_delete_block): Likewise.
10659         (rtl_split_block): Likewise.
10660         (emit_nop_for_unique_locus_between): Likewise.
10661         (rtl_merge_blocks): Likewise.
10662         (block_label): Likewise.
10663         (try_redirect_by_replacing_jump): Likewise.
10664         (emit_barrier_after_bb): Likewise.
10665         (fixup_abnormal_edges): Likewise.
10666         (record_effective_endpoints): Likewise.
10667         (relink_block_chain): Likewise.
10668         (fixup_reorder_chain): Likewise.
10669         (fixup_fallthru_exit_predecessor): Likewise.
10670         (cfg_layout_duplicate_bb): Likewise.
10671         (cfg_layout_split_block): Likewise.
10672         (cfg_layout_delete_block): Likewise.
10673         (cfg_layout_merge_blocks): Likewise.
10674         * combine.c (update_cfg_for_uncondjump): Likewise.
10675         * emit-rtl.c (add_insn_after): Likewise.
10676         (remove_insn): Likewise.
10677         (reorder_insns): Likewise.
10678         (emit_insn_after_1): Likewise.
10679         * haifa-sched.c (get_ebb_head_tail): Likewise.
10680         (restore_other_notes): Likewise.
10681         (move_insn): Likewise.
10682         (sched_extend_bb): Likewise.
10683         (fix_jump_move): Likewise.
10684         * ifcvt.c (noce_process_if_block): Likewise.
10685         (dead_or_predicable): Likewise.
10686         * ira.c (update_equiv_regs): Likewise.
10687         * reg-stack.c (change_stack): Likewise.
10688         * sel-sched-ir.c (sel_move_insn): Likewise.
10689         * sel-sched.c (move_nop_to_previous_block): Likewise.
10690
10691         * config/c6x/c6x.c (hwloop_optimize): Likewise.
10692         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10693
10694 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10695
10696         * rtl.h (for_each_rtx_in_insn): New function.
10697         * rtlanal.c (for_each_rtx_in_insn): Likewise.
10698
10699 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10700
10701         * coretypes.h (class rtx_insn): Add forward declaration.
10702
10703         * rtl.h: Include is-a.h.
10704         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10705         workaround to ensure gengtype knows inheritance is occurring,
10706         whilst continuing to use the pre-existing special-casing for
10707         rtx_def.
10708         (class rtx_insn): New subclass of rtx_def, adding the
10709         invariant that we're dealing with something we can sanely use
10710         INSN_UID, NEXT_INSN, PREV_INSN on.
10711         (is_a_helper <rtx_insn *>::test): New.
10712         (is_a_helper <const rtx_insn *>::test): New.
10713
10714 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10715
10716         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10717
10718 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10719
10720         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10721         comdats as extern.
10722
10723 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10724
10725         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10726         to BUILT_IN_UNREACHABLE.
10727
10728 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
10729
10730         PR target/62011
10731         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10732         New tune flag.
10733         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10734         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10735         (ffs<mode>2): Do not expand with tzcnt for
10736         TARGET_AVOID_FALSE_DEP_FOR_BMI.
10737         (ffssi2_no_cmove): Ditto.
10738         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10739         (ctz<mode>2): New expander.
10740         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10741         (*ctz<mode>2_falsedep): New insn.
10742         (*ctz<mode>2): Rename from ctz<mode>2.
10743         (clz<mode>2_lzcnt): New expander.
10744         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10745         (*clz<mode>2_lzcnt_falsedep): New insn.
10746         (*clz<mode>2): Rename from ctz<mode>2.
10747         (popcount<mode>2): New expander.
10748         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10749         (*popcount<mode>2_falsedep): New insn.
10750         (*popcount<mode>2): Rename from ctz<mode>2.
10751         (*popcount<mode>2_cmp): Remove.
10752         (*popcountsi2_cmp_zext): Ditto.
10753
10754 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
10755
10756         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10757         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10758         * config/microblaze/microblaze.h
10759         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10760
10761 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
10762
10763         PR other/62168
10764         * configure.ac: Set install_gold_as_default to no for
10765          --enable-gold=no.
10766          * configure: Regenerated.
10767
10768 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
10769
10770         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10771         * config.in: Add undef of HAVE_isl.
10772         * configure: Regenerate.
10773         * configure.ac: Add definition of HAVE_isl.
10774         * graphite-blocking.c: Add checking of HAVE_isl.
10775         * graphite-dependences.c: Likewise.
10776         * graphite-interchange.c: Likewise.
10777         * graphite-isl-ast-to-gimple.c: Likewise.
10778         * graphite-optimize-isl.c: Likewise.
10779         * graphite-poly.c: Likewise.
10780         * graphite-scop-detection.c: Likewise.
10781         * graphite-sese-to-poly.c: Likewise.
10782         * graphite.c: Likewise.
10783         * toplev.c: Replace the checking of HAVE_cloog with the checking
10784         of HAVE_isl.
10785
10786 2014-08-18  Richard Biener  <rguenther@suse.de>
10787
10788         PR tree-optimization/62090
10789         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10790         (fold_builtin_3): Do not fold snprintf.
10791         (fold_builtin_4): Likewise.
10792         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10793         moved from builtins.c.
10794         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10795         (gimple_fold_builtin): Do not fold sprintf here.
10796
10797 2014-08-18  Richard Biener  <rguenther@suse.de>
10798
10799         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10800         code to ...
10801         (maybe_canonicalize_mem_ref_addr): ... this function.
10802         (fold_stmt_1): Apply it here before all simplification.
10803
10804 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
10805
10806         PR ipa/61800
10807         * cgraph.h (cgraph_node::create_indirect_edge): Add
10808         compute_indirect_info param.
10809         * cgraph.c (cgraph_node::create_indirect_edge): Compute
10810         indirect_info only when it is required.
10811         * cgraphclones.c (cgraph_clone_edge): Do not recompute
10812         indirect_info fore cloned indirect edge.
10813
10814 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10815             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10816             Anna Tikhonova  <anna.tikhonova@intel.com>
10817             Ilya Tocar  <ilya.tocar@intel.com>
10818             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10819             Ilya Verbin  <ilya.verbin@intel.com>
10820             Kirill Yukhin  <kirill.yukhin@intel.com>
10821             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10822
10823         * config/i386/sse.md
10824         (define_mode_iterator VI8_AVX2_AVX512BW): New.
10825         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
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/sse.md
10837         (define_mode_iterator VF1_AVX512VL): New.
10838         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10839         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10840         New.
10841
10842 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10843             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10844             Anna Tikhonova  <anna.tikhonova@intel.com>
10845             Ilya Tocar  <ilya.tocar@intel.com>
10846             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10847             Ilya Verbin  <ilya.verbin@intel.com>
10848             Kirill Yukhin  <kirill.yukhin@intel.com>
10849             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10850
10851         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10852         * config/i386/i386.md
10853         (define_code_iterator any_float): New.
10854         (define_code_attr floatsuffix): New.
10855         * config/i386/sse.md
10856         (define_mode_iterator VF1_128_256VL): New.
10857         (define_mode_iterator VF2_512_256VL): New.
10858         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10859         TARGET check.
10860         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10861         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10862         New.
10863         (define_mode_attr qq2pssuff): New.
10864         (define_mode_attr sselongvecmode): New.
10865         (define_mode_attr sselongvecmodelower): New.
10866         (define_mode_attr sseintvecmode3): New.
10867         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10868         New.
10869         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10870         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10871         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10872         (define_insn "ufloatv2siv2df2<mask_name>"): New.
10873
10874 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10875             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10876             Anna Tikhonova  <anna.tikhonova@intel.com>
10877             Ilya Tocar  <ilya.tocar@intel.com>
10878             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10879             Ilya Verbin  <ilya.verbin@intel.com>
10880             Kirill Yukhin  <kirill.yukhin@intel.com>
10881             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10882
10883         * config/i386/sse.md
10884         (define_mode_iterator VF2_AVX512VL): New.
10885         (define_mode_attr sseintvecmode2): New.
10886         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10887         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10888         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10889         (define_insn
10890         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10891         Ditto.
10892         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10893         Ditto.
10894         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10895         Ditto.
10896
10897 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10898             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10899             Anna Tikhonova  <anna.tikhonova@intel.com>
10900             Ilya Tocar  <ilya.tocar@intel.com>
10901             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10902             Ilya Verbin  <ilya.verbin@intel.com>
10903             Kirill Yukhin  <kirill.yukhin@intel.com>
10904             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10905
10906         * config/i386/i386.md
10907         (define_insn "*movoi_internal_avx"): Add evex version.
10908         (define_insn "*movti_internal"): Ditto.
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.md
10920         (define_attr "isa"): Add avx512dq, noavx512dq.
10921         (define_attr "enabled"): Ditto.
10922         * config/i386/sse.md
10923         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10924
10925 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10926             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10927             Anna Tikhonova  <anna.tikhonova@intel.com>
10928             Ilya Tocar  <ilya.tocar@intel.com>
10929             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10930             Ilya Verbin  <ilya.verbin@intel.com>
10931             Kirill Yukhin  <kirill.yukhin@intel.com>
10932             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10933
10934         * config/i386/i386.c
10935         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10936         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10937         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10938         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10939         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10940         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10941         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10942         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10943         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10944         * config/i386/sse.md
10945         (define_mode_iterator VMOVE): Allow V4TI mode.
10946         (define_mode_iterator V_AVX512VL): New.
10947         (define_mode_iterator V): New handling for AVX512VL.
10948         (define_insn "avx512f_load<mode>_mask"): Delete.
10949         (define_insn "<avx512>_load<mode>_mask"): New.
10950         (define_insn "avx512f_store<mode>_mask"): Delete.
10951         (define_insn "<avx512>_store<mode>_mask"): New.
10952
10953
10954 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
10955
10956         PR sanitizer/62089
10957         * asan.c (instrument_derefs): Fix bitfield check.
10958
10959 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10960
10961         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10962         * config/rs6000/htm.md (ttest): Remove clobber.
10963         * config/rs6000/predicates.md (any_mask_operand): New predicate.
10964         (and_operand): Reformat.
10965         (and_2rld_operand): New predicate.
10966         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10967         parameter.
10968         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10969         parameter.  Handle AND directly.
10970         (rs6000_split_logical_di): Remove last parameter.
10971         (rs6000_split_logical): Remove last parameter.  Remove obsolete
10972         comment.
10973         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10974         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10975         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
10976         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10977         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10978         and 5 anonymous splitters):  Delete.
10979         (and<mode>3): New expander.
10980         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10981         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10982         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10983         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10984         (floatdisf2_internal1): Remove clobbers.
10985         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10986         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10987         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10988         (and<mode>3 for BOOL_128): Remove clobber.
10989         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
10990         rs6000_split_logical.
10991         (*bool<mode>3_internal for BOOL_128): Adjust call of
10992         rs6000_split_logical.
10993         (*boolc<mode>3_internal1 for BOOL_128,
10994         *boolc<mode>3_internal2 for BOOL_128,
10995         *boolcc<mode>3_internal1 for BOOL_128,
10996         *boolcc<mode>3_internal2 for BOOL_128,
10997         *eqv<mode>3_internal1 for BOOL_128,
10998         *eqv<mode>3_internal2 for BOOL_128,
10999         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
11000         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
11001         clobber.
11002         (*vec_reload_and_reg_<mptrsize>): Delete.
11003
11004 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11005
11006         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
11007         and split, *boolccsi3_internal3 and split): Delete.
11008         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
11009         *boolccdi3_internal3 and split): Delete.
11010         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
11011         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
11012
11013 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11014
11015         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
11016         and split, *boolcsi3_internal3 and split): Delete.
11017         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
11018         *boolcdi3_internal3 and split): Delete.
11019         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
11020
11021 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11022
11023         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
11024         <'u'>: Also support printing the low-order 16 bits.
11025         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
11026         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
11027         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
11028         *booldi3_internal3 and split): Delete.
11029         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
11030         *bool<mode>3_dot2): New.
11031         (two anonymous define_splits for non_logical_cint_operand): Merge.
11032
11033 2014-08-17  Marek Polacek  <polacek@redhat.com>
11034             Manuel López-Ibáñez  <manu@gcc.gnu.org>
11035
11036         PR c/62059
11037         * diagnostic.c (adjust_line): Add gcc_checking_assert.
11038         (diagnostic_show_locus): Don't print caret diagnostic
11039         if a column is larger than the line_width.
11040
11041 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
11042
11043         * common.opt: Make the ISL AST generator to be the main code generator
11044         of Graphite.
11045
11046 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
11047
11048         * wide-int.h (generic_wide_int): Declare as class instead of struct.
11049
11050 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
11051
11052         PR target/61641
11053         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
11054         Declare.
11055         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
11056         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
11057         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
11058         Define.
11059         * config/pa/pa.md (begin_brtab): Delete insn.
11060         (end_brtab): Likewise.
11061
11062 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11063
11064         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
11065
11066 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
11067
11068         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
11069         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
11070         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
11071         (get_dynamic_type): Remove.
11072         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
11073         (clear_speculation): Bring to ipa-deivrt.h
11074         (get_class_context): Rename to ...
11075         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
11076         (contains_type_p): Update.
11077         (get_dynamic_type): Rename to ...
11078         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
11079         (possible_polymorphic_call_targets): UPdate.
11080         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
11081         * ipa-prop.c (ipa_analyze_call_uses): Update.
11082
11083 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
11084
11085         * doc/invoke.texi (SH options): Document missing processor variant
11086         options.  Remove references to Hitachi.  Undocument deprecated mspace
11087         option.
11088
11089 2014-08-15  Jason Merrill  <jason@redhat.com>
11090
11091         * tree.c (type_hash_canon): Uncomment assert.
11092
11093 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11094
11095         * input.h (in_system_header_at): Add comment.
11096
11097 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11098
11099         PR fortran/44054
11100         * diagnostic.c (build_message_string): Make it extern.
11101         * diagnostic.h (build_message_string): Make it extern.
11102
11103 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
11104
11105         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
11106         load/store from/to non-floating class pseudo.
11107
11108 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11109
11110         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
11111
11112 2014-08-15  Richard Biener  <rguenther@suse.de>
11113
11114         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
11115         (get_constraint_for_ssa_var): Remove dead code.
11116         (get_constraint_for_1): Adjust.
11117         (find_what_var_points_to): Likewise.
11118         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
11119
11120 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
11121
11122         PR target/61878
11123         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
11124         (_mm512_mask_cmpge_epu32_mask): Ditto.
11125         (_mm512_cmpge_epu32_mask): Ditto.
11126         (_mm512_mask_cmpge_epi64_mask): Ditto.
11127         (_mm512_cmpge_epi64_mask): Ditto.
11128         (_mm512_mask_cmpge_epu64_mask): Ditto.
11129         (_mm512_cmpge_epu64_mask): Ditto.
11130         (_mm512_mask_cmple_epi32_mask): Ditto.
11131         (_mm512_cmple_epi32_mask): Ditto.
11132         (_mm512_mask_cmple_epu32_mask): Ditto.
11133         (_mm512_cmple_epu32_mask): Ditto.
11134         (_mm512_mask_cmple_epi64_mask): Ditto.
11135         (_mm512_cmple_epi64_mask): Ditto.
11136         (_mm512_mask_cmple_epu64_mask): Ditto.
11137         (_mm512_cmple_epu64_mask): Ditto.
11138         (_mm512_mask_cmplt_epi32_mask): Ditto.
11139         (_mm512_cmplt_epi32_mask): Ditto.
11140         (_mm512_mask_cmplt_epu32_mask): Ditto.
11141         (_mm512_cmplt_epu32_mask): Ditto.
11142         (_mm512_mask_cmplt_epi64_mask): Ditto.
11143         (_mm512_cmplt_epi64_mask): Ditto.
11144         (_mm512_mask_cmplt_epu64_mask): Ditto.
11145         (_mm512_cmplt_epu64_mask): Ditto.
11146         (_mm512_mask_cmpneq_epi32_mask): Ditto.
11147         (_mm512_mask_cmpneq_epu32_mask): Ditto.
11148         (_mm512_cmpneq_epu32_mask): Ditto.
11149         (_mm512_mask_cmpneq_epi64_mask): Ditto.
11150         (_mm512_cmpneq_epi64_mask): Ditto.
11151         (_mm512_mask_cmpneq_epu64_mask): Ditto.
11152         (_mm512_cmpneq_epu64_mask): Ditto.
11153         (_mm512_castpd_ps): Ditto.
11154         (_mm512_castpd_si512): Ditto.
11155         (_mm512_castps_pd): Ditto.
11156         (_mm512_castps_si512): Ditto.
11157         (_mm512_castsi512_ps): Ditto.
11158         (_mm512_castsi512_pd): Ditto.
11159         (_mm512_castpd512_pd128): Ditto.
11160         (_mm512_castps512_ps128): Ditto.
11161         (_mm512_castsi512_si128): Ditto.
11162         (_mm512_castpd512_pd256): Ditto.
11163         (_mm512_castps512_ps256): Ditto.
11164         (_mm512_castsi512_si256): Ditto.
11165         (_mm512_castpd128_pd512): Ditto.
11166         (_mm512_castps128_ps512): Ditto.
11167         (_mm512_castsi128_si512): Ditto.
11168         (_mm512_castpd256_pd512): Ditto.
11169         (_mm512_castps256_ps512): Ditto.
11170         (_mm512_castsi256_si512): Ditto.
11171         (_mm512_cmpeq_epu32_mask): Ditto.
11172         (_mm512_mask_cmpeq_epu32_mask): Ditto.
11173         (_mm512_mask_cmpeq_epu64_mask): Ditto.
11174         (_mm512_cmpeq_epu64_mask): Ditto.
11175         (_mm512_cmpgt_epu32_mask): Ditto.
11176         (_mm512_mask_cmpgt_epu32_mask): Ditto.
11177         (_mm512_mask_cmpgt_epu64_mask): Ditto.
11178         (_mm512_cmpgt_epu64_mask): Ditto.
11179         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
11180         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
11181         * config/i386/i386.c (enum ix86_builtins): Add
11182         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
11183         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
11184         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
11185         (bdesc_args): Add __builtin_ia32_si512_256si,
11186         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
11187         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
11188         __builtin_ia32_pd512_pd.
11189         (ix86_expand_args_builtin): Handle new FTYPEs.
11190         * config/i386/sse.md (castmode): Add 512-bit modes.
11191         (AVX512MODE2P): New.
11192         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
11193         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
11194
11195 2014-08-15  Richard Biener  <rguenther@suse.de>
11196
11197         * fold-const.c (tree_swap_operands_p): Put all constants
11198         last, also strip sign-changing NOPs when considering further
11199         canonicalization.  Canonicalize also when optimizing for size.
11200
11201 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11202
11203         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
11204         one_match > zero_match case to just before simple_sequence.
11205
11206 2014-08-15  Richard Biener  <rguenther@suse.de>
11207
11208         * data-streamer.h (streamer_string_index, string_for_index):
11209         Remove.
11210         * data-streamer-out.c (streamer_string_index): Make static.
11211         * data-streamer-in.c (string_for_index): Likewise.
11212         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
11213         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
11214
11215 2014-08-15  Richard Biener  <rguenther@suse.de>
11216
11217         PR tree-optimization/62031
11218         * tree-data-ref.c (dr_analyze_indices): Do not set
11219         DR_UNCONSTRAINED_BASE.
11220         (dr_may_alias_p): All indirect accesses have to go the
11221         formerly DR_UNCONSTRAINED_BASE path.
11222         * tree-data-ref.h (struct indices): Remove
11223         unconstrained_base member.
11224         (DR_UNCONSTRAINED_BASE): Remove.
11225
11226 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
11227
11228         PR middle-end/62092
11229         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
11230         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
11231         in OMP_CLAUSE_MAP in some outer target region.
11232
11233 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
11234
11235         * tree-ssa-loop-ivopts.c (ivopts_data): New field
11236         name_expansion_cache.
11237         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
11238         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
11239         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
11240         (difference_cannot_overflow_p): New parameter.  Use affine
11241         expansion for equality check.
11242         (iv_elimination_compare_lt): Pass new argument.
11243
11244 2014-08-14  DJ Delorie  <dj@redhat.com>
11245
11246         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
11247         variables to the accumulator.
11248
11249         * config/rl78/predicates.md (rl78_near_mem_operand): New.
11250         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
11251         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
11252         with far-far moves.
11253
11254         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
11255         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
11256         (umulqihi3_virt): Likewise.
11257         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
11258         (umulqihi3_real): Likewise.
11259
11260         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
11261
11262 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
11263
11264         PR tree-optimization/62091
11265         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
11266         function_entry_reached.
11267         (walk_aliased_vdefs): Clear it here.
11268         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
11269
11270 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
11271
11272         * ipa-utils.h (compare_virtual_tables): Declare.
11273         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
11274
11275 2014-08-14  Marek Polacek  <polacek@redhat.com>
11276
11277         DR 458
11278         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
11279         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
11280
11281 2014-08-14  Tom de Vries  <tom@codesourcery.com>
11282
11283         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
11284
11285 2014-08-14  Tom de Vries  <tom@codesourcery.com>
11286
11287         PR rtl-optimization/62004
11288         PR rtl-optimization/62030
11289         * ifcvt.c (rtx_interchangeable_p): New function.
11290         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
11291         * emit-rtl.h (mem_attrs_eq_p): Declare.
11292
11293 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
11294
11295         * graphite-scop-detection.c:
11296         Add inclusion of cp-tree.h.
11297         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
11298         in case they are pointers to object types
11299
11300 2014-08-14  Richard Biener  <rguenther@suse.de>
11301
11302         * BASE-VER: Change to 5.0.0
11303
11304 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11305             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11306             Anna Tikhonova  <anna.tikhonova@intel.com>
11307             Ilya Tocar  <ilya.tocar@intel.com>
11308             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11309             Ilya Verbin  <ilya.verbin@intel.com>
11310             Kirill Yukhin  <kirill.yukhin@intel.com>
11311             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11312
11313         * config/i386/sse.md (define_mode_attr avx512): New.
11314         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
11315         V4DI modes.
11316         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
11317         (define_mode_attr ssse3_avx2): Ditto.
11318         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
11319         (define_mode_attr avx2_avx512bw): New.
11320         (define_mode_attr ssedoublemodelower): New.
11321         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
11322         V32HI, V64QI modes.
11323         (define_mode_attr ssebytemode): Allow V8DI modes.
11324         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
11325         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
11326         (define_mode_attr ssePSmode2): New.
11327         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
11328         V16HI, V32HI modes.
11329         (define_mode_attr dbpsadbwmode): New.
11330         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
11331         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
11332         (vi8_sse4_1_avx2_avx512): New.
11333         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
11334         mode attribute.
11335         (define_mode_attr blendbits): Move before its immediate use.
11336
11337 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11338             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11339             Anna Tikhonova  <anna.tikhonova@intel.com>
11340             Ilya Tocar  <ilya.tocar@intel.com>
11341             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11342             Ilya Verbin  <ilya.verbin@intel.com>
11343             Kirill Yukhin  <kirill.yukhin@intel.com>
11344             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11345
11346         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
11347         * config/i386/subst.md
11348         (define_mode_iterator SUBST_V): Update.
11349         (define_mode_iterator SUBST_A): Ditto.
11350         (define_subst_attr "mask_operand7"): New.
11351         (define_subst_attr "mask_operand10"): New.
11352         (define_subst_attr "mask_operand_arg34") : New.
11353         (define_subst_attr "mask_expand_op3"): New.
11354         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
11355         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
11356         (define_subst_attr "mask_avx512vl_condition"): New.
11357         (define_subst_attr "round_mask_operand4"): Ditto.
11358         (define_subst_attr "round_mask_scalar_op3"): Delete.
11359         (define_subst_attr "round_mask_op4"): New.
11360         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
11361         V16SImode.
11362         (define_subst_attr "round_modev8sf_condition"): New.
11363         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
11364         <MODE>mode.
11365         (define_subst_attr "round_saeonly_mask_operand4"): New.
11366         (define_subst_attr "round_saeonly_mask_op4"): New.
11367         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
11368         V8DImode, V16SImode.
11369         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
11370         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
11371         (define_subst_attr "mask_expand4_args"): New.
11372         (define_subst "mask_expand4"): New.
11373
11374 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11375             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11376             Anna Tikhonova  <anna.tikhonova@intel.com>
11377             Ilya Tocar  <ilya.tocar@intel.com>
11378             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11379             Ilya Verbin  <ilya.verbin@intel.com>
11380             Kirill Yukhin  <kirill.yukhin@intel.com>
11381             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11382
11383         * config/i386/i386.md
11384         (define_attr "isa"): Add avx512bw,noavx512bw.
11385         (define_attr "enabled"): Ditto.
11386         (define_split): Add 32/64-bit mask logic.
11387         (define_insn "*k<logic>qi"): New.
11388         (define_insn "*k<logic>hi"): New.
11389         (define_insn "*anddi_1"): Add mask version.
11390         (define_insn "*andsi_1"): Ditto.
11391         (define_insn "*<code><mode>_1"): Ditto.
11392         (define_insn "*<code>hi_1"): Ditto.
11393         (define_insn "kxnor<mode>"): New.
11394         (define_insn "kunpcksi"): New.
11395         (define_insn "kunpckdi"): New.
11396         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
11397         (define_insn "*one_cmplhi2_1"): Ditto.
11398
11399 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11400             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11401             Anna Tikhonova  <anna.tikhonova@intel.com>
11402             Ilya Tocar  <ilya.tocar@intel.com>
11403             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11404             Ilya Verbin  <ilya.verbin@intel.com>
11405             Kirill Yukhin  <kirill.yukhin@intel.com>
11406             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11407
11408         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
11409         V32HImode.
11410
11411 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11412             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11413             Anna Tikhonova  <anna.tikhonova@intel.com>
11414             Ilya Tocar  <ilya.tocar@intel.com>
11415             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11416             Ilya Verbin  <ilya.verbin@intel.com>
11417             Kirill Yukhin  <kirill.yukhin@intel.com>
11418             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11419
11420         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
11421         registers.
11422         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
11423         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
11424         xmm/ymm16+ when availble.
11425         * config/i386/i386.h
11426         (HARD_REGNO_NREGS): Add mask regs.
11427         (VALID_AVX512F_REG_MODE): Ditto.
11428         (VALID_AVX512F_REG_MODE) : Define.
11429         (VALID_MASK_AVX512BW_MODE): Ditto.
11430         (reg_class) (MASK_REG_P(X)): Define.
11431         * config/i386/i386.md: Do not split long moves with mask register,
11432         use kmovb if avx512bw is availible.
11433         (movdi_internal): Handle mask registers.
11434
11435 2014-08-14  Richard Biener  <rguenther@suse.de>
11436
11437         PR tree-optimization/62081
11438         * tree-ssa-loop.c (pass_fix_loops): New pass.
11439         (pass_tree_loop::gate):  Do not fixup loops here.
11440         * tree-pass.h (make_pass_fix_loops): Declare.
11441         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
11442
11443 2014-08-14  Richard Biener  <rguenther@suse.de>
11444
11445         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
11446         (type_hash_canon): ... this and avoid 2nd lookup for the add.
11447
11448 2014-08-14  Richard Biener  <rguenther@suse.de>
11449
11450         PR tree-optimization/62090
11451         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
11452         (fold_builtin_2): Do not fold sprintf.
11453         (fold_builtin_3): Likewise.
11454         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
11455         moved from builtins.c.
11456         (gimple_fold_builtin): Fold sprintf.
11457
11458 2014-08-14  Richard Biener  <rguenther@suse.de>
11459
11460         PR rtl-optimization/62079
11461         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
11462         run cleanup_cfg.
11463
11464 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
11465
11466         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
11467         current_function_decl.
11468
11469 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
11470
11471         * cgraph.c (cgraph_node::function_symbol): Fix wrong
11472         cgraph_function_node to cgraph_node::function_symbol
11473         refactoring.
11474
11475 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11476
11477         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
11478         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
11479
11480 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
11481
11482         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
11483         warning.
11484
11485 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
11486
11487         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
11488         generator.
11489
11490 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
11491
11492         PR target/62025
11493         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
11494         any registers that are used in mem_insn.
11495
11496 2014-08-12  Steve Ellcey  <sellcey@mips.com>
11497
11498         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
11499
11500 2014-08-12  Steve Ellcey  <sellcey@mips.com>
11501
11502         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
11503         (MULTILIB_DIRNAMES): Ditto.
11504         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
11505         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
11506         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
11507         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
11508         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
11509         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
11510
11511 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11512
11513         PR target/61413
11514         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
11515         of __ARM_SIZEOF_WCHAR_T.
11516
11517 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11518
11519         PR target/62098
11520         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
11521         Remove unnecessary attributes.
11522
11523 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
11524
11525         * internal-fn.c (init_internal_fns): Fix off-by-one.
11526
11527 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11528             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11529             Anna Tikhonova  <anna.tikhonova@intel.com>
11530             Ilya Tocar  <ilya.tocar@intel.com>
11531             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11532             Ilya Verbin  <ilya.verbin@intel.com>
11533             Kirill Yukhin  <kirill.yukhin@intel.com>
11534             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11535
11536         * config/i386/i386.c (standard_sse_constant_opcode): Use
11537         vpxord/vpternlog if avx512 is availible.
11538
11539 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11540
11541         PR middle-end/62103
11542         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
11543         bitfields, that is when size doesn't match the size of type or the
11544         size of the constructor.
11545
11546 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11547
11548         * config/rs6000/constraints.md (wh constraint): New constraint,
11549         for FP registers if direct move is available.
11550         (wi constraint): New constraint, for VSX/FP registers that can
11551         handle 64-bit integers.
11552         (wj constraint): New constraint for VSX/FP registers that can
11553         handle 64-bit integers for direct moves.
11554         (wk constraint): New constraint for VSX/FP registers that can
11555         handle 64-bit doubles for direct moves.
11556         (wy constraint): Make documentation match implementation.
11557
11558         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
11559         scalar_in_vmx_p field to simplify tests of whether SFmode or
11560         DFmode can go in the Altivec registers.
11561         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
11562         (rs6000_setup_reg_addr_masks): Likewise.
11563         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
11564         field, and wh/wi/wj/wk constraints.
11565         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
11566         the wh/wi/wj/wk constraints.
11567         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
11568         upper registers, prefer VSX registers unless the operation is a
11569         memory operation with REG+OFFSET addressing.
11570
11571         * config/rs6000/vsx.md (VSr mode attribute): Add support for
11572         DImode.  Change SFmode to use ww constraint instead of d to allow
11573         SF registers in the upper registers.
11574         (VSr2): Likewise.
11575         (VSr3): Likewise.
11576         (VSr5): Fix thinko in comment.
11577         (VSa): New mode attribute that is an alternative to wa, that
11578         returns the VSX register class that a mode can go in, but may not
11579         be the preferred register class.
11580         (VS_64dm): New mode attribute for appropriate register classes for
11581         referencing 64-bit elements of vectors for direct moves and normal
11582         moves.
11583         (VS_64reg): Likewise.
11584         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
11585         register allocator to only registers the data type can handle.
11586         (vsx_le_perm_load_<mode>): Likewise.
11587         (vsx_le_perm_store_<mode>): Likewise.
11588         (vsx_xxpermdi2_le_<mode>): Likewise.
11589         (vsx_xxpermdi4_le_<mode>): Likewise.
11590         (vsx_lxvd2x2_le_<mode>): Likewise.
11591         (vsx_lxvd2x4_le_<mode>): Likewise.
11592         (vsx_stxvd2x2_le_<mode>): Likewise.
11593         (vsx_add<mode>3): Likewise.
11594         (vsx_sub<mode>3): Likewise.
11595         (vsx_mul<mode>3): Likewise.
11596         (vsx_div<mode>3): Likewise.
11597         (vsx_tdiv<mode>3_internal): Likewise.
11598         (vsx_fre<mode>2): Likewise.
11599         (vsx_neg<mode>2): Likewise.
11600         (vsx_abs<mode>2): Likewise.
11601         (vsx_nabs<mode>2): Likewise.
11602         (vsx_smax<mode>3): Likewise.
11603         (vsx_smin<mode>3): Likewise.
11604         (vsx_sqrt<mode>2): Likewise.
11605         (vsx_rsqrte<mode>2): Likewise.
11606         (vsx_tsqrt<mode>2_internal): Likewise.
11607         (vsx_fms<mode>4): Likewise.
11608         (vsx_nfma<mode>4): Likewise.
11609         (vsx_eq<mode>): Likewise.
11610         (vsx_gt<mode>): Likewise.
11611         (vsx_ge<mode>): Likewise.
11612         (vsx_eq<mode>_p): Likewise.
11613         (vsx_gt<mode>_p): Likewise.
11614         (vsx_ge<mode>_p): Likewise.
11615         (vsx_xxsel<mode>): Likewise.
11616         (vsx_xxsel<mode>_uns): Likewise.
11617         (vsx_copysign<mode>3): Likewise.
11618         (vsx_float<VSi><mode>2): Likewise.
11619         (vsx_floatuns<VSi><mode>2): Likewise.
11620         (vsx_fix_trunc<mode><VSi>2): Likewise.
11621         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11622         (vsx_x<VSv>r<VSs>i): Likewise.
11623         (vsx_x<VSv>r<VSs>ic): Likewise.
11624         (vsx_btrunc<mode>2): Likewise.
11625         (vsx_b2trunc<mode>2): Likewise.
11626         (vsx_floor<mode>2): Likewise.
11627         (vsx_ceil<mode>2): Likewise.
11628         (vsx_<VS_spdp_insn>): Likewise.
11629         (vsx_xscvspdp): Likewise.
11630         (vsx_xvcvspuxds): Likewise.
11631         (vsx_float_fix_<mode>2): Likewise.
11632         (vsx_set_<mode>): Likewise.
11633         (vsx_extract_<mode>_internal1): Likewise.
11634         (vsx_extract_<mode>_internal2): Likewise.
11635         (vsx_extract_<mode>_load): Likewise.
11636         (vsx_extract_<mode>_store): Likewise.
11637         (vsx_splat_<mode>): Likewise.
11638         (vsx_xxspltw_<mode>): Likewise.
11639         (vsx_xxspltw_<mode>_direct): Likewise.
11640         (vsx_xxmrghw_<mode>): Likewise.
11641         (vsx_xxmrglw_<mode>): Likewise.
11642         (vsx_xxsldwi_<mode>): Likewise.
11643         (vsx_xscvdpspn): Tighten constraints to only use register classes
11644         the types use.
11645         (vsx_xscvspdpn): Likewise.
11646         (vsx_xscvdpspn_scalar): Likewise.
11647
11648         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11649         wj, and wk constraints.
11650         (GPR_REG_CLASS_P): New helper macro for register classes targeting
11651         general purpose registers.
11652
11653         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11654         direct moves.
11655         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11656         DImode instead of wm.  Use wk constraint for direct move of DFmode
11657         instead of wm.
11658         (extendsidi2_lfiwax): Likewise.
11659         (lfiwax): Likewise.
11660         (lfiwzx): Likewise.
11661         (movdi_internal64): Likewise.
11662
11663         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11664         wk constraints. Make the wy constraint documentation match them
11665         implementation.
11666
11667 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
11668
11669         Replacement of isl_int by isl_val
11670         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11671         (compute_bounds_for_param): use isl_val instead of isl_int
11672         (compute_bounds_for_loop): likewise
11673         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11674         (build_linearized_memory_access): use isl_val instead of isl_int
11675         (pdr_stride_in_loop): likewise
11676         * graphite-optimize-isl.c:
11677         (getPrevectorMap): use isl_val instead of isl_int
11678         * graphite-poly.c:
11679         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11680         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11681         (extern the_isl_ctx): declare
11682         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11683         (extract_affine_gmp): likewise
11684         (wrap): likewise
11685         (build_loop_iteration_domains): likewise
11686         (add_param_constraints): likewise
11687
11688 2014-08-11  Richard Biener  <rguenther@suse.de>
11689
11690         PR tree-optimization/62075
11691         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11692         handle uses in patterns.
11693
11694 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11695             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11696             Anna Tikhonova  <anna.tikhonova@intel.com>
11697             Ilya Tocar  <ilya.tocar@intel.com>
11698             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11699             Ilya Verbin  <ilya.verbin@intel.com>
11700             Kirill Yukhin  <kirill.yukhin@intel.com>
11701             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11702
11703         * common/config/i386/i386-common.c
11704         (OPTION_MASK_ISA_AVX512VL_SET): Define.
11705         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11706         (ix86_handle_option): Handle OPT_mavx512vl.
11707         * config/i386/cpuid.h (bit_AVX512VL): Define.
11708         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11709         set -mavx512vl accordingly.
11710         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11711         OPTION_MASK_ISA_AVX512VL.
11712         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11713         (ix86_option_override_internal): Define PTA_AVX512VL, handle
11714         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11715         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11716         * config/i386/i386.h (TARGET_AVX512VL): Define.
11717         (TARGET_AVX512VL_P(x)): Ditto.
11718         * config/i386/i386.opt: Add mavx512vl.
11719
11720 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
11721
11722         PR tree-optimization/62073
11723         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11724         a basic block.
11725
11726 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11727             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11728             Anna Tikhonova  <anna.tikhonova@intel.com>
11729             Ilya Tocar  <ilya.tocar@intel.com>
11730             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11731             Ilya Verbin  <ilya.verbin@intel.com>
11732             Kirill Yukhin  <kirill.yukhin@intel.com>
11733             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11734
11735         * common/config/i386/i386-common.c
11736         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11737         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11738         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11739         (ix86_handle_option): Handle OPT_mavx512bw.
11740         * config/i386/cpuid.h (bit_AVX512BW): Define.
11741         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11742         set -mavx512bw accordingly.
11743         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11744         OPTION_MASK_ISA_AVX512BW.
11745         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11746         (ix86_option_override_internal): Define PTA_AVX512BW, handle
11747         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11748         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11749         * config/i386/i386.h (TARGET_AVX512BW): Define.
11750         (TARGET_AVX512BW_P(x)): Ditto.
11751         * config/i386/i386.opt: Add mavx512bw.
11752
11753 2014-08-11  Richard Biener  <rguenther@suse.de>
11754
11755         PR tree-optimization/62070
11756         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11757         Remove SSA checking.
11758
11759 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11760
11761         * asan.c (asan_check_flags): New enum.
11762         (build_check_stmt_with_calls): Removed function.
11763         (build_check_stmt): Split inlining logic to
11764         asan_expand_check_ifn.
11765         (instrument_derefs): Rename parameter.
11766         (instrument_mem_region_access): Rename parameter.
11767         (instrument_strlen_call): Likewise.
11768         (asan_expand_check_ifn): New function.
11769         (asan_instrument): Remove old code.
11770         (pass_sanopt::execute): Change handling of
11771         asan-instrumentation-with-call-threshold.
11772         (asan_clear_shadow): Fix formatting.
11773         (asan_function_start): Likewise.
11774         (asan_emit_stack_protection): Likewise.
11775         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11776         Update description.
11777         * internal-fn.c (expand_ASAN_CHECK): New function.
11778         * internal-fn.def (ASAN_CHECK): New internal function.
11779         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11780         Update description.
11781         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11782         * tree.c: Small comment fix.
11783
11784 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11785
11786         * gimple.c (gimple_call_fnspec): Support internal functions.
11787         (gimple_call_return_flags): Use const.
11788         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11789         * internal-fn.def: Add fnspec information.
11790         * internal-fn.h (internal_fn_fnspec): New function.
11791         (init_internal_fns): Declare new function.
11792         * internal-fn.c (internal_fn_fnspec_array): New global variable.
11793         (init_internal_fns): New function.
11794         * tree-core.h: Update macro call.
11795         * tree.c (build_common_builtin_nodes): Initialize internal fns.
11796
11797 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
11798
11799         * lto-streamer.h (struct output_block::symbol): Change from
11800         struct symtab_node to plain symtab_node.
11801         (referenced_from_this_partition_p): Change first parameter
11802         from struct symtab_node to plain symtab_node.
11803
11804 2014-08-10  Marek Polacek  <polacek@redhat.com>
11805
11806         PR c/51849
11807         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11808
11809 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
11810
11811         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11812         DECL correctly; do not give up on types in static storage.
11813
11814 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
11815
11816         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11817
11818 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
11819
11820         * graphite-isl-ast-to-gimple.c:
11821         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11822
11823         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11824
11825 2014-08-08  Guozhi Wei  <carrot@google.com>
11826
11827         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11828
11829 2014-08-08  Cary Coutant  <ccoutant@google.com>
11830
11831         * dwarf2out.c (get_skeleton_type_unit): Remove.
11832         (output_skeleton_debug_sections): Remove skeleton type units.
11833         (output_comdat_type_unit): Likewise.
11834         (dwarf2out_finish): Likewise.
11835
11836 2014-08-07  Yi Yang  <ahyangyi@google.com>
11837
11838         * predict.c (expr_expected_value_1): Remove the redundant assignment.
11839
11840 2014-08-08  Richard Biener  <rguenther@suse.de>
11841
11842         * lto-streamer.h (struct lto_input_block): Make it a class
11843         with a constructor.
11844         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11845         (struct lto_function_header, struct lto_simple_header,
11846         struct lto_simple_header_with_strings,
11847         struct lto_decl_header, struct lto_function_header): Make
11848         a simple inheritance hieararchy.  Remove unused fields.
11849         (struct lto_asm_header): Remove.
11850         * lto-streamer-out.c (produce_asm): Adjust.
11851         (lto_output_toplevel_asms): Likewise.
11852         (produce_asm_for_decls): Likewise.
11853         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11854         * data-streamer-in.c (string_for_index): Likewise.
11855         * ipa-inline-analysis.c (inline_read_section): Likewise.
11856         * ipa-prop.c (ipa_prop_read_section): Likewise.
11857         (read_replacements_section): Likewise.
11858         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11859         * lto-section-in.c (lto_create_simple_input_block): Likewise.
11860         (lto_destroy_simple_input_block): Likewise.
11861         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11862         (lto_input_toplevel_asms): Likewise.
11863
11864 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11865             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11866             Anna Tikhonova  <anna.tikhonova@intel.com>
11867             Ilya Tocar  <ilya.tocar@intel.com>
11868             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11869             Ilya Verbin  <ilya.verbin@intel.com>
11870             Kirill Yukhin  <kirill.yukhin@intel.com>
11871             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11872
11873         * common/config/i386/i386-common.c
11874         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11875         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11876         (ix86_handle_option): Handle OPT_mavx512dq.
11877         * config/i386/cpuid.h (bit_AVX512DQ): Define.
11878         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11879         set -mavx512dq accordingly.
11880         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11881         OPTION_MASK_ISA_AVX512DQ.
11882         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11883         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11884         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11885         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11886         * config/i386/i386.h (TARGET_AVX512DQ): Define.
11887         (TARGET_AVX512DQ_P(x)): Ditto.
11888         * config/i386/i386.opt: Add mavx512dq.
11889
11890 2014-08-08  Richard Biener  <rguenther@suse.de>
11891
11892         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11893         target_percent, target_percent_s): Export.
11894         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11895         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11896         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11897         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11898         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11899         Move to gimple-fold.c.
11900         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11901         strcat and strcpy.
11902         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11903         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11904         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11905         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11906         (rewrite_call_expr_array): Remove.
11907         (fold_builtin_sprintf_chk): Likewise.
11908         (fold_builtin_snprintf_chk): Likewise.
11909         (fold_builtin_varargs): Remove handling of sprintf_chk,
11910         vsprintf_chk, snprintf_chk and vsnprintf_chk.
11911         (gimple_fold_builtin_sprintf_chk): Remove.
11912         (gimple_fold_builtin_snprintf_chk): Likewise.
11913         (gimple_fold_builtin_varargs): Likewise.
11914         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11915         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11916         * gimple.c (gimple_seq_add_seq_without_update): New function.
11917         * gimple.h (gimple_seq_add_seq_without_update): Declare.
11918         * gimple-fold.c: Include output.h.
11919         (gsi_replace_with_seq_vops): New function, split out from ...
11920         (gimplify_and_update_call_from_tree): ... here.
11921         (replace_call_with_value): New function.
11922         (replace_call_with_call_and_fold): Likewise.
11923         (var_decl_component_p): Moved from builtins.c.
11924         (gimple_fold_builtin_memory_op): Moved from builtins.c
11925         fold_builtin_memory_op and rewritten to GIMPLE.
11926         (gimple_fold_builtin_memset): Likewise.
11927         (gimple_fold_builtin_strcpy): Likewise.
11928         (gimple_fold_builtin_strncpy): Likewise.
11929         (gimple_fold_builtin_strcat): Likewise.
11930         (gimple_fold_builtin_fputs): Likewise.
11931         (gimple_fold_builtin_memory_chk): Likewise.
11932         (gimple_fold_builtin_stxcpy_chk): Likewise.
11933         (gimple_fold_builtin_stxncpy_chk): Likewise.
11934         (gimple_fold_builtin_snprintf_chk): Likewise.
11935         (gimple_fold_builtin_sprintf_chk): Likewise.
11936         (gimple_fold_builtin_strlen): New function.
11937         (gimple_fold_builtin_with_strlen): New function split out from
11938         gimple_fold_builtin.
11939         (gimple_fold_builtin): Change signature and handle
11940         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11941         here.  Call gimple_fold_builtin_with_strlen.
11942         (gimple_fold_call): Adjust.
11943
11944 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11945
11946         * calls.c (precompute_arguments): Check
11947          promoted_for_signed_and_unsigned_p and set the promoted mode.
11948         (promoted_for_signed_and_unsigned_p): New function.
11949         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11950         and set the promoted mode.
11951         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11952         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11953         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11954
11955
11956 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11957
11958         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11959         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11960         (expand_call): Likewise.
11961         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11962         to get promoted mode.
11963         * combine.c (record_promoted_value): Skip > 0 comparison with
11964         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11965         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11966         of SUBREG_PROMOTED_UNSIGNED_P.
11967         (convert_modes): Likewise.
11968         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11969         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11970         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11971         SUBREG_PROMOTED_UNSIGNED_SET.
11972         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11973         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11974         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11975         SUBREG_PROMOTED_SET.
11976         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11977         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11978         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11979         of SUBREG_PROMOTED_UNSIGNED_P.
11980         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11981         (SUBREG_PROMOTED_SET): New define.
11982         (SUBREG_PROMOTED_GET): Likewise.
11983         (SUBREG_PROMOTED_SIGN): Likewise.
11984         (SUBREG_PROMOTED_SIGNED_P): Likewise.
11985         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11986         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11987         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11988         instead of SUBREG_PROMOTED_UNSIGNED_GET.
11989         (nonzero_bits1): Skip > 0 comparison with the results as
11990         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11991         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11992         of !SUBREG_PROMOTED_UNSIGNED_P.
11993         * simplify-rtx.c (simplify_unary_operation_1): Use new
11994         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11995         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11996         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11997         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11998
11999 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
12000
12001         * ipa-devirt.c: Include gimple-pretty-print.h
12002         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
12003         further tests.
12004         (decl_maybe_in_construction_p): Fix conditional on cdtor check
12005         (get_polymorphic_call_info): Fix return value
12006         (type_change_info): New sturcture based on ipa-prop
12007         variant.
12008         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
12009         based on ipa-prop variant.
12010         (extr_type_from_vtbl_ptr_store): New function
12011         based on ipa-prop variant.
12012         (record_known_type): New function.
12013         (check_stmt_for_type_change): New function.
12014         (get_dynamic_type): New function.
12015         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
12016         * tree-ssa-pre.c: ipa-utils.h
12017         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
12018         machinery; sanity check with ipa-prop devirtualization.
12019         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
12020         polymorphic flag.
12021
12022 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
12023
12024         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
12025         * alias.c, cfgexpand.c, cgraphbuild.c,
12026         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
12027         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
12028         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
12029         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
12030         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
12031         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
12032         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
12033         dse.c, except.c, gengtype.c, gimple-expr.c,
12034         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
12035         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
12036         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
12037         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
12038         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
12039         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
12040         pointer-set.h.
12041         * pointer-set.c: Remove file.
12042         * pointer-set.h: Remove file.
12043
12044 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12045
12046         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
12047         * config/arm/types.md (f_sels, f_seld): Delete.
12048
12049 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12050
12051         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
12052         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
12053         (aarch64_movdi_<mode>high): Likewise.
12054         (aarch64_mov<mode>high_di): Likewise.
12055         (aarch64_movdi_<mode>low): Likewise.
12056         (aarch64_mov<mode>low_di): Likewise.
12057         (aarch64_movtilow_tilow): Likewise.
12058         Add comment explaining usage of fp,simd attributes and of
12059         TARGET_FLOAT and TARGET_SIMD.
12060
12061 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
12062             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12063
12064         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
12065         Use MOVN when one of the half-words is 0xffff.
12066
12067 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
12068
12069         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
12070
12071 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
12072
12073         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
12074         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
12075         (rfs_str): String corresponding to RFS_* constants.
12076         (rank_for_schedule_stats_t): New typedef.
12077         (rank_for_schedule_stats): New static variable.
12078         (rfs_result): New static function.
12079         (rank_for_schedule): Track statistics for deciding heuristics.
12080         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
12081         static functions.
12082         (ready_sort): Use them for debug printouts.
12083         (schedule_block): Init statistics state.  Print statistics on
12084         rank_for_schedule decisions.
12085
12086 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
12087
12088         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
12089
12090 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
12091
12092         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
12093         constraint.
12094
12095 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
12096
12097         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
12098         function to not conflict.
12099         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
12100         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
12101         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
12102         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
12103         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
12104         of pointer_map.
12105
12106 2014-08-07  Marek Polacek  <polacek@redhat.com>
12107
12108         * fold-const.c (fold_binary_loc): Add folding of
12109         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
12110
12111 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
12112
12113         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
12114         instead of type size.
12115         (ASM_FINISH_DECLARE_OBJECT): Likewise.
12116
12117 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
12118
12119         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
12120         (*thumb1_movqi_insn): Likewise.
12121         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
12122
12123 2014-08-07  Tom de Vries  <tom@codesourcery.com>
12124
12125         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12126         (glibc_2_11_or_earlier): Remove effective-target keywords.
12127
12128 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12129
12130         * config/arm/arm.c (bdesc_2arg): Fix typo.
12131         (arm_atomic_assign_expand_fenv): Remove The default implementation.
12132
12133 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12134
12135         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
12136
12137 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
12138
12139         PR debug/61923
12140         * haifa-sched.c (advance_one_cycle): Fix dump.
12141         (schedule_block): Don't advance cycle if we are already at the
12142         beginning of the cycle.
12143
12144 2014-08-06  Martin Jambor  <mjambor@suse.cz>
12145
12146         PR ipa/61393
12147         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
12148
12149 2014-08-06  Richard Biener  <rguenther@suse.de>
12150
12151         PR lto/62034
12152         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
12153         SCCs here.
12154         (lto_input_tree): Pop SCCs here.
12155
12156 2014-08-06  Richard Biener  <rguenther@suse.de>
12157
12158         PR tree-optimization/61320
12159         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
12160         handle misaligned loads.
12161
12162 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
12163
12164         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
12165         (aarch64_expand_vec_perm_const): Check for dup before zip.
12166
12167 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12168
12169         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
12170         CONST_INT_P instead of GET_CODE and compare.
12171         (aarch64_select_cc_mode): Likewise.
12172         (aarch64_print_operand): Likewise.
12173         (aarch64_rtx_costs): Likewise.
12174         (aarch64_simd_valid_immediate): Likewise.
12175         (aarch64_simd_check_vect_par_cnst_half): Likewise.
12176         (aarch64_simd_emit_pair_result_insn): Likewise.
12177
12178 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
12179
12180         * gdbhooks.py (find_gcc_source_dir): New helper function.
12181         (class PassNames): New class, locating and parsing passes.def.
12182         (class BreakOnPass): New command "break-on-pass".
12183
12184 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
12185
12186         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
12187         getting olde.
12188
12189 2014-08-05  Richard Biener  <rguenther@suse.de>
12190
12191         PR rtl-optimization/61672
12192         * emit-rtl.h (mem_attrs_eq_p): Declare.
12193         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
12194         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
12195         * cfgcleanup.c (merge_memattrs): Likewise.
12196         Include emit-rtl.h.
12197
12198 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12199
12200         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
12201         rather than singleton vectors.
12202         (vqdmlsls_lane_s32): Likewise.
12203
12204 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12205
12206         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
12207         Use VSDQ_HSI mode iterator.
12208         (aarch64_sqrdmulh_laneq<mode>): Likewise.
12209         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
12210         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
12211         Use BUILTIN_VDQHS macro.
12212         (sqrdmulh_laneq): Likewise.
12213         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
12214         (vqdmlals_laneq_s32): Likewise.
12215         (vqdmlslh_laneq_s16): Likewise.
12216         (vqdmlsls_laneq_s32): Likewise.
12217         (vqdmulhh_laneq_s16): Likewise.
12218         (vqdmulhs_laneq_s32): Likewise.
12219         (vqrdmulhh_laneq_s16): Likewise.
12220         (vqrdmulhs_laneq_s32): Likewise.
12221
12222 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12223
12224         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
12225         (vmuld_laneq_f64): Likewise.
12226         (vmuls_laneq_f32): Likewise.
12227         (vmul_n_f64): Likewise.
12228         (vmuld_lane_f64): Reimplement in C.
12229         (vmuls_lane_f32): Likewise.
12230
12231 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12232
12233         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
12234         to reservation.
12235         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
12236
12237 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12238
12239         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
12240         (rbitsi2): Likewise.
12241         (*arm_rev): Set predicable and predicable_short_it attributes.
12242
12243 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12244
12245         * convert.c (convert_to_integer): Guard transformation to lrint by
12246         -fno-math-errno.
12247
12248 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
12249
12250         * config/aarch64/aarch64-builtins.c
12251         (aarch64_simd_builtin_type_mode): Delete.
12252         (v8qi_UP): Remap to V8QImode.
12253         (v4hi_UP): Remap to V4HImode.
12254         (v2si_UP): Remap to V2SImode.
12255         (v2sf_UP): Remap to V2SFmode.
12256         (v1df_UP): Remap to V1DFmode.
12257         (di_UP): Remap to DImode.
12258         (df_UP): Remap to DFmode.
12259         (v16qi_UP):V16QImode.
12260         (v8hi_UP): Remap to V8HImode.
12261         (v4si_UP): Remap to V4SImode.
12262         (v4sf_UP): Remap to V4SFmode.
12263         (v2di_UP): Remap to V2DImode.
12264         (v2df_UP): Remap to V2DFmode.
12265         (ti_UP): Remap to TImode.
12266         (ei_UP): Remap to EImode.
12267         (oi_UP): Remap to OImode.
12268         (ci_UP): Map to CImode.
12269         (xi_UP): Remap to XImode.
12270         (si_UP): Remap to SImode.
12271         (sf_UP): Remap to SFmode.
12272         (hi_UP): Remap to HImode.
12273         (qi_UP): Remap to QImode.
12274         (aarch64_simd_builtin_datum): Make mode a machine_mode.
12275         (VAR1): Build builtin name.
12276         (aarch64_init_simd_builtins): Remove dead code.
12277
12278 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
12279
12280         * graphite-isl-ast-to-gimple.c:
12281         (set_options): New function.
12282         (scop_to_isl_ast): Add calling of set_options.
12283
12284 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
12285
12286         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
12287         (analyze_iv_to_split_insn): Don't initialize them.
12288         (get_ivts_expr): Removed.
12289         (allocate_basic_variable, insert_base_initialization): Use
12290         SET_SRC instead of *get_ivts_expr.
12291         (split_iv): Use &SET_SRC instead of get_ivts_expr.
12292
12293 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
12294
12295         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
12296         (translate_isl_ast_for_loop): Add checking of the
12297         flag_loop_parallelize_all.
12298         (ast_build_before_for): New function.
12299         (scop_to_isl_ast): Add checking of the
12300         flag_loop_parallelize_all.
12301         * graphite-dependences.c: Move the defenition of the
12302         scop_get_dependences from graphite-optimize-isl.c to this file.
12303         (apply_schedule_on_deps): Add checking of the ux's emptiness.
12304         (carries_deps): Add checking of the x's value.
12305         * graphite-optimize-isl.c: Move the defenition of the
12306         scop_get_dependences to graphite-dependences.c.
12307         * graphite-poly.h: Add declarations of scop_get_dependences
12308         and carries_deps.
12309
12310 2014-08-04  Rohit  <rohitarulraj@freescale.com>
12311
12312         PR target/60102
12313         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
12314         names.
12315         (alt_reg_names): Likewise.
12316         (rs6000_dwarf_register_span): For SPE high registers, replace
12317         dwarf register numbers with GCC hard register numbers.
12318         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
12319         (rs6000_dbx_register_number): For SPE high registers, return dwarf
12320         register number for the corresponding GCC hard register number.
12321         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
12322         newly added GCC hard register numbers for SPE high registers.
12323         (DWARF_FRAME_REGISTERS):  Likewise.
12324         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
12325         (DWARF_FRAME_REGNUM): Likewise.
12326         (FIXED_REGISTERS): Likewise.
12327         (CALL_USED_REGISTERS): Likewise.
12328         (CALL_REALLY_USED_REGISTERS): Likewise.
12329         (REG_ALLOC_ORDER): Likewise.
12330         (enum reg_class): Likewise.
12331         (REG_CLASS_NAMES): Likewise.
12332         (REG_CLASS_CONTENTS): Likewise.
12333         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
12334
12335 2014-08-04  Richard Biener  <rguenther@suse.de>
12336
12337         * gimple-fold.h (gimple_fold_builtin): Remove.
12338         * gimple-fold.c (gimple_fold_builtin): Make static.
12339         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
12340         fold_stmt, not gimple_fold_builtin.
12341
12342 2014-08-04  Martin Liska <mliska@suse.cz>
12343
12344         * cgraph.h (csi_end_p): Removed.
12345         (csi_next): Likewise.
12346         (csi_node): Likewise.
12347         (csi_start): Likewise.
12348         (cgraph_node_in_set_p): Likewise.
12349         (cgraph_node_set_size): Likewise.
12350         (vsi_end_p): Likewise.
12351         (vsi_next): Likewise.
12352         (vsi_node): Likewise.
12353         (vsi_start): Likewise.
12354         (varpool_node_set_size): Likewise.
12355         (cgraph_node_set_nonempty_p): Likewise.
12356         (varpool_node_set_nonempty_p): Likewise.
12357         * cgraphunit.c (cgraph_process_new_functions): vec replaces
12358         cgraph_node_set.
12359         * ipa-inline-transform.c: Likewise.
12360         * ipa-utils.c (cgraph_node_set_new): Removed.
12361         (cgraph_node_set_add): Likewise.
12362         (cgraph_node_set_remove): Likewise.
12363         (cgraph_node_set_find): Likewise.
12364         (dump_cgraph_node_set): Likewise.
12365         (debug_cgraph_node_set): Likewise.
12366         (free_cgraph_node_set): Likewise.
12367         (varpool_node_set_new): Likewise.
12368         (varpool_node_set_add): Likewise.
12369         (varpool_node_set_remove): Likewise.
12370         (varpool_node_set_find): Likewise.
12371         (dump_varpool_node_set): Likewise.
12372         (free_varpool_node_set): Likewise.
12373         (debug_varpool_node_set): Likewise.
12374         * tree-emutls.c (struct tls_var_data):
12375         (emutls_index): Removed.
12376         (emutls_decl): Likewise.
12377         (gen_emutls_addr): Function implementation uses newly added
12378         hash_map<varpool_node *, tls_var_data>.
12379         (clear_access_vars): Likewise.
12380         (create_emultls_var): Likewise.
12381         (ipa_lower_emutls): Likewise.
12382         (reset_access): New function.
12383
12384 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12385
12386         * config/i386/i386.c (ix86_option_override_internal): Add
12387         PTA_RDRND and PTA_MOVBE for bdver4.
12388
12389 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12390             James Greenhalgh  <james.greenhalgh@arm.com>
12391
12392         * doc/md.texi (clrsb): Document.
12393         (clz): Change reference to x into operand 1.
12394         (ctz): Likewise.
12395         (popcount): Likewise.
12396
12397 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12398
12399         PR target/61713
12400         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
12401         move to subtarget in serial version if result is ignored.
12402
12403 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12404             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12405
12406         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
12407         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
12408         (sched_analyze_insn): Update use of try_group_insn to
12409         sched_macro_fuse_insns.
12410         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
12411         arguments that are not conditional jumps.
12412
12413 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12414
12415         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
12416         family information. Handle BTVER2 cpu with cpuid family value.
12417
12418 2014-08-04  Tom de Vries  <tom@codesourcery.com>
12419
12420         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12421         (glibc_2_11_or_earlier): Document effective-target keywords.
12422
12423 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
12424
12425         * ipa-devirt.c (odr_type_warn_count): Add type.
12426         (possible_polymorphic_call_targets): Set it.
12427         (ipa_devirt): Use it.
12428
12429 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
12430
12431         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
12432         Document.
12433         * ipa-devirt.c: Include hash-map.h
12434         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
12435         (clear_speculation): Break out of ...
12436         (get_class_context): ... here; speed up handling obviously useless
12437         speculations.
12438         (odr_type_warn_count, decl_warn_count): New structures.
12439         (final_warning_record): New structure.
12440         (final_warning_records): New static variable.
12441         (possible_polymorphic_call_targets): Cleanup handling of
12442         speculative info; do not build speculation when user do not care;
12443         record info about warnings when asked for.
12444         (add_decl_warning): New function.
12445         (type_warning_cmp): New function.
12446         (decl_warning_cmp): New function.
12447         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
12448         (gate): Enable pass when warnings are requested.
12449         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
12450         options.
12451
12452 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
12453
12454         * hash-map.h (default_hashmap_traits::mark_key_deleted):
12455         Fix cast.
12456         (hash_map::remove): New method.
12457         (hash_map::traverse): New method.
12458         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
12459         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
12460         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
12461         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
12462         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
12463         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
12464         pointer_map.
12465
12466 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
12467
12468         * hash-set.h: new File.
12469         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
12470         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
12471         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
12472         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
12473         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
12474         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
12475         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
12476         varpool.c: Use hash_set instead of pointer_set.
12477
12478 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
12479
12480         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
12481
12482 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12483
12484         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
12485         for frame access when strict_p is false.
12486
12487 2014-08-01  Renlin Li <renlin.li@arm.com>
12488 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12489
12490         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
12491         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
12492         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
12493         Declaration.
12494         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
12495         predicate.
12496         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
12497         aarch64_mem_pair_offset.
12498
12499 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12500
12501         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
12502         offset.
12503         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
12504         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
12505
12506 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
12507
12508         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
12509
12510 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
12511
12512         PR regression/61510
12513         * cgraphunit.c (analyze_functions): Use get_create rather than get
12514         for decls which are clones of abstract functions.
12515
12516 2014-08-01  Martin Liska  <mliska@suse.cz>
12517
12518         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
12519         * ipa-prop.h (count_formal_params): Global function created from static.
12520         * ipa-prop.c (count_formal_params): Likewise.
12521         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
12522         profiles for semantically equivalent functions.
12523         * passes.c (do_per_function): If we load body of a function
12524         during WPA, this condition should behave same.
12525         * varpool.c (ctor_for_folding): More tolerant assert for variable
12526         aliases created during WPA.
12527
12528 2014-08-01  Martin Liska  <mliska@suse.cz>
12529
12530         * doc/invoke.texi (Options That Control Optimization): Documentation
12531         for -foptimize-strlen introduced. Optimization levels default options
12532         fixed.
12533
12534 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
12535
12536         * opts.c (common_handle_option): Handle -fsanitize=alignment.
12537         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
12538         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
12539         type to bool.
12540         * stor-layout.h (min_align_of_type): New prototype.
12541         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
12542         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
12543         check.
12544         * ubsan.c: Include builtins.h.
12545         (ubsan_expand_bounds_ifn): Change return type to bool,
12546         always return true.
12547         (ubsan_expand_null_ifn): Change return type to bool, change
12548         argument to gimple_stmt_iterator *.  Handle both null and alignment
12549         sanitization, take type from ckind argument's type rather than
12550         first argument.
12551         (instrument_member_call): Removed.
12552         (instrument_mem_ref): Remove t argument, add mem and base arguments.
12553         Handle both null and alignment sanitization, don't say whole
12554         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
12555         call instead of 2 argument.
12556         (instrument_null): Adjust instrument_mem_ref caller.  Don't
12557         instrument calls here.
12558         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
12559         like SANITIZE_NULL.
12560         * stor-layout.c (min_align_of_type): New function.
12561         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
12562         Or it into SANITIZE_UNDEFINED.
12563         * doc/invoke.texi (-fsanitize=alignment): Document.
12564
12565 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12566
12567         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
12568
12569 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12570
12571         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
12572         inchash.
12573         (vn_reference_compute_hash): Dito.
12574         (vn_nary_op_compute_hash): Dito.
12575         (vn_phi_compute_hash): Dito.
12576         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
12577
12578 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12579
12580         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
12581         Rename to inchash:add_expr_commutative. Convert to inchash.
12582         (iterative_hash_hashable_expr): Rename to
12583         inchash:add_hashable_expr. Convert to inchash.
12584         (avail_expr_hash): Dito.
12585
12586 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12587
12588         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
12589         Convert to inchash.
12590
12591 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12592
12593         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
12594
12595 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12596
12597         * Makefile.in (OBJS): Add rtlhash.o
12598         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12599         (loc_checksum): Dito.
12600         (loc_checksum_ordered): Dito.
12601         (hash_loc_operands): Dito.
12602         (hash_locs): Dito.
12603         (hash_loc_list): Dito.
12604         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12605         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12606         * rtlhash.c: New file.
12607         * rtlhash.h: New file.
12608
12609 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12610
12611         * inchash.h (inchash): Change inchash class to namespace.
12612         (class hash): ... Rename from inchash.
12613         (add_object): Move from macro to class template.
12614         * lto-streamer-out.c (hash_tree): Change inchash
12615         to inchash::hash.
12616         * tree.c (build_type_attribute_qual_variant): Dito.
12617         (type_hash_list): Dito.
12618         (attribute_hash_list): Dito.
12619         (iterative_hstate_expr): Rename to inchash::add_expr
12620         (build_range_type_1): Change inchash to inchash::hash
12621         and use hash::add_expr.
12622         (build_array_type_1): Dito.
12623         (build_function_type): Dito
12624         (build_method_type_directly): Dito.
12625         (build_offset_type): Dito.
12626         (build_complex_type): Dito.
12627         (make_vector_type): Dito.
12628         * tree.h (iterative_hash_expr): Dito.
12629
12630 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
12631
12632         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12633
12634 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12635
12636         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12637         correct alphabetical position.
12638         (vpaddd_f64): Rewrite using builtins.
12639         (vpaddd_s64): Move to correct alphabetical position.
12640         (vpaddd_u64): New.
12641
12642 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
12643
12644         PR target/61844
12645         * config/sh/sh.c (sh_legitimate_address_p,
12646         sh_legitimize_reload_address): Handle reg+reg address modes when
12647         ALLOW_INDEXED_ADDRESS is false.
12648         * config/sh/predicates.md (general_movsrc_operand,
12649         general_movdst_operand): Likewise.
12650
12651 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12652
12653         * config/aarch64/aarch64-builtins.c
12654         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12655         BYTES_BIG_ENDIAN.
12656
12657 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12658
12659         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12660         the generated mask based on BYTES_BIG_ENDIAN.
12661         (aarch64_simd_check_vect_par_cnst_half): New.
12662         * config/aarch64/aarch64-protos.h
12663         (aarch64_simd_check_vect_par_cnst_half): New.
12664         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12665         the check out to aarch64_simd_check_vect_par_cnst_half.
12666         (vect_par_cnst_lo_half): Likewise.
12667         * config/aarch64/aarch64-simd.md
12668         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12669         (move_hi_quad_<mode>): Always generate a low mask.
12670
12671 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12672
12673         * doc/invoke.texi (AVR Options): Add documentation about
12674         __AVR_DEVICE_NAME__ built-in macro.
12675
12676 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
12677
12678         PR target/61948
12679         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12680         constraints are satisfied.
12681         (<shift>di3_neon): Likewise.
12682
12683 2014-07-31  Richard Biener  <rguenther@suse.de>
12684
12685         PR tree-optimization/61964
12686         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12687         by structural equality.
12688
12689 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
12690
12691         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12692         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12693         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12694         New enums.
12695         * gcc.c (sanitize_spec_function): Support new option.
12696         (SANITIZER_SPEC): Remove now redundant check.
12697         * opts.c (common_handle_option): Support new option.
12698         (finish_options): Check for incompatibilities.
12699         * toplev.c (process_options): Split userspace-specific checks.
12700
12701 2014-07-31  Richard Biener  <rguenther@suse.de>
12702
12703         * lto-streamer.h (struct output_block): Remove global.
12704         (struct data_in): Remove labels, num_named_labels and
12705         num_unnamed_labels.
12706         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12707         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12708
12709 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
12710
12711         PR c++/60517
12712         * common.opt (-Wreturn-local-addr): Moved from c.opt.
12713         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12714         (isolate_path): New argument to avoid inserting a trap.
12715         (find_implicit_erroneous_behaviour): Handle returning the address
12716         of a local variable.
12717         (find_explicit_erroneous_behaviour): Likewise.
12718
12719 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
12720
12721         PR lto/61868
12722         * toplev.c (init_random_seed): Move piece of code never called to
12723         set_random_seed.
12724         (set_random_seed): see above.
12725
12726 2014-07-31  Tom de Vries  <tom@codesourcery.com>
12727
12728         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12729
12730 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
12731
12732         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12733         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12734
12735 2014-07-31  Richard Biener  <rguenther@suse.de>
12736
12737         * data-streamer.h (streamer_write_data_stream): Declare here,
12738         renamed from ...
12739         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
12740         * lto-cgraph.c (lto_output_node): Adjust.
12741         (lto_output_varpool_node): Likewise.
12742         * data-streamer-out.c (streamer_string_index): Likewise.
12743         (streamer_write_data_stream, lto_append_block): Move from ...
12744         * lto-section-out.c (lto_output_data_stream,
12745         lto_append_block): ... here.
12746
12747 2014-07-30  Mike Stump  <mikestump@comcast.net>
12748
12749         * configure.ac: Also check for popen.
12750         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12751         * configure: Regenerate.
12752         * config.in:  Regenerate.
12753
12754 2014-07-30  Martin Jambor  <mjambor@suse.cz>
12755
12756         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12757         parameter to gimple.
12758
12759 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12760
12761         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12762         address as second parameter to __tpf_eh_return routine.
12763
12764 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
12765
12766         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12767         Thumb2.
12768
12769 2014-07-30  Tom Tromey  <tromey@redhat.com>
12770
12771         PR c/59855
12772         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12773         * doc/extend.texi (Type Attributes): Document designated_init
12774         attribute.
12775
12776 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
12777
12778         * graphite-isl-ast-to-gimple.c:
12779         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12780         (gcc_expression_from_isl_expression): Pass type to
12781         gcc_expression_from_isl_ast_expr_id.
12782
12783 2014-07-30  Richard Biener  <rguenther@suse.de>
12784
12785         * lto-streamer.h (lto_write_data): New function.
12786         * langhooks.c (lhd_append_data): Do not free block.
12787         * lto-section-out.c (lto_write_data): New function writing
12788         raw data to the current section.
12789         (lto_write_stream): Adjust for langhook semantic change.
12790         (lto_destroy_simple_output_block): Write header directly.
12791         * lto-opts.c (lto_write_options): Write options directly.
12792         * lto-streamer-out.c (produce_asm): Write heaeder directly.
12793         (lto_output_toplevel_asms): Likewise.
12794         (copy_function_or_variable): Copy data directly.
12795         (write_global_references): Output index table directly.
12796         (lto_output_decl_state_refs): Likewise.
12797         (write_symbol): Write data directly.
12798         (produce_symtab): Adjust.
12799         (produce_asm_for_decls): Output header and refs directly.
12800
12801 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12802
12803         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12804         to speculative_targets
12805         (get_class_context): Fix handling of contextes without outer type;
12806         avoid matching non-polymorphic types in LTO.
12807         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12808         parameter to speculative_targetsp; handle speculation.
12809         (dump_possible_polymorphic_call_targets): Update dumping.
12810
12811 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12812
12813         * common.opt (Wodr): Enable by default.
12814
12815 2014-07-29  Olivier Hainque  <hainque@adacore.com>
12816
12817         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12818
12819 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
12820
12821         PR bootstrap/61914
12822         * gengtype.c (strtoken): New function.
12823         (create_user_defined_type): Replace strtok with strtoken.
12824
12825 2014-07-29  Nathan Sidwell  <nathan@acm.org>
12826
12827         * gcov-io.c (gcov_var): Make hidden.
12828         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12829         (gcov_do_dump): Declare.
12830         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12831
12832 2014-07-29  Martin Jambor  <mjambor@suse.cz>
12833
12834         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12835         parameter to gimple.
12836         (sra_modify_assign): Likewise.
12837
12838 2014-07-29  Richard Biener  <rguenther@suse.de>
12839
12840         PR middle-end/52478
12841         * expr.c (expand_expr_real_2): Revert last change.
12842
12843 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12844
12845         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12846         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12847         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12848         call.
12849         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12850         (contains_type_p): Forward declare.
12851         (polymorphic_call_target_hasher::hash): Hash speculative info.
12852         (polymorphic_call_target_hasher::equal): Compare speculative info.
12853         (get_class_context): Handle speuclation.
12854         (contains_type_p): Update.
12855         (get_polymorphic_call_info_for_decl): Update.
12856         (walk_ssa_copies): Break out from ...
12857         (get_polymorphic_call_info): ... here; set speculative context
12858         before giving up.
12859         * ipa-prop.c (ipa_write_indirect_edge_info,
12860         ipa_read_indirect_edge_info): Stream speculative context.
12861         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12862         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12863         SPECULATIVE_MAYBE_DERIVED_TYPE).
12864         (possible_polymorphic_call_targets overriders): Update.
12865         (dump_possible_polymorphic_call_targets overriders): Update.
12866         (dump_possible_polymorphic_call_target_p overriders): Update.
12867
12868 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12869
12870         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12871         ipa-devirt path; fix thinko there.
12872
12873 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
12874
12875         * config/i386/i386.c (ix86_return_in_memory): Replace one
12876         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12877
12878 2014-07-28  Marek Polacek  <polacek@redhat.com>
12879
12880         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
12881
12882 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
12883
12884         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12885         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12886         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12887         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12888         (USE_LD_AS_NEEDED): Likewise.
12889         (ASM_APP_ON): Likewise.
12890         (ASM_APP_OFF): Likewise.
12891         (TARGET_POSIX_IO): Likewise.
12892         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12893         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12894         (USE_LD_AS_NEEDED): Likewise.
12895         (ASM_APP_ON): Likewise.
12896         (ASM_APP_OFF): Likewise.
12897         (TARGET_POSIX_IO): Likewise.
12898
12899 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
12900
12901         PR middle-end/61734
12902         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12903         operators other than the equality operators.
12904
12905 2014-07-28  Richard Biener  <rguenther@suse.de>
12906
12907         PR middle-end/52478
12908         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12909         sure to register SImode ones, not only >= word_mode ones.
12910         * expr.c (expand_expr_real_2): When expanding -ftrapv
12911         binops do not use OPTAB_LIB_WIDEN.
12912
12913 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
12914
12915         PR middle-end/61919
12916         * tree-outof-ssa.c (insert_partition_copy_on_edge)
12917         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12918         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12919         inserting them in the insn stream.
12920
12921 2014-07-28  Marek Polacek  <polacek@redhat.com>
12922
12923         PR middle-end/61913
12924         * common.opt (Wodr): Add Var.
12925
12926 2014-07-28  Richard Biener  <rguenther@suse.de>
12927
12928         PR tree-optimization/61921
12929         * tree-ssa-structalias.c (create_variable_info_for_1): Check
12930         if there is a varpool node before dereferencing it.
12931
12932 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
12933
12934         * graphite-sese-to-poly.c:
12935         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12936         id of the pbb), which contains pointer to the pbb1.
12937
12938         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12939
12940 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
12941
12942         * graphite-isl-ast-to-gimple.c:
12943         (graphite_create_new_guard): New function.
12944         (translate_isl_ast_node_if): New function.
12945         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12946
12947         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12948
12949 2014-07-27  Anthony Green  <green@moxielogic.com>
12950
12951         * config.gcc: Add moxie-*-moxiebox* configuration.
12952         * config/moxie/moxiebox.h: New file.
12953
12954 2014-07-26  Andrew Pinski  <apinski@cavium.com>
12955
12956         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12957         from the read only register.
12958
12959 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12960
12961         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12962         as the allocation class if it isn't likely to be spilled.
12963
12964 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12965
12966         * rtl.h (tls_referenced_p): Declare.
12967         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12968         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12969         (mips_cannot_force_const_mem): Use tls_referenced_p.
12970         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12971         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12972         instead of pa_tls_referenced_p.
12973         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12974         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12975         (pa_legitimate_constant_p): Likewise.
12976         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12977         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12978         (rs6000_cannot_force_const_mem, rs6000_emit_move)
12979         (rs6000_address_for_altivec): Use tls_referenced_p instead of
12980         rs6000_tls_referenced_p.
12981         (rs6000_tls_symbol_ref_1): Delete.
12982
12983 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
12984
12985         PR target/44551
12986         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12987         Optimize inverse of a VEC_CONCAT.
12988
12989 2014-07-25  Xinliang David Li  <davidxl@google.com>
12990
12991         * params.def: New parameter.
12992         * coverage.c (get_coverage_counts): Check new flag.
12993         (coverage_compute_profile_id): Check new flag.
12994         (coverage_begin_function): Check new flag.
12995         (coverage_end_function): Check new flag.
12996         * value-prof.c (coverage_node_map_initialized_p): New function.
12997         (init_node_map): Populate map with all functions.
12998         * doc/invoke.texi: Document new parameter.
12999
13000 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
13001             Richard Biener <rguenther@suse.de>
13002
13003         * lto-streamer-out.c (struct sccs): Turn to ...
13004         (class DFS): ... this one; refactor the DFS walk so it can
13005         be re-done on per-SCC basis.
13006         (DFS::DFS): New constructor.
13007         (DFS::~DFS): New destructor.
13008         (hash_tree): Add new MAP argument holding in-SCC hash values;
13009         remove POINTER_TYPE hashing hack.
13010         (scc_entry_compare): Rename to ...
13011         (DFS::scc_entry_compare): ... this one.
13012         (hash_scc): Rename to ...
13013         (DFS::hash_scc): ... this one; pass output_block instead
13014         of streamer_cache; work harder to get unique and stable SCC
13015         hashes.
13016         (DFS_write_tree): Rename to ...
13017         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
13018         (lto_output_tree): Update.
13019
13020 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13021
13022         * lto-streamer-out.c (hash_tree): Convert to inchash.
13023
13024 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13025
13026         * tree.c (build_type_attribute_qual_variant): Use inchash.
13027         (type_hash_list): Dito.
13028         (attribute_hash_list): Dito
13029         (iterative_hstate_expr): Dito.
13030         (iterative_hash_expr): Dito.
13031         (build_range_type_1): Dito.
13032         (build_array_type_1): Dito.
13033         (build_function_type): Dito.
13034         (build_method_type_directly): Dito.
13035         (build_offset_type): Dito.
13036         (build_complex_type): Dito.
13037         (make_vector_type): Dito.
13038         * tree.h (iterative_hash_expr): Add compat wrapper.
13039         (iterative_hstate_expr): Add.
13040
13041 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13042
13043         * Makefile.in (OBJS): Add inchash.o.
13044         (PLUGIN_HEADERS): Add inchash.h.
13045         * ipa-devirt.c: Include inchash.h.
13046         * lto-streamer-out.c: Dito.
13047         * tree-ssa-dom.c: Dito.
13048         * tree-ssa-pre.c: Dito.
13049         * tree-ssa-sccvn.c: Dito.
13050         * tree-ssa-tail-merge.c: Dito.
13051         * asan.c: Dito.
13052         * tree.c (iterative_hash_hashval_t): Move to ...
13053         (iterative_hash_host_wide_int): Move to ...
13054         * inchash.c: Here. New file.
13055         * tree.h (iterative_hash_hashval_t): Move to ...
13056         (iterative_hash_host_wide_int): Move to ...
13057         * inchash.h: Here. New file.
13058
13059 2014-07-25  Richard Biener  <rguenther@suse.de>
13060
13061         PR middle-end/61762
13062         PR middle-end/61894
13063         * fold-const.c (native_encode_int): Add and handle offset
13064         parameter to do partial encodings of expr.
13065         (native_encode_fixed): Likewise.
13066         (native_encode_real): Likewise.
13067         (native_encode_complex): Likewise.
13068         (native_encode_vector): Likewise.
13069         (native_encode_string): Likewise.
13070         (native_encode_expr): Likewise.
13071         * fold-const.c (native_encode_expr): Add offset parameter
13072         defaulting to -1.
13073         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
13074         (fold_ctor_reference): Handle all reads from tcc_constant
13075         ctors.
13076
13077 2014-07-25  Richard Biener  <rguenther@suse.de>
13078
13079         * tree-inline.c (estimate_move_cost): Mark speed_p argument
13080         as possibly unused.
13081
13082 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13083
13084         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
13085
13086 2014-07-24  Kyle McMartin  <kyle@redhat.com>
13087
13088         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
13089
13090 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13091
13092         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
13093         Add prototype.
13094         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
13095         function.
13096         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
13097         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13098         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
13099
13100 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13101
13102         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
13103         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
13104         aggregate types.  Instead, *all* aggregate types, except for single-
13105         element or homogeneous float/vector aggregates, are quadword-aligned
13106         if required by their type alignment.  Issue -Wpsabi note when a type
13107         is now treated differently than before.
13108
13109 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13110
13111         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
13112         does not fit fully into floating-point registers, and there is still
13113         space in the register parameter area, use GPRs to pass those parts
13114         of the argument.  Issue -Wpsabi note if any parameter is now treated
13115         differently than before.
13116         (rs6000_arg_partial_bytes): Update.
13117
13118 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
13119
13120         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
13121
13122 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13123
13124         * rtl.h (target_rtl): Remove lang_dependent_initialized.
13125         * toplev.c (initialize_rtl): Don't use it.  Move previously
13126         "language-dependent" calls to...
13127         (backend_init): ...here.
13128         (lang_dependent_init_target): Don't set lang_dependent_initialized.
13129         Assert that RTL initialization hasn't happend yet.
13130
13131 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13132
13133         PR rtl-optimization/61629
13134         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
13135         they have already been initialized.
13136
13137 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13138
13139         PR middle-end/61268
13140         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
13141         DECL_INCOMING_RTL and entry_parm.
13142         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
13143         * calls.c (load_register_parameters): Likewise argument values.
13144         (emit_library_call_value_1, store_one_arg): Likewise argument
13145         save areas.
13146         * config/i386/i386.c (assign_386_stack_local): Likewise the local
13147         stack slot.
13148         * explow.c (validize_mem): Modify the argument in-place.
13149
13150 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13151
13152         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
13153         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
13154
13155 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13156
13157         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
13158         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
13159
13160 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13161
13162         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
13163         (aarch64_save_callee_saves): New parameter "skip_wb".
13164         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
13165
13166 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13167
13168         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
13169         "wb_candidate2".
13170         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
13171
13172 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
13173
13174         * graphite-isl-ast-to-gimple.c:
13175         (graphite_create_new_loop): Add calling of isl_id_free to properly
13176         decrement reference counts.
13177
13178         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
13179
13180 2014-07-24  Martin Liska  <mliska@suse.cz>
13181         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
13182         function used.
13183         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
13184         (rs6000_code_end): Likewise.
13185
13186 2014-07-24  Martin Liska  <mliska@suse.cz>
13187
13188         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
13189         symtab_node funtion used.
13190         (rs6000_xcoff_declare_object_name): Likewise.
13191
13192 2014-07-24  Martin Liska  <mliska@suse.cz>
13193
13194         * cgraphunit.c (compile): Correct function used.
13195
13196 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
13197
13198         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
13199         as non-indexable.
13200
13201 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
13202
13203         PR lto/61802
13204         * varasm.c (bss_initializer_p): Handle offlined ctors.
13205         (align_variable, get_variable_align): Likewise.
13206         (make_decl_one_only): Likewise.
13207         (default_binds_local_p_1): Likewise.
13208         (decl_binds_to_current_def_p): Likewise.
13209         (get_variable_section): Get constructor if it is offlined.
13210         (assemble_variable_contents): Sanity check that the caller
13211         streamed in the ctor in LTO.
13212
13213 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
13214
13215         * graphite-isl-ast-to-gimple.c:
13216         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
13217         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
13218         isl_ast_op_pdiv_r to the different case.
13219
13220         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
13221
13222 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13223
13224         PR middle-end/61876
13225         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
13226         when flag_errno_math is on.
13227
13228 2014-07-24  Martin Liska  <mliska@suse.cz>
13229
13230         * cgraph.h (varpool_node):
13231         (availability get_availability (void)):
13232         created from cgraph_variable_initializer_availability
13233         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
13234         created from: cgraph_variable_initializer_availability
13235         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
13236         (void finalize_named_section_flags (void)):
13237         created from varpool_finalize_named_section_flags
13238         (bool assemble_decl (void)): created from varpool_assemble_decl
13239         (void analyze (void)): created from varpool_analyze_node
13240         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
13241         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
13242         (void remove_initializer (void)): created from varpool_remove_initializer
13243         (tree get_constructor (void)): created from varpool_get_constructor
13244         (bool externally_visible_p (void)): created from varpool_externally_visible_p
13245         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
13246         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
13247         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
13248         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
13249         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
13250         (static bool output_variables (void)): created from varpool_output_variables
13251         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
13252         created from varpool_extra_name_alias
13253         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
13254         (static void dump_varpool (FILE *f)): created from dump_varpool
13255         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
13256         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
13257         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
13258         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
13259         (void assemble_aliases (void)): created from assemble_aliases
13260
13261 2014-07-24  Martin Liska  <mliska@suse.cz>
13262
13263         * cgraph.h (symtab_node):
13264         (void register_symbol (void)): created from symtab_register_node
13265         (void remove (void)): created from symtab_remove_node
13266         (void dump (FILE *f)): created from dump_symtab_node
13267         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
13268         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
13269         (struct ipa_ref *add_reference (symtab_node *referred_node,
13270         enum ipa_ref_use use_type)): created from add_reference 
13271         (struct ipa_ref *add_reference (symtab_node *referred_node,
13272         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
13273         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
13274         gimple stmt)): created from maybe_add_reference
13275         (bool semantically_equivalent_p (symtab_node *target)): created from
13276         symtab_semantically_equivalent_p
13277         (void remove_from_same_comdat_group (void)): created from
13278         remove_from_same_comdat_group
13279         (void add_to_same_comdat_group (symtab_node *old_node)): created from
13280         symtab_add_to_same_comdat_group
13281         (void dissolve_same_comdat_group_list (void)): created from
13282         symtab_dissolve_same_comdat_group_list
13283         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
13284         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
13285         created from symtab_alias_ultimate_target
13286         (inline symtab_node *next_defined_symbol (void)): created from
13287         symtab_next_defined_symbol
13288         (bool resolve_alias (symtab_node *target)): created from
13289         symtab_resolve_alias
13290         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
13291         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
13292         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
13293         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
13294         (void set_section (const char *section)): created from set_section_1 
13295         (enum availability get_availability (void)): created from symtab_node_availability
13296         (void make_decl_local (void)): created from symtab_make_decl_local
13297         (bool real_symbol_p (void)): created from symtab_read_node
13298         (can_be_discarded_p (void)): created from symtab_can_be_discarded
13299         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
13300         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
13301         symtab_in_same_comdat_p;
13302         (bool address_taken_from_non_vtable_p (void)): created from
13303         address_taken_from_non_vtable_p
13304         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
13305         (static void dump_table (FILE *)): created from dump_symtab
13306         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
13307         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
13308         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
13309         symtab_used_from_object_file_p 
13310         (void dump_base (FILE *)): created from dump_symtab_base
13311         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
13312         (void unregister (void)): created from symtab_unregister_node
13313         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
13314         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
13315         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
13316         symtab_nonoverwritable_alias_1
13317         * cgraph.h (cgraph_node):
13318         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
13319         created from cgraph_remove_node_and_inline_clones
13320         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
13321         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
13322         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
13323         (cgraph_node *function_symbol (enum availability *avail = NULL)):
13324         created from cgraph_function_node
13325         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
13326         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
13327         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
13328         created from cgraph_create_clone 
13329         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
13330         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
13331         created from cgraph_create_virtual_clone
13332         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
13333         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
13334         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
13335         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
13336         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
13337         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
13338         created from cgraph_function_version_info
13339         (struct cgraph_function_version_info *insert_new_function_version (void)):
13340         created from insert_new_cgraph_node_version
13341         (struct cgraph_function_version_info *function_version (void)): created from
13342         get_cgraph_node_version
13343         (void analyze (void)): created from analyze_function
13344         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
13345         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
13346         tree real_alias) cgraph_add_thunk
13347         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
13348         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
13349         created from cgraph_function_or_thunk_node
13350         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
13351         created from expand_thunk
13352         (void reset (void)): created from cgraph_reset_node
13353         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
13354         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
13355         (void remove (void)): created from cgraph_remove_node
13356         (void dump (FILE *f)): created from dump_cgraph_node
13357         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
13358         (bool get_body (void)): created from cgraph_get_body
13359         (void release_body (void)): created from cgraph_release_function_body
13360         (void unnest (void)): created from cgraph_unnest_node
13361         (void make_local (void)): created from cgraph_make_node_local
13362         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
13363         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
13364         gcov_type count, int freq)): created from cgraph_create_edge
13365         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
13366         gcov_type count, int freq)): created from cgraph_create_indirect_edge
13367         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
13368         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
13369         created from cgraph_create_edge_including_clones
13370         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
13371         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
13372         (void remove_callers (void)): created from cgraph_node_remove_callers
13373         (void remove_callees (void)): created from cgraph_node_remove_callees
13374         (enum availability get_availability (void)): created from cgraph_function_body_availability
13375         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
13376         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
13377         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
13378         (void call_duplication_hooks (cgraph_node *node2)): created from
13379         cgraph_call_node_duplication_hooks
13380         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
13381         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
13382         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
13383         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
13384         (void call_function_insertion_hooks (void)):
13385         created from cgraph_call_function_insertion_hooks
13386         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
13387         (bool local_p (void)): created from cgraph_local_node
13388         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
13389         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
13390         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
13391         (inline bool only_called_directly_or_aliased_p (void)):
13392         created from cgraph_only_called_directly_or_aliased_p
13393         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
13394         created from cgraph_will_be_removed_from_program_if_no_direct_calls
13395         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
13396         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
13397         (bool can_remove_if_no_direct_calls_p (void)):
13398         created from cgraph_can_remove_if_no_direct_calls_p
13399         (inline bool has_gimple_body_p (void)):
13400         created from cgraph_function_with_gimple_body_p
13401         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
13402         (static void dump_cgraph (FILE *f)): created from dump_cgraph
13403         (static inline void debug_cgraph (void)): created from debug_cgraph
13404         (static void record_function_versions (tree decl1, tree decl2)):
13405         created from record_function_versions
13406         (static void delete_function_version (tree decl)):
13407         created from delete_function_version
13408         (static void add_new_function (tree fndecl, bool lowered)):
13409         created from cgraph_add_new_function
13410         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
13411         (static cgraph_node * create (tree decl)): created from cgraph_create_node
13412         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
13413         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
13414         (static cgraph_node *get_for_asmname (tree asmname)):
13415         created from cgraph_node_for_asm
13416         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
13417         created from cgraph_same_body_alias 
13418         (static bool used_from_object_file_p_worker (cgraph_node *node,
13419         void *): new function
13420         (static bool non_local_p (cgraph_node *node, void *)):
13421         created from cgraph_non_local_node_p_1
13422         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
13423         created from verify_cgraph
13424         (static bool make_local (cgraph_node *node, void *)):
13425         created from cgraph_make_node_local
13426         (static cgraph_node *create_alias (tree alias, tree target)):
13427         created from cgraph_create_function_alias
13428         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
13429         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
13430         created from cgraph_create_edge_1
13431         * cgraph.h (varpool_node):
13432         (void remove (void)): created from varpool_remove_node
13433         (void dump (FILE *f)): created from dump_varpool_node
13434
13435 2014-07-24  Richard Biener  <rguenther@suse.de>
13436
13437         PR ipa/61823
13438         * tree-ssa-structalias.c (create_variable_info_for_1):
13439         Use varpool_get_constructor.
13440         (create_variable_info_for): Likewise.
13441
13442 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13443
13444         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
13445         subtract outgoing area size when restoring stack_pointer_rtx.
13446
13447 2014-07-24  Nick Clifton  <nickc@redhat.com>
13448
13449         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
13450         that operations are taking place in parallel.
13451         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
13452
13453 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
13454
13455         * omp-low.c (extract_omp_for_data): Add missing break statement.
13456
13457 2014-07-24  Richard Biener  <rguenther@suse.de>
13458
13459         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
13460         * tree-inline.c (estimate_move_cost): Add speed_p parameter
13461         and adjust MOVE_RATIO query accordingly.
13462         (estimate_num_insns): Adjust callers.
13463         * ipa-prop.c (ipa_populate_param_decls): Likewise.
13464         * ipa-cp.c (gather_context_independent_values,
13465         estimate_local_effects): Likewise.
13466         * ipa-split.c (consider_split): Likewise.
13467
13468 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
13469
13470         * config/i386/driver-i386.c: Remove names of unused arguments and
13471         unnecessary unused attributes.
13472         * config/i386/host-mingw32.c: Likewise.
13473         * config/i386/i386.c: Likewise.
13474         * config/i386/winnt-stubs.c: Likewise.
13475         * config/i386/winnt.c: Likewise.
13476
13477 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13478
13479         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
13480         (aarch64_gen_loadwb_pair): New helper function.
13481         (aarch64_expand_epilogue): Simplify code using new helper functions.
13482         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
13483
13484 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13485
13486         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
13487         (aarch64_gen_storewb_pair): New helper function.
13488         (aarch64_expand_prologue): Simplify code using new helper functions.
13489         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
13490
13491 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13492
13493         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
13494         Rename to aarch64_save_callee_saves, remove restore code.
13495         (aarch64_restore_callee_saves): New function.
13496
13497 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13498
13499         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
13500         (aarch64_save_callee_saves): New function to handle reg save
13501         for both core and vectore regs.
13502
13503 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13504
13505         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
13506         (aarch64_gen_store_pair): New helper function.
13507         (aarch64_save_or_restore_callee_save_registers)
13508         (aarch64_save_or_restore_fprs): Use new helper functions.
13509
13510 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13511
13512         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
13513         (aarch64_save_or_restore_callee_save_registers)
13514         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
13515
13516 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13517
13518         * config/aarch64/aarch64.c
13519         (aarch64_save_or_restore_callee_save_registers)
13520         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
13521
13522 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13523
13524         * config/aarch64/aarch64.c
13525         (aarch64_save_or_restore_callee_save_registers)
13526         (aarch64_save_or_restore_fprs): Remove 'increment'.
13527
13528 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13529
13530         * config/aarch64/aarch64.c
13531         (aarch64_save_or_restore_callee_save_registers)
13532         (aarch64_save_or_restore_fprs): Use register offset in
13533         cfun->machine->frame.reg_offset.
13534
13535 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13536
13537         * config/aarch64/aarch64.c
13538         (aarch64_save_or_restore_callee_save_registers)
13539         (aarch64_save_or_restore_fprs): Remove base_rtx.
13540
13541 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13542
13543         * config/aarch64/aarch64.c
13544         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
13545         to 'start_offset'.  Remove local variable 'start_offset'.
13546
13547 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13548
13549         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
13550         type to HOST_WIDE_INT.
13551
13552 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13553
13554         * config/aarch64/aarch64.c (aarch64_expand_prologue)
13555         (aarch64_save_or_restore_fprs)
13556         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
13557
13558 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13559
13560         * config/arm/t-rtems-eabi: Add
13561         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
13562         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
13563         mbig-endian/mthumb/march=armv7-r, and
13564         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
13565         multilibs.
13566
13567 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13568             Chris Johns <chrisj@rtems.org>
13569             Joel Sherrill <joel.sherrill@oarcorp.com>
13570
13571         * config.gcc: Add nios2-*-rtems*.
13572         * config/nios2/rtems.h: New file.
13573         * gcc/config/nios2/t-rtems: New file.
13574
13575 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
13576
13577         PR target/61396
13578         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
13579         constant numbers, not general constants.
13580         (rs6000_expand_vector_init): Ditto.
13581
13582 2014-07-23  Nathan Sidwell  <nathan@acm.org>
13583
13584         * gcov-tool.c (gcov_list): Declare here.
13585         (set_gcov_list): Remove.
13586         (gcov_output_files): Set gcov_list directly.
13587
13588 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
13589
13590         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
13591
13592 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13593
13594         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
13595         callee-saved registers are available for padding purpose
13596         and r3 is not mandatory, then prefer use those callee-saved
13597         instead of r3.
13598
13599 2014-07-23  Richard Biener  <rguenther@suse.de>
13600
13601         * params.def (PARAM_MAX_COMBINE_INSNS): New.
13602         * combine.c: Include statistics.h and params.h.
13603         (combine_instructions): Guard three and four insn combines
13604         with max-combine-insns value.  Record statistics for combines
13605         performed.
13606         * doc/invoke.texi (max-combine-insns): Document new param.
13607
13608 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
13609
13610         * graphite-isl-ast-to-gimple.c:
13611         (translate_isl_ast_node_block): New function.
13612         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13613
13614         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13615         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13616
13617 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
13618
13619         * graphite-isl-ast-to-gimple.c:
13620         (get_max_schedule_dimensions): New function.
13621         (extend_schedule): Likewise.
13622         (generate_isl_schedule): Add calling of extend_schedule and
13623         get_max_schedule_dimensions.
13624
13625 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13626
13627         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13628         (case UNSPEC): Handle UNSPEC_RBIT.
13629
13630 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13631
13632         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13633         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13634
13635 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13636
13637         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13638
13639 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
13640
13641         * graphite-isl-ast-to-gimple.c:
13642         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13643         (ivs_params_clear):
13644         (build_iv_mapping): New function.
13645         (translate_isl_ast_node_user): Likewise.
13646         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13647
13648         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13649         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13650         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13651
13652 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
13653
13654         PR target/55701
13655         * config/arm/arm.md (setmem): New pattern.
13656         * config/arm/arm-protos.h (struct tune_params): New fields.
13657         (arm_gen_setmem): New prototype.
13658         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13659         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13660         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13661         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13662         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13663         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13664         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13665         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13666         (arm_const_inline_cost): New function.
13667         (arm_block_set_max_insns): New function.
13668         (arm_block_set_non_vect_profit_p): New function.
13669         (arm_block_set_vect_profit_p): New function.
13670         (arm_block_set_unaligned_vect): New function.
13671         (arm_block_set_aligned_vect): New function.
13672         (arm_block_set_unaligned_non_vect): New function.
13673         (arm_block_set_aligned_non_vect): New function.
13674         (arm_block_set_vect, arm_gen_setmem): New functions.
13675
13676 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
13677
13678         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13679
13680 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
13681
13682         PR target/61855
13683         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13684         out of #ifdef __OPTIMIZE__.
13685
13686 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
13687
13688         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13689         different trapping status if -fnon-call-exceptions is enabled.
13690
13691 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
13692
13693         * expr.c (store_field): Handle VOIDmode for calls that return values
13694         in multiple locations.
13695
13696 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13697
13698         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
13699         (altivec_vsldoi_<mode>): Likewise.
13700
13701 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
13702
13703         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13704         to the number of characters in the line.
13705
13706 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
13707
13708         * graphite-isl-ast-to-gimple.c: Add using of
13709         build_nonstandard_integer_type instead of int128_integer_type_node.
13710
13711 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
13712
13713         * toplev.c (output_stack_usage): Adjust the location of the warning.
13714
13715 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
13716
13717         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13718         (*membar_storeload): Disable for LEON3.
13719
13720 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13721
13722         PR rtl-optimization/61461
13723         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13724
13725 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
13726
13727         PR target/61794
13728         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13729         Fix instruction constraint.
13730         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13731
13732 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
13733
13734         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13735
13736 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
13737
13738         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13739         GNU coding standards.
13740         (nds32_register_move_cost): Likewise.
13741         (nds32_memory_move_cost): Likewise.
13742         (nds32_address_cost): Likewise.
13743
13744 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13745
13746         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13747
13748 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
13749
13750         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13751         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13752         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13753         (HAVE_sync_compare_and_swapqi): Define.
13754         (HAVE_sync_compare_and_swaphi): Likewise.
13755         (HAVE_sync_compare_and_swapsi): Likewise.
13756
13757 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
13758
13759         * config/mips/p5600.md: Add missing cpu tests.
13760
13761 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13762
13763         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13764         (vmla_f64): Likewise.
13765         (vfms_f64): Likewise.
13766         (vmls_f64): Likewise.
13767
13768 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13769
13770         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13771         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13772
13773 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13774
13775         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13776         (vmlal_high_lane_s32): Likewise.
13777         (vmlal_high_lane_u16): Likewise.
13778         (vmlal_high_lane_u32): Likewise.
13779         (vmlsl_high_lane_s16): Likewise.
13780         (vmlsl_high_lane_s32): Likewise.
13781         (vmlsl_high_lane_u16): Likewise.
13782         (vmlsl_high_lane_u32): Likewise.
13783
13784 2014-07-17  Terry Guo  <terry.guo@arm.com>
13785
13786         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13787         (alus_reg): Renamed to alus_sreg.
13788         * config/arm/arm-fixed.md: Change type of non-dsp instructions
13789         from alu_reg to alu_sreg.  Change type of dsp instructions from
13790         alu_reg to alu_dsp_reg.
13791         * config/arm/thumb1.md: Likewise.
13792         * config/arm/thumb2.md: Likewise.
13793         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13794         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13795         with alu_sreg and alus_sreg.
13796         * config/arm/arm1026ejs.md (alu_op): Likewise.
13797         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13798         * config/arm/arm926ejs.md (9_alu_op): Likewise.
13799         * config/arm/fa526.md (526_alu_op): Likewise.
13800         * config/arm/fa606te.md (606te_alu_op): Likewise.
13801         * config/arm/fa626te.md (626te_alu_op): Likewise.
13802         * config/arm/fa726te.md (726te_alu_op): Likewise.
13803         * config/arm/fmp626.md (mp626_alu_op): Likewise.
13804         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13805         alu_sreg, alu_dsp_reg and alus_sreg.
13806         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13807         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13808         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13809         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13810         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13811         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13812         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13813         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13814         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13815         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13816         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13817         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13818         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13819         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13820         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13821         alus_reg to alus_sreg.
13822
13823 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
13824
13825         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13826         infinity format.
13827
13828 2014-07-17  Richard Biener  <rguenther@suse.de>
13829
13830         PR rtl-optimization/61801
13831         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13832         don't set reg_pending_barrier if it appears in a debug-insn.
13833
13834 2014-07-16  DJ Delorie  <dj@redhat.com>
13835
13836         * config/rx/rx.c (rx_option_override): Fix alignment values.
13837         (rx_align_for_label): Likewise.
13838
13839 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
13840
13841         PR target/61737.
13842         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13843         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13844         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13845         functions.
13846         (cris_print_index, cris_print_operand, cris_constant_index_p)
13847         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13848         (cris_address_cost): Ditto last CONSTANT_P.
13849         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
13850         callers changed.  Yield cris_offsettable_symbol for non-PIC
13851         constant symbolic expressions including labels.  Yield cris_unspec
13852         for all unspecs.
13853         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
13854         target to pic_offset_table_rtx for calls that will likely go
13855         through PLT, const0_rtx when they can't.  All callers changed.
13856         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13857         symbolic expressions to be PICified.  Remove second, redundant,
13858         assert on can_create_pseudo_p returning non-zero.  Use
13859         replace_equiv_address_nv, not replace_equiv_address, for final
13860         operand update.
13861         * config/cris/cris.md ("movsi"): Move variable t to pattern
13862         toplevel. Adjust assert for new cris_symbol_type member.  Use
13863         CONSTANT_P instead of CONSTANT_ADDRESS_P.
13864         ("*movsi_internal") <case 9>: Make check for valid unspec operands
13865         for lapc stricter.
13866         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13867         ("call", "call_value"): Use second incoming operand as a marker
13868         for pic-offset-table-register being used.
13869         ("*expanded_call_non_v32", "*expanded_call_v32")
13870         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13871         second incoming operand to CALL, match cris_call_type_marker.
13872         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
13873         ("*expanded_call_side"): Ditto.  Fix typo in comment.
13874         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13875         CONSTANT_P.
13876         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13877         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13878         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
13879         users changed.  Add members cris_offsettable_symbol and cris_unspec.
13880         (cris_symbol_type): Rename from cris_pic_symbol_type.
13881         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13882         just CONSTANT_P.
13883         * config/cris/cris-protos.h (cris_symbol_type_of,
13884         cris_expand_pic_call_address): Adjust prototypes.
13885         (cris_legitimate_constant_p): New prototype.
13886
13887         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13888         an existing tmake_file.  Don't add t-slibgcc and t-linux.
13889
13890 2014-07-17  Jason Merrill  <jason@redhat.com>
13891
13892         PR c++/61623
13893         * symtab.c (symtab_remove_from_same_comdat_group): Also
13894         set_comdat_group to NULL_TREE.
13895         (verify_symtab): Fix diagnostic.
13896
13897 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
13898
13899         PR target/61662
13900         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13901
13902 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
13903
13904         Support location tracking for built-in macro tokens
13905         * input.h (is_location_from_builtin_token): New function declaration.
13906         * input.c (is_location_from_builtin_token): New function definition.
13907         * toplev.c (general_init): Tell libcpp what the pre-defined
13908         spelling location for built-in tokens is.
13909
13910 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
13911
13912         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13913         on the FUNCTION_DECL.
13914
13915 2014-07-16  Richard Biener  <rguenther@suse.de>
13916
13917         PR other/61782
13918         * doc/extend.texi (always_inline): Clarify.
13919
13920 2014-07-15  Eric Christopher  <echristo@gmail.com>
13921
13922         * doc/invoke.texi (Link Options): Document -z option.
13923
13924 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
13925
13926         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13927         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13928
13929 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
13930
13931         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13932
13933 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
13934
13935         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13936         varpool_assemble_decl.
13937         * varpool.c (varpool_assemble_decl): Assert that node->definition is
13938         true.
13939
13940 2014-07-15  Michael Matz  <matz@suse.de>
13941
13942         PR rtl-optimization/61772
13943         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13944
13945 2014-07-15  Richard Biener  <rguenther@suse.de>
13946
13947         * opts.c (default_options_table): Disable bit-ccp at -Og.
13948
13949 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13950
13951         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13952
13953 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13954
13955         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13956         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13957         call langhook for unknown declaration.
13958         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13959         * tree.h (DECL_ARGUMENTS): Update.
13960         * print-tree.c (print_node): Update.
13961         * tree-core.h (tree_decl_non_common): Remove arguments.
13962         (tree_function_decl): Add arguments.
13963
13964 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
13965
13966         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13967
13968 2014-07-14  Richard Biener  <rguenther@suse.de>
13969
13970         PR tree-optimization/61779
13971         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13972         simplifying a condition.
13973
13974 2014-07-14  Richard Biener  <rguenther@suse.de>
13975
13976         * builtins.c (c_strlen): Make only_value == 2 really only
13977         affect warning generation.
13978
13979 2014-07-14  Richard Biener  <rguenther@suse.de>
13980
13981         PR tree-optimization/61757
13982         PR tree-optimization/61783
13983         PR tree-optimization/61787
13984         * tree-ssa-dom.c (record_equality): Revert canonicalization
13985         change and add comment.
13986         (propagate_rhs_into_lhs): Revert previous fix, removing
13987         loop depth restriction again.
13988
13989 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13990
13991         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13992         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13993         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13994         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13995         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13996         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13997         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13998
13999 2014-07-14  Richard Biener  <rguenther@suse.de>
14000
14001         * cgraph.h (decl_in_symtab_p): Make inline.
14002
14003 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
14004
14005         PR middle-end/61294
14006         * doc/invoke.texi (-Wmemset-transposed-args): Document.
14007
14008         PR target/61656
14009         * config/i386/i386.c (classify_argument): Don't merge classes above
14010         number of words.
14011
14012 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
14013
14014         * cgraph.h (symtab_node): Add nonzero_address.
14015         (decl_in_symtab_p): Break out from ...
14016         (symtab_get_node): ... here.
14017         * fold-const.c: Include cgraph.h
14018         (tree_single_nonzero_warnv_p): Use symtab to determine
14019         if symbol is non-zero.
14020         * symtab.c (symtab_node::nonzero_address): New method.
14021
14022 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14023
14024         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
14025         forgotten in previous commit.
14026
14027 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14028
14029         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
14030         on builtin types.
14031         * ipa-devirt.c: Include stor-layout.h and intl.h
14032         (odr_subtypes_equivalent_p): New function.
14033         (warn_odr): New function.
14034         (warn_type_mismatch): New function.
14035         (odr_types_equivalent_p): New function.
14036         (add_type_duplicate): Use it.
14037         * common.opt (Wodr): New flag.
14038         * doc/invoke.texi (Wodr): Document new warning.
14039
14040 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14041
14042         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
14043         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
14044         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
14045         (varpool_get_constructor): Push CTORS_IN timevar.
14046         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
14047
14048 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
14049
14050         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
14051         Remove VOID_FTYPE_PUSHORT.
14052         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
14053         Change code to USHORT_FTYPE_VOID.
14054         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
14055         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
14056         (ix86_atomic_assign_expand_fenv): Update for
14057         __builtin_ia32_fnstsw changes.
14058         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
14059         (fnstsw): Change operand 0 to nonimmediate operand.
14060
14061 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14062
14063         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
14064         (varpool_get_constructor): New function.
14065         (varpool_ctor_useable_for_folding_p): Break out from ...
14066         (ctor_for_folding): ... here; use varpool_get_constructor.
14067         (varpool_assemble_decl): Likewise.
14068         * lto-streamer.h (struct output_block): Turn cgraph_node
14069         to symbol filed.
14070         (lto_input_variable_constructor): Declare.
14071         * ipa-visibility.c (function_and_variable_visibility): Use
14072         varpool_get_constructor.
14073         * cgraph.h (varpool_get_constructor): Declare.
14074         (varpool_ctor_useable_for_folding_p): New function.
14075         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
14076         parameter; return error_mark_node for non-trivial constructors.
14077         (lto_write_tree_1, DFS_write_tree): Update use of
14078         get_symbol_initial_value.
14079         (output_function): Update initialization of symbol.
14080         (output_constructor): New function.
14081         (copy_function): Rename to ..
14082         (copy_function_or_variable): ... this one; handle vars too.
14083         (lto_output): Output variable sections.
14084         * lto-streamer-in.c (input_constructor): New function.
14085         (lto_read_body): Rename from ...
14086         (lto_read_body_or_constructor): ... this one; handle vars too.
14087         (lto_input_variable_constructor): New function.
14088         * ipa-prop.c (ipa_prop_write_jump_functions,
14089         ipa_prop_write_all_agg_replacement): Update.
14090         * lto-cgraph.c (compute_ltrans_boundary): Use it.
14091         (output_cgraph_opt_summary): Set symbol to NULL.
14092
14093 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14094
14095         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
14096         non-polymorphic types.
14097         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
14098         * ipa-devirt.c (types_same_for_odr): Do not explode when one
14099         of types is not polymorphic.
14100
14101 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
14102
14103         * lra-constraints.c (remove_inheritance_pseudos): Process
14104         destination pseudo too.
14105
14106 2014-07-11  Rong Xu  <xur@google.com>
14107
14108         * gcov-tool.c (gcov_output_files): Fix build error introduced in
14109         commit r212448.
14110
14111 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
14112
14113         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
14114         * config/avr/avr-devices.c (AVR_MCU): Same.
14115         (avr_mcu_types): add text start value to end of device list.
14116         * config/avr/avr-mcus.def: Add text section start for all devices.
14117         (ata5782): Add new avr5 device.
14118         (ata5831): Same.
14119         * config/avr/avr-tables.opt: Regenerate.
14120         * config/avr/avr.h: Add declaration for text section start handler.
14121         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
14122         SPEC functions.
14123         (LINK_SPEC): Include text section start handler to linker spec.
14124         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
14125         pass -Ttext option to linker if the text section start for the device
14126         is not zero.
14127         * config/avr/t-multilib: Regenerate.
14128         * doc/avr-mmcu.texi: Regenerate.
14129
14130 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
14131
14132         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
14133         * config/rs6000/aix52.h (LINK_SPEC): Same.
14134         * config/rs6000/aix53.h (LINK_SPEC): Same.
14135         * config/rs6000/aix61.h (LINK_SPEC): Same.
14136         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
14137
14138 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
14139
14140         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
14141         (graphite_verify): New function.
14142         (ivs_params_clear): New function.
14143         (gcc_expression_from_isl_ast_expr_id): New function.
14144         (gcc_expression_from_isl_expr_int): New function.
14145         (binary_op_to_tree): New function.
14146         (ternary_op_to_tree): New function.
14147         (unary_op_to_tree): New function.
14148         (nary_op_to_tree): New function.
14149         (gcc_expression_from_isl_expr_op): New function.
14150         (gcc_expression_from_isl_expression): New function.
14151         (graphite_create_new_loop): New function.
14152         (translate_isl_ast_for_loop): New function.
14153         (get_upper_bound): New function.
14154         (graphite_create_new_loop_guard): New function.
14155         (translate_isl_ast_node_for): New function.
14156         (translate_isl_ast): New function.
14157         (add_parameters_to_ivs_params): New function.
14158         (scop_to_isl_ast): New parameter ip.
14159         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
14160
14161 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14162
14163         * config/xtensa/predicates.md (call expander): Update for
14164         DECL_SECTION_NAME being string.
14165
14166 2014-07-11  Richard Biener  <rguenther@suse.de>
14167
14168         PR middle-end/61473
14169         * builtins.c (fold_builtin_memory_op): Inline memory moves that
14170         can be implemented with a single load followed by a single store.
14171         (c_strlen): Only warn when only_value is not 2.
14172
14173 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
14174
14175         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
14176
14177 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
14178
14179         PR target/61561
14180         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
14181         (*movhi_bytes): Likewise.
14182         (*arm_movqi_insn): Likewise.
14183
14184 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
14185
14186         PR target/56858
14187         * config/alpha/alpha.c: Include tree-pass.h, context.h
14188         and pass_manager.h.
14189         (pass_data_handle_trap_shadows): New pass.
14190         (pass_handle_trap_shadows::gate): New pass gate function.
14191         (make_pass_handle_trap_shadows): New function.
14192         (rest_of_handle_trap_shadows): Ditto.
14193
14194         (alpha_align_insns_1): Rename from alpha_align_insns.
14195         (pass_data_align_insns): New pass.
14196         (pass_align_insns::gate): New pass gate function.
14197         (make_pass_aling_insns): New function.
14198         (rest_of_align_insns): Ditto.
14199         (alpha_align_insns): Ditto.
14200
14201         (alpha_option_override): Declare handle_trap_shadows info
14202         and align_insns_info.  Register handle_trap_shadows and align_insns
14203         passes here.
14204         (alpha_reorg): Do not call alpha_trap_shadows and
14205         alpha_align_insn from here.
14206
14207         (alpha_pad_function_end): Do not skip BARRIERs.
14208
14209 2014-07-10  Rong Xu  <xur@google.com>
14210
14211         Add gcov-tool: an offline gcda profile processing tool support.
14212         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
14213         (gcov_is_error): Ditto.
14214         (gcov_read_string): Ditto.
14215         (gcov_read_sync): Ditto.
14216         * gcov-io.h: Move counter defines to gcov-counter.def.
14217         * gcov-dump.c (tag_counters): Use gcov-counter.def.
14218         * coverage.c: Ditto.
14219         * gcov-tool.c: Offline gcda profile processing tool.
14220         (unlink_gcda_file): Remove one gcda file.
14221         (unlink_profile_dir): Remove gcda files from the profile path.
14222         (gcov_output_files): Output gcda files to an output dir.
14223         (profile_merge): Merge two profiles in directory.
14224         (print_merge_usage_message): Print merge usage.
14225         (merge_usage): Print merge usage and exit.
14226         (do_merge): Driver for profile merge sub-command.
14227         (profile_rewrite): Rewrite profile.
14228         (print_rewrite_usage_message): Print rewrite usage.
14229         (rewrite_usage): Print rewrite usage and exit.
14230         (do_rewrite): Driver for profile rewrite sub-command.
14231         (print_usage): Print gcov-info usage and exit.
14232         (print_version): Print gcov-info version.
14233         (process_args): Process arguments.
14234         (main): Main routine for gcov-tool.
14235         * Makefile.in: Build and install gcov-tool.
14236         * gcov-counter.def: New file split from gcov-io.h.
14237         * doc/gcc.texi: Include gcov-tool.texi.
14238         * doc/gcov-tool.texi: Document for gcov-tool.
14239
14240 2014-07-10  Richard Biener  <rguenther@suse.de>
14241
14242         PR tree-optimization/61757
14243         * tree-ssa-dom.c (loop_depth_of_name): Restore.
14244         (propagate_rhs_into_lhs): Revert part of last change.
14245
14246 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
14247
14248         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
14249         FUNCTION_DECLs.
14250
14251 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
14252
14253         PR middle-end/53590
14254         * function.c (allocate_struct_function): Revert r188667 change.
14255
14256         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
14257
14258 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
14259
14260         * doc/install.texi: Remove links to defunct package providers for
14261         Solaris.
14262
14263 2014-07-09  Tom de Vries  <tom@codesourcery.com>
14264
14265         * final.c (get_call_fndecl): Declare.
14266         (self_recursive_call_p): New function.
14267         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
14268
14269 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14270
14271         * ipa-devirt.c (record_node): Walk through aliases.
14272
14273 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14274
14275         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
14276
14277 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14278
14279         Revert:
14280         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14281
14282 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14283
14284         * ipa-visibility.c (function_and_variable_visibility): Remove
14285         temporary hack disabling local aliases on AIX.
14286
14287 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14288
14289         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
14290         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
14291
14292 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14293
14294         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
14295         * rs6000/rs6000.c: Inline output of .set instruction.
14296         (declare_alias_data): New struct.
14297         (rs6000_declare_alias): New function.
14298         (rs6000_xcoff_declare_function_name): Use it.
14299         (rs6000_xcoff_declare_object_name): New function.
14300         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
14301         (ASM_OUTPUT_DEF): Turn to empty definition.
14302
14303 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14304
14305         PR bootstrap/61679
14306         * hash-table.h: use hash_table::value_type instead of
14307         Descriptor::value_type in the return types of several methods.
14308
14309 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14310
14311         * tree-pass.h (pass_data): Remove has_execute member.
14312         * passes.c (execute_one_pass): Don't check pass->has_execute.
14313         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
14314         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
14315         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
14316         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
14317         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
14318         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
14319         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
14320         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
14321         gimple-low.c, gimple-ssa-isolate-paths.c,
14322         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
14323         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
14324         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
14325         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
14326         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
14327         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
14328         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
14329         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
14330         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
14331         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
14332         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
14333         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14334         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14335         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14336         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14337         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
14338         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
14339         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14340         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14341         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
14342         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
14343         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
14344         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
14345         web.c: Remove initializer for pass_data::has_execute.
14346
14347 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14348
14349         * graphite-htab.h: Use hash_map instead of hash_table.
14350         * graphite-clast-to-gimple.c: Adjust.
14351         * passes.c: Use hash_map instead of hash_table.
14352         * sese.c: Likewise.
14353         * sese.h: Remove now unused code.
14354
14355 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
14356
14357         PR target/61599
14358         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
14359         than zero.
14360
14361 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
14362
14363         PR rtl-optimization/61673
14364         * combine.c (simplify_comparison): Test just mode's sign bit
14365         in tmode rather than the sign bit and any bits above it.
14366
14367 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
14368
14369         * graphite-isl-ast-to-gimple.c (generate_isl_context):
14370         Add __isl_give to the declaration.
14371         (generate_isl_schedule): Likewise.
14372         (scop_to_isl_ast): Likewise.
14373
14374 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14375
14376         * config/arm/arm.c (cortexa5_extra_costs): New table.
14377         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
14378
14379 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
14380
14381         PR tree-optimization/61725
14382         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
14383         range, use range_includes_zerop_p instead of integer_zerop on
14384         vr0->min, only use log2 of max if min is not negative.
14385
14386 2014-07-08  Richard Biener  <rguenther@suse.de>
14387
14388         * tree-ssa-dom.h (loop_depth_of_name): Remove.
14389         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
14390         restriction on loop depth difference.
14391         (record_equality): Likewise.
14392         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
14393         (loop_depth_of_name): Remove.
14394         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
14395         restriction on loop depth difference.
14396         (init_copy_prop): Likewise.
14397
14398 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14399
14400         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
14401         parameter.
14402         (walk_aliased_vdefs): Likewise.
14403         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
14404         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
14405         (detect_type_change_from_memory_writes): Check if entry was reached.
14406
14407 2014-07-08  Richard Biener  <rguenther@suse.de>
14408
14409         PR tree-optimization/61681
14410         * tree-ssa-structalias.c (find_what_var_points_to): Expand
14411         NONLOCAL inside ESCAPED.
14412
14413 2014-07-08  Richard Biener  <rguenther@suse.de>
14414
14415         PR tree-optimization/61680
14416         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14417         Handle properly all read-write dependences with group accesses.
14418
14419 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
14420
14421         PR tree-optimization/61576
14422         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
14423         block containing reduction statement is predecessor of phi basi block.
14424
14425 2014-07-08  Marek Polacek  <polacek@redhat.com>
14426
14427         PR c/60226
14428         * fold-const.c (round_up_loc): Change the parameter type.
14429         Remove assert.
14430         * fold-const.h (round_up_loc): Adjust declaration.
14431         * stor-layout.c (finalize_record_size): Check for too large types.
14432
14433 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
14434
14435         * symtab.c: Include calls.h.
14436         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
14437
14438 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
14439
14440         * config/rs6000/rs6000.c (output_vec_const_move): Handle
14441         little-endian code generation.
14442         * config/rs6000/spe.md (spe_evmergehi): Rename to...
14443         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
14444         (spe_evmergehilo): Rename to...
14445         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
14446         (spe_evmergelo): Rename to...
14447         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
14448         (spe_evmergelohi): Rename to...
14449         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
14450         (spe_evmergehi, spe_evmergehilo): New expanders.
14451         (spe_evmergelo, spe_evmergelohi): Likewise.
14452         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
14453         (*frob_tf_ti): Likewise.
14454         (*frob_<mode>_di_2): Likewise.
14455         (*frob_tf_di_8_2): Likewise.
14456         (*frob_di_<mode>): Likewise.
14457         (*frob_ti_tf): Likewise.
14458         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
14459         (*frob_ti_<mode>_8_2): Likewise.
14460         (*frob_ti_tf_2): Likewise.
14461         (mov_si<mode>_e500_subreg0): Rename to...
14462         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
14463         endianness only.
14464         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
14465         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
14466         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
14467         the big endianness only.
14468         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
14469         (*mov_si<mode>_e500_subreg0_2): Rename to...
14470         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
14471         big big endianness only.
14472         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
14473         (*mov_si<mode>_e500_subreg4): Rename to...
14474         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
14475         endianness only.
14476         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
14477         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
14478         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
14479         the big endianness only.
14480         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
14481         pattern.
14482         (*mov_si<mode>_e500_subreg4_2): Rename to...
14483         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
14484         endianness only.
14485         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
14486         (*mov_sitf_e500_subreg8): Rename to...
14487         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
14488         endianness only.
14489         (*mov_sitf_e500_subreg8_le): New instruction pattern.
14490         (*mov_sitf_e500_subreg8_2): Rename to...
14491         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
14492         endianness only.
14493         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
14494         (*mov_sitf_e500_subreg12): Rename to...
14495         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
14496         endianness only.
14497         (*mov_sitf_e500_subreg12_le): New instruction pattern.
14498         (*mov_sitf_e500_subreg12_2): Rename to...
14499         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
14500         endianness only.
14501         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
14502
14503 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
14504
14505         * asan.c (instrument_strlen_call): Do not instrument first byte
14506         in strlen if already instrumented.
14507
14508 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14509
14510         * config/arm/arm.opt (mwords-little-endian): Delete.
14511         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
14512         of TARGET_LITTLE_WORDS.
14513         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
14514         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
14515         warning.
14516         * doc/invoke.texi: Remove references to -mwords-little-endian.
14517
14518 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
14519
14520         * expmed.c (struct init_expmed_rtl): Change all fields but
14521         pow2 and cint from struct rtx_def to rtx.
14522         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
14523         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
14524         at the end again.
14525
14526 2014-07-06  Marek Polacek  <polacek@redhat.com>
14527
14528         PR c/6940
14529         * doc/invoke.texi: Document -Wsizeof-array-argument.
14530
14531 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14532
14533         * wide-int.h (wide_int_storage): Change declaration from struct
14534         to class.
14535
14536 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
14537
14538         * cgraph.c (cgraph_create_indirect_edge): Update call of
14539         get_polymorphic_call_info.
14540         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
14541         (possible_polymorphic_call_targets): Add parameter call.
14542         (decl_maybe_in_construction_p): New predicate.
14543         (get_polymorphic_call_info): Add parameter call;
14544         use decl_maybe_in_construction_p.
14545         * gimple-fold.c (fold_gimple_assign): Update use of
14546         possible_polymorphic_call_targets.
14547         (gimple_fold_call): Likewise.
14548         * ipa-prop.c: Inlcude calls.h
14549         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
14550         (param_type_may_change_p): New predicate.
14551         (detect_type_change_from_memory_writes): Break out from ...
14552         (detect_type_change): ... this one; use param_type_may_change_p.
14553         (detect_type_change_ssa): Use param_type_may_change_p.
14554         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
14555
14556 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
14557
14558         PR target/49423
14559         * config/arm/arm-protos.h (arm_legitimate_address_p,
14560         arm_is_constant_pool_ref): Add prototypes.
14561         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
14562         (arm_is_constant_pool_ref) New function.
14563         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
14564         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
14565         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
14566         operand. Remove pool_range and neg_pool_range attributes.
14567         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
14568         pool_range and neg_pool_range attributes.
14569         * config/arm/constraints.md (Uh): New constraint.
14570         (Uq): Don't allow constant pool references.
14571
14572 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
14573
14574         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
14575         (move_lo_quad_internal_be_<mode>): Likewise.
14576         (move_lo_quad_<mode>): Convert to define_expand.
14577         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
14578         (aarch64_simd_move_hi_quad_be_<mode>): New.
14579         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
14580         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
14581         (aarch64_combinez_be<mode>): New.
14582         (aarch64_combine<mode>): Convert to define_expand.
14583         (aarch64_combine_internal<mode>): New.
14584         (aarch64_simd_combine<mode>): Remove bogus RTL description.
14585
14586 2014-07-04  Tom de Vries  <tom@codesourcery.com>
14587
14588         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
14589         combination of earlyclobber and read/write modifiers.
14590
14591 2014-07-04  Tom de Vries  <tom@codesourcery.com>
14592
14593         * config/aarch64/aarch64-simd.md
14594         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
14595
14596 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
14597
14598         PR target/61714
14599         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14600
14601 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
14602
14603         PR middle-end/61654
14604         * cgraphunit.c (expand_thunk): Call free_dominance_info.
14605
14606         PR tree-optimization/61684
14607         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14608         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14609
14610 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14611             Kito Cheng  <kito@0xlab.org>
14612             Monk Chiang  <sh.chiang04@gmail.com>
14613
14614         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14615         (nds32_symbol_load_store_p): Move to ...
14616         (nds32_fp_as_gp_check_available): Move to ...
14617         * config/nds32/nds32-fp-as-gp.c: ... here.
14618         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14619         extern declaration.
14620
14621 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14622             Kito Cheng  <kito@0xlab.org>
14623             Monk Chiang  <sh.chiang04@gmail.com>
14624
14625         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14626         (nds32_expand_store_multiple): Move to ...
14627         (nds32_expand_movmemqi): Move to ...
14628         * config/nds32/nds32-memory-manipulation.c: ... here.
14629
14630 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14631             Kito Cheng  <kito@0xlab.org>
14632             Monk Chiang  <sh.chiang04@gmail.com>
14633
14634         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14635         (nds32_output_casesi_pc_relative): Move to ...
14636         (nds32_output_casesi): Move to ...
14637         (nds32_mem_format): Move to ...
14638         (nds32_output_16bit_store): Move to ...
14639         (nds32_output_16bit_load): Move to ...
14640         (nds32_output_32bit_store): Move to ...
14641         (nds32_output_32bit_load): Move to ...
14642         (nds32_output_32bit_load_s): Move to ...
14643         (nds32_output_stack_push): Move to ...
14644         (nds32_output_stack_pop): Move to ...
14645         * config/nds32/nds32-md-auxiliary.c: ... here.
14646
14647 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14648             Ling-Hua Tseng  <uranus@tinlans.org>
14649
14650         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14651         the purpose of this file.
14652
14653 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14654             Kito Cheng  <kito@0xlab.org>
14655             Monk Chiang  <sh.chiang04@gmail.com>
14656
14657         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14658         (nds32_address_cost): Move implementation to ...
14659         * config/nds32/nds32-cost.c: ... here.
14660         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14661         (nds32_address_cost_impl): Declare.
14662
14663 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14664             Kito Cheng  <kito@0xlab.org>
14665             Monk Chiang  <sh.chiang04@gmail.com>
14666
14667         * config/nds32/nds32.c
14668         (nds32_consecutive_registers_load_store_p): Move to ...
14669         (nds32_valid_multiple_load_store): Move to ...
14670         (nds32_valid_stack_push_pop): Move to ...
14671         (nds32_can_use_bclr_p): Move to ...
14672         (nds32_can_use_bset_p): Move to ...
14673         (nds32_can_use_btgl_p): Move to ...
14674         (nds32_can_use_bitci_p): Move to ...
14675         * config/nds32/nds32-predicates.c: ... here.
14676
14677 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14678             Kito Cheng  <kito@0xlab.org>
14679             Monk Chiang  <sh.chiang04@gmail.com>
14680
14681         * config/nds32/nds32.c
14682         (nds32_expand_builtin_null_ftype_reg): Move to ...
14683         (nds32_expand_builtin_reg_ftype_imm): Move to ...
14684         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14685         (nds32_init_builtins): Move implementation to ...
14686         (nds32_expand_builtin): Move implementation to ...
14687         * config/nds32/nds32-intrinsic.c: ... here.
14688         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14689         (nds32_expand_builtin_impl): Declare.
14690
14691 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14692             Kito Cheng  <kito@0xlab.org>
14693             Monk Chiang  <sh.chiang04@gmail.com>
14694
14695         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14696         (nds32_emit_section_tail_template): Move to ...
14697         (nds32_emit_isr_jmptbl_section): Move to ...
14698         (nds32_emit_isr_vector_section): Move to ...
14699         (nds32_emit_isr_reset_conten): Move to ...
14700         (nds32_check_isr_attrs_conflict): Move to ...
14701         (nds32_construct_isr_vectors_information): Move to ...
14702         (nds32_asm_file_start): Move implementation to ...
14703         (nds32_asm_file_end): Move implementation to ...
14704         * config/nds32/nds32-isr.c: ... here.
14705         * config/nds32/nds32-protos.h
14706         (nds32_check_isr_attrs_conflict): Declare.
14707         (nds32_construct_isr_vectors_information): Declare.
14708         (nds32_asm_file_start_for_isr): Declare.
14709         (nds32_asm_file_end_for_isr): Declare.
14710
14711 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14712             Kito Cheng  <kito@0xlab.org>
14713             Monk Chiang  <sh.chiang04@gmail.com>
14714
14715         * config.gcc (nds32*): Add new modules to extra_objs.
14716         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14717         (nds32be-*-*): Likewise.
14718         * config/nds32/nds32-cost.c: New file.
14719         * config/nds32/nds32-fp-as-gp.c: New file.
14720         * config/nds32/nds32-intrinsic.c: New file.
14721         * config/nds32/nds32-isr.c: New file.
14722         * config/nds32/nds32-md-auxiliary.c: New file.
14723         * config/nds32/nds32-memory-manipulation.c: New file.
14724         * config/nds32/nds32-pipelines-auxiliary.c: New file.
14725         * config/nds32/nds32-predicates.c: New file.
14726         * config/nds32/t-nds32: New file.
14727
14728 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14729
14730         PR tree-optimization/61682
14731         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14732         using cases and when one of the operands is equal to 1.
14733
14734 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
14735
14736         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14737         ashr<mode>3): Correct mode of operands[2].
14738         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14739         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14740         Correct mode of operands[2].  Fix split condition.
14741
14742 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
14743
14744         * arm.md (arch): Add armv6_or_vfpv3.
14745         (arch_enabled): Add test for the above.
14746         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14747         on VFP9.
14748         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14749
14750 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14751
14752         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14753         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14754         HWI 1 and negate the unsigned value.
14755         * expmed.c (expand_sdiv_pow2): For modes wider than word always
14756         use AND instead of shift.
14757         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14758
14759 2014-07-03  Marek Polacek  <polacek@redhat.com>
14760
14761         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14762         (-fsanitize=float-divide-by-zero): Move to the table with
14763         -fsanitize=undefined suboptions.
14764         (-fsanitize=float-cast-overflow): Likewise.
14765
14766 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
14767
14768         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14769         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14770         endianness.
14771
14772 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14773
14774         * loop-invariant.c (struct invariant): Add a new member: eqno;
14775         (find_identical_invariants): Update eqno;
14776         (create_new_invariant): Init eqno;
14777         (get_inv_cost): Compute comp_cost with eqno;
14778
14779 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14780
14781         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14782         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14783         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14784         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14785         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14786
14787 2014-07-02  Christian Bruel  <christian.bruel@st.com>
14788
14789         PR target/29349
14790         PR target/53513
14791         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14792         (make_preds_opaque): Delete.
14793         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14794         (commit_mode_sets): New function.
14795         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14796         Process all modes at once.
14797         * basic-block.h (pre_edge_lcm_avs): Declare.
14798         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14799         Call clear_aux_for_edges. Fix comments.
14800         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14801         (pre_edge_rev_lcm): Idem.
14802         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14803         parameter.
14804         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14805         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14806         Idem.
14807         * config/i386/i386.c (x96_emit_mode_set): Idem.
14808         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14809         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
14810         (fpscr_toggle) Disallow from delay slot.
14811         * target.def (emit_mode_set): Add prev_mode parameter.
14812         * doc/tm.texi: Regenerate.
14813
14814 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14815
14816         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14817         variable i.
14818
14819 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14820
14821         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14822         vtable_pointer_value_to_vtable): Constify.
14823         (contains_polymorphic_type_p): Declare.
14824         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14825         vtable_pointer_value_to_vtable): Constify.
14826         (contains_polymorphic_type_p): New predicate.
14827         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14828         polymorphic types.
14829         (ipa_set_ancestor_jf): Likewise.
14830         (detect_type_change): Return false in easy cases.
14831         (compute_complex_assign_jump_func): Require type to contain
14832         polymorphic type.
14833         (compute_known_type_jump_func): Likewise.
14834
14835 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14836
14837         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14838         Remove.
14839         (type_in_anonymous_namespace_p): Constify argument.
14840         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14841         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14842         (main_odr_variant): New function.
14843         (hash_type_name): Make static; update assert; do not ICE on
14844         non-records.
14845         (types_same_for_odr): Bring here from tree.c; simplify and remove
14846         old structural comparing code that doesn't work for templates.
14847         (odr_hasher::equal): Update assert.
14848         (add_type_duplicate): Return true when bases should be computed;
14849         replace incomplete loader by complete; do not output duplicated
14850         warnings; do not ICE on non-records; set odr_violated flag.
14851         (get_odr_type): Be ready to replace incomplete type by complete
14852         one; work on ODR variants instead of main variants; reorder item
14853         in array so bases have still smaller indexes.
14854         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14855         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14856
14857 2014-07-01  Cary Coutant  <ccoutant@google.com>
14858
14859         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14860         lookup.
14861         (resolve_addr_in_expr): When replacing the rtx in a location list
14862         entry, get a new address table entry.
14863         (dwarf2out_finish): Call index_location_lists even if there are no
14864         addr_index_table entries yet.
14865
14866 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14867
14868         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14869         change for not being obvious.
14870
14871 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14872
14873         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14874         unused argument.
14875
14876 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14877
14878         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14879         (vcagt_f64): Likewise.
14880         (vcale_f64): Likewise.
14881         (vcaled_f64): Likewise.
14882         (vcales_f32): Likewise.
14883         (vcalt_f64): Likewise.
14884         (vcaltd_f64): Likewise.
14885         (vcalts_f32): Likewise.
14886
14887 2014-07-01  Marek Polacek  <polacek@redhat.com>
14888
14889         * doc/invoke.texi: Document -Wint-conversion.
14890
14891 2014-07-01  Marek Polacek  <polacek@redhat.com>
14892
14893         PR c/58286
14894         * doc/invoke.texi: Document -Wincompatible-pointer-types.
14895
14896 2014-07-01  Martin Liska  <mliska@suse.cz>
14897
14898         IPA REF alias refactoring
14899         * cgraph.h (iterate_direct_aliases): New function.
14900         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14901         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14902         FOR_EACH_ALIAS added.
14903         (cgraph_for_node_and_aliases): Likewise.
14904         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14905         * ipa-inline.c (reset_edge_caches): Likewise.
14906         (update_caller_keys): Likewise.
14907         * trans-mem.c (ipa_tm_execute): Likewise.
14908         *varpool.c (varpool_analyze_node): Likewise.
14909         (varpool_for_node_and_aliases): Likewise.
14910         * ipa-ref.h (first_alias): New function.
14911         (last_alias): Likewise.
14912         (has_aliases_p): Likewise.
14913         * ipa-ref.c (ipa_ref::remove_reference): Removal function
14914         is sensitive to IPA_REF_ALIASes.
14915         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14916         are put at the beginning of the list.
14917         (symtab_node::iterate_direct_aliases): New function.
14918
14919 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14920
14921         Revert:
14922         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14923         type is complete.
14924         (write_ts_type_common_tree_pointers): Do not stream fields not set
14925         for incomplete types; do not stream duplicated fields for variants;
14926         sanity check that variant and type match.
14927         (write_ts_type_non_common_tree_pointers): Likewise.
14928         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14929         TYPE_SIZE whether type is complete.
14930         (lto_input_ts_type_common_tree_pointers): Do same changes as in
14931         write_ts_type_common_tree_pointers
14932         (lto_input_ts_type_non_common_tree_pointers): Likewise.
14933
14934 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
14935
14936         * var-tracking.c (add_stores): Return instead of asserting if old
14937         and new values for conditional store are the same.
14938
14939 2014-06-30  Richard Henderson  <rth@redhat.com>
14940
14941         PR rtl-opt/61608
14942         PR target/39284
14943         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14944         the cfg if there were any changes.
14945         * passes.def: Revert move of peephole2 after reorder_blocks;
14946         move duplicate_computed_gotos before peephole2.
14947
14948 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
14949
14950         * except.c (emit_note_eh_region_end): New helper function.
14951         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14952         emit EH_REGION_END note.
14953         * jump.c (cleanup_barriers): Do not split a call and its
14954         corresponding CALL_ARG_LOCATION note.
14955
14956 2014-06-30  Jeff Law  <law@redhat.com>
14957
14958         PR tree-optimization/61607
14959         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14960         deeper into the SSA_NAME_VALUE chain.
14961
14962 2014-06-30  Marek Polacek  <polacek@redhat.com>
14963
14964         * convert.c (convert_to_integer): Don't instrument conversions if the
14965         function has no_sanitize_undefined attribute.
14966         * ubsan.c: Don't run the ubsan pass if the function has
14967         no_sanitize_undefined attribute.
14968
14969 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14970
14971         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14972         -fsanitize=undefined suboptions.
14973
14974 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
14975
14976         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14977         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14978         against bigendian and adjust indices.
14979
14980 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14981
14982         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
14983
14984 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14985
14986         PR target/61633
14987         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14988         Add alternative; make early clobber.  Adjust both split patterns
14989         to use operand 0 as the working register.
14990
14991 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14992
14993         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14994         as ira_object_id_map might be NULL, or 1.
14995
14996 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14997
14998         * loop-invariant.c (get_inv_cost): Handle register class.
14999         (gain_for_invariant): Check the register pressure of the inv
15000         and its overlapped register class, other than all.
15001
15002 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
15003
15004         * doc/invoke.texi (Optimize Options): Fix descriptions of
15005         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
15006
15007 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
15008
15009         * doc/extend.texi (Function Attributes): Update 'naked' attribute
15010         documentation.
15011
15012 2014-06-29  Tobias Grosser <tobias@grosser.es>
15013
15014         PR bootstrap/61650
15015         * graphite-isl-ast-to-gimple.c: Add missing guards.
15016
15017 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15018
15019         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
15020         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
15021         * flag-types.h: Add new enum fgraphite_generator.
15022         * graphite-isl-ast-to-gimple.c: New.
15023         * graphite-isl-ast-to-gimple.h: New.
15024         * graphite.c (graphite_transform_loops): Add choice of Graphite
15025         code generator, which depends on flag_graphite_code_gen.
15026
15027 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15028
15029         * graphite-dependences.c (subtract_commutative_associative_deps):
15030         Add NULL checking of the following variables: must_raw_no_source,
15031         may_raw_no_source, must_war_no_source, may_war_no_source,
15032         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
15033         must_war, may_war, must_waw, may_waw.
15034
15035 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15036
15037         * graphite-clast-to-gimple.c: gloog is renamed to
15038         graphite_regenerate_ast_cloog.  gloog_error is renamed to
15039         graphite_regenerate_error.
15040         * graphite-clast-to-gimple.h: The definition of the struct
15041         bb_pbb_def is moved to graphite-htab.h.
15042         Add inclusion of the hash-table.h.
15043         * graphite-htab.h: The declaration of the function gloog is moved
15044         to graphite-clast-to-gimple.h and renamed to
15045         graphite_regenerate_ast_cloog.
15046         * graphite.c (graphite_transform_loops): gloog is renamed
15047         to graphite_regenerate_ast_cloog.
15048
15049 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15050
15051         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
15052         type is complete.
15053         (write_ts_type_common_tree_pointers): Do not stream fields not set
15054         for incomplete types; do not stream duplicated fields for variants;
15055         sanity check that variant and type match.
15056         (write_ts_type_non_common_tree_pointers): Likewise.
15057         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
15058         TYPE_SIZE whether type is complete.
15059         (lto_input_ts_type_common_tree_pointers): Do same changes as in
15060         write_ts_type_common_tree_pointers
15061         (lto_input_ts_type_non_common_tree_pointers): Likewise.
15062
15063 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15064
15065         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
15066
15067 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15068
15069         * tree-inline.c (remap_type_1): Do not duplicate fields
15070         that are shared in between type and its main variant.
15071
15072 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15073
15074         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
15075         of the type.
15076         (ipa_set_ancestor_jf) Likewise.
15077         (check_stmt_for_type_change): Check that we work on main variant.
15078         (detect_type_change): Look into main variant.
15079         (compute_known_type_jump_func): Check that main variant has BINFO.
15080
15081 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15082
15083         * ipa-devirt.c (set_type_binfo): New function.
15084         (add_type_duplicate): Use it.
15085         (get_odr_type): Sanity check that binfos points to main variants.
15086         (get_class_context): Be sure the context's outer_type is main variant.
15087         (contains_type_p): Walk main variant.
15088         (get_polymorphic_call_info_for_decl): Set outer_type to be
15089         main variant.
15090         (get_polymorphic_call_info): Likewise.
15091         (possible_polymorphic_call_targets): Sanity check that we operate
15092         on main variant.
15093
15094 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15095
15096         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15097
15098 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15099
15100         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
15101         accidental change due to wide-int branch merge.
15102
15103 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15104
15105         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
15106         compressed debug support.
15107         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
15108         * configure: Regenerate.
15109         * config.in: Regenerate.
15110         * common.opt (compressed_debug_sections): New enum.
15111         (gz, gz=): New options.
15112         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
15113         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
15114         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
15115         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
15116         LINK_COMPRESS_DEBUG_SPEC.
15117         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
15118         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
15119         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
15120         (Debugging Options): Document -gz[=type].
15121
15122 2014-06-27  Martin Jambor  <mjambor@suse.cz>
15123
15124         PR ipa/61160
15125         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
15126         args_to_skip, use those from node instead.  Copy args_to_skip and
15127         combined_args_to_skip from node to the new thunk.
15128         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
15129         (cgraph_create_virtual_clone): Moved computation of
15130         combined_args_to_skip...
15131         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
15132
15133 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
15134
15135         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
15136         redundant diagnostic machinary.
15137
15138 2014-06-27  Richard Biener  <rguenther@suse.de>
15139
15140         * tree-ssa-math-opts.c (bswap_replace): Fix
15141         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
15142
15143 2014-06-27  Martin Liska  <mliska@suse.cz>
15144
15145         * gimple.h (gimple_location_safe): New function introduced.
15146         * cgraphunit.c (walk_polymorphic_call_targets): Usage
15147         of gimple_location_safe replaces gimple_location.
15148         (gimple_fold_call): Likewise.
15149         * ipa-devirt.c (ipa_devirt): Likewise.
15150         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
15151         * ipa.c (walk_polymorphic_call_targets): Likewise.
15152         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15153
15154 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
15155
15156         PR tree-optimization/57233
15157         PR tree-optimization/61299
15158         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
15159         functions.
15160         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
15161         would be lowered to scalar shifts, check if corresponding
15162         shifts and vector BIT_IOR_EXPR are supported and don't lower
15163         or lower just to narrower vector type in that case.
15164         * expmed.c (expand_shift_1): Fix up handling of vector
15165         shifts and rotates.
15166
15167 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
15168
15169         PR target/61586
15170         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
15171
15172 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
15173
15174         * doc/invoke.texi (-fsemantic-interposition): Document.
15175         * common.opt (fsemantic-interposition): New flag.
15176         * varasm.c (decl_replaceable_p): Use it.
15177
15178 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15179
15180         PR target/61542
15181         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
15182         extraction other than index 3.
15183
15184 2014-06-26  Teresa Johnson  <tejohnson@google.com>
15185
15186         * doc/invoke.texi: Fix typo.
15187         * dumpfile.c: Add support for documented -fdump-* options
15188         optimized/missed/note/optall.
15189
15190 2014-06-26  Martin Jambor  <mjambor@suse.cz>
15191
15192         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
15193         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
15194         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
15195         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
15196         * opts.c (default_options_optimization): Set
15197         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
15198         * doc/invoke.texi (allow-load-data-races)
15199         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
15200         (allow-store-data-races): Document the new default.
15201
15202 2014-06-26  Martin Jambor  <mjambor@suse.cz>
15203
15204         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
15205         renamed to ipa_impossible_devirt_target.  Fix typo.
15206         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
15207         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
15208         ipa_impossible_devirt_target.
15209
15210 2014-06-26  Richard Biener  <rguenther@suse.de>
15211
15212         PR tree-optimization/61607
15213         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
15214         explaining why we restrict copies on loop depth.
15215         * tree-ssa-dom.c (cprop_operand): Remove restriction on
15216         on loop depth.
15217         (record_equivalences_from_phis): Instead add it here.
15218
15219 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
15220
15221         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
15222         (LTO_WRAPPER_OBJS): New variable.
15223         (lto-wrapper$(exeext)): Use it.
15224         * collect2.c: Include "collect-utils.h".
15225         (verbose, debug): Remove variables.
15226         (at_file_supplied): No longer static.
15227         (tool_name): New variable.
15228         (do_wait, fork_execute, maybe_unlink): Don't declare.
15229         (tool_cleanup): No longer static.
15230         (notice): Remove function.
15231         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
15232         fork_execute calls.
15233         (collect_wait, do_wait, collect_execute): Remove functions.
15234         (maybe_unlink): No longer static.
15235         * collect2.h (verbose, debug): Don't declare.
15236         (at_file_supplied): Declare.
15237         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
15238         changed.
15239         (collect_execute): Replace with implementation from collect2, plus a
15240         new arg use_atfile.  All callers changed.
15241         (collect_wait): Replace with implementation from collect2.
15242         (maybe_unlink_file): Remove function.
15243         (fork_execute): Replace with implementation from collect2, plus a
15244         new arg use_atfile.  All callers changed.
15245         (do_wait): Add call to utils_cleanup to the error path.
15246         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
15247         (tool_cleanup): Adjust declarations.
15248         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
15249         * tlink.c: Include "collect-utils.h".
15250         (tlink_execute): New arg use_atfile.  All callers changed.
15251         (tlink_init, tlink_execute): Remove declarations.
15252
15253         * collect-utils.c (save_temps): New variable.
15254         (do_wait): Use it instead of debug.  Use fatal_error.
15255         * collect-utils.h (save_temps): Declare.
15256         * collect2.c (verbose): Rename from vflag.  All uses changed.
15257         (tool_cleanup): New function, copied from collect_atexit.
15258         (collect_atexit, handler): Just call it.
15259         * collect2.h (verbose): Declaration renamed from vflag.
15260         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
15261         debug.
15262
15263         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
15264         (lto-wrapper$(exeext)): Link with collect-utils.o.
15265         * collect-utils.c: New file.
15266         * collect-utils.h: New file.
15267         * lto-wrapper.c: Include "collect-utils.h".
15268         (args_name): Delete variable.
15269         (tool_name): New variable.
15270         (tool_cleanup): New function.
15271         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
15272         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
15273         (fork_execute): Remove functions.
15274
15275 2014-06-26  Nick Clifton  <nickc@redhat.com>
15276
15277         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
15278
15279         * doc/extend.texi (Function Attributes): Fix typo in description
15280         of RX vector attribute.
15281
15282 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15283
15284         * config.gcc (supported_defaults): Error when passing either
15285         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
15286
15287 2014-06-26  Richard Biener  <rguenther@suse.de>
15288
15289         * tree-ssa-dom.c (cprop_operand): Remove restriction on
15290         propagating volatile pointers.
15291
15292 2014-06-26  Richard Biener  <rguenther@suse.de>
15293
15294         PR tree-optimization/61607
15295         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
15296         loop if we redirected its latch edge.
15297         (thread_block_1): Do not cancel loops prematurely.
15298
15299 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
15300
15301         * toplev.c (backend_init_target): Move init_emit_regs and
15302         init_regs to...
15303         (backend_init) ... here; skip ira_init_once and backend_init_target.
15304         (target_reinit) ... and here; clear
15305         this_target_rtl->lang_dependent_initialized.
15306         (lang_dependent_init_target): Clear
15307         this_target_rtl->lang_dependent_initialized;
15308         break out rtl initialization to ...
15309         (initialize_rtl): ... here; call also backend_init_target
15310         and ira_init_once.
15311         * toplev.h (initialize_rtl): New function.
15312         * function.c: Include toplev.h
15313         (init_function_start): Call initialize_rtl.
15314         * rtl.h (target_rtl): Add target_specific_initialized,
15315         lang_dependent_initialized.
15316
15317 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
15318             Jakub Jelinek  <jakub@redhat.com>
15319
15320         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
15321
15322 2014-06-25  Tom de Vries  <tom@codesourcery.com>
15323
15324         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
15325
15326 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15327
15328         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
15329         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
15330         Issue a strict overflow warning if appropriate.
15331
15332 2014-06-25  Martin Liska  <mliska@suse.cz>
15333
15334         IPA REF refactoring
15335         * Makefile.in: Removed header file (ipa-ref-inline.h).
15336         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
15337         called.
15338         (cgraph_speculative_call_info): Likewise.
15339         (cgraph_for_node_thunks_and_aliases): Likewise.
15340         (cgraph_for_node_and_aliases): Likewise.
15341         (verify_cgraph_node): Likewise.
15342         * cgraph.h: Batch of IPA REF functions become member functions of
15343         symtab_node: add_reference, maybe_add_reference, clone_references,
15344         clone_referring, clone_reference, find_reference,
15345         remove_stmt_references, remove_all_references,
15346         remove_all_referring, dump_references, dump_referring,
15347         has_alias_p, iterate_reference, iterate_referring.
15348         * cgraphbuild.c (record_reference): New IPA REF function used.
15349         (record_type_list): Likewise.
15350         (record_eh_tables): Likewise.
15351         (mark_address): Likewise.
15352         (mark_load): Likewise.
15353         (mark_store): Likewise.
15354         (pass_build_cgraph_edges): Likewise.
15355         (rebuild_cgraph_edge): Likewise.
15356         (cgraph_rebuild_references): Likewise.
15357         (pass_remove_cgraph_callee_edges): Likewise.
15358         * cgraphclones.c (cgraph_clone_node): Likewise.
15359         (cgraph_create_virtual_clone): Likewise.
15360         (cgraph_materialize_clone): Likewise.
15361         (cgraph_materialize_all_clones): Likewise.
15362         * cgraphunit.c (cgraph_reset_node): Likewise.
15363         (cgraph_reset_node): Likewise.
15364         (analyze_function): Likewise.
15365         (assemble_thunks_and_aliases): Likewise.
15366         (expand_function): Likewise.
15367         * ipa-comdats.c (propagate_comdat_group): Likewise.
15368         (enqueue_references): Likewise.
15369         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
15370         (create_specialized_node): Likewise.
15371         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
15372         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
15373         * ipa-inline.c (reset_edge_caches): Likewise.
15374         (update_caller_keys): Likewise.
15375         (execute): Likewise.
15376         * ipa-prop.c (remove_described_reference): Likewise.
15377         (propagate_controlled_uses): Likewise.
15378         (ipa_edge_duplication_hook): Likewise.
15379         (ipa_modify_call_arguments): Likewise.
15380         * ipa-pure-const.c (propagate_pure_const): Likewise.
15381         * ipa-ref-inline.h: Header file removed, functions moved
15382         to symtab_node class.
15383         * ipa-ref.c (remove_reference): New class member function.
15384         (cannot_lead_to_return): New class member function.
15385         (referring_ref_list): Likewise.
15386         (referred_ref_list): Likewise.
15387         Rest of functions moved to symtab_node class.
15388         * ipa-ref.h: New member functions remove_reference,
15389         cannot_lead_to_return, referring_ref_list, referred_ref_list added
15390         to ipa_ref class.
15391         ipa_ref_list class has new member functions: first_reference,
15392         first_referring, clear, nreferences.
15393         * ipa-reference.c (analyze_function): New IPA REF function used.
15394         (write_node_summary_p): Likewise.
15395         (ipa_reference_write_optimization_summary): Likewise.
15396         * ipa-split.c (split_function): Likewise.
15397         * ipa-utils.c (ipa_reverse_postorder): Likewise.
15398         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
15399         (function_and_variable_visibility): Likewise.
15400         * ipa.c (has_addr_references_p): Likewise.
15401         (process_references): Argument type changed.
15402         (symtab_remove_unreachable_nodes): New IPA REF function used.
15403         (process_references): Likewise.
15404         (set_writeonly_bit): Likewise.
15405         * lto-cgraph.c: Implementation of new symtab_node member functions
15406         that uses new IPA REF functions.
15407         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
15408         function used.
15409         * lto-streamer-out.c (output_symbol_p): Likewise.
15410         * lto-streamer.h (referenced_from_this_partition_p): Argument type
15411         changed.
15412         * symtab.c: Implementation of new IPA REF API.
15413         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
15414         (ipa_tm_create_version): Likewise.
15415         (ipa_tm_execute): Likewise.
15416         * tree-emutls.c (gen_emutls_addr): Likewise.
15417         * tree-inline.c (copy_bb): Likewise.
15418         (delete_unreachable_blocks_update_callgraph): Likewise.
15419         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
15420         (varpool_for_node_and_aliases): Likewise.
15421
15422 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
15423
15424         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
15425
15426 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
15427
15428         PR bootstrap/61598
15429         * fold-const.c (fold_checksum_tree): Use a hash_table of const
15430         tree_node * instead of tree_node *.
15431         (fold): Adjust.
15432         (print_fold_checksum): Likewise.
15433         (fold_check_failed): Likewise.
15434         (debug_fold_checksum): Likewise.
15435         (fold_build1_stat_loc): Likewise.
15436         (fold_build2_stat_loc): Likewise.
15437         (fold_build3_stat_loc): Likewise.
15438         (fold_build_call_array_loc): Likewise.
15439
15440 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
15441
15442         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
15443         implementation with call to...
15444         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
15445         function.
15446         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
15447         Declare.
15448
15449 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
15450
15451         PR tree-optimization/57742
15452         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
15453         after replacing the statement.
15454
15455 2014-06-25  Nick Clifton  <nickc@redhat.com>
15456
15457         * config/v850/v850.c (GHS_default_section_names): Change to const
15458         char * type.
15459         (GHS_current_section_names): Likewise.
15460         (v850_insert_attributes): Do not build strings, just assign the
15461         names directly.  Change the type of 'chosen_section' to const
15462         char*.
15463         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
15464         directly to the array entry.
15465         * config/v850/v850.h (GHS_default_section_names): Change to const
15466         char * type.
15467         (GHS_current_section_names): Likewise.
15468
15469 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
15470
15471         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
15472         (LANG_HOOKS_DECLS): Add it.
15473         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
15474         has correct type.
15475         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
15476         * langhooks.h (struct lang_hooks_for_decls): Add
15477         omp_clause_linear_ctor hook.
15478         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
15479         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
15480         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
15481         combined simd loop use omp_clause_linear_ctor hook.
15482
15483 2014-06-24  Cong Hou  <congh@google.com>
15484
15485         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
15486         pattern recognition.
15487         (type_conversion_p): PROMOTION is true if it's a type promotion
15488         conversion, and false otherwise.  Return true if the given expression
15489         is a type conversion one.
15490         * tree-vectorizer.h: Adjust the number of patterns.
15491         * tree.def: Add SAD_EXPR.
15492         * optabs.def: Add sad_optab.
15493         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
15494         * expr.c (expand_expr_real_2): Likewise.
15495         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
15496         * gimple.c (get_gimple_rhs_num_ops): Likewise.
15497         * optabs.c (optab_for_tree_code): Likewise.
15498         * tree-cfg.c (estimate_operator_cost): Likewise.
15499         * tree-ssa-operands.c (get_expr_operands): Likewise.
15500         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
15501         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
15502         * doc/generic.texi: Add document for SAD_EXPR.
15503         * doc/md.texi: Add document for ssad and usad.
15504
15505 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15506
15507         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
15508         qualification in cast.
15509
15510 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
15511
15512         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
15513         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
15514         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
15515         (tree_function_decl): ... here.
15516         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
15517         streaming of vindex to ...
15518         (write_ts_function_decl_tree_pointers): ... here.
15519         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
15520         Do not stream DECL_VINDEX.
15521         (lto_input_ts_function_decl_tree_pointers): Stream it here.
15522
15523 2014-06-24  Catherine Moore  <clm@codesourcery.com>
15524             Sandra Loosemore  <sandra@codesourcery.com>
15525
15526         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
15527         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
15528         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
15529
15530 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
15531
15532         * doc/invoke.texi (Warning Options): Remove duplicated
15533         -Wmaybe-uninitialized.
15534
15535 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
15536
15537         PR tree-optimization/57742
15538         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
15539         (handle_builtin_malloc, handle_builtin_memset): New functions.
15540         (strlen_optimize_stmt): Call them.
15541         * passes.def: Move strlen after loop+dom but before vrp.
15542
15543 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15544
15545         PR target/61570
15546         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
15547         model family 6 CPU with has_longmode never use a CPU without
15548         64-bit support.
15549
15550 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15551
15552         PR target/61570
15553         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
15554         the last change.
15555
15556 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15557
15558         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
15559         * dominance.c (iterate_fix_dominators): Use hash_map instead of
15560         pointer_map.
15561         * hash-map.h: New file.
15562         * ipa-comdats.c: Use hash_map instead of pointer_map.
15563         * ipa.c: Likewise.
15564         * lto-section-out.c: Adjust.
15565         * lto-streamer.h: Replace pointer_map with hash_map.
15566         * symtab.c (verify_symtab): Likewise.
15567         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
15568         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
15569         * tree-streamer.h: Likewise.
15570         * tree-streamer.c: Adjust.
15571         * pointer-set.h: Remove pointer_map.
15572
15573 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15574
15575         * hash-table.h: Add a template arg to choose between storing values
15576         and storing pointers to values, and then provide partial
15577         specializations for both.
15578         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
15579         should store, not the type values should point to.
15580         * tree-into-ssa.c (var_info_hasher): Likewise.
15581         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15582         * tree-complex.c: Adjust.
15583         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
15584         table instead of int_tree_map *.
15585         * tree-parloops.c: Adjust.
15586         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
15587         type is being stored.
15588         * tree-vectorizer.c: Adjust.
15589
15590 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15591
15592         * hash-table.h: Remove a layer of indirection from hash_table so that
15593         it contains the hash table's data instead of a pointer to the data.
15594         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
15595         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
15596         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15597         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15598         fold-const.c, gcse.c, ggc-common.c,
15599         gimple-ssa-strength-reduction.c, gimplify.c,
15600         graphite-clast-to-gimple.c, graphite-dependences.c,
15601         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15602         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15603         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15604         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15605         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15606         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15607         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15608         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15609         tree-ssa-live.c, tree-ssa-loop-im.c,
15610         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15611         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15612         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15613         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15614         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15615         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15616         vtable-verify.c, vtable-verify.h: Adjust.
15617
15618 2014-06-24  Richard Biener  <rguenther@suse.de>
15619
15620         PR tree-optimization/61572
15621         * tree-ssa-sink.c (statement_sink_location): Do not sink
15622         loads from hard registers.
15623
15624 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15625
15626         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15627         not mentioned in clauses use private clause if the iterator is
15628         declared in #pragma omp for simd, and when adding lastprivate
15629         instead, add it to the outer #pragma omp for too.  Diagnose
15630         if the variable is private in outer context.  For simd collapse > 1
15631         loops, replace all iterators with temporaries.
15632         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15633         same even in collapse > 1 loops.
15634
15635         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15636         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15637         non-NULL.
15638         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15639         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15640         non-NULL.
15641         (gimplify_adjust_omp_clauses): Likewise.
15642         * omp-low.c (lower_rec_simd_input_clauses,
15643         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15644         safelen the same as safelen(1).
15645         * tree-nested.c (convert_nonlocal_omp_clauses,
15646         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
15647         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15648         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15649         Fixup handling of GIMPLE_OMP_TARGET.
15650         (convert_tramp_reference_stmt, convert_gimple_call): Handle
15651         GIMPLE_OMP_TARGET.
15652
15653 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
15654
15655         PR tree-optimization/61554
15656         * tree-ssa-propagate.c: Include "bitmap.h".
15657         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15658         properly update constructor/destructor.
15659         (substitute_and_fold_dom_walker::before_dom_children):
15660         Remove call to gimple_purge_dead_eh_edges, add bb->index to
15661         need_eh_cleaup instead.
15662         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15663         need_eh_cleanup.
15664
15665 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
15666
15667         * varpool.c (dump_varpool_node): Dump used_by_single_function.
15668         * tree-pass.h (make_pass_ipa_single_use): New pass.
15669         * cgraph.h (used_by_single_function): New flag.
15670         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15671         Stream it.
15672         * passes.def (pass_ipa_single_use): Scedule.
15673         * ipa.c (BOTTOM): New macro.
15674         (meet): New function
15675         (propagate_single_user): New function.
15676         (ipa_single_use): New function.
15677         (pass_data_ipa_single_use): New pass.
15678         (pass_ipa_single_use): New pass.
15679         (pass_ipa_single_use::gate): New gate.
15680         (make_pass_ipa_single_use): New function.
15681
15682 2014-06-23  Kai Tietz  <ktietz@redhat.com>
15683
15684         PR target/39284
15685         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15686         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15687
15688 2014-06-23  Richard Biener  <rguenther@suse.de>
15689
15690         * tree-ssa-loop.c (gate_loop): New function.
15691         (pass_tree_loop::gate): Call it.
15692         (pass_data_tree_no_loop, pass_tree_no_loop,
15693         make_pass_tree_no_loop): New.
15694         * tree-vectorizer.c: Include tree-scalar-evolution.c
15695         (pass_slp_vectorize::execute): Initialize loops and SCEV if
15696         required.
15697         (pass_slp_vectorize::clone): New method.
15698         * timevar.def (TV_TREE_NOLOOP): New.
15699         * tree-pass.h (make_pass_tree_no_loop): Declare.
15700         * passes.def (pass_tree_no_loop): New pass group with
15701         SLP vectorizer.
15702
15703 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15704
15705         PR target/61570
15706         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15707         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15708
15709 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
15710
15711         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15712         "yes" where needed.
15713
15714 2014-06-23  Alan Modra  <amodra@gmail.com>
15715
15716         PR bootstrap/61583
15717         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15718         to zero on debug statements.
15719
15720 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15721
15722         PR target/60825
15723         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15724         Ignore third operand if present by marking qualifier_internal.
15725
15726         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15727
15728         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15729         vector extension.
15730         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15731         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15732         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15733         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15734         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15735         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15736         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15737         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15738         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15739         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15740         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15741         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15742         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15743         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15744         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15745         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15746         logic in GCC vector extensions
15747
15748         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15749         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15750         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15751         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15752         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15753         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15754         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15755         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15756         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15757         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15758
15759         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15760
15761         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15762         extensions.
15763
15764         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15765         (vget_low_s64): Use __GET_LOW macro.
15766         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15767         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15768         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15769         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15770         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15771
15772         (vcombine_s64): Use GCC vector extensions; remove cast.
15773         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15774         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15775         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15776         Fix type signature; remove cast.
15777
15778 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15779
15780         PR target/60825
15781         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15782         V1DFmode.
15783         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15784         add V1DFmode
15785         (BUILTIN_VD1): New.
15786         (BUILTIN_VD_RE): Remove.
15787         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15788         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15789         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15790         variant but not df.
15791         (vreinterpretv1df*, vreinterpret*v1df): New.
15792         (vreinterpretdf*, vreinterpret*df): Remove.
15793         * config/aarch64/aarch64-simd.md (aarch64_create,
15794         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15795         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15796         (VD1): New.
15797         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15798         (vcreate_f64): Remove cast, use v1df builtin.
15799         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15800         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15801         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15802         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15803         vmov_n_f64, vst1_f64): Use gcc vector extensions.
15804         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15805         add range check using __builtin_aarch64_im_lane_boundsi.
15806         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15807         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15808         type signature, use gcc vector extensions.
15809         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15810         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15811         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15812         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15813         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15814         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15815         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15816         vreinterpret_u64_f64): Use v1df builtin not df.
15817
15818 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
15819
15820         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15821         vector registers.
15822
15823 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
15824
15825         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15826         priority directly.
15827
15828 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15829
15830         * loop-invariant.c (pre_check_invariant_p): New function.
15831         (find_invariant_insn): Call pre_check_invariant_p.
15832
15833 2014-06-22  Richard Henderson  <rth@redhat.com>
15834
15835         PR target/61565
15836         * compare-elim.c (struct comparison): Add eh_note.
15837         (find_comparison_dom_walker::before_dom_children): Don't eliminate
15838         a redundant comparison in a different EH region.  Purge EH edges if
15839         necessary.
15840
15841 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15842
15843         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15844         (var_shift): Use it.
15845         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15846         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15847         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15848         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15849         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15850         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15851         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15852         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15853         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15854         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15855         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15856         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15857         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15858         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15859         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15860         *rotldi3_internal15be): Use the new attribute.  Merge register and
15861         integer alternatives.
15862
15863 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15864
15865         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15866         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15867         split, *ashrdi3_internal3 and split): Delete, merge into...
15868         (ashr<mode>3): New expander.
15869         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15870         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
15871
15872 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15873
15874         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15875         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15876         *rotldi3_internal3 and split): Delete, merge into...
15877         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15878         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
15879         Use "rotlw" extended mnemonic.
15880
15881 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15882
15883         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15884         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15885         and split, *ashldi3_internal3 and split): Delete, merge into...
15886         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15887         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
15888
15889 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15890
15891         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15892         (lshrsi3, two anonymous define_insns and define_splits,
15893         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15894         *lshrdi3_internal3 and split): Delete, merge into...
15895         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15896         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
15897
15898 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15899
15900         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15901         Remove "O" alternative.
15902
15903 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
15904
15905         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15906         (mips_move_from_gpr_cost): Likewise.
15907         (mips_register_move_cost): Update accordingly.
15908         (mips_secondary_reload_class): Remove name of in_p.
15909
15910 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
15911
15912         PR target/61503
15913         * config/i386/i386.md (x86_64_shrd, x86_shrd,
15914         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15915
15916 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15917
15918         * config/nios2/nios2.c: Include "builtins.h".
15919
15920 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15921
15922         * cgraph.h (tls_model_names): New variable.
15923         * print-tree.c (print_node): Simplify.
15924         * varpool.c (tls_model_names): New variable.
15925         (dump_varpool_node): Output tls model.
15926
15927 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15928
15929         * ipa-visibility.c (function_and_variable_visibility): Disable
15930         temporarily local aliases for some targets.
15931
15932 2014-06-20  Marek Polacek  <polacek@redhat.com>
15933
15934         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15935         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15936         into SANITIZE_UNDEFINED.
15937         * doc/invoke.texi: Describe -fsanitize=bounds.
15938         * gimplify.c (gimplify_call_expr): Add gimplification of internal
15939         functions created in the FEs.
15940         * internal-fn.c: Move "internal-fn.h" after "tree.h".
15941         (expand_UBSAN_BOUNDS): New function.
15942         * internal-fn.def (UBSAN_BOUNDS): New internal function.
15943         * internal-fn.h: Don't define internal functions here.
15944         * opts.c (common_handle_option): Add -fsanitize=bounds.
15945         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15946         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15947         * tree-core.h: Define internal functions here.
15948         (struct tree_base): Add ifn field.
15949         * tree-pretty-print.c: Include "internal-fn.h".
15950         (dump_generic_node): Handle functions without CALL_EXPR_FN.
15951         * tree.c (get_callee_fndecl): Likewise.
15952         (build_call_expr_internal_loc): New function.
15953         * tree.def (CALL_EXPR): Update description.
15954         * tree.h (CALL_EXPR_IFN): Define.
15955         (build_call_expr_internal_loc): Declare.
15956         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15957         types.
15958         (ubsan_type_descriptor): Change bool parameter to enum
15959         ubsan_print_style.  Adjust the code.  Add handling of
15960         UBSAN_PRINT_ARRAY.
15961         (ubsan_expand_bounds_ifn): New function.
15962         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15963         (ubsan_build_overflow_builtin): Likewise.
15964         (instrument_bool_enum_load): Likewise.
15965         (ubsan_instrument_float_cast): Likewise.
15966         * ubsan.h (enum ubsan_print_style): New enum.
15967         (ubsan_expand_bounds_ifn): Declare.
15968         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
15969
15970 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
15971
15972         * config/rs6000/rs6000.md: Append `DONE' to preparation
15973         statements of `bswap' pattern splitters.
15974
15975 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15976
15977         * target.def (call_fusage_contains_non_callee_clobbers): Update
15978         definition.
15979         * doc/tm.texi: Regenerate.
15980
15981 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15982             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15983
15984         PR sanitizer/61547
15985         * asan.c (instrument_strlen_call): Fixed instrumentation of
15986         trailing byte.
15987
15988 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15989
15990         PR ipa/61540
15991         * ipa-prop.c (impossible_devirt_target): New function.
15992         (try_make_edge_direct_virtual_call): Use it, also instead of
15993         asserting.
15994
15995 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15996             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15997
15998         PR sanitizer/61530
15999         * asan.c (build_check_stmt): Add condition.
16000
16001 2014-06-20  Martin Jambor  <mjambor@suse.cz>
16002
16003         PR ipa/61211
16004         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
16005         expanded clones.
16006
16007 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16008
16009         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
16010         Update comments.
16011         (VCONQ): Make comment more helpful.
16012         (VCON): Delete.
16013         * config/aarch64/aarch64-simd.md
16014         (aarch64_sqdmulh_lane<mode>):
16015         Use VCOND for operands 2.  Update lane checking and flipping logic.
16016         (aarch64_sqrdmulh_lane<mode>): Likewise.
16017         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
16018         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
16019         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
16020         attribute of operand 3 to VCOND.
16021         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
16022         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
16023         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
16024         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
16025         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
16026         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
16027         define_insn.
16028         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
16029         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
16030         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
16031         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
16032         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
16033         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
16034         operand to VCOND.  Update lane flipping and bounds checking logic.
16035         (aarch64_sqdmlal2_lane<mode>): Likewise.
16036         (aarch64_sqdmlsl_lane<mode>): Likewise.
16037         (aarch64_sqdmull_lane<mode>): Likewise.
16038         (aarch64_sqdmull2_lane<mode>): Likewise.
16039         (aarch64_sqdmlal_laneq<mode>):
16040         Replace VCON usage with VCONQ.
16041         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
16042         (aarch64_sqdmlal2_laneq<mode>): Emit
16043         aarch64_sqdmlal2_laneq<mode>_internal insn.
16044         Replace VCON with VCONQ.
16045         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
16046         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16047         (aarch64_sqdmull_laneq<mode>): Emit
16048         aarch64_sqdmull_laneq<mode>_internal insn.
16049         Replace VCON with VCONQ.
16050         (aarch64_sqdmull2_laneq<mode>): Emit
16051         aarch64_sqdmull2_laneq<mode>_internal insn.
16052         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
16053         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
16054         of 3rd argument to int16x4_t.
16055         (vqdmlalh_lane_s16): Likewise.
16056         (vqdmlslh_lane_s16): Likewise.
16057         (vqdmull_high_lane_s16): Likewise.
16058         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
16059         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
16060         (vqdmlsl_lane_s16): Likewise.
16061         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
16062         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
16063         (vqdmlals_lane_s32): Likewise.
16064         (vqdmlsls_lane_s32): Likewise.
16065         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
16066         (vqdmulls_lane_s32): Likewise.
16067         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
16068         (vqdmlsl_lane_s32): Likewise.
16069         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
16070         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
16071         (vqrdmulhh_lane_s16): Likewise.
16072         (vqdmlsl_high_lane_s16): Likewise.
16073         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
16074         (vqdmlsl_high_lane_s32): Likewise.
16075         (vqrdmulhs_lane_s32): Likewise.
16076
16077 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16078
16079         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
16080         get_call_reg_set_usage.
16081
16082 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16083
16084         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
16085         it contains all call_used_regs.
16086
16087 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16088
16089         * final.c (collect_fn_hard_reg_usage): Add and use variable
16090         function_used_regs.
16091
16092 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
16093
16094         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
16095         (set_init_priority, get_init_priority, set_fini_priority,
16096         get_fini_priority): New methods.
16097         * tree.c (init_priority_for_decl): Remove.
16098         (init_ttree): Do not initialize init priority.
16099         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
16100         (decl_priority_info): Remove.
16101         (decl_init_priority_insert): Rewrite.
16102         (decl_fini_priority_insert): Rewrite.
16103         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
16104         tree_priority_map_marked_p): Remove.
16105         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
16106         * lto-streamer-out.c (hash_tree): Do not hash priorities.
16107         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
16108         not output priorities.
16109         (pack_ts_function_decl_value_fields): Likewise.
16110         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16111         not input priorities.
16112         (unpack_ts_function_decl_value_fields): Likewise.
16113         * symtab.c (symbol_priority_map): Declare.
16114         (init_priority_hash): Declare.
16115         (symtab_unregister_node): Unregister from priority hash, too.
16116         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
16117         New methods.
16118         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
16119         (symbol_priority_info): New function.
16120         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
16121         New methods.
16122         * tree-core.h (tree_priority_map): Remove.
16123
16124 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
16125
16126         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
16127         0xff to uint64_t before shifting it up.
16128
16129 2014-06-20  Julian Brown  <julian@codesourcery.com>
16130             Chung-Lin Tang  <cltang@codesourcery.com>
16131
16132         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
16133         TARGET_THUMB1_ONLY. Add comments.
16134
16135 2014-06-19  Tom de Vries  <tom@codesourcery.com>
16136
16137         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
16138         return type to void.
16139         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
16140
16141 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16142
16143         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
16144         as "move", from depends_on.
16145
16146 2014-06-19  Terry Guo  <terry.guo@arm.com>
16147
16148         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
16149         stage.
16150
16151 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16152
16153         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
16154         Remove cr5.
16155         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
16156
16157 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16158
16159         PR target/61550
16160         * config/sh/sh.c (prepare_move_operands): Don't process TLS
16161         addresses here if reload in progress or completed.
16162
16163 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16164
16165         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
16166         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
16167         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
16168         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
16169         (mips_register_priority): New function that implements the target
16170         hook TARGET_REGISTER_PRIORITY.
16171         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
16172         (mips_lra_p): Likewise for TARGET_LRA_P.
16173         (TARGET_REGISTER_PRIORITY): Define macro.
16174         (TARGET_SPILL_CLASS): Likewise.
16175         (TARGET_LRA_P): Likewise.
16176         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
16177         classes.
16178         (REG_CLASS_NAMES): Likewise.
16179         (REG_CLASS_CONTENTS): Likewise.
16180         (BASE_REG_CLASS): Use M16_SP_REGS.
16181         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
16182         New set attribute to enable alternatives depending on the register
16183         allocator used.
16184         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
16185         (*lea64): Disable pattern for MIPS16.
16186         * config/mips/mips.opt (mlra): New option.
16187
16188 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16189
16190         * lra-constraints.c (base_to_reg): New function.
16191         (process_address): Use new function.
16192
16193 2014-06-18  Tom de Vries  <tom@codesourcery.com>
16194
16195         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
16196         * config/aarch64/aarch64.c
16197         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
16198         (aarch64_emit_call_insn): New function.
16199         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
16200         of emit_call_insn.
16201         * config/aarch64/aarch64.md (define_expand "call_internal")
16202         (define_expand "call_value_internal", define_expand "sibcall_internal")
16203         (define_expand "sibcall_value_internal"): New.
16204         (define_expand "call", define_expand "call_value")
16205         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
16206         expand variant and aarch64_emit_call_insn.
16207
16208 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
16209             Tom de Vries  <tom@codesourcery.com>
16210
16211         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
16212         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16213         Redefine to true.
16214         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
16215         clobbers to CALL_INSN_FUNCTION_USAGE.
16216         (define_expand "sibcall_internal")
16217         (define_expand "sibcall_value_internal"): New.
16218         (define_expand "call", define_expand "call_value"): Add argument to
16219         arm_emit_call_insn.
16220         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
16221         (define_expand "sibcall_value"): Use sibcall_value_internal and
16222         arm_emit_call_insn.
16223
16224 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16225
16226         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
16227
16228 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16229
16230         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
16231         __udivmoddi4.
16232
16233 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16234
16235         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
16236         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
16237         annotations. Fix DWARF information.
16238
16239 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16240
16241         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
16242         __udivmoddi4, and fixups for negative operands.
16243
16244 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16245
16246         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
16247
16248 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16249
16250         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
16251         to __udivmoddi4.
16252
16253 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16254
16255         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
16256         manipulation.
16257
16258 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16259
16260         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
16261         describing register usage on function entry and exit.
16262
16263 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16264
16265         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
16266         (__aeabi_ldivmod): Fix whitespace.
16267
16268 2014-06-18  Andreas Schwab  <schwab@suse.de>
16269
16270         * doc/md.texi (Standard Names): Use @itemx for grouped items.
16271         Remove blank line after @item.
16272
16273 2014-06-18  Richard Henderson  <rth@redhat.com>
16274
16275         PR target/61545
16276         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
16277
16278 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16279
16280         * config/arm/arm.c (neon_vector_mem_operand): Allow register
16281         POST_MODIFY for neon loads and stores.
16282         (arm_print_operand): Output post-index register for neon loads and
16283         stores.
16284
16285 2014-06-18  Richard Biener  <rguenther@suse.de>
16286
16287         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
16288
16289 2014-06-18  Richard Biener  <rguenther@suse.de>
16290
16291         * tree-pass.h (make_pass_dce_loop): Remove.
16292         * passes.def: Replace pass_dce_loop with pass_dce.
16293         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
16294         changed free niter estimates and reset the scev cache.
16295         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
16296         make_pass_dce_loop): Remove.
16297         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
16298         (fini_copy_prop): Return whether something changed.  Always
16299         let substitute_and_fold perform DCE and free niter estimates
16300         and reset the scev cache if so.
16301         (execute_copy_prop): If sth changed schedule cleanup-cfg.
16302         (pass_data_copy_prop): Do not unconditionally schedule
16303         cleanup-cfg or update-ssa.
16304
16305 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
16306
16307         PR tree-optimization/61518
16308         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16309         reduction var is used in reduction stmt or phi-function only.
16310
16311 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16312
16313         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
16314
16315 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16316
16317         PR tree-optimization/61517
16318         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
16319         whose rhs's first tree is the source expression instead of the
16320         expression itself.
16321         (find_bswap_or_nop): Likewise.
16322         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
16323         gimple stmt whose rhs's first tree is the source. In the memory source
16324         case, move the stmt to be replaced close to one of the original load to
16325         avoid the problem of a store between the load and the stmt's original
16326         location.
16327         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
16328         signature.
16329
16330 2014-06-18  Andreas Schwab  <schwab@suse.de>
16331
16332         PR rtl-optimization/54555
16333         * postreload.c (move2add_use_add2_insn): Substitute
16334         STRICT_LOW_PART only if it is cheaper.
16335
16336 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
16337
16338         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
16339         Do not use unspec as call operand.  Use memory_operand instead of
16340         memory_nox32_operand and add "m" operand constraint.  Disable
16341         pattern for TARGET_X32.
16342         (*sibcall_pop_memory): Ditto.
16343         (*sibcall_value_memory): Ditto.
16344         (*sibcall_value_pop_memory): Ditto.
16345         (sibcall peepholes): Merge SImode and DImode patterns using
16346         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
16347         Disable pattern for TARGET_X32.  Check if eliminated register is
16348         really dead after call insn.  Generate call RTX without unspec operand.
16349         (sibcall_value peepholes): Ditto.
16350         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
16351         instead of memory_nox32_operand.  Check if eliminated register is
16352         really dead after call insn. Generate call RTX without unspec operand.
16353         (sibcall_value_pop peepholes): Ditto.
16354         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
16355
16356 2014-06-18  Terry Guo  <terry.guo@arm.com>
16357
16358         PR target/61544
16359         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
16360         reach the head.
16361
16362 2014-06-18  Olivier Hainque  <hainque@adacore.com>
16363
16364         * tree-core.h (tree_block): Add an "end_locus" field, allowing
16365         memorization of the end of block source location.
16366         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
16367         * gimplify.c (gimplify_bind_expr): Propagate the block start and
16368         end source location info we have on the block entry/exit code we
16369         generate.
16370
16371 2014-06-18  Richard Biener  <rguenther@suse.de>
16372
16373         * common.opt (fssa-phiopt): New option.
16374         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
16375         but not with -Og.
16376         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
16377         * doc/invoke.texi (-fssa-phiopt): Document.
16378
16379 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16380
16381         * genattrtab.c (n_bypassed): New variable.
16382         (process_bypasses): Initialise n_bypassed.
16383         Count number of bypassed reservations.
16384         (make_automaton_attrs): Allocate space for bypassed reservations
16385         rather than number of bypasses.
16386
16387 2014-06-18  Richard Biener  <rguenther@suse.de>
16388
16389         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
16390         we propagated anything.
16391         (substitute_and_fold_dom_walker::before_dom_children): Something
16392         changed if we propagated into PHI arguments.
16393         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
16394         we removed a stmt.
16395
16396 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
16397
16398         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
16399         vector case.
16400         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
16401         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
16402         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
16403         Introduces alternative way of loads group permutaions.
16404         (vect_transform_grouped_load): Try alternative way of permutations.
16405
16406 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16407
16408         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
16409         changed in ORT_TARGET region, don't jump to do_outer.
16410         (struct gimplify_adjust_omp_clauses_data): New type.
16411         (gimplify_adjust_omp_clauses_1): Adjust for data being
16412         a struct gimplify_adjust_omp_clauses_data pointer instead
16413         of tree *.  Pass pre_p as a new argument to
16414         lang_hooks.decls.omp_finish_clause hook.
16415         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
16416         splay_tree_foreach to pass both list_p and pre_p.
16417         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
16418         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
16419         gimplify_adjust_omp_clauses callers.
16420         * langhooks.c (lhd_omp_finish_clause): New function.
16421         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
16422         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
16423         * langhooks.h (struct lang_hooks_for_decls): Add a new
16424         gimple_seq * argument to omp_finish_clause hook.
16425         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
16426         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
16427         (scan_omp_parallel, lower_omp_for): When adding
16428         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
16429         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
16430         * tree-nested.c (convert_nonlocal_omp_clauses,
16431         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
16432         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
16433
16434 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
16435
16436         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
16437         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
16438
16439 2014-06-17  Xinliang David Li  <davidxl@google.com>
16440
16441         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
16442         * passes.c (pass_init_dump_file): Do not set initialize
16443         flag to false unconditionally.
16444
16445 2014-06-17  Richard Biener  <rguenther@suse.de>
16446
16447         * genopinit.c (main): Use vec<>::qsort method.
16448         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16449         Likewise.
16450         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
16451
16452 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
16453
16454         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
16455         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
16456         (mips_move_to_gpr_cost): Remove ST_REGS case.
16457         (mips_move_from_gpr_cost): Likewise.
16458         (mips_register_move_cost): Likewise.
16459         (mips_secondary_reload_class): Likewise.
16460
16461 2014-06-17  Richard Biener  <rguenther@suse.de>
16462
16463         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
16464         (pass_all_optimizations): Move 3rd copy-prop pass from after
16465         fre to before ifcombine/phiopt.
16466
16467 2014-06-17  Richard Biener  <rguenther@suse.de>
16468
16469         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
16470         and allow all blocks to be forwarders.
16471
16472 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
16473
16474         PR target/61483
16475         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
16476         variable 'size'; calculate 'size' right in the front; use
16477         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
16478         pcum->aapcs_stack_words.
16479
16480 2014-06-17  Nick Clifton  <nickc@redhat.com>
16481
16482         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
16483         (umulhi3, mulsidi3, umulsidi3): Likewise.
16484
16485 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
16486
16487         PR middle-end/61508
16488         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
16489         check for section name.
16490
16491 2014-06-17  Richard Biener  <rguenther@suse.de>
16492
16493         * tree-ssa-propagate.c: Include domwalk.h.
16494         (substitute_and_fold): Outline main worker into a domwalker ...
16495         (substitute_and_fold_dom_walker::before_dom_children): ... here.
16496         Schedule stmts we can fully propagate for removal.  Remove
16497         poor-mans DCE.
16498         (substitute_and_fold): Apply a dominator walk to perform
16499         substitution.  Process stmts scheduled for removal here.
16500
16501 2014-06-17  Richard Biener  <rguenther@suse.de>
16502
16503         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
16504         of PHI node moving.
16505
16506 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
16507
16508         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
16509         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
16510         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16511         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
16512         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
16513         TARGET_HARD_FLOAT.
16514         (get_fpscr) : Likewise.
16515
16516 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
16517
16518         PR rtl-optimization/61325
16519         * lra-constraints.c (valid_address_p): Add forward declaration.
16520         (simplify_operand_subreg): Check address validity before and after
16521         alter_reg of memory subreg.
16522
16523 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
16524
16525         * config/i386/i386.c (decide_alg): Correctly handle
16526         maximum size of stringop algorithm.
16527
16528 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
16529
16530         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
16531
16532 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
16533
16534         PR rtl-optimization/61522
16535         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
16536
16537 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
16538
16539         Revert:
16540         * symtab.c (symtab_node::reset_section): New method.
16541         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16542         for localization.
16543         * cgraph.h (reset_section): Declare.
16544         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16545         do not consider comdat locals.
16546         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16547         for new symbol.
16548         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16549         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16550         reset sections of symbols dragged out of the comdats.
16551         (function_and_variable_visibility): Reset sections of
16552         localized symbols.
16553
16554 2014-06-16  Richard Biener  <rguenther@suse.de>
16555
16556         PR tree-optimization/61482
16557         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
16558         [-INF(OVF), +INF(OVF)] range.
16559
16560 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16561
16562         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
16563         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
16564         handling 32-bit multiplication.
16565
16566 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
16567
16568         PR middle-end/61430
16569         * lra-lives.c (process_bb_lives): Skip creating copy during
16570         insn scan when src/dest has constrained to same regno.
16571
16572 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
16573
16574         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
16575         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
16576
16577 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
16578
16579         * asan.c (check_func): New function.
16580         (maybe_create_ssa_name): Likewise.
16581         (build_check_stmt_with_calls): Likewise.
16582         (use_calls_p): Likewise.
16583         (report_error_func): Change interface.
16584         (build_check_stmt): Allow non-integer lengths; add support
16585         for new parameter.
16586         (asan_instrument): Likewise.
16587         (instrument_mem_region_access): Moved code to build_check_stmt.
16588         (instrument_derefs): Likewise.
16589         (instrument_strlen_call): Likewise.
16590         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
16591         * doc/invoke.texi: Describe new parameter.
16592         * params.def: Define new parameter.
16593         * params.h: Likewise.
16594         * sanitizer.def: Describe new builtins.
16595
16596 2014-06-16  Richard Biener  <rguenther@suse.de>
16597
16598         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16599         Make all defs available at the end.
16600         (eliminate): If we remove a PHI node schedule cfg-cleanup.
16601
16602 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16603
16604         PR plugins/45078
16605         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16606
16607 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
16608
16609         PR bootstrap/61516
16610         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16611         initialization.  Replace remaining use of uid.
16612
16613 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
16614
16615         * c-family/c-common.c (handle_tls_model_attribute): Use
16616         set_decl_tls_model.
16617         * c-family/c-common.c (handle_tls_model_attribute): Use
16618         set_decl_tls_model.
16619         * cgraph.h (struct varpool_node): Add tls_model.
16620         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16621         * tree.h (DECL_TLS_MODEL): Update.
16622         (DECL_THREAD_LOCAL_P): Check that variable is static.
16623         (decl_tls_model): Declare.
16624         (set_decl_tls_model): Declare.
16625         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16626         set symbol prorperties.
16627         (get_emutls_init_templ_addr): Cleanup.
16628         (new_emutls_decl): Update.
16629         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16630         (lto_input_varpool_node): Likewise.
16631         * lto-streamer-out.c (hash_tree): Likewise.
16632         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16633         not stream DECL_TLS_MODEL.
16634         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16635         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16636
16637 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16638
16639         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16640
16641 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16642
16643         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16644         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16645         lists.
16646         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16647         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16648         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16649         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16650         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16651         (df_get_artificial_defs, df_get_artificial_uses)
16652         (df_single_def, df_single_use): Update accordingly.
16653         (df_refs_chain_dump): Take the first element in a linked list as
16654         parameter, rather than a pointer to an array of pointers.
16655         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16656         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16657         (df_chain_create_bb_process_use): Likewise.
16658         (df_md_bb_local_compute_process_def): Likewise.
16659         * fwprop.c (process_defs, process_uses): Likewise.
16660         (register_active_defs, update_uses): Likewise.
16661         (forward_propagate_asm): Update for new df_ref linking.
16662         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16663         (df_null_ref_rec, df_null_mw_rec): Likewise.
16664         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16665         explicitly.
16666         (df_scan_free_bb_info): Remove check for null artificial_defs.
16667         (df_install_ref_incremental): Adjust for new df_ref linking.
16668         Use a single-element insertion rather than a full sort.
16669         (df_ref_chain_delete_du_chain): Take the first element
16670         in a linked list as parameter, rather than a pointer to an array of
16671         pointers.
16672         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16673         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16674         (df_insn_info_delete): Remove check for null defs and call to
16675         df_scan_free_mws_vec.
16676         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16677         null rather than df_null_*_rec.
16678         (df_insn_rescan_debug_internal): Likewise, and update null
16679         checks in the same way.  Remove check for null defs.
16680         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16681         Move a single element rather doing a full sort.
16682         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16683         linking.
16684         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
16685         Initialize df_ref and df_mw_hardreg lists to null rather than
16686         df_null_*_rec.
16687         (df_ref_compare): Take df_refs as parameter, transferring the
16688         old interface to...
16689         (df_ref_ptr_compare): ...this new function.
16690         (df_sort_and_compress_refs): Update accordingly.
16691         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16692         old interface to...
16693         (df_mw_ptr_compare): ...this new function.
16694         (df_sort_and_compress_mws): Update accordingly.
16695         (df_install_refs, df_install_mws): Return a linked list rather than
16696         an array of pointers.
16697         (df_refs_add_to_chains): Assert that old lists are empty rather
16698         than freeing them.
16699         (df_insn_refs_verify): Don't handle null defs speciailly.
16700         * web.c (union_match_dups): Update for new df_ref linking.
16701
16702 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16703
16704         * df.h (df_ref_create, df_ref_remove): Delete.
16705         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16706         (df_ref_remove): Likewise.
16707
16708 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16709
16710         * df.h (df_single_def, df_single_use): New functions.
16711         * ira.c (find_moveable_pseudos): Use them.
16712
16713 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16714
16715         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16716         * df-problems.c (df_note_bb_compute): Use it.
16717         * regstat.c (regstat_bb_compute_ri): Likewise.
16718
16719 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16720
16721         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16722         * cse.c (cse_extended_basic_block): Use them.
16723         * dce.c (mark_artificial_use): Likewise.
16724         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16725         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16726         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16727         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16728         (df_simulate_initialize_backwards): Likewise.
16729         (df_simulate_finalize_backwards): Likewise.
16730         (df_simulate_initialize_forwards): Likewise.
16731         (df_md_simulate_artificial_defs_at_top): Likewise.
16732         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16733         * regrename.c (init_rename_info): Likewise.
16734         * regstat.c (regstat_bb_compute_ri): Likewise.
16735         (regstat_bb_compute_calls_crossed): Likewise.
16736
16737 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16738
16739         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16740         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16741         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16742         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16743         * combine.c (create_log_links): Likewise.
16744         * compare-elim.c (find_flags_uses_in_insn): Likewise.
16745         (try_eliminate_compare): Likewise.
16746         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16747         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16748         (remove_reg_equal_equiv_notes_for_defs): Likewise.
16749         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16750         (word_dce_process_block, dce_process_block): Likewise.
16751         * ddg.c (def_has_ccmode_p): Likewise.
16752         * df-core.c (df_bb_regno_first_def_find): Likewise.
16753         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16754         * df-problems.c (df_rd_simulate_one_insn): Likewise.
16755         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16756         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16757         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16758         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16759         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16760         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16761         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16762         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16763         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16764         * fwprop.c (local_ref_killed_between_p): Likewise.
16765         (all_uses_available_at, free_load_extend): Likewise.
16766         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16767         * hw-doloop.c (scan_loop): Likewise.
16768         * ifcvt.c (dead_or_predicable): Likewise.
16769         * init-regs.c (initialize_uninitialized_regs): Likewise.
16770         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16771         (process_bb_node_lives): Likewise.
16772         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16773         (find_moveable_pseudos): Likewise.
16774         * loop-invariant.c (check_dependencies, record_uses): Likewise.
16775         * recog.c (peep2_find_free_register): Likewise.
16776         * ree.c (get_defs): Likewise.
16777         * regstat.c (regstat_bb_compute_ri): Likewise.
16778         (regstat_bb_compute_calls_crossed): Likewise.
16779         * sched-deps.c (find_inc, find_mem): Likewise.
16780         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16781         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16782         * shrink-wrap.c (requires_stack_frame_p): Likewise.
16783         (prepare_shrink_wrap): Likewise.
16784         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16785         * web.c (union_defs, pass_web::execute): Likewise.
16786         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16787         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16788
16789 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
16790
16791         * lra-assign.c (assign_by_spills): Add code to assign vector regs
16792         to inheritance pseudos.
16793         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16794
16795 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
16796
16797         PR target/61415
16798         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16799         (BU_MISC_2): Rename to ...
16800         (BU_LDBL128_2): ... this.
16801         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16802         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16803         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16804         RS6000_BTM_LDBL128.
16805         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16806         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16807         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16808         (unpacktf_1): Likewise.
16809         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16810         (__builtin_longdouble_dw1): Likewise.
16811         * doc/sourcebuild.texi (longdouble128): Document.
16812
16813 2014-06-13  Jeff Law  <law@redhat.com>
16814
16815         PR rtl-optimization/61094
16816         PR rtl-optimization/61446
16817         * ree.c (combine_reaching_defs): Get the mode for the copy from
16818         the extension insn rather than the defining insn.
16819
16820 2014-06-13  Dehao Chen  <dehao@google.com>
16821
16822         * dwarf2out.c (add_linkage_name): Emit more linkage name.
16823
16824 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
16825
16826         * doc/install.texi (--enable-linker-plugin-configure-flags)
16827         (--enable-linker-plugin-flags): Document new flags.
16828
16829 2014-06-13  Martin Jambor  <mjambor@suse.cz>
16830
16831         PR ipa/61186
16832         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16833         cache_token if returning early.
16834
16835 2014-06-13  Nick Clifton  <nickc@redhat.com>
16836
16837         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16838         requested alignment is active.
16839         (LABEL_ALIGN): Likewise.
16840         (LOOP_ALIGN): Likewise.
16841
16842 2014-06-13  Richard Biener  <rguenther@suse.de>
16843
16844         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16845         Rewrite to propagate the VN result into all uses where
16846         possible and to remove stmts becoming dead because of that.
16847         (eliminate): Generalize stmt removal handling, remove in
16848         reverse dominator order to support proper debug stmt
16849         generation.  Update stmts before removing stmts.
16850         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16851
16852 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16853
16854         PR tree-optimization/61375
16855         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16856         symbolic number cannot be represented in an uint64_t.
16857         (find_bswap_or_nop_1): Likewise.
16858
16859 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16860
16861         * symtab.c (symtab_node::reset_section): New method.
16862         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16863         for localization.
16864         * cgraph.h (reset_section): Declare.
16865         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16866         do not consider comdat locals.
16867         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16868         for new symbol.
16869         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16870         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16871         reset sections of symbols dragged out of the comdats.
16872         (function_and_variable_visibility): Reset sections of
16873         localized symbols.
16874
16875 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16876
16877         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16878         to use symtab and decl_binds_to_current_def_p
16879         * tree-vectorizer.c (increase_alignment): Increase alignment
16880         of alias target, too.
16881
16882 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
16883
16884         PR middle-end/61486
16885         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16886         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16887         if outer combined construct is distribute.
16888         (gimplify_omp_for): For OMP_DISTRIBUTE set
16889         gimplify_omp_ctxp->distribute.
16890         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16891         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16892         mapping into decl map.
16893
16894 2014-06-12  Jason Merrill  <jason@redhat.com>
16895
16896         * common.opt (fabi-version): Change default to 0.
16897
16898 2014-06-12  Jason Merrill  <jason@redhat.com>
16899
16900         * toplev.c (process_options): Reject -fabi-version=1.
16901
16902 2014-06-12  Jeff Law  <law@redhat.com>
16903
16904         PR tree-optimization/61009
16905         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16906         value when we stop processing a block due to problematic PHIs.
16907
16908 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
16909
16910         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16911         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16912         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16913         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16914         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16915         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16916         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16917         are not in the spec.
16918
16919 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
16920
16921         PR target/59843
16922         * config/aarch64/aarch64-modes.def: Add V1DFmode.
16923         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16924         Support V1DFmode.
16925
16926 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
16927
16928         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16929
16930 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
16931
16932         PR target/61443
16933         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16934         loading from address spaces.
16935
16936 2014-06-12  Martin Liska  <mliska@suse.cz>
16937
16938         PR ipa/61462
16939         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16940         statement is reachable.
16941
16942 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
16943
16944         * symtab.c (section_hash): New hash.
16945         (symtab_unregister_node): Clear section before freeing.
16946         (hash_section_hash_entry): New haser.
16947         (eq_sections): New function.
16948         (symtab_node::set_section_for_node): New method.
16949         (set_section_1): Update.
16950         (symtab_node::set_section): Take string instead of tree as parameter.
16951         (symtab_resolve_alias): Update.
16952         * cgraph.h (section_hash_entry_d): New structure.
16953         (section_hash_entry): New typedef.
16954         (cgraph_node): Change comdat_group_ to x_comdat_group,
16955         change section_ to x_section and turn into section_hash_entry;
16956         update accestors; put set_section_for_node offline.
16957         * tree.c (decl_section_name): Turn into string.
16958         (set_decl_section_name): Change parameter to be string.
16959         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16960         * sdbout.c (sdbout_one_type): Update.
16961         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16962         * varasm.c (IN_NAMED_SECTION, get_named_section,
16963         resolve_unique_section, hot_function_section, get_named_text_section,
16964         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16965         make_decl_rtl, default_unique_section): Update.
16966         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16967         (c6x_elf_unique_section): Update.
16968         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16969         * config/pa/pa.c (pa_function_section): Update.
16970         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16971         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16972         * config/arc/arc.c (arc_in_small_data_p): Update.
16973         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16974         * config/mcore/mcore.c (mcore_unique_section): Update.
16975         * config/mips/mips.c (mips16_build_function_stub): Update.
16976         (mips16_build_call_stub): Update.
16977         (mips_function_rodata_section): Update.
16978         (mips_in_small_data_p): Update.
16979         * config/score/score.c (score_in_small_data_p): Update.
16980         * config/rx/rx.c (rx_in_small_data): Update.
16981         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16982         (rs6000_xcoff_asm_named_section): Update.
16983         (rs6000_xcoff_unique_section): Update.
16984         * config/frv/frv.c (frv_string_begins_with): Update.
16985         (frv_in_small_data_p): Update.
16986         * config/v850/v850.c (v850_encode_data_area): Update.
16987         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16988         (bfin_handle_l1_data_attribute): Update.
16989         (bfin_handle_l2_attribute): Update.
16990         * config/mep/mep.c (mep_unique_section): Update.
16991         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16992         Update.
16993         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16994         (h8300_handle_tiny_data_attribute): Update.
16995         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16996         (m32r_in_small_data_p): Update.
16997         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16998         * config/i386/i386.c (ix86_in_large_data_p): Update.
16999         * config/i386/winnt.c (i386_pe_unique_section): Update.
17000         * config/darwin.c (darwin_function_section): Update.
17001         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
17002         * tree-emutls.c (get_emutls_init_templ_addr): Update.
17003         (new_emutls_decl): Update.
17004         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
17005         input_varpool_node): Update.
17006         (ead_string_cst): Turn to ...
17007         (read_string): ... this one.
17008         * dwarf2out.c (secname_for_decl): Update.
17009         * asan.c (asan_protect_global): Update.
17010
17011 2014-06-11  DJ Delorie  <dj@redhat.com>
17012
17013         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
17014         cache lines.
17015         * config/rx/rx.c (rx_option_override): Likewise.
17016         (rx_align_for_label): Likewise.
17017
17018         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
17019
17020 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
17021
17022         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
17023         prototype.
17024
17025 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17026
17027         * common.md: New file.
17028         * doc/md.texi: Update description of generic, machine-independent
17029         constraints.
17030         * config/s390/constraints.md (e): Delete.
17031         * Makefile.in (md_file): Include common.md.
17032         * config/m32c/t-m32c (md_file): Likewise.
17033         * genpreds.c (general_mem): New array.
17034         (generic_constraint_letters): Remove constraints now defined by
17035         common.md.
17036         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
17037         Allow the first character to be '<' or '>' as well.
17038         * genoutput.c (general_mem): New array.
17039         (indep_constraints): Remove constraints now defined by common.md.
17040         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
17041         Remove special handling of 'm'.
17042         * ira-costs.c (record_reg_classes): Remove special handling of
17043         constraints now defined by common.md.
17044         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
17045         * ira-lives.c (single_reg_class): Likewise.
17046         (ira_implicitly_set_insn_hard_regs): Likewise.
17047         * lra-constraints.c (reg_class_from_constraints): Likewise.
17048         (process_alt_operands, process_address, curr_insn_transform): Likewise.
17049         * postreload.c (reload_cse_simplify_operands): Likewise.
17050         * reload.c (push_secondary_reload, scratch_reload_class)
17051         (find_reloads, alternative_allows_const_pool_ref): Likewise.
17052         * reload1.c (maybe_fix_stack_asms): Likewise.
17053         * targhooks.c (default_secondary_reload): Likewise.
17054         * stmt.c (parse_output_constraint): Likewise.
17055         * recog.c (preprocess_constraints): Likewise.
17056         (constrain_operands, peep2_find_free_register): Likewise.
17057         (asm_operand_ok): Likewise, but add a comment saying why 'o'
17058         must be handled specially.
17059
17060 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17061
17062         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
17063         * genpreds.c (have_const_dbl_constraints): Delete.
17064         (add_constraint): Don't set it.
17065         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
17066         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
17067         constraints using the lookup_constraint logic.
17068         * ira-lives.c (single_reg_class): Likewise.
17069         * ira.c (ira_setup_alts): Likewise.
17070         * lra-constraints.c (process_alt_operands): Likewise.
17071         * recog.c (asm_operand_ok, constrain_operands): Likewise.
17072         * reload.c (find_reloads): Likewise.
17073
17074 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17075
17076         * genpreds.c (const_int_start, const_int_end): New variables.
17077         (choose_enum_order): Output CONST_INT constraints before memory
17078         constraints.
17079         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
17080         Add CT_CONST_INT.
17081         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
17082         * ira.c (ira_setup_alts): Likewise.
17083         * lra-constraints.c (process_alt_operands): Likewise.
17084         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
17085         * reload.c (find_reloads): Likewise.
17086
17087 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17088
17089         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
17090         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
17091         * recog.c (preprocess_constraints): Update accordingly.
17092
17093 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17094
17095         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
17096         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
17097         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
17098         * genpreds.c (print_type_tree): New function.
17099         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
17100         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
17101         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
17102         Write out enum constraint_type and get_constraint_type.
17103         * lra-constraints.c (satisfies_memory_constraint_p): Take a
17104         constraint_num rather than a constraint string.
17105         (satisfies_address_constraint_p): Likewise.
17106         (reg_class_from_constraints): Avoid old constraint macros.
17107         (process_alt_operands, process_address_1): Likewise.
17108         (curr_insn_transform): Likewise.
17109         * ira-costs.c (record_reg_classes): Likewise.
17110         (record_operand_costs): Likewise.
17111         * ira-lives.c (single_reg_class): Likewise.
17112         (ira_implicitly_set_insn_hard_regs): Likewise.
17113         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
17114         * postreload.c (reload_cse_simplify_operands): Likewise.
17115         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
17116         (constrain_operands, peep2_find_free_register): Likewise.
17117         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
17118         (find_reloads, alternative_allows_const_pool_ref): Likewise.
17119         * reload1.c (maybe_fix_stack_asms): Likewise.
17120         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17121         * targhooks.c (default_secondary_reload): Likewise.
17122         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
17123         to EXTRA_CONSTRAINT_STR.
17124         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
17125
17126 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17127
17128         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
17129         (write_constraint_satisfied_p_array): ...this new function.
17130         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
17131         an array.
17132         (write_insn_preds_c): Update accordingly.
17133
17134 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17135
17136         * genpreds.c (write_lookup_constraint): Rename to...
17137         (write_lookup_constraint_1): ...this.
17138         (write_lookup_constraint_array): New function.
17139         (write_tm_preds_h): Define lookup_constraint as an inline function
17140         that uses write_lookup_constraint_array where possible.
17141         (write_insn_preds_c): Update for the changes above.
17142
17143 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17144
17145         * doc/md.texi (regclass_for_constraint): Rename to...
17146         (reg_class_for_constraint): ...this.
17147         * genpreds.c (num_constraints, enum_order, register_start)
17148         (register_end, satisfied_start, memory_start, memory_end)
17149         (address_start, address_end): New variables.
17150         (add_constraint): Count the number of constraints.
17151         (choose_enum_order): New function.
17152         (write_enum_constraint_num): Iterate over enum_order.
17153         (write_regclass_for_constraint): Rename to...
17154         (write_reg_class_for_constraint_1): ...this and update output
17155         accordingly.
17156         (write_constraint_satisfied_p): Rename to...
17157         (write_constraint_satisfied_p_1): ...this and update output
17158         accordingly.  Do nothing if all extra constraints are register
17159         constraints.
17160         (write_insn_extra_memory_constraint): Delete.
17161         (write_insn_extra_address_constraint): Delete.
17162         (write_range_function): New function.
17163         (write_tm_preds_h): Define constraint_satisfied_p and
17164         reg_class_for_constraint as inline functions that do a range check
17165         before calling the out-of-line function.  Use write_range_function
17166         to implement insn_extra_{register,memory,address}_constraint,
17167         the first of which is new.
17168         (write_insn_preds_c): Update after above changes to write_* functions.
17169         (main): Call choose_enum_order.
17170
17171 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17172
17173         PR tree-optimization/61306
17174         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
17175         expression instead of its size.
17176         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
17177         false to prevent optimization when the result is unpredictable due to
17178         arithmetic right shift of signed type with highest byte is set.
17179         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
17180         (init_symbolic_number): Likewise.
17181         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
17182         when the result is unpredictable due to sign extension.
17183
17184 2014-06-11  Terry Guo  <terry.guo@arm.com>
17185
17186         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
17187         (*thumb1_addsi3): Ditto.
17188         (*thumb_subdi3): Ditto.
17189         (thumb1_subsi3_insn): Ditto.
17190         (*thumb_mulsi3): Ditto.
17191         (*thumb_mulsi3_v6): Ditto.
17192         (*thumb1_andsi3_insn): Ditto.
17193         (thumb1_bicsi3): Ditto.
17194         (*thumb1_iorsi3_insn): Ditto.
17195         (*thumb1_xorsi3_insn): Ditto.
17196         (*thumb1_ashlsi3): Ditto.
17197         (*thumb1_ashrsi3): Ditto.
17198         (*thumb1_lshrsi3): Ditto.
17199         (*thumb1_rotrsi3): Ditto.
17200         (*thumb1_negdi2): Ditto.
17201         (*thumb1_negsi2): Ditto.
17202         (*thumb1_abssi2): Ditto.
17203         (*thumb1_neg_abssi2): Ditto.
17204         (*thumb1_one_cmplsi2): Ditto.
17205         (*thumb1_zero_extendhisi2): Ditto.
17206         (*thumb1_zero_extendqisi2): Ditto.
17207         (*thumb1_zero_extendqisi2_v6): Ditto.
17208         (thumb1_extendhisi2): Ditto.
17209         (thumb1_extendqisi2): Ditto.
17210         (*thumb1_movdi_insn): Ditto.
17211         (*thumb1_movsi_insn): Ditto.
17212         (*thumb1_movhi_insn): Ditto.
17213         (thumb_movhi_clobber): Ditto.
17214         (*thumb1_movqi_insn): Ditto.
17215         (*thumb1_movhf): Ditto.
17216         (*thumb1_movsf_insn): Ditto.
17217         (*thumb_movdf_insn): Ditto.
17218         (movmem12b): Ditto.
17219         (movmem8b): Ditto.
17220         (cbranchqi4): Ditto.
17221         (cbranchsi4_insn): Ditto.
17222         (cbranchsi4_scratch): Ditto.
17223         (*negated_cbranchsi4): Ditto.
17224         (*tbit_cbranch): Ditto.
17225         (*tlobits_cbranch): Ditto.
17226         (*tstsi3_cbranch): Ditto.
17227         (*cbranchne_decr1): Ditto.
17228         (*addsi3_cbranch): Ditto.
17229         (*addsi3_cbranch_scratch): Ditto.
17230         (*thumb_cmpdi_zero): Ditto.
17231         (cstoresi_eq0_thumb1): Ditto.
17232         (cstoresi_ne0_thumb1): Ditto.
17233         (*cstoresi_eq0_thumb1_insn): Ditto.
17234         (*cstoresi_ne0_thumb1_insn): Ditto.
17235         (cstoresi_nltu_thumb1): Ditto.
17236         (cstoresi_ltu_thumb1): Ditto.
17237         (thumb1_addsi3_addgeu): Ditto.
17238         (*thumb_jump): Ditto.
17239         (*call_reg_thumb1_v5): Ditto.
17240         (*call_reg_thumb1): Ditto.
17241         (*call_value_reg_thumb1_v5): Ditto.
17242         (*call_value_reg_thumb1): Ditto.
17243         (*call_insn): Ditto.
17244         (*call_value_insn): Ditto.
17245         (thumb1_casesi_internal_pic): Ditto.
17246         (thumb1_casesi_dispatch): Ditto.
17247         (*thumb1_indirect_jump): Ditto.
17248         (prologue_thumb1_interwork): Ditto.
17249         (*epilogue_insns): Ditto.
17250         (consttable_1): Ditto.
17251         (consttable_2): Ditto.
17252         (tablejump): Ditto.
17253         (*thumb1_tablejump): Ditto.
17254         (thumb_eh_return): Ditto.
17255         (define_peephole2): Two of them are thumb1 only and got moved into
17256         new file thumb1.md.
17257         (define_split): Six of them are thumb1 only and got moved into new
17258         file thumb1.md.
17259         * config/arm/thumb1.md: New file comprised of above thumb1 only
17260         patterns.
17261
17262 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17263
17264         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
17265         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
17266         dependencies.
17267         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
17268         (aarch64_crc_builtin_datum): New struct.
17269         (aarch64_crc_builtin_data): New.
17270         (aarch64_init_crc32_builtins): New function.
17271         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
17272         (aarch64_crc32_expand_builtin): New.
17273         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
17274         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17275         __ARM_FEATURE_CRC32 when appropriate.
17276         (TARGET_CRC32): Define.
17277         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
17278         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
17279         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
17280         (aarch64_<crc_variant>): New pattern.
17281         * config/aarch64/arm_acle.h: New file.
17282         * config/aarch64/iterators.md (CRC): New int iterator.
17283         (crc_variant, crc_mode): New int attributes.
17284         * doc/aarch64-acle-intrinsics.texi: New file.
17285         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
17286         Include aarch64-acle-intrinsics.texi.
17287
17288 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
17289
17290         * tree-vect-data-refs.c (vect_grouped_store_supported): New
17291         check for stores group of length 3.
17292         (vect_permute_store_chain): New permutations for stores group of
17293         length 3.
17294         * tree-vect-stmts.c (vect_model_store_cost): Change cost
17295         of vec_perm_shuffle for the new permutations.
17296
17297 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
17298
17299         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
17300         table rewriting temporarily on targets not supporting ONE_ONLY.
17301
17302 2014-06-11  Richard Biener  <rguenther@suse.de>
17303
17304         PR middle-end/61437
17305         Revert
17306         2014-06-04  Richard Biener  <rguenther@suse.de>
17307
17308         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17309         TREE_PUBLIC and DECL_EXTERNAL decls.
17310
17311 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
17312
17313         * varasm.c (set_implicit_section): New function.
17314         (resolve_unique_section): Use it to set implicit section
17315         for aliases, too.
17316         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
17317         (default_function_section): Likewise.
17318         (decl_binds_to_current_def_p): Constify argument.
17319         * varasm.h (decl_binds_to_current_def_p): Update prototype.
17320         * asan.c (asan_protect_global): Use
17321         symtab_get_node (decl)->implicit_section.
17322         * symtab.c (dump_symtab_base): Dump implicit sections.
17323         (verify_symtab_base): Verify sanity of sectoins and comdats.
17324         (symtab_resolve_alias): Alias share the section of its target.
17325         (set_section_1): New function.
17326         (symtab_node::set_section): Move here, recurse to aliases.
17327         (verify_symtab): Check for duplicated symtab lists.
17328         * tree-core.h (implicit_section_name_p): Remove.
17329         * tree-vect-data-refs.c: Include varasm.h.
17330         (vect_can_force_dr_alignment_p): Fix conditional on when
17331         decl bints to current definition; use
17332         symtab_get_node (decl)->implicit_section.
17333         * cgraph.c (cgraph_make_node_local_1): Fix section set.
17334         * cgraph.h (struct symtab_node): Add implicit_section.
17335         (set_section): Rename to ...
17336         (set_section_for_node): ... this one.
17337         (set_section): Declare.
17338         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
17339         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17340         input_overwrite_node, input_varpool_node): Stream implicit_section.
17341         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
17342         removal; it will fail in LTO.
17343
17344 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17345
17346         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
17347         Change second alternative type to f_mcr.
17348         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
17349         and 12th alternatives' types to f_mcr and f_mrc.
17350         (*movdi_aarch64): Same for 12th and 13th alternatives.
17351         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
17352         (aarch64_movtilow_tilow): Change type to fmov.
17353
17354 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
17355
17356         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
17357         (aarch64_save_or_restore_callee_save_registers): Fix layout.
17358
17359 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17360
17361         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
17362         New expander.
17363         (aarch64_sqrdmulh_lane<mode>): Likewise.
17364         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17365         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17366         (aarch64_sqdmulh_laneq<mode>): New expander.
17367         (aarch64_sqrdmulh_laneq<mode>): Likewise.
17368         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
17369         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
17370         (aarch64_sqdmulh_lane<mode>): New expander.
17371         (aarch64_sqrdmulh_lane<mode>): Likewise.
17372         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17373         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17374         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
17375         (aarch64_sqdmlal_laneq<mode>): Likewise.
17376         (aarch64_sqdmlsl_lane<mode>): Likewise.
17377         (aarch64_sqdmlsl_laneq<mode>): Likewise.
17378         (aarch64_sqdmlal2_lane<mode>): Likewise.
17379         (aarch64_sqdmlal2_laneq<mode>): Likewise.
17380         (aarch64_sqdmlsl2_lane<mode>): Likewise.
17381         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17382         (aarch64_sqdmull_lane<mode>): Likewise.
17383         (aarch64_sqdmull_laneq<mode>): Likewise.
17384         (aarch64_sqdmull2_lane<mode>): Likewise.
17385         (aarch64_sqdmull2_laneq<mode>): Likewise.
17386
17387 2014-06-10  Richard Biener  <rguenther@suse.de>
17388
17389         PR tree-optimization/61438
17390         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
17391         (eliminate_dom_walker::before_dom_children): Only try to inhibit
17392         insertion of IVs if running PRE.
17393         (eliminate): Adjust.
17394         (pass_pre::execute): Likewise.
17395         (pass_fre::execute): Likewise.
17396
17397 2014-06-10  Richard Biener  <rguenther@suse.de>
17398
17399         PR middle-end/61456
17400         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17401         Do not use the main variant for the type comparison.
17402         (ncr_compar): Likewise.
17403         (nonoverlapping_component_refs_p): Likewise.
17404
17405 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17406
17407         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
17408         REG_CFA_RESTORE mode.
17409
17410 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
17411
17412         * config/i386/i386.c (expand_vec_perm_pblendv): New.
17413         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
17414         expand_vec_perm_pblendv.
17415
17416 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17417
17418         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
17419         available.
17420         Simplify description of __crc32d and __crc32cd intrinsics.
17421         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
17422         availability.
17423
17424 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17425
17426         PR lto/61334
17427         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
17428         * config.in: Regenerate.
17429         * configure: Likewise.
17430
17431 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
17432
17433         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
17434         and public vars.
17435         (intersect_static_var_sets): Remove.
17436         (propagate): Do not prune local statics.
17437
17438 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
17439
17440         PR fortran/60928
17441         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
17442         Set lastprivate_firstprivate even if omp_private_outer_ref
17443         langhook returns true.
17444         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
17445         langhook, call unshare_expr on new_var and call
17446         build_outer_var_ref to get the last argument.
17447
17448 2014-06-10  Marek Polacek  <polacek@redhat.com>
17449
17450         PR c/60988
17451         * doc/extend.texi: Add cindex for transparent_union.
17452
17453 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17454
17455         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
17456         init_symbolic_number ().
17457
17458 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
17459
17460         PR middle-end/61141
17461         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
17462         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
17463         (verify_rtl_sharing): Likewise.
17464
17465 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
17466
17467         PR c++/54442
17468         * tree.c (build_qualified_type): Use a canonical type for
17469         TYPE_CANONICAL.
17470
17471 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17472
17473         * config/arm/arm-modes.def: Remove XFmode.
17474
17475 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
17476
17477         PR target/61062
17478         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
17479         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
17480         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
17481         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
17482         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
17483         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
17484         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
17485         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
17486         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
17487
17488 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
17489
17490         * tree-core.h (tree_decl_with_vis): Remove section_name.
17491
17492 2014-06-09  Kito Cheng  <kito@0xlab.org>
17493
17494         * ira.c (ira): Don't call init_caller_save if LRA enabled
17495         since LRA use its own infrastructure to handle that.
17496
17497 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17498
17499         * symtab.c (dump_symtab_base): Update dumping.
17500         (symtab_make_decl_local): Clear only DECL_COMDAT.
17501         * tree-vect-data-refs.c (Check that variable is static before
17502         tampering with sections.
17503         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
17504         (cgraph_create_virtual_clone): Likewise.
17505         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
17506         (decl_section_name, set_decl_section_name): New accessors.
17507         (find_decls_types_r): Do not walk section name
17508         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
17509         (decl_comdat_group, decl_comdat_group_id): Constify.
17510         (decl_section_name, set_decl_section_name): Update.
17511         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
17512         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
17513         (cgraph_make_node_local_1): Clear section and comdat group.
17514         * cgraph.h (set_comdat_group): Sanity check.
17515         (get_section, set_section): New.
17516         * ipa-comdats.c (ipa_comdats): Use get_section.
17517         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
17518         * lto-streamer-out.c: Do not follow section names.
17519         * c-family/c-common.c (handle_section_attribute): Update.
17520         * lto-cgraph.c (lto_output_node): Output section.
17521         (lto_output_varpool_node): Likewise.
17522         (read_comdat_group): Rename to ...
17523         (read_identifier): ... this one.
17524         (read_string_cst): New function.
17525         (input_node, input_varpool_node): Input section names.
17526         * tree-emutls.c (get_emutls_init_templ_addr): Update.
17527         (new_emutls_decl): Update.
17528         (secname_for_decl): Check section names only of static vars.
17529         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
17530         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
17531         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17532         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17533         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
17534         * config/mcore/mcore.c (mcore_unique_section): Likewise.
17535         * config/mips/mips.c (mips16_build_function_stub): Likewise.
17536         * config/v850/v850.c (v850_insert_attributes): Likewise.
17537         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
17538         Likewise.
17539         (h8300_handle_tiny_data_attribute): Likewise.
17540         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
17541         (bfin_handle_l2_attribute): Likewise.
17542
17543 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17544
17545         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
17546         remove static initializer.
17547
17548 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17549
17550         * varasm.c (use_blocks_for_decl_p): Check symbol table
17551         instead of alias attribute.
17552         (place_block_symbol): Recurse on aliases.
17553
17554 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17555
17556         * ipa-visibility.c: Include varasm.h
17557         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
17558
17559 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17560
17561         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
17562         outputting aliases.
17563
17564 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
17565
17566         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
17567         from test_insn into GGC space escape via SET_SRC.
17568
17569 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
17570
17571         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
17572         call statement, if any.
17573         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
17574         statements, if any.  Tidy up.
17575
17576 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17577
17578         PR target/61431
17579         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
17580         iterators, VSX_D that handles 64-bit types, and VSX_LE that
17581         handles swapping the two 64-bit double words on little endian
17582         systems.  Include V1TImode and optionally TImode in VSX_LE so that
17583         these types are properly swapped.  Change all of the insns and
17584         splits that do the 64-bit swaps to use VSX_LE.
17585         (vsx_le_perm_load_<mode>): Likewise.
17586         (vsx_le_perm_store_<mode>): Likewise.
17587         (splitters for little endian memory operations): Likewise.
17588         (vsx_xxpermdi2_le_<mode>): Likewise.
17589         (vsx_lxvd2x2_le_<mode>): Likewise.
17590         (vsx_stxvd2x2_le_<mode>): Likewise.
17591
17592 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
17593
17594         PR target/61423
17595         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
17596         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17597         and corresponding splitters.  Zero extend general register
17598         or memory input operand to XMM temporary.  Enable for
17599         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17600         (floatunssi<mode>2): Update expander predicate.
17601
17602 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
17603
17604         PR rtl-optimization/61325
17605         * lra-constraints.c (process_address_1): Check scale equal to one
17606         to prevent transformation: base + scale * index => base + new_reg.
17607
17608 2014-06-06  Richard Biener  <rguenther@suse.de>
17609
17610         PR tree-optimization/59299
17611         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17612         a def operand.
17613         (nearest_common_dominator_of_uses): Likewise.
17614         (statement_sink_location): Adjust.  Support sinking loads.
17615
17616 2014-06-06  Martin Jambor  <mjambor@suse.cz>
17617
17618         * ipa-prop.c (get_place_in_agg_contents_list): New function.
17619         (build_agg_jump_func_from_list): Likewise.
17620         (determine_known_aggregate_parts): Renamed to
17621         determine_locally_known_aggregate_parts.  Moved some functionality
17622         to the two functions above, removed bound checks.
17623
17624 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
17625
17626         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17627         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17628         (aarch64_progress_pointer): Likewise.
17629         (aarch64_copy_one_part_and_move_pointers): Likewise.
17630         (aarch64_expand_movmen): Likewise.
17631         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17632         * config/aarch64/aarch64.md (movmem<mode>): New.
17633
17634 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
17635
17636         * targhooks.c (default_add_stmt_cost): Call target specific
17637         hook instead of default one.
17638
17639 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17640
17641         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17642         endianness instead of host endianness.
17643         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17644         comments.
17645
17646 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17647
17648         PR debug/53927
17649         * function.c (instantiate_decls): Process the saved static chain.
17650         (expand_function_start): If not optimizing, save the static chain
17651         onto the stack.
17652         * tree-nested.c (convert_all_function_calls): Always create the static
17653         chain for nested functions if not optimizing.
17654
17655 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17656
17657         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17658
17659 2014-06-06  Richard Biener  <rguenther@suse.de>
17660
17661         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17662         (construct_init_block): Likewise.
17663         (construct_exit_block): Likewise.
17664         (pass_expand::execute): Likewise.
17665         * graphite.c (graphite_transforms): Replace check for current_loops
17666         with a check for > 1 loops.
17667         (pass_graphite_transforms::execute): Adjust.
17668         * ipa-split.c (split_function): Remove check for current_loops.
17669         * omp-low.c (expand_parallel_call): Likewise.
17670         (expand_omp_for_init_counts): Likewise.
17671         (extract_omp_for_update_vars): Likewise.
17672         (expand_omp_for_generic): Likewise.
17673         (expand_omp_sections): Likewise.
17674         (expand_omp_target): Likewise.
17675         * tracer.c (tail_duplicate): Likewise.
17676         (pass_tracer::execute): Likewise.
17677         * trans-mem.c (expand_transaction): Likewise.
17678         * tree-complex.c (expand_complex_div_wide): Likewise.
17679         * tree-eh.c (lower_resx): Likewise.
17680         (cleanup_empty_eh_merge_phis): Likewise.
17681         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17682         current_loops with a check for > 1 loops.
17683         (pass_predcom::execute): Adjust.
17684         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17685         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17686         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17687         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17688         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17689         * tree-switch-conversion.c (process_switch): Likewise.
17690         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17691         * tree-vrp.c (vrp_visit_phi_node): Likewise.
17692         (execute_vrp): Likewise.
17693         * ubsan.c (ubsan_expand_null_ifn): Likewise.
17694
17695 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17696
17697         * rtl.h (insn_location): Declare.
17698         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17699         with UNKNOWN_LOCATION.
17700         * emit-rtl.c (insn_location): New function.
17701         * final.c (notice_source_line): Check that the instruction has a
17702         location before retrieving it and use insn_location.
17703         * modulo-sched.c (loop_single_full_bb_p): Likewise.
17704         * print-rtl.c (print_rtx): Likewise.
17705
17706 2014-06-06  Richard Biener  <rguenther@suse.de>
17707
17708         * passes.def: Move 2nd VRP pass before phi-only-cprop.
17709
17710 2014-06-06  Christian Bruel  <christian.bruel@st.com>
17711
17712         PR tree-optimization/43934
17713         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17714         cost.
17715
17716 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
17717
17718         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
17719         return NO_REGS for extra address and memory constraints.  Handle
17720         operands that match (or are equivalent to something that matches)
17721         extra constant constraints.  Ignore other non-register operands.
17722
17723 2014-06-06  Alan Modra  <amodra@gmail.com>
17724
17725         PR target/61300
17726         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17727         * doc/tm.texi: Regenerate.
17728         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17729         Use throughout in place of REG_PARM_STACK_SPACE.
17730         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17731         "incoming" param.  Pass to rs6000_function_parms_need_stack.
17732         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17733         prototype_p when incoming.  Use function decl when incoming
17734         to handle K&R style functions.
17735         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17736         (INCOMING_REG_PARM_STACK_SPACE): Define.
17737
17738 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17739
17740         PR target/52472
17741         * cfgexpand.c (expand_debug_expr): Use address space of nested
17742         TREE_TYPE for ADDR_EXPR and MEM_REF.
17743
17744 2014-06-05  Jeff Law  <law@redhat.com>
17745
17746         PR tree-optimization/61289
17747         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17748         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
17749         looking for those which match LHS.  All callers changed.
17750         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17751         parameters and code which manipulated them.  All callers changed.
17752         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17753         and DST_MAP parameters.  Simplify invalidation code by just calling
17754         invalidate_equivalences.  All callers changed.
17755         (thread_across_edge): Simplify now that we don't need to maintain
17756         the map of equivalences to invalidate.
17757
17758 2014-06-05  Kai Tietz  <ktietz@redhat.com>
17759             Richard Henderson  <rth@redhat.com>
17760
17761         PR target/46219
17762         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17763         checking for !TARGET_X32.
17764         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17765         (sibcall_intern): New define_insn, plus required peepholes.
17766         (sibcall_pop_intern): Likewise.
17767         (sibcall_value_intern): Likewise.
17768         (sibcall_value_pop_intern): Likewise.
17769
17770 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
17771
17772         * tree-inline.c (tree_function_versioning): Check DF info existence
17773         before accessing it.
17774
17775 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17776
17777         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17778         frame_size.
17779         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17780         aarch64_frame hard_fp_offset and frame_size.
17781         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17782         frame_size; remove original_frame_size.
17783         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17784         (aarch64_initial_elimination_offset): Remove frame_size and
17785         offset.  Use aarch64_frame frame_size.
17786
17787 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17788             Jiong Wang  <jiong.wang@arm.com>
17789             Renlin  <renlin.li@arm.com>
17790
17791         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17792         initialization of R30 offset.  Update offset.  Iterate core
17793         regisers upto X30.  Remove X29, X30 specific code.
17794
17795 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17796             Jiong Wang  <jiong.wang@arm.com>
17797
17798         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17799         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17800         (aarch64_register_saved_on_entry): Adjust test.
17801
17802 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17803
17804         * config/aarch64/aarch64.h (machine_function): Move
17805         saved_varargs_size from here...
17806         (aarch64_frame): ... to here.
17807
17808         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17809         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17810         (aarch64_initial_elimination_offset)
17811         (aarch64_setup_incoming_varargs): Adjust location of
17812         saved_varargs_size.
17813
17814 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17815
17816         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17817         layout comment.
17818
17819 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
17820             Prachi Godbole  <Prachi.Godbole@imgtec.com>
17821
17822         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
17823         mips32r5 entry to use PROCESSOR_P5600.
17824         * config/mips/mips-tables.opt: Regenerate.
17825         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17826         * config/mips/mips.c (mips_fmadd_bypass): New function.
17827         (mips_rtx_cost_data): Add costs for p5600.
17828         (mips_issue_rate): Add support for p5600.
17829         (mips_multipass_dfa_lookahead): Likewise.
17830         * config/mips/mips.h (TUNE_P5600): New define.
17831         (TUNE_MACC_CHAINS): Add TUNE_P5600.
17832         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17833         * config/mips/mips.md: Include p5600.md.
17834         (processor): Add p5600.
17835         * config/mips/p5600.md: New file.
17836
17837 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
17838
17839         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17840         * config/i386/predicates.md (palignr_operand): New.
17841         Indicates if permutation is suitable for palignr instruction.
17842
17843 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
17844
17845         PR tree-optimization/61319
17846         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17847         stmt belongs to loop.
17848
17849 2014-06-05  Richard Biener  <rguenther@suse.de>
17850
17851         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17852         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17853         (lookup_tmp_var): Adjust.
17854         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17855
17856 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17857
17858         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17859
17860 2014-06-05  Marek Polacek  <polacek@redhat.com>
17861
17862         PR c/49706
17863         * doc/invoke.texi: Document -Wlogical-not-parentheses.
17864
17865 2014-06-04  Tom de Vries  <tom@codesourcery.com>
17866
17867         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17868         CONST_INT.
17869
17870 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
17871
17872         PR tree-optimization/61385
17873         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17874
17875 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
17876
17877         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
17878         changed to use fatal_error.
17879         (main): Ensure lto_wrapper_cleanup is run atexit.
17880
17881 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17882
17883         * lra-constraints.c (valid_address_p): Move earlier in file.
17884         (address_eliminator): New structure.
17885         (satisfies_memory_constraint_p): New function.
17886         (satisfies_address_constraint_p): Likewise.
17887         (process_alt_operands, process_address, curr_insn_transform): Use them.
17888
17889 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17890
17891         * lra-int.h (lra_static_insn_data): Make operand_alternative a
17892         const pointer.
17893         (target_lra_int, default_target_lra_int, this_target_lra_int)
17894         (op_alt_data): Delete.
17895         * lra.h (lra_init): Delete.
17896         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17897         (init_insn_code_data_once): Remove op_alt_data handling.
17898         (finish_insn_code_data_once): Likewise.
17899         (init_op_alt_data): Delete.
17900         (get_static_insn_data): Initialize operand_alternative to null.
17901         (free_insn_recog_data): Cast operand_alternative before freeing it.
17902         (setup_operand_alternative): Take the operand_alternative as
17903         parameter and assume it isn't already cached in the static
17904         insn data.
17905         (lra_set_insn_recog_data): Update accordingly.
17906         (lra_init): Delete.
17907         * ira.c (ira_init): Don't call lra_init.
17908         * target-globals.h (this_target_lra_int): Declare.
17909         (target_globals): Remove lra_int.
17910         (restore_target_globals): Update accordingly.
17911         * target-globals.c: Don't include lra-int.h.
17912         (default_target_globals, save_target_globals): Remove lra_int.
17913
17914 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17915
17916         * recog.h (operand_alternative): Convert reg_class, reject,
17917         matched and matches into bitfields.
17918         (preprocess_constraints): New overload.
17919         (preprocess_insn_constraints): New function.
17920         (preprocess_constraints): Take the insn as parameter.
17921         (recog_op_alt): Change into a pointer.
17922         (target_recog): Add x_op_alt.
17923         * recog.c (asm_op_alt): New variable.
17924         (recog_op_alt): Change into a pointer.
17925         (preprocess_constraints): New overload, replacing the old function
17926         definition with one that doesn't use global state.
17927         (preprocess_insn_constraints): New function.
17928         (preprocess_constraints): Use them.  Take the insn as parameter.
17929         Use asm_op_alt for asms.
17930         (recog_init): Free existing x_op_alt entries.
17931         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17932         pointer const.
17933         (make_early_clobber_and_input_conflicts): Likewise.
17934         (process_bb_node_lives): Pass the insn to process_constraints.
17935         * reg-stack.c (check_asm_stack_operands): Likewise.
17936         (subst_asm_stack_regs): Likewise.
17937         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17938         * regrename.c (build_def_use): Likewise.
17939         * sched-deps.c (sched_analyze_insn): Likewise.
17940         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17941         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17942         (note_invalid_constants): Likewise.
17943         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17944         (ix86_legitimate_combined_insn): Make operand_alternative pointer
17945         const.
17946
17947 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17948
17949         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17950         * ira-lives.c (check_and_make_def_conflict): Check for disabled
17951         alternatives.
17952         (make_early_clobber_and_input_conflicts): Likewise.
17953         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17954
17955 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17956
17957         * recog.h (alternative_class): New function.
17958         (which_op_alt): Return a const recog_op_alt.
17959         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17960         (subst_asm_stack_regs): Likewise.
17961         * config/arm/arm.c (note_invalid_constants): Likewise.
17962         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
17963         the operand_alternative; use alternative class instead.
17964         * sel-sched.c (get_reg_class): Likewise.
17965         * regrename.c (build_def_use): Likewise.
17966         (hide_operands, restore_operands, record_out_operands): Update type
17967         accordingly.
17968
17969 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17970
17971         * recog.h (recog_op_alt): Convert to a flat array.
17972         (which_op_alt): New function.
17973         * recog.c (recog_op_alt): Convert to a flat array.
17974         (preprocess_constraints): Update accordingly, grouping all
17975         operands of the same alternative together, rather than the
17976         other way around.
17977         * ira-lives.c (check_and_make_def_conflict): Likewise.
17978         (make_early_clobber_and_input_conflicts): Likewise.
17979         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17980         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17981         (subst_asm_stack_regs): Likewise.
17982         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17983         * regrename.c (hide_operands, record_out_operands): Likewise.
17984         (build_def_use): Likewise.
17985         * sel-sched.c (get_reg_class): Likewise.
17986         * config/arm/arm.c (note_invalid_constants): Likewise.
17987
17988 2014-06-04  Jason Merrill  <jason@redhat.com>
17989
17990         PR c++/51253
17991         PR c++/61382
17992         * gimplify.c (gimplify_arg): Non-static.
17993         * gimplify.h: Declare it.
17994
17995 2014-06-04  Richard Biener  <rguenther@suse.de>
17996
17997         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17998         TREE_PUBLIC and DECL_EXTERNAL decls.
17999
18000 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
18001
18002         * regcprop.c (copyprop_hardreg_forward_1): Account for
18003         HARD_REGNO_CALL_PART_CLOBBERED.
18004
18005 2014-06-04  Richard Biener  <rguenther@suse.de>
18006
18007         * configure.ac: Check whether the underlying type of int64_t
18008         is long or long long.
18009         * configure: Regenerate.
18010         * config.in: Likewise.
18011         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
18012         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18013
18014 2014-06-04  Richard Biener  <rguenther@suse.de>
18015
18016         PR tree-optimization/60098
18017         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
18018         we hit a kill.
18019         (dse_optimize_stmt): Simplify, now that we found a kill
18020         earlier.
18021
18022 2014-06-04  Richard Biener  <rguenther@suse.de>
18023
18024         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
18025         of accesses with non-invariant address.
18026
18027 2014-06-04  Martin Liska  <mliska@suse.cz>
18028
18029         * cgraph.h (cgraph_make_wrapper): New function introduced.
18030         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
18031         * ipa-inline.h (inline_analyze_function): The function is global.
18032         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
18033
18034 2014-06-04  Martin Liska  <mliska@suse.cz>
18035
18036         * tree.h (private_lookup_attribute_starting): New function.
18037         (lookup_attribute_starting): Likewise.
18038         * tree.c (private_lookup_attribute_starting): Likewise.
18039
18040 2014-06-04  Martin Liska  <mliska@suse.cz>
18041
18042         * cgraph.h (expand_thunk): New argument added.
18043         (address_taken_from_non_vtable_p): New global function.
18044         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
18045         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
18046         * cgraphunit.c (analyze_function): Likewise.
18047         (assemble_thunks_and_aliases): Argument added to call.
18048         (expand_thunk): New argument forces to produce GIMPLE thunk.
18049
18050 2014-06-04  Martin Liska  <mliska@suse.cz>
18051
18052         * coverage.h (coverage_compute_cfg_checksum): Argument added.
18053         * coverage.c (coverage_compute_cfg_checksum): Likewise.
18054         * profile.c (branch_prob): Likewise.
18055
18056 2014-06-04  Martin Jambor  <mjambor@suse.cz>
18057
18058         PR ipa/61340
18059         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
18060         handler for switch on an ipa_ref_use enum.
18061         * ipa-reference.c (analyze_function): Likewise.
18062
18063 2014-06-04  Kai Tietz  <ktietz@redhat.com>
18064
18065         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
18066         from old call-instruction.
18067
18068 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
18069
18070         * config/aarch64/aarch64.c (aarch64_classify_address)
18071         (aarch64_legitimize_reload_address): Support full addressing modes
18072         for vector modes.
18073         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
18074         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
18075
18076 2014-06-03  Andrew Pinski  <apinski@cavium.com>
18077
18078         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
18079         for OP0.
18080
18081 2014-06-03  Andrew Pinski  <apinski@cavium.com>
18082
18083         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
18084         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
18085
18086 2014-06-03  Kai Tietz  <ktietz@redhat.com>
18087
18088         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
18089         for 64-bit ms-abi.
18090
18091 2014-06-03  Dehao Chen  <dehao@google.com>
18092
18093         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
18094         the same loop.
18095
18096 2014-06-03  Marek Polacek  <polacek@redhat.com>
18097
18098         PR c/60439
18099         * doc/invoke.texi: Document -Wswitch-bool.
18100         * function.c (stack_protect_epilogue): Cast controlling expression of
18101         the switch to int.
18102         * gengtype.c (walk_type): Generate switch expression with its
18103         controlling expression cast to int.
18104
18105 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
18106
18107         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
18108         and attiny841.
18109         * config/avr/avr-tables.opt: Regenerate.
18110         * config/avr/t-multilib: Regenerate.
18111         * doc/avr-mmcu.texi: Regenerate.
18112
18113 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
18114             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18115
18116         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
18117         (ata6617c, ata664251): Add new avr35 devices.
18118         (ata6612c): Add new avr4 device.
18119         (ata6613c, ata6614q): Add new avr5 devices.
18120         * config/avr/avr-tables.opt: Regenerate.
18121         * config/avr/t-multilib: Regenerate.
18122         * doc/avr-mmcu.texi: Regenerate.
18123
18124 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18125
18126         * gcc/config/aarch64/aarch64-builtins.c
18127         (aarch64_types_binop_ssu_qualifiers): New static data.
18128         (TYPES_BINOP_SSU): Define.
18129         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
18130         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
18131         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
18132         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
18133         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
18134         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
18135         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
18136         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
18137         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
18138         suffix to builtin function name, remove cast.
18139         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
18140         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
18141         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
18142
18143 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18144
18145         * gcc/config/aarch64/aarch64-builtins.c
18146         (aarch64_types_binop_uus_qualifiers,
18147         aarch64_types_shift_to_unsigned_qualifiers,
18148         aarch64_types_unsigned_shiftacc_qualifiers): Define.
18149         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
18150         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
18151         sqshlu_n, uqshl_n): Update qualifiers.
18152         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
18153         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
18154         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
18155         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
18156         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
18157         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
18158         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
18159         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
18160         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
18161         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
18162         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
18163         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
18164         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
18165         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
18166         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
18167         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
18168         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
18169         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
18170         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
18171         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
18172         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
18173         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
18174         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
18175         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
18176         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
18177         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
18178         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
18179
18180 2014-06-03  Teresa Johnson  <tejohnson@google.com>
18181
18182         * tree-sra.c (modify_function): Record caller nodes after rebuild.
18183
18184 2014-06-02  Jason Merrill  <jason@redhat.com>
18185
18186         PR c++/61020
18187         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
18188
18189 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18190
18191         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
18192         location == 0.
18193
18194 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18195
18196         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
18197         New pattern.
18198         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
18199         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
18200         * config/aarch64/iterators.md (REVERSE): New iterator.
18201         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
18202         (rev_op): New int_attribute.
18203         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
18204         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
18205         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
18206         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
18207         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
18208         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
18209         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
18210         Replace temporary __asm__ with __builtin_shuffle.
18211
18212 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18213
18214         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
18215         mips64r5.
18216         * config/mips/mips-tables.opt: Regenerate.
18217         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
18218         to use mips_isa_rev rather than ISA_MIPS32R2.
18219         * config/mips/mips.h (ISA_MIPS32R3): New define.
18220         (ISA_MIPS32R5): New define.
18221         (ISA_MIPS64R3): New define.
18222         (ISA_MIPS64R5): New define.
18223         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
18224         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
18225         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
18226         and mips64r5.
18227         (MIPS_ISA_SYNCI_SPEC): Likewise.
18228         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
18229         (LINK_SPEC): Added mips32r3 and mips32r5.
18230         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
18231         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
18232         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
18233         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
18234         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
18235         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
18236         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
18237
18238 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18239
18240         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
18241         options.
18242         * config/mips/mips.opt (mxpa): New option.
18243         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
18244         assembler.
18245
18246 2014-06-03  Martin Jambor  <mjambor@suse.cz>
18247
18248         PR ipa/61160
18249         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
18250         thunks.
18251
18252 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18253
18254         PR tree-optimization/61328
18255         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
18256         initialization from find_bswap_or_nop_1.
18257         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
18258         in source_expr2 before using the size value the function sets. Also
18259         make use of init_symbolic_number () in both the old place and
18260         find_bswap_or_nop_load () to avoid reading uninitialized memory when
18261         doing recursion in the GIMPLE_BINARY_RHS case.
18262
18263 2014-06-03  Richard Biener  <rguenther@suse.de>
18264
18265         PR tree-optimization/61383
18266         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
18267         stmts can't trap.
18268
18269 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
18270
18271         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
18272         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
18273         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
18274         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
18275         in this file.
18276         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
18277         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
18278         * system.h: ...here and make it unconditional.
18279         * target.def (conditional_register_usage): Mention
18280         define_register_constraint instead of old-style constraint macros.
18281         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
18282         * doc/tm.texi: Regenerate.
18283         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
18284         protected by !USE_MD_CONSTRAINTS.
18285         * config/frv/frv.md: Remove quote from old version of documentation.
18286         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
18287         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
18288         CONST_DOUBLE_OK_FOR_LETTER.
18289         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
18290
18291 2014-06-02  Andrew Pinski  <apinski@cavium.com>
18292
18293         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
18294         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
18295         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
18296         file whose name depends on -mabi= and -mbig-endian.
18297         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
18298         Handle LP64 better and handle ilp32 too.
18299         (MULTILIB_OPTIONS): Delete.
18300         (MULTILIB_DIRNAMES): Delete.
18301
18302 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
18303
18304         * expr.h: Remove prototypes of functions defined in builtins.c.
18305         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
18306         Remove prototypes of functions defined in builtins.c.
18307         * builtins.h: Update prototype list to include all exported functions.
18308         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
18309         no_c99_libc_has_function): Move to targhooks.c
18310         (build_string_literal, build_call_expr_loc_array,
18311         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
18312         to tree.c.
18313         (expand_builtin_object_size, fold_builtin_object_size): Make static.
18314         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
18315         no_c99_libc_has_function): Relocate from builtins.c.
18316         * tree.c: Include builtins.h.
18317         (build_call_expr_loc_array, build_call_expr_loc_vec,
18318         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
18319         from builtins.c.
18320         * fold-const.h (fold_fma): Move prototype to builtins.h.
18321         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
18322         * asan.c: Include builtins.h.
18323         * cfgexpand.c: Likewise.
18324         * convert.c: Likewise.
18325         * emit-rtl.c: Likewise.
18326         * except.c: Likewise.
18327         * expr.c: Likewise.
18328         * fold-const.c: Likewise.
18329         * gimple-fold.c: Likewise.
18330         * gimple-ssa-strength-reduction.c: Likewise.
18331         * gimplify.c: Likewise.
18332         * ipa-inline.c: Likewise.
18333         * ipa-prop.c: Likewise.
18334         * lto-streamer-out.c: Likewise.
18335         * stmt.c: Likewise.
18336         * tree-inline.c: Likewise.
18337         * tree-object-size.c: Likewise.
18338         * tree-sra.c: Likewise.
18339         * tree-ssa-ccp.c: Likewise.
18340         * tree-ssa-forwprop.c: Likewise.
18341         * tree-ssa-loop-ivcanon.c: Likewise.
18342         * tree-ssa-loop-ivopts.c: Likewise.
18343         * tree-ssa-math-opts.c: Likewise.
18344         * tree-ssa-reassoc.c: Likewise.
18345         * tree-ssa-threadedge.c: Likewise.
18346         * tree-streamer-in.c: Likewise.
18347         * tree-vect-data-refs.c: Likewise.
18348         * tree-vect-patterns.c: Likewise.
18349         * tree-vect-stmts.c: Likewise.
18350         * config/aarch64/aarch64.c: Likewise.
18351         * config/alpha/alpha.c: Likewise.
18352         * config/arc/arc.c: Likewise.
18353         * config/arm/arm.c: Likewise.
18354         * config/avr/avr.c: Likewise.
18355         * config/bfin/bfin.c: Likewise.
18356         * config/c6x/c6x.c: Likewise.
18357         * config/cr16/cr16.c: Likewise.
18358         * config/cris/cris.c: Likewise.
18359         * config/epiphany/epiphany.c: Likewise.
18360         * config/fr30/fr30.c: Likewise.
18361         * config/frv/frv.c: Likewise.
18362         * config/h8300/h8300.c: Likewise.
18363         * config/i386/i386.c: Likewise.
18364         * config/i386/winnt.c: Likewise.
18365         * config/ia64/ia64.c: Likewise.
18366         * config/iq2000/iq2000.c: Likewise.
18367         * config/lm32/lm32.c: Likewise.
18368         * config/m32c/m32c.c: Likewise.
18369         * config/m32r/m32r.c: Likewise.
18370         * config/m68k/m68k.c: Likewise.
18371         * config/mcore/mcore.c: Likewise.
18372         * config/mep/mep.c: Likewise.
18373         * config/microblaze/microblaze.c: Likewise.
18374         * config/mips/mips.c: Likewise.
18375         * config/mmix/mmix.c: Likewise.
18376         * config/mn10300/mn10300.c: Likewise.
18377         * config/moxie/moxie.c: Likewise.
18378         * config/msp430/msp430.c: Likewise.
18379         * config/nds32/nds32.c: Likewise.
18380         * config/pa/pa.c: Likewise.
18381         * config/pdp11/pdp11.c: Likewise.
18382         * config/picochip/picochip.c: Likewise.
18383         * config/rl78/rl78.c: Likewise.
18384         * config/rs6000/rs6000.c: Likewise.
18385         * config/rx/rx.c: Likewise.
18386         * config/s390/s390.c: Likewise.
18387         * config/score/score.c: Likewise.
18388         * config/sh/sh.c: Likewise.
18389         * config/sparc/sparc.c: Likewise.
18390         * config/spu/spu.c: Likewise.
18391         * config/stormy16/stormy16.c: Likewise.
18392         * config/tilegx/tilegx.c: Likewise.
18393         * config/tilepro/tilepro.c: Likewise.
18394         * config/v850/v850.c: Likewise.
18395         * config/vax/vax.c: Likewise.
18396         * config/xtensa/xtensa.c: Likewise.
18397
18398 2014-06-02  Jeff Law  <law@redhat.com>
18399
18400         PR rtl-optimization/61094
18401         * ree.c (combine_reaching_defs): Do not reextend an insn if it
18402         was marked as do_no_reextend.  If a copy is needed to eliminate
18403         an extension, then mark it as do_not_reextend.
18404
18405 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18406
18407         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
18408
18409 2014-06-02  Richard Henderson  <rth@redhat.com>
18410
18411         PR target/61336
18412         * config/alpha/alpha.c (print_operand_address): Allow symbolic
18413         addresses inside asms.  Use output_operand_lossage instead of
18414         gcc_unreachable.
18415
18416 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
18417
18418         PR target/61239
18419         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
18420         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
18421
18422 2014-06-02  Tom de Vries  <tom@codesourcery.com>
18423
18424         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
18425         case that x has VOIDmode.
18426
18427 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
18428
18429         * varasm.c (copy_constant): Delete function.
18430         (build_constant_desc): Don't call it.
18431
18432 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18433
18434         PR target/61154
18435         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
18436         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
18437         with immediate_operand.
18438
18439 2014-06-02  Andreas Schwab  <schwab@suse.de>
18440
18441         * config/ia64/ia64.c
18442         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
18443         pending_data_specs first.
18444
18445 2014-06-02  Richard Biener  <rguenther@suse.de>
18446
18447         PR tree-optimization/61378
18448         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
18449         valueized_anything.
18450
18451 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
18452
18453         * config/i386/constraints.md (Bw): Rename from 'w'.
18454         (Bz): Rename from 'z'.
18455         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
18456
18457 2014-06-01  Kai Tietz  <ktietz@redhat.com>
18458
18459         PR target/61377
18460         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
18461         * config/i386/i386.md (sibcall_insn_operand): Use Bs
18462         instead of m constraint.
18463
18464 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
18465
18466         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
18467         a separate alternative where the scratch operand 2 is marked as
18468         early clobber.
18469
18470 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
18471
18472         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18473         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
18474         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
18475         and __builtins_arm_get_fpscr.
18476         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18477         __builtins_arm_get_fpscr.
18478         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
18479         __builtins_arm_ldfpscr.
18480         (arm_atomic_assign_expand_fenv): New function.
18481         * config/arm/vfp.md (set_fpscr): New pattern.
18482         (get_fpscr) : Likewise.
18483         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
18484         VUNSPEC_SET_FPSCR.
18485         * doc/extend.texi (AARCH64 Built-in Functions) : Document
18486         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
18487
18488 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
18489
18490         * asan.c (report_error_func): Add SLOW_P argument, use
18491         BUILT_IN_ASAN_*_N if set.
18492         (build_check_stmt): Likewise.
18493         (instrument_derefs): If T has insufficient alignment,
18494         force same handling as for odd sizes.
18495
18496         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
18497         BUILT_IN_ASAN_REPORT_STORE_N): New.
18498         * asan.c (struct asan_mem_ref): Change access_size type to
18499         HOST_WIDE_INT.
18500         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
18501         update_mem_ref_hash_table): Likewise.
18502         (asan_mem_ref_hasher::hash): Hash in a HWI.
18503         (report_error_func): Change size_in_bytes argument to HWI.
18504         Use *_N builtins if size_in_bytes is larger than 16 or not power of
18505         two.
18506         (build_shadow_mem_access): New function.
18507         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
18508         Handle size_in_bytes not power of two or larger than 16.
18509         (instrument_derefs): Don't give up if size_in_bytes is not
18510         power of two or is larger than 16.
18511
18512 2014-05-30  Kai Tietz  <ktietz@redhat.com>
18513
18514         PR target/60104
18515         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
18516         for sibling-tail-calls.
18517         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
18518         to its use.
18519         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
18520         (sibcall_insn_operand): Add check for sibcall_memory_operand.
18521
18522 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18523
18524         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
18525         * config/avr/avr-tables.opt: Regenerate.
18526         * config/avr/t-multilib: Regenerate.
18527         * doc/avr-mmcu.texi: Regenerate.
18528
18529 2014-05-30  Ian Lance Taylor  <iant@google.com>
18530
18531         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
18532         target("sse").
18533
18534 2014-05-30  Tom de Vries  <tom@codesourcery.com>
18535
18536         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18537         Redefine as true.
18538
18539 2014-05-30  Tom de Vries  <tom@codesourcery.com>
18540
18541         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18542         * lra.c (initialize_lra_reg_info_element): Add init of
18543         actual_call_used_reg_set field.
18544         (lra): Call lra_create_live_ranges before lra_inheritance for
18545         -fuse-caller-save.
18546         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18547         -fuse-caller-save.
18548         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
18549         instead of call_used_reg_set for -fuse-caller-save.
18550         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18551
18552 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18553
18554         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
18555         to mov_imm.
18556         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
18557
18558 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
18559
18560         * ira.c (ira_get_dup_out_num): Check for output operands at
18561         the start of the loop.  Handle cases where an included alternative
18562         follows an excluded one.
18563
18564 2014-05-29  Mike Stump  <mikestump@comcast.net>
18565
18566         PR debug/61352
18567         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
18568         post ld passes when lto is used.
18569
18570 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
18571
18572         PR rtl-optimization/61325
18573         * lra-constraints.c (process_address): Rename to process_address_1.
18574         (process_address): New function.
18575
18576 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
18577
18578         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
18579         TYPES_BINOPV): New static data.
18580         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
18581         New builtin.
18582         * config/aarch64/aarch64-simd.md (aarch64_ext,
18583         aarch64_im_lane_boundsi): New patterns.
18584         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
18585         patterns for EXT.
18586         (aarch64_evpc_ext): New function.
18587
18588         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
18589
18590         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
18591         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
18592         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
18593         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
18594         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
18595
18596 2014-05-29  Tom de Vries  <tom@codesourcery.com>
18597
18598         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18599
18600 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
18601             Richard Sandiford  <rdsandiford@googlemail.com>
18602
18603         * arm/iterators.md (shiftable_ops): New code iterator.
18604         (t2_binop0, arith_shift_insn): New code attributes.
18605         * arm/predicates.md (shift_nomul_operator): New predicate.
18606         * arm/arm.md (insn_enabled): Delete.
18607         (enabled): Remove insn_enabled test.
18608         (*arith_shiftsi): Delete.  Replace with ...
18609         (*<arith_shift_insn>_multsi): ... new pattern.
18610         (*<arith_shift_insn>_shiftsi): ... new pattern.
18611         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18612
18613 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
18614             Tom de Vries  <tom@codesourcery.com>
18615
18616         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18617         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18618         clobber.
18619         (mips_split_call): Use POST_CALL_TMP_REG.
18620         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18621
18622 2014-05-29  Tom de Vries  <tom@codesourcery.com>
18623
18624         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18625         with #ifdef STACK_REGS.
18626
18627 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
18628
18629         * varasm.c (get_variable_section): Walk aliases.
18630         (place_block_symbol): Walk aliases.
18631
18632 2014-05-28  Tom de Vries  <tom@codesourcery.com>
18633
18634         Revert:
18635         2014-05-28  Tom de Vries  <tom@codesourcery.com>
18636
18637         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18638         * lra.c (initialize_lra_reg_info_element): Add init of
18639         actual_call_used_reg_set field.
18640         (lra): Call lra_create_live_ranges before lra_inheritance for
18641         -fuse-caller-save.
18642         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18643         -fuse-caller-save.
18644         * lra-constraints.c (need_for_call_save_p): Use
18645         actual_call_used_reg_set instead of call_used_reg_set for
18646         -fuse-caller-save.
18647         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18648
18649 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18650
18651         * doc/md.texi: Document that the % constraint character must
18652         be at the beginning of the string.
18653         * genoutput.c (validate_insn_alternatives): Check that '=',
18654         '+' and '%' only appear at the beginning of a constraint.
18655         * ira.c (commutative_constraint_p): Delete.
18656         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18657         at the start of the string.
18658         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18659         duplicate '='s.
18660         * config/arm/neon.md (bicdi3_neon): Likewise.
18661         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18662         (slt_si, sltu_si): Likewise.
18663         * config/vax/vax.md (sbcdi3): Likewise.
18664         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18665         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18666         (mul64): Move '%' to beginning of constraint.
18667         * config/arm/arm.md (*xordi3_insn): Likewise.
18668         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18669         (xorsi3): Likewise.
18670
18671 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18672
18673         * doc/md.texi: Document the restrictions on the "enabled" attribute.
18674
18675 2014-05-28  Jason Merrill  <jason@redhat.com>
18676
18677         PR c++/47202
18678         * cgraph.h (symtab_node::get_comdat_group_id): New.
18679         * cgraphunit.c (analyze_functions): Call it.
18680         * symtab.c (dump_symtab_node): Likewise.
18681         * tree.c (decl_comdat_group_id): New.
18682         * tree.h: Declare it.
18683         * lto-streamer-out.c (write_symbol): Use it.
18684         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18685
18686 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18687
18688         PR bootstrap/PR61146
18689         * wide-int.cc: Do not include longlong.h when compiling with clang.
18690
18691 2014-05-28  Richard Biener  <rguenther@suse.de>
18692
18693         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18694         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18695         (vrp_visit_assignment_or_call): Print less vertical space.
18696         (vrp_visit_stmt): Likewise.
18697         (vrp_visit_phi_node): Likewise.  For a PHI argument with
18698         VR_VARYING range consider recording it as copy.
18699
18700 2014-05-28  Richard Biener  <rguenther@suse.de>
18701
18702         Revert
18703         2014-05-28  Richard Biener  <rguenther@suse.de>
18704
18705         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18706
18707 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18708
18709         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18710         sufficiently aligned and an offset is used at the same time.
18711         (expand_expr_real_1): Likewise.
18712
18713 2014-05-28  Richard Biener  <rguenther@suse.de>
18714
18715         PR middle-end/61045
18716         * fold-const.c (fold_comparison): When folding
18717         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18718         the sign of the remaining constant operand stays the same.
18719
18720 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
18721
18722         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18723         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18724         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18725         to the assembler.
18726         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18727         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18728         (m32bit-doubles) Likewise.
18729         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18730         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18731         option for RL78.
18732
18733 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18734
18735         * configure.ac ($gcc_cv_ld_clearcap): New test.
18736         * configure: Regenerate.
18737         * config.in: Regenerate.
18738         * config/sol2.opt (mclear-hwcap): New option.
18739         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18740         * config/sol2-clearcap.map: Moved here from
18741         testsuite/gcc.target/i386/clearcap.map.
18742         * config/sol2-clearcapv2.map: Move here from
18743         gcc.target/i386/clearcapv2.map.
18744         * config/t-sol2 (install): Depend on install-clearcap-map.
18745         (install-clearcap-map): New target.
18746         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18747         -mclear-hwcap.
18748
18749 2014-05-28  Richard Biener  <rguenther@suse.de>
18750
18751         * hwint.h (*_HALF_WIDE_INT*): Move to ...
18752         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18753         ... here and remove the rest.
18754         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18755
18756 2014-05-28  Richard Biener  <rguenther@suse.de>
18757
18758         PR tree-optimization/61335
18759         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18760         new range fails, drop to varying.
18761
18762 2014-05-28  Olivier Hainque  <hainque@adacore.com>
18763
18764         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18765         (CPP_SPEC): Add entry for -mcpu=8548.
18766         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18767         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18768
18769 2014-05-28  Tom de Vries  <tom@codesourcery.com>
18770
18771         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18772         * lra.c (initialize_lra_reg_info_element): Add init of
18773         actual_call_used_reg_set field.
18774         (lra): Call lra_create_live_ranges before lra_inheritance for
18775         -fuse-caller-save.
18776         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18777         -fuse-caller-save.
18778         * lra-constraints.c (need_for_call_save_p): Use
18779         actual_call_used_reg_set instead of call_used_reg_set for
18780         -fuse-caller-save.
18781         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18782
18783 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18784             Tom de Vries  <tom@codesourcery.com>
18785
18786         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18787         to gccoptlist.
18788         (@item -fuse-caller-save): New item.
18789
18790 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18791             Tom de Vries  <tom@codesourcery.com>
18792
18793         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18794         OPT_fuse_caller_save.
18795
18796 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18797             Tom de Vries  <tom@codesourcery.com>
18798
18799         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18800         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18801         get_call_reg_set_usage.
18802         * resource.c (mark_set_resources, mark_target_live_regs): Use
18803         get_call_reg_set_usage.
18804         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18805         field.
18806         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18807         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18808         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18809         * ira-build.c (ira_create_allocno): Init
18810         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18811         (create_cap_allocno, propagate_allocno_info)
18812         (propagate_some_info_from_allocno)
18813         (copy_info_to_removed_store_destinations): Handle
18814         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18815         * ira-costs.c (ira_tune_allocno_costs): Use
18816         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18817
18818 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18819             Tom de Vries  <tom@codesourcery.com>
18820
18821         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18822         and function_used_regs_valid fields.
18823         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18824         find_all_hard_reg_sets.
18825         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18826         (get_call_reg_set_usage): New function.
18827         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18828         * regs.h (get_call_reg_set_usage): Declare.
18829
18830 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18831
18832         PR libgcc/61152
18833         * config/dbx.h (License): Add Runtime Library Exception.
18834         * config/newlib-stdint.h (License): Same.
18835         * config/rtems.h (License): Same
18836         * config/initfini-array.h (License): Same
18837         * config/v850/v850.h (License): Same.
18838         * config/v850/v850-opts.h (License): Same
18839         * config/v850/rtems.h (License): Same.
18840
18841 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18842
18843         PR target/61044
18844         * doc/extend.texi (Local Labels): Note that label differences are
18845         not supported for AVR.
18846
18847 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18848             Olivier Hainque  <hainque@adacore.com>
18849
18850         * rtl.h (set_for_reg_notes): Declare.
18851         * emit-rtl.c (set_for_reg_notes): New function.
18852         (set_unique_reg_note): Use it.
18853         * optabs.c (add_equal_note): Likewise
18854
18855 2014-05-27  Andrew Pinski  <apinski@cavium.com>
18856
18857         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18858         Use <w> for the register in assembly template.
18859         (stack_protect_test): Use the mode of operands[0] for the result.
18860         (stack_protect_test_<mode>): Use <w> for the register
18861         in assembly template.
18862
18863 2014-05-27  DJ Delorie  <dj@redhat.com>
18864
18865         * config/rx/rx.c (add_vector_labels): New.
18866         (rx_output_function_prologue): Call it.
18867         (rx_handle_func_attribute): Don't require empty arguments.
18868         (rx_handle_vector_attribute): New.
18869         (rx_attribute_table): Add "vector" attribute.
18870         * doc/extend.texi (interrupt, vector): Document new/changed
18871         RX-specific attributes.
18872
18873         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18874
18875 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18876
18877         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18878         predicate to detect a negative quotient.
18879
18880 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18881
18882         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18883         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18884         Add X - Y CMP 0 to X CMP Y transformation.
18885         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18886
18887 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
18888
18889         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18890         before printing.
18891
18892 2014-05-27  Steve Ellcey  <sellcey@mips.com>
18893
18894         * config/mips/mips.c: Add include of cgraph.h.
18895
18896 2014-05-27  Richard Biener  <rguenther@suse.de>
18897
18898         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18899
18900 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
18901
18902         PR libgcc/61152
18903         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18904         * config/arm/arm-cores.def (License): Same.
18905         * config/arm/arm-opts.h (License): Same.
18906         * config/arm/aout.h (License): Same.
18907         * config/arm/bpabi.h (License): Same.
18908         * config/arm/elf.h (License): Same.
18909         * config/arm/linux-elf.h (License): Same.
18910         * config/arm/linux-gas.h (License): Same.
18911         * config/arm/netbsd-elf.h (License): Same.
18912         * config/arm/uclinux-eabi.h (License): Same.
18913         * config/arm/uclinux-elf.h (License): Same.
18914         * config/arm/vxworks.h (License): Same.
18915
18916 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18917
18918         * config/arm/neon.md (neon_bswap<mode>): New pattern.
18919         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18920         (arm_init_neon_builtins): Handle NEON_BSWAP.
18921         Define required type nodes.
18922         (arm_expand_neon_builtin): Handle NEON_BSWAP.
18923         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18924         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18925         * config/arm/iterators.md (VDQHSD): New mode iterator.
18926
18927 2014-05-27  Richard Biener  <rguenther@suse.de>
18928
18929         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18930         Try using literal operands when comparing value-ranges failed.
18931
18932 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18933
18934         * ira.c (commutative_operand): Adjust for change to recog_data.
18935         [Missing from previous commit.]
18936
18937 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18938
18939         * system.h (TEST_BIT): New macro.
18940         * recog.h (alternative_mask): New type.
18941         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18942         (recog_data_d): Replace alternative_enabled_p array with
18943         enabled_alternatives.
18944         (target_recog): New structure.
18945         (default_target_recog, this_target_recog): Declare.
18946         (get_enabled_alternatives, recog_init): Likewise.
18947         * recog.c (default_target_recog, this_target_recog): New variables.
18948         (get_enabled_alternatives): New function.
18949         (extract_insn): Use it.
18950         (recog_init): New function.
18951         (preprocess_constraints, constrain_operands): Adjust for change to
18952         recog_data.
18953         * postreload.c (reload_cse_simplify_operands): Likewise.
18954         * reload.c (find_reloads): Likewise.
18955         * ira-costs.c (record_reg_classes): Likewise.
18956         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
18957         all alternatives after a disabled one would be skipped.
18958         (ira_implicitly_set_insn_hard_regs): Likewise.
18959         * ira.c (ira_setup_alts): Adjust for change to recog_data.
18960         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18961         with enabled_alternatives.
18962         * lra.c (free_insn_recog_data): Update accordingly.
18963         (lra_update_insn_recog_data): Likewise.
18964         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
18965         * lra-constraints.c (process_alt_operands): Likewise.  Handle
18966         only_alternative as part of the enabled mask.
18967         * target-globals.h (this_target_recog): Declare.
18968         (target_globals): Add a recog field.
18969         (restore_target_globals): Restore this_target_recog.
18970         * target-globals.c: Include recog.h.
18971         (default_target_globals): Initialize recog field.
18972         (save_target_globals): Likewise.
18973         * reginfo.c (reinit_regs): Call recog_init.
18974         * toplev.c (backend_init_target): Likewise.
18975
18976 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18977
18978         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18979         rather than any named insn's code.
18980
18981 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
18982
18983         PR libgcc/61152
18984         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18985         * config/arm/arm-cores.def (License): Same.
18986
18987 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
18988
18989         * tree.h (decl_comdat_group): Declare.
18990         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18991         * tree.c (decl_comdat_group): Here.
18992
18993 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
18994
18995         PR rtl-optimization/61222
18996         * combine.c (simplify_shift_const_1): When moving a PLUS outside
18997         the shift, truncate the PLUS operand to the result mode.
18998
18999 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
19000
19001         PR target/61271
19002         * config/i386/i386.c (ix86_rtx_costs)
19003         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
19004         Fix condition.
19005
19006 2014-05-26  Martin Jambor  <mjambor@suse.cz>
19007
19008         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
19009         subreg uses.
19010
19011 2014-05-26  Richard Biener  <rguenther@suse.de>
19012
19013         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
19014         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
19015         Provide specializations.
19016         (wi::int_traits <HOST_WIDE_INT>,
19017         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
19018
19019 2014-05-26  Alan Modra  <amodra@gmail.com>
19020
19021         PR target/61098
19022         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
19023         params and return a bool.  Remove dead code.  Update comment.
19024         Assert we have a const_int source.  Remove bogus code from
19025         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
19026         handling of constants > 2G and reg_equal note, from..
19027         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
19028         return value.  Update comment.  If we can, use a new pseudo
19029         for intermediate calculations.
19030         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
19031         prototype.
19032         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
19033         call to rs6000_emit_set_const in splitter.
19034         (movdi_internal64+2, +3): Likewise.
19035
19036 2014-05-26  Richard Biener  <rguenther@suse.de>
19037
19038         * system.h: Define __STDC_FORMAT_MACROS before
19039         including inttypes.h.
19040         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
19041         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
19042         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
19043         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
19044         HOST_WIDEST_INT_C): Remove.
19045         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
19046         if C99 inttypes.h is not available.
19047         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
19048         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
19049         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
19050         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
19051         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
19052         (struct output_info): Likewise.
19053         (print_statistics): Adjust.
19054         (dump_bitmap_statistics): Likewise.
19055         * bt-load.c (migrate_btr_defs): Print with PRId64.
19056         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
19057         (MAX_SAFE_MULTIPLIER): Adjust.
19058         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
19059         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
19060         dump_cgraph_node): Likewise.
19061         * final.c (dump_basic_block_info): Likewise.
19062         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
19063         * gcov.c (format_gcov): Likewise.
19064         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
19065         for calculation.
19066         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
19067         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
19068         (inline_small_functions, dump_overall_stats, dump_inline_stats):
19069         Use PRId64 for dumping.
19070         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
19071         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
19072         (add_allocno_hard_regs): Adjust.
19073         * loop-doloop.c (doloop_modify): Print using PRId64.
19074         * loop-iv.c (inverse): Compute in uint64_t.
19075         (determine_max_iter, iv_number_of_iterations): Likewise.
19076         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
19077         Print using PRId64.
19078         * lto-streamer-out.c (write_symbol): Use uint64_t.
19079         * mcf.c (CAP_INFINITY): Use int64_t maximum.
19080         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
19081         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
19082         * modulo-sched.c (const_iteration_count): Use int64_t.
19083         (sms_schedule): Dump using PRId64.
19084         * predict.c (dump_prediction): Likewise.
19085         * pretty-print.h (pp_widest_integer): Remove.
19086         * profile.c (get_working_sets, is_edge_inconsistent,
19087         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
19088         * tree-pretty-print.c (pp_double_int): Remove case handling
19089         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
19090         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
19091         and adjust users.
19092         (pass_optimize_bswap::execute): Remove restriction on hosts.
19093         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
19094         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
19095         * tree.c (widest_int_cst_value): Remove.
19096         * tree.h (widest_int_cst_value): Likewise.
19097         * value-prof.c (dump_histogram_value): Print using PRId64.
19098         * gengtype.c (main): Also inject int64_t.
19099         * ggc-page.c (struct max_alignment): Use int64_t.
19100         * alloc-pool.c (struct allocation_object_def): Likewise.
19101         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
19102         for computation.
19103         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
19104         * doc/tm.texi: Regenerated.
19105         * gengtype-lex.l (IWORD): Handle [u]int64_t.
19106         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
19107         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
19108         mmix_output_register_setting): Use [u]int64_t in prototypes.
19109         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
19110         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
19111         mmix_output_octa, mmix_output_shifted_value): Adjust.
19112         (mmix_intval): Adjust.  Remove unreachable case.
19113         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
19114
19115 2014-05-26  Richard Biener  <rguenther@suse.de>
19116
19117         * configure.ac: Drop __int64 type check.  Insist that we
19118         found uint64_t and int64_t.
19119         * hwint.h (HOST_BITS_PER___INT64): Remove.
19120         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
19121         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
19122         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
19123         (HOST_WIDEST_FAST_INT): Remove __int64 case.
19124         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
19125         for dst_q_src_df_rms_cdt.
19126         * configure: Regenerate.
19127         * config.in: Likewise.
19128
19129 2014-05-26  Michael Tautschnig  <mt@debian.org>
19130
19131         PR target/61249
19132         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
19133         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
19134
19135 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19136
19137         PR rtl-optimization/61278
19138         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
19139
19140 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19141
19142         PR rtl-optimization/61220
19143         Part of PR rtl-optimization/61225
19144         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
19145         insn; skip split_edge for a block with only one successor.
19146
19147 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19148
19149         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
19150         for variables.
19151
19152 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19153
19154         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
19155         (update_vtable_references): New function.
19156         (function_and_variable_visibility): Rewrite also vtable initializers.
19157         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
19158
19159 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19160
19161         * ggc.h (ggc_grow): New function.
19162         * ggc-none.c (ggc_grow): New function.
19163         * ggc-page.c (ggc_grow): Likewise.
19164
19165 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19166
19167         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
19168         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
19169         comdat_can_be_unshared_p, cgraph_externally_visible_p,
19170         varpool_externally_visible_p, can_replace_by_local_alias,
19171         update_visibility_by_resolution_info, function_and_variable_visibility,
19172         pass_data_ipa_function_and_variable_visibility,
19173         make_pass_ipa_function_and_variable_visibility,
19174         whole_program_function_and_variable_visibility,
19175         pass_data_ipa_whole_program_visibility,
19176         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
19177         * cgraph.h (cgraph_local_node_p): Declare.
19178         * ipa-visibility.c: New file.
19179         * Makefile.in (OBJS): Add ipa-visiblity.o
19180
19181 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19182
19183         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
19184         that var decl is available.
19185
19186 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19187
19188         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
19189         symtab_node pointer.
19190         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
19191         (find_decls_types_r): Do not walk COMDAT_GROUP.
19192         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
19193         * varasm.c (make_decl_one_only): Use set_comdat_group;
19194         create node if needed.
19195         * ipa-inline-transform.c (save_inline_function_body): Update
19196         way we decl->symtab mapping.
19197         * symtab.c (symtab_hash, hash_node, eq_node
19198         symtab_insert_node_to_hashtable): Remove.
19199         (symtab_register_node): Update.
19200         (symtab_unregister_node): Update.
19201         (symtab_get_node): Reimplement as inline function.
19202         (symtab_add_to_same_comdat_group): Update.
19203         (symtab_dissolve_same_comdat_group_list): Update.
19204         (dump_symtab_base): Update.
19205         (verify_symtab_base): Update.
19206         (symtab_make_decl_local): Update.
19207         (fixup_same_cpp_alias_visibility): Update.
19208         (symtab_nonoverwritable_alias): Update.
19209         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
19210         * ipa.c (update_visibility_by_resolution_info): UPdate.
19211         * bb-reorder.c: Include cgraph.h
19212         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
19213         with comdat groups.
19214         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
19215         * cgraph.c (cgraph_get_create_node): Update.
19216         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
19217         and comdat_group_.
19218         (symtab_get_node): Make inline.
19219         (symtab_insert_node_to_hashtable): Remove.
19220         (symtab_can_be_discarded): Update.
19221         (decl_comdat_group): New function.
19222         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
19223         Update.
19224         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
19225         comdat group name.
19226         (read_comdat_group): New function.
19227         (input_node, input_varpool_node): Use it.
19228         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
19229         comdat groups.
19230         * mips.c (mips_start_unique_function): Likewise.
19231         (ix86_code_end): Likewise.
19232         (rs6000_code_end): Likweise.
19233         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
19234
19235 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19236
19237         * gengtype-state.c (fatal_reading_state): Bring offline.
19238         * optabs.c (widening_optab_handler): Bring offline.
19239         * optabs.h (widening_optab_handler): Likewise.
19240         * final.c (get_attr_length_1): Likewise.
19241
19242 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19243
19244         * sched-int.h (sd_iterator_cond): Manually tail recurse.
19245
19246 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19247
19248         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
19249         (ppc440-compare): Include shift with dot.
19250         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
19251         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
19252         without dot.
19253         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
19254         without dot.
19255         (e6500_sfx2): Include it.
19256         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
19257         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
19258         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
19259         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
19260         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
19261         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
19262         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
19263         *lshiftrt_internal1le, *lshiftrt_internal1be,
19264         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
19265         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
19266         *rotldi3_internal10le, *rotldi3_internal10be,
19267         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
19268         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
19269         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
19270         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
19271         define_insns): Use type "shift" in the appropriate alternatives.
19272
19273 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19274
19275         * config/rs6000/rs6000.md (type): Add "logical".  Delete
19276         "fast_compare".
19277         (dot): Adjust comment.
19278         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
19279         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
19280         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
19281         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
19282         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
19283         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
19284         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
19285         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19286
19287         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19288         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19289         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19290         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19291         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19292         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19293         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19294         * config/rs6000/8540.md (ppc8540_su): Adjust.
19295         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19296         cell-cmp-microcoded): Adjust.
19297         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19298         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19299         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19300         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19301         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19302         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19303         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19304         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19305         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19306         Adjust.
19307         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19308         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
19309         Adjust.  Adjust comment.
19310         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19311         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19312
19313 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19314
19315         * config/rs6000/rs6000.md (type): Add "add".
19316         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
19317         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
19318         define_insns): Use it.
19319         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19320
19321         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19322         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19323         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19324         * config/rs6000/601.md (ppc601-integer): Adjust.
19325         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19326         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19327         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19328         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19329         * config/rs6000/8540.md (ppc8540_su): Adjust.
19330         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19331         cell-cmp-microcoded): Adjust.
19332         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19333         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19334         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19335         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19336         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19337         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19338         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19339         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19340         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19341         Adjust.
19342         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19343         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
19344         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19345         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19346
19347 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19348
19349         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
19350         "delayed_compare", "var_delayed_compare".
19351         (var_shift): New attribute.
19352         (cell_micro): Adjust.
19353         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
19354         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
19355         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
19356         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19357         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19358         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19359         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19360         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
19361         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
19362         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
19363         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
19364         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
19365         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
19366         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
19367         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
19368         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
19369         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
19370         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
19371         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
19372         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
19373         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
19374         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
19375         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
19376         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19377         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19378
19379         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19380         * config/rs6000/440.md (ppc440-integer): Adjust.
19381         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19382         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
19383         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19384         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19385         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19386         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19387         * config/rs6000/8540.md (ppc8540_su): Adjust.
19388         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19389         cell-cmp-microcoded): Adjust.
19390         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
19391         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19392         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
19393         e500mc64_delayed): Adjust.
19394         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
19395         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
19396         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19397         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
19398         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
19399         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
19400         power6-delayed-compare, power6-var-delayed-compare): Adjust.
19401         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
19402         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
19403         Adjust comment.
19404         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19405         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19406
19407 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19408
19409         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
19410         (bits): New mode_attr.
19411         (idiv_ldiv): Delete mode_attr.
19412         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
19413         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19414         rs6000_adjust_priority, is_nonpipeline_insn,
19415         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19416
19417         * config/rs6000/40x.md (ppc403-idiv): Adjust.
19418         * config/rs6000/440.md (ppc440-idiv): Adjust.
19419         * config/rs6000/476.md (ppc476-idiv): Adjust.
19420         * config/rs6000/601.md (ppc601-idiv): Adjust.
19421         * config/rs6000/603.md (ppc603-idiv): Adjust.
19422         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
19423         ppc620-ldiv): Adjust.
19424         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
19425         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
19426         * config/rs6000/8540.md (ppc8540_divide): Adjust.
19427         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
19428         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
19429         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
19430         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
19431         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
19432         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
19433         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
19434         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
19435         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
19436         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
19437         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
19438         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
19439         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
19440         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
19441         * config/rs6000/titan.md (titan_fxu_div): Adjust.
19442
19443 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19444
19445         * config/rs6000/rs6000.md (type): Delete "insert_word",
19446         "insert_dword".  Add "insert".
19447         (size): Update comment.
19448         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19449         insn_must_be_first_in_group): Adjust.
19450         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19451         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19452         *insvsi_internal6, insvdi_internal): Adjust.
19453
19454         * config/rs6000/40x.md (ppc403-integer): Adjust.
19455         * config/rs6000/440.md (ppc440-integer): Adjust.
19456         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
19457         * config/rs6000/601.md (ppc601-integer): Adjust.
19458         * config/rs6000/603.md (ppc603-integer): Adjust.
19459         * config/rs6000/6xx.md (ppc604-integer): Adjust.
19460         * config/rs6000/7450.md (ppc7450-integer): Adjust.
19461         * config/rs6000/7xx.md (ppc750-integer): Adjust.
19462         * config/rs6000/8540.md (ppc8540_su): Adjust.
19463         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
19464         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
19465         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19466         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
19467         * config/rs6000/e5500.md (e5500_sfx): Adjust.
19468         * config/rs6000/e6500.md (e6500_sfx): Adjust.
19469         * config/rs6000/mpc.md (mpccore-integer): Adjust.
19470         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
19471         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
19472         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
19473         * config/rs6000/power7.md (power7-integer): Adjust.
19474         * config/rs6000/power8.md (power8-1cyc): Adjust.
19475         * config/rs6000/rs64.md (rs64a-integer): Adjust.
19476         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19477
19478 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19479
19480         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
19481         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
19482         (size): New attribute.
19483         (dot): New attribute.
19484         (cell_micro): Adjust.
19485         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
19486         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
19487         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
19488         umuldi3_highpart): Adjust.
19489         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19490         rs6000_adjust_priority, is_nonpipeline_insn,
19491         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19492
19493         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
19494         ppc405-imul3): Adjust.
19495         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
19496         * config/rs6000/476.md (ppc476-imul): Adjust.
19497         * config/rs6000/601.md (ppc601-imul): Adjust.
19498         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
19499         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
19500         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
19501         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
19502         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
19503         Adjust.
19504         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
19505         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
19506         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
19507         cell-imul): Adjust.
19508         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
19509         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
19510         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
19511         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
19512         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
19513         * config/rs6000/mpc.md (mpccore-imul): Adjust.
19514         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
19515         power4-lmul, power4-imul, power4-imul3): Adjust.
19516         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
19517         power5-lmul, power5-imul, power5-imul3): Adjust.
19518         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
19519         power6-lmul, power6-imul, power6-imul3): Adjust.
19520         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
19521         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
19522
19523         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
19524         rs64a-lmul): Adjust.
19525         * config/rs6000/titan.md (titan_imul): Adjust.
19526
19527 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19528
19529         * config/rs6000/rs6000.md (type): Add new value "halfmul".
19530         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
19531         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
19532         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
19533         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
19534         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
19535         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
19536         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
19537         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
19538         * config/rs6000/titan.md: Delete nonsensical comment.
19539         (titan_imul): Add type imul3.
19540         (titan_mulhw): Remove type imul3; add type halfmul.
19541
19542 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19543
19544         * config/rs6000/rs6000.md (type): Reorder, reformat.
19545
19546 2014-05-23  Martin Jambor  <mjambor@suse.cz>
19547
19548         PR tree-optimization/53787
19549         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
19550         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
19551         analysis_done, update all uses.
19552         * ipa-prop.c: Include domwalk.h
19553         (param_analysis_info): Removed.
19554         (param_aa_status): New type.
19555         (ipa_bb_info): Likewise.
19556         (func_body_info): Likewise.
19557         (ipa_get_bb_info): New function.
19558         (aa_overwalked): Likewise.
19559         (find_dominating_aa_status): Likewise.
19560         (parm_bb_aa_status_for_bb): Likewise.
19561         (parm_preserved_before_stmt_p): Changed to use new param AA info.
19562         (load_from_unmodified_param): Accept func_body_info as a parameter
19563         instead of parms_ainfo.
19564         (parm_ref_data_preserved_p): Changed to use new param AA info.
19565         (parm_ref_data_pass_through_p): Likewise.
19566         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
19567         (compute_complex_assign_jump_func): Changed to use new param AA info.
19568         (compute_complex_ancestor_jump_func): Likewise.
19569         (ipa_compute_jump_functions_for_edge): Likewise.
19570         (ipa_compute_jump_functions): Removed.
19571         (ipa_compute_jump_functions_for_bb): New function.
19572         (ipa_analyze_indirect_call_uses): Likewise, moved variable
19573         declarations down.
19574         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
19575         and info, moved variable declarations down.
19576         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
19577         node and info.
19578         (ipa_analyze_stmt_uses): Likewise.
19579         (ipa_analyze_params_uses): Removed.
19580         (ipa_analyze_params_uses_in_bb): New function.
19581         (ipa_analyze_controlled_uses): Likewise.
19582         (free_ipa_bb_info): Likewise.
19583         (analysis_dom_walker): New class.
19584         (ipa_analyze_node): Handle node-specific forbidden analysis,
19585         initialize and free func_body_info, use dominator walker.
19586         (ipcp_modif_dom_walker): New class.
19587         (ipcp_transform_function): Create and free func_body_info, use
19588         ipcp_modif_dom_walker, moved a lot of functionality there.
19589
19590 2014-05-23  Marek Polacek  <polacek@redhat.com>
19591             Jakub Jelinek  <jakub@redhat.com>
19592
19593         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
19594         * gcc.c (sanitize_spec_function): Likewise.
19595         * convert.c (convert_to_integer): Include "ubsan.h".  Add
19596         floating-point to integer instrumentation.
19597         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19598         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19599         SANITIZE_NONDEFAULT.
19600         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19601         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19602         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19603         * ubsan.c: Include "realmpfr.h" and "dfp.h".
19604         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19605         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19606         float/double/long double.
19607         (ubsan_instrument_float_cast): New function.
19608         * ubsan.h (ubsan_instrument_float_cast): Declare.
19609
19610 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
19611
19612         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19613         predicate.
19614         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
19615         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19616         Adjust for tailcalling through registers.
19617         * config/aarch64/aarch64.h (enum reg_class): New caller save
19618         register class.
19619         (REG_CLASS_NAMES): Likewise.
19620         (REG_CLASS_CONTENTS): Likewise.
19621         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19622         Allow tailcalling without decls.
19623
19624 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
19625
19626         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19627         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19628
19629         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19630         gsi, and variables v_* to v*.
19631
19632 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
19633
19634         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19635
19636 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
19637
19638         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19639         * omp-low.c: Update accordingly.
19640
19641         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19642         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19643         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19644         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19645         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19646         GF_OMP_TARGET_KIND_UPDATE.
19647
19648         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19649         Explicitly enumerate the expected region types.
19650
19651 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19652
19653         PR other/56955
19654         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
19655         documentation; the old documentation didn't clearly state the
19656         constraints on the contents of the pointed-to storage.
19657
19658 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19659
19660         Fix bootstrap error on ia64
19661         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19662         Return default value.
19663
19664 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19665
19666         PR tree-optimization/54733
19667         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19668         (CMPNOP): Define.
19669         (find_bswap_or_nop_load): New.
19670         (find_bswap_1): Renamed to ...
19671         (find_bswap_or_nop_1): This. Also add support for memory source.
19672         (find_bswap): Renamed to ...
19673         (find_bswap_or_nop): This. Also add support for memory source and
19674         detection of bitwise operations equivalent to load in target
19675         endianness.
19676         (execute_optimize_bswap): Likewise. Also move its leading comment back
19677         in place and split statement transformation into ...
19678         (bswap_replace): This.
19679
19680 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
19681
19682         PR rtl-optimization/61215
19683         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19684         simplify_gen_subreg until final substitution.
19685
19686 2014-05-23  Alan Modra  <amodra@gmail.com>
19687
19688         PR target/61231
19689         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19690         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19691         Use "Y" constraint rather than "m".
19692
19693 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19694
19695         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19696         define.
19697         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19698         New function declaration.
19699         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19700         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19701         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19702         (aarch64_init_builtins) : Initialize builtins
19703         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19704         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19705         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19706         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19707         and __builtins_aarch64_set_fpsr.
19708         (aarch64_atomic_assign_expand_fenv): New function.
19709         * config/aarch64/aarch64.md (set_fpcr): New pattern.
19710         (get_fpcr) : Likewise.
19711         (set_fpsr) : Likewise.
19712         (get_fpsr) : Likewise.
19713         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19714          and UNSPECV_SET_FPSR.
19715         * doc/extend.texi (AARCH64 Built-in Functions) : Document
19716         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19717         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19718
19719 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
19720
19721         PR rtl-optimization/60969
19722         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19723         constraints.  Set up mem cost for NO_REGS case.
19724
19725 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
19726
19727         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19728
19729 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
19730
19731         * config/darwin.c: Include "lto-section-names.h".
19732         (LTO_SEGMENT_NAME): Don't define.
19733         * config/i386/winnt.c: Include "lto-section-names.h".
19734         * lto-streamer.c: Include "lto-section-names.h".
19735         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19736         * lto-wrapper.c: Include "lto-section-names.h".
19737         (LTO_SECTION_NAME_PREFIX): Don't define.
19738         * lto-section-names.h: New file.
19739         * cgraphunit.c: Include "lto-section-names.h".
19740
19741 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
19742
19743         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19744
19745 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
19746
19747         PR target/61208
19748         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19749
19750 2014-05-22  Nick Clifton  <nickc@redhat.com>
19751
19752         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19753
19754 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
19755
19756         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19757         -> (T)A transformation to integer types.
19758
19759 2014-05-22  Teresa Johnson  <tejohnson@google.com>
19760
19761         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19762         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19763         (gcov_rewrite): Use gcov_nonruntime_assert.
19764         (gcov_open): Ditto.
19765         (gcov_write_words): Ditto.
19766         (gcov_write_length): Ditto.
19767         (gcov_read_words): Use gcov_nonruntime_assert, and remove
19768         gcc_assert from IN_LIBGCOV code.
19769         (gcov_read_summary): Use gcov_error to flag profile corruption.
19770         (gcov_sync): Use gcov_nonruntime_assert.
19771         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19772         (gcov_histo_index): Use gcov_nonruntime_assert.
19773         (static void gcov_histogram_merge): Ditto.
19774         (compute_working_sets): Ditto.
19775         * gcov-io.h (gcov_nonruntime_assert): Define.
19776         (gcov_error): Define for !IN_LIBGCOV
19777
19778 2014-05-22  Richard Biener  <rguenther@suse.de>
19779
19780         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19781         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19782         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19783         and deallocation site.
19784         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19785         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19786         passing through the incoming points-to set.
19787         (handle_lhs_call): Use flags argument instead of recomputing it.
19788         (find_func_aliases_for_call): Call handle_lhs_call with proper
19789         call return flags.
19790
19791 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
19792
19793         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19794         all padding bits in REAL_VALUE_TYPE are cleared.
19795
19796 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19797
19798         Cleanup and improve multipass_dfa_lookahead_guard
19799         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19800         (core2i7_first_cycle_multipass_begin,)
19801         (core2i7_first_cycle_multipass_issue,)
19802         (core2i7_first_cycle_multipass_backtrack): Update signature.
19803         * config/ia64/ia64.c
19804         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19805         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19806         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19807         hook definition.
19808         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19809         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
19810         values.
19811         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19812         return values.
19813         * doc/tm.texi: Regenerate.
19814         * doc/tm.texi.in
19815         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19816         * haifa-sched.c (ready_try): Make signed to allow negative values.
19817         (rebug_ready_list_1): Update.
19818         (choose_ready): Simplify.
19819         (sched_extend_ready_list): Update.
19820
19821 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19822
19823         Remove IA64 speculation tweaking flags
19824         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19825         speculation tuning flags.
19826         (msched-prefer-non-data-spec-insns,)
19827         (msched-prefer-non-control-spec-insns): Obsolete options.
19828         * haifa-sched.c (choose_ready): Remove handling of
19829         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19830         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19831         and PREFER_NON_DATA_SPEC.
19832         * sel-sched.c (process_spec_exprs): Remove handling of
19833         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19834
19835 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19836
19837         Improve scheduling debug output
19838         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19839         (advance_one_cycle): Update.
19840         (schedule_insn, queue_to_ready): Add debug printouts.
19841         (debug_ready_list_1): New static function.
19842         (debug_ready_list): Update.
19843         (max_issue): Add debug printouts.
19844         (dump_insn_stream): New static function.
19845         (schedule_block): Use it.  Also better indent printouts.
19846
19847 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19848
19849         Fix sched_insn debug counter
19850         * haifa-sched.c (schedule_insn): Update.
19851         (struct haifa_saved_data): Add nonscheduled_insns_begin.
19852         (save_backtrack_point, restore_backtrack_point): Update.
19853         (first_nonscheduled_insn): New static function.
19854         (queue_to_ready, choose_ready): Use it.
19855         (schedule_block): Init nonscheduled_insns_begin.
19856         (sched_emit_insn): Update.
19857
19858
19859 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
19860
19861         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19862         to GENERAL_REGS.
19863         (aarch64_secondary_reload) : LikeWise.
19864         (aarch64_class_max_nregs) : Remove CORE_REGS.
19865         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19866         (REG_CLASS_NAMES) : Likewise.
19867         (REG_CLASS_CONTENTS) : LikeWise.
19868         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19869
19870 2014-05-21  Guozhi Wei  <carrot@google.com>
19871
19872         PR target/61202
19873         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19874         constraint.
19875         (vqdmulhq_n_s16): Likewise.
19876
19877 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
19878
19879         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19880
19881 2014-05-21  Marek Polacek  <polacek@redhat.com>
19882
19883         PR sanitizer/61272
19884         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19885
19886 2014-05-21  Martin Jambor  <mjambor@suse.cz>
19887
19888         * doc/invoke.texi (Optimize Options): Document parameters
19889         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19890         ipa-cp-array-index-hint-bonus.
19891
19892 2014-05-21  Mark Wielaard  <mjw@redhat.com>
19893
19894         PR debug/16063
19895         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19896         version >= 3 or not strict DWARF.
19897         * langhooks.h (struct lang_hooks_for_types): Add
19898         enum_underlying_base_type.
19899         * langhooks.c (lhd_enum_underlying_base_type): New function.
19900         * gcc/langhooks.h (struct lang_hooks_for_types): Add
19901         enum_underlying_base_type.
19902         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19903         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19904         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19905
19906 2014-05-21  Richard Biener  <rguenther@suse.de>
19907
19908         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19909
19910 2014-05-21  John Marino  <gnugcc@marino.st>
19911
19912         * config.gcc (*-*-dragonfly*): New target.
19913         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19914         * configure: Regenerate.
19915         * config/dragonfly-stdint.h: New.
19916         * config/dragonfly.h: New.
19917         * config/dragonfly.opt: New.
19918         * config/i386/dragonfly.h: New.
19919         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19920
19921 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19922
19923         * tree.def (VOID_CST): New.
19924         * tree-core.h (TI_VOID): New.
19925         * tree.h (void_node): New.
19926         * tree.c (tree_node_structure_for_code, tree_code_size)
19927         (iterative_hash_expr): Handle VOID_CST.
19928         (build_common_tree_nodes): Initialize void_node.
19929
19930 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
19931
19932         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19933         functions.
19934         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19935
19936         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19937         more places.
19938
19939         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19940         flag_reorder_blocks_and_partition.
19941         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19942
19943 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
19944
19945         PR target/54236
19946         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
19947         constraints.
19948         (*addc_r_t): Add new insn_and_split.
19949
19950 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
19951
19952         PR middle-end/61252
19953         * omp-low.c (handle_simd_reference): New function.
19954         (lower_rec_input_clauses): Use it.  Defer adding reference
19955         initialization even for reduction without placeholder if in simd,
19956         handle it properly later on.
19957
19958 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19959
19960         PR tree-optimization/60899
19961         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19962         assume all static symbols will have definition wile parsing and
19963         check the do have definition later in compilation; check that
19964         variable referring symbol will be output before concluding that
19965         reference is safe; be conservative for referring local statics;
19966         be more precise about when comdat is output in other partition.
19967
19968 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19969
19970         PR bootstrap/60984
19971         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19972         parameter.
19973         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19974         (ipa_inline): Loop inline_to_all_callers until no more aliases
19975         are removed.
19976
19977 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19978
19979         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19980         set writeonly flag only for vars actually written to.
19981
19982 2014-05-20  Dehao Chen  <dehao@google.com>
19983
19984         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19985         and callee count to get clone count.
19986         * tree-inline.c (expand_call_inline): Use callee count instead of bb
19987         count in copy_body.
19988
19989 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19990
19991         PR rtl-optimization/61243
19992         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19993
19994 2014-05-20  Xinliang David Li  <davidxl@google.com>
19995
19996         * cgraphunit.c (walk_polymorphic_call_targets): Add
19997         dbgcnt and fopt-info support.
19998         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19999         * ipa-devirt.c (ipa_devirt): Ditto.
20000         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
20001         * ipa.c (walk_polymorphic_call_targets): Ditto.
20002         * gimple-fold.c (fold_gimple_assign): Ditto.
20003         (gimple_fold_call): Ditto.
20004         * dbgcnt.def: New counter.
20005
20006 2014-05-20  DJ Delorie  <dj@redhat.com>
20007
20008         * config/msp430/msp430.md (split): Don't allow subregs when
20009         splitting SImode adds.
20010         (andneghi): Fix subtraction logic.
20011         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
20012
20013 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
20014
20015         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
20016         symbols.
20017         * except.c (switch_to_exception_section, resolve_unique_section,
20018         get_named_text_section, default_function_rodata_section,
20019         align_variable, get_block_for_decl, default_section_type_flags):
20020         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
20021         * symtab.c (symtab_add_to_same_comdat_group,
20022         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
20023         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
20024         Likewise.
20025         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
20026         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
20027         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
20028         (c6x_function_in_section_p): Likewise.
20029         * config/darwin.c (machopic_select_section): Likewise.
20030         * config/arm/arm.c (arm_function_in_section_p): Likewise.
20031         * config/mips/mips.c (mips_function_rodata_section): Likewise.
20032         * config/mep/mep.c (mep_select_section): LIkewise.
20033         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
20034
20035 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
20036
20037         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
20038         EH region of calls to pure functions that can throw an exception.
20039         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
20040         (copy_reference_ops_from_call): Also copy the EH region of the call if
20041         it can throw an exception.
20042
20043 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20044
20045         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
20046         nested VEC_SELECTs that are inverses of each other.
20047
20048 2014-05-20  Richard Biener  <rguenther@suse.de>
20049
20050         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
20051         (extract_and_process_scc_for_name): not here.
20052         (cond_dom_walker::before_dom_children): Only process
20053         stmts that end the BB in interesting ways.
20054         (run_scc_vn): Mark param uses as visited.
20055
20056 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20057
20058         * config/arm/arm.md (arith_shiftsi): Do not predicate for
20059         arm_restrict_it.
20060
20061 2014-05-20  Nick Clifton  <nickc@redhat.com>
20062
20063         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
20064         (msp430_gimplify_va_arg_expr): New function.
20065         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
20066
20067         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
20068         operand 0 in order to prevent confusion about the number of
20069         registers involved.
20070
20071 2014-05-20  Richard Biener  <rguenther@suse.de>
20072
20073         PR tree-optimization/61221
20074         * tree-ssa-pre.c (el_to_update): Remove.
20075         (eliminate_dom_walker::before_dom_children): Handle released
20076         VDEFs by value-numbering them to the associated VUSE.  Update
20077         stmt immediately for substituted call address.
20078         (eliminate): Remove delayed stmt updating code.
20079         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
20080         possibly late re-numbered vuses.
20081         (vn_reference_lookup_2): Adjust.
20082         (vn_reference_lookup_pieces): Likewise.
20083         (vn_reference_lookup): Likewise.
20084
20085 2014-05-20  Richard Biener  <rguenther@suse.de>
20086
20087         * config.gcc: Remove need_64bit_hwint.
20088         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
20089         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
20090         it to be true.
20091         * config.in: Regenerate.
20092         * configure: Likewise.
20093
20094 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
20095
20096         * doc/extend.texi: Create Label Attributes section,
20097         move all label attributes into it and reference it.
20098
20099 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
20100
20101         * arm.c (thumb1_reorg): When scanning backwards skip anything
20102         that's not a proper insn.
20103
20104 2014-05-19  Richard Biener  <rguenther@suse.de>
20105
20106         PR tree-optimization/61221
20107         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20108         Do nothing for unreachable blocks.
20109         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
20110         Improve unreachability detection.
20111
20112 2014-05-19  Richard Biener  <rguenther@suse.de>
20113
20114         PR tree-optimization/61209
20115         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
20116
20117 2014-05-19  Nick Clifton  <nickc@redhat.com>
20118
20119         * except.c (init_eh): Fix computation of builtin setjmp buffer
20120         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
20121
20122 2014-05-19  Richard Biener  <rguenther@suse.de>
20123
20124         PR tree-optimization/61184
20125         * tree-vrp.c (is_negative_overflow_infinity): Use
20126         TREE_OVERFLOW_P and do that check first.
20127         (is_positive_overflow_infinity): Likewise.
20128         (is_overflow_infinity): Likewise.
20129         (vrp_operand_equal_p): Properly treat operands with
20130         differing overflow as not equal.
20131
20132 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
20133
20134         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
20135         shift simplification where it was intended.
20136
20137 2014-05-19  Christian Bruel  <christian.bruel@st.com>
20138
20139         PR target/61195
20140         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
20141
20142 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
20143
20144         PR target/61084
20145         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
20146         than wide_int.
20147
20148 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20149
20150         * reg-notes.def (CROSSING_JUMP): Likewise.
20151         * rtl.h (rtx_def): Update comment for jump flag.
20152         (CROSSING_JUMP_P): Define.
20153         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
20154         of a REG_CROSSING_JUMP note.
20155         * cfghooks.c (tidy_fallthru_edges): Likewise.
20156         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
20157         * emit-rtl.c (try_split): Likewise.
20158         * haifa-sched.c (sched_create_recovery_edges): Likewise.
20159         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
20160         * jump.c (redirect_jump_2): Likewise.
20161         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
20162         (relax_delay_slots): Likewise.
20163         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
20164         (bbit_di): Likewise.
20165         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
20166         * config/sh/sh.md (jump_compact): Likewise.
20167         * bb-reorder.c (rotate_loop): Likewise.
20168         (pass_duplicate_computed_gotos::execute): Likewise.
20169         (add_reg_crossing_jump_notes): Rename to...
20170         (update_crossing_jump_flags): ...this.
20171         (pass_partition_blocks::execute): Update accordingly.
20172
20173 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20174
20175         * tree.h: Remove extraneous template <>.
20176
20177 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20178
20179         * ipa.c (symtab_remove_unreachable_nodes): Remove
20180         symbol from comdat group if its body was eliminated.
20181         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
20182         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
20183         (symtab_unregister_node): ... this one.
20184         (verify_symtab_base): More strict checking of comdats.
20185         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
20186
20187 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20188
20189         * tree-pass.h (make_pass_ipa_comdats): New pass.
20190         * timevar.def (TV_IPA_COMDATS): New timevar.
20191         * passes.def (pass_ipa_comdats): Add.
20192         * Makefile.in (OBJS): Add ipa-comdats.o
20193         * ipa-comdats.c: New file.
20194
20195 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20196
20197         * ipa.c (update_visibility_by_resolution_info): New function.
20198         (function_and_variable_visibility): Use it.
20199
20200 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20201
20202         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
20203         New functions.
20204         (FOR_EACH_DEFINED_SYMBOL): New macro.
20205         (varpool_first_static_initializer, varpool_next_static_initializer,
20206         varpool_first_defined_variable, varpool_next_defined_variable):
20207         Fix comments.
20208         (symtab_in_same_comdat_p): Correctly deal with inline functions.
20209
20210 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20211
20212         * ggc-page.c (ggc_handle_finalizers): Add comment.
20213
20214 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20215
20216         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
20217         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
20218         (ggc_internal_cleared_alloc): Likewise.
20219         * ggc-page.c (finalizer): New class.
20220         (vec_finalizer): Likewise.
20221         (globals::finalizers): New member.
20222         (globals::vec_finalizers): Likewise.
20223         (ggc_internal_alloc): Record the finalizer if any for the block being
20224         allocated.
20225         (ggc_handle_finalizers): New function.
20226         (ggc_collect): Call ggc_handle_finalizers.
20227         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
20228         finalizer.
20229         (ggc_internal_cleared_alloc): Likewise.
20230         (finalize): New function.
20231         (need_finalization_p): Likewise.
20232         (ggc_alloc): Install the type's destructor as the finalizer if it
20233         might do something.
20234         (ggc_cleared_alloc): Likewise.
20235         (ggc_vec_alloc): Likewise.
20236         (ggc_cleared_vec_alloc): Likewise.
20237
20238 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20239
20240         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
20241
20242 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20243
20244         * alias.c (record_alias_subset): Adjust.
20245         * bitmap.c (bitmap_element_allocate): Likewise.
20246         (bitmap_gc_alloc_stat): Likewise.
20247         * cfg.c (init_flow): Likewise.
20248         (alloc_block): Likewise.
20249         (unchecked_make_edge): Likewise.
20250         * cfgloop.c (alloc_loop): Likewise.
20251         (flow_loops_find): Likewise.
20252         (rescan_loop_exit): Likewise.
20253         * cfgrtl.c (init_rtl_bb_info): Likewise.
20254         * cgraph.c (insert_new_cgraph_node_version): Likewise.
20255         (cgraph_allocate_node): Likewise.
20256         (cgraph_create_edge_1): Likewise.
20257         (cgraph_allocate_init_indirect_info): Likewise.
20258         * cgraphclones.c (cgraph_clone_edge): Likewise.
20259         * cgraphunit.c (add_asm_node): Likewise.
20260         (init_lowered_empty_function): Likewise.
20261         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
20262         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20263         (alpha_use_linkage): Likewise.
20264         * config/arc/arc.c (arc_init_machine_status): Likewise.
20265         * config/arm/arm.c (arm_init_machine_status): Likewise.
20266         * config/avr/avr.c (avr_init_machine_status): Likewise.
20267         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20268         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
20269         * config/cris/cris.c (cris_init_machine_status): Likewise.
20270         * config/darwin.c (machopic_indirection_name): Likewise.
20271         (darwin_build_constant_cfstring): Likewise.
20272         (darwin_enter_string_into_cfstring_table): Likewise.
20273         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
20274         * config/frv/frv.c (frv_init_machine_status): Likewise.
20275         * config/i386/i386.c (get_dllimport_decl): Likewise.
20276         (ix86_init_machine_status): Likewise.
20277         (assign_386_stack_local): Likewise.
20278         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20279         (i386_pe_maybe_record_exported_symbol): Likewise.
20280         (i386_pe_record_stub): Likewise.
20281         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20282         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20283         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20284         (m32c_note_pragma_address): Likewise.
20285         * config/mep/mep.c (mep_init_machine_status): Likewise.
20286         (mep_note_pragma_flag): Likewise.
20287         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20288         (mips16_local_alias): Likewise.
20289         (mips_init_machine_status): Likewise.
20290         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20291         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20292         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
20293         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
20294         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
20295         * config/pa/pa.c (pa_init_machine_status): Likewise.
20296         (pa_get_deferred_plabel): Likewise.
20297         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
20298         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20299         (rs6000_init_machine_status): Likewise.
20300         (output_toc): Likewise.
20301         * config/s390/s390.c (s390_init_machine_status): Likewise.
20302         * config/score/score.c (score_output_external): Likewise.
20303         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20304         * config/spu/spu.c (spu_init_machine_status): Likewise.
20305         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
20306         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
20307         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20308         * coverage.c (coverage_end_function): Likewise.
20309         * dbxout.c (dbxout_init): Likewise.
20310         * doc/gty.texi: Don't mention variable_size attribute.
20311         * dwarf2cfi.c (new_cfi): Adjust.
20312         (new_cfi_row): Likewise.
20313         (copy_cfi_row): Likewise.
20314         (create_cie_data): Likewise.
20315         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
20316         (new_loc_descr): Likewise.
20317         (find_AT_string_in_table): Likewise.
20318         (add_addr_table_entry): Likewise.
20319         (new_die): Likewise.
20320         (add_var_loc_to_decl): Likewise.
20321         (clone_die): Likewise.
20322         (clone_as_declaration): Likewise.
20323         (break_out_comdat_types): Likewise.
20324         (new_loc_list): Likewise.
20325         (add_loc_descr_to_each): Likewise.
20326         (add_location_or_const_value_attribute): Likewise.
20327         (add_linkage_name): Likewise.
20328         (lookup_filename): Likewise.
20329         (dwarf2out_var_location): Likewise.
20330         (new_line_info_table): Likewise.
20331         (dwarf2out_init): Likewise.
20332         (mem_loc_descriptor): Likewise.
20333         (loc_descriptor): Likewise.
20334         (add_const_value_attribute): Likewise.
20335         (tree_add_const_value_attribute): Likewise.
20336         (comp_dir_string): Likewise.
20337         (dwarf2out_vms_debug_main_pointer): Likewise.
20338         (string_cst_pool_decl): Likewise.
20339         * emit-rtl.c (set_mem_attrs): Likewise.
20340         (get_reg_attrs): Likewise.
20341         (start_sequence): Likewise.
20342         (init_emit): Likewise.
20343         (init_emit_regs): Likewise.
20344         * except.c (init_eh_for_function): Likewise.
20345         (gen_eh_region): Likewise.
20346         (gen_eh_region_catch): Likewise.
20347         (gen_eh_landing_pad): Likewise.
20348         (add_call_site): Likewise.
20349         * function.c (add_frame_space): Likewise.
20350         (insert_temp_slot_address): Likewise.
20351         (assign_stack_temp_for_type): Likewise.
20352         (get_hard_reg_initial_val): Likewise.
20353         (allocate_struct_function): Likewise.
20354         (prepare_function_start): Likewise.
20355         (types_used_by_var_decl_insert): Likewise.
20356         * gengtype.c (variable_size_p): Remove function.
20357         (enum alloc_quantity): Remove enum.
20358         (write_typed_alloc_def): Remove function.
20359         (write_typed_struct_alloc_def): Likewise.
20360         (write_typed_typedef_alloc_def): Likewise.
20361         (write_typed_alloc_defns): Likewise.
20362         (main): Adjust.
20363         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
20364         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
20365         * ggc.h (ggc_alloc): new function.
20366         (ggc_cleared_alloc): Likewise.
20367         (ggc_vec_alloc): Template on type of vector element, and remove
20368         element size argument.
20369         (ggc_cleared_vec_alloc): Likewise.
20370         * gimple.c (gimple_build_omp_for): Adjust.
20371         (gimple_copy): Likewise.
20372         * ipa-cp.c (get_replacement_map): Likewise.
20373         (find_aggregate_values_for_callers_subset): Likewise.
20374         (known_aggs_to_agg_replacement_list): Likewise.
20375         * ipa-devirt.c (get_odr_type): Likewise.
20376         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
20377         (read_agg_replacement_chain): Likewise.
20378         * loop-iv.c (get_simple_loop_desc): Likewise.
20379         * lto-cgraph.c (input_node_opt_summary): Likewise.
20380         * lto-section-in.c (lto_new_in_decl_state): Likewise.
20381         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20382         (input_eh_region): Likewise.
20383         (input_eh_lp): Likewise.
20384         (input_cfg): Likewise.
20385         * optabs.c (set_optab_libfunc): Likewise.
20386         (init_tree_optimization_optabs): Likewise.
20387         (set_conv_libfunc): Likewise.
20388         * passes.c (do_per_function_toporder): Likewise.
20389         * rtl.h: Don't use variable_size gty attribute.
20390         * sese.c (if_region_set_false_region): Adjust.
20391         * stringpool.c (gt_pch_save_stringpool): Likewise.
20392         * target-globals.c (save_target_globals): Likewise.
20393         * toplev.c (general_init): Likewise.
20394         * trans-mem.c (record_tm_replacement): Likewise.
20395         (split_bb_make_tm_edge): Likewise.
20396         * tree-cfg.c (move_sese_region_to_fn): Likewise.
20397         * tree-data-ref.h (lambda_vector_new): Likewise.
20398         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20399         * tree-iterator.c (tsi_link_before): Likewise.
20400         (tsi_link_after): Likewise.
20401         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20402         * tree-ssa-loop-niter.c (record_estimate): Likewise.
20403         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20404         * tree-ssa-operands.h: Don't use variable_size gty attribute.
20405         * tree-ssa.c (init_tree_ssa): Adjust.
20406         * tree-ssanames.c (set_range_info): Likewise.
20407         (get_ptr_info): Likewise.
20408         (duplicate_ssa_name_ptr_info): Likewise.
20409         (duplicate_ssa_name_range_info): Likewise.
20410         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
20411         (unpack_ts_fixed_cst_value_fields): Likewise.
20412         * tree.c (build_fixed): Likewise.
20413         (build_real): Likewise.
20414         (build_string): Likewise.
20415         (decl_priority_info): Likewise.
20416         (decl_debug_expr_insert): Likewise.
20417         (decl_value_expr_insert): Likewise.
20418         (decl_debug_args_insert): Likewise.
20419         (type_hash_add): Likewise.
20420         (build_omp_clause): Likewise.
20421         * ubsan.c (decl_for_type_insert): Likewise.
20422         * varasm.c (get_unnamed_section): Likewise.
20423         (get_noswitch_section): Likewise.
20424         (get_section): Likewise.
20425         (get_block_for_section): Likewise.
20426         (create_block_symbol): Likewise.
20427         (build_constant_desc): Likewise.
20428         (create_constant_pool): Likewise.
20429         (force_const_mem): Likewise.
20430         (record_tm_clone_pair): Likewise.
20431         * varpool.c (varpool_create_empty_node): Likewise.
20432
20433 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20434
20435         * dwarf2out.c (tree_add_const_value_attribute): Call
20436         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
20437         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
20438         instead of ggc_internal_<x>alloc_stat.
20439         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
20440         (ggc_realloc): Likewise.
20441         * ggc-none.c (ggc_internal_alloc): Likewise.
20442         (ggc_internal_cleared_alloc): Likewise.
20443         * ggc-page.c: Likewise.
20444         * ggc.h (ggc_internal_alloc_stat): Likewise.
20445         (ggc_internal_alloc): Remove macro.
20446         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
20447         (ggc_internal_cleared_alloc): Remove macro.
20448         (GGC_RESIZEVEC): Adjust.
20449         (ggc_resizevar): Remove macro.
20450         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
20451         (ggc_internal_cleared_vec_alloc_stat): Likewise.
20452         (ggc_internal_vec_cleared_alloc): Remove macro.
20453         (ggc_alloc_atomic_stat): Drop _stat suffix.
20454         (ggc_alloc_atomic): Remove macro.
20455         (ggc_alloc_cleared_atomic): Remove macro.
20456         (ggc_alloc_string_stat): Drop _stat suffix.
20457         (ggc_alloc_string): Remove macro.
20458         (ggc_alloc_rtx_def_stat): Adjust.
20459         (ggc_alloc_tree_node_stat): Likewise.
20460         (ggc_alloc_cleared_tree_node_stat): Likewise.
20461         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
20462         (ggc_alloc_cleared_simd_clone_stat): Likewise.
20463         * gimple.c (gimple_build_omp_for): Likewise.
20464         (gimple_copy): Likewise.
20465         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
20466         * toplev.c (realloc_for_line_map): Adjust.
20467         * tree-data-ref.h (lambda_vector_new): Likewise.
20468         * tree-phinodes.c (allocate_phi_node): Likewise.
20469         * tree.c (grow_tree_vec_stat): Likewise.
20470         * vec.h (va_gc::reserve): Adjust.
20471
20472 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
20473
20474         * config/microblaze/microblaze.c (break_handler): New Declaration.
20475         (microblaze_break_function_p,microblaze_is_break_handler): New.
20476         (compute_frame_size): Use microblaze_break_function_p.
20477         Add the test of break_handler.
20478         (microblaze_function_prologue) : Add the test of variable
20479         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
20480         (microblaze_function_epilogue) : Add the test of break_handler.
20481         (microblaze_globalize_label) : Add the test of break_handler.
20482         Check the name by BREAK_HANDLER_NAME.
20483
20484         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
20485
20486         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
20487         microblaze_is_break_handler test.
20488         (call_internal1,call_value_intern): Use microblaze_break_function_p.
20489         Use SYMBOL_REF_DECL.
20490
20491         * config/microblaze/microblaze-protos.h
20492         (microblaze_break_function_p,microblaze_is_break_handler):
20493         New Declaration.
20494
20495         * doc/extend.texi (MicroBlaze break_handler Functions): Document
20496         new MicroBlaze break_handler functions.
20497
20498 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
20499
20500         * doc/extend.texi (Size of an asm): Move node text according
20501         to its @menu entry position.
20502
20503 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
20504
20505         PR tree-optimization/61140
20506         PR tree-optimization/61150
20507         PR tree-optimization/61197
20508         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
20509
20510 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
20511
20512         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
20513
20514 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
20515
20516         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
20517         __SIZEOF_INT128__ is defined.
20518
20519 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20520
20521         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
20522         (rs6000_delegitimize_address): Use it.
20523
20524 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20525
20526         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
20527         inplace argument.  Store the new address in the original MEM when true.
20528         * emit-rtl.c (change_address_1): Likewise.
20529         (adjust_address_1, adjust_automodify_address_1, offset_address):
20530         Update accordingly.
20531         * rtl.h (plus_constant): Add an inplace argument.
20532         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
20533         when true.  Avoid generating (plus X (const_int 0)).
20534         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
20535         in-place.  Pass true to plus_constant.
20536         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
20537
20538 2014-05-16  Dehao Chen  <dehao@google.com>
20539
20540         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
20541
20542 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20543
20544         PR target/54089
20545         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
20546         patterns.
20547         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
20548
20549 2014-05-16  Dehao Chen  <dehao@google.com>
20550
20551         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
20552         optimize_function_for_size_p.
20553         * regs.h (REG_FREQ_FROM_BB): Likewise.
20554
20555 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20556
20557         PR target/51244
20558         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
20559         negt_reg_operand cases.
20560         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
20561         predicate.
20562         * config/sh/predicates.md (cbranch_treg_value): Simplify.
20563
20564 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20565
20566         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
20567         target variants.
20568
20569 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
20570
20571         Revert:
20572         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
20573
20574         * tree-cfg.c (dump_function_to_file): Dump the return type of
20575         functions, in a line to itself before the function body, mimicking
20576         the layout of a C function.
20577
20578 2014-05-16  Dehao Chen  <dehao@google.com>
20579
20580         * cfghooks.c (make_forwarder_block): Use direct computation to
20581         get fall-through edge's count and frequency.
20582
20583 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
20584
20585         * config/arc/arc.c (arc_init): Fix typo in error message.
20586         * config/i386/i386.c (ix86_expand_builtin): Likewise.
20587         (split_stack_prologue_scratch_regno): Likewise.
20588         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
20589         word from error message.
20590
20591 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20592
20593         * ira-costs.c: Fix typo in comment.
20594
20595 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
20596
20597         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20598
20599 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
20600
20601         * varpool.c (dump_varpool_node): Dump write-only flag.
20602         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20603         write-only flag.
20604         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20605         write-only variables.
20606         * ipa.c (process_references): New function.
20607         (set_readonly_bit): New function.
20608         (set_writeonly_bit): New function.
20609         (clear_addressable_bit): New function.
20610         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20611         fix handling of aliases.
20612         * cgraph.h (struct varpool_node): Add writeonly flag.
20613
20614 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
20615
20616         PR rtl-optimization/60969
20617         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20618         Calculate costs for this case.
20619
20620 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
20621
20622         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20623         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20624
20625 2014-05-16  Richard Biener  <rguenther@suse.de>
20626
20627         PR tree-optimization/61194
20628         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20629         bool patterns ending in a COND_EXPR.
20630
20631 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20632
20633         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20634
20635 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20636
20637         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20638         where we were unable to cost an RTX.
20639
20640 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20641
20642         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20643         HIGH, LO_SUM.
20644
20645 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20646             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20647
20648         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
20649
20650 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20651             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20652
20653         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20654         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20655
20656 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20657             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20658
20659         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20660         operators.
20661
20662 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20663             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20664
20665         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20666         DIV/MOD.
20667
20668 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20669             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20670
20671         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20672         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20673
20674 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20675             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20676
20677         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20678         rotates and shifts.
20679
20680 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20681             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20682
20683         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20684         ZERO_EXTEND and SIGN_EXTEND better.
20685
20686 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20687             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20688
20689         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20690         logical operations.
20691
20692 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20693             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20694
20695         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20696         costs when costing loads and stores to memory.
20697
20698 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20699             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
20700
20701         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20702         for SET RTX.
20703
20704 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20705
20706         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20707
20708 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20709             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20710
20711         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20712         to...
20713         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20714         well formed.
20715         (aarch64_rtx_mult_cost): New.
20716         (aarch64_rtx_costs): Use it, refactor as appropriate.
20717
20718 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20719             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20720
20721         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20722         emit instructions, return number of instructions which would
20723         be emitted.
20724         (aarch64_add_constant): Update call to aarch64_build_constant.
20725         (aarch64_output_mi_thunk): Likewise.
20726         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20727         a CONST_DOUBLE.
20728
20729 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20730
20731         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20732         (TARGET_RTX_COSTS): Call it.
20733
20734 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20735
20736         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20737         (cortexa57_vector_cost): Likewise.
20738         (cortexa57_tunings): Use them.
20739
20740 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20741
20742         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20743         (cpu_addrcost_table): Use it.
20744         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20745         (aarch64_address_cost): Rewrite using aarch64_classify_address,
20746         move it.
20747
20748 2014-05-16  Richard Biener  <rguenther@suse.de>
20749
20750         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20751         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20752         (visit_phi): Ignore edges marked as not executable.
20753         (class cond_dom_walker): New.
20754         (cond_dom_walker::before_dom_children): Value-number
20755         control statements and mark successor edges as not
20756         executable if possible.
20757         (run_scc_vn): First walk all control statements in
20758         dominator order, marking edges as not executable.
20759         * tree-inline.c (copy_edges_for_bb): Be not confused
20760         about random edge flags.
20761
20762 2014-05-16  Richard Biener  <rguenther@suse.de>
20763
20764         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20765
20766 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
20767
20768         PR target/61193
20769         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20770         (__TM_simple_begin): Use it.
20771         (__TM_begin): Likewise.
20772
20773 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20774
20775         PR ipa/61085
20776         * ipa-prop.c (update_indirect_edges_after_inlining): Check
20777         type_preserved flag when the indirect edge is polymorphic.
20778
20779 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20780
20781         PR tree-optimization/61090
20782         * tree-sra.c (sra_modify_expr): Pass the current gsi to
20783         build_ref_for_model.
20784
20785 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20786
20787         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20788         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20789
20790 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
20791
20792         PR tree-optimization/61158
20793         * fold-const.c (fold_binary_loc): If X is zero-extended and
20794         shiftc >= prec, make sure zerobits is all ones instead of
20795         invoking undefined behavior.
20796
20797 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20798
20799         * regcprop.h: New file.
20800         * regcprop.c (skip_debug_insn_p): New decl.
20801         (replace_oldest_value_reg): Check skip_debug_insn_p.
20802         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20803         * shrink-wrap.c: Include regcprop.h.
20804         (prepare_shrink_wrap): Call
20805         copyprop_hardreg_forward_bb_without_debug_insn.
20806
20807 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20808
20809         * shrink-wrap.h: Update comment.
20810         * shrink-wrap.c: Update comment.
20811         (next_block_for_reg): Rename to live_edge_for_reg.
20812         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20813         (move_insn_for_shrink_wrap): Split live_edge.
20814         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20815
20816 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20817
20818         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20819         Delete.
20820         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20821         * config/sparc/sparc.md (fptype_ut699): New attribute.
20822         (in_branch_delay): Return false if -mfix-ut699 is specified and
20823         fptype_ut699 is set to single.
20824         (truncdfsf2): Add fptype_ut699 attribute.
20825         (fix_truncdfsi2): Likewise.
20826         (floatsisf2): Change fptype attribute.
20827         (fix_truncsfsi2): Likewise.
20828         (negtf2_notv9): Delete.
20829         (negtf2_v9): Likewise.
20830         (negtf2_hq): New instruction.
20831         (negtf2): New instruction and splitter.
20832         (negdf2_notv9): Rewrite.
20833         (abstf2_notv9): Delete.
20834         (abstf2_hq_v9): Likewise.
20835         (abstf2_v9): Likewise.
20836         (abstf2_hq): New instruction.
20837         (abstf2): New instruction and splitter.
20838         (absdf2_notv9): Rewrite.
20839
20840 2014-05-14  Cary Coutant  <ccoutant@google.com>
20841
20842         PR debug/61013
20843         * opts.c (common_handle_option): Don't special-case "-g".
20844         (set_debug_level): Default to at least level 2 with "-g".
20845
20846 2014-05-14  DJ Delorie  <dj@redhat.com>
20847
20848         * config/msp430/msp430.c (msp430_builtin): Add
20849         MSP430_BUILTIN_DELAY_CYCLES.
20850         (msp430_init_builtins): Register void __delay_cycles(long long).
20851         (msp430_builtin_decl): Add it.
20852         (cg_magic_constant): New.
20853         (msp430_expand_delay_cycles): New.
20854         (msp430_expand_builtin): Call it.
20855         (msp430_print_operand_raw): Change integer printing from "int" to
20856         HOST_WIDE_INT.
20857         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20858         (delay_cycles_start): New.
20859         (delay_cycles_end): New.
20860         (delay_cycles_32): New.
20861         (delay_cycles_32x): New.
20862         (delay_cycles_16): New.
20863         (delay_cycles_16x): New.
20864         (delay_cycles_2): New.
20865         (delay_cycles_1): New.
20866         * doc/extend.texi: Document __delay_cycles().
20867
20868 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
20869
20870         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20871         length attribute computation.
20872
20873 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
20874
20875         PR debug/61188
20876         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20877
20878 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
20879
20880         PR target/61084
20881         * config/sparc/sparc.md: Fix types of low and high in DI constant
20882         splitter.  Use gen_int_mode in some other splitters.
20883
20884 2014-05-14  Martin Jambor  <mjambor@suse.cz>
20885
20886         PR ipa/60897
20887         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20888
20889 2014-05-14  James Norris  <jnorris@codesourcery.com>
20890
20891         * omp-low.c (expand_parallel_call): Remove shadow variable.
20892         (expand_omp_taskreg): Likewise.
20893
20894 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
20895
20896         * common/config/i386/i386-common.c
20897         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20898         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20899         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20900         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20901         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20902         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20903         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20904         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20905         xsavecintrin.h, xsavesintrin.h.
20906         (x86_64-*-*): Ditto.
20907         * config/i386/clflushoptintrin.h: New.
20908         * config/i386/xsavecintrin.h: Ditto.
20909         * config/i386/xsavesintrin.h: Ditto.
20910         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20911         (bit_XSAVES): Ditto.
20912         (bit_XSAVES): Ditto.
20913         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20914         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20915         -mno-clflushopt.
20916         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20917         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20918         OPTION_MASK_ISA_XSAVES.
20919         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20920         -mxsavec, -mxsaves.
20921         (PTA_CLFLUSHOPT) Define.
20922         (PTA_XSAVEC): Ditto.
20923         (PTA_XSAVES): Ditto.
20924         (ix86_option_override_internal): Handle new options.
20925         (ix86_valid_target_attribute_inner_p): Ditto.
20926         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20927         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20928         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20929         (bdesc_special_args): Add __builtin_ia32_xsaves,
20930         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20931         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20932         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20933         (ix86_expand_builtin): Handle new builtins.
20934         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20935         (TARGET_CLFLUSHOPT_P): Ditto.
20936         (TARGET_XSAVEC): Ditto.
20937         (TARGET_XSAVEC_P): Ditto.
20938         (TARGET_XSAVES): Ditto.
20939         (TARGET_XSAVES_P): Ditto.
20940         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20941         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20942         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20943         (ANY_XRSTOR): New.
20944         (ANY_XRSTOR64): Ditto.
20945         (xrstor): Ditto.
20946         (xrstor): Change into <xrstor>.
20947         (xrstor_rex64): Change into <xrstor>_rex64.
20948         (xrstor64): Change into <xrstor>64
20949         (clflushopt): New.
20950         * config/i386/i386.opt (mclflushopt): New.
20951         (mxsavec): Ditto.
20952         (mxsaves): Ditto.
20953         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20954         xsavecintrin.h.
20955         * doc/invoke.texi: Document new options.
20956
20957 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20958
20959         PR rtl-optimization/60866
20960         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20961         Default it to -1.  Pass it down to init_simplejump_data.
20962         (init_simplejump_data): New parameter old_seqno.  Pass it down
20963         to get_seqno_for_a_jump.
20964         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
20965         initializing new jump seqno as a last resort.  Add comment.
20966         (sel_redirect_edge_and_branch): Save old seqno of the conditional
20967         jump and pass it down to sel_init_new_insn.
20968         (sel_redirect_edge_and_branch_force): Likewise.
20969
20970 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
20971
20972         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20973         shifted values to avoid build warning.
20974
20975 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20976
20977         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20978         * cfgrtl.c (rtl_merge_blocks): Fix comment.
20979         (cfg_layout_merge_blocks): Likewise.
20980         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20981
20982 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20983
20984         PR rtl-optimization/60901
20985         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20986         bb predecessor belongs to the same scheduling region.  Adjust comment.
20987
20988 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
20989
20990         * doc/sourcebuild.texi: (dfp_hw): Document.
20991         (p8vector_hw): Likewise.
20992         (powerpc_eabi_ok): Likewise.
20993         (powerpc_elfv2): Likewise.
20994         (powerpc_htm_ok): Likewise.
20995         (ppc_recip_hw): Likewise.
20996         (vsx_hw): Likewise.
20997
20998 2014-05-13  Cary Coutant  <ccoutant@google.com>
20999
21000         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
21001
21002 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
21003
21004         * gengtype-parse.c (require3): Eliminate in favor of...
21005         (require4): New.
21006         (require_template_declaration): Update to support optional single *
21007         on a type.
21008
21009         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
21010         (create_user_defined_type): Handle a single level of explicit
21011         pointerness within template arguments.
21012         (struct write_types_data): Add field "kind".
21013         (filter_type_name): Handle "*" character.
21014         (write_user_func_for_structure_ptr): Require a write_types_data
21015         rather than just a prefix string, so that we can look up the kind
21016         of the wtd and use it as an index into wrote_user_func_for_ptr,
21017         ensuring that such functions are written at most once.  Support
21018         subclasses by invoking the marking function of the ultimate base class.
21019         (write_user_func_for_structure_body): Require a write_types_data
21020         rather than just a prefix string, so that we can pass this to
21021         write_user_func_for_structure_ptr.
21022         (write_func_for_structure): Likewise.
21023         (ggc_wtd): Add initializer of new "kind" field.
21024         (pch_wtd): Likewise.
21025
21026         * gengtype.h (enum write_types_kinds): New.
21027         (struct type): Add field wrote_user_func_for_ptr to the "s"
21028         union member.
21029
21030 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
21031
21032         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
21033         instead of const_binop.
21034         (fold_binary_loc): Likewise.
21035
21036 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
21037
21038         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
21039         calculation to match get_ref_base_and_extent.
21040
21041 2014-05-13  Catherine Moore  <clm@codesourcery.com>
21042             Sandra Loosemore  <sandra@codesourcery.com>
21043
21044         * configure.ac: Fix assembly for explicit JALR relocation check.
21045         * configure: Regenerate.
21046
21047 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21048
21049         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
21050         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
21051         Remove associated type declarations and initialisations.
21052         (arm_expand_neon_builtin): Likewise.
21053         (neon_emit_pair_result_insn): Delete.
21054         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
21055         * config/arm/neon.md (neon_vtrn<mode>): Delete.
21056         (neon_vzip<mode>): Likewise.
21057         (neon_vuzp<mode>): Likewise.
21058
21059 2014-05-13  Richard Biener  <rguenther@suse.de>
21060
21061         PR ipa/60973
21062         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
21063         it needs revisiting whether the call still may be tail-called.
21064
21065 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21066
21067         * rtl.def (SYMBOL_REF): Remove middle "0" field.
21068         * rtl.h (block_symbol): Reduce number of fields to 2.
21069         (rtx_def): Add u2.symbol_ref_flags.
21070         (SYMBOL_REF_FLAGS): Use it.
21071         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
21072         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
21073         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
21074         Lower index of SYMBOL_REF_DATA.
21075         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
21076         Print SYMBOL_REF_FLAGS at the same time.
21077         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
21078
21079 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21080
21081         * rtl.def (VAR_LOCATION): Remove "i" field.
21082         * rtl.h (rtx_def): Add u2.var_location_status.
21083         (PAT_VAR_LOCATION_STATUS): Use it.
21084         (gen_rtx_VAR_LOCATION): Declare.
21085         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
21086         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
21087         * var-tracking.c (emit_note_insn_var_location): Remove casts.
21088
21089 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21090
21091         * rtl.def (scratch): Fix outdated comment and remove "0" field.
21092         * gengtype.c (adjust_field_rtx_def): Update accordingly.
21093
21094 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21095
21096         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
21097         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
21098         * rtl.h (rtx_def): Add insn_uid to u2 field.
21099         (RTX_FLAG_CHECK8): Delete in favor of...
21100         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
21101         (INSN_DELETED_P): Update accordingly.
21102         (INSN_UID): Use u2.insn_uid.
21103         (INSN_CHAIN_CODE_P): Define.
21104         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
21105         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
21106         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
21107         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
21108         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
21109         indices accordingly.
21110         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
21111         Update indices for insn-chain rtxes.
21112         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
21113         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
21114         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
21115         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
21116         * combine.c (try_combine): Likewise.
21117         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21118
21119 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21120
21121         * rtl.def (REG): Remove middle field.
21122         * rtl.h (rtx_def): Add orignal_regno to u2.
21123         (ORIGINAL_REGNO): Use it instead of field 1.
21124         (REG_ATTRS): Lower field index accordingly.
21125         * gengtype.c (adjust_field_rtx_def): Remove handling of
21126         ORIGINAL_REGNO.  Move REG_ATTRS index down.
21127         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
21128         code that prints the REGNO.
21129
21130 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21131
21132         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
21133         GENERATOR_FILE.
21134
21135 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21136
21137         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
21138
21139 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
21140
21141         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
21142         (alloc_iv): Lower base expressions containing ADDR_EXPR.
21143
21144 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
21145
21146         * config/aarch64/aarch64-protos.h
21147         (aarch64_hard_regno_caller_save_mode): New prototype.
21148         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
21149         New function.
21150         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
21151
21152 2014-05-13  Christian Bruel  <christian.bruel@st.com>
21153
21154         * target.def (mode_switching): New hook vector.
21155         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
21156         (mode_exit, modepriority_to_mode): Likewise.
21157         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
21158         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21159         * target.h: Include tm.h and hard-reg-set.h.
21160         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
21161         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
21162         * doc/tm.texi Regenerate.
21163         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21164         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21165         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
21166         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
21167         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21168         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21169         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
21170         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
21171         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
21172         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
21173         (ix86_emit_mode_set): Hookify.
21174         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
21175         Delete.
21176         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21177         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
21178         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
21179         (epiphany_mode_priority_to_mode): Remove declaration.
21180         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
21181         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
21182         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
21183         Likewise.
21184         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
21185         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
21186         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
21187
21188 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
21189
21190         PR target/61060
21191         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
21192         is const0_rtx, return immediately.  Don't test count == 0 when
21193         it is always true.
21194
21195 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21196
21197         * Makefile.in: add shrink-wrap.o.
21198         * config/i386/i386.c: include "shrink-wrap.h"
21199         * function.c: Likewise.
21200         (requires_stack_frame_p, next_block_for_reg,
21201         move_insn_for_shrink_wrap, prepare_shrink_wrap,
21202         dup_block_and_redirect): Move to shrink-wrap.c
21203         (thread_prologue_and_epilogue_insns): Extract three code segments
21204         as functions in shrink-wrap.c
21205         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
21206         shrink-wrap.h
21207         * shrink-wrap.c: New file.
21208         * shrink-wrap.h: New file.
21209
21210 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
21211
21212         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
21213         reference to Solaris.
21214
21215 2014-05-12  Mike Stump  <mikestump@comcast.net>
21216
21217         PR other/31778
21218         * genattrtab.c (filename): Add.
21219         (convert_set_attr_alternative): Improve error message.
21220         (check_defs): Restore read_md_filename for error messages.
21221         (gen_insn): Save filename.
21222
21223 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
21224
21225         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
21226         -fno-local-ivars and -fivar-visibility.
21227         * c-family/c.opt: Make -Wshadow also implicitly enable
21228         -Wshadow-ivar.
21229
21230 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
21231
21232         * doc/tm.texi: Remove reference to deleted macro.
21233         * doc/tm.texi.in: Likewise.
21234
21235 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21236
21237         PR target/60991
21238         * config/avr/avr.c (avr_out_store_psi): Use correct constant
21239         to restore Y.
21240
21241 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
21242
21243         PR libgcc/61152
21244         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
21245         * config/arm/aout.h (License): Same.
21246         * config/arm/bpabi.h (License): Same.
21247         * config/arm/elf.h (License): Same.
21248         * config/arm/linux-elf.h (License): Same.
21249         * config/arm/linux-gas.h (License): Same.
21250         * config/arm/netbsd-elf.h (License): Same.
21251         * config/arm/uclinux-eabi.h (License): Same.
21252         * config/arm/uclinux-elf.h (License): Same.
21253         * config/arm/vxworks.h (License): Same.
21254
21255 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
21256
21257         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
21258         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
21259         number of operands to 3.
21260         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
21261         * tree-nested.c (convert_nonlocal_omp_clauses,
21262         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
21263         * gimplify.c (gimplify_scan_omp_clauses): Handle
21264         OMP_CLAUSE_LINEAR_STMT.
21265         * omp-low.c (lower_rec_input_clauses): Fix typo.
21266         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
21267         cast between Fortran boolean_type_node and C _Bool if
21268         needed.
21269
21270 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
21271
21272         PR tree-optimization/61136
21273         * wide-int.h (multiple_of_p): Define a version that doesn't return
21274         the quotient.
21275         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
21276         integer_zerop/const_binop pair.
21277         (multiple_of_p): Likewise, converting both operands to widest_int
21278         precision.
21279
21280 2014-05-09  Teresa Johnson  <tejohnson@google.com>
21281
21282         * cgraphunit.c (analyze_functions): Use correct dump file.
21283
21284 2014-05-09  Florian Weimer  <fweimer@redhat.com>
21285
21286         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
21287         expand_used_vars.
21288         (stack_protect_return_slot_p): New function.
21289         (expand_used_vars): Call stack_protect_decl_p and
21290         stack_protect_return_slot_p for -fstack-protector-strong.
21291
21292 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
21293         Andrew Haley <aph@redhat.com>
21294         Richard Sandiford <rdsandiford@googlemail.com>
21295
21296         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
21297         pages.
21298
21299 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
21300
21301         PR middle-end/61111
21302         * fold-const.c (fold_binary_loc): Changed width of mask.
21303
21304 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
21305
21306         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
21307         unsigned int initializers for regno_in, regno_out.
21308
21309 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
21310
21311         PR target/61055
21312         * config/avr/avr.md (cc): Add new attribute set_vzn.
21313         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
21314         Set cc insn attribute to set_vzn instead of set_zn for alternatives
21315         with INC, DEC or NEG.
21316         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
21317         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
21318         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
21319
21320 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21321
21322         Revert:
21323         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21324
21325         * wide-int.cc (UTItype): Define.
21326         (UDWtype): Define for appropriate W_TYPE_SIZE.
21327
21328 2014-05-09  Richard Biener  <rguenther@suse.de>
21329
21330         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
21331         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
21332         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
21333         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
21334         ssa_propagate): Adjust.
21335
21336 2014-05-08  Jeff Law  <law@redhat.com>
21337
21338         PR tree-optimization/61009
21339         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
21340         tri-state rather than a boolean.  When a block is too big to
21341         thread through, inform caller via negative return value.
21342         (thread_across_edge): If a block was too big for normal threading,
21343         then it's too big for a joiner too, so remove temporary equivalences
21344         and return immediately.
21345
21346 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21347             Matthias Klose  <doko@ubuntu.com>
21348
21349         PR driver/61106
21350         * optc-gen.awk: Fix option handling for -Wunused-parameter.
21351
21352 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
21353
21354         PR target/59952
21355         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
21356
21357 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
21358
21359         PR target/61092
21360         * config/alpha/alpha.c: Include gimple-iterator.h.
21361         (alpha_gimple_fold_builtin): New function.  Move
21362         ALPHA_BUILTIN_UMULH folding from ...
21363         (alpha_fold_builtin): ... here.
21364         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
21365
21366 2014-05-08  Wei Mi  <wmi@google.com>
21367
21368         PR target/58066
21369         * config/i386/i386.c (ix86_compute_frame_layout): Update
21370         preferred_stack_boundary for call, expanded from tls descriptor.
21371         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
21372         to depend on SP register.
21373         (*tls_local_dynamic_base_32_gnu): Ditto.
21374         (*tls_local_dynamic_32_once): Ditto.
21375         (tls_global_dynamic_64_<mode>): Set
21376         ix86_tls_descriptor_calls_expanded_in_cfun.
21377         (tls_local_dynamic_base_64_<mode>): Ditto.
21378         (tls_global_dynamic_32): Set
21379         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
21380         to depend on SP register.
21381         (tls_local_dynamic_base_32): Ditto.
21382
21383 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21384
21385         * config/arm/arm_neon.h: Update comment.
21386         * config/arm/neon-docgen.ml: Delete.
21387         * config/arm/neon-gen.ml: Delete.
21388         * doc/arm-neon-intrinsics.texi: Update comment.
21389
21390 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21391
21392         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
21393         and v4sf versions.
21394         (vand, vorr, veor, vorn, vbic): Remove.
21395         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
21396         iterator.
21397         (neon_vsub_unspec): Likewise.
21398         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
21399
21400 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21401
21402         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
21403         (vadd_s16): Likewise.
21404         (vadd_s32): Likewise.
21405         (vadd_f32): Likewise.
21406         (vadd_u8): Likewise.
21407         (vadd_u16): Likewise.
21408         (vadd_u32): Likewise.
21409         (vadd_s64): Likewise.
21410         (vadd_u64): Likewise.
21411         (vaddq_s8): Likewise.
21412         (vaddq_s16): Likewise.
21413         (vaddq_s32): Likewise.
21414         (vaddq_s64): Likewise.
21415         (vaddq_f32): Likewise.
21416         (vaddq_u8): Likewise.
21417         (vaddq_u16): Likewise.
21418         (vaddq_u32): Likewise.
21419         (vaddq_u64): Likewise.
21420         (vmul_s8): Likewise.
21421         (vmul_s16): Likewise.
21422         (vmul_s32): Likewise.
21423         (vmul_f32): Likewise.
21424         (vmul_u8): Likewise.
21425         (vmul_u16): Likewise.
21426         (vmul_u32): Likewise.
21427         (vmul_p8): Likewise.
21428         (vmulq_s8): Likewise.
21429         (vmulq_s16): Likewise.
21430         (vmulq_s32): Likewise.
21431         (vmulq_f32): Likewise.
21432         (vmulq_u8): Likewise.
21433         (vmulq_u16): Likewise.
21434         (vmulq_u32): Likewise.
21435         (vsub_s8): Likewise.
21436         (vsub_s16): Likewise.
21437         (vsub_s32): Likewise.
21438         (vsub_f32): Likewise.
21439         (vsub_u8): Likewise.
21440         (vsub_u16): Likewise.
21441         (vsub_u32): Likewise.
21442         (vsub_s64): Likewise.
21443         (vsub_u64): Likewise.
21444         (vsubq_s8): Likewise.
21445         (vsubq_s16): Likewise.
21446         (vsubq_s32): Likewise.
21447         (vsubq_s64): Likewise.
21448         (vsubq_f32): Likewise.
21449         (vsubq_u8): Likewise.
21450         (vsubq_u16): Likewise.
21451         (vsubq_u32): Likewise.
21452         (vsubq_u64): Likewise.
21453         (vand_s8): Likewise.
21454         (vand_s16): Likewise.
21455         (vand_s32): Likewise.
21456         (vand_u8): Likewise.
21457         (vand_u16): Likewise.
21458         (vand_u32): Likewise.
21459         (vand_s64): Likewise.
21460         (vand_u64): Likewise.
21461         (vandq_s8): Likewise.
21462         (vandq_s16): Likewise.
21463         (vandq_s32): Likewise.
21464         (vandq_s64): Likewise.
21465         (vandq_u8): Likewise.
21466         (vandq_u16): Likewise.
21467         (vandq_u32): Likewise.
21468         (vandq_u64): Likewise.
21469         (vorr_s8): Likewise.
21470         (vorr_s16): Likewise.
21471         (vorr_s32): Likewise.
21472         (vorr_u8): Likewise.
21473         (vorr_u16): Likewise.
21474         (vorr_u32): Likewise.
21475         (vorr_s64): Likewise.
21476         (vorr_u64): Likewise.
21477         (vorrq_s8): Likewise.
21478         (vorrq_s16): Likewise.
21479         (vorrq_s32): Likewise.
21480         (vorrq_s64): Likewise.
21481         (vorrq_u8): Likewise.
21482         (vorrq_u16): Likewise.
21483         (vorrq_u32): Likewise.
21484         (vorrq_u64): Likewise.
21485         (veor_s8): Likewise.
21486         (veor_s16): Likewise.
21487         (veor_s32): Likewise.
21488         (veor_u8): Likewise.
21489         (veor_u16): Likewise.
21490         (veor_u32): Likewise.
21491         (veor_s64): Likewise.
21492         (veor_u64): Likewise.
21493         (veorq_s8): Likewise.
21494         (veorq_s16): Likewise.
21495         (veorq_s32): Likewise.
21496         (veorq_s64): Likewise.
21497         (veorq_u8): Likewise.
21498         (veorq_u16): Likewise.
21499         (veorq_u32): Likewise.
21500         (veorq_u64): Likewise.
21501         (vbic_s8): Likewise.
21502         (vbic_s16): Likewise.
21503         (vbic_s32): Likewise.
21504         (vbic_u8): Likewise.
21505         (vbic_u16): Likewise.
21506         (vbic_u32): Likewise.
21507         (vbic_s64): Likewise.
21508         (vbic_u64): Likewise.
21509         (vbicq_s8): Likewise.
21510         (vbicq_s16): Likewise.
21511         (vbicq_s32): Likewise.
21512         (vbicq_s64): Likewise.
21513         (vbicq_u8): Likewise.
21514         (vbicq_u16): Likewise.
21515         (vbicq_u32): Likewise.
21516         (vbicq_u64): Likewise.
21517         (vorn_s8): Likewise.
21518         (vorn_s16): Likewise.
21519         (vorn_s32): Likewise.
21520         (vorn_u8): Likewise.
21521         (vorn_u16): Likewise.
21522         (vorn_u32): Likewise.
21523         (vorn_s64): Likewise.
21524         (vorn_u64): Likewise.
21525         (vornq_s8): Likewise.
21526         (vornq_s16): Likewise.
21527         (vornq_s32): Likewise.
21528         (vornq_s64): Likewise.
21529         (vornq_u8): Likewise.
21530         (vornq_u16): Likewise.
21531         (vornq_u32): Likewise.
21532         (vornq_u64): Likewise.
21533
21534 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21535
21536         * wide-int.cc (UTItype): Define.
21537         (UDWtype): Define for appropriate W_TYPE_SIZE.
21538
21539 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
21540
21541         PR tree-optimization/59100
21542         * tree-ssa-phiopt.c: Include tree-inline.h.
21543         (neutral_element_p, absorbing_element_p): New functions.
21544         (value_replacement): Handle conditional binary operations with a
21545         neutral or absorbing element.
21546
21547 2014-05-08  Richard Biener  <rguenther@suse.de>
21548
21549         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
21550         folding the expression.
21551         (valueize_expr): Remove.
21552         (visit_reference_op_load): Do not valueize the result of
21553         vn_get_expr_for.
21554         (simplify_binary_expression): Likewise.
21555         (simplify_unary_expression): Likewise.
21556
21557 2014-05-08  Richard Biener  <rguenther@suse.de>
21558
21559         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
21560         looking at TYPE_ARG_TYPES.
21561
21562 2014-05-08  Richard Biener  <rguenther@suse.de>
21563
21564         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
21565         pointer propagation special-case.
21566
21567 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
21568
21569         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
21570         core part of address expressions.
21571
21572 2014-05-08  Alan Modra  <amodra@gmail.com>
21573
21574         PR target/60737
21575         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
21576         loads and stores when -mno-strict-align at any alignment.
21577         (expand_block_clear): Similarly.  Also correct calculation of
21578         instruction count.
21579
21580 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21581
21582         PR middle-end/39246
21583         * tree-complex.c (expand_complex_move): Keep line info when expanding
21584         complex move.
21585         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
21586         of complex expression. Use new argument to display correct location
21587         for values coming from phi statement.
21588         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
21589         (warn_uninitialized_phi): Pass location of phi argument to
21590         warn_uninit.
21591         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
21592         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
21593
21594 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
21595
21596         * config/rs6000/predicates.md (indexed_address_mem): New.
21597         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21598         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21599         fpstore_ux, fpstore_u.
21600         (sign_extend, indexed, update): New.
21601         (cell_micro): Adjust.
21602         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21603         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21604         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21605         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21606         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21607         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21608         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21609         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21610         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21611         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21612         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21613         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21614         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21615         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21616         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21617
21618         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21619         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21620         *vsx_extract_<mode>_store): Adjust.
21621         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21622         is_cracked_insn, insn_must_be_first_in_group,
21623         insn_must_be_last_in_group): Adjust.
21624
21625         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21626         Adjust.
21627         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21628         ppc440-fpstore): Adjust.
21629         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21630         ppc476-fpstore): Adjust.
21631         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21632         ppc601-fpstore): Adjust.
21633         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21634         Adjust.
21635         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21636         Adjust.
21637         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21638         ppc7450-fpstore): Adjust.
21639         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21640         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21641         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21642         Adjust.
21643         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21644         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21645         cell-fpstore, cell-fpstore-update): Adjust.
21646         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21647         ppce300c3_store, ppce300c3_fpstore): Adjust.
21648         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21649         e500mc_fpstore): Adjust.
21650         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21651         e500mc64_store, e500mc64_fpstore): Adjust.
21652         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21653         e5500_fpstore): Adjust.
21654         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21655         e6500_fpstore): Adjust.
21656         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21657         Adjust.
21658         * config/rs6000/power4.md (power4-load, power4-load-ext,
21659         power4-load-ext-update, power4-load-ext-update-indexed,
21660         power4-load-update-indexed, power4-load-update, power4-fpload,
21661         power4-fpload-update, power4-store, power4-store-update,
21662         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21663         Adjust.
21664         * config/rs6000/power5.md (power5-load, power5-load-ext,
21665         power5-load-ext-update, power5-load-ext-update-indexed,
21666         power5-load-update-indexed, power5-load-update, power5-fpload,
21667         power5-fpload-update, power5-store, power5-store-update,
21668         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21669         Adjust.
21670         * config/rs6000/power6.md (power6-load, power6-load-ext,
21671         power6-load-update, power6-load-update-indexed,
21672         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21673         power6-fpload-update, power6-store, power6-store-update,
21674         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21675         Adjust.
21676         * config/rs6000/power7.md (power7-load, power7-load-ext,
21677         power7-load-update, power7-load-update-indexed,
21678         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21679         power7-fpload-update, power7-store, power7-store-update,
21680         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21681         Adjust.
21682         * config/rs6000/power8.md (power8-load, power8-load-update,
21683         power8-load-ext, power8-load-ext-update, power8-fpload,
21684         power8-fpload-update, power8-store, power8-store-update-indexed,
21685         power8-fpstore, power8-fpstore-update): Adjust.
21686         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21687         Adjust.
21688         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21689         titan_lsu_store, titan_lsu_fpstore): Adjust.
21690         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21691
21692 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
21693
21694         PR target/60884
21695         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21696         unrolled byte insns.  Emit address increments after move insns.
21697
21698 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
21699
21700         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21701         const_gimple, rather than a gimple.
21702         (gimple_call_builtin_p): Likewise, for the three variants.
21703
21704         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21705         (gimple_call_builtin_p): Likewise, for the three variants.
21706
21707 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21708
21709         PR tree-optimization/61095
21710         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21711
21712 2014-05-07  Richard Biener  <rguenther@suse.de>
21713
21714         PR tree-optimization/61034
21715         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21716         (maybe_skip_until): Use translate to take into account
21717         lattices when trying to do disambiguations.
21718         (get_continuation_for_phi_1): Likewise.
21719         (get_continuation_for_phi): Adjust for added translate arguments.
21720         (walk_non_aliased_vuses): Likewise.
21721         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21722         (walk_non_aliased_vuses): Likewise.
21723         (call_may_clobber_ref_p_1): Declare.
21724         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21725         calls.  Stop early if we are only supposed to disambiguate.
21726         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21727
21728 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
21729
21730         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21731         Emit an error when the function has arguments.
21732
21733 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21734
21735         * cfgloop.h (unswitch_loops): Remove.
21736         * doc/passes.texi: Remove references to loop-unswitch.c
21737         * timevar.def (TV_LOOP_UNSWITCH): Remove.
21738
21739 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
21740
21741         * tree-vect-data-refs.c (vect_grouped_load_supported): New
21742         check for loads group of length 3.
21743         (vect_permute_load_chain): New permutations for loads group of
21744         length 3.
21745         * tree-vect-stmts.c (vect_model_load_cost): Change cost
21746         of vec_perm_shuffle for the new permutations.
21747
21748 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
21749
21750         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21751         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21752         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21753         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21754         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21755         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21756         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21757         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21758
21759 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21760
21761         * loop-unswitch.c: Delete.
21762
21763 2014-05-07  Richard Biener  <rguenther@suse.de>
21764
21765         * config.gcc: Always set need_64bit_hwint to yes.
21766
21767 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
21768
21769         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21770         of using optimize_size.
21771
21772 2014-05-06  Mike Stump  <mikestump@comcast.net>
21773
21774         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21775
21776 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
21777
21778         * config/i386/sse.md (*mov<mode>_internal)
21779         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21780         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21781         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21782         (*<code><mode>3, *andnot<mode>3<mask_name>)
21783         (<mask_codefor><code><mode>3<mask_name>): Only consider
21784         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21785
21786 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21787
21788         Revert:
21789         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
21790
21791         * lra-constraints.c (valid_address_p): Move earlier in file.
21792         Add a constraint argument to the address_info version.
21793         (satisfies_memory_constraint_p): New function.
21794         (satisfies_address_constraint_p): Likewise.
21795         (process_alt_operands, curr_insn_transform): Use them.
21796         (process_address): Pass the constraint to valid_address_p when
21797         checking address operands.
21798
21799 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
21800
21801         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21802         to their respective blocks.  Fix inadvertent use of "node".
21803
21804 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21805
21806         * emit-rtl.c (init_derived_machine_modes): New functionm, split
21807         out from...
21808         (init_emit_once): ...here.
21809         * rtl.h (init_derived_machine_modes): Declare.
21810         * toplev.c (do_compile): Call it even if no_backend.
21811
21812 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
21813             Mike Stump  <mikestump@comcast.net>
21814             Richard Sandiford  <rdsandiford@googlemail.com>
21815             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21816
21817         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21818         (rtx_equal_for_memref_p): Update comment.
21819         (adjust_offset_for_component_ref): Use wide-int interfaces.
21820         * builtins.c (get_object_alignment_2): Likewise.
21821         (c_readstr): Likewise.
21822         (target_char_cast): Add comment.
21823         (determine_block_size): Use wide-int interfaces.
21824         (expand_builtin_signbit): Likewise.
21825         (fold_builtin_int_roundingfn): Likewise.
21826         (fold_builtin_bitop): Likewise.
21827         (fold_builtin_bswap): Likewise.
21828         (fold_builtin_logarithm): Use signop.
21829         (fold_builtin_pow): Likewise.
21830         (fold_builtin_memory_op): Use wide-int interfaces.
21831         (fold_builtin_object_size): Likewise.
21832         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21833         nb_iterations_estimate.
21834         (record_niter_bound): Use wide-int interfaces.
21835         (get_estimated_loop_iterations_int): Likewise.
21836         (get_estimated_loop_iterations): Likewise.
21837         (get_max_loop_iterations): Likewise.
21838         * cfgloop.h: Include wide-int.h.
21839         (struct nb_iter_bound): Change bound to widest_int.
21840         (struct loop): Change nb_iterations_upper_bound and
21841         nb_iterations_estimate to widest_int.
21842         (record_niter_bound): Switch to use widest_int.
21843         (get_estimated_loop_iterations): Likewise.
21844         (get_max_loop_iterations): Likewise.
21845         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21846         update for wide-int.
21847         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21848         * combine.c (try_combine): Likewise.
21849         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21850         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21851         interfaces.
21852         (aarch64_float_const_representable_p): Likewise.
21853         * config/arc/arc.c: Include wide-int.h.
21854         (arc_can_use_doloop_p): Use wide-int interfaces.
21855         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21856         (vfp3_const_double_index): Likewise.
21857         * config/avr/avr.c (avr_out_round): Likewise.
21858         (avr_fold_builtin): Likewise.
21859         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21860         (bfin_can_use_doloop_p): Likewise.
21861         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21862         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21863         * config/i386/i386.c: Include wide-int.h.
21864         (ix86_data_alignment): Use wide-int interfaces.
21865         (ix86_local_alignment): Likewise.
21866         (ix86_emit_swsqrtsf): Update real_from_integer.
21867         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21868         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21869         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21870         (zero_constant): Likewise.
21871         (input_operand): Likewise.
21872         (splat_input_operand): Likewise.
21873         (non_logical_cint_operand): Change const_double to const_wide_int.
21874         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21875         (easy_altivec_constant): Remove comment.
21876         (paired_expand_vector_init): Use CONSTANT_P.
21877         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21878         (rs6000_emit_move): Update checks.
21879         (rs6000_aggregate_candidate): Use wide-int interfaces.
21880         (rs6000_expand_ternop_builtin): Likewise.
21881         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21882         (rs6000_assemble_integer): Likewise.
21883         (rs6000_hash_constant): Likewise.
21884         (output_toc): Likewise.
21885         (rs6000_rtx_costs): Likewise.
21886         (rs6000_emit_swrsqrt); Update call to real_from_integer.
21887         * config/rs6000/rs6000-c.c: Include wide-int.h.
21888         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21889         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21890         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21891         Handle CONST_WIDE_INT.
21892         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21893         Use tree_fits_uhwi_p.
21894         * config/sparc/sparc.c: Include wide-int.h.
21895         (sparc_fold_builtin): Use wide-int interfaces.
21896         * config/vax/vax.c: Include wide-int.h.
21897         (vax_float_literal): Use real_from_integer.
21898         * coretypes.h (struct hwivec_def): New.
21899         (hwivec): New.
21900         (const_hwivec): New.
21901         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21902         (equiv_constant): Handle CONST_WIDE_INT.
21903         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21904         (cselib_hash_rtx): Handle CONST_WIDE_INT.
21905         * dbxout.c (stabstr_U): Use wide-int interfaces.
21906         (dbxout_type): Update to use cst_fits_shwi_p.
21907         * defaults.h (LOG2_BITS_PER_UNIT): Define.
21908         (TARGET_SUPPORTS_WIDE_INT): Add default.
21909         * dfp.c: Include wide-int.h.
21910         (decimal_real_to_integer2): Use wide-int interfaces and rename to
21911         decimal_real_to_integer.
21912         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21913         decimal_real_to_integer.
21914         * doc/generic.texi (Constant expressions): Update for wide_int.
21915         * doc/rtl.texi (const_double): Likewise.
21916         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21917         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21918         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21919         (REAL_VALUE_FROM_INT): Remove.
21920         (TARGET_SUPPORTS_WIDE_INT): New.
21921         * doc/tm.texi: Regenerate.
21922         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21923         * double-int.h: Include wide-int.h.
21924         (struct wi::int_traits): New.
21925         * dwarf2out.c (get_full_len): New.
21926         (dw_val_equal_p): Add case dw_val_class_wide_int.
21927         (size_of_loc_descr): Likewise.
21928         (output_loc_operands): Likewise.
21929         (insert_double): Remove.
21930         (insert_wide_int): New.
21931         (add_AT_wide): New.
21932         (print_die): Add case dw_val_class_wide_int.
21933         (attr_checksum): Likewise.
21934         (attr_checksum_ordered): Likewise.
21935         (same_dw_val_p): Likewise.
21936         (size_of_die): Likewise.
21937         (value_format): Likewise.
21938         (output_die): Likewise.
21939         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21940         Use wide-int.
21941         (clz_loc_descriptor): Use wide-int interfaces.
21942         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
21943         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
21944         (round_up_to_align): Use wide-int interfaces.
21945         (field_byte_offset): Likewise.
21946         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
21947         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
21948         CONST_DOUBLE handling.  Use wide-int interfaces.
21949         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
21950         (gen_enumeration_type_die): Use add_AT_wide.
21951         (hash_loc_operands): Add case dw_val_class_wide_int.
21952         (compare_loc_operands): Likewise.
21953         * dwarf2out.h: Include wide-int.h.
21954         (wide_int_ptr): New.
21955         (enum dw_val_class): Add dw_val_class_wide_int.
21956         (struct dw_val_struct): Add val_wide.
21957         * emit-rtl.c (const_wide_int_htab): New.
21958         (const_wide_int_htab_hash): New.
21959         (const_wide_int_htab_eq): New.
21960         (lookup_const_wide_int): New.
21961         (const_double_htab_hash): Use wide-int interfaces.
21962         (const_double_htab_eq): Likewise.
21963         (rtx_to_double_int): Conditionally compile for wide-int.
21964         (immed_double_int_const): Rename to immed_wide_int_const and
21965         update for wide-int.
21966         (immed_double_const): Conditionally compile for wide-int.
21967         (init_emit_once): Use wide-int interfaces.
21968         * explow.c (plus_constant): Likewise.
21969         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
21970         (lshift_value): Use wide-int interfaces.
21971         (expand_mult): Likewise.
21972         (choose_multiplier): Likewise.
21973         (expand_smod_pow2): Likewise.
21974         (make_tree): Likewise.
21975         * expr.c (convert_modes): Consolidate handling of constants.
21976         Use wide-int interfaces.
21977         (emit_group_load_1): Add note.
21978         (store_expr): Update comment.
21979         (get_inner_reference): Use wide-int interfaces.
21980         (expand_constructor): Update comment.
21981         (expand_expr_real_2): Use wide-int interfaces.
21982         (expand_expr_real_1): Likewise.
21983         (reduce_to_bit_field_precision): Likewise.
21984         (const_vector_from_tree): Likewise.
21985         * final.c: Include wide-int-print.h.
21986         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
21987         * fixed-value.c: Include wide-int.h.
21988         (fixed_from_string): Use wide-int interfaces.
21989         (fixed_to_decimal): Likewise.
21990         (fixed_convert_from_real): Likewise.
21991         (real_convert_from_fixed): Likewise.
21992         * fold-const.h (mem_ref_offset): Return an offset_int.
21993         (div_if_zero_remainder): Remove code parameter.
21994         * fold-const.c (div_if_zero_remainder): Remove code parameter.
21995         Use wide-int interfaces.
21996         (may_negate_without_overflow_p): Use wide-int interfaces.
21997         (negate_expr_p): Likewise.
21998         (fold_negate_expr): Likewise.
21999         (int_const_binop_1): Likewise.
22000         (const_binop): Likewise.
22001         (fold_convert_const_int_from_int): Likewise.
22002         (fold_convert_const_int_from_real): Likewise.
22003         (fold_convert_const_int_from_fixed): Likewise.
22004         (fold_convert_const_fixed_from_int): Likewise.
22005         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
22006         (sign_bit_p): Use wide-int interfaces.
22007         (make_range_step): Likewise.
22008         (build_range_check): Likewise.  Pass an integer of the correct type
22009         instead of using integer_one_node.
22010         (range_predecessor): Pass an integer of the correct type instead
22011         of using integer_one_node.
22012         (range_successor): Likewise.
22013         (merge_ranges): Likewise.
22014         (unextend): Use wide-int interfaces.
22015         (extract_muldiv_1): Likewise.
22016         (fold_div_compare): Likewise.
22017         (fold_single_bit_test): Likewise.
22018         (fold_sign_changed_comparison): Likewise.
22019         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
22020         (fold_plusminus_mult_expr): Use wide-int interfaces.
22021         (native_encode_int): Likewise.
22022         (native_interpret_int): Likewise.
22023         (fold_unary_loc): Likewise.
22024         (pointer_may_wrap_p): Likewise.
22025         (size_low_cst): Likewise.
22026         (mask_with_tz): Likewise.
22027         (fold_binary_loc): Likewise.
22028         (fold_ternary_loc): Likewise.
22029         (multiple_of_p): Likewise.
22030         (tree_call_nonnegative_warnv_p): Update calls to
22031         tree_int_cst_min_precision and real_from_integer.
22032         (fold_negate_const): Use wide-int interfaces.
22033         (fold_abs_const): Likewise.
22034         (fold_relational_const): Use tree_int_cst_lt.
22035         (round_up_loc): Use wide-int interfaces.
22036         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
22037         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
22038         * gengtype.c: Remove include of double-int.h.
22039         (do_typedef): Use wide-int interfaces.
22040         (open_base_files): Add wide-int.h.
22041         (main): Add offset_int and widest_int typedefs.
22042         * gengtype-lex.l: Handle "^".
22043         (CXX_KEYWORD): Add "static".
22044         * gengtype-parse.c (require3): New.
22045         (require_template_declaration): Handle constant template arguments
22046         and nested templates.
22047         * gengtype-state.c: Don't include "double-int.h".
22048         * genpreds.c (write_one_predicate_function): Update comment.
22049         (write_tm_constrs_h): Add check for hval and lval use in
22050         CONST_WIDE_INT.
22051         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
22052         (add_to_sequence): Likewise.
22053         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
22054         and const_double_operand.
22055         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
22056         interfaces.
22057         * gimple-fold.c (get_base_constructor): Likewise.
22058         (fold_array_ctor_reference): Likewise.
22059         (fold_nonarray_ctor_reference): Likewise.
22060         (fold_const_aggregate_ref_1): Likewise.
22061         (gimple_val_nonnegative_real_p): Likewise.
22062         (gimple_fold_indirect_ref): Likewise.
22063         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
22064         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
22065         (struct slsr_cand_d): Change index to be widest_int.
22066         (struct incr_info_d): Change incr to be widest_int.
22067         (alloc_cand_and_find_basis): Use wide-int interfaces.
22068         (slsr_process_phi): Likewise.
22069         (backtrace_base_for_ref): Likewise.  Return a widest_int.
22070         (restructure_reference): Take a widest_int instead of a double_int.
22071         (slsr_process_ref): Use wide-int interfaces.
22072         (create_mul_ssa_cand): Likewise.
22073         (create_mul_imm_cand): Likewise.
22074         (create_add_ssa_cand): Likewise.
22075         (create_add_imm_cand): Take a widest_int instead of a double_int.
22076         (slsr_process_add): Use wide-int interfaces.
22077         (slsr_process_cast): Likewise.
22078         (slsr_process_copy): Likewise.
22079         (dump_candidate): Likewise.
22080         (dump_incr_vec): Likewise.
22081         (replace_ref): Likewise.
22082         (cand_increment): Likewise.  Return a widest_int.
22083         (cand_abs_increment): Likewise.
22084         (replace_mult_candidate): Take a widest_int instead of a double_int.
22085         (replace_unconditional_candidate): Use wide-int interfaces.
22086         (incr_vec_index): Take a widest_int instead of a double_int.
22087         (create_add_on_incoming_edge): Likewise.
22088         (create_phi_basis): Use wide-int interfaces.
22089         (replace_conditional_candidate): Likewise.
22090         (record_increment): Take a widest_int instead of a double_int.
22091         (record_phi_increments): Use wide-int interfaces.
22092         (phi_incr_cost): Take a widest_int instead of a double_int.
22093         (lowest_cost_path): Likewise.
22094         (total_savings): Likewise.
22095         (analyze_increments): Use wide-int interfaces.
22096         (ncd_with_phi): Take a widest_int instead of a double_int.
22097         (ncd_of_cand_and_phis): Likewise.
22098         (nearest_common_dominator_for_cands): Likewise.
22099         (insert_initializers): Use wide-int interfaces.
22100         (all_phi_incrs_profitable): Likewise.
22101         (replace_one_candidate): Likewise.
22102         (replace_profitable_candidates): Likewise.
22103         * godump.c: Include wide-int-print.h.
22104         (go_output_typedef): Use wide-int interfaces.
22105         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
22106         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
22107         (build_loop_iteration_domains): Likewise.
22108         * hooks.h: Include wide-int.h rather than double-int.h.
22109         (hook_bool_dint_dint_uint_bool_true): Delete.
22110         (hook_bool_wint_wint_uint_bool_true): Declare.
22111         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
22112         (hook_bool_wint_wint_uint_bool_true): New.
22113         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
22114         interfaces.
22115         (ubsan_expand_si_overflow_mul_check): Likewise.
22116         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
22117         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
22118         (get_ancestor_addr_info): Likewise.
22119         (ipa_modify_call_arguments): Likewise.
22120         * loop-doloop.c (doloop_modify): Likewise.
22121         (doloop_optimize): Likewise.
22122         * loop-iv.c (iv_number_of_iterations): Likewise.
22123         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
22124         (unroll_loop_constant_iterations): Likewise.
22125         (decide_unroll_runtime_iterations): Likewise.
22126         (unroll_loop_runtime_iterations): Likewise.
22127         (decide_peel_simple): Likewise.
22128         (decide_unroll_stupid): Likewise.
22129         * lto-streamer-in.c (streamer_read_wi): Add.
22130         (input_cfg): Use wide-int interfaces.
22131         (lto_input_tree_1): Likewise.
22132         * lto-streamer-out.c (streamer_write_wi): Add.
22133         (hash_tree): Use wide-int interfaces.
22134         (output_cfg): Likewise.
22135         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
22136         (GTFILES): Add wide-int.h and signop.h.
22137         (TAGS): Look for .cc files too.
22138         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
22139         * optabs.c (expand_subword_shift): Likewise.
22140         (expand_doubleword_shift): Likewise.
22141         (expand_absneg_bit): Likewise.
22142         (expand_copysign_absneg): Likewise.
22143         (expand_copysign_bit): Likewise.
22144         * postreload.c (reload_cse_simplify_set): Likewise.
22145         * predict.c (predict_iv_comparison): Likewise.
22146         * pretty-print.h: Include wide-int-print.h.
22147         (pp_wide_int) New.
22148         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
22149         * print-tree.c: Include wide-int-print.h.
22150         (print_node_brief): Use wide-int interfaces.
22151         (print_node): Likewise.
22152         * read-rtl.c (validate_const_wide_int): New.
22153         (read_rtx_code): Add CONST_WIDE_INT case.
22154         * real.c: Include wide-int.h.
22155         (real_to_integer2): Delete.
22156         (real_to_integer): New function, returning a wide_int.
22157         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22158         (ten_to_ptwo): Update call to real_from_integer.
22159         (real_digit): Likewise.
22160         * real.h: Include signop.h, wide-int.h and insn-modes.h.
22161         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
22162         (REAL_VALUE_TO_INT): Delete.
22163         (real_to_integer): Declare a wide-int form.
22164         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22165         * recog.c (const_int_operand): Improve comment.
22166         (const_scalar_int_operand): New.
22167         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
22168         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
22169         (split_double): Likewise.
22170         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
22171         (rtx_size): Likewise.
22172         (rtx_alloc_stat_v): New.
22173         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
22174         (cwi_output_hex): New.
22175         (iterative_hash_rtx): Handle CONST_WIDE_INT.
22176         (cwi_check_failed_bounds): New.
22177         * rtl.def (CONST_WIDE_INT): New.
22178         * rtl.h: Include <utility> and wide-int.h.
22179         (struct hwivec_def): New.
22180         (CWI_GET_NUM_ELEM): New.
22181         (CWI_PUT_NUM_ELEM): New.
22182         (struct rtx_def): Add num_elem and hwiv.
22183         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
22184         (CASE_CONST_UNIQUE): Likewise.
22185         (CASE_CONST_ANY): Likewise.
22186         (CONST_SCALAR_INT_P): Likewise.
22187         (CONST_WIDE_INT_P): New.
22188         (CWI_ELT): New.
22189         (HWIVEC_CHECK): New.
22190         (cwi_check_failed_bounds): New.
22191         (CWI_ELT): New.
22192         (HWIVEC_CHECK): New.
22193         (CONST_WIDE_INT_VEC) New.
22194         (CONST_WIDE_INT_NUNITS) New.
22195         (CONST_WIDE_INT_ELT) New.
22196         (rtx_mode_t): New type.
22197         (wi::int_traits <rtx_mode_t>): New.
22198         (wi::shwi): New.
22199         (wi::min_value): New.
22200         (wi::max_value): New.
22201         (rtx_alloc_v) New.
22202         (const_wide_int_alloc): New.
22203         (immed_wide_int_const): New.
22204         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
22205         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
22206         * signop.h: New file.
22207         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
22208         (simplify_const_unary_operation): Use wide-int interfaces.
22209         (simplify_binary_operation_1): Likewise.
22210         (simplify_const_binary_operation): Likewise.
22211         (simplify_const_relational_operation): Likewise.
22212         (simplify_immed_subreg): Likewise.
22213         * stmt.c (expand_case): Likewise.
22214         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
22215         signop rather than a bool.
22216         * stor-layout.c (layout_type): Use wide-int interfaces.
22217         (initialize_sizetypes): Update calls to
22218         set_min_and_max_values_for_integral_type.
22219         (set_min_and_max_values_for_integral_type): Take a signop rather
22220         than a bool.  Use wide-int interfaces.
22221         (fixup_signed_type): Update accordingly.  Remove
22222         HOST_BITS_PER_DOUBLE_INT limit.
22223         (fixup_unsigned_type): Likewise.
22224         * system.h (STATIC_CONSTANT_P): New.
22225         (STATIC_ASSERT): New.
22226         * target.def (can_use_doloop_p): Take widest_ints rather than
22227         double_ints.
22228         * target.h: Include wide-int.h rather than double-int.h.
22229         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
22230         than double_ints.
22231         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
22232         rather than INT_CST_LT_UNSIGNED.
22233         (can_use_doloop_if_innermost): Take widest_ints rather than
22234         double_ints.
22235         * tree-affine.c: Include wide-int-print.h.
22236         (double_int_ext_for_comb): Delete.
22237         (wide_int_ext_for_comb): New.
22238         (aff_combination_zero): Use wide-int interfaces.
22239         (aff_combination_const): Take a widest_int instead of a double_int.
22240         (aff_combination_elt): Use wide-int interfaces.
22241         (aff_combination_scale): Take a widest_int instead of a double_int.
22242         (aff_combination_add_elt): Likewise.
22243         (aff_combination_add_cst): Likewise.
22244         (aff_combination_add): Use wide-int interfaces.
22245         (aff_combination_convert): Likewise.
22246         (tree_to_aff_combination): Likewise.
22247         (add_elt_to_tree): Take a widest_int instead of a double_int.
22248         (aff_combination_to_tree): Use wide-int interfaces.
22249         (aff_combination_remove_elt): Likewise.
22250         (aff_combination_add_product): Take a widest_int instead of
22251         a double_int.
22252         (aff_combination_mult): Use wide-int interfaces.
22253         (aff_combination_expand): Likewise.
22254         (double_int_constant_multiple_p): Delete.
22255         (wide_int_constant_multiple_p): New.
22256         (aff_combination_constant_multiple_p): Take a widest_int pointer
22257         instead of a double_int pointer.
22258         (print_aff): Use wide-int interfaces.
22259         (get_inner_reference_aff): Take a widest_int pointer
22260         instead of a double_int pointer.
22261         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
22262         * tree-affine.h: Include wide-int.h.
22263         (struct aff_comb_elt): Change type of coef to widest_int.
22264         (struct affine_tree_combination): Change type of offset to widest_int.
22265         (double_int_ext_for_comb): Delete.
22266         (wide_int_ext_for_comb): New.
22267         (aff_combination_const): Use widest_int instead of double_int.
22268         (aff_combination_scale): Likewise.
22269         (aff_combination_add_elt): Likewise.
22270         (aff_combination_constant_multiple_p): Likewise.
22271         (get_inner_reference_aff): Likewise.
22272         (aff_comb_cannot_overlap_p): Likewise.
22273         (aff_combination_zero_p): Use wide-int interfaces.
22274         * tree.c: Include tree.h.
22275         (init_ttree): Use make_int_cst.
22276         (tree_code_size): Removed code for INTEGER_CST case.
22277         (tree_size): Add INTEGER_CST case.
22278         (make_node_stat): Update comment.
22279         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
22280         (build_int_cst_type): Use wide-int interfaces.
22281         (double_int_to_tree): Likewise.
22282         (double_int_fits_to_tree_p): Delete.
22283         (force_fit_type_double): Delete.
22284         (force_fit_type): New.
22285         (int_cst_hash_hash): Use wide-int interfaces.
22286         (int_cst_hash_eq): Likewise.
22287         (build_int_cst_wide): Delete.
22288         (wide_int_to_tree): New.
22289         (cache_integer_cst): Use wide-int interfaces.
22290         (build_low_bits_mask): Likewise.
22291         (cst_and_fits_in_hwi): Likewise.
22292         (real_value_from_int_cst): Likewise.
22293         (make_int_cst_stat): New.
22294         (integer_zerop): Use wide_int interfaces.
22295         (integer_onep): Likewise.
22296         (integer_all_onesp): Likewise.
22297         (integer_pow2p): Likewise.
22298         (integer_nonzerop): Likewise.
22299         (tree_log2): Likewise.
22300         (tree_floor_log2): Likewise.
22301         (tree_ctz): Likewise.
22302         (int_size_in_bytes): Likewise.
22303         (mem_ref_offset): Return an offset_int rather than a double_int.
22304         (build_type_attribute_qual_variant): Use wide_int interfaces.
22305         (type_hash_eq): Likewise
22306         (tree_int_cst_equal): Likewise.
22307         (tree_int_cst_lt): Delete.
22308         (tree_int_cst_compare): Likewise.
22309         (tree_fits_shwi_p): Use wide_int interfaces.
22310         (tree_fits_uhwi_p): Likewise.
22311         (tree_int_cst_sign_bit): Likewise.
22312         (tree_int_cst_sgn): Likewise.
22313         (tree_int_cst_min_precision): Take a signop rather than a bool.
22314         (simple_cst_equal): Use wide_int interfaces.
22315         (compare_tree_int): Likewise.
22316         (iterative_hash_expr): Likewise.
22317         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
22318         INT_CST_LT.
22319         (get_type_static_bounds): Use wide_int interfaces.
22320         (tree_int_cst_elt_check_failed): New.
22321         (build_common_tree_nodes): Reordered to set prec before filling in
22322         value.
22323         (int_cst_value): Check cst_and_fits_in_hwi.
22324         (widest_int_cst_value): Use wide_int interfaces.
22325         (upper_bound_in_type): Likewise.
22326         (lower_bound_in_type): Likewise.
22327         (num_ending_zeros): Likewise.
22328         (drop_tree_overflow): Likewise.
22329         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
22330         (gen_conditions_for_pow_cst_base): Likewise.
22331         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
22332         (group_case_labels_stmt): Use wide-int interfaces.
22333         (verify_gimple_assign_binary): Likewise.
22334         (print_loop): Likewise.
22335         * tree-chrec.c (tree_fold_binomial): Likewise.
22336         * tree-core.h (struct tree_base): Add int_length.
22337         (struct tree_int_cst): Change rep of value.
22338         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
22339         (dr_may_alias_p): Likewise.
22340         (max_stmt_executions_tree): Likewise.
22341         * tree.def (INTEGER_CST): Update comment.
22342         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
22343         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
22344         * tree-dump.c: Include wide-int.h and wide-int-print.h.
22345         (dequeue_and_dump): Use wide-int interfaces.
22346         * tree.h: Include wide-int.h.
22347         (NULL_TREE): Moved to earlier loc in file.
22348         (TREE_INT_CST_ELT_CHECK): New.
22349         (tree_int_cst_elt_check_failed): New.
22350         (TYPE_SIGN): New.
22351         (TREE_INT_CST): Delete.
22352         (TREE_INT_CST_LOW): Use wide-int interfaces.
22353         (TREE_INT_CST_HIGH): Delete.
22354         (TREE_INT_CST_NUNITS): New.
22355         (TREE_INT_CST_EXT_NUNITS): Likewise.
22356         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
22357         (TREE_INT_CST_ELT): Likewise.
22358         (INT_CST_LT): Delete.
22359         (tree_int_cst_elt_check): New (two forms).
22360         (type_code_size): Update comment.
22361         (make_int_cst_stat, make_int_cst): New.
22362         (tree_to_double_int): Delete.
22363         (double_int_fits_to_tree_p): Delete.
22364         (force_fit_type_double): Delete.
22365         (build_int_cstu): Replace with out-of-line function.
22366         (build_int_cst_wide): Delete.
22367         (tree_int_cst_lt): Define inline.
22368         (tree_int_cst_le): New.
22369         (tree_int_cst_compare): Define inline.
22370         (tree_int_cst_min_precision): Take a signop rather than a bool.
22371         (wi::int_traits <const_tree>): New.
22372         (wi::int_traits <tree>): New.
22373         (wi::extended_tree): New.
22374         (wi::int_traits <wi::extended_tree>): New.
22375         (wi::to_widest): New.
22376         (wi::to_offset): New.
22377         (wi::fits_to_tree_p): New.
22378         (wi::min_value): New.
22379         (wi::max_value): New.
22380         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
22381         (copy_tree_body_r): Likewise.
22382         * tree-object-size.c (compute_object_offset): Likewise.
22383         (addr_object_size): Likewise.
22384         * tree-predcom.c: Include wide-int-print.h.
22385         (struct dref_d): Change type of offset to widest_int.
22386         (dump_dref): Call wide-int printer.
22387         (aff_combination_dr_offset): Use wide-int interfaces.
22388         (determine_offset): Take a widest_int pointer rather than a
22389         double_int pointer.
22390         (split_data_refs_to_components): Use wide-int interfaces.
22391         (suitable_component_p): Likewise.
22392         (order_drefs): Likewise.
22393         (add_ref_to_chain): Likewise.
22394         (valid_initializer_p): Likewise.
22395         (determine_roots_comp): Likewise.
22396         * tree-pretty-print.c: Include wide-int-print.h.
22397         (dump_generic_node): Use wide-int interfaces.
22398         * tree-sra.c (sra_ipa_modify_expr): Likewise.
22399         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
22400         (move_fixed_address_to_symbol): Likewise.
22401         (move_hint_to_base): Likewise.
22402         (move_pointer_to_base): Likewise.
22403         (move_variant_to_index): Likewise.
22404         (most_expensive_mult_to_index): Likewise.
22405         (addr_to_parts): Likewise.
22406         (copy_ref_info): Likewise.
22407         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22408         (indirect_refs_may_alias_p): Likewise.
22409         (stmt_kills_ref_p_1): Likewise.
22410         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
22411         * tree-ssa-ccp.c: Update comment at top of file.  Include
22412         wide-int-print.h.
22413         (struct prop_value_d): Change type of mask to widest_int.
22414         (extend_mask): New function.
22415         (dump_lattice_value): Use wide-int interfaces.
22416         (get_default_value): Likewise.
22417         (set_constant_value): Likewise.
22418         (set_value_varying): Likewise.
22419         (valid_lattice_transition): Likewise.
22420         (set_lattice_value): Likewise.
22421         (value_to_double_int): Delete.
22422         (value_to_wide_int): New.
22423         (get_value_from_alignment): Use wide-int interfaces.
22424         (get_value_for_expr): Likewise.
22425         (do_dbg_cnt): Likewise.
22426         (ccp_finalize): Likewise.
22427         (ccp_lattice_meet): Likewise.
22428         (bit_value_unop_1): Use widest_ints rather than double_ints.
22429         (bit_value_binop_1): Likewise.
22430         (bit_value_unop): Use wide-int interfaces.
22431         (bit_value_binop): Likewise.
22432         (bit_value_assume_aligned): Likewise.
22433         (evaluate_stmt): Likewise.
22434         (ccp_fold_stmt): Likewise.
22435         (visit_cond_stmt): Likewise.
22436         (ccp_visit_stmt): Likewise.
22437         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22438         (constant_pointer_difference): Likewise.
22439         (associate_pointerplus): Likewise.
22440         (combine_conversions): Likewise.
22441         * tree-ssa-loop.h: Include wide-int.h.
22442         (struct tree_niter_desc): Change type of max to widest_int.
22443         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
22444         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
22445         (remove_redundant_iv_tests): Likewise.
22446         (canonicalize_loop_induction_variables): Likewise.
22447         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
22448         (constant_multiple_of): Take a widest_int pointer instead of
22449         a double_int pointer.
22450         (get_computation_aff): Use wide-int interfaces.
22451         (ptr_difference_cost): Likewise.
22452         (difference_cost): Likewise.
22453         (get_loop_invariant_expr_id): Likewise.
22454         (get_computation_cost_at): Likewise.
22455         (iv_elimination_compare_lt): Likewise.
22456         (may_eliminate_iv): Likewise.
22457         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
22458         instead of double_int.
22459         (max_loop_iterations): Likewise.
22460         (max_stmt_executions): Likewise.
22461         (estimated_stmt_executions): Likewise.
22462         * tree-ssa-loop-niter.c: Include wide-int-print.h.
22463         (split_to_var_and_offset): Use wide-int interfaces.
22464         (determine_value_range): Likewise.
22465         (bound_difference_of_offsetted_base): Likewise.
22466         (bounds_add): Take a widest_int instead of a double_int.
22467         (number_of_iterations_ne_max): Use wide-int interfaces.
22468         (number_of_iterations_ne): Likewise.
22469         (number_of_iterations_lt_to_ne): Likewise.
22470         (assert_loop_rolls_lt): Likewise.
22471         (number_of_iterations_lt): Likewise.
22472         (number_of_iterations_le): Likewise.
22473         (number_of_iterations_cond): Likewise.
22474         (number_of_iterations_exit): Likewise.
22475         (finite_loop_p): Likewise.
22476         (derive_constant_upper_bound_assign): Likewise.
22477         (derive_constant_upper_bound): Return a widest_int.
22478         (derive_constant_upper_bound_ops): Likewise.
22479         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
22480         (record_estimate): Take a widest_int rather than a double_int.
22481         (record_nonwrapping_iv): Use wide-int interfaces.
22482         (double_int_cmp): Delete.
22483         (wide_int_cmp): New.
22484         (bound_index): Take a widest_int rather than a double_int.
22485         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
22486         (maybe_lower_iteration_bound): Likewise.
22487         (estimate_numbers_of_iterations_loop): Likewise.
22488         (estimated_loop_iterations): Take a widest_int pointer than than
22489         a double_int pointer.
22490         (estimated_loop_iterations_int): Use wide-int interfaces.
22491         (max_loop_iterations): Take a widest_int pointer than than
22492         a double_int pointer.
22493         (max_loop_iterations_int): Use wide-int interfaces.
22494         (max_stmt_executions): Take a widest_int pointer than than
22495         a double_int pointer.
22496         (estimated_stmt_executions): Likewise.
22497         (n_of_executions_at_most): Use wide-int interfaces.
22498         (scev_probably_wraps_p): Likewise.
22499         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
22500         to real_to_integer.
22501         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
22502         interfaces.
22503         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
22504         double_ints.  Adjust for trailing_wide_ints <3> representation.
22505         (set_nonzero_bits): Likewise.
22506         (get_range_info): Return wide_ints rather than double_ints.
22507         Adjust for trailing_wide_ints <3> representation.
22508         (get_nonzero_bits): Likewise.
22509         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
22510         representation.
22511         * tree-ssanames.h (struct range_info_def): Replace min, max and
22512         nonzero_bits with a trailing_wide_ints <3>.
22513         (set_range_info): Use wide_int_refs rather than double_ints.
22514         (set_nonzero_bits): Likewise.
22515         (get_range_info): Return wide_ints rather than double_ints.
22516         (get_nonzero_bits): Likewise.
22517         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
22518         * tree-ssa-pre.c (phi_translate_1): Likewise.
22519         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
22520         (acceptable_pow_call): Likewise.
22521         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
22522         interfaces.
22523         (vn_reference_fold_indirect): Likewise.
22524         (vn_reference_maybe_forwprop_address): Likewise.
22525         (valueize_refs_1): Likewise.
22526         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
22527         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
22528         tree_int_cst_lt and tree_int_cst_le.
22529         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
22530         interfaces.
22531         (streamer_alloc_tree): Likewise.
22532         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
22533         (streamer_write_tree_header): Likewise.
22534         (streamer_write_integer_cst): Likewise.
22535         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22536         (build_constructors): Likewise.
22537         (array_value_type): Likewise.
22538         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
22539         (vect_check_gather): Likewise.
22540         * tree-vect-generic.c (build_replicated_const): Likewise.
22541         (expand_vector_divmod): Likewise.
22542         * tree-vect-loop.c (vect_transform_loop): Likewise.
22543         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
22544         (vect_do_peeling_for_alignment): Likewise.
22545         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
22546         * tree-vrp.c: Include wide-int.h.
22547         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
22548         (extract_range_from_assert): Use wide-int interfaces.
22549         (vrp_int_const_binop): Likewise.
22550         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
22551         double_int pointers.
22552         (ranges_from_anti_range): Use wide-int interfaces.
22553         (quad_int_cmp): Delete.
22554         (quad_int_pair_sort): Likewise.
22555         (extract_range_from_binary_expr_1): Use wide-int interfaces.
22556         (extract_range_from_unary_expr_1): Likewise.
22557         (adjust_range_with_scev): Likewise.
22558         (masked_increment): Take and return wide_ints rather than double_ints.
22559         (register_edge_assert_for_2): Use wide-int interfaces.
22560         (check_array_ref): Likewise.
22561         (search_for_addr_array): Likewise.
22562         (maybe_set_nonzero_bits): Likewise.
22563         (union_ranges): Pass an integer of the correct type instead of
22564         using integer_one_node.
22565         (intersect_ranges): Likewise.
22566         (simplify_truth_ops_using_ranges): Likewise.
22567         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
22568         (range_fits_type_p): Likewise.
22569         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
22570         a bool.
22571         (simplify_conversion_using_ranges): Use wide-int interfaces.
22572         (simplify_float_conversion_using_ranges): Likewise.
22573         (vrp_finalize): Likewise.
22574         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
22575         (gimple_stringops_transform): Likewise.
22576         * varasm.c (decode_addr_const): Likewise.
22577         (const_hash_1): Likewise.
22578         (const_rtx_hash_1): Likewise
22579         (output_constant): Likewise.
22580         (array_size_for_constructor): Likewise.
22581         (output_constructor_regular_field): Likewise.
22582         (output_constructor_bitfield): Likewise.
22583         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
22584         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
22585         GENERATOR_FILEs.
22586         * gencheck.c: Define BITS_PER_UNIT.
22587         * wide-int.cc: New.
22588         * wide-int.h: New.
22589         * wide-int-print.cc: New.
22590         * wide-int-print.h: New.
22591
22592 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22593
22594         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
22595
22596 2014-05-06  Richard Biener  <rguenther@suse.de>
22597
22598         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22599         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22600         (TODO_verify_all): Adjust.
22601         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22602         TODO_verify_stmts and TODO_verify_rtl_sharing.
22603         * bb-reorder.c: Likewise.
22604         * cfgexpand.c: Likewise.
22605         * cprop.c: Likewise.
22606         * cse.c: Likewise.
22607         * function.c: Likewise.
22608         * fwprop.c: Likewise.
22609         * gcse.c: Likewise.
22610         * gimple-ssa-isolate-paths.c: Likewise.
22611         * gimple-ssa-strength-reduction.c: Likewise.
22612         * ipa-split.c: Likewise.
22613         * loop-init.c: Likewise.
22614         * loop-unroll.c: Likewise.
22615         * lower-subreg.c: Likewise.
22616         * modulo-sched.c: Likewise.
22617         * postreload-gcse.c: Likewise.
22618         * predict.c: Likewise.
22619         * recog.c: Likewise.
22620         * sched-rgn.c: Likewise.
22621         * store-motion.c: Likewise.
22622         * tracer.c: Likewise.
22623         * trans-mem.c: Likewise.
22624         * tree-call-cdce.c: Likewise.
22625         * tree-cfg.c: Likewise.
22626         * tree-cfgcleanup.c: Likewise.
22627         * tree-complex.c: Likewise.
22628         * tree-eh.c: Likewise.
22629         * tree-emutls.c: Likewise.
22630         * tree-if-conv.c: Likewise.
22631         * tree-into-ssa.c: Likewise.
22632         * tree-loop-distribution.c: Likewise.
22633         * tree-object-size.c: Likewise.
22634         * tree-parloops.c: Likewise.
22635         * tree-pass.h: Likewise.
22636         * tree-sra.c: Likewise.
22637         * tree-ssa-ccp.c: Likewise.
22638         * tree-ssa-copy.c: Likewise.
22639         * tree-ssa-copyrename.c: Likewise.
22640         * tree-ssa-dce.c: Likewise.
22641         * tree-ssa-dom.c: Likewise.
22642         * tree-ssa-dse.c: Likewise.
22643         * tree-ssa-forwprop.c: Likewise.
22644         * tree-ssa-ifcombine.c: Likewise.
22645         * tree-ssa-loop-ch.c: Likewise.
22646         * tree-ssa-loop-ivcanon.c: Likewise.
22647         * tree-ssa-loop.c: Likewise.
22648         * tree-ssa-math-opts.c: Likewise.
22649         * tree-ssa-phiopt.c: Likewise.
22650         * tree-ssa-phiprop.c: Likewise.
22651         * tree-ssa-pre.c: Likewise.
22652         * tree-ssa-reassoc.c: Likewise.
22653         * tree-ssa-sink.c: Likewise.
22654         * tree-ssa-strlen.c: Likewise.
22655         * tree-ssa-tail-merge.c: Likewise.
22656         * tree-ssa-uncprop.c: Likewise.
22657         * tree-switch-conversion.c: Likewise.
22658         * tree-tailcall.c: Likewise.
22659         * tree-vect-generic.c: Likewise.
22660         * tree-vectorizer.c: Likewise.
22661         * tree-vrp.c: Likewise.
22662         * tsan.c: Likewise.
22663         * var-tracking.c: Likewise.
22664         * bt-load.c: Likewise.
22665         * cfgcleanup.c: Likewise.
22666         * combine-stack-adj.c: Likewise.
22667         * combine.c: Likewise.
22668         * compare-elim.c: Likewise.
22669         * config/epiphany/resolve-sw-modes.c: Likewise.
22670         * config/i386/i386.c: Likewise.
22671         * config/mips/mips.c: Likewise.
22672         * config/s390/s390.c: Likewise.
22673         * config/sh/sh_treg_combine.cc: Likewise.
22674         * config/sparc/sparc.c: Likewise.
22675         * dce.c: Likewise.
22676         * dse.c: Likewise.
22677         * final.c: Likewise.
22678         * ifcvt.c: Likewise.
22679         * mode-switching.c: Likewise.
22680         * passes.c: Likewise.
22681         * postreload.c: Likewise.
22682         * ree.c: Likewise.
22683         * reg-stack.c: Likewise.
22684         * regcprop.c: Likewise.
22685         * regrename.c: Likewise.
22686         * web.c: Likewise.
22687
22688 2014-05-06  Richard Biener  <rguenther@suse.de>
22689
22690         PR middle-end/61070
22691         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22692         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22693
22694 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
22695
22696         PR ipa/60965
22697         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22698
22699 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
22700             Tom de Vries  <tom@codesourcery.com>
22701
22702         * target.def (call_fusage_contains_non_callee_clobbers): New
22703         DEFHOOKPOD.
22704         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22705         Hooks to @menu.
22706         (@node Miscellaneous Register Hooks): New node.
22707         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22708         * doc/tm.texi: Regenerate.
22709
22710 2014-05-05  Marek Polacek  <polacek@redhat.com>
22711
22712         PR driver/61065
22713         * opts.c (common_handle_option): Call error_at instead of warning_at.
22714
22715 2014-05-05  Richard Biener  <rguenther@suse.de>
22716
22717         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22718         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
22719         under the TODO_verify_il umbrella.
22720
22721 2014-05-05  Richard Biener  <rguenther@suse.de>
22722
22723         * passes.c (execute_function_todo): Move TODO_verify_flow under
22724         the TODO_verify_ul umbrella.
22725
22726 2014-05-05  Richard Biener  <rguenther@suse.de>
22727
22728         PR middle-end/61010
22729         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22730         X & CST away from a CST that is the mask of a mode.
22731
22732 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22733
22734         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22735         int argument to enum machine_mode.
22736         (picochip_class_max_nregs): Ditto.
22737         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22738         (picochip_class_max_nregs): Ditto.
22739
22740 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22741
22742         * target.def: Add new target hook.
22743         * doc/tm.texi: Regenerate.
22744         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22745         * targhooks.c (default_keep_leaf_when_profiled): New function.
22746
22747         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22748         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22749
22750 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
22751
22752         PR tree-optimization/60363
22753         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22754         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
22755         (update_destination_phis): New parameter.
22756         (create_edge_and_update_destination_phis): Ditto.
22757         (ssa_fix_duplicate_block_edges): Pass new arguments.
22758         (thread_single_edge): Ditto.
22759
22760 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
22761
22762         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22763         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22764         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22765         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22766         Use RS6000_BTM_HARD_FLOAT.
22767         (BU_MISC_2): Likewise.
22768         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22769         RS6000_BTM_HARD_FLOAT.
22770         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22771         is explicitly used.
22772         (rs6000_invalid_builtin): Add hard floating builtin support.
22773         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22774         hard float builtins.
22775         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22776
22777 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22778
22779         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22780         Add missing function* argument.
22781
22782 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22783
22784         * lra-constraints.c (valid_address_p): Move earlier in file.
22785         Add a constraint argument to the address_info version.
22786         (satisfies_memory_constraint_p): New function.
22787         (satisfies_address_constraint_p): Likewise.
22788         (process_alt_operands, curr_insn_transform): Use them.
22789         (process_address): Pass the constraint to valid_address_p when
22790         checking address operands.
22791
22792 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22793
22794         * config/mips/mips.c (mips_isa_rev): New variable.
22795         (mips_set_architecture): Set it.
22796         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22797         from mips_isa_rev.
22798         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22799         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22800         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22801         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22802         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22803         conditions in terms of mips_isa_rev.
22804         (mips_isa_rev): Declare.
22805
22806 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22807
22808         * config/sh/sh-mem.cc: Use tabs instead of spaces.
22809         (prob_unlikely, prob_likely): Make variables const.
22810
22811 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
22812
22813         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22814
22815 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22816
22817         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22818
22819 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22820
22821         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22822         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22823         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22824         functions.
22825         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22826         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22827         sh_pass_in_reg_p.
22828         Replace usage of ROUND_REG with sh_round_reg.
22829         Use CEIL instead of ROUND_ADVANCE.
22830
22831 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22832
22833         PR target/61026
22834         * config/sh/sh.c: Include stdlib headers before everything else.
22835
22836 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
22837
22838         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22839         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22840         (gimplify_adjust_omp_clauses): Simd region is never
22841         directly nested in combined parallel.  Instead, for linear
22842         with copyin/copyout, if in combined for simd loop, make decl
22843         firstprivate/lastprivate on OMP_FOR.
22844         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22845         expand_omp_for_static_chunk): When setting endvar, also set
22846         fd->loop.v to the same value.
22847
22848 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22849
22850         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22851
22852 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
22853
22854         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22855         expression.
22856
22857 2014-05-02  Marek Polacek  <polacek@redhat.com>
22858
22859         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22860
22861 2014-05-02  Kito Cheng  <kito@0xlab.org>
22862
22863         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22864         to a C expression marco.
22865         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22866         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22867         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22868         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22869         HONOR_REG_ALLOC_ORDER.
22870         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22871
22872 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22873
22874         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22875
22876 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22877
22878         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22879
22880 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
22881
22882         * tree-if-conv.c (is_cond_scalar_reduction): New function.
22883         (convert_scalar_cond_reduction): Likewise.
22884         (predicate_scalar_phi): Add recognition and transformation
22885         of simple conditioanl reduction to be vectorizable.
22886
22887 2014-05-01  Marek Polacek  <polacek@redhat.com>
22888
22889         PR c/43245
22890         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22891
22892 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
22893
22894         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22895         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22896         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22897         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22898         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22899         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22900         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22901         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22902
22903 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
22904
22905         * config/arc/arc.opt (mlra): Move comment above option name
22906         to avoid mis-parsing as language options.
22907
22908 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22909
22910         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22911         * config/sol2.h: ... here.
22912         * config/sol2-10.h: Remove.
22913
22914         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22915         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22916         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22917         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22918         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22919         * config/sol2.h: ... here.
22920         (SECTION_NAME_FORMAT): Don't redefine.
22921         (STARTFILE_ARCH32_SPEC): Rename to ...
22922         (STARTFILE_ARCH_SPEC): ... this.
22923         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22924         * config/sparc/sol2.h: ... here.
22925         (SECTION_NAME_FORMAT): Don't undef.
22926         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22927         (SUBTARGET_EXTRA_SPECS): Remove.
22928         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22929
22930         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22931         (MD_STARTFILE_PREFIX): Remove.
22932         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22933         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22934         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22935         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22936         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22937         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22938         * config/i386/sol2.h: ... here.
22939         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22940         * config/i386/sol2-bi.h: Remove.
22941         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22942         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22943
22944         * config/i386/t-sol2-64: Rename to ...
22945         * config/i386/t-sol2: ... this.
22946         * config/sparc/t-sol2-64: Rename to ...
22947         * config/sparc/t-sol2: ... this.
22948
22949         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22950         sol2_tm_file_head, sol2_tm_file_tail.
22951         Include ${cpu_type}/sol2.h before sol2.h.
22952         Remove sol2-10.h.
22953         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22954         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22955         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22956         Reflect i386/t-sol2-64 renaming.
22957         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22958         Reflect sparc/t-sol2-64 renaming.
22959
22960 2014-04-30  Richard Biener  <rguenther@suse.de>
22961
22962         * passes.c (execute_function_todo): Move TODO_verify_stmts
22963         and TODO_verify_ssa under the TODO_verify_il umbrella.
22964         * tree-ssa.h (verify_ssa): Adjust prototype.
22965         * tree-ssa.c (verify_ssa): Add parameter to tell whether
22966         we should verify SSA operands.
22967         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22968         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22969         whether we should verify whether not throwing stmts have EH info.
22970         * graphite-scop-detection.c (create_sese_edges): Adjust.
22971         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22972         * tree-eh.c (lower_try_finally_switch): Do not add the
22973         default case label twice.
22974
22975 2014-04-30  Marek Polacek  <polacek@redhat.com>
22976
22977         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22978         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22979         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22980         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22981
22982 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22983
22984         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22985         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22986         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22987         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22988         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22989         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22990         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22991         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22992
22993 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
22994
22995         * tree-cfg.c (dump_function_to_file): Dump the return type of
22996         functions, in a line to itself before the function body, mimicking
22997         the layout of a C function.
22998
22999 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
23000
23001         PR tree-optimization/60971
23002         * tree-tailcall.c (process_assignment): Reject conversions which
23003         reduce precision.
23004
23005 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
23006
23007         * calls.c (initialize_argument_information): Always treat
23008         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
23009         (expand_call): Likewise.
23010         (emit_library_call_calue_1): Likewise.
23011         * expr.c (PUSH_ARGS_REVERSED): Do not define.
23012         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
23013         code accordingly.
23014
23015 2014-04-29  Nick Clifton  <nickc@redhat.com>
23016
23017         * config/msp430/msp430.md (umulsidi): Fix typo.
23018         (mulhisi3): Enable even inside interrupt handlers.
23019         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
23020         bigger return address pushed in large mode.
23021
23022 2014-04-29  Nick Clifton  <nickc@redhat.com>
23023
23024         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
23025         (arc_init_reg_tables): Use a machine_mode enum to iterate over
23026         available modes.
23027         * config/m32r/m32r.c (init_reg_tables): Likewise.
23028         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
23029         enum to hold the modes.
23030
23031 2014-04-29  Richard Biener  <rguenther@suse.de>
23032
23033         * dominance.c (free_dominance_info): Add overload with
23034         function parameter.
23035         (dom_info_state): Likewise.
23036         (dom_info_available_p): Likewise.
23037         * basic-block.h (free_dominance_info, dom_info_state,
23038         dom_info_available_p): Declare overloads.
23039         * passes.c (execute_function_todo): Verify that verifiers
23040         don't change dominator info state.  Drop dominator info
23041         for IPA pass invocations.
23042         * cgraph.c (release_function_body): Restore asserts that
23043         dominator information is released.
23044
23045 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
23046
23047         * doc/invoke.texi: Fix typo.
23048         * tree-vrp.c: Fix typos.
23049         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
23050
23051 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23052
23053         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
23054
23055 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
23056
23057         * config/aarch64/aarch64-builtins.c
23058         (aarch64_types_storestruct_lane_qualifiers): New.
23059         (TYPES_STORESTRUCT_LANE): Likewise.
23060         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
23061         (st3_lane): Likewise.
23062         (st4_lane): Likewise.
23063         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
23064         (vec_store_lanesci_lane<mode>): Likewise.
23065         (vec_store_lanesxi_lane<mode>): Likewise.
23066         (aarch64_st2_lane<VQ:mode>): Likewise.
23067         (aarch64_st3_lane<VQ:mode>): Likewise.
23068         (aarch64_st4_lane<VQ:mode>): Likewise.
23069         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
23070         * config/aarch64/arm_neon.h
23071         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
23072         use new macro arguments.
23073         (__ST3_LANE_FUNC): Likewise.
23074         (__ST4_LANE_FUNC): Likewise.
23075         * config/aarch64/iterators.md (V_TWO_ELEM): New.
23076         (V_THREE_ELEM): Likewise.
23077         (V_FOUR_ELEM): Likewise.
23078
23079 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
23080
23081         * doc/gimple.texi: Replace the description of the now-defunct
23082         union gimple_statement_d with a diagram showing the
23083         gimple_statement_base class hierarchy and its relationships to
23084         the GSS_ and GIMPLE_ enums.
23085
23086 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
23087
23088         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
23089         * config/aarch64/aarch64.c
23090         (aarch64_cannot_change_mode_class): Weaken conditions.
23091         (aarch64_modes_tieable_p): New.
23092         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
23093
23094 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
23095
23096         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23097         (loadsync_<mode>): Change mode.
23098         (load_quadpti, store_quadpti): New.
23099         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23100         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23101
23102 2014-04-28  Martin Jambor  <mjambor@suse.cz>
23103
23104         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
23105         same alias type as the original statement.
23106         (subreplacement_assignment_data): New type.
23107         (handle_unscalarized_data_in_subtree): New type of parameter,
23108         generate new memory accesses with same alias type as the original
23109         statement.
23110         (load_assign_lhs_subreplacements): Likewise.
23111         (sra_modify_constructor_assign): Generate new memory accesses with
23112         same alias type as the original statement.
23113
23114 2014-04-28  Richard Biener  <rguenther@suse.de>
23115
23116         * tree-pass.h (TODO_verify_il): Define.
23117         (TODO_verify_all): Complete properly.
23118         * passes.c (execute_function_todo): Move existing loop-closed
23119         SSA verification under TODO_verify_il.
23120         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
23121         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
23122         Fix tree sharing issue.
23123
23124 2014-04-28  Richard Biener  <rguenther@suse.de>
23125
23126         PR middle-end/60092
23127         * builtins.def (DEF_C11_BUILTIN): Add.
23128         (BUILT_IN_ALIGNED_ALLOC): Likewise.
23129         * coretypes.h (enum function_class): Add function_c11_misc.
23130         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23131         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
23132         (call_may_clobber_ref_p_1): Likewise.
23133         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23134         (mark_all_reaching_defs_necessary_1): Likewise.
23135         (propagate_necessity): Likewise.
23136         (eliminate_unnecessary_stmts): Likewise.
23137         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
23138
23139 2014-04-28  Richard Biener  <rguenther@suse.de>
23140
23141         * tree-vrp.c (vrp_var_may_overflow): Remove.
23142         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
23143         with overflow immediately bump to one before that value and
23144         let iteration figure out overflow status.
23145
23146 2014-04-28  Richard Biener  <rguenther@suse.de>
23147
23148         * configure.ac: Do valgrind header checks unconditionally.
23149         Add --enable-valgrind-annotations.
23150         * system.h: Guard valgrind header inclusion with
23151         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
23152         * alloc-pool.c (pool_alloc, pool_free): Use
23153         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
23154         to guard possibly dead code.
23155         * config.in: Regenerated.
23156         * configure: Likewise.
23157
23158 2014-04-28  Jeff Law  <law@redhat.com>
23159
23160         PR tree-optimization/60902
23161         * tree-ssa-threadedge.c
23162         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
23163         over real defs when invalidating outputs from statements that do not
23164         produce useful outputs for threading.
23165
23166 2014-04-28  Richard Biener  <rguenther@suse.de>
23167
23168         PR tree-optimization/60979
23169         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
23170         SCOPs that end in a block with a successor with abnormal
23171         predecessors.
23172
23173 2014-04-28  Richard Biener  <rguenther@suse.de>
23174
23175         * tree-pass.h (execute_pass_list): Adjust prototype.
23176         * passes.c (pass_manager::execute_early_local_passes): Adjust.
23177         (do_per_function): Change callback signature, push all actual
23178         work to the callbals.
23179         (do_per_function_toporder): Likewise.
23180         (execute_function_dump): Adjust.
23181         (execute_function_todo): Likewise.
23182         (clear_last_verified): Likewise.
23183         (verify_curr_properties): Likewise.
23184         (update_properties_after_pass): Likewise.
23185         (execute_pass_list_1): Split out from ...
23186         (execute_pass_list): ... here.  Adjust.
23187         (execute_ipa_pass_list): Likewise.
23188         * cgraphunit.c (cgraph_add_new_function): Adjust.
23189         (analyze_function): Likewise.
23190         (expand_function): Likewise.
23191         * cgraph.c (release_function_body): Free dominance info
23192         here instead of asserting it was magically freed elsewhere.
23193
23194 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
23195
23196         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
23197         * configure: Regenerate.
23198         * config/sparc/sparc.opt (muser-mode): New option.
23199         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
23200         for LEON3.
23201         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
23202         * doc/invoke.texi (SPARC options): Document -muser-mode.
23203
23204 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
23205
23206         * cselib.c (find_slot_memmode): Delete.
23207         (cselib_hasher): Change compare_type to a struct.
23208         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
23209         constants.
23210         (preserve_constants_and_equivs): Adjust for new compare_type.
23211         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
23212         (wrap_constant): Delete.
23213         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
23214
23215 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
23216
23217         * doc/install.texi (Building with profile feedback): Remove
23218         outdated sentence.
23219
23220 2014-04-26  Tom de Vries  <tom@codesourcery.com>
23221
23222         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
23223         array accesses.
23224
23225 2014-04-25  Cary Coutant  <ccoutant@google.com>
23226
23227         PR debug/60929
23228         * dwarf2out.c (should_move_die_to_comdat): A type definition
23229         can contain a subprogram definition, but don't move it to a
23230         comdat unit.
23231         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
23232         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
23233         from original DIE.
23234         (clone_tree_hash): Rename to...
23235         (clone_tree_partial): ...this; change callers.  Copy
23236         DW_TAG_subprogram DIEs as declarations.
23237         (copy_decls_walk): Don't copy children of a declaration into a
23238         type unit.
23239
23240 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
23241
23242         PR target/60969
23243         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
23244         alternative 12.
23245
23246 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
23247
23248         * config/arm/predicates.md (call_insn_operand): Add long_call check.
23249         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
23250         reg for long_call.
23251         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
23252         restriction.
23253
23254 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23255
23256         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
23257
23258 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23259
23260         PR tree-optimization/60930
23261         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
23262         creating a multiply candidate by folding two constant
23263         multiplicands when the result overflows.
23264
23265 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
23266
23267         PR tree-optimization/60960
23268         * tree-vect-generic.c (expand_vector_operation): Only call
23269         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
23270
23271 2014-04-25  Tom de Vries  <tom@codesourcery.com>
23272
23273         * expr.c (clobber_reg_mode): New function.
23274         * expr.h (clobber_reg): New function.
23275
23276 2014-04-25  Tom de Vries  <tom@codesourcery.com>
23277
23278         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
23279         clobbers.
23280
23281 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
23282             Tom de Vries  <tom@codesourcery.com>
23283
23284         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
23285         handle.
23286         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
23287         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
23288         new argument to find_all_hard_reg_sets call.
23289
23290 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23291
23292         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
23293         Use HOST_WIDE_INT_C for mask literal.
23294         (aarch_rev16_shleft_mask_imm_p): Likewise.
23295
23296 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
23297
23298         PR target/60941
23299         * config/sparc/sparc.md (ashlsi3_extend): Delete.
23300
23301 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
23302
23303         PR preprocessor/56540
23304         * config/i386/i386-c.c (ix86_target_macros): Define
23305         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
23306
23307 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23308
23309         * configure.ac (tga_func): Remove.
23310         (LIB_TLS_SPEC): Remove.
23311         * configure: Regenerate.
23312         * config.in: Regenerate.
23313         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
23314
23315 2014-04-25  Richard Biener  <rguenther@suse.de>
23316
23317         PR ipa/60912
23318         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
23319         call stmt use/clobber sets during stmt walk instead of
23320         walking the possibly incomplete set of caller edges.
23321
23322 2014-04-25  Richard Biener  <rguenther@suse.de>
23323
23324         PR ipa/60911
23325         * passes.c (apply_ipa_transforms): Inline into only caller ...
23326         (execute_one_pass): ... here.  Properly bring in function
23327         bodies for nodes we want to apply IPA transforms to.
23328
23329 2014-04-24  Cong Hou  <congh@google.com>
23330
23331         PR tree-optimization/60896
23332         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
23333         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
23334         (vect_mark_pattern_stmts): Set the def type of all statements in
23335         PATTERN_DEF_SEQ as vect_internal_def.
23336
23337 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23338
23339         * doc/extend.texi (PowerPC Built-in Functions): Document new
23340         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
23341         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
23342
23343         * config/rs6000/predicates.md (const_0_to_3_operand): New
23344         predicate to match 0..3 integer constants.
23345
23346         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
23347         to support adding miscellaneous builtin functions.
23348         (BU_DFP_MISC_2): Likewise.
23349         (BU_P7_MISC_1): Likewise.
23350         (BU_P7_MISC_2): Likewise.
23351         (BU_P8V_MISC_3): Likewise.
23352         (BU_MISC_1): Likewise.
23353         (BU_MISC_2): Likewise.
23354         (DIVWE): Add extended divide builtin functions.
23355         (DIVWEO): Likewise.
23356         (DIVWEU): Likewise.
23357         (DIVWEUO): Likewise.
23358         (DIVDE): Likewise.
23359         (DIVDEO): Likewise.
23360         (DIVDEU): Likewise.
23361         (DIVDEUO): Likewise.
23362         (DXEX): Add decimal floating-point builtin functions.
23363         (DXEXQ): Likewise.
23364         (DDEDPD): Likewise.
23365         (DDEDPDQ): Likewise.
23366         (DENBCD): Likewise.
23367         (DENBCDQ): Likewise.
23368         (DIEX): Likewise.
23369         (DIEXQ): Likewise.
23370         (DSCLI): Likewise.
23371         (DSCLIQ): Likewise.
23372         (DSCRI): Likewise.
23373         (DSCRIQ): Likewise.
23374         (CDTBCD): Add new BCD builtin functions.
23375         (CBCDTD): Likewise.
23376         (ADDG6S): Likewise.
23377         (BCDADD): Likewise.
23378         (BCDADD_LT): Likewise.
23379         (BCDADD_EQ): Likewise.
23380         (BCDADD_GT): Likewise.
23381         (BCDADD_OV): Likewise.
23382         (BCDSUB): Likewise.
23383         (BCDSUB_LT): Likewise.
23384         (BCDSUB_EQ): Likewise.
23385         (BCDSUB_GT): Likewise.
23386         (BCDSUB_OV): Likewise.
23387         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
23388         (UNPACK_TD): Likewise.
23389         (PACK_TF): Likewise.
23390         (UNPACK_TF): Likewise.
23391         (UNPACK_TF_0): Likewise.
23392         (UNPACK_TF_1): Likewise.
23393         (PACK_V1TI): Likewise.
23394         (UNPACK_V1TI): Likewise.
23395
23396         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23397         support for decimal floating point builtin functions.
23398         (rs6000_expand_ternop_builtin): Add checks for the new builtin
23399         functions that take constant arguments.
23400         (rs6000_invalid_builtin): Add decimal floating point builtin support.
23401         (rs6000_init_builtins): Setup long double, _Decimal64, and
23402         _Decimal128 types for new builtin functions.
23403         (builtin_function_type): Set the unsigned flags appropriately for
23404         the new builtin functions.
23405         (rs6000_opt_masks): Add support for decimal floating point builtin
23406         functions.
23407
23408         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
23409         floating point builtin functions.
23410         (RS6000_BTM_COMMON): Likewise.
23411         (RS6000_BTI_long_double): Likewise.
23412         (RS6000_BTI_dfloat64): Likewise.
23413         (RS6000_BTI_dfloat128): Likewise.
23414         (long_double_type_internal_node): Likewise.
23415         (dfloat64_type_internal_node): Likewise.
23416         (dfloat128_type_internal_node): Likewise.
23417
23418         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
23419         2.07 bcd arithmetic instructions.
23420         (UNSPEC_BCDSUB): Likewise.
23421         (UNSPEC_BCD_OVERFLOW): Likewise.
23422         (UNSPEC_BCD_ADD_SUB): Likewise.
23423         (bcd_add_sub): Likewise.
23424         (BCD_TEST): Likewise.
23425         (bcd<bcd_add_sub>): Likewise.
23426         (bcd<bcd_add_sub>_test): Likewise.
23427         (bcd<bcd_add_sub>_test2): Likewise.
23428         (bcd<bcd_add_sub>_<code>): Likewise.
23429         (peephole2 for combined bcd ops): Likewise.
23430
23431         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
23432         decimal floating point builtin functions.
23433         (UNSPEC_DENBCD): Likewise.
23434         (UNSPEC_DXEX): Likewise.
23435         (UNSPEC_DIEX): Likewise.
23436         (UNSPEC_DSCLI): Likewise.
23437         (UNSPEC_DSCRI): Likewise.
23438         (D64_D128): Likewise.
23439         (dfp_suffix): Likewise.
23440         (dfp_ddedpd_<mode>): Likewise.
23441         (dfp_denbcd_<mode>): Likewise.
23442         (dfp_dxex_<mode>): Likewise.
23443         (dfp_diex_<mode>): Likewise.
23444         (dfp_dscli_<mode>): Likewise.
23445         (dfp_dscri_<mode>): Likewise.
23446
23447         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
23448         builtin functions.
23449         (UNSPEC_CDTBCD): Likewise.
23450         (UNSPEC_CBCDTD): Likewise.
23451         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
23452         (UNSPEC_DIVEO): Likewise.
23453         (UNSPEC_DIVEU): Likewise.
23454         (UNSPEC_DIVEUO): Likewise.
23455         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
23456         pack/unpack 128-bit types.
23457         (UNSPEC_PACK_128BIT): Likewise.
23458         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
23459         (udiv<mode>3): Use idiv_ldiv mode attribute.
23460         (div<mode>3): Likewise.
23461         (addg6s): Add new BCD builtin functions.
23462         (cdtbcd): Likewise.
23463         (cbcdtd): Likewise.
23464         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
23465         (div_extend): Likewise.
23466         (div<div_extend>_<mode>"): Likewise.
23467         (FP128_64): Add support for new builtin functions to pack/unpack
23468         128-bit types.
23469         (unpack<mode>): Likewise.
23470         (unpacktf_0): Likewise.
23471         (unpacktf_1): Likewise.
23472         (unpack<mode>_dm): Likewise.
23473         (unpack<mode>_nodm): Likewise.
23474         (pack<mode>): Likewise.
23475         (unpackv1ti): Likewise.
23476         (packv1ti): Likewise.
23477
23478 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
23479
23480         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
23481         is disabled.
23482
23483 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
23484
23485         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
23486         * gimplify.c (omp_is_private): Change last argument's type to int.
23487         Only diagnose lastprivate if the simd argument is 1, only diagnose
23488         linear if the simd argument is 2.
23489         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
23490         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
23491         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
23492         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
23493         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
23494         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23495         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
23496         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23497         * tree-nested.c (convert_nonlocal_omp_clauses,
23498         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
23499
23500 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
23501
23502         PR target/60822
23503         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
23504         operand 1.
23505
23506 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
23507
23508         * flag-types.h (enum ivar_visibility): Add.
23509
23510 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
23511
23512         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
23513         function * argument.
23514
23515 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
23516
23517         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
23518
23519 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
23520             Tom de Vries  <tom@codesourcery.com>
23521
23522         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
23523         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
23524         reg-note.
23525         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
23526         * emit-rtl.c (try_split): Same.
23527
23528 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
23529             Tom de Vries  <tom@codesourcery.com>
23530
23531         * common.opt (fuse-caller-save): New option.
23532
23533 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
23534
23535         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
23536         elements for big-endian.
23537
23538 2014-04-24  Richard Biener  <rguenther@suse.de>
23539
23540         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
23541         during TER and instead use the sepops interface for expanding
23542         non-GIMPLE_SINGLE_RHS.
23543
23544 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23545
23546         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
23547         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
23548
23549 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23550
23551         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
23552         assembler 64-bit option.
23553         * configure: Regenerate.
23554
23555 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23556
23557         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
23558         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
23559         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
23560         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
23561         (TARGET_CRYPTO): Take TARGET_SIMD into account.
23562
23563 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23564
23565         * config/aarch64/aarch64-builtins.c
23566         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
23567         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
23568         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
23569         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
23570         builtins.
23571         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
23572         (Vrevsuff): New mode attribute.
23573
23574 2014-04-24  Terry Guo  <terry.guo@arm.com>
23575
23576         * config/arm/arm.h (machine_function): Define variable
23577         after_arm_reorg here.
23578         * config/arm/arm.c (after_arm_reorg): Remove the definition.
23579         (arm_split_constant): Update the way to access variable
23580         after_arm_reorg.
23581         (arm_reorg): Ditto.
23582         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
23583
23584 2014-04-23  Tom de Vries  <tom@codesourcery.com>
23585
23586         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
23587
23588 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
23589
23590         * is-a.h: Update comments to reflect the following changes to the
23591         "pointerness" of the API, making the template parameter match the
23592         return type, allowing use of is-a.h with typedefs of pointers.
23593         (is_a_helper::cast): Return a T rather then a pointer to a T, so
23594         that the return type matches the parameter to the is_a_helper.
23595         (as_a): Likewise.
23596         (dyn_cast): Likewise.
23597
23598         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23599         pointer from the is-a.h API.
23600
23601         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23602         (is_a_helper <cgraph_node *>::test): ...this, matching change to
23603         is-a.h API.
23604         (is_a_helper <varpool_node>::test): Likewise, convert to...
23605         (is_a_helper <varpool_node *>::test): ...this.
23606
23607         (varpool_first_variable): Update for removal of implicit pointer
23608         from the is-a.h API.
23609         (varpool_next_variable): Likewise.
23610         (varpool_first_static_initializer): Likewise.
23611         (varpool_next_static_initializer): Likewise.
23612         (varpool_first_defined_variable): Likewise.
23613         (varpool_next_defined_variable): Likewise.
23614         (cgraph_first_defined_function): Likewise.
23615         (cgraph_next_defined_function): Likewise.
23616         (cgraph_first_function): Likewise.
23617         (cgraph_next_function): Likewise.
23618         (cgraph_first_function_with_gimple_body): Likewise.
23619         (cgraph_next_function_with_gimple_body): Likewise.
23620         (cgraph_alias_target): Likewise.
23621         (varpool_alias_target): Likewise.
23622         (cgraph_function_or_thunk_node): Likewise.
23623         (varpool_variable_node): Likewise.
23624         (symtab_real_symbol_p): Likewise.
23625         * cgraphunit.c (referred_to_p): Likewise.
23626         (analyze_functions): Likewise.
23627         (handle_alias_pairs): Likewise.
23628         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23629         * gimple-ssa.h (gimple_vuse_op): Likewise.
23630         (gimple_vdef_op): Likewise.
23631         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23632         * gimple.c (gimple_build_asm_1): Likewise.
23633         (gimple_build_try): Likewise.
23634         (gimple_build_resx): Likewise.
23635         (gimple_build_eh_dispatch): Likewise.
23636         (gimple_build_omp_for): Likewise.
23637         (gimple_omp_for_set_clauses): Likewise.
23638
23639         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23640         (is_a_helper <gimple_statement_asm *>::test): ...this.
23641         (is_a_helper <gimple_statement_bind>::test): Convert to...
23642         (is_a_helper <gimple_statement_bind *>::test): ...this.
23643         (is_a_helper <gimple_statement_call>::test): Convert to...
23644         (is_a_helper <gimple_statement_call *>::test): ...this.
23645         (is_a_helper <gimple_statement_catch>::test): Convert to...
23646         (is_a_helper <gimple_statement_catch *>::test): ...this.
23647         (is_a_helper <gimple_statement_resx>::test): Convert to...
23648         (is_a_helper <gimple_statement_resx *>::test): ...this.
23649         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23650         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23651         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23652         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23653         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23654         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23655         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23656         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23657         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23658         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23659         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23660         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23661         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23662         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23663         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23664         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23665         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23666         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23667         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23668         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23669         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23670         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23671         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23672         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23673         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23674         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23675         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23676         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23677         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23678         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23679         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23680         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23681         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23682         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23683         (is_a_helper <gimple_statement_phi>::test): Convert to...
23684         (is_a_helper <gimple_statement_phi *>::test): ...this.
23685         (is_a_helper <gimple_statement_transaction>::test): Convert to...
23686         (is_a_helper <gimple_statement_transaction *>::test): ...this.
23687         (is_a_helper <gimple_statement_try>::test): Convert to...
23688         (is_a_helper <gimple_statement_try *>::test): ...this.
23689         (is_a_helper <gimple_statement_wce>::test): Convert to...
23690         (is_a_helper <gimple_statement_wce *>::test): ...this.
23691         (is_a_helper <const gimple_statement_asm>::test): Convert to...
23692         (is_a_helper <const gimple_statement_asm *>::test): ...this.
23693         (is_a_helper <const gimple_statement_bind>::test): Convert to...
23694         (is_a_helper <const gimple_statement_bind *>::test): ...this.
23695         (is_a_helper <const gimple_statement_call>::test): Convert to...
23696         (is_a_helper <const gimple_statement_call *>::test): ...this.
23697         (is_a_helper <const gimple_statement_catch>::test): Convert to...
23698         (is_a_helper <const gimple_statement_catch *>::test): ...this.
23699         (is_a_helper <const gimple_statement_resx>::test): Convert to...
23700         (is_a_helper <const gimple_statement_resx *>::test): ...this.
23701         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23702         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23703         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23704         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23705         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23706         Convert to...
23707         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23708         ...this.
23709         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23710         Convert to...
23711         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23712         ...this.
23713         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23714         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23715         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23716         to...
23717         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23718         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23719         to...
23720         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23721         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23722         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23723         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23724         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23725         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23726         to...
23727         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23728         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23729         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23730         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23731         to...
23732         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23733         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23734         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23735         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23736         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23737         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23738         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23739         (is_a_helper <const gimple_statement_phi>::test): Convert to...
23740         (is_a_helper <const gimple_statement_phi *>::test): ...this.
23741         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23742         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23743         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23744         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23745         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23746         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23747         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23748         to...
23749         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23750         ...this.
23751         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23752         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23753
23754         (gimple_use_ops): Update for removal of implicit pointer from the
23755         is-a.h API.
23756         (gimple_set_use_ops): Likewise.
23757         (gimple_vuse): Likewise.
23758         (gimple_vdef): Likewise.
23759         (gimple_vuse_ptr): Likewise.
23760         (gimple_vdef_ptr): Likewise.
23761         (gimple_set_vuse): Likewise.
23762         (gimple_set_vdef): Likewise.
23763         (gimple_omp_return_set_lhs): Likewise.
23764         (gimple_omp_return_lhs): Likewise.
23765         (gimple_omp_return_lhs_ptr): Likewise.
23766         (gimple_call_fntype): Likewise.
23767         (gimple_call_set_fntype): Likewise.
23768         (gimple_call_set_internal_fn): Likewise.
23769         (gimple_call_use_set): Likewise.
23770         (gimple_call_clobber_set): Likewise.
23771         (gimple_bind_vars): Likewise.
23772         (gimple_bind_set_vars): Likewise.
23773         (gimple_bind_body_ptr): Likewise.
23774         (gimple_bind_set_body): Likewise.
23775         (gimple_bind_add_stmt): Likewise.
23776         (gimple_bind_block): Likewise.
23777         (gimple_bind_set_block): Likewise.
23778         (gimple_asm_ninputs): Likewise.
23779         (gimple_asm_noutputs): Likewise.
23780         (gimple_asm_nclobbers): Likewise.
23781         (gimple_asm_nlabels): Likewise.
23782         (gimple_asm_input_op): Likewise.
23783         (gimple_asm_input_op_ptr): Likewise.
23784         (gimple_asm_output_op): Likewise.
23785         (gimple_asm_output_op_ptr): Likewise.
23786         (gimple_asm_set_output_op): Likewise.
23787         (gimple_asm_clobber_op): Likewise.
23788         (gimple_asm_set_clobber_op): Likewise.
23789         (gimple_asm_label_op): Likewise.
23790         (gimple_asm_set_label_op): Likewise.
23791         (gimple_asm_string): Likewise.
23792         (gimple_catch_types): Likewise.
23793         (gimple_catch_types_ptr): Likewise.
23794         (gimple_catch_handler_ptr): Likewise.
23795         (gimple_catch_set_types): Likewise.
23796         (gimple_catch_set_handler): Likewise.
23797         (gimple_eh_filter_types): Likewise.
23798         (gimple_eh_filter_types_ptr): Likewise.
23799         (gimple_eh_filter_failure_ptr): Likewise.
23800         (gimple_eh_filter_set_types): Likewise.
23801         (gimple_eh_filter_set_failure): Likewise.
23802         (gimple_eh_must_not_throw_fndecl): Likewise.
23803         (gimple_eh_must_not_throw_set_fndecl): Likewise.
23804         (gimple_eh_else_n_body_ptr): Likewise.
23805         (gimple_eh_else_e_body_ptr): Likewise.
23806         (gimple_eh_else_set_n_body): Likewise.
23807         (gimple_eh_else_set_e_body): Likewise.
23808         (gimple_try_eval_ptr): Likewise.
23809         (gimple_try_cleanup_ptr): Likewise.
23810         (gimple_try_set_eval): Likewise.
23811         (gimple_try_set_cleanup): Likewise.
23812         (gimple_wce_cleanup_ptr): Likewise.
23813         (gimple_wce_set_cleanup): Likewise.
23814         (gimple_phi_capacity): Likewise.
23815         (gimple_phi_num_args): Likewise.
23816         (gimple_phi_result): Likewise.
23817         (gimple_phi_result_ptr): Likewise.
23818         (gimple_phi_set_result): Likewise.
23819         (gimple_phi_arg): Likewise.
23820         (gimple_phi_set_arg): Likewise.
23821         (gimple_resx_region): Likewise.
23822         (gimple_resx_set_region): Likewise.
23823         (gimple_eh_dispatch_region): Likewise.
23824         (gimple_eh_dispatch_set_region): Likewise.
23825         (gimple_omp_critical_name): Likewise.
23826         (gimple_omp_critical_name_ptr): Likewise.
23827         (gimple_omp_critical_set_name): Likewise.
23828         (gimple_omp_for_clauses): Likewise.
23829         (gimple_omp_for_clauses_ptr): Likewise.
23830         (gimple_omp_for_set_clauses): Likewise.
23831         (gimple_omp_for_collapse): Likewise.
23832         (gimple_omp_for_index): Likewise.
23833         (gimple_omp_for_index_ptr): Likewise.
23834         (gimple_omp_for_set_index): Likewise.
23835         (gimple_omp_for_initial): Likewise.
23836         (gimple_omp_for_initial_ptr): Likewise.
23837         (gimple_omp_for_set_initial): Likewise.
23838         (gimple_omp_for_final): Likewise.
23839         (gimple_omp_for_final_ptr): Likewise.
23840         (gimple_omp_for_set_final): Likewise.
23841         (gimple_omp_for_incr): Likewise.
23842         (gimple_omp_for_incr_ptr): Likewise.
23843         (gimple_omp_for_set_incr): Likewise.
23844         (gimple_omp_for_pre_body_ptr): Likewise.
23845         (gimple_omp_for_set_pre_body): Likewise.
23846         (gimple_omp_parallel_clauses): Likewise.
23847         (gimple_omp_parallel_clauses_ptr): Likewise.
23848         (gimple_omp_parallel_set_clauses): Likewise.
23849         (gimple_omp_parallel_child_fn): Likewise.
23850         (gimple_omp_parallel_child_fn_ptr): Likewise.
23851         (gimple_omp_parallel_set_child_fn): Likewise.
23852         (gimple_omp_parallel_data_arg): Likewise.
23853         (gimple_omp_parallel_data_arg_ptr): Likewise.
23854         (gimple_omp_parallel_set_data_arg): Likewise.
23855         (gimple_omp_task_clauses): Likewise.
23856         (gimple_omp_task_clauses_ptr): Likewise.
23857         (gimple_omp_task_set_clauses): Likewise.
23858         (gimple_omp_task_child_fn): Likewise.
23859         (gimple_omp_task_child_fn_ptr): Likewise.
23860         (gimple_omp_task_set_child_fn): Likewise.
23861         (gimple_omp_task_data_arg): Likewise.
23862         (gimple_omp_task_data_arg_ptr): Likewise.
23863         (gimple_omp_task_set_data_arg): Likewise.
23864         (gimple_omp_taskreg_clauses): Likewise.
23865         (gimple_omp_taskreg_clauses_ptr): Likewise.
23866         (gimple_omp_taskreg_set_clauses): Likewise.
23867         (gimple_omp_taskreg_child_fn): Likewise.
23868         (gimple_omp_taskreg_child_fn_ptr): Likewise.
23869         (gimple_omp_taskreg_set_child_fn): Likewise.
23870         (gimple_omp_taskreg_data_arg): Likewise.
23871         (gimple_omp_taskreg_data_arg_ptr): Likewise.
23872         (gimple_omp_taskreg_set_data_arg): Likewise.
23873         (gimple_omp_task_copy_fn): Likewise.
23874         (gimple_omp_task_copy_fn_ptr): Likewise.
23875         (gimple_omp_task_set_copy_fn): Likewise.
23876         (gimple_omp_task_arg_size): Likewise.
23877         (gimple_omp_task_arg_size_ptr): Likewise.
23878         (gimple_omp_task_set_arg_size): Likewise.
23879         (gimple_omp_task_arg_align): Likewise.
23880         (gimple_omp_task_arg_align_ptr): Likewise.
23881         (gimple_omp_task_set_arg_align): Likewise.
23882         (gimple_omp_single_clauses): Likewise.
23883         (gimple_omp_single_clauses_ptr): Likewise.
23884         (gimple_omp_single_set_clauses): Likewise.
23885         (gimple_omp_target_clauses): Likewise.
23886         (gimple_omp_target_clauses_ptr): Likewise.
23887         (gimple_omp_target_set_clauses): Likewise.
23888         (gimple_omp_target_child_fn): Likewise.
23889         (gimple_omp_target_child_fn_ptr): Likewise.
23890         (gimple_omp_target_set_child_fn): Likewise.
23891         (gimple_omp_target_data_arg): Likewise.
23892         (gimple_omp_target_data_arg_ptr): Likewise.
23893         (gimple_omp_target_set_data_arg): Likewise.
23894         (gimple_omp_teams_clauses): Likewise.
23895         (gimple_omp_teams_clauses_ptr): Likewise.
23896         (gimple_omp_teams_set_clauses): Likewise.
23897         (gimple_omp_sections_clauses): Likewise.
23898         (gimple_omp_sections_clauses_ptr): Likewise.
23899         (gimple_omp_sections_set_clauses): Likewise.
23900         (gimple_omp_sections_control): Likewise.
23901         (gimple_omp_sections_control_ptr): Likewise.
23902         (gimple_omp_sections_set_control): Likewise.
23903         (gimple_omp_for_set_cond): Likewise.
23904         (gimple_omp_for_cond): Likewise.
23905         (gimple_omp_atomic_store_set_val): Likewise.
23906         (gimple_omp_atomic_store_val): Likewise.
23907         (gimple_omp_atomic_store_val_ptr): Likewise.
23908         (gimple_omp_atomic_load_set_lhs): Likewise.
23909         (gimple_omp_atomic_load_lhs): Likewise.
23910         (gimple_omp_atomic_load_lhs_ptr): Likewise.
23911         (gimple_omp_atomic_load_set_rhs): Likewise.
23912         (gimple_omp_atomic_load_rhs): Likewise.
23913         (gimple_omp_atomic_load_rhs_ptr): Likewise.
23914         (gimple_omp_continue_control_def): Likewise.
23915         (gimple_omp_continue_control_def_ptr): Likewise.
23916         (gimple_omp_continue_set_control_def): Likewise.
23917         (gimple_omp_continue_control_use): Likewise.
23918         (gimple_omp_continue_control_use_ptr): Likewise.
23919         (gimple_omp_continue_set_control_use): Likewise.
23920         (gimple_transaction_body_ptr): Likewise.
23921         (gimple_transaction_label): Likewise.
23922         (gimple_transaction_label_ptr): Likewise.
23923         (gimple_transaction_set_body): Likewise.
23924         (gimple_transaction_set_label): Likewise.
23925
23926         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23927         * ipa-inline-analysis.c (inline_write_summary): Likewise.
23928         * ipa-ref.c (ipa_record_reference): Likewise.
23929         * ipa-reference.c (analyze_function): Likewise.
23930         (ipa_reference_write_optimization_summary): Likewise.
23931         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23932         (address_taken_from_non_vtable_p): Likewise.
23933         (comdat_can_be_unshared_p_1): Likewise.
23934         * lto-cgraph.c (lto_output_ref): Likewise.
23935         (add_references): Likewise.
23936         (compute_ltrans_boundary): Likewise.
23937         (output_symtab): Likewise.
23938         (input_ref): Likewise.
23939         (input_cgraph_1): Likewise.
23940         (output_cgraph_opt_summary): Likewise.
23941         * lto-streamer-out.c (lto_output): Likewise.
23942         (output_symbol_p): Likewise.
23943         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23944         (lsei_start_function_in_partition): Likewise.
23945         (lsei_next_variable_in_partition): Likewise.
23946         (lsei_start_variable_in_partition): Likewise.
23947         * symtab.c (insert_to_assembler_name_hash): Likewise.
23948         (unlink_from_assembler_name_hash): Likewise.
23949         (symtab_unregister_node): Likewise.
23950         (symtab_remove_node): Likewise.
23951         (dump_symtab_node): Likewise.
23952         (verify_symtab_base): Likewise.
23953         (verify_symtab_node): Likewise.
23954         (symtab_make_decl_local): Likewise.
23955         (symtab_alias_ultimate_target): Likewise.
23956         (symtab_resolve_alias): Likewise.
23957         (symtab_get_symbol_partitioning_class): Likewise.
23958         * tree-phinodes.c (allocate_phi_node): Likewise.
23959         (reserve_phi_args_for_new_edge): Likewise.
23960         (remove_phi_args): Likewise.
23961         * varpool.c (varpool_node_for_asm): Likewise.
23962         (varpool_remove_unreferenced_decls): Likewise.
23963
23964 2014-04-23  Jeff Law  <law@redhat.com>
23965
23966         PR tree-optimization/60902
23967         * tree-ssa-threadedge.c
23968         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23969         invalidate outputs from statements that do not produce useful
23970         outputs for threading.
23971
23972 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
23973
23974         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23975         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23976         machine descriptions for Stack Smashing Protector.
23977
23978 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
23979
23980         * aarch64.md (<optab>_rol<mode>3): New pattern.
23981         (<optab>_rolsi3_uxtw): Likewise.
23982         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23983
23984 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
23985
23986         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23987         (arm_cortex_a12_tune): Likewise.
23988
23989 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23990
23991         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23992
23993 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23994
23995         * config/arm/arm.md (arm_rev16si2): New pattern.
23996         (arm_rev16si2_alt): Likewise.
23997         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23998
23999 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24000
24001         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
24002         (rev16<mode>2_alt): Likewise.
24003         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
24004         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
24005         (aarch_rev16_shleft_mask_imm_p): Likewise.
24006         (aarch_rev16_p_1): Likewise.
24007         (aarch_rev16_p): Likewise.
24008         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
24009         (aarch_rev16_shright_mask_imm_p): Likewise.
24010         (aarch_rev16_shleft_mask_imm_p): Likewise.
24011
24012 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24013
24014         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
24015         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
24016         rev cost.
24017         (cortex_a53_extra_costs): Likewise.
24018         (cortex_a57_extra_costs): Likewise.
24019         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
24020         (cortexa7_extra_costs): Likewise.
24021         (cortexa8_extra_costs): Likewise.
24022         (cortexa12_extra_costs): Likewise.
24023         (cortexa15_extra_costs): Likewise.
24024         (v7m_extra_costs): Likewise.
24025         (arm_new_rtx_costs): Handle BSWAP.
24026
24027 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24028
24029         * config/arm/arm.c (cortexa8_extra_costs): New table.
24030         (arm_cortex_a8_tune): New tuning struct.
24031         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
24032
24033 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24034
24035         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
24036
24037 2014-04-23  Richard Biener  <rguenther@suse.de>
24038
24039         * Makefile.in (OBJS): Remove loop-unswitch.o.
24040         * tree-pass.h (make_pass_rtl_unswitch): Remove.
24041         * passes.def (pass_rtl_unswitch): Likewise.
24042         * loop-init.c (gate_rtl_unswitch): Likewise.
24043         (rtl_unswitch): Likewise.
24044         (pass_data_rtl_unswitch): Likewise.
24045         (pass_rtl_unswitch): Likewise.
24046         (make_pass_rtl_unswitch): Likewise.
24047         * rtl.h (reversed_condition): Likewise.
24048         (compare_and_jump_seq): Likewise.
24049         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
24050         and make static.
24051         * loop-unroll.c (compare_and_jump_seq): Likewise.
24052
24053 2014-04-23  Richard Biener  <rguenther@suse.de>
24054
24055         PR tree-optimization/60903
24056         * tree-ssa-loop-im.c (analyze_memory_references): Remove
24057         commented code block.
24058         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
24059         loop flags to newly created BBs and edges.
24060
24061 2014-04-23  Nick Clifton  <nickc@redhat.com>
24062
24063         * config/msp430/msp430.c (msp430_handle_option): Move function
24064         to msp430-common.c
24065         (msp430_option_override): Simplify mcu and mcpu option handling.
24066         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
24067         support for -mhwmult command line option.
24068         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
24069         -mhwmult command line option.
24070         (msp430_hwmult_enabled): Delete.
24071         (msp43o_output_labelref): Add support for -mhwmult command line option.
24072         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
24073         (umulsidi3): Likewise.
24074         * config/msp430/msp430.opt (mmcu): Add Report attribute.
24075         (mcpu, mlarge, msmall): Likewise.
24076         (mhwmult): New option.
24077         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
24078         prototype.
24079         (msp430_is_f5_mcu): Remove prototype.
24080         (msp430_use_f5_series_hwmult): Add prototype.
24081         * config/msp430/msp430-opts.h: New file.
24082         * common/config/msp430: New directory.
24083         * common/config/msp430/msp430-common.c: New file.
24084         * config.gcc (msp430): Remove target_has_targetm_common.
24085         * doc/invoke.texi: Document -mhwmult command line option.
24086
24087 2014-04-23  Nick Clifton  <nickc@redhat.com>
24088
24089         * config/i386/cygwin.h (ENDFILE_SPEC): Include
24090         default-manifest.o if it can be found in the search path.
24091         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
24092
24093 2014-04-23  Terry Guo  <terry.guo@arm.com>
24094
24095         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
24096
24097 2014-04-23  Richard Biener  <rguenther@suse.de>
24098
24099         PR middle-end/60895
24100         * tree-inline.c (declare_return_variable): Use mark_addressable.
24101
24102 2014-04-23  Richard Biener  <rguenther@suse.de>
24103
24104         PR middle-end/60891
24105         * loop-init.c (loop_optimizer_init): Make sure to apply
24106         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
24107
24108 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24109
24110         PR sanitizer/60275
24111         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
24112         New options.
24113         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
24114         if flag_sanitize_undefined_trap_on_error.
24115         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
24116         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
24117         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
24118         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
24119         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
24120         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
24121         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
24122         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
24123         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
24124         * ubsan.c (ubsan_instrument_unreachable): Return
24125         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
24126         (ubsan_expand_null_ifn): Emit __builtin_trap ()
24127         if flag_sanitize_undefined_trap_on_error and
24128         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
24129         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
24130         instrument_bool_enum_load): Emit __builtin_trap () if
24131         flag_sanitize_undefined_trap_on_error and
24132         __builtin_handle_*_abort () if !flag_sanitize_recover.
24133         * doc/invoke.texi (-fsanitize-recover,
24134         -fsanitize-undefined-trap-on-error): Document.
24135
24136 2014-04-22  Christian Bruel  <christian.bruel@st.com>
24137
24138         * config/sh/sh.md (mov<mode>): Replace movQIHI.
24139          Force immediates to SImode.
24140
24141 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
24142
24143         * config/nios2/nios2.md (UNSPEC_ROUND): New.
24144         (lroundsfsi2): New.
24145         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
24146         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
24147         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
24148         (nios2_fpu_insn): Add entry for round.
24149         (N2FPU_NO_ERRNO_P): Define.
24150         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
24151         flag_errno_math.
24152         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
24153
24154 2014-04-22  Richard Henderson  <rth@redhat.com>
24155
24156         * config/aarch64/aarch64 (addti3, subti3): New expanders.
24157         (add<GPI>3_compare0): Remove leading * from name.
24158         (add<GPI>3_carryin): Likewise.
24159         (sub<GPI>3_compare0): Likewise.
24160         (sub<GPI>3_carryin): Likewise.
24161         (<su_optab>mulditi3): New expander.
24162         (multi3): New expander.
24163         (madd<GPI>): Remove leading * from name.
24164
24165 2014-04-22  Martin Jambor  <mjambor@suse.cz>
24166
24167         * cgraphclones.c (cgraph_function_versioning): Copy
24168         ipa_transforms_to_apply instead of asserting it is empty.
24169
24170 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
24171
24172         PR target/60868
24173         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
24174         on count_exp to get mode.
24175
24176 2014-04-22  Andrew Pinski  <apinski@cavium.com>
24177
24178         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24179         Handle TLS for ILP32.
24180         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
24181         (tlsie_small_<mode>): this and handle PTR.
24182         (tlsie_small_sidi): New pattern.
24183         (tlsle_small): Change to an expand to handle ILP32.
24184         (tlsle_small_<mode>): New pattern.
24185         (tlsdesc_small): Rename to ...
24186         (tlsdesc_small_<mode>): this and handle PTR.
24187
24188 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24189
24190         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
24191
24192 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24193
24194         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24195         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
24196         (aarch64_types_signed_poly_qualifiers): Likewise.
24197         (aarch64_types_unsigned_signed_qualifiers): Likewise.
24198         (aarch64_types_poly_signed_qualifiers): Likewise.
24199         (TYPES_REINTERP_SS): Type macro added.
24200         (TYPES_REINTERP_SU): Likewise.
24201         (TYPES_REINTERP_SP): Likewise.
24202         (TYPES_REINTERP_US): Likewise.
24203         (TYPES_REINTERP_PS): Likewise.
24204         (aarch64_fold_builtin): New expression folding added.
24205         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
24206         Declarations removed.
24207         (REINTERP_SS): Declarations added.
24208         (REINTERP_US): Likewise.
24209         (REINTERP_PS): Likewise.
24210         (REINTERP_SU): Likewise.
24211         (REINTERP_SP): Likewise.
24212         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
24213         (vreinterpretq_p8_f64): Likewise.
24214         (vreinterpret_p16_f64): Likewise.
24215         (vreinterpretq_p16_f64): Likewise.
24216         (vreinterpret_f32_f64): Likewise.
24217         (vreinterpretq_f32_f64): Likewise.
24218         (vreinterpret_f64_f32): Likewise.
24219         (vreinterpret_f64_p8): Likewise.
24220         (vreinterpret_f64_p16): Likewise.
24221         (vreinterpret_f64_s8): Likewise.
24222         (vreinterpret_f64_s16): Likewise.
24223         (vreinterpret_f64_s32): Likewise.
24224         (vreinterpret_f64_s64): Likewise.
24225         (vreinterpret_f64_u8): Likewise.
24226         (vreinterpret_f64_u16): Likewise.
24227         (vreinterpret_f64_u32): Likewise.
24228         (vreinterpret_f64_u64): Likewise.
24229         (vreinterpretq_f64_f32): Likewise.
24230         (vreinterpretq_f64_p8): Likewise.
24231         (vreinterpretq_f64_p16): Likewise.
24232         (vreinterpretq_f64_s8): Likewise.
24233         (vreinterpretq_f64_s16): Likewise.
24234         (vreinterpretq_f64_s32): Likewise.
24235         (vreinterpretq_f64_s64): Likewise.
24236         (vreinterpretq_f64_u8): Likewise.
24237         (vreinterpretq_f64_u16): Likewise.
24238         (vreinterpretq_f64_u32): Likewise.
24239         (vreinterpretq_f64_u64): Likewise.
24240         (vreinterpret_s64_f64): Likewise.
24241         (vreinterpretq_s64_f64): Likewise.
24242         (vreinterpret_u64_f64): Likewise.
24243         (vreinterpretq_u64_f64): Likewise.
24244         (vreinterpret_s8_f64): Likewise.
24245         (vreinterpretq_s8_f64): Likewise.
24246         (vreinterpret_s16_f64): Likewise.
24247         (vreinterpretq_s16_f64): Likewise.
24248         (vreinterpret_s32_f64): Likewise.
24249         (vreinterpretq_s32_f64): Likewise.
24250         (vreinterpret_u8_f64): Likewise.
24251         (vreinterpretq_u8_f64): Likewise.
24252         (vreinterpret_u16_f64): Likewise.
24253         (vreinterpretq_u16_f64): Likewise.
24254         (vreinterpret_u32_f64): Likewise.
24255         (vreinterpretq_u32_f64): Likewise.
24256
24257 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24258
24259         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24260         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
24261         (vreinterpret_p8_s8): Likewise.
24262         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
24263         (vreinterpret_p8_s16): Likewise.
24264         (vreinterpret_p8_s32): Likewise.
24265         (vreinterpret_p8_s64): Likewise.
24266         (vreinterpret_p8_f32): Likewise.
24267         (vreinterpret_p8_u8): Likewise.
24268         (vreinterpret_p8_u16): Likewise.
24269         (vreinterpret_p8_u32): Likewise.
24270         (vreinterpret_p8_u64): Likewise.
24271         (vreinterpret_p8_p16): Likewise.
24272         (vreinterpretq_p8_s8): Likewise.
24273         (vreinterpretq_p8_s16): Likewise.
24274         (vreinterpretq_p8_s32): Likewise.
24275         (vreinterpretq_p8_s64): Likewise.
24276         (vreinterpretq_p8_f32): Likewise.
24277         (vreinterpretq_p8_u8): Likewise.
24278         (vreinterpretq_p8_u16): Likewise.
24279         (vreinterpretq_p8_u32): Likewise.
24280         (vreinterpretq_p8_u64): Likewise.
24281         (vreinterpretq_p8_p16): Likewise.
24282         (vreinterpret_p16_s8): Likewise.
24283         (vreinterpret_p16_s16): Likewise.
24284         (vreinterpret_p16_s32): Likewise.
24285         (vreinterpret_p16_s64): Likewise.
24286         (vreinterpret_p16_f32): Likewise.
24287         (vreinterpret_p16_u8): Likewise.
24288         (vreinterpret_p16_u16): Likewise.
24289         (vreinterpret_p16_u32): Likewise.
24290         (vreinterpret_p16_u64): Likewise.
24291         (vreinterpret_p16_p8): Likewise.
24292         (vreinterpretq_p16_s8): Likewise.
24293         (vreinterpretq_p16_s16): Likewise.
24294         (vreinterpretq_p16_s32): Likewise.
24295         (vreinterpretq_p16_s64): Likewise.
24296         (vreinterpretq_p16_f32): Likewise.
24297         (vreinterpretq_p16_u8): Likewise.
24298         (vreinterpretq_p16_u16): Likewise.
24299         (vreinterpretq_p16_u32): Likewise.
24300         (vreinterpretq_p16_u64): Likewise.
24301         (vreinterpretq_p16_p8): Likewise.
24302         (vreinterpret_f32_s8): Likewise.
24303         (vreinterpret_f32_s16): Likewise.
24304         (vreinterpret_f32_s32): Likewise.
24305         (vreinterpret_f32_s64): Likewise.
24306         (vreinterpret_f32_u8): Likewise.
24307         (vreinterpret_f32_u16): Likewise.
24308         (vreinterpret_f32_u32): Likewise.
24309         (vreinterpret_f32_u64): Likewise.
24310         (vreinterpret_f32_p8): Likewise.
24311         (vreinterpret_f32_p16): Likewise.
24312         (vreinterpretq_f32_s8): Likewise.
24313         (vreinterpretq_f32_s16): Likewise.
24314         (vreinterpretq_f32_s32): Likewise.
24315         (vreinterpretq_f32_s64): Likewise.
24316         (vreinterpretq_f32_u8): Likewise.
24317         (vreinterpretq_f32_u16): Likewise.
24318         (vreinterpretq_f32_u32): Likewise.
24319         (vreinterpretq_f32_u64): Likewise.
24320         (vreinterpretq_f32_p8): Likewise.
24321         (vreinterpretq_f32_p16): Likewise.
24322         (vreinterpret_s64_s8): Likewise.
24323         (vreinterpret_s64_s16): Likewise.
24324         (vreinterpret_s64_s32): Likewise.
24325         (vreinterpret_s64_f32): Likewise.
24326         (vreinterpret_s64_u8): Likewise.
24327         (vreinterpret_s64_u16): Likewise.
24328         (vreinterpret_s64_u32): Likewise.
24329         (vreinterpret_s64_u64): Likewise.
24330         (vreinterpret_s64_p8): Likewise.
24331         (vreinterpret_s64_p16): Likewise.
24332         (vreinterpretq_s64_s8): Likewise.
24333         (vreinterpretq_s64_s16): Likewise.
24334         (vreinterpretq_s64_s32): Likewise.
24335         (vreinterpretq_s64_f32): Likewise.
24336         (vreinterpretq_s64_u8): Likewise.
24337         (vreinterpretq_s64_u16): Likewise.
24338         (vreinterpretq_s64_u32): Likewise.
24339         (vreinterpretq_s64_u64): Likewise.
24340         (vreinterpretq_s64_p8): Likewise.
24341         (vreinterpretq_s64_p16): Likewise.
24342         (vreinterpret_u64_s8): Likewise.
24343         (vreinterpret_u64_s16): Likewise.
24344         (vreinterpret_u64_s32): Likewise.
24345         (vreinterpret_u64_s64): Likewise.
24346         (vreinterpret_u64_f32): Likewise.
24347         (vreinterpret_u64_u8): Likewise.
24348         (vreinterpret_u64_u16): Likewise.
24349         (vreinterpret_u64_u32): Likewise.
24350         (vreinterpret_u64_p8): Likewise.
24351         (vreinterpret_u64_p16): Likewise.
24352         (vreinterpretq_u64_s8): Likewise.
24353         (vreinterpretq_u64_s16): Likewise.
24354         (vreinterpretq_u64_s32): Likewise.
24355         (vreinterpretq_u64_s64): Likewise.
24356         (vreinterpretq_u64_f32): Likewise.
24357         (vreinterpretq_u64_u8): Likewise.
24358         (vreinterpretq_u64_u16): Likewise.
24359         (vreinterpretq_u64_u32): Likewise.
24360         (vreinterpretq_u64_p8): Likewise.
24361         (vreinterpretq_u64_p16): Likewise.
24362         (vreinterpret_s8_s16): Likewise.
24363         (vreinterpret_s8_s32): Likewise.
24364         (vreinterpret_s8_s64): Likewise.
24365         (vreinterpret_s8_f32): Likewise.
24366         (vreinterpret_s8_u8): Likewise.
24367         (vreinterpret_s8_u16): Likewise.
24368         (vreinterpret_s8_u32): Likewise.
24369         (vreinterpret_s8_u64): Likewise.
24370         (vreinterpret_s8_p8): Likewise.
24371         (vreinterpret_s8_p16): Likewise.
24372         (vreinterpretq_s8_s16): Likewise.
24373         (vreinterpretq_s8_s32): Likewise.
24374         (vreinterpretq_s8_s64): Likewise.
24375         (vreinterpretq_s8_f32): Likewise.
24376         (vreinterpretq_s8_u8): Likewise.
24377         (vreinterpretq_s8_u16): Likewise.
24378         (vreinterpretq_s8_u32): Likewise.
24379         (vreinterpretq_s8_u64): Likewise.
24380         (vreinterpretq_s8_p8): Likewise.
24381         (vreinterpretq_s8_p16): Likewise.
24382         (vreinterpret_s16_s8): Likewise.
24383         (vreinterpret_s16_s32): Likewise.
24384         (vreinterpret_s16_s64): Likewise.
24385         (vreinterpret_s16_f32): Likewise.
24386         (vreinterpret_s16_u8): Likewise.
24387         (vreinterpret_s16_u16): Likewise.
24388         (vreinterpret_s16_u32): Likewise.
24389         (vreinterpret_s16_u64): Likewise.
24390         (vreinterpret_s16_p8): Likewise.
24391         (vreinterpret_s16_p16): Likewise.
24392         (vreinterpretq_s16_s8): Likewise.
24393         (vreinterpretq_s16_s32): Likewise.
24394         (vreinterpretq_s16_s64): Likewise.
24395         (vreinterpretq_s16_f32): Likewise.
24396         (vreinterpretq_s16_u8): Likewise.
24397         (vreinterpretq_s16_u16): Likewise.
24398         (vreinterpretq_s16_u32): Likewise.
24399         (vreinterpretq_s16_u64): Likewise.
24400         (vreinterpretq_s16_p8): Likewise.
24401         (vreinterpretq_s16_p16): Likewise.
24402         (vreinterpret_s32_s8): Likewise.
24403         (vreinterpret_s32_s16): Likewise.
24404         (vreinterpret_s32_s64): Likewise.
24405         (vreinterpret_s32_f32): Likewise.
24406         (vreinterpret_s32_u8): Likewise.
24407         (vreinterpret_s32_u16): Likewise.
24408         (vreinterpret_s32_u32): Likewise.
24409         (vreinterpret_s32_u64): Likewise.
24410         (vreinterpret_s32_p8): Likewise.
24411         (vreinterpret_s32_p16): Likewise.
24412         (vreinterpretq_s32_s8): Likewise.
24413         (vreinterpretq_s32_s16): Likewise.
24414         (vreinterpretq_s32_s64): Likewise.
24415         (vreinterpretq_s32_f32): Likewise.
24416         (vreinterpretq_s32_u8): Likewise.
24417         (vreinterpretq_s32_u16): Likewise.
24418         (vreinterpretq_s32_u32): Likewise.
24419         (vreinterpretq_s32_u64): Likewise.
24420         (vreinterpretq_s32_p8): Likewise.
24421         (vreinterpretq_s32_p16): Likewise.
24422         (vreinterpret_u8_s8): Likewise.
24423         (vreinterpret_u8_s16): Likewise.
24424         (vreinterpret_u8_s32): Likewise.
24425         (vreinterpret_u8_s64): Likewise.
24426         (vreinterpret_u8_f32): Likewise.
24427         (vreinterpret_u8_u16): Likewise.
24428         (vreinterpret_u8_u32): Likewise.
24429         (vreinterpret_u8_u64): Likewise.
24430         (vreinterpret_u8_p8): Likewise.
24431         (vreinterpret_u8_p16): Likewise.
24432         (vreinterpretq_u8_s8): Likewise.
24433         (vreinterpretq_u8_s16): Likewise.
24434         (vreinterpretq_u8_s32): Likewise.
24435         (vreinterpretq_u8_s64): Likewise.
24436         (vreinterpretq_u8_f32): Likewise.
24437         (vreinterpretq_u8_u16): Likewise.
24438         (vreinterpretq_u8_u32): Likewise.
24439         (vreinterpretq_u8_u64): Likewise.
24440         (vreinterpretq_u8_p8): Likewise.
24441         (vreinterpretq_u8_p16): Likewise.
24442         (vreinterpret_u16_s8): Likewise.
24443         (vreinterpret_u16_s16): Likewise.
24444         (vreinterpret_u16_s32): Likewise.
24445         (vreinterpret_u16_s64): Likewise.
24446         (vreinterpret_u16_f32): Likewise.
24447         (vreinterpret_u16_u8): Likewise.
24448         (vreinterpret_u16_u32): Likewise.
24449         (vreinterpret_u16_u64): Likewise.
24450         (vreinterpret_u16_p8): Likewise.
24451         (vreinterpret_u16_p16): Likewise.
24452         (vreinterpretq_u16_s8): Likewise.
24453         (vreinterpretq_u16_s16): Likewise.
24454         (vreinterpretq_u16_s32): Likewise.
24455         (vreinterpretq_u16_s64): Likewise.
24456         (vreinterpretq_u16_f32): Likewise.
24457         (vreinterpretq_u16_u8): Likewise.
24458         (vreinterpretq_u16_u32): Likewise.
24459         (vreinterpretq_u16_u64): Likewise.
24460         (vreinterpretq_u16_p8): Likewise.
24461         (vreinterpretq_u16_p16): Likewise.
24462         (vreinterpret_u32_s8): Likewise.
24463         (vreinterpret_u32_s16): Likewise.
24464         (vreinterpret_u32_s32): Likewise.
24465         (vreinterpret_u32_s64): Likewise.
24466         (vreinterpret_u32_f32): Likewise.
24467         (vreinterpret_u32_u8): Likewise.
24468         (vreinterpret_u32_u16): Likewise.
24469         (vreinterpret_u32_u64): Likewise.
24470         (vreinterpret_u32_p8): Likewise.
24471         (vreinterpret_u32_p16): Likewise.
24472         (vreinterpretq_u32_s8): Likewise.
24473         (vreinterpretq_u32_s16): Likewise.
24474         (vreinterpretq_u32_s32): Likewise.
24475         (vreinterpretq_u32_s64): Likewise.
24476         (vreinterpretq_u32_f32): Likewise.
24477         (vreinterpretq_u32_u8): Likewise.
24478         (vreinterpretq_u32_u16): Likewise.
24479         (vreinterpretq_u32_u64): Likewise.
24480         (vreinterpretq_u32_p8): Likewise.
24481         (vreinterpretq_u32_p16): Likewise.
24482
24483 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24484
24485         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
24486         Pattern extended.
24487         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
24488         (sqabs): Likewise.
24489         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
24490         (vqnegd_s64): Likewise.
24491         (vqabs_s64): Likewise.
24492         (vqabsd_s64): Likewise.
24493
24494 2014-04-22  Richard Henderson  <rth@redhat.com>
24495
24496         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
24497         computation to the top of the loop.
24498
24499 2014-04-22  Renlin  <renlin.li@arm.com>
24500             Jiong Wang  <jiong.wang@arm.com>
24501
24502         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
24503         * config/aarch64/aarch64.c (aarch64_layout_frame)
24504         (aarch64_initial_elimination_offset): Likewise.
24505
24506 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24507
24508         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
24509         Fix indentation.
24510
24511 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
24512
24513         * machmode.h (bitwise_mode_for_mode): Declare.
24514         * stor-layout.h (bitwise_type_for_mode): Likewise.
24515         * stor-layout.c (bitwise_mode_for_mode): New function.
24516         (bitwise_type_for_mode): Likewise.
24517         * builtins.c (fold_builtin_memory_op): Use it instead of
24518         int_mode_for_mode and build_nonstandard_integer_type.
24519
24520 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24521
24522         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
24523         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
24524         (*-*-solaris2*): Simplify.
24525         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
24526         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
24527         *-*-solaris2.9* handling.
24528
24529         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
24530         as bug.
24531         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
24532         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
24533         handling, simplify.
24534         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
24535         * configure: Regenerate.
24536
24537         * config/i386/sol2-9.h: Remove.
24538
24539         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
24540         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
24541         Remove Solaris 9 references.
24542
24543 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
24544
24545         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
24546         (floatuns<GPI:mode><GPF:mode>2): Remove.
24547         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
24548         and floatuns conversions.
24549         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
24550         and floatuns conversions.
24551         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
24552         (w1,w2): New mode attributes for inequal width conversions.
24553
24554 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
24555
24556         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
24557         the output asm format.
24558
24559 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
24560
24561         * config/aarch64/aarch64-simd.md
24562         (aarch64_cm<optab>di): Always split.
24563         (*aarch64_cm<optab>di): New.
24564         (aarch64_cmtstdi): Always split.
24565         (*aarch64_cmtstdi): New.
24566
24567 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24568
24569         PR tree-optimization/60823
24570         * omp-low.c (ipa_simd_modify_function_body): Go through
24571         all SSA_NAMEs and for those refering to vector arguments
24572         which are going to be replaced adjust SSA_NAME_VAR and,
24573         if it is a default definition, change it into a non-default
24574         definition assigned at the beginning of function from new_decl.
24575         (ipa_simd_modify_stmt_ops): Rewritten.
24576         * tree-dfa.c (set_ssa_default_def): When removing default def,
24577         check for NULL loc instead of NULL *loc.
24578
24579 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24580
24581         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
24582         restrictions on core registers for DImode values in Thumb2.
24583
24584 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24585
24586         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
24587         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
24588
24589 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24590
24591         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
24592         (*iordi_notzesidi_di): Likewise.
24593         (*iordi_notsesidi_di): Likewise.
24594
24595 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24596
24597         * config/arm/arm-protos.h (tune_params): New struct members.
24598         * config/arm/arm.c: Initialise tune_params per processor.
24599         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24600         for speed, based on new tune_params.
24601
24602 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24603
24604         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24605         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24606         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24607         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24608         * config/aarch64/arm_neon.h (vrnd_f64): Added.
24609         (vrnda_f64): Likewise.
24610         (vrndi_f64): Likewise.
24611         (vrndm_f64): Likewise.
24612         (vrndn_f64): Likewise.
24613         (vrndp_f64): Likewise.
24614         (vrndx_f64): Likewise.
24615
24616 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24617
24618         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24619         GET_MODE_SIZE argument is enum machine_mode.
24620
24621 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24622
24623         PR target/60910
24624         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24625         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24626
24627 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
24628
24629         PR middle-end/60281
24630         * asan.c (asan_emit_stack_protection): Force the base to align to
24631         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
24632         appropriate bits if STRICT_ALIGNMENT.
24633         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24634         when asan is on.
24635         (expand_used_vars): Leave a space in the stack frame for alignment
24636         if STRICT_ALIGNMENT.
24637
24638 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
24639
24640         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24641         than a gimple.
24642         (gimple_store_p): Likewise.
24643         (gimple_assign_load_p): Likewise.
24644         (gimple_assign_cast_p): Likewise.
24645         (gimple_clobber_p): Likewise.
24646
24647         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24648         rather than a gimple.
24649         (gimple_assign_cast_p): Likewise.
24650
24651 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24652
24653         PR target/60735
24654         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24655         If mode is DDmode and TARGET_E500_DOUBLE allow move.
24656
24657         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24658         more debug information for E500 if -mdebug=reg.
24659
24660 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
24661
24662         PR target/60909
24663         * config/i386/i386.c (ix86_expand_builtin)
24664         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24665         register for target RTX.
24666         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24667
24668 2014-04-18  Cong Hou  <congh@google.com>
24669
24670         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24671         the widen-mult pattern by handling two operands with different sizes,
24672         and operands whose size is smaller than half of the result type.
24673
24674 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
24675
24676         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24677         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24678         (do_estimate_edge_time): Compute it.
24679         * ipa-inline.c (want_inline_small_function_p): Bypass
24680         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24681
24682 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
24683
24684         * ipa-inline.c (spec_rem): New static variable.
24685         (dump_overall_stats): New function.
24686         (dump_inline_stats): New function.
24687
24688 2014-04-18  Richard Henderson  <rth@redhat.com>
24689
24690         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24691         to GET_MODE_SIZE, not a reg_class_t.
24692
24693 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24694
24695         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24696         (vsx_xxmrglw_<mode>): Likewise.
24697
24698 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
24699
24700         PR target/60876
24701         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24702         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24703         (rs6000_init_hard_regno_mode_ok): Likewise.
24704
24705 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
24706
24707         * ipa-inline.c (inline_small_functions): Account only non-cold
24708         functions.
24709         * doc/invoke.texi (inline-unit-growth): Update documentation.
24710
24711 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
24712
24713         * config/rs6000/rs6000.md (addti3, subti3): New.
24714
24715 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24716
24717         PR target/60863
24718         * config/i386/i386.c (ix86_expand_clear): Remove outdated
24719         comment.  Check optimize_insn_for_size_p instead of
24720         optimize_insn_for_speed_p.
24721
24722 2014-04-17  Martin Jambor  <mjambor@suse.cz>
24723
24724         * gimple-iterator.c (gsi_start_edge): New function.
24725         * gimple-iterator.h (gsi_start_edge): Declare.
24726         * tree-sra.c (single_non_eh_succ): New function.
24727         (disqualify_ops_if_throwing_stmt): Renamed to
24728         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
24729         having one non-EH successor BB.
24730         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24731         generate loads into replacements.
24732         (sra_modify_assign): Likewise and and also use the simple path for
24733         such statements.
24734         (sra_modify_function_body): Commit statements on edges.
24735
24736 2014-04-17  Richard Biener  <rguenther@suse.de>
24737
24738         PR middle-end/60849
24739         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24740         comparison results and add clarifying comment.
24741
24742 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
24743
24744         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24745         (blank_mode): Initialize it.
24746         (emit_mode_size_inline, emit_mode_nunits_inline,
24747         emit_mode_inner_inline): New functions.
24748         (emit_insn_modes_h): Call them and surround their output with
24749         #if GCC_VERSION >= 4001 ... #endif.
24750         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24751         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24752         mode_* arrays if the argument is __builtin_constant_p.
24753         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24754         is enum machine_mode.
24755
24756 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24757
24758         * passes.c (opt_pass::execute): Adjust.
24759         (pass_manager::execute_pass_mode_switching): Likewise.
24760         (early_local_passes::execute): Likewise.
24761         (execute_one_pass): Pass cfun to the pass's execute method.
24762         * tree-pass.h (opt_pass::execute): Add function * argument.
24763         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24764         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24765         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24766         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24767         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24768         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24769         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24770         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24771         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24772         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24773         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24774         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24775         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24776         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24777         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24778         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24779         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24780         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24781         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24782         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24783         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24784         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24785         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24786         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24787         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24788         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24789         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24790         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24791         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24792         Adjust.
24793
24794 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24795
24796         * passes.c (opt_pass::gate): Take function * argument.
24797         (gate_all_early_local_passes): Merge into
24798         (early_local_passes::gate): this.
24799         (gate_all_early_optimizations): Merge into
24800         (all_early_optimizations::gate): this.
24801         (gate_all_optimizations): Mege into
24802         (all_optimizations::gate): this.
24803         (gate_all_optimizations_g): Merge into
24804         (all_optimizations_g::gate): this.
24805         (gate_rest_of_compilation): Mege into
24806         (rest_of_compilation::gate): this.
24807         (gate_postreload): Merge into
24808         (postreload::gate): this.
24809         (dump_one_pass): Pass cfun to the pass's gate method.
24810         (execute_ipa_summary_passes): Likewise.
24811         (execute_one_pass): Likewise.
24812         (ipa_write_summaries_2): Likewise.
24813         (ipa_write_optimization_summaries_1): Likewise.
24814         (ipa_read_summaries_1): Likewise.
24815         (ipa_read_optimization_summaries_1): Likewise.
24816         (execute_ipa_stmt_fixups): Likewise.
24817         * tree-pass.h (opt_pass::gate): Add function * argument.
24818         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24819         combine-stack-adj.c, combine.c, compare-elim.c,
24820         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24821         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24822         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24823         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
24824         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24825         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24826         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24827         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24828         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24829         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24830         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24831         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24832         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24833         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24834         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24835         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24836         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24837         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24838         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24839         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24840         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24841         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24842         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24843         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24844         var-tracking.c, vtable-verify.c, web.c: Adjust.
24845
24846 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24847
24848         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24849         * configure: Regenerate.
24850
24851 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24852
24853         * passes.c (dump_one_pass): don't check pass->has_gate.
24854         (execute_ipa_summary_passes): Likewise.
24855         (execute_one_pass): Likewise.
24856         (ipa_write_summaries_2): Likewise.
24857         (ipa_write_optimization_summaries_1): Likewise.
24858         (ipa_read_optimization_summaries_1): Likewise.
24859         (execute_ipa_stmt_fixups): Likewise.
24860         * tree-pass.h (pass_data::has_gate): Remove.
24861         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24862         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24863         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24864         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24865         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24866         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24867         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24868         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24869         gimple-low.c, gimple-ssa-isolate-paths.c,
24870         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24871         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24872         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24873         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24874         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24875         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24876         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24877         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24878         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24879         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24880         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24881         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24882         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24883         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24884         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24885         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24886         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24887         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24888         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24889         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24890         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24891         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24892         Adjust.
24893
24894 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24895
24896         * pass_manager.h (pass_manager::register_dump_files_1): Remove
24897         declaration.
24898         * passes.c (pass_manager::register_dump_files_1): Merge into
24899         (pass_manager::register_dump_files): this, and remove its handling of
24900         properties since the pass always has the properties anyway.
24901         (pass_manager::pass_manager): Adjust.
24902
24903 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24904
24905         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24906         * passes.c (pass_manager::register_dump_files_1): Remove dead code
24907         dealing with properties.
24908         (pass_manager::register_dump_files): Adjust.
24909
24910 2014-03-20  Mark Wielaard  <mjw@redhat.com>
24911
24912         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24913         then represent the bound as normal constant value.
24914
24915 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
24916
24917         PR target/60847
24918         Forward port from 4.8 branch
24919         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
24920
24921         * config/i386/bmiintrin.h (_blsi_u32): New.
24922         (_blsi_u64): Ditto.
24923         (_blsr_u32): Ditto.
24924         (_blsr_u64): Ditto.
24925         (_blsmsk_u32): Ditto.
24926         (_blsmsk_u64): Ditto.
24927         (_tzcnt_u32): Ditto.
24928         (_tzcnt_u64): Ditto.
24929
24930 2014-04-17  Kito Cheng  <kito@0xlab.org>
24931
24932         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24933
24934 2014-04-17  Richard Biener  <rguenther@suse.de>
24935
24936         PR middle-end/60849
24937         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24938         boolean results for comparisons.
24939
24940 2014-04-17  Richard Biener  <rguenther@suse.de>
24941
24942         PR tree-optimization/60836
24943         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24944         initial PHI args to be gimple values.
24945
24946 2014-04-17  Richard Biener  <rguenther@suse.de>
24947
24948         PR tree-optimization/60841
24949         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24950         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24951         of stmts to SLP build.
24952         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24953         (vect_analyze_slp): Likewise.
24954         (vect_analyze_slp_instance): Likewise.
24955         (vect_build_slp_tree): Limit overall SLP tree growth.
24956         * tree-vectorizer.h (vect_analyze_data_refs,
24957         vect_analyze_slp): Adjust prototypes.
24958
24959 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24960
24961         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24962         Silvermont.
24963
24964 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24965
24966         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24967         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24968         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24969         for TARGET_SLOW_PSHUFB
24970
24971 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24972
24973         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24974         * config/i386/i386.c (intel_cost): Ditto.
24975
24976 2014-04-17  Joey Ye  <joey.ye@arm.com>
24977
24978         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24979
24980 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24981
24982         * opts.c (common_handle_option): Disable -fipa-reference coorectly
24983         with -fuse-profile.
24984
24985 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24986
24987         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24988         (type_all_derivations_known_p): New predicate.
24989         (type_all_ctors_visible_p): New predicate.
24990         (type_possibly_instantiated_p): New predicate.
24991         (get_odr_type): Compute all_derivations_known.
24992         (dump_odr_type): Dump the flag.
24993         (maybe_record_type): Cleanup.
24994         (record_target_from_binfo): Add bases_to_consider array;
24995         record bases for types w/o instances and skip CXX destructor.
24996         (possible_polymorphic_call_targets_1): Add bases_to_consider
24997         and consider_construction parameters; check if type may have instance.
24998         (get_polymorphic_call_info): Set maybe_in_construction to true
24999         when we know nothing.
25000         (record_targets_from_bases): Skip CXX destructors; they are
25001         never called for types in construction.
25002         (possible_polymorphic_call_targets): Do not record target when
25003         type may not have instance.
25004
25005 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
25006
25007         PR ipa/60854
25008         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
25009         external aliases alive, too.
25010
25011 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
25012
25013         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
25014         definition.
25015
25016 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
25017
25018         * final.c (compute_alignments): Do not apply loop alignment to a block
25019         falling through to the exit.
25020
25021 2014-04-16  Catherine Moore  <clm@codesourcery.com>
25022
25023         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
25024         Adjust constraints for microMIPS store patterns.
25025
25026 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
25027
25028         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
25029
25030 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
25031
25032         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
25033         (append_use): Run at -O0.
25034         (append_vdef): Likewise.
25035         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
25036         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
25037
25038 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
25039
25040         PR tree-optimization/60844
25041         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
25042         (propagate_op_to_single_use, remove_visited_stmt_chain,
25043         linearize_expr, repropagate_negates, reassociate_bb): Use it
25044         instead of gsi_remove.
25045
25046 2014-04-16  Martin Jambor  <mjambor@suse.cz>
25047
25048         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
25049         ipa_transforms_to_apply.
25050         (cgraph_function_versioning): Assert that old_node has empty
25051         ipa_transforms_to_apply.
25052         * trans-mem.c (ipa_tm_create_version): Likewise.
25053         * tree-inline.c (tree_function_versioning): Do not duplicate
25054         ipa_transforms_to_apply.
25055
25056 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25057
25058         PR target/60817
25059         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
25060         x86_64-*-* cases.
25061         Pass necessary as flags on 64-bit Solaris/x86.
25062         Use lowercase relocs for x86_64-*-*.
25063         * configure: Regenerate.
25064
25065 2014-04-15  Jan Hubicka  <jh@suse.cz>
25066
25067         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
25068         (maybe_record_node, likely_target_p): Use it.
25069
25070 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25071
25072         PR target/60839
25073         Revert following patch
25074
25075         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25076
25077         PR target/60735
25078         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25079         software floating point or no floating point registers, do not
25080         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
25081         in GPRs that occurs after we tested for GPRs that would never be
25082         true.
25083
25084         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25085         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25086         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
25087         specifically allow DDmode, since that does not use the SPE SIMD
25088         instructions.
25089
25090 2014-03-21  Mark Wielaard  <mjw@redhat.com>
25091
25092         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
25093         as unsigned or int depending on type and value used.
25094
25095 2014-04-15  Richard Biener  <rguenther@suse.de>
25096
25097         PR rtl-optimization/56965
25098         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
25099         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
25100         ... here.
25101         * alias.c (true_dependence_1): Do not call
25102         nonoverlapping_component_refs_p.
25103         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
25104         nonoverlapping_component_refs_p.
25105         (indirect_refs_may_alias_p): Likewise.
25106
25107 2014-04-15  Teresa Johnson  <tejohnson@google.com>
25108
25109         * cfg.c (dump_bb_info): Fix flags check.
25110         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
25111
25112 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25113
25114         PR rtl-optimization/60663
25115         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
25116         avoid 0 cost.
25117
25118 2014-04-15  Richard Biener  <rguenther@suse.de>
25119
25120         * lto-streamer.h (LTO_major_version): Bump to 4.
25121
25122 2014-04-15  Richard Biener  <rguenther@suse.de>
25123
25124         * common.opt (lto_partition_model): New enum.
25125         (flto-partition=): Merge separate options with a single with argument,
25126         add -flto-partition=one support.
25127         * flag-types.h (enum lto_partition_model): Declare.
25128         * opts.c (finish_options): Remove duplicate -flto-partition=
25129         option check.
25130         * lto-wrapper.c (run_gcc): Adjust.
25131
25132 2014-04-15  Richard Biener  <rguenther@suse.de>
25133
25134         * alias.c (ncr_compar): New function.
25135         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
25136
25137 2014-04-15  Richard Biener  <rguenther@suse.de>
25138
25139         * alias.c (record_component_aliases): Do not walk BINFOs.
25140
25141 2014-04-15  Richard Biener  <rguenther@suse.de>
25142
25143         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25144         Add struct function argument and adjust.
25145         (find_func_aliases_for_call): Likewise.
25146         (find_func_aliases): Likewise.
25147         (find_func_clobbers): Likewise.
25148         (intra_create_variable_infos): Likewise.
25149         (compute_points_to_sets): Likewise.
25150         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
25151
25152 2014-04-15  Richard Biener  <rguenther@suse.de>
25153
25154         * tree.c (iterative_hash_expr): Use enum tree_code_class
25155         to store TREE_CODE_CLASS.
25156         (tree_block): Likewise.
25157         (tree_set_block): Likewise.
25158         * tree.h (fold_build_pointer_plus_loc): Use
25159         convert_to_ptrofftype_loc.
25160
25161 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
25162
25163         PR plugins/59335
25164         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
25165         added in 4.9.
25166
25167 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
25168
25169         * cfgloop.h (struct loop): Move force_vectorize down.
25170         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
25171         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
25172         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
25173         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
25174         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
25175         * tree-core.h (enum annot_expr_kind): Add new kind values.
25176         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
25177         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
25178         kinds.
25179         * tree.def (ANNOTATE_EXPR): Tweak comment.
25180
25181 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25182
25183         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
25184         cxa_pure_virtual).
25185
25186 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
25187
25188         * tree.h (TYPE_IDENTIFIER): Declare.
25189         * tree.c (subrange_type_for_debug_p): Use it.
25190         * godump.c (go_format_type): Likewise.
25191         * dwarf2out.c (is_cxx_auto, modified_type_die,
25192         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
25193         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
25194
25195 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25196
25197         PR lto/60820
25198         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
25199
25200 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
25201
25202         * config/i386/i386.c (examine_argument): Return bool.  Return true if
25203         parameter should be passed in memory.
25204         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
25205         (construct_container): Update calls to examine_argument.
25206         (function_arg_advance_64): Ditto.
25207         (return_in_memory_32): Merge with ix86_return_in_memory.
25208         (return_in_memory_64): Ditto.
25209         (return_in_memory_ms_64): Ditto.
25210
25211 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25212
25213         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
25214         * coverage.c (coverage_compute_profile_id): Handle externally visible
25215         symbols.
25216
25217 2014-04-14  Martin Jambor  <mjambor@suse.cz>
25218
25219         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
25220         DECL_DISREGARD_INLINE_LIMITS functions.
25221
25222 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
25223
25224         PR target/60827
25225         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
25226
25227 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
25228
25229         PR target/60827
25230         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
25231         optimize_insn_for_speed_p instead of
25232         optimize_function_for_speed_p.
25233
25234 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
25235
25236         * doc/invoke.texi (free): Document AArch64.
25237
25238 2014-04-14  Richard Biener  <rguenther@suse.de>
25239
25240         PR tree-optimization/60042
25241         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
25242         (insert_into_preds_of_block): Do not prevent PHI insertion
25243         for REFERENCE exprs here ...
25244         (eliminate_dom_walker::before_dom_children): ... but prevent
25245         their use here under similar conditions when applied to the
25246         IL after PRE optimizations.
25247
25248 2014-04-14  Richard Biener  <rguenther@suse.de>
25249
25250         * passes.def: Move early points-to after early SRA.
25251
25252 2014-04-14  Richard Biener  <rguenther@suse.de>
25253
25254         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
25255         check for which sign-changes we allow when forwarding
25256         a converted value into a switch.
25257
25258 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
25259
25260         * stor-layout.c (place_field): Finalize non-constant offset for the
25261         field, if any.
25262
25263 2014-04-14  Richard Biener  <rguenther@suse.de>
25264
25265         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
25266         as argument.
25267         (expand_switch_using_bit_tests_p): Likewise.
25268         (process_switch): Compute and pass on speed_p based on the
25269         switch stmt.
25270         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
25271         optimize_bb_for_speed_p.
25272
25273 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
25274
25275         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
25276         * function.h (struct function): Rename has_force_vect_loops into
25277         has_force_vectorize_loops.
25278         * lto-streamer-in.c (input_cfg): Adjust for renaming.
25279         (input_struct_function_base): Likewise.
25280         * lto-streamer-out.c (output_cfg): Likewise.
25281         (output_struct_function_base): Likewise.
25282         * omp-low.c (expand_omp_simd): Likewise.
25283         * tree-cfg.c (move_sese_region_to_fn): Likewise.
25284         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
25285         (version_loop_for_if_conversion): Likewise.
25286         (tree_if_conversion): Likewise.
25287         (main_tree_if_conversion): Likewise.
25288         (gate_tree_if_conversion): Likewise.
25289         * tree-inline.c (copy_loops): Likewise.
25290         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
25291         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
25292         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25293         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
25294         * tree-vectorizer.c (vectorize_loops): Likewise.
25295         * tree-vectorizer.h (unlimited_cost_model): Likewise.
25296
25297 2014-04-14  Richard Biener  <rguenther@suse.de>
25298
25299         PR lto/60720
25300         * lto-streamer-out.c (wrap_refs): New function.
25301         (lto_output): Wrap symbol references in global initializes in
25302         type-preserving MEM_REFs.
25303
25304 2014-04-14  Christian Bruel  <christian.bruel@st.com>
25305
25306         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
25307
25308 2014-04-14  Christian Bruel  <christian.bruel@st.com>
25309
25310         * config/sh/sh.md (setmemqi): New expand pattern.
25311         * config/sh/sh.h (CLEAR_RATIO): Define.
25312         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
25313         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
25314
25315 2014-04-14  Richard Biener  <rguenther@suse.de>
25316
25317         PR middle-end/55022
25318         * fold-const.c (negate_expr_p): Don't negate directional rounding
25319         division.
25320         (fold_negate_expr): Likewise.
25321
25322 2014-04-14  Richard Biener  <rguenther@suse.de>
25323
25324         PR tree-optimization/59817
25325         PR tree-optimization/60453
25326         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
25327         recursion to catch all CHRECs in the scalar evolution and restrict
25328         the predicate for the remains appropriately.
25329
25330 2014-04-12  Catherine Moore  <clm@codesourcery.com>
25331
25332         * config/mips/constraints.md: Add new register constraint "kb".
25333         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
25334         (*movhi_internal): Likewise.
25335         (*movqi_internal): Likewise.
25336         * config/mips/mips.h (M16_STORE_REGS): New register class.
25337         (REG_CLASS_NAMES): Add M16_STORE_REGS.
25338         (REG_CLASS_CONTENTS): Likewise.
25339         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
25340
25341 2014-04-11  Tobias Burnus  <burnus@net-b.de>
25342
25343         PR c/60194
25344         * doc/invoke.texi (-Wformat-signedness): Document it.
25345         (Wformat=2): Mention that this enables -Wformat-signedness.
25346
25347 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25348
25349         * common/config/epiphany/epiphany-common.c
25350         (epiphany_option_optimization_table): Enable section anchors by
25351         default at -O1 or higher.
25352         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
25353         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
25354         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
25355         carries no extra cost.
25356         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
25357         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
25358         * config/epiphany/predicates.md (memclob_operand): New predicate.
25359         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
25360         Use memclob_operand predicate and X constraint for operand 3.
25361
25362 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25363
25364         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
25365         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
25366         its operands.
25367
25368 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25369
25370         PR rtl-optimization/60651
25371         * mode-switching.c (optimize_mode_switching): Make sure to emit
25372         sets of a lower numbered entity before sets of a higher numbered
25373         entity to a mode of the same or lower priority.
25374         When creating a seginfo for a basic block that starts with a code
25375         label, move the insertion point past the code label.
25376         (new_seginfo): Document and enforce requirement that
25377         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
25378         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
25379         * doc/tm.texi: Regenerate.
25380
25381 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25382
25383         PR target/60811
25384         * config/arc/arc.c (arc_save_restore): Fix assert typo.
25385
25386 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
25387
25388         * BASE-VER: Set to 4.10.0.
25389
25390 2014-04-11  Tobias Burnus  <burnus@net-b.de>
25391
25392         PR other/59055
25393         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
25394         * doc/gcc.texi (Service): Update description in the @menu
25395         * doc/invoke.texi (Option Summary): Remove misplaced and
25396         duplicated @menu.
25397
25398 2014-04-11  Steve Ellcey  <sellcey@mips.com>
25399             Jakub Jelinek  <jakub@redhat.com>
25400
25401         PR middle-end/60556
25402         * expr.c (convert_move): Use emit_store_flag_force instead of
25403         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
25404         argument to it.
25405
25406 2014-04-11  Richard Biener  <rguenther@suse.de>
25407
25408         PR middle-end/60797
25409         * varasm.c (assemble_alias): Avoid endless error reporting
25410         recursion by setting TREE_ASM_WRITTEN.
25411
25412 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25413
25414         * config/s390/s390.md: Add a splitter for NOT rtx.
25415
25416 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
25417
25418         PR rtl-optimization/60663
25419         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
25420
25421 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
25422             Jakub Jelinek  <jakub@redhat.com>
25423
25424         PR lto/60567
25425         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
25426         flag from decl_node to node.
25427
25428 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25429
25430         PR debug/60655
25431         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
25432         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
25433         ameliorating the cases where it can be.
25434
25435 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
25436
25437         Revert
25438         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
25439
25440         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25441         (loadsync_<mode>): Change mode.
25442         (load_quadpti, store_quadpti): New.
25443         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25444         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25445         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
25446
25447 2014-04-09  Cong Hou  <congh@google.com>
25448
25449         PR testsuite/60773
25450         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
25451         documentation.
25452
25453 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25454
25455         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
25456         instead of vnor to exploit possible fusion opportunity in the
25457         future.
25458         (altivec_expand_vec_perm_const_le): Likewise.
25459
25460 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
25461
25462         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25463         (loadsync_<mode>): Change mode.
25464         (load_quadpti, store_quadpti): New.
25465         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25466         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25467
25468 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
25469
25470         PR target/60763
25471         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
25472         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
25473         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
25474
25475 2014-04-08  Richard Biener  <rguenther@suse.de>
25476
25477         PR middle-end/60706
25478         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
25479         a 64bit widest int print double-int similar to on HWI64 hosts.
25480
25481 2014-04-08  Richard Biener  <rguenther@suse.de>
25482
25483         PR tree-optimization/60785
25484         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
25485         default defs properly.
25486
25487 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
25488
25489         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
25490         (Weffc++): Likewise.
25491
25492 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
25493
25494         * ipa-devirt.c (maybe_record_node): When node is not recorded,
25495         set completep to false rather than true.
25496
25497 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
25498
25499         PR target/60504
25500         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
25501         ARM_TARGET2_DWARF_FORMAT.
25502
25503 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
25504
25505         PR target/60609
25506         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
25507         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
25508         ADDR_DIFF_VEC.
25509
25510 2014-04-07  Richard Biener  <rguenther@suse.de>
25511
25512         PR tree-optimization/60766
25513         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
25514         (may_eliminate_iv): Convert cand_value_at result to desired type.
25515
25516 2014-04-07  Jason Merrill  <jason@redhat.com>
25517
25518         PR c++/60731
25519         * common.opt (-fno-gnu-unique): Add.
25520         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
25521
25522 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25523
25524         * haifa-sched.c: Fix outdated function reference and minor
25525         grammar errors in introductory comment.
25526
25527 2014-04-07  Richard Biener  <rguenther@suse.de>
25528
25529         PR middle-end/60750
25530         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
25531         for noreturn calls.
25532         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
25533
25534 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
25535
25536         PR debug/55794
25537         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
25538         size accounting for thunks.
25539         (pa_asm_output_mi_thunk): Use final_start_function() and
25540         final_end_function() to output function start and end directives.
25541
25542 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
25543
25544         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
25545         device specific ISA/ feature information. Remove short_sp and
25546         errata_skip ds.  Add avr_device_specific_features enum to have device
25547         specific info.
25548         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
25549         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
25550         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
25551         updated device specific info.
25552         * config/avr/avr-mcus.def: Merge device specific details to
25553         dev_attribute field.
25554         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
25555         errata_skip.
25556         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
25557         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
25558         assembler if RMW isa supported by current device.
25559         * config/avr/genmultilib.awk: Update as device info structure changed.
25560         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
25561
25562 2014-04-04  Cong Hou  <congh@google.com>
25563
25564         PR tree-optimization/60656
25565         * tree-vect-stmts.c (supportable_widening_operation):
25566         Fix a bug that elements in a vector with vect_used_by_reduction
25567         property are incorrectly reordered when the operation on it is not
25568         consistant with the one in reduction operation.
25569
25570 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
25571
25572         PR rtl-optimization/60155
25573         * gcse.c (record_set_data): New function.
25574         (single_set_gcse): New function.
25575         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
25576         (hoist_code): Likewise.
25577         (get_pressure_class_and_nregs): Likewise.
25578
25579 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
25580
25581         * explow.c (probe_stack_range): Emit a final optimization blockage.
25582
25583 2014-04-04  Anthony Green  <green@moxielogic.com>
25584
25585         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
25586         typos.
25587
25588 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
25589
25590         PR ipa/59626
25591         * lto-cgraph.c (input_overwrite_node): Check that partitioning
25592         flags are set only during streaming.
25593         * ipa.c (process_references, walk_polymorphic_call_targets,
25594         symtab_remove_unreachable_nodes): Drop bodies of always inline
25595         after early inlining.
25596         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25597
25598 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
25599         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25600
25601         PR debug/60655
25602         * dwarf2out.c (const_ok_for_output_1): Reject expressions
25603         containing a NOT.
25604
25605 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25606
25607         PR bootstrap/60743
25608         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25609         duration.
25610         (cortex_a53_fdivd): Likewise.
25611
25612 2014-04-04  Martin Jambor  <mjambor@suse.cz>
25613
25614         PR ipa/60640
25615         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25616         Adjust all callers.
25617         * cgraph.c (clone_of_p): Also return true if thunks match.
25618         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25619         cgraph_function_or_thunk_node and an obsolete comment.
25620         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25621         file.
25622         (build_function_decl_skip_args): Likewise.
25623         (set_new_clone_decl_and_node_flags): New function.
25624         (duplicate_thunk_for_node): Likewise.
25625         (redirect_edge_duplicating_thunks): Likewise.
25626         (cgraph_clone_node): New parameter args_to_skip, pass it to
25627         redirect_edge_duplicating_thunks which is called instead of
25628         cgraph_redirect_edge_callee.
25629         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25630         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25631
25632 2014-04-04  Jeff Law  <law@redhat.com>
25633
25634         PR target/60657
25635         * config/arm/predicates.md (const_int_I_operand): New predicate.
25636         (const_int_M_operand): Similarly.
25637         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25638         const_int_operand.
25639         (insv_t2, extv_reg, extzv_t2): Likewise.
25640         (load_multiple_with_writeback): Similarly for const_int_I_operand.
25641         (pop_multiple_with_writeback_and_return): Likewise.
25642         (vfp_pop_multiple_with_writeback): Likewise
25643
25644 2014-04-04  Richard Biener  <rguenther@suse.de>
25645
25646         PR ipa/60746
25647         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25648         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25649         non-GIMPLE_LABELs.
25650         * gimplify.h (gimple_add_tmp_var_fn): Declare.
25651         * gimplify.c (gimple_add_tmp_var_fn): New function.
25652         * gimple-expr.h (create_tmp_reg_fn): Declare.
25653         * gimple-expr.c (create_tmp_reg_fn): New function.
25654         * gimple-low.c (record_vars_into): Don't change cfun.
25655         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25656         code generation without cfun.
25657
25658 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
25659
25660         PR bootstrap/60719
25661         * Makefile.in (install-driver): Fix shell scripting.
25662
25663 2014-04-03  Cong Hou  <congh@google.com>
25664
25665         PR tree-optimization/60505
25666         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25667         threshold of number of iterations below which no vectorization
25668         will be done.
25669         * tree-vect-loop.c (new_loop_vec_info):
25670         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25671         * tree-vect-loop.c (vect_analyze_loop_operations):
25672         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25673         * tree-vect-loop.c (vect_transform_loop):
25674         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25675         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25676         of iterations of the loop and see if we should build the epilogue.
25677
25678 2014-04-03  Richard Biener  <rguenther@suse.de>
25679
25680         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25681         (streamer_tree_cache_create): Adjust.
25682         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25683         to allow optional nodes array.
25684         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25685         (streamer_tree_cache_append): Likewise.
25686         (streamer_tree_cache_create): Create nodes array optionally
25687         as specified by parameter.
25688         * lto-streamer-out.c (create_output_block): Avoid maintaining
25689         the node array in the writer cache.
25690         (DFS_write_tree): Remove assertion.
25691         (produce_asm_for_decls): Free the out decl state hash table early.
25692         * lto-streamer-in.c (lto_data_in_create): Adjust for
25693         streamer_tree_cache_create prototype change.
25694
25695 2014-04-03  Richard Biener  <rguenther@suse.de>
25696
25697         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25698         set TREE_CHAIN to NULL_TREE.
25699
25700 2014-04-03  Richard Biener  <rguenther@suse.de>
25701
25702         PR tree-optimization/60740
25703         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25704         over all GIMPLE_COND operands.
25705
25706 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
25707
25708         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25709         (Weffc++): Remove Scott's numbering, merge lists and reference
25710         Wnon-virtual-dtor.
25711
25712 2014-04-03  Nick Clifton  <nickc@redhat.com>
25713
25714         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25715         properly.
25716
25717 2014-04-03  Martin Jambor  <mjambor@suse.cz>
25718
25719         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25720         mention gcc_unreachable before failing.
25721         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25722         removed symbols.
25723
25724 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
25725
25726         PR ipa/60659
25727         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25728         inconsistent code and instead mark the context inconsistent.
25729         (possible_polymorphic_call_targets): For inconsistent contexts
25730         return empty complete list.
25731
25732 2014-04-02  Anthony Green  <green@moxielogic.com>
25733
25734         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25735         (extendqisi2, extendhisi2): Define.
25736         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25737         (WCHAR_TYPE): Change to unsigned int.
25738
25739 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25740
25741         PR tree-optimization/60733
25742         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25743         insertion point for PHI candidates to be the end of the feeding
25744         block for the PHI argument.
25745
25746 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
25747
25748         PR rtl-optimization/60650
25749         * lra-constraints.c (process_alt_operands): Decrease reject for
25750         earlyclobber matching.
25751
25752 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25753
25754         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25755
25756 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25757
25758         * config/spu/spu.c (pad_bb): Do not crash when the last
25759         insn is CODE_FOR_blockage.
25760
25761 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25762
25763         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25764         lies outside the target mode.
25765
25766 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25767
25768         PR target/60735
25769         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25770         software floating point or no floating point registers, do not
25771         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
25772         in GPRs that occurs after we tested for GPRs that would never be
25773         true.
25774
25775         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25776         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25777         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
25778         specifically allow DDmode, since that does not use the SPE SIMD
25779         instructions.
25780
25781 2014-04-02  Richard Biener  <rguenther@suse.de>
25782
25783         PR middle-end/60729
25784         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25785         MODE_INTs.  Properly use negv_optab.
25786         (expand_abs): Likewise.
25787
25788 2014-04-02  Richard Biener  <rguenther@suse.de>
25789
25790         PR bootstrap/60719
25791         * Makefile.in (install-driver): Guard extra installs with special
25792         names properly.
25793
25794 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25795
25796         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25797         Document vec_vgbbd.
25798
25799 2014-04-01  Richard Henderson  <rth@redhat.com>
25800
25801         PR target/60704
25802         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25803         alternative enabled before register allocation.
25804
25805 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
25806
25807         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25808         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25809         typo.
25810         (nios2_large_got_address): Remove unneeded 'sym' parameter.
25811         (nios2_got_address): Update nios2_large_got_address call site.
25812         (nios2_delegitimize_address): New function.
25813         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25814         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25815         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25816
25817 2014-04-01  Martin Husemann  <martin@duskware.de>
25818
25819         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25820         for -mabi=32.
25821
25822 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
25823
25824         PR rtl-optimization/60604
25825         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25826         check from register_operand.
25827         (register_operand): Redefine in terms of general_operand.
25828         (nonmemory_operand): Use register_operand for the non-constant cases.
25829
25830 2014-04-01  Richard Biener  <rguenther@suse.de>
25831
25832         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25833
25834 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25835
25836         * doc/invoke.texi (mapp-regs): Clarify.
25837
25838 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
25839
25840         * config/i386/avx512fintrin.h (__v32hi): Define type.
25841         (__v64qi): Likewise.
25842         (_mm512_set1_epi8): Define.
25843         (_mm512_set1_epi16): Define.
25844         (_mm512_set4_epi32): Define.
25845         (_mm512_set4_epi64): Define.
25846         (_mm512_set4_pd): Define.
25847         (_mm512_set4_ps): Define.
25848         (_mm512_setr4_epi64): Define.
25849         (_mm512_setr4_epi32): Define.
25850         (_mm512_setr4_pd): Define.
25851         (_mm512_setr4_ps): Define.
25852         (_mm512_setzero_epi32): Define.
25853
25854 2014-03-31  Martin Jambor  <mjambor@suse.cz>
25855
25856         PR middle-end/60647
25857         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25858         callsite_arguments_match_p.  Updated all callers.  Also check types of
25859         corresponding formal parameters and actual arguments.
25860         (not_all_callers_have_enough_arguments_p) Renamed to
25861         some_callers_have_mismatched_arguments_p.
25862
25863 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
25864
25865         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25866
25867 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
25868
25869         PR target/60034
25870         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25871         section anchor.
25872
25873 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
25874
25875         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25876         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25877         Split out
25878         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25879         Use FMAMODE_NOVF512 mode iterator.
25880         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25881         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25882         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25883         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25884         Split out
25885         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25886         Use VF_128_256 mode iterator.
25887         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25888         Ditto.
25889
25890 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25891
25892         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25893         static chain if needed.
25894
25895 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25896
25897         PR target/60697
25898         * lra-constraints.c (index_part_to_reg): New.
25899         (process_address): Use it.
25900
25901 2014-03-27  Jeff Law  <law@redhat.com>
25902             Jakub Jelinek  <jakub@redhat.com>
25903
25904         PR target/60648
25905         * expr.c (do_tablejump): Use simplify_gen_binary rather than
25906         gen_rtx_{PLUS,MULT} to build up the address expression.
25907
25908         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25909         creating non-canonical RTL.
25910
25911 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25912
25913         PR ipa/60243
25914         * ipa-inline.c (want_inline_small_function_p): Short circuit large
25915         functions; reorganize to make cheap checks first.
25916         (inline_small_functions): Do not estimate growth when dumping;
25917         it is expensive.
25918         * ipa-inline.h (inline_summary): Add min_size.
25919         (growth_likely_positive): New function.
25920         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25921         (set_cond_stmt_execution_predicate): Cleanup.
25922         (estimate_edge_size_and_time): Compute min_size.
25923         (estimate_calls_size_and_time): Likewise.
25924         (estimate_node_size_and_time): Likewise.
25925         (inline_update_overall_summary): Update min_size.
25926         (do_estimate_edge_time): Likewise.
25927         (do_estimate_edge_size): Update.
25928         (do_estimate_edge_hints): Update.
25929         (growth_likely_positive): New function.
25930
25931 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
25932
25933         PR target/60693
25934         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25935         also if addr has VOIDmode.
25936
25937 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25938
25939         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25940         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25941         Declare extern.
25942         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25943         instructions as well as AdvancedSIMD loads.
25944
25945 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25946
25947         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25948         Use crypto_aese type.
25949         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25950         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25951         crypto_aese, crypto_aesmc.  Move to types.md.
25952         * config/arm/types.md (crypto_aes): Split into crypto_aese,
25953         crypto_aesmc.
25954         * config/arm/iterators.md (crypto_type): Likewise.
25955
25956 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25957
25958         * cgraph.c: Include expr.h and tree-dfa.h.
25959         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25960         remove LHS.
25961
25962 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25963
25964         PR target/60675
25965         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25966         regs from checking multi-reg pseudos.
25967
25968 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25969
25970         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25971
25972 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25973
25974         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25975         if it would clobber the stack pointer, even temporarily.
25976
25977 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25978
25979         * mode-switching.c: Make small adjustments to the top comment.
25980
25981 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
25982
25983         * config/rs6000/constraints.md (wD constraint): New constraint to
25984         match the constant integer to get the top DImode/DFmode out of a
25985         vector in a VSX register.
25986
25987         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25988         match the constant integer to get the top DImode/DFmode out of a
25989         vector in a VSX register.
25990
25991         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25992         for ISA 2.07.
25993
25994         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25995         vbpermq builtins.
25996
25997         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25998         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25999
26000         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
26001         Optimize vec_extract of 64-bit values, where the value being
26002         extracted is in the top word, where we can use scalar
26003         instructions.  Add direct move and store support.  Combine the big
26004         endian/little endian vector select load support into a single insn.
26005         (vsx_extract_<mode>_internal1): Likewise.
26006         (vsx_extract_<mode>_internal2): Likewise.
26007         (vsx_extract_<mode>_load): Likewise.
26008         (vsx_extract_<mode>_store): Likewise.
26009         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
26010         combined into vsx_extract_<mode>_load.
26011         (vsx_extract_<mode>_one_le): Likewise.
26012
26013         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
26014         define the top 64-bit vector element.
26015
26016         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
26017         constraint.
26018
26019         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26020         Document vec_vbpermq builtin.
26021
26022         PR target/60672
26023         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
26024         enable use of xxsldwi and xxpermdi builtin functions.
26025         (vec_xxpermdi): Likewise.
26026
26027         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26028         Document use of vec_xxsldwi and vec_xxpermdi builtins.
26029
26030 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26031
26032         PR rtl-optimization/60650
26033         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
26034         first_p.  Use it.
26035         (find_spills_for): New.
26036         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
26037         Spill all pseudos on the second iteration.
26038
26039 2014-03-27  Marek Polacek  <polacek@redhat.com>
26040
26041         PR c/50347
26042         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
26043         types.
26044
26045 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26046
26047         * config/s390/s390.c (s390_can_use_return_insn): Check for
26048         call-saved FPRs on 31 bit.
26049
26050 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
26051
26052         PR middle-end/60682
26053         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
26054         if they need regimplification, just drop them instead of
26055         calling gimple_regimplify_operands on them.
26056
26057 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26058
26059         PR target/60580
26060         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
26061         (aarch64_frame_pointer_required): Adjust logic.
26062         (aarch64_can_eliminate): Adjust logic.
26063         (aarch64_override_options_after_change): Adjust logic.
26064
26065 2014-03-27  Dehao Chen  <dehao@google.com>
26066
26067         * ipa-inline.c (early_inliner): Update node's inline info.
26068
26069 2014-03-26  Dehao Chen  <dehao@google.com>
26070
26071         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
26072         compiler inserted conditional jumps for NAN float check.
26073
26074 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
26075
26076         * ubsan.h (ubsan_create_data): Change second argument's type
26077         to const location_t *.
26078         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
26079         _("<unknown>").
26080         (ubsan_create_data): Change second argument to const location_t *PLOC.
26081         Create Loc field whenever PLOC is non-NULL.
26082         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
26083         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
26084         callers.
26085
26086         PR other/59545
26087         * real.c (real_to_integer2): Change type of low to UHWI.
26088
26089 2014-03-26  Tobias Burnus  <burnus@net-b.de>
26090
26091         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
26092         (CILK_SELF_SPECS): New define.
26093         (driver_self_specs): Use it.
26094
26095 2014-03-26  Richard Biener  <rguenther@suse.de>
26096
26097         * tree-pretty-print.c (percent_K_format): Implement special
26098         case for LTO and its stripped down BLOCK tree.
26099
26100 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
26101
26102         PR sanitizer/60636
26103         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
26104
26105         * tree-vrp.c (simplify_internal_call_using_ranges): If only
26106         one range is range_int_cst_p, but not both, at least optimize
26107         addition/subtraction of 0 and multiplication by 0 or 1.
26108         * gimple-fold.c (gimple_fold_call): Fold
26109         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
26110         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
26111         INTEGER_CSTs, try to fold at least x * 0 and y - y.
26112
26113 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
26114
26115         PR rtl-optimization/60452
26116         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
26117         <case REG>: Return 1 for invalid offsets from the frame pointer.
26118
26119 2014-03-26  Marek Polacek  <polacek@redhat.com>
26120
26121         PR c/37428
26122         * doc/extend.texi (C Extensions): Mention variable-length arrays in
26123         a structure/union.
26124
26125 2014-03-26  Marek Polacek  <polacek@redhat.com>
26126
26127         PR c/39525
26128         * doc/extend.texi (Designated Inits): Describe what happens to omitted
26129         field members.
26130
26131 2014-03-26  Marek Polacek  <polacek@redhat.com>
26132
26133         PR other/59545
26134         * ira-color.c (update_conflict_hard_regno_costs): Perform the
26135         multiplication in unsigned type.
26136
26137 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
26138
26139         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
26140
26141 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
26142
26143         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
26144
26145 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
26146
26147         PR ipa/60315
26148         * cif-code.def (UNREACHABLE) New code.
26149         * ipa-inline.c (inline_small_functions): Skip edges to
26150         __builtlin_unreachable.
26151         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
26152         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
26153         predicate to __bulitin_unreachable.
26154         (set_cond_stmt_execution_predicate): Fix issue when
26155         invert_tree_comparison returns ERROR_MARK.
26156         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
26157         propagate to inline clones.
26158         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
26159         to unreachable.
26160         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
26161         * cgraphclones.c (cgraph_clone_node): If call destination is already
26162         ureachable, do not redirect it back.
26163         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
26164         unreachable.
26165
26166 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
26167
26168         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
26169         Do not modify inline clones.
26170
26171 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
26172
26173         * config/i386/i386.md (general_sext_operand): New mode attr.
26174         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
26175         don't generate (sign_extend (const_int)).
26176         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
26177         operands[2].  Use We constraint instead of <i> and
26178         <general_sext_operand> predicate instead of <general_operand>.
26179         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
26180         * config/i386/constraints.md (We): New constraint.
26181         * config/i386/predicates.md (x86_64_sext_operand,
26182         sext_operand): New predicates.
26183
26184 2014-03-25  Martin Jambor  <mjambor@suse.cz>
26185
26186         PR ipa/60600
26187         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
26188         inconsistent devirtualizations to __builtin_unreachable.
26189
26190 2014-03-25  Marek Polacek  <polacek@redhat.com>
26191
26192         PR c/35449
26193         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
26194
26195 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
26196
26197         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
26198         order of elements for big-endian.
26199
26200 2014-03-25  Richard Biener  <rguenther@suse.de>
26201
26202         PR middle-end/60635
26203         * gimplify-me.c (gimple_regimplify_operands): Update the
26204         re-gimplifed stmt.
26205
26206 2014-03-25  Martin Jambor  <mjambor@suse.cz>
26207
26208         PR ipa/59176
26209         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
26210         (lto_output_varpool_node): Likewise.
26211         (input_overwrite_node): Likewise.
26212         (input_varpool_node): Likewise.
26213
26214 2014-03-25  Richard Biener  <rguenther@suse.de>
26215
26216         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
26217         (run_gcc): Likewise.
26218
26219 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
26220
26221         * combine.c (simplify_compare_const): Add MODE argument.
26222         Handle mode_width 0 as very large mode_width.
26223         (try_combine, simplify_comparison): Adjust callers.
26224
26225         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
26226         type to avoid signed integer overflow.
26227         * explow.c (plus_constant): Likewise.
26228
26229 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26230
26231         * doc/generic.texi: Correct typos.
26232
26233 2014-03-24  Tobias Burnus  <burnus@net-b.de>
26234
26235         * doc/invoke.texi (-flto): Expand section about
26236         using static libraries with LTO.
26237
26238 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26239
26240         PR rtl-optimization/60501
26241         * optabs.def (addptr3_optab): New optab.
26242         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
26243         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
26244         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
26245
26246         * lra.c (emit_add3_insn): Use the addptr pattern if available.
26247
26248         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
26249
26250 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
26251
26252         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
26253         _mm512_set1_pd.
26254
26255         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
26256         (_mm256_undefined_ps): Define.
26257         (_mm256_undefined_pd): Define.
26258         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
26259         (_mm_undefined_pd): Define.
26260         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
26261         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
26262         (_mm512_undefined_ps): Define.
26263         (_mm512_undefined_pd): Define.
26264         Use _mm*_undefined_*.
26265         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
26266
26267 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
26268
26269         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
26270         (lshr_simd): DI mode added.
26271         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
26272         (aarch64_ushr_simddi): Likewise.
26273         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
26274         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
26275         (vshrd_n_u64): Likewise.
26276
26277 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26278
26279         * Makefile.in (s-macro_list): Depend on cc1.
26280
26281 2014-03-23  Teresa Johnson  <tejohnson@google.com>
26282
26283         * ipa-utils.c (ipa_print_order): Use specified dump file.
26284
26285 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
26286
26287         PR rtl-optimization/60601
26288         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
26289
26290         * gcc.c (eval_spec_function): Initialize save_growing_value.
26291
26292 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
26293
26294         PR sanitizer/60613
26295         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
26296         code == MINUS_EXPR, never swap op0 with op1.
26297
26298         * toplev.c (init_local_tick): Avoid signed integer multiplication
26299         overflow.
26300         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
26301         shift by first operand's bitsize.
26302
26303 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
26304
26305         PR target/60610
26306         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
26307         redefine to 1 or 0.
26308         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
26309         TARGET_ISA_64BIT_P(x).
26310
26311 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26312
26313         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
26314         pattern for vector nor instead of subtract from splat(-1).
26315         (altivec_expand_vec_perm_const_le): Likewise.
26316
26317 2014-03-21  Richard Henderson  <rth@twiddle.net>
26318
26319         PR target/60598
26320         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
26321         related insns after epilogue_completed.
26322
26323 2014-03-21  Martin Jambor  <mjambor@suse.cz>
26324
26325         PR ipa/59176
26326         * cgraph.h (symtab_node): New flag body_removed.
26327         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
26328         when removing bodies.
26329         * symtab.c (dump_symtab_base): Dump body_removed flag.
26330         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
26331         had their bodies removed.
26332
26333 2014-03-21  Martin Jambor  <mjambor@suse.cz>
26334
26335         PR ipa/60419
26336         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
26337         in the border.
26338
26339 2014-03-21  Richard Biener  <rguenther@suse.de>
26340
26341         PR tree-optimization/60577
26342         * tree-core.h (struct tree_base): Document nothrow_flag use
26343         in DECL_NONALIASED.
26344         * tree.h (DECL_NONALIASED): New.
26345         (may_be_aliased): Adjust.
26346         * coverage.c (build_var): Set DECL_NONALIASED.
26347
26348 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26349
26350         * expr.c (expand_expr_real_1): Remove outdated comment.
26351
26352 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
26353
26354         PR middle-end/60597
26355         * ira.c (adjust_cleared_regs): Call copy_rtx on
26356         *reg_equiv[REGNO (loc)].src_p before passing it to
26357         simplify_replace_fn_rtx.
26358
26359         PR target/60568
26360         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
26361         into CONST, put pic register as first operand of PLUS.  Use
26362         gen_const_mem for both 32-bit and 64-bit PIC got loads.
26363
26364 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26365
26366         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
26367
26368 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26369
26370         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
26371         around for store forwarding issue in the FPU on the UT699.
26372         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
26373         loads and operations if -mfix-ut699 is specified.
26374         (divtf3_hq): Tweak attribute.
26375         (sqrttf2_hq): Likewise.
26376
26377 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26378
26379         * calls.c (store_one_arg): Remove incorrect const qualification on the
26380         type of the temporary.
26381         * cfgexpand.c (expand_return): Likewise.
26382         * expr.c (expand_constructor): Likewise.
26383         (expand_expr_real_1): Likewise.
26384
26385 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26386
26387         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
26388         of parts.
26389
26390 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26391
26392         PR target/60039
26393         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
26394
26395 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
26396
26397         * config/arm/aarch-common-protos.h
26398         (alu_cost_table): Fix spelling of "extend".
26399         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
26400
26401 2014-03-19  Richard Biener  <rguenther@suse.de>
26402
26403         PR middle-end/60553
26404         * tree-core.h (tree_type_common): Re-order pointer members
26405         to reduce recursion depth during GC walks.
26406
26407 2014-03-19  Marek Polacek  <polacek@redhat.com>
26408
26409         PR sanitizer/60569
26410         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
26411         before accessing it.
26412
26413 2014-03-19  Richard Biener  <rguenther@suse.de>
26414
26415         PR lto/59543
26416         * lto-streamer-in.c (input_function): In WPA stage do not drop
26417         debug stmts.
26418
26419 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
26420
26421         PR tree-optimization/60559
26422         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
26423         with build_zero_cst assignment.
26424
26425 2014-03-18  Kai Tietz  <ktietz@redhat.com>
26426
26427         PR rtl-optimization/56356
26428         * sdbout.c (sdbout_parms): Verify that parms'
26429         incoming argument is valid.
26430         (sdbout_reg_parms): Likewise.
26431
26432 2014-03-18  Richard Henderson  <rth@redhat.com>
26433
26434         PR target/60562
26435         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
26436         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
26437         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
26438
26439 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
26440
26441         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
26442         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
26443         Italicize plugin event names in description.  Explain that
26444         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
26445         Remind that no GCC functions should be called after PLUGIN_FINISH.
26446         Explain what pragmas with expansion are.
26447
26448 2014-03-18  Martin Liska  <mliska@suse.cz>
26449
26450         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
26451         gimple call statement is update.
26452         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
26453         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
26454
26455 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
26456
26457         PR sanitizer/60557
26458         * ubsan.c (ubsan_instrument_unreachable): Call
26459         initialize_sanitizer_builtins.
26460         (ubsan_pass): Likewise.
26461
26462         PR sanitizer/60535
26463         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
26464         varpool_finalize_decl instead of rest_of_decl_compilation.
26465
26466 2014-03-18  Richard Biener  <rguenther@suse.de>
26467
26468         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
26469         by using bitmap_and_compl instead of bitmap_and_compl_into.
26470         (df_rd_transfer_function): Likewise.
26471
26472 2014-03-18  Richard Biener  <rguenther@suse.de>
26473
26474         * doc/lto.texi (fresolution): Fix typo.
26475
26476 2014-03-18  Richard Biener  <rguenther@suse.de>
26477
26478         * doc/invoke.texi (flto): Update for changes in 4.9.
26479
26480 2014-03-18  Richard Biener  <rguenther@suse.de>
26481
26482         * doc/loop.texi: Remove section on the removed lambda framework.
26483         Update loop docs with recent changes in preserving loop structure.
26484
26485 2014-03-18  Richard Biener  <rguenther@suse.de>
26486
26487         * doc/lto.texi (-fresolution): Document.
26488
26489 2014-03-18  Richard Biener  <rguenther@suse.de>
26490
26491         * doc/contrib.texi: Adjust my name.
26492
26493 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
26494
26495         PR ipa/58721
26496         * internal-fn.c: Include diagnostic-core.h.
26497         (expand_BUILTIN_EXPECT): New function.
26498         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
26499         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
26500         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
26501         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
26502         IFN_BUILTIN_EXPECT.
26503         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
26504         Revert 3 argument __builtin_expect code.
26505         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
26506         * gimple-fold.c (gimple_fold_call): Likewise.
26507         * tree.h (fold_builtin_expect): New prototype.
26508         * builtins.c (build_builtin_expect_predicate): Add predictor
26509         argument, if non-NULL, create 3 argument __builtin_expect.
26510         (fold_builtin_expect): No longer static.  Add ARG2 argument,
26511         pass it through to build_builtin_expect_predicate.
26512         (fold_builtin_2): Adjust caller.
26513         (fold_builtin_3): Handle BUILT_IN_EXPECT.
26514         * internal-fn.def (BUILTIN_EXPECT): New.
26515
26516 2014-03-18  Tobias Burnus  <burnus@net-b.de>
26517
26518         PR ipa/58721
26519         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
26520         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
26521         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
26522
26523 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
26524
26525         PR ipa/58721
26526         * predict.c (combine_predictions_for_bb): Fix up formatting.
26527         (expr_expected_value_1, expr_expected_value): Add predictor argument,
26528         fill what it points to if non-NULL.
26529         (tree_predict_by_opcode): Adjust caller, use the predictor.
26530         * predict.def (PRED_COMPARE_AND_SWAP): Add.
26531
26532 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
26533
26534         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
26535         proper constant for the store mode.
26536
26537 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
26538
26539         * symtab.c (change_decl_assembler_name): Fix transparent alias
26540         chain construction.
26541
26542 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
26543
26544         * config/aarch64/aarch64.c: Correct the comments about the
26545         aarch64 stack layout.
26546
26547 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
26548
26549         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
26550         check for GF_OMP_FOR_KIND_FOR.
26551
26552 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
26553
26554         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
26555         ymm and zmm register names.
26556
26557 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
26558
26559         PR target/60516
26560         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
26561         note creation for the 2010-08-31 changes.
26562
26563 2014-03-17  Marek Polacek  <polacek@redhat.com>
26564
26565         PR middle-end/60534
26566         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
26567         as -fno-tree-loop-vectorize.
26568         (expand_omp_simd): Likewise.
26569
26570 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26571
26572         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
26573         (eligible_for_call_delay): New prototype.
26574         * config/sparc/sparc.c (tls_call_delay): Rename into...
26575         (eligible_for_call_delay): ...this.  Return false if the instruction
26576         cannot be put in the delay slot of a branch.
26577         (eligible_for_restore_insn): Simplify.
26578         (eligible_for_return_delay): Return false if the instruction cannot be
26579         put in the delay slot of a branch and simplify.
26580         (eligible_for_sibcall_delay): Return false if the instruction cannot be
26581         put in the delay slot of a branch.
26582         * config/sparc/sparc.md (fix_ut699): New attribute.
26583         (tls_call_delay): Delete.
26584         (in_call_delay): Reimplement.
26585         (eligible_for_sibcall_delay): Rename into...
26586         (in_sibcall_delay): ...this.
26587         (eligible_for_return_delay): Rename into...
26588         (in_return_delay): ...this.
26589         (in_branch_delay): Reimplement.
26590         (in_uncond_branch_delay): Delete.
26591         (in_annul_branch_delay): Delete.
26592
26593 2014-03-14  Richard Henderson  <rth@redhat.com>
26594
26595         PR target/60525
26596         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26597         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26598         (*floathi<X87MODEF>2_i387_with_temp): Remove.
26599         (floathi splitters): Remove.
26600         (float<SWI48x>xf2): New pattern.
26601         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
26602         code that tried to handle DImode for 32-bit, but which was excluded
26603         by the pattern's condition.  Drop allocation of stack temporary.
26604         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26605         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26606         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26607         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26608         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26609         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26610         (*float<SWI48><MODEF>2_sse_interunit): Remove.
26611         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26612         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26613         (*float<SWI48x><X87MODEF>2_i387): Remove.
26614         (all float _with_temp splitters): Remove.
26615         (*float<SWI48x><MODEF>2_i387): New pattern.
26616         (*float<SWI48><MODEF>2_sse): New pattern.
26617         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26618         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26619
26620 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
26621             Marek Polacek  <polacek@redhat.com>
26622
26623         PR middle-end/60484
26624         * common.opt (dump_base_name_prefixed): New Variable.
26625         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26626         if x_dump_base_name_prefixed is already set, set it at the end.
26627
26628 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
26629
26630         PR rtl-optimization/60508
26631         * lra-constraints.c (get_reload_reg): Add new parameter
26632         in_subreg_p.
26633         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26634         Pass the new parameter values.
26635
26636 2014-03-14  Richard Biener  <rguenther@suse.de>
26637
26638         * common.opt: Revert unintented changes from r205065.
26639         * opts.c: Likewise.
26640
26641 2014-03-14  Richard Biener  <rguenther@suse.de>
26642
26643         PR middle-end/60518
26644         * cfghooks.c (split_block): Properly adjust all loops the
26645         block was a latch of.
26646
26647 2014-03-14  Martin Jambor  <mjambor@suse.cz>
26648
26649         PR lto/60461
26650         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26651         and simplify it.
26652
26653 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
26654
26655         PR target/59396
26656         * config/avr/avr.c (avr_set_current_function): Pass function name
26657         through default_strip_name_encoding before sanity checking instead
26658         of skipping the first char of the assembler name.
26659
26660 2014-03-13  Richard Henderson  <rth@redhat.com>
26661
26662         PR debug/60438
26663         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26664         (ix86_force_to_memory, ix86_free_from_memory): Remove.
26665         * config/i386/i386-protos.h: Likewise.
26666         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26667         in the expander instead of a splitter.
26668         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26669         any possibility of requiring a memory.
26670         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26671         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26672         (fp branch splitters): Update for ix86_split_fp_branch.
26673         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26674         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26675         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26676         (*fop_<MODEF>_2_i387): Remove f/r alternative.
26677         (*fop_<MODEF>_3_i387): Likewise.
26678         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26679         (splitters for the fop_* register patterns): Remove.
26680         (fscalexf4_i387): Rename from *fscalexf4_i387.
26681         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26682
26683 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
26684
26685         PR tree-optimization/59779
26686         * tree-dfa.c (get_ref_base_and_extent): Use double_int
26687         type for bitsize and maxsize instead of HOST_WIDE_INT.
26688
26689 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
26690
26691         PR rtl-optimization/57320
26692         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26693         the CFG after thread_prologue_and_epilogue_insns.
26694
26695 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
26696
26697         PR rtl-optimization/57189
26698         * lra-constraints.c (process_alt_operands): Disfavor spilling
26699         vector pseudos.
26700
26701 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
26702
26703         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26704
26705 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
26706
26707         PR tree-optimization/59025
26708         PR middle-end/60418
26709         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26710         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26711
26712 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
26713
26714         PR target/60486
26715         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26716         calls of avr_out_plus_1.
26717
26718 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
26719
26720         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26721         BB's single pred and update the father loop's latch info later.
26722
26723 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26724
26725         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26726         (VEC_M): Likewise.
26727         (VEC_N): Likewise.
26728         (VEC_R): Likewise.
26729         (VEC_base): Likewise.
26730         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26731         registers, we need to swap double words in little endian mode.
26732
26733         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26734         to be a container mode for 128-bit integer operations added in ISA
26735         2.07.  Unlike TImode and PTImode, the preferred register set is
26736         the Altivec/VMX registers for the 128-bit operations.
26737
26738         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26739         declarations.
26740         (rs6000_split_128bit_ok_p): Likewise.
26741
26742         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26743         macros for creating ISA 2.07 normal and overloaded builtin
26744         functions with 3 arguments.
26745         (BU_P8V_OVERLOAD_3): Likewise.
26746         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26747         for use as overloaded functions.
26748         (VPERM_1TI_UNS): Likewise.
26749         (VSEL_1TI): Likewise.
26750         (VSEL_1TI_UNS): Likewise.
26751         (ST_INTERNAL_1ti): Likewise.
26752         (LD_INTERNAL_1ti): Likewise.
26753         (XXSEL_1TI): Likewise.
26754         (XXSEL_1TI_UNS): Likewise.
26755         (VPERM_1TI): Likewise.
26756         (VPERM_1TI_UNS): Likewise.
26757         (XXPERMDI_1TI): Likewise.
26758         (SET_1TI): Likewise.
26759         (LXVD2X_V1TI): Likewise.
26760         (STXVD2X_V1TI): Likewise.
26761         (VEC_INIT_V1TI): Likewise.
26762         (VEC_SET_V1TI): Likewise.
26763         (VEC_EXT_V1TI): Likewise.
26764         (EQV_V1TI): Likewise.
26765         (NAND_V1TI): Likewise.
26766         (ORC_V1TI): Likewise.
26767         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26768         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
26769         overloaded builtin.
26770         (VADDUQM): Likewise.
26771         (VSUBCUQ): Likewise.
26772         (VADDEUQM): Likewise.
26773         (VADDECUQ): Likewise.
26774         (VSUBEUQM): Likewise.
26775         (VSUBECUQ): Likewise.
26776
26777         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26778         __int128_t and __uint128_t types.
26779         (__uint128_type): Likewise.
26780         (altivec_categorize_keyword): Add support for vector __int128_t,
26781         vector __uint128_t, vector __int128, and vector unsigned __int128
26782         as a container type for TImode operations that need to be done in
26783         VSX/Altivec registers.
26784         (rs6000_macro_to_expand): Likewise.
26785         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26786         to support 128-bit integer instructions vaddcuq, vadduqm,
26787         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26788         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26789
26790         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26791         for V1TImode, and set up preferences to use VSX/Altivec registers.
26792         Setup VSX reload handlers.
26793         (rs6000_debug_reg_global): Likewise.
26794         (rs6000_init_hard_regno_mode_ok): Likewise.
26795         (rs6000_preferred_simd_mode): Likewise.
26796         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26797         (easy_altivec_constant): Likewise.
26798         (output_vec_const_move): Likewise.
26799         (rs6000_expand_vector_set): Convert V1TImode set and extract to
26800         simple move.
26801         (rs6000_expand_vector_extract): Likewise.
26802         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26803         addressing.
26804         (rs6000_const_vec): Add support for V1TImode.
26805         (rs6000_emit_le_vsx_load): Swap double words when loading or
26806         storing TImode/V1TImode.
26807         (rs6000_emit_le_vsx_store): Likewise.
26808         (rs6000_emit_le_vsx_move): Likewise.
26809         (rs6000_emit_move): Add support for V1TImode.
26810         (altivec_expand_ld_builtin): Likewise.
26811         (altivec_expand_st_builtin): Likewise.
26812         (altivec_expand_vec_init_builtin): Likewise.
26813         (altivec_expand_builtin): Likewise.
26814         (rs6000_init_builtins): Add support for V1TImode type.  Add
26815         support for ISA 2.07 128-bit integer builtins.  Define type names
26816         for the VSX/Altivec vector types.
26817         (altivec_init_builtins): Add support for overloaded vector
26818         functions with V1TImode type.
26819         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26820         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26821         external function.
26822         (rs6000_split_128bit_ok_p): Likewise.
26823         (rs6000_handle_altivec_attribute): Create V1TImode from vector
26824         __int128_t and vector __uint128_t.
26825
26826         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26827         and mode attributes.
26828         (VSX_M): Likewise.
26829         (VSX_M2): Likewise.
26830         (VSm): Likewise.
26831         (VSs): Likewise.
26832         (VSr): Likewise.
26833         (VSv): Likewise.
26834         (VS_scalar): Likewise.
26835         (VS_double): Likewise.
26836         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26837
26838         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26839         we support the ISA 2.07 128-bit integer arithmetic instructions.
26840         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26841         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26842         and TImode types for use with the builtin functions.
26843         (V1TI_type_node): Likewise.
26844         (unsigned_V1TI_type_node): Likewise.
26845         (intTI_type_internal_node): Likewise.
26846         (uintTI_type_internal_node): Likewise.
26847
26848         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26849         128-bit builtin functions.
26850         (UNSPEC_VADDEUQM): Likewise.
26851         (UNSPEC_VADDECUQ): Likewise.
26852         (UNSPEC_VSUBCUQ): Likewise.
26853         (UNSPEC_VSUBEUQM): Likewise.
26854         (UNSPEC_VSUBECUQ): Likewise.
26855         (VM): Add V1TImode to vector mode iterators.
26856         (VM2): Likewise.
26857         (VI_unit): Likewise.
26858         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26859         (altivec_vaddcuq): Likewise.
26860         (altivec_vsubuqm): Likewise.
26861         (altivec_vsubcuq): Likewise.
26862         (altivec_vaddeuqm): Likewise.
26863         (altivec_vaddecuq): Likewise.
26864         (altivec_vsubeuqm): Likewise.
26865         (altivec_vsubecuq): Likewise.
26866
26867         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26868         mode iterators.
26869         (BOOL_128): Likewise.
26870         (BOOL_REGS_OUTPUT): Likewise.
26871         (BOOL_REGS_OP1): Likewise.
26872         (BOOL_REGS_OP2): Likewise.
26873         (BOOL_REGS_UNARY): Likewise.
26874         (BOOL_REGS_AND_CR0): Likewise.
26875
26876         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26877         128-bit integer builtin support.
26878         (vec_vadduqm): Likewise.
26879         (vec_vaddecuq): Likewise.
26880         (vec_vaddeuqm): Likewise.
26881         (vec_vsubecuq): Likewise.
26882         (vec_vsubeuqm): Likewise.
26883         (vec_vsubcuq): Likewise.
26884         (vec_vsubuqm): Likewise.
26885
26886         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26887         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26888         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26889         128-bit integer add/subtract to ISA 2.07.
26890
26891 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26892
26893         * config/arc/arc.c (arc_predicate_delay_insns):
26894         Fix third argument passed to conditionalize_nonjump.
26895
26896 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
26897
26898         * config/aarch64/aarch64-builtins.c
26899         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26900         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26901         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26902         instead of __builtin_lfloor.
26903         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26904
26905 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26906
26907         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26908         (tree_ssa_ifcombine_bb_1): New function.
26909         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
26910         is an empty forwarder block to then_bb or vice versa and then_bb
26911         and else_bb are effectively swapped.
26912
26913 2014-03-12  Christian Bruel  <christian.bruel@st.com>
26914
26915         PR target/60264
26916         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26917         REG_CFA_DEF_CFA note.
26918         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26919         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26920
26921 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26922
26923         PR tree-optimization/60454
26924         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26925
26926 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26927
26928         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26929         Do not define target_cpu_default2 to generic.
26930         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26931         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26932         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26933
26934 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26935             Marc Glisse  <marc.glisse@inria.fr>
26936
26937         PR tree-optimization/60502
26938         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26939         instead of build_low_bits_mask.
26940
26941 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26942
26943         PR middle-end/60482
26944         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26945         if there are multiple uses, but op doesn't live on E edge.
26946         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26947         clobber stmts before __builtin_unreachable.
26948
26949 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
26950
26951         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26952         hard_frame_pointer_rtx.
26953         * cse.c (cse_insn): Remove volatile check.
26954         * cselib.c (cselib_process_insn): Likewise.
26955         * dse.c (scan_insn): Likewise.
26956
26957 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26958
26959         * config/arc/arc.c (conditionalize_nonjump): New function,
26960         broken out of ...
26961         (arc_ifcvt): ... this.
26962         (arc_predicate_delay_insns): Use it.
26963
26964 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26965
26966         * config/arc/predicates.md (extend_operand): During/after reload,
26967         allow const_int_operand.
26968         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26969         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
26970         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26971         to "i".
26972         (umulsi3_highpart_i): Likewise.
26973
26974 2014-03-11  Richard Biener  <rguenther@suse.de>
26975
26976         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26977         Add asserts to guard possible wrong-code bugs.
26978
26979 2014-03-11  Richard Biener  <rguenther@suse.de>
26980
26981         PR tree-optimization/60429
26982         PR tree-optimization/60485
26983         * tree-ssa-structalias.c (set_union_with_increment): Properly
26984         take into account all fields that overlap the shifted vars.
26985         (do_sd_constraint): Likewise.
26986         (do_ds_constraint): Likewise.
26987         (get_constraint_for_ptr_offset): Likewise.
26988
26989 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
26990
26991         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26992         (nios2_compute_frame_layout):
26993         Add calculation of cfun->machine->fp_save_offset.
26994         (nios2_expand_prologue): Correct setting of frame pointer register
26995         in prologue.
26996         (nios2_expand_epilogue): Update recovery of stack pointer from
26997         frame pointer accordingly.
26998         (nios2_initial_elimination_offset): Update calculation of offset
26999         for eliminating to HARD_FRAME_POINTER_REGNUM.
27000
27001 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
27002
27003         PR ipa/60457
27004         * ipa.c (symtab_remove_unreachable_nodes): Don't call
27005         cgraph_get_create_node on VAR_DECLs.
27006
27007 2014-03-10  Richard Biener  <rguenther@suse.de>
27008
27009         PR middle-end/60474
27010         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
27011
27012 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
27013
27014         * config/vms/vms.opt (vms_float_format): New variable.
27015
27016 2014-03-08  Tobias Burnus  <burnus@net-b.de>
27017
27018         * doc/invoke.texi (-fcilkplus): Update implementation status.
27019
27020 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
27021             Richard Biener  <rguenther@suse.de>
27022
27023         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
27024         consistently accross all TUs.
27025         (run_gcc): Enable -fshort-double automatically at link at link-time
27026         and disallow override.
27027
27028 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
27029
27030         PR target/58271
27031         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
27032         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
27033         if they can't be used.
27034
27035 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27036
27037         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
27038         for Solaris 11/x86 ld.
27039         * configure: Regenerate.
27040
27041 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27042
27043         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
27044         (LIB_TLS_SPEC): Save as ld_tls_libs.
27045         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
27046         (HAVE_AS_IX86_TLSLDM): New test.
27047         * configure, config.in: Regenerate.
27048         * config/i386/i386.c (legitimize_tls_address): Fall back to
27049         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
27050         cannot support TLS_MODEL_LOCAL_DYNAMIC.
27051         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
27052         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
27053
27054 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
27055
27056         * common.opt (fira-loop-pressure): Mark as optimization.
27057
27058 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
27059
27060         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
27061         an OpenMP mappable type.
27062
27063 2014-03-06  Matthias Klose  <doko@ubuntu.com>
27064
27065         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
27066         MULTILIB_OSDIRNAMES is not defined.
27067
27068 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
27069             Meador Inge  <meadori@codesourcery.com>
27070
27071         PR target/58595
27072         * config/arm/arm.c (arm_tls_symbol_p): Remove.
27073         (arm_legitimize_address): Call legitimize_tls_address for any
27074         arm_tls_referenced_p expression, handle constant addend.  Call it
27075         before testing for !TARGET_ARM.
27076         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
27077
27078 2014-03-06  Richard Biener  <rguenther@suse.de>
27079
27080         PR middle-end/60445
27081         PR lto/60424
27082         PR lto/60427
27083         Revert
27084         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
27085
27086         * tree-streamer.c (record_common_node): Assert we don't record
27087         nodes with type double.
27088         (preload_common_node): Skip type double, complex double and double
27089         pointer since it is now frontend dependent due to fshort-double option.
27090
27091 2014-03-06  Richard Biener  <rguenther@suse.de>
27092
27093         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
27094         or -fno-lto is specified and the linker has full plugin support.
27095         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
27096         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
27097         * lto-wrapper.c (merge_and_complain): Merge compile-time
27098         optimization levels.
27099         (run_gcc): And pass it through to the link options.
27100
27101 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
27102
27103         PR debug/60381
27104         Revert:
27105         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27106         PR debug/59992
27107         * cselib.c (remove_useless_values): Skip to avoid quadratic
27108         behavior if the condition moved from...
27109         (cselib_process_insn): ... here holds.
27110
27111 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
27112
27113         PR plugins/59335
27114         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
27115         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
27116
27117         PR plugins/59335
27118         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
27119         (TM_H): Add x86-tune.def.
27120
27121 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27122
27123         * config/aarch64/aarch64.c (generic_tunings):
27124         Use cortexa57_extra_costs.
27125
27126 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
27127
27128         PR lto/60404
27129         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
27130         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
27131         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
27132         cost for in_lto_p.
27133
27134 2014-03-04  Heiher  <r@hev.cc>
27135
27136         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
27137         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
27138
27139 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
27140
27141         * config/i386/predicates.md (const2356_operand): Change to ...
27142         (const2367_operand): ... this.
27143         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
27144         const2367_operand.
27145         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27146         (*avx512pf_scatterpf<mode>sf): Ditto.
27147         (avx512pf_scatterpf<mode>df): Ditto.
27148         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27149         (*avx512pf_scatterpf<mode>df): Ditto.
27150         * config/i386/i386.c (ix86_expand_builtin): Update
27151         incorrect hint operand error message.
27152
27153 2014-03-04  Richard Biener  <rguenther@suse.de>
27154
27155         * lto-section-in.c (lto_get_section_data): Fix const cast.
27156
27157 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
27158
27159         * tree-streamer.c (record_common_node): Assert we don't record
27160         nodes with type double.
27161         (preload_common_node): Skip type double, complex double and double
27162         pointer since it is now frontend dependent due to fshort-double option.
27163
27164 2014-03-04  Richard Biener  <rguenther@suse.de>
27165
27166         PR lto/60405
27167         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
27168         (lto_input_toplevel_asms): Likewise.
27169         * lto-section-in.c (lto_get_section_data): Instead do it here
27170         for every section.
27171
27172 2014-03-04  Richard Biener  <rguenther@suse.de>
27173
27174         PR tree-optimization/60382
27175         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
27176         dead PHIs a reduction.
27177
27178 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
27179
27180         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
27181         hint value.
27182         (_mm_prefetch): Move out of GCC target("sse") pragma.
27183         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
27184         GCC target("prfchw") pragma.
27185         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
27186         for locality <= 2.
27187         * config/i386/i386.c (ix86_option_override_internal): Enable
27188         -mprfchw with -mprefetchwt1.
27189
27190 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27191
27192         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
27193         Mark as varying.
27194
27195 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27196
27197         * opts.h (CL_PCH_IGNORE): Define.
27198         * targhooks.c (option_affects_pch_p):
27199         Return false for options that have CL_PCH_IGNORE set.
27200         * opt-functions.awk: Process PchIgnore.
27201         * doc/options.texi: Document PchIgnore.
27202
27203         * config/arc/arc.opt (misize): Add PchIgnore property.
27204
27205 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27206
27207         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
27208         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
27209         constraint on constants to permit them being loaded into
27210         GENERAL_REGS or BASE_REGS.
27211
27212 2014-03-03  Nick Clifton  <nickc@redhat.com>
27213
27214         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
27215         anti-cacnonical alternatives.
27216         (negandhi3_real): New pattern.
27217         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
27218
27219 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27220
27221         * config/avr/avr-mcus.def: Remove atxmega16x1.
27222         * config/avr/avr-tables.opt: Regenerate.
27223         * config/avr/t-multilib: Regenerate.
27224         * doc/avr-mmcu.texi: Regenerate.
27225
27226 2014-03-03  Tobias Grosser  <tobias@grosser.es>
27227             Mircea Namolaru  <mircea.namolaru@inria.fr>
27228
27229         PR tree-optimization/58028
27230         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
27231         scalar dimensions.
27232
27233 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27234
27235         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
27236         not handled by recognizers.
27237
27238 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
27239
27240         PR middle-end/60175
27241         * function.c (expand_function_end): Don't emit
27242         clobber_return_register sequence if clobber_after is a BARRIER.
27243         * cfgexpand.c (construct_exit_block): Append instructions before
27244         return_label to prev_bb.
27245
27246 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27247
27248         * config/rs6000/constraints.md: Document reserved use of "wc".
27249
27250 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
27251
27252         PR ipa/60150
27253         * ipa.c (function_and_variable_visibility): When dissolving comdat
27254         group, also set all symbols to local.
27255
27256 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
27257
27258         PR ipa/60306
27259
27260         Revert:
27261         2013-12-14  Jan Hubicka  <jh@suse.cz>
27262         PR middle-end/58477
27263         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
27264
27265 2014-03-02  Jon Beniston  <jon@beniston.com>
27266
27267         PR bootstrap/48230
27268         PR bootstrap/50927
27269         PR bootstrap/52466
27270         PR target/46898
27271         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
27272           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
27273         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
27274         (simple_return, *simple_return): New patterns
27275         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
27276         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
27277
27278 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
27279
27280         * dwarf2out.c (gen_subprogram_die): Tidy.
27281
27282 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
27283
27284         PR target/60071
27285         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
27286         (*mov_t_msb_neg_negc): ... this new insn.
27287
27288 2014-02-28  Jason Merrill  <jason@redhat.com>
27289
27290         PR c++/58678
27291         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
27292         function.
27293
27294 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
27295
27296         PR c++/60314
27297         * dwarf2out.c (decltype_auto_die): New static.
27298         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
27299         (gen_type_die_with_usage): Handle 'decltype(auto)'.
27300         (is_cxx_auto): Likewise.
27301
27302 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
27303
27304         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
27305         we are not using general regs only.
27306
27307 2014-02-28  Richard Biener  <rguenther@suse.de>
27308
27309         PR target/60280
27310         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
27311         previous fix and only allow to remove trivial pre-headers
27312         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
27313         (remove_forwarder_block): Properly update the latch of a loop.
27314
27315 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27316
27317         PR debug/59992
27318         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
27319         (cselib_preserved_hash_table): New.
27320         (preserve_constants_and_equivs): Move preserved vals to it.
27321         (cselib_find_slot): Look it up first.
27322         (cselib_init): Initialize it.
27323         (cselib_finish): Release it.
27324         (dump_cselib_table): Dump it.
27325
27326 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27327
27328         PR debug/59992
27329         * cselib.c (remove_useless_values): Skip to avoid quadratic
27330         behavior if the condition moved from...
27331         (cselib_process_insn): ... here holds.
27332
27333 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27334
27335         PR debug/57232
27336         * var-tracking.c (vt_initialize): Apply the same condition to
27337         preserve the CFA base value.
27338
27339 2014-02-28  Joey Ye  <joey.ye@arm.com>
27340
27341         PR target/PR60169
27342         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
27343         if reload in progress or completed.
27344
27345 2014-02-28  Tobias Burnus  <burnus@net-b.de>
27346
27347         PR middle-end/60147
27348         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
27349         NAMELIST_DECL.
27350
27351 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
27352
27353         * doc/tm.texi.in (Condition Code Status): Update documention for
27354         relative locations of cc0-setter and cc0-user.
27355
27356 2014-02-27  Jeff Law  <law@redhat.com>
27357
27358         PR rtl-optimization/52714
27359         * combine.c (try_combine): When splitting an unrecognized PARALLEL
27360         into two independent simple sets, if I3 is a jump, ensure the
27361         pattern we place into I3 is a (set (pc) ...).
27362
27363 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
27364             Jeff Law  <law@redhat.com>
27365
27366         PR rtl-optimization/49847
27367         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
27368         are in different blocks.
27369         * doc/tm.texi (Condition Code Status): Update documention for
27370         relative locations of cc0-setter and cc0-user.
27371
27372 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27373
27374         PR target/59222
27375         * lra.c (lra_emit_add): Check SUBREG too.
27376
27377 2014-02-27  Andreas Schwab  <schwab@suse.de>
27378
27379         * config/m68k/m68k.c (m68k_option_override): Disable
27380         -flive-range-shrinkage for classic m68k.
27381         (m68k_override_options_after_change): Likewise.
27382
27383 2014-02-27  Marek Polacek  <polacek@redhat.com>
27384
27385         PR middle-end/59223
27386         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
27387         -Wmaybe-uninitialized.
27388
27389 2014-02-27  Alan Modra  <amodra@gmail.com>
27390
27391         PR target/57936
27392         * reload1.c (emit_input_reload_insns): When reload_override_in,
27393         set old to rl->in_reg when rl->in_reg is a subreg.
27394
27395 2014-02-26  Richard Biener  <rguenther@suse.de>
27396
27397         PR bootstrap/60343
27398         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
27399
27400 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
27401
27402         * common/config/i386/predicates.md (const1256_operand): Remove.
27403         (const2356_operand): New.
27404         (const_1_to_2_operand): Remove.
27405         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27406         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27407         (*avx512pf_gatherpf<mode>sf): Ditto.
27408         (avx512pf_gatherpf<mode>df): Ditto.
27409         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27410         (*avx512pf_gatherpf<mode>df): Ditto.
27411         (avx512pf_scatterpf<mode>sf): Ditto.
27412         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27413         (*avx512pf_scatterpf<mode>sf): Ditto.
27414         (avx512pf_scatterpf<mode>df): Ditto.
27415         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27416         (*avx512pf_scatterpf<mode>df): Ditto.
27417         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
27418
27419 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
27420
27421         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
27422         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
27423         (_mm512_mask_testn_epi64_mask): Move to ...
27424         * config/i386/avx512cdintrin.h: Here.
27425         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
27426         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
27427         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
27428         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
27429         TARGET_AVX512F from TARGET_AVX512CD.
27430
27431 2014-02-26  Richard Biener  <rguenther@suse.de>
27432
27433         PR ipa/60327
27434         * ipa.c (walk_polymorphic_call_targets): Properly guard
27435         call to inline_update_overall_summary.
27436
27437 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
27438
27439         PR target/60280
27440         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
27441         and latches only if requested.  Fix latch if it is removed.
27442         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
27443         LOOPS_HAVE_PREHEADERS.
27444
27445 2014-02-25  Andrew Pinski  <apinski@cavium.com>
27446
27447         * builtins.c (expand_builtin_thread_pointer): Create a new target
27448         when the target is NULL.
27449
27450 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
27451
27452         PR rtl-optimization/60317
27453         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27454         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27455         * lra-assigns.c: Include params.h.
27456         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
27457         other reload pseudos considerations.
27458
27459 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27460
27461         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
27462         to use canonical form for nor<mode>3.
27463
27464 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27465
27466         PR target/55426
27467         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
27468         conversions.
27469
27470 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
27471
27472         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
27473         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
27474         (ix86_handle_option): Handle OPT_mprefetchwt1.
27475         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
27476         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27477         PREFETCHWT1 CPUID.
27478         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27479         OPTION_MASK_ISA_PREFETCHWT1.
27480         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
27481         (PTA_PREFETCHWT1): New.
27482         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
27483         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
27484         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
27485         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
27486         (*prefetch_avx512pf_<mode>_: Change into ...
27487         (*prefetch_prefetchwt1_<mode>: This.
27488         * config/i386/i386.opt (mprefetchwt1): New.
27489         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
27490         (_mm_prefetch): Handle intent to write.
27491         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
27492
27493 2014-02-25  Richard Biener  <rguenther@suse.de>
27494
27495         PR middle-end/60291
27496         * emit-rtl.c (mem_attrs_htab): Remove.
27497         (mem_attrs_htab_hash): Likewise.
27498         (mem_attrs_htab_eq): Likewise.
27499         (set_mem_attrs): Always allocate new mem-attrs when something changed.
27500         (init_emit_once): Do not allocate mem_attrs_htab.
27501
27502 2014-02-25  Richard Biener  <rguenther@suse.de>
27503
27504         PR lto/60319
27505         * lto-opts.c (lto_write_options): Output non-explicit conservative
27506         -fwrapv, -fno-trapv and -fno-strict-overflow.
27507         * lto-wrapper.c (merge_and_complain): Handle merging those options.
27508         (run_gcc): And pass them through.
27509
27510 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
27511
27512         * sel-sched.c (calculate_new_fences): New parameter ptime.
27513         Calculate it as a maximum over all fence cycles.
27514         (sel_sched_region_2): Adjust the call to calculate_new_fences.
27515         Print the final schedule timing when sched_verbose.
27516
27517 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
27518
27519         PR rtl-optimization/60292
27520         * sel-sched.c (fill_vec_av_set): Do not reset target availability
27521         bit fot the fence instruction.
27522
27523 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
27524
27525         * calls.h: Fix typo in comment.
27526
27527 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
27528
27529         * config/pa/pa.c (pa_output_move_double): Don't valididate when
27530         adjusting offsetable addresses.
27531
27532 2014-02-24  Guozhi Wei  <carrot@google.com>
27533
27534         * sparseset.h (sparseset_pop): Fix the wrong index.
27535
27536 2014-02-24  Walter Lee  <walt@tilera.com>
27537
27538         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
27539         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
27540         triplet.
27541         * common/config/tilegx/tilegx-common.c
27542         (TARGET_DEFAULT_TARGET_FLAGS): Define.
27543         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
27544         (LINK_SPEC): Ditto.
27545         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
27546         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
27547         (tilegx_gimplify_va_arg_expr): Handle big endian.
27548         (tilegx_expand_unaligned_load): Ditto.
27549         (tilegx_expand_unaligned_store): Ditto.
27550         (TARGET_RETURN_IN_MSB): New.
27551         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
27552         (TARGET_ENDIAN_DEFAULT): New.
27553         (TARGET_BIG_ENDIAN): Handle big endian.
27554         (BYTES_BIG_ENDIAN): Ditto.
27555         (WORDS_BIG_ENDIAN): Ditto.
27556         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
27557         (ENDIAN_SPEC): New.
27558         (EXTRA_SPECS): New.
27559         * config/tilegx/tilegx.md (extv): Handle big endian.
27560         (extzv): Ditto.
27561         (insn_st<n>): Ditto.
27562         (insn_st<n>_add<bitsuffix>): Ditto.
27563         (insn_stnt<n>): Ditto.
27564         (insn_stnt<n>_add<bitsuffix>):Ditto.
27565         (vec_interleave_highv8qi): Handle big endian.
27566         (vec_interleave_highv8qi_be): New.
27567         (vec_interleave_highv8qi_le): New.
27568         (insn_v1int_h): Handle big endian.
27569         (vec_interleave_lowv8qi): Handle big endian.
27570         (vec_interleave_lowv8qi_be): New.
27571         (vec_interleave_lowv8qi_le): New.
27572         (insn_v1int_l): Handle big endian.
27573         (vec_interleave_highv4hi): Handle big endian.
27574         (vec_interleave_highv4hi_be): New.
27575         (vec_interleave_highv4hi_le): New.
27576         (insn_v2int_h): Handle big endian.
27577         (vec_interleave_lowv4hi): Handle big endian.
27578         (vec_interleave_lowv4hi_be): New.
27579         (vec_interleave_lowv4hi_le): New.
27580         (insn_v2int_l): Handle big endian.
27581         (vec_interleave_highv2si): Handle big endian.
27582         (vec_interleave_highv2si_be): New.
27583         (vec_interleave_highv2si_le): New.
27584         (insn_v4int_h): Handle big endian.
27585         (vec_interleave_lowv2si): Handle big endian.
27586         (vec_interleave_lowv2si_be): New.
27587         (vec_interleave_lowv2si_le): New.
27588         (insn_v4int_l): Handle big endian.
27589         * config/tilegx/tilegx.opt (mbig-endian): New option.
27590         (mlittle-endian): New option.
27591         * doc/install.texi: Document tilegxbe-linux.
27592         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
27593
27594 2014-02-24  Martin Jambor  <mjambor@suse.cz>
27595
27596         PR ipa/60266
27597         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27598         there are no parameter descriptors.
27599
27600 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
27601
27602         PR rtl-optimization/60268
27603         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27604         initialization to ...
27605         (sched_rgn_init): ... here.
27606         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27607
27608 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27609
27610         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27611         names.
27612
27613 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
27614
27615         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27616         definition.
27617
27618 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27619
27620         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27621         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27622
27623 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27624
27625         * config/microblaze/predicates.md: Add cmp_op predicate.
27626         * config/microblaze/microblaze.md: Add branch_compare instruction
27627         which uses cmp_op predicate and emits cmp insn before branch.
27628         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27629         to microblaze_expand_conditional_branch and consolidate logic.
27630         (microblaze_expand_conditional_branch): emit branch_compare
27631         insn instead of handling cmp op separate from branch insn.
27632
27633 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27634
27635         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27636         to permit subregs.
27637
27638 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27639
27640         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27641         define_insn with define_expand and new define_insn
27642         *altivec_lve<VI_char>x_internal.
27643         (altivec_stve<VI_char>x): Replace define_insn with define_expand
27644         and new define_insn *altivec_stve<VI_char>x_internal.
27645         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27646         prototype.
27647         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27648         lve*x built-ins.
27649         (altivec_expand_stvex_be): New function.
27650
27651 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
27652
27653         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27654         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27655         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27656         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27657
27658 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
27659
27660         PR target/60298
27661         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27662         instead of emit_move_insn.
27663
27664 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27665
27666         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27667         vspltw with vsldoi.
27668         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27669         gen_altivec_vsumsws.
27670
27671 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27672
27673         * config/rs6000/altivec.md (altivec_lvxl): Rename as
27674         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27675         (altivec_lvxl_<mode>): New define_expand incorporating
27676         -maltivec=be semantics where needed.
27677         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27678         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27679         semantics where needed.
27680         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27681         (altivec_stvx_<mode>): New define_expand incorporating
27682         -maltivec=be semantics where needed.
27683         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27684         VM2 iterator instead of V4SI.
27685         (altivec_stvxl_<mode>): New define_expand incorporating
27686         -maltivec=be semantics where needed.
27687         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27688         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27689         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27690         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27691         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27692         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27693         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27694         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27695         ALTIVEC_BUILTIN_STVXL.
27696         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27697         (altivec_expand_stvx_be): Likewise.
27698         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27699         (altivec_expand_lvx_be): Likewise.
27700         (altivec_expand_stvx_be): Likewise.
27701         (altivec_expand_builtin): Add cases for
27702         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27703         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27704         (altivec_init_builtins): Add definitions for
27705         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27706         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27707
27708 2014-02-21  Catherine Moore  <clm@codesourcery.com>
27709
27710         * doc/invoke.texi (mvirt, mno-virt): Document.
27711         * config/mips/mips.opt (mvirt): New option.
27712         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27713
27714 2014-02-21  Richard Biener  <rguenther@suse.de>
27715
27716         PR tree-optimization/60276
27717         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27718         (STMT_VINFO_MIN_NEG_DIST): New macro.
27719         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27720         STMT_VINFO_MIN_NEG_DIST.
27721         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27722         made for negative dependence distances still hold.
27723
27724 2014-02-21  Richard Biener  <rguenther@suse.de>
27725
27726         PR middle-end/60291
27727         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27728         DECL_INITIAL for globals not in the current function context.
27729
27730 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27731
27732         PR tree-optimization/56490
27733         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27734         * tree-ssa-uninit.c: Include params.h.
27735         (compute_control_dep_chain): Add num_calls argument, return false
27736         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27737         num_calls to recursive call.
27738         (find_predicates): Change dep_chain into normal array,
27739         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27740         variable and adjust compute_control_dep_chain caller.
27741         (find_def_preds): Likewise.
27742
27743 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
27744
27745         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27746         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27747
27748 2014-02-21  Nick Clifton  <nickc@redhat.com>
27749
27750         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27751         (pushhi1): Likewise.
27752         (popqi1): Add mode to pre_dec.
27753         (pophi1): Likewise.
27754
27755 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27756
27757         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27758         mode for mask of V8SFmode permutation.
27759
27760 2014-02-20  Richard Henderson  <rth@redhat.com>
27761
27762         PR c++/60272
27763         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27764         a new pseudo for OLDVAL.
27765
27766 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
27767
27768         PR target/57896
27769         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27770         gen_reg_rtx if d->testing_p.
27771         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27772         if d->testing_p and we will certainly return true.
27773         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
27774         if d->testing_p.
27775
27776 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
27777
27778         * emit-rtl.c (gen_reg_rtx): Assert that
27779         crtl->emit.regno_pointer_align_length is non-zero.
27780
27781 2014-02-20  Richard Henderson  <rth@redhat.com>
27782
27783         PR c++/60272
27784         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27785         on failure the store back into EXPECT.
27786
27787 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
27788             Sandra Loosemore  <sandra@codesourcery.com>
27789
27790         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27791         * config/nios2/nios2.c (nios2_function_profiler): Add
27792         -fPIC (flag_pic == 2) support.
27793         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27794         (nios2_large_offset_p): New function.
27795         (nios2_unspec_reloc_p): Move up position, update to use
27796         nios2_large_offset_p.
27797         (nios2_unspec_address): Remove function.
27798         (nios2_unspec_offset): New function.
27799         (nios2_large_got_address): New function.
27800         (nios2_got_address): Add large offset support.
27801         (nios2_legitimize_tls_address): Update usage of removed and new
27802         functions.
27803         (nios2_symbol_binds_local_p): New function.
27804         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27805         (nios2_legitimize_address): Update to use nios2_large_offset_p.
27806         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27807         (nios2_print_operand): Merge H/L processing, add hiadj/lo
27808         processing for (const (unspec ...)).
27809         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27810
27811 2014-02-20  Richard Biener  <rguenther@suse.de>
27812
27813         * tree-cfg.c (replace_uses_by): Mark altered BBs before
27814         doing the substitution.
27815         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27816
27817 2014-02-20  Martin Jambor  <mjambor@suse.cz>
27818
27819         PR ipa/55260
27820         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27821         info when checking whether lattices are bottom.
27822
27823 2014-02-20  Richard Biener  <rguenther@suse.de>
27824
27825         PR middle-end/60221
27826         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27827         regions at -O0.
27828
27829 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
27830
27831         PR ipa/58555
27832         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27833         parameter specifying the scaling.
27834         (inline_call): Update.
27835         (want_inline_recursively): Guard division by zero.
27836         (recursive_inlining): Update.
27837         * ipa-inline.h (clone_inlined_nodes): Update.
27838
27839 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27840
27841         PR target/60204
27842         * config/i386/i386.c (classify_argument): Pass structures of size
27843         64 bytes or less in register.
27844
27845 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27846             Kirill Yukhin  <kirill.yukhin@intel.com>
27847
27848         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27849         (_mm_rcp28_round_ss): Ditto.
27850         (_mm_rsqrt28_round_sd): Ditto.
27851         (_mm_rsqrt28_round_ss): Ditto.
27852         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27853         (_mm_rcp14_round_ss): Ditto.
27854         (_mm_rsqrt14_round_sd): Ditto.
27855         (_mm_rsqrt14_round_ss): Ditto.
27856         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27857         the first input operand, get rid of match_dup.
27858         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27859         attribute to sse.
27860         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27861         Ditto.
27862         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27863         operand as the first input operand, set type attribute.
27864         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27865         Set type attribute.
27866         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27867         operand as the first input operand, set type attribute.
27868
27869 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27870
27871         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27872         bit of zero.
27873
27874 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
27875
27876         PR target/60207
27877         * config/i386/i386.c (construct_container): Remove TFmode check
27878         for X86_64_INTEGER_CLASS.
27879
27880 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
27881
27882         PR target/59794
27883         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27884         only when -Wpsabi is enabled.
27885
27886 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
27887
27888          PR target/59799
27889         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27890         passing arrays in registers are the same as for structs, so remove the
27891         special case for them.
27892
27893 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
27894
27895         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27896         destination type, extract only the valid bits if the source type is not
27897         integral and has a different mode.
27898
27899 2014-02-19  Richard Biener  <rguenther@suse.de>
27900
27901         PR ipa/60243
27902         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27903         for all calls.
27904
27905 2014-02-19  Richard Biener  <rguenther@suse.de>
27906
27907         PR ipa/60243
27908         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27909         (ipa_modify_call_arguments): Emit an argument load explicitely and
27910         preserve virtual SSA form there and for the replacement call.
27911         Do not update SSA form nor free dominance info.
27912
27913 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27914
27915         * ipa.c (function_and_variable_visibility): Also clear WEAK
27916         flag when disolving COMDAT_GROUP.
27917
27918 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27919
27920         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27921         * ipa-prop.c (ipa_set_jf_known_type): Return early when
27922         not devirtualizing.
27923         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27924         do more sanity checks.
27925         (detect_type_change): Return true when giving up early.
27926         (compute_complex_assign_jump_func): Fix type parameter of
27927         ipa_set_ancestor_jf.
27928         (compute_complex_ancestor_jump_func): Likewise.
27929         (update_jump_functions_after_inlining): Fix updating of
27930         ancestor function.
27931         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27932
27933 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27934
27935         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27936         inline clones when edge disappears.
27937
27938 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
27939
27940         PR target/60203
27941         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27942         Split 64-bit moves into 2 patterns.  Do not allow the use of
27943         direct move for TDmode in little endian, since the decimal value
27944         has little endian bytes within a word, but the 64-bit pieces are
27945         ordered in a big endian fashion, and normal subreg's of TDmode are
27946         not allowed.
27947         (mov<mode>_64bit_dm): Likewise.
27948         (movtd_64bit_nodm): Likewise.
27949
27950 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27951
27952         PR tree-optimization/60174
27953         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27954         statement of an SSA_NAME that occurs in an abnormal PHI node.
27955
27956 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27957
27958         PR sanitizer/60142
27959         * final.c (SEEN_BB): Remove.
27960         (SEEN_NOTE, SEEN_EMITTED): Renumber.
27961         (final_scan_insn): Don't force_source_line on second
27962         NOTE_INSN_BASIC_BLOCK.
27963
27964 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
27965
27966         PR target/60205
27967         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27968         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27969         (type_natural_mode): Warn ABI change when %zmm register is not
27970         available for AVX512F vector value passing.
27971
27972 2014-02-18  Kai Tietz  <ktietz@redhat.com>
27973
27974         PR target/60193
27975         * config/i386/i386.c (ix86_expand_prologue): Use value in
27976         rax register as displacement when restoring %r10 or %rax.
27977         Fix wrong offset when restoring both registers.
27978
27979 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27980
27981         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27982         assertion with conditional return.
27983
27984 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27985             Uros Bizjak  <ubizjak@gmail.com>
27986
27987         PR driver/60233
27988         * config/i386/driver-i386.c (host_detect_local_cpu): If
27989         YMM state is not saved by the OS, also clear has_f16c.  Move
27990         CPUID 0x80000001 handling before YMM state saving checking.
27991
27992 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
27993
27994         PR rtl-optimization/58960
27995         * haifa-sched.c (alloc_global_sched_pressure_data): New,
27996         factored out from ...
27997         (sched_init): ... here.
27998         (free_global_sched_pressure_data): New, factored out from ...
27999         (sched_finish): ... here.
28000         * sched-int.h (free_global_sched_pressure_data): Declare.
28001         * sched-rgn.c (nr_regions_initial): New static global.
28002         (haifa_find_rgns): Initialize it.
28003         (schedule_region): Disable sched-pressure for the newly
28004         generated regions.
28005
28006 2014-02-17  Richard Biener  <rguenther@suse.de>
28007
28008         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
28009         release SSA defs of pattern stmts.
28010
28011 2014-02-17  Richard Biener  <rguenther@suse.de>
28012
28013         * tree-inline.c (expand_call_inline): Release the virtual
28014         operand defined by the call we are about to inline.
28015
28016 2014-02-17  Richard Biener  <rguenther@suse.de>
28017
28018         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
28019
28020 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
28021             Ilya Tocar  <ilya.tocar@intel.com>
28022
28023         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
28024         arguments order in builtin.
28025         (_mm512_permutexvar_epi64): Ditto.
28026         (_mm512_mask_permutexvar_epi64): Ditto
28027         (_mm512_maskz_permutexvar_epi32): Ditto
28028         (_mm512_permutexvar_epi32): Ditto
28029         (_mm512_mask_permutexvar_epi32): Ditto
28030
28031 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28032
28033         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
28034         (p8_vmrgow): Likewise.
28035
28036 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28037
28038         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
28039         endian targets.
28040
28041 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
28042
28043         PR target/60203
28044         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
28045         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
28046         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
28047         using direct move instructions on ISA 2.07.  Also adjust
28048         instruction length for 64-bit.
28049         (mov<mode>_64bit, TFmode/TDmode): Likewise.
28050         (mov<mode>_32bit, TFmode/TDmode): Likewise.
28051
28052 2014-02-15  Alan Modra  <amodra@gmail.com>
28053
28054         PR target/58675
28055         PR target/57935
28056         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28057         find_replacement on parts of insn rtl that might be reloaded.
28058
28059 2014-02-15  Richard Biener  <rguenther@suse.de>
28060
28061         PR tree-optimization/60183
28062         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
28063         (tree_ssa_phiprop): Calculate and free post-dominators.
28064
28065 2014-02-14  Jeff Law  <law@redhat.com>
28066
28067         PR rtl-optimization/60131
28068         * ree.c (get_extended_src_reg): New function.
28069         (combine_reaching_defs): Use it rather than assuming location of REG.
28070         (find_and_remove_re): Verify first operand of extension is
28071         a REG before adding the insns to the copy list.
28072
28073 2014-02-14  Roland McGrath  <mcgrathr@google.com>
28074
28075         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
28076         * configure: Regenerated.
28077         * config.in: Regenerated.
28078         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
28079         instead of ASM_SHORT.
28080
28081 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
28082             Richard Earnshaw  <rearnsha@arm.com>
28083
28084         PR rtl-optimization/59535
28085         * lra-constraints.c (process_alt_operands): Encourage alternative
28086         when unassigned pseudo class is superset of the alternative class.
28087         (inherit_reload_reg): Don't inherit when optimizing for code size.
28088         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
28089         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
28090         modes not less than 4 for Thumb1.
28091
28092 2014-02-14  Kyle McMartin  <kyle@redhat.com>
28093
28094         PR pch/60010
28095         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
28096
28097 2014-02-14  Richard Biener  <rguenther@suse.de>
28098
28099         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
28100         (get_frame_arg): Drop the assert with langhook types_compatible_p.
28101         Do not strip INDIRECT_REFs.
28102
28103 2014-02-14  Richard Biener  <rguenther@suse.de>
28104
28105         PR lto/60179
28106         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
28107         DECL_FUNCTION_SPECIFIC_TARGET.
28108         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
28109         * tree-streamer-out.c (pack_ts_target_option): Remove.
28110         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
28111         (write_ts_function_decl_tree_pointers): Do not stream
28112         DECL_FUNCTION_SPECIFIC_TARGET.
28113         * tree-streamer-in.c (unpack_ts_target_option): Remove.
28114         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
28115         (lto_input_ts_function_decl_tree_pointers): Do not stream
28116         DECL_FUNCTION_SPECIFIC_TARGET.
28117
28118 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
28119
28120         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
28121         (get_initial_def_for_induction, vectorizable_induction): Ignore
28122         debug stmts when looking for exit_phi.
28123         (vectorizable_live_operation): Fix up condition.
28124
28125 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28126
28127         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
28128         nreverse() because it changes the content of original tree list.
28129
28130 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28131
28132         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
28133         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
28134
28135 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28136
28137         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
28138         GNU coding standards.
28139
28140 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
28141
28142         PR debug/60152
28143         * dwarf2out.c (gen_subprogram_die): Don't call
28144         add_calling_convention_attribute if subr_die is old_die.
28145
28146 2014-02-13  Sharad Singhai  <singhai@google.com>
28147
28148         * doc/optinfo.texi: Fix order of nodes.
28149
28150 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
28151
28152         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
28153         operands[2], not operands[3].
28154
28155 2014-02-13  Richard Biener  <rguenther@suse.de>
28156
28157         PR bootstrap/59878
28158         * doc/install.texi (ISL): Update recommended version to 0.12.2,
28159         mention the possibility of an in-tree build.
28160         (CLooG): Update recommended version to 0.18.1, mention the
28161         possibility of an in-tree build and clarify that the ISL
28162         bundled with CLooG does not work.
28163
28164 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
28165
28166         PR target/43546
28167         * expr.c (compress_float_constant): If x is a hard register,
28168         extend into a pseudo and then move to x.
28169
28170 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28171
28172         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
28173         caused by bad second argument to warning_at() with -mhotpatch and
28174         nested functions (e.g. with gfortran).
28175
28176 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
28177
28178         * opts.c (option_name): Remove "enabled by default" rider.
28179
28180 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
28181
28182         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
28183
28184 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28185             Uros Bizjak  <ubizjak@gmail.com>
28186
28187         PR target/60151
28188         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
28189         * configure: Regenerated.
28190
28191 2014-02-12  Richard Biener  <rguenther@suse.de>
28192
28193         * vec.c (vec_prefix::calculate_allocation): Move as
28194         inline variant to vec.h.
28195         (vec_prefix::calculate_allocation_1): New out-of-line version.
28196         * vec.h (vec_prefix::calculate_allocation_1): Declare.
28197         (vec_prefix::m_has_auto_buf): Rename to ...
28198         (vec_prefix::m_using_auto_storage): ... this.
28199         (vec_prefix::calculate_allocation): Inline the easy cases
28200         and dispatch to calculate_allocation_1 which doesn't need the
28201         prefix address.
28202         (va_heap::reserve): Use gcc_checking_assert.
28203         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
28204         m_using_auto_storage.
28205         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
28206         member and adjust.
28207         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
28208         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
28209         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
28210
28211 2014-02-12  Richard Biener  <rguenther@suse.de>
28212
28213         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
28214         when we found a dependence.
28215
28216 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
28217
28218         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
28219         common code...
28220         (maybe_fold_stmt): ... into this new function.
28221         * omp-low.c (lower_omp): Update comment.
28222
28223         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
28224         last use.
28225
28226         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
28227         dereference.
28228
28229 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
28230
28231         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
28232         identifiers in comments.
28233         (cortexa53_extra_costs): Likewise.
28234         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
28235         (cortexa7_extra_costs): Likewise.
28236         (cortexa12_extra_costs): Likewise.
28237         (cortexa15_extra_costs): Likewise.
28238         (v7m_extra_costs): Likewise.
28239
28240 2014-02-12  Richard Biener  <rguenther@suse.de>
28241
28242         PR middle-end/60092
28243         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
28244         of posix_memalign being successful.
28245         (lower_stmt): Restrict lowering of posix_memalign to when
28246         -ftree-bit-ccp is enabled.
28247
28248 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28249
28250         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
28251         arg_loc.
28252         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
28253
28254 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
28255
28256         PR rtl-optimization/60116
28257         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
28258         other_insn once the combination has been validated.
28259
28260 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
28261
28262         PR lto/59468
28263         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
28264         and wrapper.
28265         * ipa-devirt.c: Include demangle.h
28266         (odr_violation_reported): New static variable.
28267         (add_type_duplicate): Update odr_violations.
28268         (maybe_record_node): Add completep parameter; update it.
28269         (record_target_from_binfo): Add COMPLETEP parameter;
28270         update it as needed.
28271         (possible_polymorphic_call_targets_1): Likewise.
28272         (struct polymorphic_call_target_d): Add nonconstruction_targets;
28273         rename FINAL to COMPLETE.
28274         (record_targets_from_bases): Sanity check we found the binfo;
28275         fix COMPLETEP updating.
28276         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
28277         parameter, fix computing of COMPLETEP.
28278         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
28279         at LTO time do demangling.
28280         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
28281         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
28282         parameter.
28283         (gimple_get_virt_method_for_binfo): Likewise.
28284         * gimple-fold.h (gimple_get_virt_method_for_binfo,
28285         gimple_get_virt_method_for_vtable): Update prototypes.
28286
28287 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
28288
28289         PR target/49008
28290         * genautomata.c (add_presence_absence): Fix typo with
28291         {final_}presence_list.
28292
28293 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
28294
28295         PR target/60137
28296         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
28297         for VSX/Altivec vectors that land in GPR registers.
28298
28299 2014-02-11  Richard Henderson  <rth@redhat.com>
28300             Jakub Jelinek  <jakub@redhat.com>
28301
28302         PR debug/59776
28303         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
28304         around drhs if type conversion to lacc->type is not useless.
28305
28306 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28307
28308         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
28309         tuning struct.
28310         (cortex-a57.cortex-a53): Likewise.
28311         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
28312
28313 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28314
28315         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
28316         arm_restrict_it.
28317
28318 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
28319
28320         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
28321         add_options_for_arm_vfp3.
28322
28323 2014-02-11  Jeff Law  <law@redhat.com>
28324
28325         PR middle-end/54041
28326         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
28327         object with an undesirable mode.
28328
28329 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28330
28331         PR libgomp/60107
28332         * config/i386/sol2-9.h: New file.
28333         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
28334         *-*-solaris2.9*): Use it.
28335
28336 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
28337
28338         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
28339         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
28340
28341 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
28342
28343         * config/microblaze/microblaze.c: Extend mcpu version format
28344
28345 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
28346
28347         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
28348
28349 2014-02-10  Richard Henderson  <rth@redhat.com>
28350
28351         PR target/59927
28352         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
28353         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
28354         ms-abi vs -mno-accumulate-outgoing-args.
28355         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
28356         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
28357         respect to ms-abi.
28358
28359 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28360
28361         PR middle-end/60080
28362         * cfgexpand.c (expand_asm_operands): Attach source location to
28363         ASM_INPUT rtx objects.
28364         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
28365
28366 2014-02-10  Nick Clifton  <nickc@redhat.com>
28367
28368         * config/mn10300/mn10300.c (popcount): New function.
28369         (mn10300_expand_prologue): Include saved registers in stack usage
28370         count.
28371
28372 2014-02-10  Jeff Law  <law@redhat.com>
28373
28374         PR middle-end/52306
28375         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
28376         when changing the SET_DEST of a prior insn to avoid an input reload.
28377
28378 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28379
28380         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
28381         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
28382         -mcall-openbsd, or -mcall-linux.
28383         (CC1_ENDIAN_BIG_SPEC): Remove.
28384         (CC1_ENDIAN_LITTLE_SPEC): Remove.
28385         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28386         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
28387         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
28388         and %cc1_endian_default.
28389         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28390
28391 2014-02-10  Richard Biener  <rguenther@suse.de>
28392
28393         PR tree-optimization/60115
28394         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
28395         MEM_REF handling.  Properly verify that the accesses are not
28396         out of the objects bound.
28397
28398 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28399
28400         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
28401         coretex to cortex.
28402
28403 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28404
28405         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
28406         proper constants and fix formatting.
28407         (possible_polymorphic_call_targets): Fix formatting.
28408
28409 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
28410             Ilya Tocar  <ilya.tocar@intel.com>
28411
28412         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
28413         (_mm512_loadu_epi32): Renamed into...
28414         (_mm512_loadu_si512): This.
28415         (_mm512_storeu_epi32): Renamed into...
28416         (_mm512_storeu_si512): This.
28417         (_mm512_maskz_ceil_ps): Removed.
28418         (_mm512_maskz_ceil_pd): Ditto.
28419         (_mm512_maskz_floor_ps): Ditto.
28420         (_mm512_maskz_floor_pd): Ditto.
28421         (_mm512_floor_round_ps): Ditto.
28422         (_mm512_floor_round_pd): Ditto.
28423         (_mm512_ceil_round_ps): Ditto.
28424         (_mm512_ceil_round_pd): Ditto.
28425         (_mm512_mask_floor_round_ps): Ditto.
28426         (_mm512_mask_floor_round_pd): Ditto.
28427         (_mm512_mask_ceil_round_ps): Ditto.
28428         (_mm512_mask_ceil_round_pd): Ditto.
28429         (_mm512_maskz_floor_round_ps): Ditto.
28430         (_mm512_maskz_floor_round_pd): Ditto.
28431         (_mm512_maskz_ceil_round_ps): Ditto.
28432         (_mm512_maskz_ceil_round_pd): Ditto.
28433         (_mm512_expand_pd): Ditto.
28434         (_mm512_expand_ps): Ditto.
28435         * config/i386/i386.c (ix86_builtins): Remove
28436         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
28437         (bdesc_args): Ditto.
28438         * config/i386/predicates.md (const1256_operand): New.
28439         (const_1_to_2_operand): Ditto.
28440         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28441         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28442         (*avx512pf_gatherpf<mode>sf): Ditto.
28443         (avx512pf_gatherpf<mode>df): Ditto.
28444         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28445         (*avx512pf_gatherpf<mode>df): Ditto.
28446         (avx512pf_scatterpf<mode>sf): Ditto.
28447         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28448         (*avx512pf_scatterpf<mode>sf): Ditto.
28449         (avx512pf_scatterpf<mode>df): Ditto.
28450         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28451         (*avx512pf_scatterpf<mode>df): Ditto.
28452         (avx512f_expand<mode>): Removed.
28453         (<shift_insn><mode>3<mask_name>): Change predicate type.
28454
28455 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
28456
28457         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
28458         not at the end of datarefs vector use ordered_remove to avoid
28459         reordering datarefs vector.
28460
28461         PR c/59984
28462         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
28463         mark local addressable non-static vars as GOVD_PRIVATE
28464         instead of GOVD_LOCAL.
28465         * omp-low.c (lower_omp_for): Move gimple_bind_vars
28466         and BLOCK_VARS of gimple_bind_block to new_stmt rather
28467         than copying them.
28468
28469         PR middle-end/60092
28470         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
28471         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
28472         assume_aligned or alloc_align attributes.
28473         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
28474         arguments.  Handle also assume_aligned and alloc_align attributes.
28475         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
28476         calls to functions with assume_aligned or alloc_align attributes.
28477         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
28478
28479 2014-02-08  Terry Guo  <terry.guo@arm.com>
28480
28481         * doc/invoke.texi: Document ARM -march=armv7e-m.
28482
28483 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
28484
28485         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
28486         flag on __cilkrts_rethrow builtin.
28487
28488         PR ipa/60026
28489         * ipa-cp.c (determine_versionability): Fail at -O0
28490         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
28491         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
28492
28493         Revert:
28494         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
28495
28496         PR ipa/60026
28497         * tree-inline.c (copy_forbidden): Fail for
28498         __attribute__((optimize (0))) functions.
28499
28500 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
28501
28502         * varpool.c: Include pointer-set.h.
28503         (varpool_remove_unreferenced_decls): Variables in other partitions
28504         will not be output; be however careful to not lose information
28505         about partitioning.
28506
28507 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
28508
28509         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
28510         lookup in the vtable constructor.
28511
28512 2014-02-07  Jeff Law  <law@redhat.com>
28513
28514         PR target/40977
28515         * config/m68k/m68k.md (ashldi_extsi): Turn into a
28516         define_insn_and_split.
28517
28518         * ipa-inline.c (inline_small_functions): Fix typos.
28519
28520 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28521
28522         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
28523         (s390_can_use_return_insn): Declare.
28524         * config/s390/s390.h (EPILOGUE_USES): Define.
28525         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
28526         instructions.
28527         (s390_chunkify_start): Handle return JUMP_LABELs.
28528         (s390_early_mach): Emit a main_pool instruction on the entry edge.
28529         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
28530         (s390_can_use_return_insn): New functions.
28531         (s390_fix_long_loop_prediction): Handle conditional returns.
28532         (TARGET_SET_UP_BY_PROLOGUE): Define.
28533         * config/s390/s390.md (ANY_RETURN): New code iterator.
28534         (*creturn, *csimple_return, return, simple_return): New patterns.
28535
28536 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28537
28538         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
28539         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
28540         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
28541         REG_CFA_RESTORE list when deciding not to restore a register.
28542
28543 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28544
28545         * config/s390/s390.c: Include tree-pass.h and context.h.
28546         (s390_early_mach): New function, split out from...
28547         (s390_emit_prologue): ...here.
28548         (pass_data_s390_early_mach): New pass structure.
28549         (pass_s390_early_mach): New class.
28550         (s390_option_override): Create and register early_mach pass.
28551         Move to end of file.
28552
28553 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28554
28555         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
28556         to match for the exit block.
28557
28558 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28559
28560         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
28561         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
28562         Reject misaligned operands.
28563
28564 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28565
28566         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
28567
28568 2014-02-07  Richard Biener  <rguenther@suse.de>
28569
28570         PR middle-end/60092
28571         * gimple-low.c (lower_builtin_posix_memalign): New function.
28572         (lower_stmt): Call it to lower posix_memalign in a way
28573         to make alignment info accessible.
28574
28575 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
28576
28577         PR c++/60082
28578         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
28579         __builtin_setjmp_receiver.
28580
28581 2014-02-07  Richard Biener  <rguenther@suse.de>
28582
28583         PR middle-end/60092
28584         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
28585         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
28586         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28587         Handle BUILT_IN_POSIX_MEMALIGN.
28588         (find_func_clobbers): Likewise.
28589         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28590         (call_may_clobber_ref_p_1): Likewise.
28591
28592 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28593
28594         PR ipa/59918
28595         * ipa-devirt.c (record_target_from_binfo): Remove overactive
28596         sanity check.
28597
28598 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28599
28600         PR ipa/59469
28601         * lto-cgraph.c (lto_output_node): Use
28602         symtab_get_symbol_partitioning_class.
28603         (lto_output_varpool_node): likewise.
28604         (symtab_get_symbol_partitioning_class): Move here from
28605         lto/lto-partition.c
28606         * cgraph.h (symbol_partitioning_class): Likewise.
28607         (symtab_get_symbol_partitioning_class): Declare.
28608
28609 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28610
28611         * ggc.h (ggc_internal_cleared_alloc): New macro.
28612         * vec.h (vec_safe_copy): Handle memory stats.
28613         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28614         * target-globals.c (save_target_globals): Likewise.
28615
28616 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28617
28618         PR target/60077
28619         * expr.c (emit_move_resolve_push): Export; be bit more selective
28620         on when to clear alias set.
28621         * expr.h (emit_move_resolve_push): Declare.
28622         * function.h (struct function): Add tail_call_marked.
28623         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28624         * config/i386/i386-protos.h (ix86_expand_push): Remove.
28625         * config/i386/i386.md (TImode move expander): De not call
28626         ix86_expand_push.
28627         (FP push expanders): Preserve memory attributes.
28628         * config/i386/sse.md (push<mode>1): Remove.
28629         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28630         (ix86_expand_push): Remove.
28631         * config/i386/mmx.md (push<mode>1): Remove.
28632
28633 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28634
28635         PR rtl-optimization/60030
28636         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28637         lopart with paradoxical subreg before shifting it up by hprec.
28638
28639 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28640
28641         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28642         Remove extra newline at end of file.
28643         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28644         (arm_issue_rate): Handle cortexa57.
28645         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28646         (cortex-a57.cortex-a53): Likewise.
28647
28648 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28649
28650         PR target/59575
28651         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28652         don't record in REG_FRAME_RELATED_EXPR registers not set in that
28653         bitmask.
28654         (arm_expand_prologue): Adjust all callers.
28655         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28656         info, registers also at the lowest numbered registers side.  Use
28657         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28658         XEXP.
28659
28660         PR debug/59992
28661         * var-tracking.c (adjust_mems): Before adding a SET to
28662         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28663
28664 2014-02-06  Alan Modra  <amodra@gmail.com>
28665
28666         PR target/60032
28667         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28668         change SDmode to DDmode when lra_in_progress.
28669
28670 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28671
28672         PR middle-end/59150
28673         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28674         free_data_ref on the dr first, and before goto again also set dr
28675         to the next dr.  For simd_lane_access, free old datarefs[i] before
28676         overwriting it.  For get_vectype_for_scalar_type failure, don't
28677         free_data_ref if simd_lane_access.
28678
28679         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28680
28681         PR target/60062
28682         * tree.h (opts_for_fn): New inline function.
28683         (opt_for_fn): Define.
28684         * config/i386/i386.c (ix86_function_regparm): Use
28685         opt_for_fn (decl, optimize) instead of optimize.
28686
28687 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28688
28689         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28690         for SYMBOL_REF in large memory model.
28691
28692 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28693
28694         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28695         and crypto support.
28696         (cortex-a57): Likewise.
28697         (cortex-a57.cortex-a53): Likewise.
28698
28699 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
28700             Kugan Vivekanandarajah  <kuganv@linaro.org>
28701
28702         * config/arm/arm.c (arm_vector_alignment_reachable): Check
28703         unaligned_access.
28704         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28705
28706 2014-02-06  Richard Biener  <rguenther@suse.de>
28707
28708         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28709         set_loop_copy and initialize_original_copy_tables.
28710
28711 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
28712
28713         * config/aarch64/aarch64-simd.md
28714         (aarch64_ashr_simddi): Change QI to SI.
28715
28716 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28717             Jakub Jelinek  <jakub@redhat.com>
28718
28719         PR middle-end/60013
28720         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28721         of the dataflow.
28722
28723 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28724
28725         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28726         CODE_FOR_altivec_vpku[hw]um to
28727         CODE_FOR_altivec_vpku[hw]um_direct.
28728         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28729         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28730         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28731         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28732
28733 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28734
28735         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28736         generation for -maltivec=be.
28737         (altivec_vsumsws): Simplify redundant test.
28738
28739 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28740
28741         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28742         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28743         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28744         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28745         gen_altivec_vpkuwum.
28746         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28747         BYTES_BIG_ENDIAN.
28748         (altivec_vpks<VI_char>ss): Likewise.
28749         (altivec_vpks<VI_char>us): Likewise.
28750         (altivec_vpku<VI_char>us): Likewise.
28751         (altivec_vpku<VI_char>um): Likewise.
28752         (altivec_vpku<VI_char>um_direct): New (copy of
28753         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28754         internal use).
28755         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28756         target is little endian and -maltivec=be is not specified.
28757         (*altivec_vupkhs<VU_char>_direct): New (copy of
28758         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28759         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28760         target is little endian and -maltivec=be is not specified.
28761         (*altivec_vupkls<VU_char>_direct): New (copy of
28762         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28763         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28764         little endian and -maltivec=be is not specified.
28765         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28766         little endian and -maltivec=be is not specified.
28767
28768 2014-02-05  Richard Henderson  <rth@redhat.com>
28769
28770         PR debug/52727
28771         * combine-stack-adj.c: Revert r206943.
28772         * sched-int.h (struct deps_desc): Add last_args_size.
28773         * sched-deps.c (init_deps): Initialize it.
28774         (sched_analyze_insn): Add OUTPUT dependencies between insns that
28775         contain REG_ARGS_SIZE notes.
28776
28777 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28778
28779         * lto-cgraph.c (asm_nodes_output): Make global.
28780         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28781         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28782         (driver_handle_option): Handle OPT_fwpa.
28783
28784 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
28785
28786         PR ipa/59947
28787         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28788         a comment typo and formatting issue.  If odr_hash hasn't been
28789         created, return vNULL and set *completep to false.
28790
28791         PR middle-end/57499
28792         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28793         bb with no successors.
28794
28795 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
28796
28797         PR target/59718
28798         * doc/invoke.texi (-march): Clarify documentation for ARM.
28799         (-mtune): Likewise.
28800         (-mcpu): Likewise.
28801
28802 2014-02-05  Richard Biener  <rguenther@suse.de>
28803
28804         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28805         when not vectorizing because of too many alias checks.
28806         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28807         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28808
28809 2014-02-05  Nick Clifton  <nickc@redhat.com>
28810
28811         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28812         accept extended registers in any mode when compiling for the MN10300.
28813
28814 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
28815
28816         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28817         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28818         sanitization attributes.
28819         (can_inline_edge_p): Likewise.
28820         (sanitize_attrs_match_for_inline_p): New function.
28821
28822 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28823
28824         * ipa-prop.c (detect_type_change): Shor circuit testing of
28825         type changes on THIS pointer.
28826
28827 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
28828
28829         PR target/59777
28830         * config/pa/pa.c (legitimize_tls_address): Return original address
28831         if not passed a SYMBOL_REF rtx.
28832         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28833         addresses.
28834         (pa_emit_move_sequence): Simplify TLS source operands.
28835         (pa_legitimate_constant_p): Reject all TLS constants.
28836         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28837         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28838
28839 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28840
28841         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28842         groups when we know they are controlled by LTO.
28843         * varasm.c (default_binds_local_p_1): If object is in other partition,
28844         it will be resolved locally.
28845
28846 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28847
28848         * config/host-linux.c (linux_gt_pch_use_address): Don't
28849         use SSIZE_MAX because it is not always defined.
28850
28851 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
28852
28853         PR bootstrap/59913
28854         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28855         threshold for pseudo splitting.
28856         (update_ebb_live_info): Process call argument hard registers and
28857         hard registers from insn definition too.
28858         (max_small_class_regs_num): New constant.
28859         (inherit_in_ebb): Update live hard regs through EBBs.  Update
28860         reloads_num only for small register classes.  Don't split for
28861         outputs of jumps.
28862
28863 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
28864
28865         PR ipa/60058
28866         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28867         is non-null.
28868
28869 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28870
28871         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28872         visibility is safe.
28873
28874 2014-02-04  Marek Polacek  <polacek@redhat.com>
28875
28876         * gdbinit.in (pel): Define.
28877
28878 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28879
28880         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28881         behavior.
28882
28883 2014-02-04  Richard Biener  <rguenther@suse.de>
28884
28885         PR lto/59723
28886         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28887         in function context local.
28888         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28889         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28890         similar to LTO_imported_decl_ref.
28891
28892 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
28893
28894         PR tree-optimization/60002
28895         * cgraphclones.c (build_function_decl_skip_args): Clear
28896         DECL_LANG_SPECIFIC.
28897
28898         PR tree-optimization/60023
28899         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28900         false to gsi_replace.
28901         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28902         has been in some EH region and vec_stmt could throw, add
28903         vec_stmt into the same EH region.
28904         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28905         has no lhs, ignore it.
28906         * internal-fn.c (expand_MASK_LOAD): Likewise.
28907
28908         PR ipa/60026
28909         * tree-inline.c (copy_forbidden): Fail for
28910         __attribute__((optimize (0))) functions.
28911
28912         PR other/58712
28913         * omp-low.c (simd_clone_struct_copy): If from->inbranch
28914         is set, copy one less argument.
28915         (expand_simd_clones): Don't subtract clone_info->inbranch
28916         from simd_clone_struct_alloc argument.
28917
28918         PR rtl-optimization/57915
28919         * recog.c (simplify_while_replacing): If all unary/binary/relational
28920         operation arguments are constant, attempt to simplify those.
28921
28922         PR middle-end/59261
28923         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28924         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28925
28926 2014-02-04  Richard Biener  <rguenther@suse.de>
28927
28928         PR tree-optimization/60012
28929         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28930         TBAA disambiguation to all DDRs.
28931
28932 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28933
28934         PR target/59788
28935         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28936         (LINK_SPEC): Use it for -shared, -shared-libgcc.
28937
28938 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28939
28940         PR ipa/59882
28941         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28942
28943 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28944
28945         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28946         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28947
28948 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28949
28950         PR ipa/59831
28951         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28952         to figure out targets of polymorphic calls with known decl.
28953         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28954         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28955         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28956         (get_polymorphic_call_info): ... here.
28957         (get_polymorphic_call_info_from_invariant): New function.
28958
28959 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28960
28961         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28962         lookup via vtable pointer; check for type consistency
28963         and turn inconsitent facts into UNREACHABLE.
28964         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28965         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28966         type inconsistent querries; return UNREACHABLE instead.
28967
28968 2014-02-03  Richard Henderson  <rth@twiddle.net>
28969
28970         PR tree-opt/59924
28971         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28972         already processed this node.
28973         (normalize_one_pred_1): Pass along mark_set.
28974         (normalize_one_pred): Create and destroy a pointer_set_t.
28975         (normalize_one_pred_chain): Likewise.
28976
28977 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
28978
28979         PR gcov-profile/58602
28980         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28981
28982 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28983
28984         PR ipa/59831
28985         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28986         -fno-devirtualize; try to devirtualize by the knowledge of
28987         virtual table pointer given by aggregate propagation.
28988         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28989         (ipa_print_node_jump_functions): Dump also offset that
28990         is relevant for polymorphic calls.
28991         (determine_known_aggregate_parts): Add arg_type parameter; use it
28992         instead of determining the type from pointer type.
28993         (ipa_compute_jump_functions_for_edge): Update call of
28994         determine_known_aggregate_parts.
28995         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28996         (gimple_get_virt_method_for_binfo): ... here; simplify using
28997         vtable_pointer_value_to_vtable.
28998         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28999         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
29000         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
29001         (vtable_pointer_value_to_vtable): Break out from ...; handle also
29002         POINTER_PLUS_EXPR.
29003         (vtable_pointer_value_to_binfo): ... here.
29004         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
29005
29006 2014-02-03  Teresa Johnson  <tejohnson@google.com>
29007
29008         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
29009         redef of outer loop index variable.
29010
29011 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
29012
29013         PR c++/53017
29014         PR c++/59211
29015         * doc/extend.texi (Function Attributes): Typo.
29016
29017 2014-02-03  Cong Hou  <congh@google.com>
29018
29019         PR tree-optimization/60000
29020         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
29021         if the vectorized statement is a store.  A store statement can only
29022         appear at the end of pattern statements.
29023
29024 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
29025
29026         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
29027         (ix86_option_override_internal): Default long double to 64-bit for
29028         32-bit Bionic and to 128-bit for 64-bit Bionic.
29029
29030         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
29031         TARGET_LONG_DOUBLE_128 is true.
29032         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
29033
29034         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
29035         (mlong-double-64): Negate -mlong-double-128.
29036         (mlong-double-128): New option.
29037
29038         * config/i386/i386-c.c (ix86_target_macros): Define
29039         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
29040
29041         * doc/invoke.texi: Document -mlong-double-128.
29042
29043 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
29044
29045         PR rtl-optimization/60024
29046         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
29047
29048 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
29049
29050         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
29051
29052 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
29053
29054         PR rtl-optimization/57662
29055         * sel-sched.c (code_motion_path_driver): Do not mark already not
29056         existing blocks in the visiting bitmap.
29057
29058 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
29059
29060         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
29061         on the insn being emitted.
29062
29063 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
29064             Will Deacon  <will.deacon@arm.com>
29065
29066         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
29067
29068 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29069
29070         * config/arm/arm-tables.opt: Regenerate.
29071
29072 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29073
29074         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
29075         for vector types other than V16QImode.
29076         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
29077         define_expand, and call altivec_expand_vec_perm_le when producing
29078         code with little endian element order.
29079         (*altivec_vperm_<mode>_internal): New insn having previous
29080         behavior of altivec_vperm_<mode>.
29081         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
29082         altivec_expand_vec_perm_le when producing code with little endian
29083         element order.
29084         (*altivec_vperm_<mode>_uns_internal): New insn having previous
29085         behavior of altivec_vperm_<mode>_uns.
29086
29087 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29088
29089         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
29090         (altivec_vsumsws): Add handling for -maltivec=be with a little
29091         endian target.
29092         (altivec_vsumsws_direct): New.
29093         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
29094         gen_altivec_vsumsws.
29095
29096 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
29097
29098         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
29099         vtable_pointer_value_to_binfo): New functions.
29100         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
29101         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
29102
29103 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
29104
29105         * config/nios2/nios2.md (load_got_register): Initialize GOT
29106         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
29107         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
29108
29109 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
29110
29111         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
29112         preserverd by passthrough, do not propagate the type.
29113
29114 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29115
29116         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
29117         (mips_atomic_assign_expand_fenv): New function.
29118         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29119
29120 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29121
29122         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
29123         (__builtin_mips_set_fcsr): Likewise.
29124         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
29125         MIPS_USI_FTYPE_VOID.
29126         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
29127         (mips16_expand_set_fcsr): Likewise.
29128         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
29129         (mips16_set_fcsr_stub): Likewise.
29130         (mips16_get_fcsr_one_only_stub): New class.
29131         (mips16_set_fcsr_one_only_stub): Likewise.
29132         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
29133         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
29134         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
29135         (hard_float): New availability predicate.
29136         (mips_builtins): Add get_fcsr and set_fcsr.
29137         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
29138         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
29139         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
29140         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
29141         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
29142         patterns.
29143
29144 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29145
29146         * config/mips/mips.c (mips_one_only_stub): New class.
29147         (mips_need_mips16_rdhwr_p): Replace with...
29148         (mips16_rdhwr_stub): ...this new variable.
29149         (mips16_stub_call_address): New function.
29150         (mips16_rdhwr_one_only_stub): New class.
29151         (mips_expand_thread_pointer): Use mips16_stub_call_address.
29152         (mips_output_mips16_rdhwr): Delete.
29153         (mips_finish_stub): New function.
29154         (mips_code_end): Use it to handle rdhwr stubs.
29155
29156 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
29157
29158         PR target/60017
29159         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
29160         when calculating size of integer atomic types.
29161
29162 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
29163
29164         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
29165
29166 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
29167
29168         PR tree-optimization/60003
29169         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
29170         * profile.c (branch_prob): Use gimple_call_builtin_p
29171         to check for BUILT_IN_SETJMP_RECEIVER.
29172         * tree-inline.c (copy_bb): Call notice_special_calls.
29173
29174 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
29175
29176         PR bootstrap/59985
29177         * lra-constraints.c (process_alt_operands): Update reload_sum only
29178         on the first pass.
29179
29180 2014-01-31  Richard Henderson  <rth@redhat.com>
29181
29182         PR middle-end/60004
29183         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
29184         until after else_eh is processed.
29185
29186 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
29187
29188         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
29189         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
29190         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
29191         in smmintrin.h, remove them.
29192         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
29193         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
29194         * config/i386/i386.md (ROUND_SAE): Fix value.
29195         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
29196         (const48_operand): New.
29197         * config/i386/subst.md (round), (round_expand): Use
29198         const_4_or_8_to_11_operand.
29199         (round_saeonly), (round_saeonly_expand): Use const48_operand.
29200
29201 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
29202
29203         * config/i386/constraints.md (Yk): Swap meaning with k.
29204         * config/i386/i386.md (movhi_internal): Change Yk to k.
29205         (movqi_internal): Ditto.
29206         (*k<logic><mode>): Ditto.
29207         (*andhi_1): Ditto.
29208         (*andqi_1): Ditto.
29209         (kandn<mode>): Ditto.
29210         (*<code>hi_1): Ditto.
29211         (*<code>qi_1): Ditto.
29212         (kxnor<mode>): Ditto.
29213         (kortestzhi): Ditto.
29214         (kortestchi): Ditto.
29215         (kunpckhi): Ditto.
29216         (*one_cmplhi2_1): Ditto.
29217         (*one_cmplqi2_1): Ditto.
29218         * config/i386/sse.md (): Change k to Yk.
29219         (avx512f_load<mode>_mask): Ditto.
29220         (avx512f_blendm<mode>): Ditto.
29221         (avx512f_store<mode>_mask): Ditto.
29222         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
29223         (avx512f_storedqu<mode>_mask): Ditto.
29224         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
29225         Ditto.
29226         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
29227         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
29228         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
29229         (avx512f_maskcmp<mode>3): Ditto.
29230         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
29231         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
29232         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
29233         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
29234         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
29235         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
29236         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
29237         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
29238         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
29239         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
29240         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
29241         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
29242         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
29243         (vec_extract_lo_<mode>_maskm): Ditto.
29244         (vec_extract_hi_<mode>_maskm): Ditto.
29245         (avx512f_vternlog<mode>_mask): Ditto.
29246         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
29247         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
29248         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
29249         (avx512f_<code>v8div16qi2_mask): Ditto.
29250         (avx512f_<code>v8div16qi2_mask_store): Ditto.
29251         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
29252         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
29253         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
29254         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
29255         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29256         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29257         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29258         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29259         (avx512cd_maskb_vec_dupv8di): Ditto.
29260         (avx512cd_maskw_vec_dupv16si): Ditto.
29261         (avx512f_vpermi2var<mode>3_maskz): Ditto.
29262         (avx512f_vpermi2var<mode>3_mask): Ditto.
29263         (avx512f_vpermi2var<mode>3_mask): Ditto.
29264         (avx512f_vpermt2var<mode>3_maskz): Ditto.
29265         (*avx512f_gathersi<mode>): Ditto.
29266         (*avx512f_gathersi<mode>_2): Ditto.
29267         (*avx512f_gatherdi<mode>): Ditto.
29268         (*avx512f_gatherdi<mode>_2): Ditto.
29269         (*avx512f_scattersi<mode>): Ditto.
29270         (*avx512f_scatterdi<mode>): Ditto.
29271         (avx512f_compress<mode>_mask): Ditto.
29272         (avx512f_compressstore<mode>_mask): Ditto.
29273         (avx512f_expand<mode>_mask): Ditto.
29274         * config/i386/subst.md (mask): Change k to Yk.
29275         (mask_scalar_merge): Ditto.
29276         (sd): Ditto.
29277
29278 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
29279
29280         * doc/extend.texi (Vector Extensions): Document ?: in C++.
29281
29282 2014-01-31  Richard Biener  <rguenther@suse.de>
29283
29284         PR middle-end/59990
29285         * builtins.c (fold_builtin_memory_op): Make sure to not
29286         use a floating-point mode or a boolean or enumeral type for
29287         the copy operation.
29288
29289 2014-01-30  DJ Delorie  <dj@redhat.com>
29290
29291         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
29292         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
29293         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
29294         whenever main() has an epilogue.
29295
29296 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29297
29298         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
29299         unused variable "field".
29300         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
29301         (vsx_mergeh_<mode>): Likewise.
29302         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
29303         (altivec_vmrghh): Likewise.
29304         (altivec_vmrghw): Likewise.
29305         (altivec_vmrglb): Likewise.
29306         (altivec_vmrglh): Likewise.
29307         (altivec_vmrglw): Likewise.
29308         (altivec_vspltb): Add missing uses.
29309         (altivec_vsplth): Likewise.
29310         (altivec_vspltw): Likewise.
29311         (altivec_vspltsf): Likewise.
29312
29313 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
29314
29315         PR target/59923
29316         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
29317         frame related instructions.
29318
29319 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29320
29321         PR rtl-optimization/59959
29322         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
29323         any reload of register whose subreg is invalid.
29324
29325 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
29326
29327         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
29328         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
29329         Add missing return type - void.
29330
29331 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29332
29333         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
29334         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
29335         remove element index adjustment for endian (now handled in vsx.md
29336         and altivec.md).
29337         (altivec_expand_vec_perm_const): Use
29338         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
29339         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
29340         (vsx_xxspltw_<mode>): Adjust element index for little endian.
29341         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
29342         define_expand and a new define_insn *altivec_vspltb_internal;
29343         adjust for -maltivec=be on a little endian target.
29344         (altivec_vspltb_direct): New.
29345         (altivec_vsplth): Divide into a define_expand and a new
29346         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
29347         little endian target.
29348         (altivec_vsplth_direct): New.
29349         (altivec_vspltw): Divide into a define_expand and a new
29350         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
29351         little endian target.
29352         (altivec_vspltw_direct): New.
29353         (altivec_vspltsf): Divide into a define_expand and a new
29354         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
29355         a little endian target.
29356
29357 2014-01-30  Richard Biener  <rguenther@suse.de>
29358
29359         PR tree-optimization/59993
29360         * tree-ssa-forwprop.c (associate_pointerplus): Check we
29361         can propagate form the earlier stmt and avoid the transform
29362         when the intermediate result is needed.
29363
29364 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
29365
29366         * README.Portability: Fix typo.
29367
29368 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
29369
29370         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
29371         comparison_operator with ordered_comparison_operator.
29372
29373 2014-01-30  Nick Clifton  <nickc@redhat.com>
29374
29375         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
29376         Rename to mn10300_store_multiple_regs.
29377         * config/mn10300/mn10300.c: Likewise.
29378         * config/mn10300/mn10300.md (store_movm): Fix typo: call
29379         store_multiple_regs.
29380         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
29381         Call mn10300_store_multiple_regs.
29382
29383 2014-01-30  Nick Clifton  <nickc@redhat.com>
29384             DJ Delorie  <dj@redhat.com>
29385
29386         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
29387         %fp 2 to keep registers after it properly word-aligned.
29388         (rl78_alloc_physical_registers_umul): Handle the case where both
29389         input operands are the same.
29390
29391 2014-01-30  Richard Biener  <rguenther@suse.de>
29392
29393         PR tree-optimization/59903
29394         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
29395         check properly.
29396
29397 2014-01-30  Jason Merrill  <jason@redhat.com>
29398
29399         PR c++/59633
29400         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
29401
29402         PR c++/59645
29403         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
29404
29405 2014-01-30  Richard Biener  <rguenther@suse.de>
29406
29407         PR tree-optimization/59951
29408         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
29409
29410 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
29411
29412         PR target/59784
29413         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
29414         SFmode to DFmode case.
29415
29416 2014-01-29  DJ Delorie  <dj@redhat.com>
29417
29418         * config/msp430/msp430.opt (-minrt): New.
29419         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
29420         if -minrt given.
29421         (ENDFILE_SPEC): Likewise.
29422
29423 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
29424
29425         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
29426         (estimate_function_body_sizes): Use it.
29427
29428 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
29429
29430         PR c++/58561
29431         * dwarf2out.c (is_cxx_auto): New.
29432         (is_base_type): Use it.
29433         (gen_type_die_with_usage): Likewise.
29434
29435 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29436
29437         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
29438         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
29439         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
29440         -maltivec=be with LE targets.
29441         (vsx_mergeh_<mode>): Likewise.
29442         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
29443         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
29444         (altivec_vmrghb): Replace with define_expand and new
29445         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
29446         (altivec_vmrghb_direct): New define_insn.
29447         (altivec_vmrghh): Replace with define_expand and new
29448         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
29449         (altivec_vmrghh_direct): New define_insn.
29450         (altivec_vmrghw): Replace with define_expand and new
29451         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
29452         (altivec_vmrghw_direct): New define_insn.
29453         (*altivec_vmrghsf): Adjust for endianness.
29454         (altivec_vmrglb): Replace with define_expand and new
29455         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
29456         (altivec_vmrglb_direct): New define_insn.
29457         (altivec_vmrglh): Replace with define_expand and new
29458         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
29459         (altivec_vmrglh_direct): New define_insn.
29460         (altivec_vmrglw): Replace with define_expand and new
29461         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
29462         (altivec_vmrglw_direct): New define_insn.
29463         (*altivec_vmrglsf): Adjust for endianness.
29464         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29465         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29466         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29467         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29468         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29469         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29470         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29471         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29472
29473 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29474
29475         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
29476         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
29477         whitespace.
29478
29479 2014-01-29  Richard Biener  <rguenther@suse.de>
29480
29481         PR tree-optimization/58742
29482         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
29483         associate_pointerplus_align.
29484         (associate_pointerplus_diff): New function.
29485         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
29486         and associate_pointerplus_diff.
29487
29488 2014-01-29  Richard Biener  <rguenther@suse.de>
29489
29490         * lto-streamer.h (LTO_major_version): Bump to 3.
29491         (LTO_minor_version): Reset to 0.
29492
29493 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
29494
29495         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
29496         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
29497         (arm_file_start): Generate correct asm header for armv7ve.
29498         * config/arm/bpabi.h: Add multilib support for armv7ve.
29499         * config/arm/driver-arm.c: Change the architectures of cortex-a7
29500         and cortex-a15 to armv7ve.
29501         * config/arm/t-aprofile: Add multilib support for armv7ve.
29502         * doc/invoke.texi: Document -march=armv7ve.
29503
29504 2014-01-29  Richard Biener  <rguenther@suse.de>
29505
29506         PR tree-optimization/58742
29507         * tree-ssa-forwprop.c (associate_plusminus): Return true
29508         if we changed sth, defer EH cleanup to ...
29509         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
29510         (simplify_mult): New function.
29511
29512 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
29513
29514         PR middle-end/59917
29515         PR tree-optimization/59920
29516         * tree.c (build_common_builtin_nodes): Remove
29517         __builtin_setjmp_dispatcher initialization.
29518         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
29519         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
29520         instead of gsi_after_labels + manually skipping debug stmts.
29521         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
29522         ignore bbs with IFN_ABNORMAL_DISPATCHER.
29523         * tree-inline.c (copy_edges_for_bb): Remove
29524         can_make_abnormal_goto argument, instead add abnormal_goto_dest
29525         argument.  Ignore computed_goto_p stmts.  Don't call
29526         make_abnormal_goto_edges.  If a call might need abnormal edges
29527         for non-local gotos, see if it already has an edge to
29528         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
29529         with true argument, don't do anything then, otherwise add
29530         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
29531         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
29532         caller.
29533         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
29534         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
29535         (lower_stmt): Don't set data->calls_builtin_setjmp.
29536         (lower_builtin_setjmp): Adjust comment.
29537         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
29538         * tree-cfg.c (found_computed_goto): Remove.
29539         (factor_computed_gotos): Remove.
29540         (make_goto_expr_edges): Return bool, true for computed gotos.
29541         Don't call make_abnormal_goto_edges.
29542         (build_gimple_cfg): Don't set found_computed_goto, don't call
29543         factor_computed_gotos.
29544         (computed_goto_p): No longer static.
29545         (make_blocks): Don't set found_computed_goto.
29546         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
29547         (make_edges): If make_goto_expr_edges returns true, push bb
29548         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
29549         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
29550         vector.  Record mapping between bbs and OpenMP regions if there
29551         are any, adjust make_gimple_omp_edges caller.  Call
29552         handle_abnormal_edges.
29553         (make_abnormal_goto_edges): Remove.
29554         * tree-cfg.h (make_abnormal_goto_edges): Remove.
29555         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
29556         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
29557         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
29558         * internal-fn.def (ABNORMAL_DISPATCHER): New.
29559         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
29560         filling *region also set *region_idx to (*region)->entry->index.
29561
29562         PR other/58712
29563         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
29564         For REGs set ORIGINAL_REGNO.
29565
29566 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
29567
29568         * doc/md.texi: Mention that a target shouldn't implement
29569         vec_widen_(s|u)mul_even/odd pair if it is less efficient
29570         than hi/lo pair.
29571
29572 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
29573
29574         PR tree-optimization/59594
29575         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
29576         a copy of the datarefs vector rather than the vector itself.
29577
29578 2014-01-28  Jason Merrill  <jason@redhat.com>
29579
29580         PR c++/53756
29581         * dwarf2out.c (auto_die): New static.
29582         (gen_type_die_with_usage): Handle C++1y 'auto'.
29583         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
29584         on definition.
29585
29586 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
29587
29588         PR target/59672
29589         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
29590         (SPEC_X32): Likewise.
29591         (SPEC_64): Likewise.
29592         * config/i386/i386.c (ix86_option_override_internal): Turn off
29593         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
29594         for TARGET_16BIT.
29595         (x86_file_start): Output .code16gcc for TARGET_16BIT.
29596         * config/i386/i386.h (TARGET_16BIT): New macro.
29597         (TARGET_16BIT_P): Likewise.
29598         * config/i386/i386.opt: Add m16.
29599         * doc/invoke.texi: Document -m16.
29600
29601 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
29602
29603         PR preprocessor/59935
29604         * input.c (location_get_source_line): Bail out on when line number
29605         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29606
29607 2014-01-28  Richard Biener  <rguenther@suse.de>
29608
29609         PR tree-optimization/58742
29610         * tree-ssa-forwprop.c (associate_plusminus): Handle
29611         pointer subtraction of the form (T)(P + A) - (T)P.
29612
29613 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29614
29615         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29616         at const_int_cost.
29617
29618 2014-01-28  Richard Biener  <rguenther@suse.de>
29619
29620         Revert
29621         2014-01-28  Richard Biener  <rguenther@suse.de>
29622
29623         PR rtl-optimization/45364
29624         PR rtl-optimization/59890
29625         * var-tracking.c (local_get_addr_clear_given_value): Handle
29626         already cleared slot.
29627         (val_reset): Handle not allocated local_get_addr_cache.
29628         (vt_find_locations): Use post-order on the inverted CFG.
29629
29630 2014-01-28  Richard Biener  <rguenther@suse.de>
29631
29632         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29633
29634 2014-01-28  Richard Biener  <rguenther@suse.de>
29635
29636         PR rtl-optimization/45364
29637         PR rtl-optimization/59890
29638         * var-tracking.c (local_get_addr_clear_given_value): Handle
29639         already cleared slot.
29640         (val_reset): Handle not allocated local_get_addr_cache.
29641         (vt_find_locations): Use post-order on the inverted CFG.
29642
29643 2014-01-28  Alan Modra  <amodra@gmail.com>
29644
29645         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29646         * configure.ac <recursive call for build != host>: Define
29647         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29648         and LD_FOR_BUILD too.
29649         * configure: Regenerate.
29650
29651 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
29652
29653         * config/i386/i386.c (get_builtin_code_for_version): Separate
29654         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29655         Broadwell from Haswell.
29656
29657 2014-01-27  Steve Ellcey  <sellcey@mips.com>
29658
29659         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29660         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29661         * config/mips/mips.c (mips_option_override): Change setting
29662         of TARGET_DSP.
29663         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29664         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29665         Change from Mask to Var.
29666
29667 2014-01-27  Jeff Law  <law@redhat.com>
29668
29669         * ipa-inline.c (inline_small_functions): Fix typo.
29670
29671 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
29672
29673         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29674         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29675         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29676         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29677         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29678         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29679         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29680         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29681         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29682         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29683         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29684         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29685         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29686         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29687         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29688         (_mm512_storeu_epi64): Ditto.
29689         (_mm512_cmpge_epi32_mask): Ditto.
29690         (_mm512_cmpge_epu32_mask): Ditto.
29691         (_mm512_cmpge_epi64_mask): Ditto.
29692         (_mm512_cmpge_epu64_mask): Ditto.
29693         (_mm512_cmple_epi32_mask): Ditto.
29694         (_mm512_cmple_epu32_mask): Ditto.
29695         (_mm512_cmple_epi64_mask): Ditto.
29696         (_mm512_cmple_epu64_mask): Ditto.
29697         (_mm512_cmplt_epi32_mask): Ditto.
29698         (_mm512_cmplt_epu32_mask): Ditto.
29699         (_mm512_cmplt_epi64_mask): Ditto.
29700         (_mm512_cmplt_epu64_mask): Ditto.
29701         (_mm512_cmpneq_epi32_mask): Ditto.
29702         (_mm512_cmpneq_epu32_mask): Ditto.
29703         (_mm512_cmpneq_epi64_mask): Ditto.
29704         (_mm512_cmpneq_epu64_mask): Ditto.
29705         (_mm512_expand_pd): Ditto.
29706         (_mm512_expand_ps): Ditto.
29707         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29708         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29709         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29710         * config/i386/i386.c (ix86_builtins): Add
29711         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29712         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29713         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29714         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29715         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29716         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29717         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29718         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29719         IX86_BUILTIN_PMOVUSQW512_MEM.
29720         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29721         __builtin_ia32_pmovsqd512mem_mask,
29722         __builtin_ia32_pmovqd512mem_mask,
29723         __builtin_ia32_pmovusqw512mem_mask,
29724         __builtin_ia32_pmovsqw512mem_mask,
29725         __builtin_ia32_pmovqw512mem_mask,
29726         __builtin_ia32_pmovusdw512mem_mask,
29727         __builtin_ia32_pmovsdw512mem_mask,
29728         __builtin_ia32_pmovdw512mem_mask,
29729         __builtin_ia32_pmovqb512mem_mask,
29730         __builtin_ia32_pmovusqb512mem_mask,
29731         __builtin_ia32_pmovsqb512mem_mask,
29732         __builtin_ia32_pmovusdb512mem_mask,
29733         __builtin_ia32_pmovsdb512mem_mask,
29734         __builtin_ia32_pmovdb512mem_mask.
29735         (bdesc_args): Add __builtin_ia32_expanddf512,
29736         __builtin_ia32_expandsf512.
29737         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29738         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29739         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29740         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29741         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29742         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29743         (avx512f_<code>v8div16qi2_mask_store): This.
29744         (avx512f_expand<mode>): New.
29745
29746 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
29747
29748         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29749         New.
29750         (_mm512_mask_prefetch_i64gather_pd): Ditto.
29751         (_mm512_prefetch_i32scatter_pd): Ditto.
29752         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29753         (_mm512_prefetch_i64scatter_pd): Ditto.
29754         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29755         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29756         (_mm512_mask_prefetch_i64gather_ps): Ditto.
29757         (_mm512_prefetch_i32scatter_ps): Ditto.
29758         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29759         (_mm512_prefetch_i64scatter_ps): Ditto.
29760         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29761         * config/i386/i386-builtin-types.def: Define
29762         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29763         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29764         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29765         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29766         IX86_BUILTIN_SCATTERPFQPD.
29767         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29768         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29769         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29770         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29771         __builtin_ia32_scatterpfqps.
29772         (ix86_expand_builtin): Expand new built-ins.
29773         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29774         fix memory access data type.
29775         (*avx512pf_gatherpf<mode>_mask): Ditto.
29776         (*avx512pf_gatherpf<mode>): Ditto.
29777         (avx512pf_scatterpf<mode>): Ditto.
29778         (*avx512pf_scatterpf<mode>_mask): Ditto.
29779         (*avx512pf_scatterpf<mode>): Ditto.
29780         (GATHER_SCATTER_SF_MEM_MODE): New.
29781         (avx512pf_gatherpf<mode>df): Ditto.
29782         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29783         (*avx512pf_scatterpf<mode>df): Ditto.
29784
29785 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
29786
29787         PR bootstrap/59934
29788         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29789         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29790         reached.
29791
29792 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29793
29794         * common/config/arm/arm-common.c
29795         (arm_rewrite_mcpu): Handle multiple names.
29796         * config/arm/arm.h
29797         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29798
29799 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29800
29801         * gimple-builder.h (create_gimple_tmp): Delete.
29802
29803 2014-01-27  Christian Bruel  <christian.bruel@st.com>
29804
29805         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29806         words comparisons.
29807
29808 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
29809
29810         * config/pa/pa.md (call): Generate indirect long calls to non-local
29811         functions when outputing 32-bit code.
29812         (call_value): Likewise except for special call to buggy powf function.
29813
29814         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29815         portable runtime and PIC indirect calls.
29816         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29817         and PIC call sequences.  Use ldo instead of blr to set return register
29818         in PIC call sequence.
29819
29820 2014-01-25  Walter Lee  <walt@tilera.com>
29821
29822         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29823         avoid clobbering a live register.
29824
29825 2014-01-25  Walter Lee  <walt@tilera.com>
29826
29827         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29828         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29829         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29830         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29831
29832 2014-01-25  Walter Lee  <walt@tilera.com>
29833
29834         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29835         arguments on even registers.
29836         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29837         STACK_BOUNDARY.
29838         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29839         (BIGGEST_ALIGNMENT): Ditto.
29840         (BIGGEST_FIELD_ALIGNMENT): Ditto.
29841
29842 2014-01-25  Walter Lee  <walt@tilera.com>
29843
29844         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29845         insns before bundling.
29846         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29847
29848 2014-01-25  Walter Lee  <walt@tilera.com>
29849
29850         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29851         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29852         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29853
29854 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29855
29856         * config/mips/constraints.md (kl): Delete.
29857         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29858         define expands, using...
29859         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29860         instructions for MIPS16.
29861         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29862         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29863
29864 2014-01-25  Walter Lee  <walt@tilera.com>
29865
29866         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29867         (clzdi2): Ditto.
29868         (ffsdi2): Ditto.
29869
29870 2014-01-25  Walter Lee  <walt@tilera.com>
29871
29872         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29873         (TARGET_EXPAND_TO_RTL_HOOK): Define.
29874
29875 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29876
29877         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29878         Handle XOR.
29879
29880 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
29881
29882         * print-rtl.c (in_call_function_usage): New var.
29883         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29884         EXPR_LIST mode as mode and not as reg note name.
29885
29886         PR middle-end/59561
29887         * cfgloopmanip.c (copy_loop_info): If
29888         loop->warned_aggressive_loop_optimizations, make sure
29889         the flag is set in target loop too.
29890
29891 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
29892
29893         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29894         flag_cilkplus.
29895         * builtins.def: Likewise.
29896         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29897         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29898         * ira.c (ira_setup_eliminable_regset): Likewise.
29899         * omp-low.c (gate_expand_omp): Likewise.
29900         (execute_lower_omp): Likewise.
29901         (diagnose_sb_0): Likewise.
29902         (gate_diagnose_omp_blocks): Likewise.
29903         (simd_clone_clauses_extract): Likewise.
29904         (gate): Likewise.
29905
29906 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29907
29908         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29909         correction for little endian...
29910         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29911         here.
29912
29913 2014-01-24  Jeff Law  <law@redhat.com>
29914
29915         PR tree-optimization/59919
29916         * tree-vrp.c (find_assert_locations_1): Do not register asserts
29917         for non-returning calls.
29918
29919 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
29920
29921         * common/config/aarch64/aarch64-common.c
29922         (aarch64_rewrite_mcpu): Handle multiple names.
29923         * config/aarch64/aarch64.h
29924         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29925
29926 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
29927
29928         * input.c (add_file_to_cache_tab): Handle the case where fopen
29929         returns NULL.
29930
29931 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
29932
29933         PR target/59929
29934         * config/i386/i386.md (pushsf splitter): Get stack adjustment
29935         from push operand if code of push isn't PRE_DEC.
29936
29937 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
29938
29939         PR target/59909
29940         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29941         -mquad-memory-atomic.  Update -mquad-memory documentation to say
29942         it is only used for non-atomic loads/stores.
29943
29944         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29945         -mquad-memory or -mquad-memory-atomic switches.
29946
29947         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29948         -mquad-memory-atomic to ISA 2.07 support.
29949
29950         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29951         to separate support of normal quad word memory operations (ldq, stq)
29952         from the atomic quad word memory operations.
29953
29954         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29955         support to separate non-atomic quad word operations from atomic
29956         quad word operations.  Disable non-atomic quad word operations in
29957         little endian mode so that we don't have to swap words after the
29958         load and before the store.
29959         (quad_load_store_p): Add comment about atomic quad word support.
29960         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29961         options printed with -mdebug=reg.
29962
29963         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29964         -mquad-memory-atomic as the test for whether we have quad word
29965         atomic instructions.
29966         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29967         or -mp8-vector are used, allow byte/half-word atomic operations.
29968
29969         * config/rs6000/sync.md (load_lockedti): Insure that the address
29970         is a proper indexed or indirect address for the lqarx instruction.
29971         On little endian systems, swap the hi/lo registers after the lqarx
29972         instruction.
29973         (load_lockedpti): Use indexed_or_indirect_operand predicate to
29974         insure the address is valid for the lqarx instruction.
29975         (store_conditionalti): Insure that the address is a proper indexed
29976         or indirect address for the stqcrx. instruction.  On little endian
29977         systems, swap the hi/lo registers before doing the stqcrx.
29978         instruction.
29979         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29980         insure the address is valid for the stqcrx. instruction.
29981
29982         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29983         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29984         type of quad memory support is available.
29985
29986 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
29987
29988         PR regression/59915
29989         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29990         there is a danger of looping.
29991
29992 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
29993
29994         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29995         force flag_ira_loop_pressure if set via command line.
29996
29997 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29998
29999         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
30000         (ashr_simd): New builtin handling DI mode.
30001         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
30002         (aarch64_sshr_simddi): New match pattern.
30003         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
30004         (vshrd_n_s64): Likewise.
30005         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
30006
30007 2014-01-23  Nick Clifton  <nickc@redhat.com>
30008
30009         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
30010         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
30011         favour of mcu specific scripts.
30012         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
30013         430x multilibs.
30014
30015 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
30016             Alex Velenko  <Alex.Velenko@arm.com>
30017
30018         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
30019         (vaddv_s16): Likewise.
30020         (vaddv_s32): Likewise.
30021         (vaddv_u8): Likewise.
30022         (vaddv_u16): Likewise.
30023         (vaddv_u32): Likewise.
30024         (vaddvq_s8): Likewise.
30025         (vaddvq_s16): Likewise.
30026         (vaddvq_s32): Likewise.
30027         (vaddvq_s64): Likewise.
30028         (vaddvq_u8): Likewise.
30029         (vaddvq_u16): Likewise.
30030         (vaddvq_u32): Likewise.
30031         (vaddvq_u64): Likewise.
30032         (vaddv_f32): Likewise.
30033         (vaddvq_f32): Likewise.
30034         (vaddvq_f64): Likewise.
30035         (vmaxv_f32): Likewise.
30036         (vmaxv_s8): Likewise.
30037         (vmaxv_s16): Likewise.
30038         (vmaxv_s32): Likewise.
30039         (vmaxv_u8): Likewise.
30040         (vmaxv_u16): Likewise.
30041         (vmaxv_u32): Likewise.
30042         (vmaxvq_f32): Likewise.
30043         (vmaxvq_f64): Likewise.
30044         (vmaxvq_s8): Likewise.
30045         (vmaxvq_s16): Likewise.
30046         (vmaxvq_s32): Likewise.
30047         (vmaxvq_u8): Likewise.
30048         (vmaxvq_u16): Likewise.
30049         (vmaxvq_u32): Likewise.
30050         (vmaxnmv_f32): Likewise.
30051         (vmaxnmvq_f32): Likewise.
30052         (vmaxnmvq_f64): Likewise.
30053         (vminv_f32): Likewise.
30054         (vminv_s8): Likewise.
30055         (vminv_s16): Likewise.
30056         (vminv_s32): Likewise.
30057         (vminv_u8): Likewise.
30058         (vminv_u16): Likewise.
30059         (vminv_u32): Likewise.
30060         (vminvq_f32): Likewise.
30061         (vminvq_f64): Likewise.
30062         (vminvq_s8): Likewise.
30063         (vminvq_s16): Likewise.
30064         (vminvq_s32): Likewise.
30065         (vminvq_u8): Likewise.
30066         (vminvq_u16): Likewise.
30067         (vminvq_u32): Likewise.
30068         (vminnmv_f32): Likewise.
30069         (vminnmvq_f32): Likewise.
30070         (vminnmvq_f64): Likewise.
30071
30072 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
30073
30074         * config/aarch64/aarch64-simd.md
30075         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
30076         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
30077         (*aarch64_mul3_elt<mode>): Likewise.
30078         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
30079         (*aarch64_mul3_elt_to_64v2df): Likewise.
30080         (*aarch64_mla_elt<mode>): Likewise.
30081         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
30082         (*aarch64_mls_elt<mode>): Likewise.
30083         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
30084         (*aarch64_fma4_elt<mode>): Likewise.
30085         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
30086         (*aarch64_fma4_elt_to_64v2df): Likewise.
30087         (*aarch64_fnma4_elt<mode>): Likewise.
30088         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
30089         (*aarch64_fnma4_elt_to_64v2df): Likewise.
30090         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
30091         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
30092         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
30093         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
30094         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
30095         (aarch64_sqdmull_lane<mode>_internal): Likewise.
30096         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
30097
30098 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
30099
30100         * config/aarch64/aarch64-simd.md
30101         (aarch64_be_checked_get_lane<mode>): New define_expand.
30102         * config/aarch64/aarch64-simd-builtins.def
30103         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
30104         New builtin definition.
30105         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
30106         Use new safe be builtin.
30107
30108 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
30109
30110         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
30111         New define_insn.
30112         (aarch64_be_st1<mode>): Likewise.
30113         (aarch_ld1<VALL:mode>): Define_expand modified.
30114         (aarch_st1<VALL:mode>): Likewise.
30115         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
30116         (UNSPEC_ST1): Likewise.
30117
30118 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
30119
30120         * config/microblaze/microblaze.md: Add trap insn and attribute
30121
30122 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
30123
30124         PR preprocessor/58580
30125         * input.h (location_get_source_line): Take an additional line_size
30126         parameter.
30127         (void diagnostics_file_cache_fini): Declare new function.
30128         * input.c (struct fcache): New type.
30129         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
30130         New static constants.
30131         (diagnostic_file_cache_init, total_lines_num)
30132         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
30133         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
30134         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
30135         (get_next_line, read_next_line, goto_next_line, read_line_num):
30136         New static function definitions.
30137         (diagnostic_file_cache_fini): New function.
30138         (location_get_source_line): Take an additional output line_len
30139         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
30140         read_line_num.
30141         * diagnostic.c (diagnostic_finish): Call
30142         diagnostic_file_cache_fini.
30143         (adjust_line): Take an additional input parameter for the length
30144         of the line, rather than calculating it with strlen.
30145         (diagnostic_show_locus): Adjust the use of
30146         location_get_source_line and adjust_line with respect to their new
30147         signature.  While displaying a line now, do not stop at the first
30148         null byte.  Rather, display the zero byte as a space and keep
30149         going until we reach the size of the line.
30150         * Makefile.in: Add vec.o to OBJS-libcommon
30151
30152 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
30153             Ilya Tocar  <ilya.tocar@intel.com>
30154
30155         * config/i386/avx512fintrin.h (_mm512_kmov): New.
30156         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
30157         (__builtin_ia32_kmov16): Ditto.
30158         * config/i386/i386.md (UNSPEC_KMOV): New.
30159         (kmovw): Ditto.
30160
30161 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
30162
30163         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
30164         (_mm512_storeu_si512): Ditto.
30165
30166 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
30167
30168         PR target/52125
30169         * rtl.h (get_referenced_operands): Declare.
30170         * recog.c (get_referenced_operands): New function.
30171         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
30172         operands have been referenced when recording LO_SUM references.
30173
30174 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
30175
30176         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
30177
30178 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
30179
30180         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
30181         Enable for generic and recent AMD targets.
30182
30183 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
30184
30185         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
30186         ARG_SIZE note when adjustment was eliminated.
30187
30188 2014-01-22  Jeff Law  <law@redhat.com>
30189
30190         PR tree-optimization/59597
30191         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
30192         in file.  Accept new argument REGISTERING and use it to modify
30193         dump output appropriately.
30194         (register_jump_thread): Corresponding changes.
30195         (mark_threaded_blocks): Reinstate code to cancel unprofitable
30196         thread paths involving joiner blocks.  Add code to dump cancelled
30197         jump threading paths.
30198
30199 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
30200
30201         PR rtl-optimization/59477
30202         * lra-constraints.c (inherit_in_ebb): Process call for living hard
30203         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
30204
30205 2014-01-22  Tom Tromey  <tromey@redhat.com>
30206
30207         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
30208         PARAMS.
30209         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
30210
30211 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30212
30213         PR rtl-optimization/59896
30214         * lra-constraints.c (process_alt_operands): Check unused note for
30215         matched operands of insn with no output reloads.
30216
30217 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
30218
30219         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
30220         (mips_move_from_gpr_cost): Likewise.
30221
30222 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30223
30224         PR rtl-optimization/59858
30225         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
30226         ira_class_hard_regs_num.
30227         (process_alt_operands): Increase reject for dying matched operand.
30228
30229 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
30230
30231         PR target/59003
30232         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
30233         smaller than size, perform several stores or loads and stores
30234         at dst + count - size to store or copy all of size bytes, rather
30235         than just last modesize bytes.
30236
30237 2014-01-20  DJ Delorie  <dj@redhat.com>
30238
30239         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
30240         that CLOBBERs are REGs before propogating their values.
30241
30242 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
30243
30244         PR middle-end/59789
30245         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
30246         (cgraph_inline_failed_type): New function.
30247         * cgraph.h (DEFCIFCODE): Add type.
30248         (cgraph_inline_failed_type_t): New enum.
30249         (cgraph_inline_failed_type): New prototype.
30250         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
30251         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30252         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
30253         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
30254         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
30255         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
30256         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
30257         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
30258         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
30259         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
30260         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
30261         OPTIMIZATION_MISMATCH.
30262         * tree-inline.c (expand_call_inline): Emit errors during
30263         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
30264
30265 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
30266
30267         PR target/59685
30268         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
30269         mode attribute in insn output.
30270
30271 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
30272
30273         * output.h (output_constant): Delete.
30274         * varasm.c (output_constant): Make private.
30275
30276 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
30277
30278         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
30279
30280 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
30281
30282         PR middle-end/59860
30283         * tree.h (fold_builtin_strcat): New prototype.
30284         * builtins.c (fold_builtin_strcat): No longer static.  Add len
30285         argument, if non-NULL, don't call c_strlen.  Optimize
30286         directly into __builtin_memcpy instead of __builtin_strcpy.
30287         (fold_builtin_2): Adjust fold_builtin_strcat caller.
30288         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
30289
30290 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
30291
30292         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30293         for SImode_address_operand operands, having only a REG argument.
30294
30295 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30296
30297         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
30298         loader name using mbig-endian.
30299         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
30300
30301 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
30302
30303         * doc/invoke.texi (-march): Clarify documentation for AArch64.
30304         (-mtune): Likewise.
30305         (-mcpu): Likewise.
30306
30307 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
30308
30309         * config/aarch64/aarch64-protos.h
30310         (aarch64_cannot_change_mode_class_ptr): Declare.
30311         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
30312         aarch64_cannot_change_mode_class_ptr): New.
30313         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
30314         backend hook aarch64_cannot_change_mode_class.
30315
30316 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
30317
30318         * common/config/aarch64/aarch64-common.c
30319         (aarch64_handle_option): Don't handle any option order logic here.
30320         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
30321         selected_cpu, warn on architecture version mismatch.
30322         (aarch64_override_options): Fix parsing order for option strings.
30323
30324 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30325             Iain Sandoe  <iain@codesourcery.com>
30326
30327         PR bootstrap/59496
30328         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
30329         warning.  Amend comment to reflect current functionality.
30330
30331 2014-01-20  Richard Biener  <rguenther@suse.de>
30332
30333         PR middle-end/59860
30334         * builtins.c (fold_builtin_strcat): Remove case better handled
30335         by tree-ssa-strlen.c.
30336
30337 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
30338
30339         * config/aarch64/aarch64.opt
30340         (mcpu, march, mtune): Make case-insensitive.
30341
30342 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
30343
30344         PR target/59880
30345         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30346         if operands[1] is a REG or ZERO_EXTEND of a REG.
30347
30348 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
30349
30350         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
30351
30352 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
30353
30354         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
30355         long non-pic millicode calls.
30356
30357 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30358
30359         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
30360
30361 2014-01-19  Kito Cheng  <kito@0xlab.org>
30362
30363         * builtins.c (expand_movstr): Check movstr expand done or fail.
30364
30365 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30366             H.J. Lu  <hongjiu.lu@intel.com>
30367
30368         PR target/59379
30369         * config/i386/i386.md (*lea<mode>): Zero-extend return register
30370         to DImode for zero-extended addresses.
30371
30372 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
30373
30374         PR rtl-optimization/57763
30375         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
30376         on the new indirect jump_insn and increment LABEL_NUSES (label).
30377
30378 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
30379
30380         PR bootstrap/59580
30381         PR bootstrap/59583
30382         * config.gcc (x86_archs): New variable.
30383         (x86_64_archs): Likewise.
30384         (x86_cpus): Likewise.
30385         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
30386         --with-arch/--with-cpu= options.
30387         Support --with-arch=/--with-cpu={nehalem,westmere,
30388         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
30389
30390 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30391
30392         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
30393         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
30394
30395 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30396
30397         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
30398
30399 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
30400
30401         PR target/58944
30402         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
30403         clear cpp_get_options (parse_in)->warn_unused_macros for
30404         ix86_target_macros_internal with cpp_define.
30405
30406 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
30407
30408         * jump.c (delete_related_insns): Keep (use (insn))s.
30409         * reorg.c (redundant_insn): Check for barriers too.
30410
30411 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30412
30413         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
30414
30415 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
30416
30417         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
30418         call to $$dyncall when TARGET_LONG_CALLS is true.
30419
30420 2014-01-17  Jeff Law  <law@redhat.com>
30421
30422         * ree.c (combine_set_extension): Temporarily disable test for
30423         changing number of hard registers.
30424
30425 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
30426
30427         PR middle-end/58125
30428         * ipa-inline-analysis.c (inline_free_summary):
30429         Do not free summary of aliases.
30430
30431 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
30432
30433         PR middle-end/59706
30434         * gimplify.c (gimplify_expr): Use create_tmp_var
30435         instead of create_tmp_var_raw.  If cond doesn't have
30436         integral type, don't add the IFN_ANNOTATE builtin at all.
30437
30438 2014-01-17  Martin Jambor  <mjambor@suse.cz>
30439
30440         PR ipa/59736
30441         * ipa-cp.c (prev_edge_clone): New variable.
30442         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
30443         Also resize prev_edge_clone vector.
30444         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
30445         (ipcp_edge_removal_hook): New function.
30446         (ipcp_driver): Register ipcp_edge_removal_hook.
30447
30448 2014-01-17  Andrew Pinski  <apinski@cavium.com>
30449             Steve Ellcey  <sellcey@mips.com>
30450
30451         PR target/59462
30452         * config/mips/mips.c (mips_print_operand): Check operand mode instead
30453         of operator mode.
30454
30455 2014-01-17  Jeff Law  <law@redhat.com>
30456
30457         PR middle-end/57904
30458         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
30459         so that pass_ccp runs first.
30460
30461 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30462
30463         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
30464         (ix86_adjust_cost): Use !TARGET_XXX.
30465         (do_reorder_for_imul): Likewise.
30466         (swap_top_of_ready_list): Likewise.
30467         (ix86_sched_reorder): Likewise.
30468
30469 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30470
30471         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30472         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
30473         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
30474         (intel_memset): New.  Duplicate slm_memset.
30475         (intel_cost): New.  Duplicate slm_cost.
30476         (m_INTEL): New macro.
30477         (processor_target_table): Add "intel".
30478         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
30479         with PROCESSOR_INTEL for "intel".
30480         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
30481         PROCESSOR_SILVERMONT.
30482         (ix86_issue_rate): Likewise.
30483         (ix86_adjust_cost): Likewise.
30484         (ia32_multipass_dfa_lookahead): Likewise.
30485         (swap_top_of_ready_list): Likewise.
30486         (ix86_sched_reorder): Likewise.
30487         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
30488         instead of TARGET_OPT_AGU.
30489         * config/i386/i386.h (TARGET_INTEL): New.
30490         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
30491         (processor_type): Add PROCESSOR_INTEL.
30492         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
30493         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
30494
30495 2014-01-17  Marek Polacek  <polacek@redhat.com>
30496
30497         PR c/58346
30498         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
30499         size is zero.
30500
30501 2014-01-17  Richard Biener  <rguenther@suse.de>
30502
30503         PR tree-optimization/46590
30504         * opts.c (default_options_table): Add entries for
30505         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
30506         all enabled at -O1 but not for -Og.
30507         * common.opt (fbranch-count-reg): Remove Init(1).
30508         (fmove-loop-invariants): Likewise.
30509         (ftree-pta): Likewise.
30510
30511 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
30512
30513         * config/i386/i386.c (ix86_data_alignment): For compatibility with
30514         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
30515         decls to at least the GCC 4.8 used alignments.
30516
30517         PR fortran/59440
30518         * tree-nested.c (convert_nonlocal_reference_stmt,
30519         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
30520         of GIMPLE_BIND stmts, adjust associated decls.
30521
30522 2014-01-17  Richard Biener  <rguenther@suse.de>
30523
30524         PR tree-optimization/46590
30525         * vec.h (vec<>::bseach): New member function implementing
30526         binary search according to C89 bsearch.
30527         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
30528         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
30529         bitmap pointer again.  Make accesses_in_loop a flat array.
30530         (mem_ref_obstack): New global.
30531         (outermost_indep_loop): Adjust for mem_ref->stored changes.
30532         (mark_ref_stored): Likewise.
30533         (ref_indep_loop_p_2): Likewise.
30534         (set_ref_stored_in_loop): New helper function.
30535         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
30536         (memref_free): Adjust.
30537         (record_mem_ref_loc): Simplify.
30538         (gather_mem_refs_stmt): Adjust.
30539         (sort_locs_in_loop_postorder_cmp): New function.
30540         (analyze_memory_references): Sort accesses_in_loop after
30541         loop postorder number.
30542         (find_ref_loc_in_loop_cmp): New function.
30543         (for_all_locs_in_loop): Find relevant cluster of locs in
30544         accesses_in_loop and iterate without recursion.
30545         (execute_sm): Avoid uninit warning.
30546         (struct ref_always_accessed): Simplify.
30547         (ref_always_accessed::operator ()): Likewise.
30548         (ref_always_accessed_p): Likewise.
30549         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
30550         loop postorder numbers here.
30551         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
30552         numbers.
30553
30554 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
30555
30556         PR c++/57945
30557         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
30558         on decls for which assemble_alias has been called.
30559
30560 2014-01-17  Nick Clifton  <nickc@redhat.com>
30561
30562         * config/msp430/msp430.opt: (mcpu): New option.
30563         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
30564         (msp430_option_override): Parse target_cpu.  If the MCU name
30565         matches a generic string, clear target_mcu.
30566         (msp430_attr): Allow numeric interrupt values up to 63.
30567         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
30568         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
30569         option.
30570         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
30571         Add mcpu matches.
30572         * config/msp430/msp430.md (popm): Use %J rather than %I.
30573         (addsi3): Use msp430_nonimmediate_operand for operand 2.
30574         (addhi_cy_i): Use immediate_operand for operand 2.
30575         * doc/invoke.texi: Document -mcpu option.
30576
30577 2014-01-17  Richard Biener  <rguenther@suse.de>
30578
30579         PR rtl-optimization/38518
30580         * df.h (df_analyze_loop): Declare.
30581         * df-core.c: Include cfgloop.h.
30582         (df_analyze_1): Split out main part of df_analyze.
30583         (df_analyze): Adjust.
30584         (loop_inverted_post_order_compute): New function.
30585         (loop_post_order_compute): Likewise.
30586         (df_analyze_loop): New function avoiding whole-function
30587         postorder computes.
30588         * loop-invariant.c (find_defs): Use df_analyze_loop.
30589         (find_invariants): Adjust.
30590         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
30591
30592 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30593
30594         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
30595         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30596
30597 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
30598
30599         * ipa-ref.c (ipa_remove_stmt_references): Fix references
30600         traversal when removing references.
30601
30602 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
30603
30604         PR ipa/59775
30605         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30606
30607 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
30608
30609         PR middle-end/56791
30610         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30611         pushing a reload for an autoinc when we had previously reloaded an
30612         inner part of the address.
30613
30614 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
30615
30616         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30617         field.
30618         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30619         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30620         when not giving up or versioning for alias only because of
30621         loop->safelen.
30622         (vect_analyze_data_ref_dependences): Set to true.
30623         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30624         is a GIMPLE_PHI.
30625         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30626         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30627         to the condition.
30628
30629         PR middle-end/58344
30630         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30631
30632         PR target/59839
30633         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30634         operand 0 predicate for gathers, use a new pseudo as subtarget.
30635
30636 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
30637
30638         PR middle-end/59609
30639         * lra-constraints.c (process_alt_operands): Add printing debug info.
30640         Check absence of input/output reloads for matched operands too.
30641
30642 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
30643
30644         PR rtl-optimization/59835
30645         * ira.c (ira_init_register_move_cost): Increase cost for
30646         impossible modes.
30647
30648 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
30649
30650         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30651
30652 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
30653
30654         PR target/59780
30655         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30656         non-register objects.  Use gen_(high/low)part more consistently.
30657         Fix assertions.
30658
30659 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
30660
30661         PR target/59844
30662         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30663         endian support, remove tests for WORDS_BIG_ENDIAN.
30664         (p8_mfvsrd_3_<mode>): Likewise.
30665         (reload_gpr_from_vsx<mode>): Likewise.
30666         (reload_gpr_from_vsxsf): Likewise.
30667         (p8_mfvsrd_4_disf): Likewise.
30668
30669 2014-01-16  Richard Biener  <rguenther@suse.de>
30670
30671         PR rtl-optimization/46590
30672         * lcm.c (compute_antinout_edge): Use postorder iteration.
30673         (compute_laterin): Use inverted postorder iteration.
30674
30675 2014-01-16  Nick Clifton  <nickc@redhat.com>
30676
30677         PR middle-end/28865
30678         * varasm.c (output_constant): Return the number of bytes actually
30679         emitted.
30680         (output_constructor_array_range): Update the field size with the
30681         number of bytes emitted by output_constant.
30682         (output_constructor_regular_field): Likewise.  Also do not
30683         complain if the total number of bytes emitted is now greater
30684         than the expected fieldpos.
30685         * output.h (output_constant): Update prototype and descriptive comment.
30686
30687 2014-01-16  Marek Polacek  <polacek@redhat.com>
30688
30689         PR middle-end/59827
30690         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30691         it is error_mark_node.
30692
30693 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
30694
30695         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30696         VALID_AVX256_REG_OR_OI_MODE.
30697
30698 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
30699
30700         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30701         current procedure should be profiled.
30702
30703 2014-01-15  Andrew Pinski  <apinski@cavium.com>
30704
30705         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30706         of moving from/to the STACK_REG register class.
30707
30708 2014-01-15  Richard Henderson  <rth@redhat.com>
30709
30710         PR debug/54694
30711         * reginfo.c (global_regs_decl): Globalize.
30712         * rtl.h (global_regs_decl): Declare.
30713         * ira.c (do_reload): Diagnose frame_pointer_needed and it
30714         reserved via global_regs.
30715
30716 2014-01-15  Teresa Johnson  <tejohnson@google.com>
30717
30718         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30719
30720 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
30721
30722         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30723         and vmulosh rather than call gen_vec_widen_smult_*.
30724         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30725         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30726         (vec_widen_smult_even_v16qi): Likewise.
30727         (vec_widen_umult_even_v8hi): Likewise.
30728         (vec_widen_smult_even_v8hi): Likewise.
30729         (vec_widen_umult_odd_v16qi): Likewise.
30730         (vec_widen_smult_odd_v16qi): Likewise.
30731         (vec_widen_umult_odd_v8hi): Likewise.
30732         (vec_widen_smult_odd_v8hi): Likewise.
30733         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30734         vmuloub rather than call gen_vec_widen_umult_*.
30735         (vec_widen_umult_lo_v16qi): Likewise.
30736         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30737         vmulosb rather than call gen_vec_widen_smult_*.
30738         (vec_widen_smult_lo_v16qi): Likewise.
30739         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30740         rather than call gen_vec_widen_umult_*.
30741         (vec_widen_umult_lo_v8hi): Likewise.
30742         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30743         rather than call gen_vec_widen_smult_*.
30744         (vec_widen_smult_lo_v8hi): Likewise.
30745
30746 2014-01-15  Jeff Law  <law@redhat.com>
30747
30748         PR tree-optimization/59747
30749         * ree.c (find_and_remove_re): Properly handle case where a second
30750         eliminated extension requires widening a copy created for elimination
30751         of a prior extension.
30752         (combine_set_extension): Ensure that the number of hard regs needed
30753         for a destination register does not change when we widen it.
30754
30755 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30756
30757         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30758         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30759         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30760         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30761         (avr-*-rtems*): Likewise.
30762         (bfin*-rtems*): Likewise.
30763         (moxie-*-rtems*): Likewise.
30764         (h8300-*-rtems*): Likewise.
30765         (i[34567]86-*-rtems*): Likewise.
30766         (lm32-*-rtems*): Likewise.
30767         (m32r-*-rtems*): Likewise.
30768         (m68k-*-rtems*): Likewise.
30769         (microblaze*-*-rtems*): Likewise.
30770         (mips*-*-rtems*): Likewise.
30771         (powerpc-*-rtems*): Likewise.
30772         (sh-*-rtems*): Likewise.
30773         (sparc-*-rtems*): Likewise.
30774         (sparc64-*-rtems*): Likewise.
30775         (v850-*-rtems*): Likewise.
30776         (m32c-*-rtems*): Likewise.
30777
30778 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
30779
30780         PR rtl-optimization/59511
30781         * ira.c (ira_init_register_move_cost): Use memory costs for some
30782         cases of register move cost calculations.
30783         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30784         instead of BB frequency.
30785         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30786         * lra-assigns.c (find_hard_regno_for): Ditto.
30787
30788 2014-01-15  Richard Biener  <rguenther@suse.de>
30789
30790         PR tree-optimization/59822
30791         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30792         (vectorizable_load): Use it to hoist defs of uses of invariant
30793         loads out of the loop.
30794
30795 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
30796             Kugan Vivekanandarajah  <kuganv@linaro.org>
30797
30798         PR target/59695
30799         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30800         truncation.
30801
30802 2014-01-15  Richard Biener  <rguenther@suse.de>
30803
30804         PR rtl-optimization/59802
30805         * lcm.c (compute_available): Use inverted postorder to seed
30806         the initial worklist.
30807
30808 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30809
30810         PR target/59803
30811         * config/s390/s390.c (s390_preferred_reload_class): Don't return
30812         ADDR_REGS for invalid symrefs in non-PIC code.
30813
30814 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
30815
30816         PR other/58712
30817         * builtins.c (determine_block_size): Initialize *probable_max_size
30818         even if len_rtx is CONST_INT.
30819
30820 2014-01-14  Andrew Pinski  <apinski@cavium.com>
30821
30822         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30823         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30824         (cortexa53_tunings): Likewise.
30825         (aarch64_sched_issue_rate): New function.
30826         (TARGET_SCHED_ISSUE_RATE): Define.
30827
30828 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30829
30830         * ira-costs.c (find_costs_and_classes): Add missed
30831         ira_init_register_move_cost_if_necessary.
30832
30833 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30834
30835         PR target/59787
30836         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30837
30838 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
30839
30840         PR target/59794
30841         * config/i386/i386.c (type_natural_mode): Add a bool parameter
30842         to indicate if type is used for function return value.  Warn ABI
30843         change if the vector mode isn't available for function return value.
30844         (ix86_function_arg_advance): Pass false to type_natural_mode.
30845         (ix86_function_arg): Likewise.
30846         (ix86_gimplify_va_arg): Likewise.
30847         (function_arg_32): Don't warn ABI change.
30848         (ix86_function_value): Pass true to type_natural_mode.
30849         (ix86_return_in_memory): Likewise.
30850         (ix86_struct_value_rtx): Removed.
30851         (TARGET_STRUCT_VALUE_RTX): Likewise.
30852
30853 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30854
30855         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30856         converting a conditional jump into a conditional return.
30857
30858 2014-01-14  Richard Biener  <rguenther@suse.de>
30859
30860         PR tree-optimization/58921
30861         PR tree-optimization/59006
30862         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30863         hoisting invariant stmts.
30864         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30865         invariant loads on the preheader edge if possible.
30866
30867 2014-01-14  Joey Ye  <joey.ye@arm.com>
30868
30869         * doc/plugin.texi (Building GCC plugins): Update to C++.
30870
30871 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
30872
30873         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30874         (_mm_rcp28_round_ss): Ditto.
30875         (_mm_rsqrt28_round_sd): Ditto.
30876         (_mm_rsqrt28_round_ss): Ditto.
30877         (_mm_rcp28_sd): Ditto.
30878         (_mm_rcp28_ss): Ditto.
30879         (_mm_rsqrt28_sd): Ditto.
30880         (_mm_rsqrt28_ss): Ditto.
30881         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30882         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30883         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30884         (IX86_BUILTIN_RCP28SD): Ditto.
30885         (IX86_BUILTIN_RCP28SS): Ditto.
30886         (IX86_BUILTIN_RSQRT28SD): Ditto.
30887         (IX86_BUILTIN_RSQRT28SS): Ditto.
30888         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30889         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30890         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30891         (ix86_expand_special_args_builtin): Expand new FTYPE.
30892         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30893         (srcp14<mode>): Make insn unary.
30894         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30895         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30896         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30897         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30898         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30899         Fix rounding: make it SAE only.
30900         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30901         Ditto.
30902         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30903         Ditto.
30904         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30905         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30906         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30907         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30908         (round_saeonly_mask_scalar_operand4): Ditto.
30909         (round_saeonly_mask_scalar_op3): Ditto.
30910         (round_saeonly_mask_scalar_op4): Ditto.
30911
30912 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30913
30914         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30915         Implement -maltivec=be for vec_insert and vec_extract.
30916
30917 2014-01-10  DJ Delorie  <dj@redhat.com>
30918
30919         * config/msp430/msp430.md (call_internal): Don't allow memory
30920         references with SP as the base register.
30921         (call_value_internal): Likewise.
30922         * config/msp430/constraints.md (Yc): New.  For memory references
30923         that don't use SP as a base register.
30924
30925         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30926         "an integer without a # prefix"
30927         * config/msp430/msp430.md (epilogue_helper): Use it.
30928
30929 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
30930
30931         PR target/59617
30932         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30933         AVX512F gather builtins.
30934         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30935         on gather decls with INTEGER_TYPE masktype.
30936         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30937         directly into the builtin rather than hoisting it before loop.
30938
30939         PR tree-optimization/59387
30940         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30941         (scev_const_prop): If folded_casts and type has undefined overflow,
30942         use force_gimple_operand instead of force_gimple_operand_gsi and
30943         for each added stmt if it is assign with
30944         arith_code_with_undefined_signed_overflow, call
30945         rewrite_to_defined_overflow.
30946         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30947         gimple-fold.h instead.
30948         (arith_code_with_undefined_signed_overflow,
30949         rewrite_to_defined_overflow): Moved to ...
30950         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30951         rewrite_to_defined_overflow): ... here.  No longer static.
30952         Include gimplify-me.h.
30953         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30954         rewrite_to_defined_overflow): New prototypes.
30955
30956 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30957
30958         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30959
30960 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
30961
30962         * builtins.c (get_object_alignment_2): Minor tweak.
30963         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30964
30965 2014-01-13  Christian Bruel  <christian.bruel@st.com>
30966
30967         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30968         optimized non constant lengths.
30969
30970 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
30971
30972         PR libgomp/59194
30973         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30974         load as __atomic_load_N if possible.
30975
30976 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30977
30978         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30979         target parameter.
30980         (rs6000_expand_builtin): Adjust call.
30981
30982 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30983
30984         PR target/58115
30985         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30986         * config/rs6000/rs6000.c: Include target-globals.h.
30987         (rs6000_set_current_function): Instead of doing target_reinit
30988         unconditionally, use save_target_globals_default_opts and
30989         restore_target_globals.
30990
30991         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30992         FPSCR.
30993         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30994         (rs6000_expand_builtin): Handle mffs and mtfsf.
30995         (rs6000_init_builtins): Define mffs and mtfsf.
30996         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30997         (rs6000_mffs): New pattern.
30998         (rs6000_mtfsf): New pattern.
30999
31000 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
31001
31002         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
31003         Start narrowing with START.  Apply candidate-use pair
31004         and check overall cost in narrowing.
31005         (iv_ca_prune): Pass new argument.
31006
31007 2014-01-10  Jeff Law  <law@redhat.com>
31008
31009         PR middle-end/59743
31010         * ree.c (combine_reaching_defs): Ensure the defining statement
31011         occurs before the extension when optimizing extensions with
31012         different source and destination hard registers.
31013
31014 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
31015
31016         PR ipa/58585
31017         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
31018         vtables into the type inheritance graph.
31019
31020 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31021
31022         PR rtl-optimization/59754
31023         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
31024         modes in the REGNO != REGNO case.
31025
31026 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31027
31028         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
31029
31030 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31031
31032         PR tree-optimization/59745
31033         * tree-predcom.c (tree_predictive_commoning_loop): Call
31034         free_affine_expand_cache if giving up because components is NULL.
31035
31036         * target-globals.c (save_target_globals): Allocate < 4KB structs using
31037         GC in payload of target_globals struct instead of allocating them on
31038         the heap and the larger structs separately using GC.
31039         * target-globals.h (struct target_globals): Make regs, hard_regs,
31040         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
31041         of GTY((skip)) and change type to void *.
31042         (reset_target_globals): Cast loads from those fields to corresponding
31043         types.
31044
31045 2014-01-10  Steve Ellcey  <sellcey@mips.com>
31046
31047         PR plugins/59335
31048         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
31049         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
31050         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
31051
31052 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
31053
31054         PR target/59744
31055         * aarch64-modes.def (CC_Zmode): New flags mode.
31056         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
31057         represents an equality.
31058         (aarch64_get_condition_code): Handle CC_Zmode.
31059         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
31060
31061 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31062
31063         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
31064         extraction in good case.
31065
31066 2014-01-10  Richard Biener  <rguenther@suse.de>
31067
31068         PR tree-optimization/59374
31069         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
31070         checking after SLP discovery.  Mark stmts not participating
31071         in any SLP instance properly.
31072
31073 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31074
31075         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
31076         when handling a SET rtx.
31077
31078 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31079
31080         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
31081         (cortex-a57): Likewise.
31082         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
31083
31084 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31085
31086         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
31087         non-iwmmxt builtins.
31088
31089 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
31090
31091         PR ipa/58252
31092         PR ipa/59226
31093         * ipa-devirt.c record_target_from_binfo): Take as argument
31094         stack of binfos and lookup matching one for virtual inheritance.
31095         (possible_polymorphic_call_targets_1): Update.
31096
31097 2014-01-10  Huacai Chen  <chenhc@lemote.com>
31098
31099         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
31100         kernel strings for Loongson-2E/2F/3A.
31101
31102 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31103
31104         PR middle-end/59670
31105         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
31106         is_gimple_call before calling gimple_call_internal_p.
31107
31108 2014-01-09  Steve Ellcey  <sellcey@mips.com>
31109
31110         * Makefile.in (TREE_FLOW_H): Remove.
31111         (TREE_SSA_H): Add file names from tree-flow.h.
31112         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
31113         * tree.h: Remove tree-flow.h reference.
31114         * hash-table.h: Remove tree-flow.h reference.
31115         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
31116         reference with tree-ssa-loop.h.
31117
31118 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31119
31120         * doc/invoke.texi: Add -maltivec={be,le} options, and document
31121         default element-order behavior for -maltivec.
31122         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
31123         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
31124         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
31125         when targeting big endian, at least for now.
31126         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
31127
31128 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31129
31130         PR middle-end/47735
31131         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
31132         var satisfies use_register_for_decl, just take into account type
31133         alignment, rather than decl alignment.
31134
31135         PR tree-optimization/59622
31136         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
31137         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
31138         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
31139         Don't devirtualize for inplace at all.  For targets.length () == 1,
31140         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
31141
31142 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
31143
31144         * config/i386/i386.md (cpu): Remove the unused btver1.
31145
31146 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
31147
31148         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
31149
31150 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31151
31152         PR target/58115
31153         * tree-core.h (struct target_globals): New forward declaration.
31154         (struct tree_target_option): Add globals field.
31155         * tree.h (TREE_TARGET_GLOBALS): Define.
31156         (prepare_target_option_nodes_for_pch): New prototype.
31157         * target-globals.h (struct target_globals): Define even if
31158         !SWITCHABLE_TARGET.
31159         * tree.c (prepare_target_option_node_for_pch,
31160         prepare_target_option_nodes_for_pch): New functions.
31161         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
31162         * config/i386/i386.c: Include target-globals.h.
31163         (ix86_set_current_function): Instead of doing target_reinit
31164         unconditionally, use save_target_globals_default_opts and
31165         restore_target_globals.
31166
31167 2014-01-09  Richard Biener  <rguenther@suse.de>
31168
31169         PR tree-optimization/59715
31170         * tree-cfg.h (split_critical_edges): Declare.
31171         * tree-cfg.c (split_critical_edges): Export.
31172         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
31173
31174 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31175
31176         * cfgexpand.c (expand_stack_vars): Optionally disable
31177         asan stack protection.
31178         (expand_used_vars): Likewise.
31179         (partition_stack_vars): Likewise.
31180         * asan.c (asan_emit_stack_protection): Optionally disable
31181         after return stack usage.
31182         (instrument_derefs): Optionally disable memory access instrumentation.
31183         (instrument_builtin_call): Likewise.
31184         (instrument_strlen_call): Likewise.
31185         (asan_protect_global): Optionally disable global variables protection.
31186         * doc/invoke.texi: Added doc for new options.
31187         * params.def: Added new options.
31188         * params.h: Likewise.
31189
31190 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31191
31192         PR rtl-optimization/59724
31193         * ifcvt.c (cond_exec_process_if_block): Don't call
31194         flow_find_head_matching_sequence with 0 longest_match.
31195         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
31196         non-active insns if !stop_after.
31197         (try_head_merge_bb): Revert 2014-01-07 changes.
31198
31199 2014-01-08  Jeff Law  <law@redhat.com>
31200
31201         * ree.c (get_sub_rtx): New function, extracted from...
31202         (merge_def_and_ext): Here.
31203         (combine_reaching_defs): Use get_sub_rtx.
31204
31205 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
31206
31207         * cgraph.h (varpool_variable_node): Do not choke on null node.
31208
31209 2014-01-08  Catherine Moore  <clm@codesourcery.com>
31210
31211         * config/mips/mips.md (simple_return): Attempt to use JRC
31212         for microMIPS.
31213         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
31214
31215 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
31216
31217         PR rtl-optimization/59137
31218         * reorg.c (steal_delay_list_from_target): Call update_block for
31219         elided insns.
31220         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
31221
31222 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31223
31224         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
31225         two duplicate entries.
31226
31227 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
31228
31229         Revert:
31230         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
31231
31232         * config/mips/mips.c (mips_truncated_op_cost): New function.
31233         (mips_rtx_costs): Adjust test for BADDU.
31234         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
31235
31236         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
31237
31238         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
31239         (*baddu_si): ...this new pattern.
31240
31241 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
31242
31243         PR ipa/59722
31244         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
31245
31246 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31247
31248         PR middle-end/57748
31249         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
31250         inner_reference_p.
31251         (expand_expr, expand_normal): Adjust.
31252         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
31253         inner_reference_p. Use inner_reference_p to expand inner references.
31254         (store_expr): Adjust.
31255         * cfgexpand.c (expand_call_stmt): Adjust.
31256
31257 2014-01-08  Rong Xu  <xur@google.com>
31258
31259         * gcov-io.c (gcov_var): Move from gcov-io.h.
31260         (gcov_position): Ditto.
31261         (gcov_is_error): Ditto.
31262         (gcov_rewrite): Ditto.
31263         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
31264         only part to libgcc/libgcov.h.
31265
31266 2014-01-08  Marek Polacek  <polacek@redhat.com>
31267
31268         PR middle-end/59669
31269         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
31270
31271 2014-01-08  Marek Polacek  <polacek@redhat.com>
31272
31273         PR sanitizer/59667
31274         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
31275
31276 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
31277
31278         PR rtl-optimization/59649
31279         * stor-layout.c (get_mode_bounds): For BImode return
31280         0 and STORE_FLAG_VALUE.
31281
31282 2014-01-08  Richard Biener  <rguenther@suse.de>
31283
31284         PR middle-end/59630
31285         * gimple.h (is_gimple_builtin_call): Remove.
31286         (gimple_builtin_call_types_compatible_p): New.
31287         (gimple_call_builtin_p): New overload.
31288         * gimple.c (is_gimple_builtin_call): Remove.
31289         (validate_call): Rename to ...
31290         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
31291         check return types.
31292         (validate_type): New static function.
31293         (gimple_call_builtin_p): New overload and adjust.
31294         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
31295         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
31296         (gimple_fold_stmt_to_constant_1): Likewise.
31297         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
31298
31299 2014-01-08  Richard Biener  <rguenther@suse.de>
31300
31301         PR middle-end/59471
31302         * gimplify.c (gimplify_expr): Gimplify register-register type
31303         VIEW_CONVERT_EXPRs to separate stmts.
31304
31305 2014-01-07  Jeff Law  <law@redhat.com>
31306
31307         PR middle-end/53623
31308         * ree.c (combine_set_extension): Handle case where source
31309         and destination registers in an extension insn are different.
31310         (combine_reaching_defs): Allow source and destination registers
31311         in extension to be different under limited circumstances.
31312         (add_removable_extension): Remove restriction that the
31313         source and destination registers in the extension are the same.
31314         (find_and_remove_re): Emit a copy from the extension's
31315         destination to its source after the defining insn if
31316         the source and destination registers are different.
31317
31318         PR middle-end/59285
31319         * ifcvt.c (merge_if_block): If we are merging a block with more than
31320         one successor with a block with no successors, remove any BARRIER
31321         after the second block.
31322
31323 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
31324
31325         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
31326
31327 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
31328
31329         PR target/59652
31330         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
31331         for 14-bit register offsets when INT14_OK_STRICT is false.
31332
31333 2014-01-07  Roland Stigge  <stigge@antcom.de>
31334             Michael Meissner  <meissner@linux.vnet.ibm.com>
31335
31336         PR 57386/target
31337         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
31338         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
31339
31340 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
31341
31342         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
31343         -mcpu.
31344
31345 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
31346
31347         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
31348         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
31349         rtx is const0_rtx or not.
31350
31351 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
31352
31353         PR target/58115
31354         * target-globals.c (save_target_globals): Remove this_fn_optab
31355         handling.
31356         * toplev.c: Include optabs.h.
31357         (target_reinit): Temporarily restore the global options if another
31358         set of options are in force.
31359
31360 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
31361
31362         PR rtl-optimization/58668
31363         * cfgcleanup.c (flow_find_cross_jump): Don't count
31364         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
31365         to determine what is counted.
31366         (flow_find_head_matching_sequence): Use active_insn_p to determine
31367         what is counted.
31368         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
31369         counting change.
31370         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
31371         determine what is counted.
31372
31373         PR tree-optimization/59643
31374         * tree-predcom.c (split_data_refs_to_components): If one dr is
31375         read and one write, determine_offset fails and the write isn't
31376         in the bad component, just put the read into the bad component.
31377
31378 2014-01-07  Mike Stump  <mikestump@comcast.net>
31379             Jakub Jelinek  <jakub@redhat.com>
31380
31381         PR pch/59436
31382         * tree-core.h (struct tree_optimization_option): Change optabs
31383         type from unsigned char * to void *.
31384         * optabs.c (init_tree_optimization_optabs): Adjust
31385         TREE_OPTIMIZATION_OPTABS initialization.
31386
31387 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
31388
31389         PR target/59644
31390         * config/i386/i386.h (struct machine_function): Add
31391         no_drap_save_restore field.
31392         * config/i386/i386.c (ix86_save_reg): Use
31393         !cfun->machine->no_drap_save_restore instead of
31394         crtl->stack_realign_needed.
31395         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
31396         this function clears frame_pointer_needed.  Set
31397         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
31398         and DRAP reg is needed.
31399
31400 2014-01-06  Marek Polacek  <polacek@redhat.com>
31401
31402         PR c/57773
31403         * doc/implement-c.texi: Mention that other integer types are
31404         permitted as bit-field types in strictly conforming mode.
31405
31406 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
31407
31408         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
31409         is newly allocated.
31410
31411 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
31412
31413         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
31414
31415 2014-01-06  Martin Jambor  <mjambor@suse.cz>
31416
31417         PR ipa/59008
31418         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
31419         to int.
31420         * ipa-prop.c (ipa_print_node_params): Fix indentation.
31421
31422 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31423
31424         PR debug/59350
31425         PR debug/59510
31426         * var-tracking.c (add_stores): Preserve the value of the source even if
31427         we don't record the store.
31428
31429 2014-01-06  Terry Guo  <terry.guo@arm.com>
31430
31431         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
31432
31433 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
31434
31435         PR bootstrap/59541
31436         * config/darwin.c (darwin_function_section): Adjust return values to
31437         correspond to optimisation changes made in r206070.
31438
31439 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
31440
31441         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
31442         from prefetch_block tune setting.
31443         (nocona_cost): Correct size of prefetch block to 64.
31444
31445 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31446
31447         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
31448         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
31449         used to save the static chain register in the computation of the offset
31450         from which the FP registers need to be restored.
31451
31452 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
31453
31454         PR tree-optimization/59519
31455         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
31456         ICE if get_current_def (current_new_name) is already non-NULL, as long
31457         as it is a phi result of some other phi in *new_exit_bb that has
31458         the same argument.
31459
31460         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
31461         or vmovdqu* for misaligned_operand.
31462         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
31463         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
31464         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
31465         aligned_mem for AVX512F masked aligned load and store builtins and for
31466         non-temporal moves.
31467
31468 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
31469
31470         PR tree-optimization/59651
31471         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31472         Address range for negative step should be added by TYPE_SIZE_UNIT.
31473
31474 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
31475
31476         * config/m68k/m68k.c (handle_move_double): Handle pushes with
31477         overlapping registers also for registers other than the stack pointer.
31478
31479 2014-01-03  Marek Polacek  <polacek@redhat.com>
31480
31481         PR other/59661
31482         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
31483         __builtin_FILE.
31484
31485 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
31486
31487         PR target/59625
31488         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
31489         asm goto as jump.
31490
31491         * config/i386/i386.md (MODE_SIZE): New mode attribute.
31492         (push splitter): Use <P:MODE_SIZE> instead of
31493         GET_MODE_SIZE (<P:MODE>mode).
31494         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
31495         (mov -1, reg peephole2): Likewise.
31496         * config/i386/sse.md (*mov<mode>_internal,
31497         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
31498         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
31499         *<code><mode>3, *andnot<mode>3<mask_name>,
31500         <mask_codefor><code><mode>3<mask_name>): Likewise.
31501         * config/i386/subst.md (mask_mode512bit_condition,
31502         sd_mask_mode512bit_condition): Likewise.
31503
31504 2014-01-02  Xinliang David Li  <davidxl@google.com>
31505
31506         PR tree-optimization/59303
31507         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
31508         (dump_predicates): Better output format.
31509         (pred_equal_p): New function.
31510         (is_neq_relop_p): Ditto.
31511         (is_neq_zero_form_p): Ditto.
31512         (pred_expr_equal_p): Ditto.
31513         (pred_neg_p): Ditto.
31514         (simplify_pred): Ditto.
31515         (simplify_preds_2): Ditto.
31516         (simplify_preds_3): Ditto.
31517         (simplify_preds_4): Ditto.
31518         (simplify_preds): Ditto.
31519         (push_pred): Ditto.
31520         (push_to_worklist): Ditto.
31521         (get_pred_info_from_cmp): Ditto.
31522         (is_degenerated_phi): Ditto.
31523         (normalize_one_pred_1): Ditto.
31524         (normalize_one_pred): Ditto.
31525         (normalize_one_pred_chain): Ditto.
31526         (normalize_preds): Ditto.
31527         (normalize_cond_1): Remove function.
31528         (normalize_cond): Ditto.
31529         (is_gcond_subset_of): Ditto.
31530         (is_subset_of_any): Ditto.
31531         (is_or_set_subset_of): Ditto.
31532         (is_and_set_subset_of): Ditto.
31533         (is_norm_cond_subset_of): Ditto.
31534         (pred_chain_length_cmp): Ditto.
31535         (convert_control_dep_chain_into_preds): Type change.
31536         (find_predicates): Ditto.
31537         (find_def_preds): Ditto.
31538         (destroy_predicates_vecs): Ditto.
31539         (find_matching_predicates_in_rest_chains): Ditto.
31540         (use_pred_not_overlap_with_undef_path_pred): Ditto.
31541         (is_pred_expr_subset): Ditto.
31542         (is_pred_chain_subset_of): Ditto.
31543         (is_included_in): Ditto.
31544         (is_superset_of): Ditto.
31545
31546 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31547
31548         Update copyright years.
31549
31550 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31551
31552         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
31553         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
31554         config/arc/arc.md, config/arc/arc.opt,
31555         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
31556         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
31557         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
31558         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
31559         config/linux-protos.h, config/linux.c, config/winnt-c.c,
31560         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
31561         vtable-verify.c, vtable-verify.h: Use the standard form for the
31562         copyright notice.
31563
31564 2014-01-02  Tobias Burnus  <burnus@net-b.de>
31565
31566         * gcc.c (process_command): Update copyright notice dates.
31567         * gcov-dump.c: Ditto.
31568         * gcov.c: Ditto.
31569         * doc/cpp.texi: Bump @copying's copyright year.
31570         * doc/cppinternals.texi: Ditto.
31571         * doc/gcc.texi: Ditto.
31572         * doc/gccint.texi: Ditto.
31573         * doc/gcov.texi: Ditto.
31574         * doc/install.texi: Ditto.
31575         * doc/invoke.texi: Ditto.
31576
31577 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31578
31579         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
31580
31581 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
31582
31583         * config/i386/sse.md (*mov<mode>_internal): Guard
31584         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
31585
31586         PR rtl-optimization/59647
31587         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
31588         new_rtx into UNSIGNED_FLOAT rtxes.
31589 \f
31590 Copyright (C) 2014 Free Software Foundation, Inc.
31591
31592 Copying and distribution of this file, with or without modification,
31593 are permitted in any medium without royalty provided the copyright
31594 notice and this notice are preserved.