re PR tree-optimization/63255 (FAIL: gcc.dg/lto/ipareference2 c_lto_ipareference2_0...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2
3         PR tree-optimization/63255
4         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
5         issue in setting body_removed flag.
6
7 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
8
9         PR c++/61825
10         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
11         that visibility change is possible
12         (handle_weakref_attribute): Likewise.
13         * cgraph.h (symtab_node): Add method get_create and
14         field refuse_visibility_changes.
15         (symtab_node::get_create): New method.
16         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
17         * varasm.c (mark_weak): Verify that visibility change is
18         possible.
19
20 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21
22         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
23         for base_reg_operand to be common between LO_SUM and PLUS.
24         (fusion_gpr_mem_combo): New predicate to match a fused address
25         that combines the addis and memory offset address.
26
27         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
28         calling signature.
29         (emit_fusion_gpr_load): Likewise.
30
31         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
32         signature to pass each argument separately, rather than
33         using an operands array.  Rewrite the insns found by peephole2 to
34         be a single insn, rather than hoping the insns will still be
35         together when the peephole pass is done.  Drop being called via a
36         normal peephole.
37         (emit_fusion_gpr_load): Change calling signature to be called from
38         the fusion_gpr_load_<mode> insns with a combined memory address
39         instead of the peephole pass passing the addis and offset
40         separately.
41
42         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
43         fusion.
44         (power8 fusion peephole): Drop support for doing power8 via a
45         normal peephole that was created by the peephole2 pass.
46         (power8 fusion peephole2): Create a new insn with the fused
47         address, so that the fused operation is kept together after
48         register allocation is done.
49         (fusion_gpr_load_<mode>): Likewise.
50
51 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
52
53         PR lto/63286
54         * tree.c (need_assembler_name_p): Do not mangle variadic types.
55
56 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
57
58         * recog.c (scratch_operand): Do not simply allow all hard registers:
59         only allow those that are allocatable.
60
61 2014-09-19  Felix Yang  <felix.yang@huawei.com>
62
63         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
64         comments and fix spacing to conform to coding style.
65
66 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
67
68         * genrecog.c (validate_pattern): Allow empty constraints in
69         a match_scratch.
70
71 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
72
73         * dwarf2out.c (decl_ultimate_origin): Update comment.
74         * tree.c (block_ultimate_origin): Same.
75
76 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
77
78         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
79         Update GCC version name to GCC 5.
80         (rs6000_function_arg_boundary): Likewise.
81         (rs6000_function_arg): Likewise.
82
83 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
84
85         * config/sh/sh.md: Fix use of constraints in define_split.
86
87 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
88
89         PR ipa/61998
90         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
91
92 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
93
94         * doc/md.texi (Modifiers): Consistently use "read/write"
95         nomenclature rather than "input/output".
96         * genrecog.c (constraints_supported_in_insn_p): New.
97         (validate_pattern): If needed, also check constraints on
98         MATCH_SCRATCH operands.
99         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
100         operands with no '=' or '+' modifier.
101
102 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
103
104         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
105         scratch register as written.
106
107 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
108
109         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
110         assignment.
111
112 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
113
114         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
115         expanders.
116
117 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
118
119         PR target/62662
120         * config/s390/s390.c (s390_emit_epilogue): When doing the return
121         address load optimization force s390_optimize_prologue to leave it
122         that way.  Only do the optimization if we already decided to push
123         r14 into a stack slot.
124
125 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
126
127         * asan.c (build_check_stmt): Alignment arg was added.
128         (asan_expand_check_ifn): Optimization for alignment >= 8.
129
130 2014-09-19  Olivier Hainque  <hainque@adacore.com>
131
132         * config/i386/vxworksae.h: Remove obsolete definitions.
133         (STACK_CHECK_PROTECT): Define.
134         * config/i386/vx-common.h: Remove.  Merge contents within
135         config/i386/vxworks.h.
136         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
137         i386/vx-common.h.
138
139 2014-09-19  Olivier Hainque  <hainque@adacore.com>
140
141         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
142         * config/rs6000/t-vxworksmils: New file.
143         * config/rs6000/vxworksmils.h: New file.
144
145 2014-09-19  Olivier Hainque  <hainque@adacore.com>
146
147         * varasm.c (default_section_type_flags): Flag .persistent.bss
148         sections as SECTION_BSS.
149
150 2014-09-19  Nick Clifton  <nickc@redhat.com>
151
152         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
153         pop'ed registers so that DCE does not eliminate them.
154
155 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
156
157         PR lto/63298
158         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
159
160 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
161
162         * system.h (LIBGCC2_TF_CEXT): Poison.
163         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
164         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
165         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
166         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
167         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
168         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
169         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
170         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
171         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
172
173 2014-09-19  Kito Cheng  <kito@0xlab.org>
174
175         * except.h: Fix header guard.
176         * addresses.h: Add missing header guard.
177         * cfghooks.h: Likewise.
178         * collect-utils.h: Likewise.
179         * collect2-aix.h: Likewise.
180         * conditions.h: Likewise.
181         * cselib.h: Likewise.
182         * dwarf2asm.h: Likewise.
183         * graphds.h: Likewise.
184         * graphite-scop-detection.h: Likewise.
185         * gsyms.h: Likewise.
186         * hw-doloop.h: Likewise.
187         * incpath.h: Likewise.
188         * ipa-inline.h: Likewise.
189         * ipa-ref.h: Likewise.
190         * ira-int.h: Likewise.
191         * ira.h: Likewise.
192         * lra-int.h: Likewise.
193         * lra.h: Likewise.
194         * lto-section-names.h: Likewise.
195         * read-md.h: Likewise.
196         * reload.h: Likewise.
197         * rtl-error.h: Likewise.
198         * sdbout.h: Likewise.
199         * targhooks.h: Likewise.
200         * tree-affine.h: Likewise.
201         * xcoff.h: Likewise.
202         * xcoffout.h: Likewise.
203
204 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
205
206         PR debug/63285
207         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
208         if advance != 0.
209
210 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
211
212         PR target/61360
213         * lra.c (lra): Call recog_init.
214
215 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
216
217         PR c++/62017
218         * asan.c (transform_statements): Don't instrument clobber statements.
219
220 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
221
222         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
223         to neon_load1_1reg<q>.
224
225 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
226
227         PR debug/63284
228         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
229         if there are only debug stmts after the noreturn call, instead
230         remove the debug stmts.
231
232 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
233
234         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
235         (odr_types_equivalent_p): Use pair hash.
236         (odr_subtypes_equivalent_p): Likewise, do structural compare
237         on ODR types that may be mismatched.
238         (warn_odr): Support warning when only one field is given.
239         (odr_types_equivalent_p): Strenghten comparsions made;
240         support VOIDtype.
241         (add_type_duplicate): Update VISITED hash set.
242
243 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
244
245         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
246         Enable selection of 'posix' or no thread model.
247
248 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
249
250         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
251         when architecture is older than ARMv7.
252
253 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
254
255         PR target/61853
256         * config/pa/pa.c (pa_function_value): Directly handle aggregates
257         that fit exactly in a word or double word.
258
259 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
260
261         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
262         zmm/k regs support.
263
264 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
265             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
266             Anna Tikhonova  <anna.tikhonova@intel.com>
267             Ilya Tocar  <ilya.tocar@intel.com>
268             Andrey Turetskiy  <andrey.turetskiy@intel.com>
269             Ilya Verbin  <ilya.verbin@intel.com>
270             Kirill Yukhin  <kirill.yukhin@intel.com>
271             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
272
273         * config/i386/i386.c
274         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
275         * config/i386/sse.md
276         (define_mode_iterator VI48F_256): New.
277         (define_mode_attr extract_type): Ditto.
278         (define_mode_attr extract_suf): Ditto.
279         (define_mode_iterator AVX512_VEC): Ditto.
280         (define_expand
281         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
282         AVX512_VEC.
283         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
284         (define_insn
285         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
286         Ditto.
287         (define_mode_attr extract_type_2): Ditto.
288         (define_mode_attr extract_suf_2): Ditto.
289         (define_mode_iterator AVX512_VEC_2): Ditto.
290         (define_expand
291         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
292         AVX512_VEC_2 mode iterator.
293         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
294         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
295         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
296         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
297         (define_split for V16FI mode): Ditto.
298         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
299         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
300         (define_split for VI8F_256 mode): Ditto.
301         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
302         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
303         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
304         (define_split for VI4F_256 mode): Ditto.
305         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
306         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
307         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
308         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
309         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
310         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
311         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
312         Update `type' attribute, remove explicit `memory' attribute calculation.
313
314 2014-09-16  Kito Cheng  <kito@0xlab.org>
315
316         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
317         ira_spilled_reg_stack_slots_num if using lra.
318         (do_reload): Remove release ira_spilled_reg_stack_slots part.
319         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
320         make sure not using lra.
321         (ira_reuse_stack_slot): Likewise.
322         (ira_mark_new_stack_slot): Likewise.
323
324 2014-09-15  Andi Kleen  <ak@linux.intel.com>
325
326         * function.c (allocate_struct_function): Force
327         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
328         profiling is disabled.
329
330 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
331     
332         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
333         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
334         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
335         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
336         macro with statically checked member functions.
337         * rtl.h (rtx_insn::deleted): New method.
338         (rtx_insn::set_deleted): Likewise.
339         (rtx_insn::set_undeleted): Likewise.
340         (INSN_DELETED_P): Remove.
341
342 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
343
344         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
345         result of emit_jump_insn_before to a new variable.
346         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
347         (mark_jump_label_1): Likewise.
348         (mark_jump_label_asm): Likewise.
349         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
350         * rtl.h (mark_jump_label): Adjust.
351
352 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
353
354         * Makefile.in (dg_target_exps): Remove.
355         (check_gcc_parallelize): Change to just an upper bound number.
356         (check-%-subtargets): Always print the non-parallelized goals.
357         (check_p_vars, check_p_comma, check_p_subwork): Remove.
358         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
359         check_p_numbers3, check_p_numbers4, check_p_numbers5,
360         check_p_numbers6): New variables.
361         (check_p_numbers): Set to sequence from 1 to 9999.
362         (check_p_subdirs): Set to sequence from 1 to minimum of
363         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
364         or 128.
365         (check-%, check-parallel-%): Rewritten so that for parallelized
366         testing each job runs all the *.exp files, with
367         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
368
369 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
370
371         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
372         rtx to rtx_insn *.
373         (arc_sets_cc_p): Likewise.
374         * config/arc/arc.c (arc_print_operand): Use methods of
375         "final_sequence" for clarity, and to enable strengthening of
376         locals "jump" and "delay" from rtx to rtx_insn *.
377         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
378         rtx_insn *; use method of rtx_sequence for typesafety.
379         (arc_get_insn_variants): Use insn method of rtx_sequence for
380         typesafety.
381         (arc_pad_return): Likewise.
382         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
383         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
384         dyn_cast to rtx_sequence *, using insn method for typesafety.
385         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
386         rtx_sequence * and use insn method when invoking get_attr_length.
387         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
388         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
389         rtx_sequence *, introducing a local "seq", using its insn method
390         from typesafety and clarity.
391         (add_sched_insns_for_speculation): Strengthen local "next" from
392         rtx to rtx_insn *.
393         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
394         (predicate_insn): Likewise.
395         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
396         second param.
397         * config/cris/cris.c (cris_notice_update_cc): Likewise.
398         * config/epiphany/epiphany-protos.h
399         (extern void epiphany_insert_mode_switch_use): Likewise for param
400         "insn".
401         (get_attr_sched_use_fpu): Likewise for param.
402         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
403         Likewise for param "insn".
404         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
405         param "insn" of "target_insert_mode_switch_use" callback.
406         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
407         (frv_issues_to_branch_unit_p): Likewise.
408         (frv_pack_insn_p): Likewise.
409         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
410         const rtx * (i.e. mutable rtx_def * const *) to
411         rtx_insn * const *.
412         * config/i386/i386-protos.h (standard_sse_constant_opcode):
413         Strengthen first param from rtx to rtx_insn *.
414         (output_fix_trunc): Likewise.
415         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
416         (output_fix_trunc): Likewise.
417         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
418         local "insn".
419         (min_insn_size): Likewise for param "insn".
420         (get_mem_group): Likewise.
421         (is_cmp): Likewise.
422         (get_insn_path): Likewise.
423         (get_insn_group): Likewise.
424         (count_num_restricted): Likewise.
425         (fits_dispatch_window): Likewise.
426         (add_insn_window): Likewise.
427         (add_to_dispatch_window): Likewise.
428         (debug_insn_dispatch_info_file): Likewise.
429         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
430         first param.
431         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
432         "cmp" and local "prev".
433         (m32c_output_compare): Likewise for param "insn".
434         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
435         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
436         (define_predicate "large_insn_p"): Likewise.
437         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
438         param from rtx to rtx_insn *.
439         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
440         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
441         (m68k_sched_attr_size): Likewise.
442         (sched_get_opxy_mem_type): Likewise for param "insn".
443         (m68k_sched_attr_op_mem): Likewise.
444         (sched_mem_operand_p): Likewise.
445         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
446         * config/mep/mep.c (mep_multi_slot): Likewise.
447         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
448         first param.
449         (mips_sync_loop_insns): Likewise.
450         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
451         method of "final_sequence" for typesafety.
452         (mips_process_sync_loop): Strengthen param "insn" from rtx to
453         rtx_insn *.
454         (mips_output_sync_loop): Likewise.
455         (mips_sync_loop_insns): Likewise.
456         (mips_74k_agen_init): Likewise.
457         (mips_sched_init): Use NULL rather than NULL_RTX when working with
458         insns.
459         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
460         Strengthen param "insn" from rtx to rtx_insn *.
461         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
462         local "insn".
463         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
464         param.
465         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
466         "insn".  Use method of rtx_sequence for typesafety.
467         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
468         rtx_insn *.
469         (branch_needs_nop_p): Likewise.
470         (use_skip_p): Likewise.
471         (pa_insn_refs_are_delayed): Likewise.
472         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
473         for locals "insn", "ninsn".
474         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
475         "insn".
476         (is_cracked_insn): Likewise.
477         (is_branch_slot_insn): Likewise.
478         (is_nonpipeline_insn): Likewise.
479         (insn_terminates_group_p): Likewise.
480         (insn_must_be_first_in_group): Likewise.
481         (insn_must_be_last_in_group): Likewise.
482         (force_new_group): Likewise for param "next_insn".
483         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
484         "insn".
485         (s390_sched_score): Likewise.
486         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
487         (rtx sfunc_uses_reg): Likewise for sole param.
488         * config/sh/sh.c (sh_print_operand): Use insn method of
489         final_sequence for typesafety.
490         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
491         Use insn method of final_sequence for typesafety.
492         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
493         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
494         for param.
495         (eligible_for_return_delay): Likewise.
496         (eligible_for_sibcall_delay): Likewise.
497         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
498         (eligible_for_return_delay): Likewise.
499         (eligible_for_sibcall_delay): Likewise.
500         * config/stormy16/stormy16-protos.h
501         (xstormy16_output_cbranch_hi): Likewise for final param.
502         (xstormy16_output_cbranch_si): Likewise.
503         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
504         (xstormy16_output_cbranch_si): Likewise.
505         * config/v850/v850-protos.h (notice_update_cc): Likewise.
506         * config/v850/v850.c (notice_update_cc): Likewise.
507
508         * final.c (get_attr_length_1): Strengthen param "insn" and param
509         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
510         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
511         (get_attr_min_length): Likewise.
512         (shorten_branches): Likewise for signature of locals "length_fun"
513         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
514         from a checked cast and use its methods for clarity and to enable
515         strengthening local "inner_insn" from rtx to rtx_insn *.
516         * genattr.c (gen_attr): When writing out the prototypes of the
517         various generated "get_attr_" functions, strengthen the params of
518         the non-const functions from rtx to rtx_insn *.
519         Similarly, strengthen the params of insn_default_length,
520         insn_min_length, insn_variable_length_p, insn_current_length.
521         (main): Similarly, strengthen the param of num_delay_slots,
522         internal_dfa_insn_code, insn_default_latency, bypass_p,
523         insn_latency, min_issue_delay, print_reservation,
524         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
525         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
526         to hook_int_rtx_insn_unreachable.
527         * genattrtab.c (write_attr_get): When writing out the generated
528         "get_attr_" functions, strengthen the param "insn" from rtx to
529         rtx_insn *, eliminating a checked cast.
530         (make_automaton_attrs): When writing out prototypes of
531         "internal_dfa_insn_code_", "insn_default_latency_" functions
532         and the "internal_dfa_insn_code" and "insn_default_latency"
533         callbacks, strengthen their params from rtx to rtx_insn *
534         * genautomata.c (output_internal_insn_code_evaluation): When
535         writing out code, add a checked cast from rtx to rtx_insn * when
536         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
537         (output_dfa_insn_code_func): Strengthen param of generated
538         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
539         (output_trans_func): Likewise for generated function
540         "state_transition".
541         (output_internal_insn_latency_func): When writing out generated
542         function "internal_insn_latency", rename params from "insn" and
543         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
544         locals "insn" and "insn2" as rtx_insn * with checked casts once
545         we've proven that we're not dealing with const0_rtx.
546         (output_insn_latency_func):  Strengthen param of generated
547         function "insn_latency" from rtx to rtx_insn *.
548         (output_print_reservation_func): Likewise for generated function
549         "print_reservation".
550         (output_insn_has_dfa_reservation_p): Likewise for generated
551         function "insn_has_dfa_reservation_p".
552         * hooks.c (hook_int_rtx_unreachable): Rename to...
553         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
554         from rtx to rtx_insn *.
555         * hooks.h (hook_int_rtx_unreachable): Likewise.
556         (extern int hook_int_rtx_insn_unreachable): Likewise.
557         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
558         (get_attr_min_length): Likewise.
559         * recog.c (get_enabled_alternatives): Likewise.
560         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
561         * reorg.c (find_end_label): Introduce local rtx "pat" and
562         strengthen local "insn" from rtx to rtx_insn *.
563         (redundant_insn): Use insn method of "seq" rather than element for
564         typesafety; strengthen local "control" from rtx to rtx_insn *.
565         * resource.c (mark_referenced_resources): Add checked cast to
566         rtx_insn * within INSN/JUMP_INSN case.
567         (mark_set_resources): Likewise.
568         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
569         rtx to rtx_insn *.
570
571 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
572
573         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
574         param "label" from rtx to rtx_insn *.
575         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
576         and local "op".
577         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
578         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
579         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
580         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
581         * final.c (default_label_align_after_barrier_max_skip): Strengthen
582         param from rtx to rtx_insn *.
583         (default_loop_align_max_skip): Likewise.
584         (default_label_align_max_skip): Likewise.
585         (default_jump_align_max_skip): Likewise.
586         * target.def (label_align_after_barrier_max_skip): Likewise.
587         (loop_align_max_skip): Likewise.
588         (label_align_max_skip): Likewise.
589         (jump_align_max_skip): Likewise.
590         * targhooks.h (default_label_align_after_barrier_max_skip):
591         Likewise.
592         (default_loop_align_max_skip): Likewise.
593         (default_label_align_max_skip): Likewise.
594         (default_jump_align_max_skip): Likewise.
595
596 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
597
598         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
599         from const_rtx to const rtx_insn *.  Update union members from rtx
600         to rtx_insn *.
601         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
602         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
603         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
604         strengthen both params from const_rtx to const rtx_insn *.
605         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
606         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
607         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
608         rtx_insn *.
609         * target.def (can_follow_jump): Strengthen both params from
610         const_rtx to const rtx_insn *, and update default implementation
611         from hook_bool_const_rtx_const_rtx_true to
612         hook_bool_const_rtx_insn_const_rtx_insn_true.
613
614 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
615
616         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
617         "insn" from rtx to rtx_insn *.
618         * sched-int.h (deps_start_bb): Likewise for 2nd param.
619
620 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
621             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
622             Anna Tikhonova  <anna.tikhonova@intel.com>
623             Ilya Tocar  <ilya.tocar@intel.com>
624             Andrey Turetskiy  <andrey.turetskiy@intel.com>
625             Ilya Verbin  <ilya.verbin@intel.com>
626             Kirill Yukhin  <kirill.yukhin@intel.com>
627             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
628
629         * config/i386/sse.md
630         (define_insn "vcvtph2ps<mask_name>"): Add masking.
631         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
632         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
633         (define_expand "vcvtps2ph_mask"): New.
634         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
635         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
636         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
637
638 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
639             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
640             Anna Tikhonova  <anna.tikhonova@intel.com>
641             Ilya Tocar  <ilya.tocar@intel.com>
642             Andrey Turetskiy  <andrey.turetskiy@intel.com>
643             Ilya Verbin  <ilya.verbin@intel.com>
644             Kirill Yukhin  <kirill.yukhin@intel.com>
645             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
646
647         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
648         New.
649         (define_mode_iterator VI24_AVX512BW_1): Ditto.
650         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
651         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
652         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
653         also for TARGET_AVX512VL.
654         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
655
656 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
657
658         * doc/install.texi (Options specification): add 
659         --disable-libsanitizer item.
660
661 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
662             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
663
664         PR target/61407
665         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
666         and above.
667         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
668         kernel version check to avoid incrementing it after every major OS X
669         release.
670         (darwin_default_min_version): Avoid static memory buffer.
671
672 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
673
674         * tree.c (need_assembler_name_p): Store C++ type mangling only
675         for aggregates.
676
677 2014-09-13  Marek Polacek  <polacek@redhat.com>
678
679         * tree.c (protected_set_expr_location): Don't check whether T is
680         non-null here.
681
682 2014-09-12  DJ Delorie  <dj@redhat.com>
683
684         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
685         (extend_and_shift1_hipsi2): Likewise.
686         (extend_and_shift2_hipsi2): Likewise.
687
688 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
689
690         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
691         with NULL when dealing with an insn.
692         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
693         from rtx to rtx_insn *.
694         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
695         const_rtx to const rtx_insn *.
696         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
697
698 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
699
700         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
701         assert.
702
703 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
704
705         * target.def (libgcc_floating_mode_supported_p): New hook.
706         * targhooks.c (default_libgcc_floating_mode_supported_p): New
707         function.
708         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
709         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
710         (LIBGCC2_HAS_TF_MODE): Remove.
711         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
712         * doc/tm.texi: Regenerate.
713         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
714         machine mode.
715         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
716         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
717         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
718         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
719         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
720         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
721         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
722         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
723         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
724         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
725         function.
726         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
727         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
728         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
729         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
730         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
731         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
732         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
733         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
734         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
735         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
736         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
737         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
738         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
739         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
740         Remove.
741         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
742         New macro.
743         (ia64_libgcc_floating_mode_supported_p): New function.
744         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
745         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
746         (IA64_NO_LIBGCC_TFMODE): Define.
747         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
748         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
749         macro.
750         (pdp11_scalar_mode_supported_p): New function.
751         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
752         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
753
754 2014-09-12  Richard Biener  <rguenther@suse.de>
755
756         PR middle-end/63237
757         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
758
759 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
760
761         * tree.c (integer_each_onep): New function.
762         * tree.h (integer_each_onep): Declare it.
763         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
764         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
765         (X & 1) == 0 for vector and complex.
766
767 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
768
769         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
770         for A57.
771         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
772         cost to spilling from integer to FP registers.
773
774 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
775
776         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
777         move handling.
778         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
779         are now handled correctly.
780
781 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
782
783         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
784         handling of CALLER_SAVE_REGS and POINTER_REGS.
785
786 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
787
788         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
789         the number of hard registers.
790
791 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
792             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
793             Anna Tikhonova  <anna.tikhonova@intel.com>
794             Ilya Tocar  <ilya.tocar@intel.com>
795             Andrey Turetskiy  <andrey.turetskiy@intel.com>
796             Ilya Verbin  <ilya.verbin@intel.com>
797             Kirill Yukhin  <kirill.yukhin@intel.com>
798             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
799
800         * config/i386/sse.md
801         (define_mode_iterator VI48_AVX512VL): New.
802         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
803         "avx512f_vternlog<mode>_maskz" and update mode iterator.
804         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
805         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
806         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
807         "avx512f_vternlog<mode>_mask" and update mode iterator.
808         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
809         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
810         iterator.
811         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
812         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
813         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
814         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
815         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
816         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
817
818 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
819             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
820             Anna Tikhonova  <anna.tikhonova@intel.com>
821             Ilya Tocar  <ilya.tocar@intel.com>
822             Andrey Turetskiy  <andrey.turetskiy@intel.com>
823             Ilya Verbin  <ilya.verbin@intel.com>
824             Kirill Yukhin  <kirill.yukhin@intel.com>
825             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
826
827         * config/i386/sse.md (VI128_256): Delete.
828         (define_mode_iterator VI124_256): New.
829         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
830         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
831         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
832         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
833         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
834         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
835         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
836         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
837         iterator.
838         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
839         in presence of AVX-512.
840
841 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
842             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
843             Anna Tikhonova  <anna.tikhonova@intel.com>
844             Ilya Tocar  <ilya.tocar@intel.com>
845             Andrey Turetskiy  <andrey.turetskiy@intel.com>
846             Ilya Verbin  <ilya.verbin@intel.com>
847             Kirill Yukhin  <kirill.yukhin@intel.com>
848             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
849
850         * config/i386/sse.md
851         (define_expand "<avx512>_gathersi<mode>"): Rename from
852         "avx512f_gathersi<mode>".
853         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
854         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
855         (define_expand "<avx512>_gatherdi<mode>"): Rename from
856         "avx512f_gatherdi<mode>".
857         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
858         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
859         wide versions.
860         (define_expand "<avx512>_scattersi<mode>"): Rename from
861         "avx512f_scattersi<mode>".
862         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
863         (define_expand "<avx512>_scatterdi<mode>"): Rename from
864         "avx512f_scatterdi<mode>".
865         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
866
867 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
868
869         * ira.h (ira_finish_once): Delete.
870         * ira-int.h (target_ira_int::~target_ira_int): Declare.
871         (target_ira_int::free_ira_costs): Likewise.
872         (target_ira_int::free_register_move_costs): Likewise.
873         (ira_finish_costs_once): Delete.
874         * ira.c (free_register_move_costs): Replace with...
875         (target_ira_int::free_register_move_costs): ...this new function.
876         (target_ira_int::~target_ira_int): Define.
877         (ira_init): Call free_register_move_costs as a member function rather
878         than a global function.
879         (ira_finish_once): Delete.
880         * ira-costs.c (free_ira_costs): Replace with...
881         (target_ira_int::free_ira_costs): ...this new function.
882         (ira_init_costs): Call free_ira_costs as a member function rather
883         than a global function.
884         (ira_finish_costs_once): Delete.
885         * target-globals.c (target_globals::~target_globals): Call the
886         target_ira_int destructor.
887         * toplev.c: Include lra.h.
888         (finalize): Call lra_finish_once rather than ira_finish_once.
889
890 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
891
892         * common.opt (flto-odr-type-merging): New flag.
893         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
894         (types_same_for_odr): Likewise.
895         (odr_subtypes_equivalent_p): Likewise.
896         (add_type_duplicate): Do not walk type variants.
897         (register_odr_type): New function.
898         * ipa-utils.h (register_odr_type): Declare.
899         (odr_type_p): New function.
900         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
901         TYPE_DECLs
902         * doc/invoke.texi (-flto-odr-type-merging): Document.
903         * tree.c (need_assembler_name_p): Compute ODR names when asked
904         for it.
905         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
906
907 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
908
909         PR target/63228
910         * config/i386/i386.c (ix86_option_override_internal): Also turn
911         off OPTION_MASK_ABI_X32 for -m16.
912
913 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
914
915         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
916         GPR instead of P.
917
918 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
919
920         PR target/58757
921         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
922         Directly forward to __*_DENORM_MIN__.
923
924 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
925
926         * rtl.h (LABEL_REF_LABEL): New macro.
927
928         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
929         of XEXP (, 0), where we know that we have a LABEL_REF.
930         * cfgbuild.c (make_edges): Likewise.
931         (purge_dead_tablejump_edges): Likewise.
932         * cfgexpand.c (convert_debug_memory_address): Likewise.
933         * cfgrtl.c (patch_jump_insn): Likewise.
934         * combine.c (distribute_notes): Likewise.
935         * cse.c (hash_rtx_cb): Likewise.
936         (exp_equiv_p): Likewise.
937         (fold_rtx): Likewise.
938         (check_for_label_ref): Likewise.
939         * cselib.c (rtx_equal_for_cselib_1): Likewise.
940         (cselib_hash_rtx): Likewise.
941         * emit-rtl.c (mark_label_nuses): Likewise.
942         * explow.c (convert_memory_address_addr_space): Likewise.
943         * final.c (output_asm_label): Likewise.
944         (output_addr_const): Likewise.
945         * gcse.c (add_label_notes): Likewise.
946         * genconfig.c (walk_insn_part): Likewise.
947         * genrecog.c (validate_pattern): Likewise.
948         * ifcvt.c (cond_exec_get_condition): Likewise.
949         (noce_emit_store_flag): Likewise.
950         (noce_get_alt_condition): Likewise.
951         (noce_get_condition): Likewise.
952         * jump.c (maybe_propagate_label_ref): Likewise.
953         (mark_jump_label_1): Likewise.
954         (redirect_exp_1): Likewise.
955         (rtx_renumbered_equal_p): Likewise.
956         * lra-constraints.c (operands_match_p): Likewise.
957         * reload.c (operands_match_p): Likewise.
958         (find_reloads): Likewise.
959         * reload1.c (set_label_offsets): Likewise.
960         * reorg.c (get_branch_condition): Likewise.
961         * rtl.c (rtx_equal_p_cb): Likewise.
962         (rtx_equal_p): Likewise.
963         * rtlanal.c (reg_mentioned_p): Likewise.
964         (rtx_referenced_p): Likewise.
965         (get_condition): Likewise.
966         * sched-vis.c (print_value): Likewise.
967         * varasm.c (const_hash_1): Likewise.
968         (compare_constant): Likewise.
969         (const_rtx_hash_1): Likewise.
970         (output_constant_pool_1): Likewise.
971
972 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
973
974         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
975         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
976         instead of minus.
977         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
978         cr6_test_for_lt_reverse): Ditto.
979
980 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
981
982         PR c++/61489
983         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
984
985 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
986
987         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
988         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
989         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
990         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
991         Delete.
992
993         (aarch64_fold_builtin): Remove all reinterpret cases.
994
995         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
996
997         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
998
999         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
1000         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
1001         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
1002         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
1003         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
1004         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
1005         aarch64_reinterpretv2df<mode>): Delete.
1006
1007         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
1008
1009         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
1010         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
1011         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
1012         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
1013         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
1014         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
1015         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
1016         vreinterpret_u32_f64): Use cast.
1017
1018         * config/aarch64/iterators.md (VD_RE): Delete.
1019
1020 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
1021
1022         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
1023         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1024         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1025         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
1026         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
1027         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
1028         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
1029         Replace inline assembler with __aarch64_vset_lane_any.
1030
1031 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
1032
1033         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
1034         types.
1035         (vmull_high_lane_s32): Likewise.
1036         (vmull_high_lane_u16): Likewise.
1037         (vmull_high_lane_u32): Likewise.
1038
1039 2014-09-11  Jason Merrill  <jason@redhat.com>
1040
1041         PR c++/58678
1042         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
1043
1044 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
1045
1046         PR target/63223
1047         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
1048         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
1049         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
1050
1051 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1052             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1053             Anna Tikhonova  <anna.tikhonova@intel.com>
1054             Ilya Tocar  <ilya.tocar@intel.com>
1055             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1056             Ilya Verbin  <ilya.verbin@intel.com>
1057             Kirill Yukhin  <kirill.yukhin@intel.com>
1058             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1059
1060         * config/i386/sse.md
1061         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
1062         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
1063         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
1064         New.
1065         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
1066         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
1067         iterator.
1068         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
1069         New.
1070         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
1071         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
1072         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
1073         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
1074         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
1075         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
1076         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
1077         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
1078         iterator.
1079         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
1080         New.
1081         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
1082         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
1083         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
1084
1085 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
1086
1087         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
1088         to access removed nodes.
1089
1090 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
1091
1092         PR tree-optimization/63186
1093         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
1094         (mark_nonssa_use): Likewise.
1095         (verify_non_ssa_vars): Verify all header blocks for label
1096         definitions.
1097
1098 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1099             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1100             Anna Tikhonova  <anna.tikhonova@intel.com>
1101             Ilya Tocar  <ilya.tocar@intel.com>
1102             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1103             Ilya Verbin  <ilya.verbin@intel.com>
1104             Kirill Yukhin  <kirill.yukhin@intel.com>
1105             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1106
1107         * config/i386/sse.md
1108         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
1109         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
1110         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
1111         "<avx2_avx512f>_permvar<mode><mask_name>".
1112         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
1113         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
1114         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
1115         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
1116         Ditto.
1117         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
1118         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1119         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
1120         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1121
1122 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1123
1124         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
1125         V2DF, V4SF, DF, and DI modes.
1126         (vsx_fmav2df2): Likewise.
1127         (vsx_float_fix_<mode>2): Likewise.
1128         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
1129
1130 2014-09-10  Xinliang David Li  <davidxl@google.com>
1131
1132         PR target/63209
1133         * config/arm/arm.md (movcond_addsi): Handle case where source
1134         and target operands are the same.
1135
1136 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
1137
1138         * final.c (this_is_asm_operands): Strengthen this variable from
1139         rtx to const rtx_insn *.
1140         * output.h (this_is_asm_operands): Likewise.
1141         * rtl-error.c (location_for_asm): Strengthen param "insn" from
1142         const_rtx to const rtx_insn *.
1143         (diagnostic_for_asm): Likewise.
1144         * rtl-error.h (error_for_asm): Likewise.
1145         (warning_for_asm): Likewise.
1146
1147 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
1148
1149         * genextract.c (print_header): When writing out insn_extract to
1150         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
1151         * recog.h (insn_extract): Strengthen the param from rtx to
1152         rtx_insn *.
1153
1154 2014-09-10  Mike Stump  <mikestump@comcast.net>
1155
1156         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
1157         8.6.1.
1158
1159 2014-09-10  Martin Jambor  <mjambor@suse.cz>
1160
1161         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
1162         (analyze): Do not set analyze flag if expand_thunk returns false;.
1163         (create_wrapper): Likewise.
1164         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
1165
1166 2014-09-10  Martin Jambor  <mjambor@suse.cz>
1167
1168         PR ipa/61654
1169         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
1170         new decl properly.  Analyze the new thunk if it is expanded.
1171
1172 2014-09-10  Andreas Schwab  <schwab@suse.de>
1173
1174         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
1175         [USED_FOR_TARGET]: Define.
1176
1177 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
1178
1179         * config/mips/mips.c (mips_secondary_reload_class): Handle
1180         regno < 0 case.
1181
1182 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
1183
1184         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
1185         assignment.
1186
1187 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
1188
1189         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
1190         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
1191         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
1192         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
1193         flag_delete_null_pointer_checks for them.
1194         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
1195         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
1196         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
1197         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
1198         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
1199         stmt's iterator.
1200         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
1201         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
1202         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
1203         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
1204         * doc/invoke.texi (-fsanitize=nonnull-attribute,
1205         -fsanitize=returns-nonnull-attribute): Document.
1206
1207         * ubsan.h (struct ubsan_mismatch_data): Removed.
1208         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
1209         * ubsan.c (ubsan_source_location): For unknown locations,
1210         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
1211         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
1212         Allow more than one location and arbitrary extra arguments passed
1213         in ... instead of through MISMATCH pointer.
1214         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
1215         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
1216         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
1217         callers.
1218
1219 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1220             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1221             Anna Tikhonova  <anna.tikhonova@intel.com>
1222             Ilya Tocar  <ilya.tocar@intel.com>
1223             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1224             Ilya Verbin  <ilya.verbin@intel.com>
1225             Kirill Yukhin  <kirill.yukhin@intel.com>
1226             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1227
1228         * config/i386/sse.md
1229         (define_mode_iterator VI48F): New.
1230         (define_insn "<avx512>_compress<mode>_mask"): Rename from
1231         "avx512f_compress<mode>_mask" and update mode iterator.
1232         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
1233         "avx512f_compressstore<mode>_mask" and update mode iterator.
1234         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
1235         "avx512f_expand<mode>_maskz" and update mode iterator.
1236         (define_insn "<avx512>_expand<mode>_mask"): Rename from
1237         "avx512f_expand<mode>_mask" and update mode iterator.
1238
1239 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1240             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1241             Anna Tikhonova  <anna.tikhonova@intel.com>
1242             Ilya Tocar  <ilya.tocar@intel.com>
1243             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1244             Ilya Verbin  <ilya.verbin@intel.com>
1245             Kirill Yukhin  <kirill.yukhin@intel.com>
1246             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1247
1248         * config/i386/i386.c
1249         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
1250         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
1251         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
1252         avx512dq_rangepv4sf_mask.
1253         * config/i386/sse.md
1254         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
1255         UNSPEC_RANGE.
1256         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
1257         (define_insn "reduces<mode>"): Ditto.
1258         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1259         Ditto.
1260         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
1261         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
1262         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
1263
1264 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1265             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1266             Anna Tikhonova  <anna.tikhonova@intel.com>
1267             Ilya Tocar  <ilya.tocar@intel.com>
1268             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1269             Ilya Verbin  <ilya.verbin@intel.com>
1270             Kirill Yukhin  <kirill.yukhin@intel.com>
1271             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1272
1273         * config/i386/i386.c
1274         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
1275         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
1276         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
1277         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
1278         avx512vl_getmantv2df_mask.
1279         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
1280         avx512f_vgetmantv4sf_round.
1281         * config/i386/sse.md
1282         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
1283         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
1284         mode iterator.
1285         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
1286         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
1287         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
1288         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
1289         iterator..
1290         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
1291         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
1292         update mode iterator.
1293         (define_expand
1294         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
1295         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
1296         mode iterator.
1297         (define_insn
1298         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
1299         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
1300         update mode iterator.
1301         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
1302         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
1303         iterator..
1304         (define_insn
1305         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
1306         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
1307         mode iterator..
1308         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
1309         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
1310         update mode iterator.
1311         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
1312         "avx512f_getmant<mode><round_saeonly_name>".
1313
1314 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
1315
1316         PR ipa/63166
1317         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
1318
1319 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1320             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1321             Anna Tikhonova  <anna.tikhonova@intel.com>
1322             Ilya Tocar  <ilya.tocar@intel.com>
1323             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1324             Ilya Verbin  <ilya.verbin@intel.com>
1325             Kirill Yukhin  <kirill.yukhin@intel.com>
1326             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1327
1328         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
1329         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
1330         (define_mode_iterator FMAMODE_AVX512): New.
1331         (define_mode_iterator FMAMODE): Remove conditions.
1332         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
1333         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
1334         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
1335         mode iterator.
1336         (define_mode_iterator FMAMODE_NOVF512): Remove.
1337         (define_insn "*fma_fmadd_<mode>"): Rename from
1338         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
1339         FMAMODE mode iterator.
1340         (define_mode_iterator VF_SF_AVX512VL): New.
1341         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
1342         Use VF_SF_AVX512VL mode iterator.
1343         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
1344         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1345         iterator.
1346         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
1347         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1348         iterator.
1349         (define_insn "*fma_fmsub_<mode>"): Rename from
1350         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
1351         FMAMODE mode iterator.
1352         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
1353         Use VF_SF_AVX512VL mode iterator.
1354         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
1355         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1356         iterator.
1357         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
1358         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1359         iterator.
1360         (define_insn "*fma_fnmadd_<mode>"): Rename from
1361         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
1362         use FMAMODE mode iterator.
1363         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
1364         Use VF_SF_AVX512VL mode iterator.
1365         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
1366         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1367         iterator.
1368         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
1369         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1370         iterator.
1371         (define_insn "*fma_fnmsub_<mode>"): Rename from
1372         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
1373         FMAMODE mode iterator.
1374         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
1375         Use VF_SF_AVX512VL mode iterator.
1376         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
1377         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1378         iterator.
1379         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
1380         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1381         iterator.
1382         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
1383         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
1384         use VF_AVX512VL mode iterator.
1385         (define_insn "*fma_fmaddsub_<mode>"): Rename from
1386         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
1387         remove subst usage.
1388         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
1389         Use VF_SF_AVX512VL mode iterator.
1390         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
1391         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1392         iterator.
1393         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
1394         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1395         iterator.
1396         (define_insn "*fma_fmsubadd_<mode>"): Rename from
1397         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
1398         remove usage of subst.
1399         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
1400         Use VF_SF_AVX512VL mode iterator.
1401         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
1402         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1403         iterator.
1404         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
1405         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1406         iterator.
1407
1408 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
1409
1410         Revert r213751:
1411         * calls.c (precompute_arguments): Check
1412          promoted_for_signed_and_unsigned_p and set the promoted mode.
1413         (promoted_for_signed_and_unsigned_p): New function.
1414         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
1415         and set the promoted mode.
1416         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
1417         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
1418         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
1419
1420 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1421
1422         * opth-gen.awk: Generate mapping from cpp message reasons to the
1423         options that enable them.
1424         * doc/options.texi (CppReason): Document.
1425
1426 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1427
1428         * doc/invoke.texi (Wnormalized=): Update.
1429
1430 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
1431
1432         PR target/63195
1433         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
1434         operands.  Split off the constant operand alternative to ...
1435         (*bool<mode>3_imm): New.
1436
1437 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1438
1439         * rtl.h (single_set_2): Strengthen first param from const_rtx to
1440         const rtx_insn *, and move prototype to above...
1441         (single_set): ...this.  Convert this from a macro to an inline
1442         function, enforcing the requirement that the param is a const
1443         rtx_insn *.
1444         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
1445
1446         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
1447         Strengthen both params from rtx to rtx_insn *.
1448         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
1449         Likewise; introduce locals "producer_set", "consumer_set", using
1450         them in place of "producer" and "consumer" when dealing with SET
1451         rather than insn.
1452         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
1453         when invoking single_set in region guarded by INSN_P.
1454         (avr_out_bitop): Likewise.
1455         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
1456         region guarded by GET_CODE check, using methods to strengthen
1457         local "this_insn" from rtx to rtx_insn *, and for clarity.
1458         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
1459         Strengthen local "insn" from rtx to rtx_insn *.
1460         (define_insn_and_split "xload<mode>_A"): Likewise.
1461         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
1462         "insn".
1463         (find_load): Likewise for return type.
1464         (workaround_speculation): Likewise for both locals named
1465         "load_insn".
1466         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
1467         local "cc0_user".
1468         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
1469         for local "prev".
1470         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
1471         param 2.
1472         * config/h8300/h8300.c (notice_update_cc): Likewise.
1473         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
1474         "insn" and "dep_insn".
1475         (exact_store_load_dependency): Likewise for both params.
1476         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
1477         since this now clashes with inline function.  Instead, delay
1478         calling single_set until the point where its needed, and then
1479         assign the result to "compare_set" and rework the conditional that
1480         follows.
1481         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
1482         local "last" from rtx to rtx_insn *.
1483         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
1484         second param.
1485         (mips_store_data_bypass_p): Likewise for both params.
1486         * config/mips/mips.c (mips_load_store_insns): Likewise for second
1487         param.
1488         (mips_store_data_bypass_p): Likewise for both params.
1489         (mips_orphaned_high_part_p): Likewise for param "insn".
1490         * config/mn10300/mn10300.c (extract_bundle): Likewise.
1491         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
1492         Introduce local rtx "insn2_pat".
1493         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
1494         "ninsn".
1495         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
1496         Introduce local rtx "set", using it in place of "insn" for the
1497         result of single_set.  This appears to fix a bug, since the call
1498         to find_regno_note on a SET does nothing.
1499         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
1500         params from rtx to rtx_insn *.
1501         (set_to_load_agen): Likewise.
1502         * config/s390/s390.c (s390_label_align): Likewise for local
1503         "prev_insn".  Introduce new rtx locals "set" and "src", using
1504         them in place of "prev_insn" for the results of single_set
1505         and SET_SRC respectively.
1506         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
1507         Introduce new rtx local "set" using in place of "jump" for the
1508         result of single_set.  Use SET_SRC (set) rather than plain
1509         XEXP (set, 1).
1510         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
1511         rtx to rtx_insn *.
1512         (noncall_uses_reg): Likewise.
1513         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
1514         guarded by GET_CODE check, using its methods for clarity, and to
1515         enable strengthening local "this_insn" from rtx to rtx_insn *.
1516         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
1517         "insn" from rtx to rtx_insn *.
1518         (define_expand "umulhisi3"): Likewise.
1519         (define_expand "smulsi3_highpart"): Likewise.
1520         (define_expand "umulsi3_highpart"): Likewise.
1521         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1522         local "after".  Replace GET_CODE check with a dyn_cast,
1523         introducing new local rtx_sequence * "seq", using insn method for
1524         typesafety.
1525
1526         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
1527         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
1528         place of "insn" once we're dealing with patterns rather than the
1529         input insn.
1530         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
1531         (scan_trace): Likewise for local "elt", updating lookups within
1532         sequence to use insn method rather than element method.
1533         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
1534         to rtx_insn *.
1535         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
1536         * ifcvt.c (noce_try_abs): Likewise for local "insn".
1537         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
1538         invoking single_set.
1539         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
1540         "insn" from rtx to rtx_insn *.
1541         (skip_usage_debug_insns): Likewise for return type, adding a
1542         checked cast.
1543         (check_secondary_memory_needed_p): Likewise for local "insn".
1544         (inherit_reload_reg): Likewise.
1545         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
1546         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
1547         checked casts.
1548         (store_data_bypass_p): Likewise for both params.
1549         (if_test_bypass_p): Likewise.
1550         * recog.h (store_data_bypass_p): Likewise for both params.
1551         (if_test_bypass_p): Likewise.
1552         * reload.c (find_equiv_reg): Likewise for local "where".
1553         * reorg.c (delete_jump): Likewise for param "insn".
1554         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
1555         to const rtx_insn *.
1556         * store-motion.c (replace_store_insn): Likewise for param "del".
1557         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
1558         and use its methods for clarity, and to strengthen local "del"
1559         from rtx to rtx_insn *.
1560         (build_store_vectors): Use insn method of "st" when calling
1561         replace_store_insn for typesafety and clarity.
1562
1563 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1564
1565         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
1566         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
1567         on how to make it legal in future.
1568
1569 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1570
1571         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
1572         to rtx_insn *.
1573         (restinsn): Likewise.
1574         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
1575         Likewise for param.
1576         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
1577         Likewise.
1578         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
1579         first param.
1580         (arc_hazard): Likewise for both params.
1581         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
1582         checked casts to rtx_sequence * and uses of the insn method for
1583         type-safety.
1584         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
1585         (arc_adjust_insn_length): Likewise for param "insn".
1586         (struct insn_length_parameters_s): Likewise for first param of
1587         "get_variants" callback field.
1588         (arc_get_insn_variants): Likewise for first param and local
1589         "inner".  Replace a check of GET_CODE with a dyn_cast to
1590         rtx_sequence *, using methods for type-safety and clarity.
1591         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
1592         rtx_sequence * and uses of the insn method for type-safety when
1593         invoking arc_adjust_insn_length.
1594         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
1595         for param.
1596         (arm_address_offset_is_imm): Likewise.
1597         (struct tune_params): Likewise for params 1 and 3 of the
1598         "sched_adjust_cost" callback field.
1599         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
1600         params 1 and 3 ("insn" and "dep").
1601         (xscale_sched_adjust_cost): Likewise.
1602         (fa726te_sched_adjust_cost): Likewise.
1603         (cortexa7_older_only): Likewise for param "insn".
1604         (cortexa7_younger): Likewise.
1605         (arm_attr_length_move_neon): Likewise.
1606         (arm_address_offset_is_imm): Likewise.
1607         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
1608         * config/avr/avr.c (avr_notice_update_cc): Likewise.
1609         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
1610         (workaround_speculation): Likewise for local "last_condjump".
1611         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
1612         (shadow_or_blockage_p): Likewise.
1613         (get_unit_reqs): Likewise.
1614         (get_unit_operand_masks): Likewise.
1615         (c6x_registers_update): Likewise.
1616         (returning_call_p): Likewise.
1617         (can_use_callp): Likewise.
1618         (convert_to_callp): Likewise.
1619         (find_last_same_clock): Likwise for local "t".
1620         (reorg_split_calls): Likewise for local "shadow".
1621         (hwloop_pattern_reg): Likewise for param "insn".
1622         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
1623         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1624         (frv_extract_membar): Likewise.
1625         (frv_optimize_membar_local): Strengthen param "last_membar" from
1626         rtx * to rtx_insn **.
1627         (frv_optimize_membar_global): Strengthen param "membar" from rtx
1628         to rtx_insn *.
1629         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
1630         to rtx_insn **.
1631         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
1632         both params from rtx to rtx_insn *.
1633         (ia64_ld_address_bypass_p): Likewise.
1634         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
1635         "insn".
1636         (ia64_safe_type): Likewise.
1637         (group_barrier_needed): Likewise.
1638         (safe_group_barrier_needed): Likewise.
1639         (ia64_single_set): Likewise.
1640         (is_load_p): Likewise.
1641         (record_memory_reference): Likewise.
1642         (get_mode_no_for_insn): Likewise.
1643         (important_for_bundling_p): Likewise.
1644         (unknown_for_bundling_p): Likewise.
1645         (ia64_st_address_bypass_p): Likewise for both params.
1646         (ia64_ld_address_bypass_p): Likewise.
1647         (expand_vselect): Introduce new local rtx_insn * "insn", using it
1648         in place of rtx "x" after the emit_insn call.
1649         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
1650         Strengthen param from rtx to rtx_insn *.
1651         (ix86_agi_dependent): Likewise for both params.
1652         (ix86_attr_length_immediate_default): Likewise for param 1.
1653         (ix86_attr_length_address_default): Likewise for param.
1654         (ix86_attr_length_vex_default): Likewise for param 1.
1655         * config/i386/i386.c (ix86_attr_length_immediate_default):
1656         Likewise for param "insn".
1657         (ix86_attr_length_address_default): Likewise.
1658         (ix86_attr_length_vex_default): Likewise.
1659         (ix86_agi_dependent): Likewise for both params.
1660         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
1661         (vselect_insn): Likewise for this variable.
1662         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
1663         for param 1.
1664         (m68k_sched_attr_opy_type): Likewise.
1665         * config/m68k/m68k.c (sched_get_operand): Likewise.
1666         (sched_attr_op_type): Likewise.
1667         (m68k_sched_attr_opx_type): Likewise.
1668         (m68k_sched_attr_opy_type): Likewise.
1669         (sched_get_reg_operand): Likewise.
1670         (sched_get_mem_operand): Likewise.
1671         (m68k_sched_address_bypass_p): Likewise for both params.
1672         (sched_get_indexed_address_scale): Likewise.
1673         (m68k_sched_indexed_address_bypass_p): Likewise.
1674         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
1675         (m68k_sched_indexed_address_bypass_p): Likewise.
1676         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
1677         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
1678         removing another.
1679         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
1680         params from rtx to rtx_insn *.
1681         (mips_fmadd_bypass): Likewise.
1682         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
1683         (mips_linked_madd_p): Likewise.
1684         (mips_macc_chains_last_hilo): Likewise for this variable.
1685         (mips_macc_chains_record): Likewise for param.
1686         (vr4130_last_insn): Likewise for this variable.
1687         (vr4130_swap_insns_p): Likewise for both params.
1688         (mips_ls2_variable_issue): Likewise for param.
1689         (mips_need_noat_wrapper_p): Likewise for param "insn".
1690         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
1691         in place of "x" after the emit_insn.
1692         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
1693         params from rtx to rtx_insn *.
1694         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
1695         (pa_combine_instructions): Introduce local "par" for result of
1696         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1697         to make_insn_raw.
1698         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1699         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1700         (rl78_alloc_physical_registers_op1): Likewise.
1701         (rl78_alloc_physical_registers_op2): Likewise.
1702         (rl78_alloc_physical_registers_ro1): Likewise.
1703         (rl78_alloc_physical_registers_cmp): Likewise.
1704         (rl78_alloc_physical_registers_umul): Likewise.
1705         (rl78_alloc_address_registers_macax): Likewise.
1706         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1707         * config/s390/predicates.md (execute_operation): Likewise for
1708         local "insn".
1709         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1710         params.
1711         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1712         (addr_generation_dependency_p): Likewise for param "insn".
1713         (s390_agen_dep_p): Likewise for both params.
1714         (s390_fpload_toreg): Likewise for param "insn".
1715         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1716         * config/sh/sh.c (sh_loop_align): Likewise for param and local
1717         "next".
1718         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1719         * config/sh/sh_treg_combine.cc
1720         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1721         and local "i".
1722         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1723         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1724         "and_insn", "load", "shift".
1725         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1726         "insn".
1727         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1728         for XEXP (note, 0) of the REG_CC_SETTER note.
1729         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1730         rtx_insn *, eliminating a checked cast made redundant by this.
1731         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1732         to rtx_insn *.
1733         * genattr.c (main): When writing out the prototype to
1734         const_num_delay_slots, strengthen the param from rtx to
1735         rtx_insn *.
1736         * genattrtab.c (write_const_num_delay_slots): Likewise when
1737         writing out the implementation of const_num_delay_slots.
1738         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1739         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1740         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1741         favor of new rtx locals "src" and "set" and new local rtx_insn *
1742         "insn" and "seq".
1743         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1744         to rtx_insn *.
1745         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1746         locals "cond", "if_then_else", "set" and new rtx_insn * locals
1747         "insn" and "seq".
1748         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1749         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
1750         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
1751         the top-level scope, replacing with new more tightly-scoped rtx
1752         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1753         "new_insn", "copy_of_insn_b", and make local rtx "set" more
1754         tightly-scoped.
1755         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1756         rtx_insn *.
1757         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1758         "move_insn".
1759         (ira_setup_alts): Likewise for param "insn".
1760         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1761         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1762         and an rtx_insn *.
1763         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1764         new more-tightly scoped rtx locals "add3_insn", "insn",
1765         "add2_insn" and rtx_insn * "move_insn".
1766         * postreload-gcse.c (eliminate_partially_redundant_load): Add
1767         checked cast on result of gen_move_insn when invoking
1768         extract_insn.
1769         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1770         rtx_insn *.
1771         (verify_changes): Add a checked cast on "object" when invoking
1772         insn_invalid_p.
1773         (extract_insn_cached): Strengthen param "insn" from rtx to
1774         rtx_insn *.
1775         (extract_constrain_insn_cached): Likewise.
1776         (extract_insn): Likewise.
1777         * recog.h (insn_invalid_p): Likewise for param 1.
1778         (recog_memoized): Likewise for param.
1779         (extract_insn): Likewise.
1780         (extract_constrain_insn_cached): Likewise.
1781         (extract_insn_cached): Likewise.
1782         * reload.c (can_reload_into): Likewise for local "test_insn".
1783         * reload.h (cleanup_subreg_operands): Likewise for param.
1784         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1785         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1786         result of emit_insn.  Remove a checked cast made redundant by this
1787         change.
1788         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1789         rtx to rtx_insn *.
1790         * sel-sched.c (get_reg_class): Likewise.
1791
1792 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1793         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1794
1795          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1796          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1797         Define.
1798         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1799
1800 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1801
1802         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1803         const rtx_insn *, and from rtx to rtx_insn * for the other
1804         overloaded variant.
1805         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1806         INSN_LOCATION, since we know INSN_P holds.
1807         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1808         (insn_file): Likewise.
1809         (insn_scope): Likewise.
1810         (insn_location): Likewise.
1811
1812         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1813         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1814         for the result of gen_load_const_gp.
1815         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1816         param from rtx to rtx_insn *.
1817         * config/rs6000/rs6000.c (output_call): Likewise.
1818         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1819         introducing a checked cast to rtx_sequence * and use of the insn
1820         method.
1821         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1822         from rtx to rtx_insn *.
1823         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1824         (insn_line): Likewise.
1825         (insn_file): Likewise.
1826         (insn_location): Likewise.
1827         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1828         from rtx to rtx_insn *.
1829         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1830         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1831         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1832         via a checked cast.
1833         * reorg.c (relax_delay_slots): Strengthen locals named "after"
1834         from rtx to rtx_insn *; use methods of "pat" for type-safety.
1835
1836 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1837
1838         * combine.c (try_combine): Eliminate checked cast on result of
1839         gen_rtx_INSN.
1840         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1841         autogenerated one by strengthening the return type and params 2 and 3
1842         from rtx to rtx_insn *, and by naming the params.
1843         * gengenrtl.c (special_rtx): Add INSN to those that are
1844         special-cased.
1845         * rtl.h (gen_rtx_INSN): New prototype.
1846
1847 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1848
1849         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1850         than NULL_RTX.
1851         (no_equiv): Likewise.
1852         (update_equiv_regs): Likewise.
1853         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
1854         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1855         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
1856         clarity.
1857         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1858         from rtx to rtx_insn_list *.
1859         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1860         rtx_insn_list * and use methods for clarity and typesafety.
1861         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1862         "list".
1863         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
1864         redundant check on INSN_P (insns): this cannot hold, as "insns" is
1865         an INSN_LIST, not an insn.
1866         (reverse_equiv_p): Strengthen local "insns" from rtx to
1867         rtx_insn_list * and use methods for clarity and typesafety.
1868         (contains_reloaded_insn_p): Likewise for local "list".
1869
1870 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
1871
1872         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1873         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1874         (arm_builtin_vectorized_function): Likewise.
1875         * config/arm/arm_neon_builtins.def: New macro for copysignf.
1876         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1877
1878 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
1879
1880         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1881         * builtins.h (default_target_builtins): Likewise.
1882         * gcse.h (default_target_gcse): Likewise.
1883         * target-globals.h (target_globals): Add a destructor.  Convert
1884         void-pointer fields back to their real type and change from
1885         GTY((atomic)) to GTY((skip)).
1886         (restore_target_globals): Remove casts accordingly.
1887         * target-globals.c (save_target_globals): Use XCNEW rather than
1888         ggc_internal_cleared_alloc to allocate non-GC structures.
1889         Use ggc_cleared_alloc to allocate the target_globals structure
1890         itself.
1891         (target_globals::~target_globals): Define.
1892
1893 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1894
1895         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1896         mnemonic instead of fldmfdd.
1897         * config/arm/arm.c (vfp_output_fstmd): Rename to...
1898         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
1899         Output vpush when address register is SP.
1900         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1901         (vfp_output_vstmd): ... This.
1902         * config/arm/vfp.md (push_multi_vfp): Update call to
1903         vfp_output_vstmd.
1904
1905 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1906
1907         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1908
1909 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1910
1911         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1912         (*sqrtdf2_vfp): Likewise.
1913         (*cmpsf_vfp): Likewise.
1914         (*cmpsf_trap_vfp): Likewise.
1915         (*cmpdf_vfp): Likewise.
1916         (*cmpdf_trap_vfp): Likewise.
1917
1918 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1919
1920         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1921         (*truncdfsf2_vfp): Likewise.
1922         (*truncsisf2_vfp): Likewise.
1923         (*truncsidf2_vfp): Likewise.
1924         (fixuns_truncsfsi2): Likewise.
1925         (fixuns_truncdfsi2): Likewise.
1926         (*floatsisf2_vfp): Likewise.
1927         (*floatsidf2_vfp): Likewise.
1928         (floatunssisf2): Likewise.
1929         (floatunssidf2): Likewise.
1930
1931 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1932
1933         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1934         (*muldf3_vfp): Likewise.
1935         (*mulsf3negsf_vfp): Likewise.
1936         (*muldf3negdf_vfp): Likewise.
1937         (*mulsf3addsf_vfp): Likewise.
1938         (*muldf3adddf_vfp): Likewise.
1939         (*mulsf3subsf_vfp): Likewise.
1940         (*muldf3subdf_vfp): Likewise.
1941         (*mulsf3negsfaddsf_vfp): Likewise.
1942         (*fmuldf3negdfadddf_vfp): Likewise.
1943         (*mulsf3negsfsubsf_vfp): Likewise.
1944         (*muldf3negdfsubdf_vfp): Likewise.
1945
1946 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1947
1948         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1949         (*absdf2_vfp): Likewise.
1950         (*negsf2_vfp): Likewise.
1951         (*negdf2_vfp): Likewise.
1952         (*addsf3_vfp): Likewise.
1953         (*adddf3_vfp): Likewise.
1954         (*subsf3_vfp): Likewise.
1955         (*subdf3_vfp): Likewise.
1956         (*divsf3_vfp): Likewise.
1957         (*divdf3_vfp): Likewise.
1958
1959 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1960
1961         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1962         multiple.
1963         (arm_print_operand): Don't convert real values to decimal
1964         representation in default case.
1965         (fp_immediate_constant): Delete.
1966         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1967         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1968         syntax.
1969         (*thumb2_movsi_vfp): Likewise.
1970         (*movdi_vfp): Likewise.
1971         (*movdi_vfp_cortexa8): Likewise.
1972         (*movhf_vfp_neon): Likewise.
1973         (*movhf_vfp): Likewise.
1974         (*movsf_vfp): Likewise.
1975         (*thumb2_movsf_vfp): Likewise.
1976         (*movdf_vfp): Likewise.
1977         (*thumb2_movdf_vfp): Likewise.
1978         (*movsfcc_vfp): Likewise.
1979         (*thumb2_movsfcc_vfp): Likewise.
1980         (*movdfcc_vfp): Likewise.
1981         (*thumb2_movdfcc_vfp): Likewise.
1982
1983 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
1984
1985         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1986         (-mtune): Likewise.
1987         (-mcpu): Likewise.
1988
1989 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1990
1991         PR target/61749
1992         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1993         Use qualifier_immediate for last operand.  Rename to...
1994         (aarch64_types_ternop_lane_qualifiers): ... This.
1995         (TYPES_QUADOP): Rename to...
1996         (TYPES_TERNOP_LANE): ... This.
1997         (aarch64_simd_expand_args): Return const0_rtx when encountering user
1998         error.  Change return of 0 to return of NULL_RTX.
1999         (aarch64_crc32_expand_builtin): Likewise.
2000         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
2001         ICE when expanding unknown builtin.
2002         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
2003         TERNOP_LANE qualifiers.
2004         (sqdmlsl_lane): Likewise.
2005         (sqdmlal_laneq): Likewise.
2006         (sqdmlsl_laneq): Likewise.
2007         (sqdmlal2_lane): Likewise.
2008         (sqdmlsl2_lane): Likewise.
2009         (sqdmlal2_laneq): Likewise.
2010         (sqdmlsl2_laneq): Likewise.
2011
2012 2014-09-09  Nick Clifton  <nickc@redhat.com>
2013
2014         * doc/invoke.texi (Optimization Options): Add missing @gol to the
2015         end of a line.
2016         (S/390 and zSeries Options): Remove superfluous word from the
2017         description of the -mhotpatch option.
2018
2019 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2020
2021         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
2022         * ira.c: #include "shrink-wrap.h"
2023         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
2024         * ifcvt.c: #include "shrink-wrap.h"
2025         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
2026
2027 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
2028
2029         * common/config/picochip/picochip-common.c: Remove.
2030         * config.gcc: Remove support for picochip.
2031         * config/picochip/constraints.md: Remove.
2032         * config/picochip/dfa_space.md: Remove.
2033         * config/picochip/dfa_speed.md: Remove.
2034         * config/picochip/picochip-protos.h: Remove.
2035         * config/picochip/picochip.c: Remove.
2036         * config/picochip/picochip.h: Remove.
2037         * config/picochip/picochip.md: Remove.
2038         * config/picochip/picochip.opt: Remove.
2039         * config/picochip/predicates.md: Remove.
2040         * config/picochip/t-picochip: Remove.
2041         * doc/md.texi: Don't document picochi.
2042
2043 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
2044
2045         * basic-block.h (control_flow_insn_p): Strengthen param from
2046         const_rtx to const rtx_insn *.
2047         * cfgbuild.c (control_flow_insn_p): Likewise.
2048
2049 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
2050
2051         * gcse.c (modify_mem_list): Strengthen this variable from
2052         vec<rtx> * to vec<rtx_insn *> *.
2053         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
2054         vec<rtx_insn *>.
2055         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
2056         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
2057         (record_last_mem_set_info): Strengthen param "insn" from rtx to
2058         rtx_insn *.
2059         (record_last_set_info): Likewise for local "last_set_insn".
2060
2061 2014-09-08  DJ Delorie  <dj@redhat.com>
2062
2063         * doc/invoke.texi (MSP430 Options): Add -minrt.
2064
2065 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2066
2067         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
2068         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
2069         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
2070         handling SH_SPLAT.
2071         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
2072         of extracted lane.
2073         (adjust_splat): New function.
2074         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
2075         (dump_swap_insn_table): Add case for SH_SPLAT.
2076
2077 2014-09-08  Richard Biener  <rguenther@suse.de>
2078
2079         PR ipa/63196
2080         * tree-inline.c (copy_loops): The source loop header should
2081         always be non-NULL.
2082         (tree_function_versioning): If loops need fixup after removing
2083         unreachable blocks fix them.
2084         * omp-low.c (simd_clone_adjust): Do not add incr block to
2085         loop under construction.
2086
2087 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2088
2089         * config/aarch64/aarch64-builtins.c
2090         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
2091
2092 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
2093
2094         * config/i386/cygming.h (TF_SIZE): Remove.
2095         * config/i386/darwin.h (TF_SIZE): Remove.
2096         * config/i386/dragonfly.h (TF_SIZE): Remove.
2097         * config/i386/freebsd.h (TF_SIZE): Remove.
2098         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
2099         * config/i386/openbsdelf.h (TF_SIZE): Remove.
2100         * config/i386/sol2.h (TF_SIZE): Remove.
2101         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
2102         * config/ia64/linux.h (TF_SIZE): Remove.
2103         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
2104         * doc/tm.texi: Regenerate.
2105         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
2106
2107 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
2108
2109         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
2110         Remove.
2111         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
2112         Remove.
2113         * doc/tm.texi: Regenerate.
2114         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
2115         Poison.
2116         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
2117         * config/cris/cris.h (__make_dp): Remove.
2118
2119 2014-09-08  Richard Biener  <rguenther@suse.de>
2120
2121         PR bootstrap/63204
2122         * cfgloop.c (mark_loop_for_removal): Track former header
2123         unconditionally.
2124         * cfgloop.h (struct loop): Add former_header member unconditionally.
2125         * loop-init.c (fix_loop_structure): Enable bogus loop removal
2126         diagnostic unconditionally.
2127
2128 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
2129
2130         PR target/63190
2131         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
2132         constraint for operand0 and remove write only modifier from operand3.
2133
2134 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
2135
2136         PR rtl-optimization/62208
2137         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
2138         rather than const0_rtx in eq/ne-xor simplifications.
2139
2140 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
2141
2142         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
2143         (arc_output_mi_thunk): Likewise.
2144
2145         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
2146         arguments to silence bogus warning.
2147
2148 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
2149
2150         PR middle-end/63171
2151         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
2152
2153 2014-09-06  Tom de Vries  <tom@codesourcery.com>
2154
2155         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
2156         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
2157         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2158
2159 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
2160
2161         PR target/63188
2162         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
2163         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
2164
2165 2014-09-05  Easwaran Raman  <eraman@google.com>
2166
2167         PR rtl-optimization/62146
2168         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
2169         hoisted instruction unconditional.
2170
2171 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
2172
2173         PR target/63187
2174         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
2175         Do not allow any_mask_operand for operands[2].
2176         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
2177
2178 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2179
2180         * config/arc/arc.c (arc_print_operand): Use insn method of
2181         final_sequence for type-safety.
2182         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
2183         "insn" from rtx to rtx_insn *.
2184         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
2185         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
2186         Likewise for locals "branch", "label".
2187         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
2188         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
2189         (same_cmp_following_p): Likewise for locals "i2", "i3".
2190         * config/sh/sh_optimize_sett_clrt.cc
2191         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
2192         param "cbranch_insn".
2193         * function.c (convert_jumps_to_returns): Likewis for local "jump".
2194         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
2195         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
2196         const rtx_insn *.
2197         (condjump_p): Likewise.
2198         (condjump_in_parallel_p): Likewise.
2199         (pc_set): Likewise.
2200         (any_uncondjump_p): Likewise.
2201         (any_condjump_p): Likewise.
2202         (condjump_label): Likewise.
2203         (returnjump_p): Strengthen param "insn" from rtx to
2204         const rtx_insn *.
2205         (onlyjump_p): Strengthen param "insn" from const_rtx to
2206         const rtx_insn *.
2207         (jump_to_label_p): Likewise.
2208         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
2209         (invert_jump): Likewise.
2210         * reorg.c (simplejump_or_return_p): Add checked cast when calling
2211         simplejump_p.
2212         (get_jump_flags): Strengthen param "insn" from rtx to
2213         const rtx_insn *.
2214         (get_branch_condition): Likewise.
2215         (condition_dominates_p): Likewise.
2216         (make_return_insns): Move declaration of local "pat" earlier, to
2217         after we've handled NONJUMP_INSN_P and non-sequences, using its
2218         methods to simplify the code and for type-safety.
2219         * rtl.h (find_constant_src): Strengthen param from const_rtx to
2220         const rtx_insn *.
2221         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
2222         (condjump_p): Strengthen param from const_rtx to
2223         const rtx_insn *.
2224         (any_condjump_p): Likewise.
2225         (any_uncondjump_p): Likewise.
2226         (pc_set): Likewise.
2227         (condjump_label): Likewise.
2228         (simplejump_p): Likewise.
2229         (returnjump_p): Likewise.
2230         (onlyjump_p): Likewise.
2231         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
2232         (invert_jump): Likewise.
2233         (condjump_in_parallel_p): Strengthen param from const_rtx to
2234         const rtx_insn *.
2235         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
2236         to const rtx_insn *.
2237         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
2238         to const rtx_insn *.
2239         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
2240
2241 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2242
2243         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
2244         above the conditional, and convert the check on GET_CODE to a
2245         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
2246         the conditional.  Simplify the conditional by using methods of
2247         "trial_seq".
2248
2249 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2250
2251         * haifa-sched.c (check_clobbered_conditions): Strengthen local
2252         "link" from rtx to rtx_insn_list *, and use its methods for
2253         clarity and type-safety.
2254         (toggle_cancelled_flags): Likewise.
2255         (restore_last_backtrack_point): Likewise.
2256         (queue_to_ready): Use insn method of "link" in one place.
2257         (schedule_block): Strengthen local "link" from rtx to
2258         rtx_insn_list *, and use its methods for clarity and type-safety.
2259
2260 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2261
2262         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
2263         param "insn" from const_rtx to const rtx_insn *.
2264         (sched_get_reverse_condition_uncached): Likewise.
2265         (sched_get_condition_with_rev): Likewise.
2266         (sched_has_condition_p): Likewise.
2267         (sched_insns_conditions_mutex_p): Likewise for both params.
2268         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
2269         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
2270         (setup_insn_reg_uses): Move local "list" to be more tightly
2271         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
2272         its methods for clarity and type-safety.
2273         (sched_analyze_1): Strengthen local "pending" from rtx to
2274         rtx_insn_list *, and local "pending_mem" from rtx to
2275         rtx_expr_list *.  Use methods of each for clarity and type-safety.
2276         (sched_analyze_2): Likewise.
2277         (sched_analyze_insn): Likewise.
2278
2279         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
2280         param from const_rtx to const rtx_insn *.
2281         (sched_insns_conditions_mutex_p): Likewise for both params.
2282         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
2283         param.
2284
2285         * system.h (CONST_CAST_RTX_INSN): New macro.
2286
2287 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2288
2289         * recog.c (peep2_attempt): Strengthen return type from rtx to
2290         rtx_insn *.
2291         (peep2_update_life): Likewise for params "last", "prev", removing
2292         a checked cast made redundant by this.
2293         (peephole2_optimize): Likewise for local "last".
2294
2295 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2296
2297         * basic-block.h (set_block_for_insn): Eliminate this macro in
2298         favor of...
2299         * rtl.h (set_block_for_insn): New inline function, imposing the
2300         requirement that the "insn" param is an rtx_insn *.
2301
2302 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2303
2304         * caller-save.c (setup_save_areas): Strengthen local "insn" from
2305         rtx to rtx_insn *.
2306         * final.c (get_call_reg_set_usage): Likewise for first param,
2307         eliminating a checked cast.
2308         * regs.h (get_call_reg_set_usage): Likewise for first param.
2309         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
2310         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
2311         cast, replacing references to "x" with "call_insn" where
2312         appropriate.
2313         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
2314         rtx_insn *, adding a checked cast.
2315
2316 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2317
2318         * output.h (final_scan_insn): Strengthen first param from rtx to
2319         rtx_insn *.
2320
2321         * final.c (final_scan_insn): Likewise, renaming it back from
2322         "uncast_insn" to "insn", eliminating the checked cast.
2323
2324         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
2325         "vec" with an rtx_sequence * "seq", taking a copy of
2326         "final_sequence", and using methods of "seq" for clarity, and for
2327         type-safety in the calls to final_scan_insn.
2328         * config/mips/mips.c (mips_output_conditional_branch): Use methods
2329         of "final_sequence" for clarity, and for type-safety in the call to
2330         final_scan_insn.
2331         * config/sh/sh.c (print_slot): Strengthen param from rtx to
2332         rtx_sequence * and rename from "insn" to "seq".
2333
2334 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2335
2336         * jump.c (delete_related_insns): Introduce a new local "table" by
2337         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
2338         get_labels method of "table" to simplify access to the labels in
2339         the jump table.
2340
2341 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2342
2343         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
2344         f_minmaxs, f_minmaxd types.
2345
2346 2014-09-05  Richard Biener  <rguenther@suse.de>
2347
2348         * cfgloop.c (mark_loop_for_removal): Record former header
2349         when ENABLE_CHECKING.
2350         * cfgloop.h (strut loop): Add former_header member when
2351         ENABLE_CHECKING.
2352         * loop-init.c (fix_loop_structure): Sanity check loops
2353         marked for removal if they re-appeared.
2354
2355 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2356
2357         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
2358         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
2359
2360         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
2361         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
2362         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
2363         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
2364         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
2365         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
2366         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
2367         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
2368         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
2369         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
2370         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
2371         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
2372         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
2373         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
2374         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
2375         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
2376         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
2377         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
2378         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
2379         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
2380         with int{32,16,8}_t.
2381
2382 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2383
2384         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
2385         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
2386         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
2387         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
2388         Remove temporary __asm__ and reimplement.
2389
2390 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2391
2392         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
2393         handling cmge, cmgt, cmeq, cmtst.
2394
2395         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
2396         cmlt, cmgeu, cmgtu, cmtst): Remove.
2397
2398         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
2399         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
2400         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
2401         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
2402
2403 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2404
2405         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
2406         TYPES_TST): Define.
2407         (aarch64_fold_builtin): Update pattern for cmtst.
2408
2409         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
2410         Declare.
2411
2412         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
2413
2414         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
2415         Switch operands, separate out more cases, refactor.
2416
2417         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
2418
2419         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
2420         argument; rename old version to...
2421         (aarch64_const_vec_all_same_in_range_p): ...this.
2422         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
2423
2424         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
2425
2426 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2427
2428         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2429         Remove qualifier_const_pointer, update comment.
2430
2431 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2432
2433         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
2434
2435 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2436
2437         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
2438         varargs with pointer parameter.
2439         (aarch64_simd_expand_builtin): pass pointer into previous.
2440
2441 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2442
2443         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
2444         alus_ext.
2445
2446 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2447
2448         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
2449         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
2450         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
2451         Replace temporary asm with call to builtin.
2452         (vrbit_p8, vrbitq_p8): New functions.
2453
2454 2014-09-05  Richard Biener  <rguenther@suse.de>
2455
2456         * cfgloop.c (mark_loop_for_removal): New function.
2457         * cfgloop.h (mark_loop_for_removal): Declare.
2458         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
2459         (merge_blocks): Likewise.
2460         (duplicate_block): Likewise.
2461         * except.c (sjlj_emit_dispatch_table): Likewise.
2462         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
2463         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
2464         (thread_through_loop_header): Likewise.
2465
2466 2014-09-05  Richard Biener  <rguenther@suse.de>
2467
2468         PR middle-end/63148
2469         * fold-const.c (try_move_mult_to_index): Remove.
2470         (fold_binary_loc): Do not call it.
2471         * tree-data-ref.c (dr_analyze_indices): Strip conversions
2472         from the base object again.
2473
2474 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
2475
2476         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
2477         DImode.
2478
2479 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2480
2481         PR target/55701
2482         * config/arm/arm.md (setmem): New pattern.
2483         * config/arm/arm-protos.h (struct tune_params): New fields.
2484         (arm_gen_setmem): New prototype.
2485         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
2486         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2487         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2488         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
2489         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
2490         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
2491         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
2492         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2493         (arm_const_inline_cost): New function.
2494         (arm_block_set_max_insns): New function.
2495         (arm_block_set_non_vect_profit_p): New function.
2496         (arm_block_set_vect_profit_p): New function.
2497         (arm_block_set_unaligned_vect): New function.
2498         (arm_block_set_aligned_vect): New function.
2499         (arm_block_set_unaligned_non_vect): New function.
2500         (arm_block_set_aligned_non_vect): New function.
2501         (arm_block_set_vect, arm_gen_setmem): New functions.
2502
2503 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2504
2505         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
2506
2507 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2508
2509         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
2510
2511 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2512
2513         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
2514         an rtx.
2515         * valtrack.h: Adjust.
2516
2517 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2518
2519         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
2520         an rtx.
2521         (emit_jump_insn_before_noloc): Likewise.
2522         (emit_call_insn_before_noloc): Likewise.
2523         (emit_label_before): Likewise.
2524         (emit_label_after): Likewise.
2525         (emit_insn_before_setloc): Likewise.
2526         (emit_jump_insn_before_setloc): Likewise.
2527         (emit_call_insn_before_setloc): Likewise.
2528         (emit_call_insn_before): Likewise.
2529         * rtl.h: Adjust.
2530
2531 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2532
2533         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
2534         rtx_insn *, eliminating a checked cast.
2535
2536 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2537
2538         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
2539         const_rtx to const rtx_insn *.
2540         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
2541         cast.
2542
2543 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2544
2545         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
2546         fixup_args_size_notes.
2547         * expr.c (fixup_args_size_notes): Strengthen first two params from
2548         rtx to rtx_insn *, eliminating a checked cast.
2549         * rtl.h (fixup_args_size_notes): Strengthen first two params from
2550         rtx to rtx_insn *.
2551
2552 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2553
2554         * haifa-sched.c (get_ready_element): Strengthen return type from
2555         rtx to rtx_insn *.
2556         * sched-int.h (get_ready_element): Likewise.
2557
2558 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
2559
2560         PR target/63165
2561         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
2562         indexed_or_indirect_operand instead of memory_operand.
2563         (floatsi<mode>2_lfiwzx_mem): Ditto.
2564
2565 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2566
2567         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
2568         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
2569         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
2570
2571 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2572
2573         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
2574         rtx.
2575         (get_last_nonnote_insn): Likewise.
2576         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
2577         * resource.c (find_basic_block): Likewise.
2578         * rtl.h: Adjust.
2579         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
2580         const_rtx.
2581
2582 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
2583
2584         * genattr.c (main): Within the prototype of insn_latency written
2585         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
2586         * genautomata.c (output_internal_maximal_insn_latency_func):
2587         Within the implementation of insn_latency written out to
2588         insn-automata.c, strengthen both params from rtx to rtx_insn *,
2589         eliminating a pair of checked casts.
2590
2591 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
2592
2593         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
2594         rtx_insn *.
2595
2596         * rtl.h (eh_returnjump_p): Likewise.
2597
2598 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
2599
2600         * Makefile.in (TAGS): Handle constructs in timevar.def.
2601
2602 2014-09-04  Guozhi Wei  <carrot@google.com>
2603
2604         PR target/62040
2605         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
2606         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
2607         it into two patterns.
2608         (move_lo_quad_internal_be_<mode>): Likewise.
2609
2610 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2611
2612         * doc/options.texi: Document that Var and Init are required if CPP
2613         is given.
2614         * optc-gen.awk: Require Var and Init if CPP is given.
2615         * common.opt (Wpedantic): Use Init.
2616
2617 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2618
2619         * config/rs6000/rs6000.c (special_handling_values): Add
2620         SH_EXTRACT.
2621         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
2622         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
2623         as swappable with special handling SH_EXTRACT.  Remove
2624         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
2625         optimization.
2626         (adjust_extract): New function.
2627         (handle_special_swappables): Add default to case statement; add
2628         case for SH_EXTRACT that calls adjust_extract.
2629         (dump_swap_insn_table): Handle SH_EXTRACT.
2630
2631 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2632
2633         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
2634         selection of 0th memory doubleword, regardless of endianness.
2635
2636 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2637
2638         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
2639
2640 2014-09-04  Alan Modra  <amodra@gmail.com>
2641
2642         PR debug/60655
2643         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
2644         can't be output.
2645
2646 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
2647
2648         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
2649         * targhooks.c (default_dwarf_frame_reg_mode): New function.
2650         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
2651         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
2652         * doc/tm.texi: Regenerate.
2653         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
2654         selection logic to default_dwarf_frame_reg_mode.
2655
2656 2014-09-03  Marek Polacek  <polacek@redhat.com>
2657
2658         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
2659         by -Wall.
2660
2661 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
2662
2663         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
2664         the automodified register.
2665
2666 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
2667
2668         * output.h (get_some_local_dynamic_name): Declare.
2669         * final.c (some_local_dynamic_name): New variable.
2670         (get_some_local_dynamic_name): New function.
2671         (final_end_function): Clear some_local_dynamic_name.
2672         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
2673         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2674         (print_operand): Report an error if '%&' is used inappropriately.
2675         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
2676         (get_some_local_dynamic_name_1): Delete.
2677         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
2678         (rs6000_get_some_local_dynamic_name): Delete.
2679         (rs6000_get_some_local_dynamic_name_1): Delete.
2680         (print_operand): Report an error if '%&' is used inappropriately.
2681         * config/s390/s390.c (machine_function): Remove some_ld_name.
2682         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2683         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
2684         * config/sparc/sparc.c: Include rtl-iter.h.
2685         (machine_function): Remove some_ld_name.
2686         (sparc_print_operand): Report an error if '%&' is used inappropriately.
2687         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2688
2689 2014-09-03  Richard Henderson  <rth@redhat.com>
2690
2691         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
2692         (aarch64_popwb_pair_reg): Remove.
2693         (aarch64_set_frame_expr): Remove.
2694         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
2695         the restore ops performed by the insns generated.
2696         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
2697         insn.  Perform the calls_eh_return addition later; do not attempt to
2698         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
2699         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2700         special markup at all.  Load cfun->machine->frame.hard_fp_offset
2701         into a local variable.
2702         (aarch64_frame_pointer_required): Don't check calls_alloca.
2703
2704 2014-09-03  Richard Biener  <rguenther@suse.de>
2705
2706         * opts.c (default_options_optimization): Adjust
2707         max-combine-insns to 2 for -Og.
2708
2709 2014-09-03  Martin Jambor  <mjambor@suse.cz>
2710
2711         PR ipa/62015
2712         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2713         pass-trough jump functions correctly.
2714
2715 2014-09-03  Martin Jambor  <mjambor@suse.cz>
2716
2717         PR ipa/61986
2718         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2719         created replacements in ascending order of offsets.
2720         (known_aggs_to_agg_replacement_list): Likewise.
2721
2722 2014-09-03  Martin Liska  <mliska@suse.cz>
2723
2724         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2725         is set to set uninitialized value for vnresult.
2726
2727 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2728
2729         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2730         for TARGET_MUST_PASS_IN_STACK.
2731
2732 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2733
2734         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2735         for TARGET_ARG_PARTIAL_BYTES.
2736
2737 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2738
2739         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2740         instructions for varargs implementation.
2741         (nds32_expand_epilogue): Emit stack adjustment instructions for
2742         varargs implementation.
2743
2744 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2745
2746         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2747         optimization detection.
2748
2749 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2750
2751         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2752         arguments.
2753         (nds32_function_arg_advance): Deal with nameless arguments.
2754         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2755         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2756         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2757
2758 2014-09-03  Richard Biener  <rguenther@suse.de>
2759
2760         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2761         (struct bb_bitmap_sets): Remove deferred member.
2762         (BB_DEFERRED): Remove.
2763         (defer_or_phi_translate_block): Remove.
2764         (compute_antic_aux): Remove deferring of blocks, assert
2765         proper iteration order.
2766         (compute_antic): Do not set BB_DEFERRED.
2767         (eliminate): Allocate el_avail of proper size initially.
2768
2769 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2770
2771         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2772         according to the value of crtl->args.pretend_args_size.
2773
2774 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2775
2776         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2777         varargs information.
2778
2779 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2780
2781         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2782         implementation for TARGET_SETUP_INCOMING_VARARGS.
2783         (nds32_strict_argument_naming): Refine comment.
2784         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2785         Define for future implementation.
2786
2787 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
2788
2789         * config/i386/adxintrin.h (_subborrow_u32): New.
2790         (_addcarry_u32): Ditto.
2791         (_subborrow_u64): Ditto.
2792         (_addcarry_u64): Ditto.
2793         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2794         IX86_BUILTIN_SBB64.
2795         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2796         __builtin_ia32_sbb_u64
2797
2798 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2799
2800         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2801         GPR-specific stuff.
2802         (nds32_function_arg_advance): Likewise.
2803         (nds32_init_cumulative_args): Likewise.
2804         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2805         (NDS32_FIRST_GPR_REGNUM): Define.
2806         (NDS32_LAST_GPR_REGNUM): Define.
2807         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2808         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2809         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2810         (machine_function): Use GRP-specific stuff.
2811
2812 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2813
2814         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2815         (nds32_expand_epilogue): Likewise.
2816         (nds32_expand_prologue_v3push): Likewise.
2817         (nds32_expand_epilogue_v3pop): Likewise.
2818
2819 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2820
2821         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2822         v3push/v3pop for variadic function.
2823         * config/nds32/nds32.md (prologue, epilogue): Likewise.
2824
2825 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2826
2827         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2828         Check rtx for varargs implementation.
2829         (nds32_output_stack_pop): Likewise.
2830         * config/nds32/nds32-protos.h: Have a rtx argument for
2831         nds32_output_stack_push and nds32_output_stack_pop.
2832         * config/nds32/nds32.md: Likewise.
2833
2834 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2835
2836         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2837         to check if FUNC is an interrupt service routine.
2838         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2839
2840 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2841
2842         * config/nds32/nds32.h (machine_function): Add some fields for variadic
2843         arguments implementation.
2844
2845 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2846
2847         * config/nds32/nds32-predicates.c
2848         (nds32_valid_stack_push_pop): Rename to ...
2849         (nds32_valid_stack_push_pop_p): ... this.
2850         * config/nds32/nds32-protos.h: Likewise.
2851         * config/nds32/predicates.md: Likewise.
2852
2853 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2854
2855         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2856         (nds32_emit_stack_v3push): ... this.
2857         (nds32_gen_stack_v3pop): Rename to ...
2858         (nds32_emit_stack_v3pop): ... this and consider CFA restore
2859         information.
2860
2861 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2862
2863         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2864         (nds32_emit_stack_push_multiple): ... this.
2865         (nds32_gen_stack_pop_multiple): Rename to ...
2866         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2867         information.
2868
2869 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2870
2871         PR target/61078
2872         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2873         and add a second splitter to handle the remaining cases.
2874
2875 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2876
2877         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2878
2879 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2880
2881         * cfgexpand.c (label_rtx_for_bb): Change type to
2882         hash_map<basic_block, rtx_code_label *> *.
2883         (expand_gimple_basic_block): Adjust.
2884         (pass_expand::execute): Likewise.
2885
2886 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2887
2888         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2889         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2890         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2891         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2892         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2893         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2894         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2895         of rtx.
2896
2897 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2898
2899         * alloc-pool.c: Include coretypes.h.
2900         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2901         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2902         hash_set instead of htab.
2903         * ggc-page.c (in_gc): New variable.
2904         (ggc_free): Do nothing if a collection is taking place.
2905         (ggc_collect): Set in_gc appropriately.
2906         * ggc.h (gt_ggc_mx(const char *)): New function.
2907         (gt_pch_nx(const char *)): Likewise.
2908         (gt_ggc_mx(int)): Likewise.
2909         (gt_pch_nx(int)): Likewise.
2910         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2911         (hash_map::hash_entry::pch_nx): Likewise.
2912         (hash_map::hash_entry::pch_nx_helper): Likewise.
2913 (hash_map::hash_map): Adjust.
2914 (hash_map::create_ggc): New function.
2915 (gt_ggc_mx): Likewise.
2916 (gt_pch_nx): Likewise.
2917         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2918 (default_hashset_traits::pch_nx): Likewise.
2919 (hash_set::hash_entry::ggc_mx): Likewise.
2920 (hash_set::hash_entry::pch_nx): Likewise.
2921 (hash_set::hash_entry::pch_nx_helper): Likewise.
2922 (hash_set::hash_set): Adjust.
2923 (hash_set::create_ggc): New function.
2924 (hash_set::elements): Likewise.
2925 (gt_ggc_mx): Likewise.
2926 (gt_pch_nx): Likewise.
2927         * hash-table.h (hash_table::hash_table): Adjust.
2928 (hash_table::m_ggc): New member.
2929         (hash_table::~hash_table): Adjust.
2930         (hash_table::expand): Likewise.
2931         (hash_table::empty): Likewise.
2932 (gt_ggc_mx): New function.
2933         (hashtab_entry_note_pointers): Likewise.
2934 (gt_pch_nx): Likewise.
2935
2936 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2937
2938         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
2939         built-in definition.
2940         (XVCVUXDDP_SCALE): Likewise.
2941         (XVCVDPSXDS_SCALE): Likewise.
2942         (XVCVDPUXDS_SCALE): Likewise.
2943         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
2944         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2945         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2946         VSX_BUILTIN_XVCVDPUXDS_SCALE.
2947         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2948         prototype.
2949         * config/rs6000/rs6000.c (real.h): New include.
2950         (rs6000_scale_v2df): New function.
2951         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2952         (UNSPEC_VSX_XVCVUXDDP): Likewise.
2953         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2954         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2955         (vsx_xvcvsxddp_scale): New define_expand.
2956         (vsx_xvcvsxddp): New define_insn.
2957         (vsx_xvcvuxddp_scale): New define_expand.
2958         (vsx_xvcvuxddp): New define_insn.
2959         (vsx_xvcvdpsxds_scale): New define_expand.
2960         (vsx_xvcvdpsxds): New define_insn.
2961         (vsx_xvcvdpuxds_scale): New define_expand.
2962         (vsx_xvcvdpuxds): New define_insn.
2963         * doc/extend.texi (vec_ctf): Add new prototypes.
2964         (vec_cts): Likewise.
2965         (vec_ctu): Likewise.
2966         (vec_splat): Likewise.
2967         (vec_div): Likewise.
2968         (vec_mul): Likewise.
2969
2970 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2971
2972         PR target/62275
2973         * config/arm/neon.md
2974         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2975         <v_cmp_result>): New pattern.
2976         * config/arm/iterators.md (NEON_VCVT): New int iterator.
2977         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2978         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2979         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2980         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2981         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2982
2983 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2984
2985         PR target/62275
2986         * config/arm/iterators.md (FIXUORS): New code iterator.
2987         (VCVT): New int iterator.
2988         (su_optab): New code attribute.
2989         (su): Likewise.
2990         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2991
2992 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2993
2994         * config/aarch64/predicates.md (aarch64_comparison_operation):
2995         New special predicate.
2996         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2997         aarch64_comparison_operation instead of matching an operator.
2998         Update operand numbers.
2999         (csinc3<mode>_insn): Likewise.
3000         (*csinv3<mode>_insn): Likewise.
3001         (*csneg3<mode>_insn): Likewise.
3002         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
3003         * config/aarch64/aarch64.c (aarch64_get_condition_code):
3004         Return -1 instead of aborting on invalid condition codes.
3005         (aarch64_print_operand): Update aarch64_get_condition_code callsites
3006         to assert that the returned condition code is valid.
3007         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
3008
3009 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
3010
3011         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
3012         tree.def, and gimple.def
3013
3014 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
3015             Balaji V. Iyer  <balaji.v.iyer@intel.com>
3016             Igor Zamyatin  <igor.zamyatin@intel.com>
3017
3018         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
3019         (__cilkrts_cilk_for_64): Likewise.
3020         * cilk-common.c (declare_cilk_for_builtin): New function.
3021         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
3022         __cilkrts_cilk_for_64 bultins.
3023         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
3024         CILK_TI_F_LOOP_64.
3025         (cilk_for_32_fndecl): New define.
3026         (cilk_for_64_fndecl): Likewise.
3027         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
3028         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
3029         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
3030         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
3031         GF_OMP_FOR_COMBINED_INTO.
3032         * gimplify.c (gimplify_scan_omp_clauses): Added
3033         OMP_CLAUSE__CILK_FOR_COUNT_ case.
3034         (gimplify_adjust_omp_clauses): Ditto.
3035         (gimplify_omp_for): Added CILK_FOR case.
3036         (gimplify_expr): Ditto.
3037         * omp-low.c: Include cilk.h.
3038         (extract_omp_for_data): Set appropriate kind for
3039         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
3040         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
3041         (create_omp_child_function_name): Added second argument to handle
3042         cilk_for case.
3043         (cilk_for_check_loop_diff_type): New function.
3044         (expand_cilk_for_call): Likewise.
3045         (expand_cilk_for): Likewise.
3046         (create_omp_child_function): Set cilk_for_count; handle the cases when
3047         it is true; call create_omp_child_function_name with second argument.
3048         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
3049         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
3050         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
3051         * tree-nested.c (convert_nonlocal_omp_clauses): Added
3052         OMP_CLAUSE__CILK_FOR_COUNT_ case.
3053         (convert_local_omp_clauses): Ditto.
3054         * tree-pretty-print.c (dump_omp_clause): Added
3055         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
3056         (dump_generic_node): Added CILK_FOR case.
3057         * tree.c (omp_clause_num_ops): New element
3058         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
3059         (omp_clause_code_name): New element _Cilk_for_count_.
3060         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
3061         * tree.def: Add tree code for CILK_FOR.
3062
3063 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3064
3065         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
3066         (ppc403-compare): Add "exts with dot" case.
3067         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
3068         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
3069         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
3070         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
3071         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
3072         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
3073         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
3074         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
3075         cell-cmp-microcoded): Similarly.
3076         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
3077         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
3078         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
3079         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
3080         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
3081         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
3082         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
3083         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
3084         (power6-compare): Add "exts with dot" case.
3085         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
3086         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
3087         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
3088
3089         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
3090         if avoiding Cell microcode.
3091         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
3092         (is_cracked_insn): Ditto.
3093         (insn_must_be_first_in_group): Ditto.
3094         * config/rs6000/rs6000.md (dot): Adjust comment.
3095         (cell_micro): Handle exts+dot.
3096         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
3097         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
3098         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
3099         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
3100         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
3101         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
3102         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
3103
3104 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3105
3106         * config/rs6000/rs6000.md (QHSI): Delete.
3107         (EXTQI, EXTHI, EXTSI): New mode iterators.
3108         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
3109         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
3110         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
3111         9 anonymous instructions, and 8 splitters): Delete.
3112         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
3113         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
3114         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
3115         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
3116         *zero_extendsi<mode>2_dot2): New.
3117
3118 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3119
3120         * config/rs6000/rs6000.md (any_extend): New code iterator.
3121         (u, su): New code attributes.
3122         (dmode, DMODE): New mode attributes.
3123         (<su>mul<mode>3_highpart): New.
3124         (*<su>mul<mode>3_highpart): New.
3125         (<su>mulsi3_highpart_le): New.
3126         (<su>muldi3_highpart_le): New.
3127         (<su>mulsi3_highpart_64): New.
3128         (<u>mul<mode><dmode>3): New.
3129         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
3130         splitters): Delete.
3131         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
3132         splitters): Delete.
3133
3134 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3135
3136         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
3137         *mulsi3_internal2, and two splitters): Delete.
3138         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
3139         Delete.
3140         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
3141
3142 2014-09-02  Richard Biener  <rguenther@suse.de>
3143
3144         PR tree-optimization/62695
3145         * tree-ssa-structalias.c (find_func_clobbers): Add missing
3146         vector truncate.
3147
3148 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
3149
3150         PR target/62312
3151         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
3152
3153 2014-09-01  Andi Kleen  <ak@linux.intel.com>
3154
3155         * file-find.c (add_prefix_begin): Add.
3156         (do_add_prefix): Rename from add_prefix with first argument.
3157         (add_prefix): Add new wrapper.
3158         * file-find.h (add_prefix_begin): Add.
3159         * gcc-ar.c (main): Support -B option.
3160
3161 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3162
3163         * genemit.c: Include dumpfile.h.
3164         (gen_split): Print name of splitter function to dump file.
3165
3166 2014-09-01  Richard Biener  <rguenther@suse.de>
3167
3168         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
3169         Use stack auto_vecs for constraint expressions.
3170         (find_func_aliases_for_call): Likewise.
3171         (find_func_aliases): Likewise.
3172         (find_func_clobbers): Likewise.
3173
3174 2014-09-01  Richard Biener  <rguenther@suse.de>
3175
3176         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
3177         operands vector in most cases.  Remove redundant code.
3178
3179 2014-09-01  Olivier Hainque  <hainque@adacore.com>
3180
3181         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
3182         $WIND_BASE instead of designating a harcoded arbitrary home dir.
3183         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
3184
3185 2014-09-01  Richard Biener  <rguenther@suse.de>
3186
3187         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
3188         copy_reference_ops_from_call, vn_nary_op_compute_hash,
3189         vn_reference_compute_hash, vn_reference_insert): Remove.
3190         (vn_reference_lookup_call): New function.
3191         * tree-ssa-sccvn.c (vn_reference_compute_hash,
3192         copy_reference_ops_from_ref, copy_reference_ops_from_call,
3193         vn_reference_insert, vn_nary_op_compute_hash): Make static.
3194         (create_reference_ops_from_call): Remove.
3195         (vn_reference_lookup_3): Properly update shared_lookup_references.
3196         (vn_reference_lookup_pieces): Assert that we updated
3197         shared_lookup_references properly.
3198         (vn_reference_lookup): Likewise.
3199         (vn_reference_lookup_call): New function.
3200         (visit_reference_op_call): Use it.  Avoid re-building the
3201         reference ops.
3202         (visit_reference_op_load): Remove redundant lookup.
3203         (visit_reference_op_store): Perform special tail-merging work
3204         only when possibly doing tail-merging.
3205         (visit_use): Likewise.
3206         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
3207
3208 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
3209
3210         PR target/62025
3211         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
3212         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
3213         (find_inc): Revert 2014-08-13 change.
3214
3215 2014-09-01  Marek Polacek  <polacek@redhat.com>
3216
3217         PR middle-end/61903
3218         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
3219         Change the type of V to unsigned HOST_WIDE_INT.
3220
3221 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3222
3223         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
3224         the size of byte markers.
3225         (do_shift_rotate): Fix confusion between host, target and marker byte
3226         size.
3227         (verify_symbolic_number_p): Likewise.
3228         (find_bswap_or_nop_1): Likewise.
3229         (find_bswap_or_nop): Likewise.
3230
3231 2014-09-01  Olivier Hainque  <hainque@adacore.com>
3232
3233         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
3234         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
3235
3236 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
3237
3238         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
3239         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
3240         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
3241
3242 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
3243
3244         PR sanitizer/61897
3245         PR sanitizer/62140
3246         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
3247         (build_check_stmt): Likewise.
3248         (instrument_strlen_call): Likewise.
3249         (asan_expand_check_ifn): Likewise and fix types.
3250         (maybe_cast_to_ptrmode): New function.
3251
3252 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3253
3254         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
3255
3256 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
3257
3258         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
3259
3260 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
3261
3262         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
3263         prefix to function labels when generating fast indirect calls.
3264
3265 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
3266
3267         PR bootstrap/62304
3268
3269         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
3270         param back from rtx_insn * to rtx.  Rename param from "label" to
3271         "label_or_return", reintroducing "label" as an rtx_insn * after
3272         we've ensured it's not a RETURN.
3273         (first_active_target_insn): Likewise for return type and param;
3274         add a checked cast to rtx_insn * once we've ensured "insn" is not
3275         a RETURN.
3276         (steal_delay_list_from_target): Convert param "pnew_thread" back
3277         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
3278         with JUMP_LABEL.
3279         (own_thread_p): Convert param "thread" back from an rtx_insn * to
3280         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
3281         cast once we've established we're not dealing with a RETURN,
3282         renaming subsequent uses of "thread" to "thread_insn".
3283         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
3284         to JUMP_LABEL.
3285         (follow_jumps): Convert return type and param "label" from
3286         rtx_insn * back to rtx.  Move initialization of "value" to after
3287         the handling for ANY_RETURN_P, adding a checked cast there to
3288         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
3289         rename to "this_label_or_return", reintroducing "this_label" as
3290         an rtx_insn * once we've handled the case where it could be an
3291         ANY_RETURN_P.
3292         (fill_slots_from_thread): Rename param "thread" to
3293         "thread_or_return", converting from an rtx_insn * back to an rtx.
3294         Reintroduce name "thread" as an rtx_insn * local with a checked
3295         cast once we've handled the case of it being an ANY_RETURN_P.
3296         Convert local "new_thread" from an rtx_insn * back to an rtx.
3297         Add a checked cast when assigning to "trial" from "new_thread".
3298         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
3299         checked cast to rtx_insn * from "new_thread" when invoking
3300         get_label_before.
3301         (fill_eager_delay_slots): Convert locals "target_label",
3302         "insn_at_target" from rtx_insn * back to rtx.
3303         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
3304         (relax_delay_slots): Convert locals "trial", "target_label" from
3305         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
3306         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
3307         invoking update_block.
3308         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
3309         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
3310
3311         * resource.h (mark_target_live_regs): Undo erroneous conversion
3312         of second param of r214693, converting it back from rtx_insn * to
3313         rtx, since it could be a RETURN.
3314
3315         * resource.c (find_dead_or_set_registers): Similarly, convert
3316         param "jump_target" back from an rtx_insn ** to an rtx *, as we
3317         could be writing back a RETURN.  Rename local rtx_insn * "next" to
3318         "next_insn", and introduce "lab_or_return" as a local rtx,
3319         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
3320         (mark_target_live_regs): Undo erroneous conversion
3321         of second param of r214693, converting it back from rtx_insn * to
3322         rtx, since it could be a RETURN.  Rename it from "target" to
3323         "target_maybe_return", reintroducing the name "target" as a local
3324         rtx_insn * with a checked cast, after we've handled the case of
3325         ANY_RETURN_P.
3326
3327 2014-08-29  DJ Delorie  <dj@redhat.com>
3328
3329         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
3330         pointer size up to a power of two.
3331         * defaults.h (DWARF2_ADDR_SIZE): Round up.
3332         (POINTER_SIZE_UNITS): New, rounded up value.
3333         * dwarf2asm.c (size_of_encoded_value): Use it.
3334         (dw2_output_indirect_constant_1): Likewise.
3335         * expmed.c (init_expmed_one_conv): We now know the sizes of
3336         partial int modes.
3337         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
3338         * optabs.c (expand_float): Use precision, not size.
3339         (expand_fix): Likewise.
3340         * simplify-rtx (simplify_unary_operation_1): Likewise.
3341         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3342         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
3343         (default_assemble_integer) Likewise.
3344         (dump_tm_clone_pairs): Likewise.
3345         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
3346         * var-tracking.c (adjust_mems): Allow partial-int modes also.
3347         (prepare_call_arguments): Likewise.
3348         * stor-layout.c (finalize_type_size): Preserve precision.
3349         (layout_type): Use precision, not size.
3350
3351         * expr.c (convert_move): If the target has an explicit converter,
3352         use it.
3353
3354 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
3355
3356         * gdbinit.in: Skip various inline functions in rtl.h when
3357         stepping.
3358
3359 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
3360
3361         PR bootstrap/62301
3362         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
3363
3364 2014-08-29  Richard Biener  <rguenther@suse.de>
3365
3366         PR tree-optimization/62291
3367         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
3368         exactly the vector size needed and use quick_push.
3369         (phi_translate_1): Adjust comment.
3370         (valid_in_sets): Remove block argument and remove pointless
3371         checking of NAMEs.
3372         (dependent_clean): Adjust for removal of block argument.
3373         (clean): Likewise.
3374         (compute_antic_aux): Likewise.
3375         (compute_partial_antic_aux): Likewise.
3376
3377 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3378             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3379             Anna Tikhonova  <anna.tikhonova@intel.com>
3380             Ilya Tocar  <ilya.tocar@intel.com>
3381             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3382             Ilya Verbin  <ilya.verbin@intel.com>
3383             Kirill Yukhin  <kirill.yukhin@intel.com>
3384             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3385
3386         * config/i386/sse.md
3387         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
3388         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
3389         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
3390         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
3391
3392 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3393             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3394             Anna Tikhonova  <anna.tikhonova@intel.com>
3395             Ilya Tocar  <ilya.tocar@intel.com>
3396             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3397             Ilya Verbin  <ilya.verbin@intel.com>
3398             Kirill Yukhin  <kirill.yukhin@intel.com>
3399             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3400
3401         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
3402         * config/i386/sse.md
3403         (define_mode_iterator VI4_128_8_256): New.
3404         (define_mode_iterator VI2_128_4_256): Ditto.
3405         (define_mode_iterator PMOV_DST_MODE): Rename into
3406         (define_mode_iterator PMOV_DST_MODE_1): this.
3407         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
3408         Use PMOV_DST_MODE_1 mode iterator.
3409         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3410         Ditto.
3411         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3412         Ditto.
3413         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
3414         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
3415         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
3416         (define_mode_iterator PMOV_DST_MODE_2): New.
3417         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
3418         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
3419         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
3420         Ditto.
3421         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
3422         (define_mode_attr pmov_dst_3): Ditto.
3423         (define_mode_attr pmov_dst_zeroed_3): Ditto.
3424         (define_mode_attr pmov_suff_3): Ditto.
3425         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
3426         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
3427         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
3428         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
3429         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
3430         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
3431         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
3432         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
3433         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
3434         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
3435         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
3436         (define_mode_attr pmov_dst_4): Ditto.
3437         (define_mode_attr pmov_dst_zeroed_4): Ditto.
3438         (define_mode_attr pmov_suff_4): Ditto.
3439         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
3440         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
3441         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
3442         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
3443         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
3444         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
3445         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
3446         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
3447         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
3448         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
3449         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
3450
3451 2014-08-29  Richard Biener  <rguenther@suse.de>
3452
3453         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
3454         NON_LVALUE_EXPR in gimple.
3455
3456 2014-08-29  Richard Biener  <rguenther@suse.de>
3457
3458         PR middle-end/62292
3459         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
3460         from previous refactoring.
3461         (gimple_fold_builtin_strncpy): Likewise.
3462
3463 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
3464
3465         PR bootstrap/62300
3466         * function.c (assign_parm_setup_reg): Remove erroneous checked
3467         cast to rtx_insn * on result of gen_extend_insn in favor of
3468         introducing a new local rtx "pat".
3469
3470 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3471
3472         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
3473         to silence warning.
3474         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
3475
3476 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3477
3478         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
3479         (next_insn): Likewise.
3480         * emit-rtl.c (next_insn): Likewise.
3481         (previous_insn): Likewise.
3482         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
3483         "insn" and "next" from rtx to rtx_insn *.
3484         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
3485         "insn", "insn1", "vliw_start",  "prologue_end_note",
3486         "last_insn_in_packet".
3487
3488 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3489
3490         * shrink-wrap.h (active_insn_between): Strengthen both params from
3491         rtx to rtx_insn *.
3492         * function.c (active_insn_between): Likewise.
3493
3494 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3495
3496         * genattr.c (main): When writing out insn-attr.h, strengthen param
3497         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
3498         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
3499         writing out the definition of dfa_clear_single_insn_cache to the
3500         generated insn-automata.c
3501
3502 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3503
3504         * resource.h (clear_hashed_info_for_insn): Strengthen param from
3505         rtx to rtx_insn *.
3506         (incr_ticks_for_insn): Likewise.
3507         (init_resource_info): Likewise.
3508
3509         * resource.c (init_resource_info): Likewise.
3510         (clear_hashed_info_for_insn): Likewise.
3511         (incr_ticks_for_insn): Likewise.
3512
3513         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
3514         rtx to rtx_insn *.
3515         (steal_delay_list_from_target): Use methods of "seq".
3516         (try_merge_delay_insns): Use methods of "merged_insns".
3517         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
3518         (reorg_redirect_jump): Likewise for param "jump".
3519
3520 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3521
3522         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
3523         rtx to rtx_insn *.
3524         * config/s390/s390.c (s390_split_branches): Eliminate top-level
3525         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
3526         "set_insn".
3527         (s390_mainpool_finish): In three places, split out a local rtx
3528         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
3529         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
3530          and split another local rtx "insn" out into rtx "pat" and
3531         rtx_insn * "insn".
3532         * config/sh/sh.c (output_branchy_insn): Rather than working
3533         directly on operands[9], introduce local rtx_code_label *
3534         variables named "lab" in two places, working on them, and then
3535         assigning them to operands[9], so that the intervening operations
3536         are known by the type system to be on insns.
3537
3538 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3539
3540         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
3541         const rtx_insn *.
3542
3543         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
3544         in invocation of INSN_HAS_LOCATION.
3545
3546 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3547
3548         * config/rs6000/altivec.h (vec_xl): New #define.
3549         (vec_xst): Likewise.
3550         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
3551         (XXSPLTD_V2DI): Likewise.
3552         (DIV_V2DI): Likewise.
3553         (UDIV_V2DI): Likewise.
3554         (MUL_V2DI): Likewise.
3555         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3556         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
3557         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
3558         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
3559         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
3560         (UNSPEC_VSX_DIVSD): Likewise.
3561         (UNSPEC_VSX_DIVUD): Likewise.
3562         (UNSPEC_VSX_MULSD): Likewise.
3563         (vsx_mul_v2di): New insn-and-split.
3564         (vsx_div_v2di): Likewise.
3565         (vsx_udiv_v2di): Likewise.
3566         (vsx_xxspltd_<mode>): New insn.
3567
3568 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3569
3570         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
3571         NEXT_INSN.
3572         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
3573         (NEXT_INSN): Likewise.
3574         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
3575         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
3576         const rtx_insn *.
3577         (no_labels_between_p): Likewise for both params.
3578
3579         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
3580         cast when using NEXT_INSN on operands[2].
3581         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
3582         "insn" from rtx to rtx_insn *, adding a checked cast.
3583         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
3584         rtx_insn *.
3585         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
3586         for third param.
3587         (arc_text_label): Likewise for param "insn".
3588         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
3589         "insn".
3590         (arc_ccfsm_record_condition): Likewise for param "jump".
3591         (arc_text_label): Likewise for local "label".
3592         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
3593         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
3594         a method for typesafety.  Add a checked cast.
3595         * config/arc/constraints.md (Clb): Add a checked cast when getting
3596         the CODE_LABEL from a LABEL_REF.
3597         * config/arm/arm.c (require_pic_register): Strengthen locals
3598         "seq", "insn" from rtx to rtx_insn *.
3599         (create_fix_barrier): Likewise for locals "selected", "next".
3600         (thumb1_reorg): Likewise for locals "prev", "insn".
3601         (arm_expand_prologue): Likewise for local "last".
3602         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
3603         operands[0].
3604         (thumb2_output_casesi): Likewise for operands[2].
3605         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
3606         strengthen local "insn" from rtx to rtx_insn *.
3607         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
3608         type and param "insn".
3609         (find_prev_insn_start): Likewise.
3610         (hwloop_optimize): Likewise for locals "insn", "last_insn",
3611         "prev".
3612         (gen_one_bundle): Likewise for loal "t".
3613         (find_load): Likewise for param "insn".
3614         (workaround_speculation): Likewise for locals "insn", "next",
3615         "target", "next_tgt".
3616         * config/c6x/c6x.c (assign_reservations): Likewise for both params
3617         and for locals "insn", "within", "last".
3618         (count_unit_reqs): Likewise for params "head", "tail" and local
3619         "insn".
3620         (try_rename_operands): Likewise for params "head", "tail".
3621         (reshuffle_units): Likewise for locals "head", "tail", "insn".
3622         (struct c6x_sched_context): Likewise for fields
3623         "last_scheduled_insn", "last_scheduled_iter0".
3624         (init_sched_state): Replace NULL_RTX with NULL.
3625         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
3626         to rtx_insn *.
3627         (undo_split_delayed_nonbranch): Likewise for param and for local
3628         "prev".
3629         (conditionalize_after_sched): Likewise for local "insn".
3630         (bb_earliest_end_cycle): Likewise.
3631         (filter_insns_above): Likewise for locals "insn", "next".
3632         (hwloop_optimize): Remove redundant checked cast.
3633         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
3634         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
3635         NULL_RTX with NULL.
3636         (cris_simple_epilogue): Likewise.
3637         (cris_expand_prologue): Likewise.
3638         (cris_expand_epilogue): Likewise.
3639         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
3640         local "insn" from rtx to rtx_insn *.
3641         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
3642         (struct frv_packet_group): Likewise for the elements within array
3643         fields "insns", "sorted", and for field "nop".
3644         (frv_packet): Likewise for the elements within array field
3645         "insns".
3646         (frv_add_insn_to_packet): Likewise for param "insn".
3647         (frv_insert_nop_in_packet): Likewise for param "insn" and local
3648         "last".
3649         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
3650         (frv_sort_insn_group_1): Likewise for local "insn".
3651         (frv_optimize_membar_local): Likewise.
3652         (frv_align_label): Likewise for locals "x", "last", "barrier",
3653         "label".
3654         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
3655         local.
3656         (ia64_sched_init): Likewise for local "insn".
3657         (scheduled_good_insn): Likewise for param "last".
3658         (struct _ia64_sched_context): Likewise for field
3659         "last_scheduled_insn".
3660         (ia64_init_sched_context): Replace NULL_RTX with NULL.
3661         (struct bundle_state): Likewise for field "insn".
3662         (issue_nops_and_insn): Likewise for param "insn".
3663         (get_next_important_insn): Likewise for return type and both
3664         params.
3665         (ia64_add_bundle_selector_before): Likewise for param "insn".
3666         (bundling): Likewise for params "prev_head_insn", "tail" and
3667         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
3668         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
3669         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
3670         Strengthen final param from rtx to rtx_insn *.
3671         (iq2000_move_1word): Likewise for second param.
3672         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
3673         param "cur_insn" and local "next_insn".
3674         (iq2000_move_1word): Likewise for param "insn".
3675         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
3676         casts when using NEXT_INSN on operands[1].
3677         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
3678         "insn" from rtx to rtx_insn *.
3679         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
3680         "x", introducing local rtx_insn * "insn" for when working with the
3681         CODE_LABEL of the LABEL_REF.
3682         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
3683         rtx_insn *.
3684         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
3685         param.
3686         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
3687         type.
3688         (conditionalize_block): Likewise for return type and param.
3689         (mcore_is_dead): Likewise for param "first" and local "insn".
3690         (emit_new_cond_insn): Likewise for return type.
3691         (conditionalize_block): Likewise for return type, param, and
3692         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
3693         "newinsn".
3694         (conditionalize_optimization): Likewise for local "insn".
3695         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
3696         using NEXT_INSN.
3697         * config/microblaze/microblaze.md: Add checked casts when using
3698         NEXT_INSN.
3699         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3700         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3701         and rtx_insn * "insn".
3702         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3703         checked cast when using NEXT_INSN on operands[2].
3704         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3705         local "insn" from rtx to rtx_insn *.
3706         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3707         Likewise.
3708         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3709         Add a checked cast when using NEXT_INSN on operands[1].
3710         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3711         rtx to rtx_insn *.
3712         (pa_output_cbranch): Likewise for final param.
3713         (pa_output_lbranch): Likewise for second param.
3714         (pa_output_bb): Likewise for third param.
3715         (pa_output_bvb): Likewise.
3716         (pa_output_dbra): Likewise for second param.
3717         (pa_output_movb): Likewise.
3718         (pa_output_parallel_movb): Likewise.
3719         (pa_output_parallel_addb): Likewise.
3720         (pa_output_millicode_call): Likewise for first param.
3721         (pa_output_mul_insn): Likewise for second param.
3722         (pa_output_div_insn): Likewise for third param.
3723         (pa_output_mod_insn): Likewise for second param.
3724         (pa_jump_in_call_delay): Likewise for param.
3725         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3726         (pa_output_div_insn): Likewise.
3727         (pa_output_mod_insn): Likewise.
3728         (pa_output_cbranch): Likewise.
3729         (pa_output_lbranch): Likewise.
3730         (pa_output_bb): Likewise.
3731         (pa_output_bvb): Likewise.
3732         (pa_output_dbra): Likewise.
3733         (pa_output_movb): Likewise.
3734         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3735         to simplify and for typesafety.
3736         (pa_output_call): Use method of rtx_sequence *.
3737         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3738         (pa_jump_in_call_delay): Likewise.
3739         (pa_output_parallel_movb): Likewise.
3740         (pa_output_parallel_addb): Likewise.
3741         (pa_following_call): Likewise.
3742         (pa_combine_instructions): Likewise for locals "anchor",
3743         "floater".
3744         (pa_can_combine_p): Likewise for params "anchor", "floater" and
3745         locals "start", "end".
3746         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3747         param "insn" and local "local_insn".
3748         (picochip_final_prescan_insn): Likewise for local "local_insn".
3749         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3750         local "insn".
3751         (uses_TOC): Likewise.
3752         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3753         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3754         splitting out to more tightly-scoped locals, 3 as rtx and one as
3755         rtx_insn *.
3756         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3757         to rtx_insn *.
3758         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3759         where needed.
3760         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3761         to rtx_insn *.
3762         (fixup_addr_diff_vecs): Likewise.
3763         (reg_unused_after): Likewise for param 2.
3764         (sh_can_redirect_branch): Likewise for both params.
3765         (check_use_sfunc_addr): Likewise for param 1.
3766         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3767         (find_barrier): Likewise for local "last_got".
3768         (gen_block_redirect): Likewise for return type, param "jump" and
3769         locals "prev", "scan", "next", "insn".
3770         (struct far_branch): Likewise for fields "near_label",
3771         "insert_place", "far_label".
3772         (gen_far_branch): Likewise for local "jump".
3773         (fixup_addr_diff_vecs): Likewise for param "first" and locals
3774         "insn", "prev".
3775         (barrier_align): Likewise for param and for locals "prev", "x".
3776         Introduce local rtx_sequence * "prev_seq" and use insn method for
3777         typesafety and clarity.
3778         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3779         (get_dest_uid): Likewise for local "dest".
3780         (split_branches): Likewise for locals "next", "beyond", "label",
3781         "block", "far_label".  Add checked casts when assigning to
3782         bp->far_label and "far_label".
3783         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3784         (sequence_insn_p): Likewise.
3785         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
3786         more loop-scoped rtx "insn" when walking LABEL_REFS.
3787         (sh_can_redirect_branch): Strengthen both params from rtx to
3788         rtx_insn *.
3789         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
3790         new local rtx_sequence * "seq" via a dyn_cast, and use a method
3791         for clarity and typesafety.
3792         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3793         "insn" from rtx to rtx_insn *.
3794         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3795         when using NEXT_INSN on the CODE_LABEL in operands[2].
3796         (define_insn "casesi_worker_2"): Likewise.
3797         (define_insn "casesi_shift_media"): Likewise.
3798         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3799         operands[3].
3800         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3801         Strengthen field "insn" from rtx to rtx_insn *.
3802         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3803         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3804         param "start_insn" and local "start_insn".
3805         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3806         field "insn".
3807         (find_set_of_reg_bb): Likewise for param "insn".
3808         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3809         (trace_reg_uses): Likewise for param "start_insn".
3810         (sh_treg_combine::cbranch_trace): Likewise for field
3811         "cbranch_insn".
3812         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3813         param "insn".
3814         (sh_treg_combine::record_set_of_reg): Likewise for param
3815         "start_insn" and local "i".
3816         (sh_treg_combine::can_remove_cstore): Likewise for local
3817         "prev_insn".
3818         (sh_treg_combine::try_optimize_cbranch): Likewise for param
3819         "insn".
3820         (sh_treg_combine::execute): Likewise for local "i".
3821         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3822         param.
3823         (sparc_check_64): Likewise for second param.
3824         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3825         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
3826         dyn_cast, using its insn method for typesafety and clarity.
3827         (empty_delay_slot): Strengthen param "insn" from rtx to
3828         rtx_insn *.
3829         (set_extends): Likewise.
3830         (sparc_check_64): Likewise.
3831         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3832         for locals "seq", "last_insn".
3833         (combine_bnp): Likewise for param "insn".
3834         (xstormy16_reorg): Likewise for local "insn".
3835         * config/v850/v850.c (substitute_ep_register): Likewise for params
3836         "first_insn", "last_insn" and local "insn".
3837         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3838         elements of "regs" array, and local "insn".
3839         * except.c (emit_note_eh_region_end): Likewise for param "insn".
3840         * final.c (final_sequence): Strengthen this global from rtx to
3841         rtx_sequence *.
3842         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3843         rtx_insn *.
3844         (final_scan_insn): Update assignment to "final_sequence" to be
3845         from "seq", the cast version of "body", for type-safety.
3846         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3847         "insns" from rtx to rtx_insn *.
3848         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3849         * genattr.c (main): When writing out generated insn-attr.h,
3850         strengthen params 1 and 3 of eligible_for_delay,
3851         eligible_for_annul_true, eligible_for_annul_false from rtx to
3852         rtx_insn *.
3853         * genattrtab.c (write_eligible_delay): Likewise when writing out
3854         generated insn-attrtab.c; also local "insn" the generated
3855         functions.
3856         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3857         to rtx_insn *.
3858         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3859         "start_label" from rtx to rtx_insn *.
3860         * ira.c (decrease_live_ranges_number): Likewise for local "p".
3861         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3862         "insns" and local "insn".
3863         (validate_equiv_mem): Likewise for param "start" and local "insn".
3864         (memref_used_between_p): Likewise for params "start", "end" and
3865         local "insn".
3866         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3867         final param.
3868         * loop-doloop.c (doloop_optimize): Within region guarded by
3869         INSN_P (doloop_pat), introduce a new local rtx_insn *
3870         "doloop_insn" via a checked cast, and use it for typesafety,
3871         eventually writing the value back into doloop_pat.
3872         * output.h (final_sequence): Strengthen this global from rtx to
3873         rtx_sequence *.
3874         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3875         reintroducing "insn" as an rtx_insn * via a checked cast.
3876         Strengthen param "attempt" and local "new_insn"from rtx to
3877         rtx_insn *.
3878         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3879         to rtx_insn *.
3880         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3881         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3882         "p" in favor of more tightly-scoped replacements, sometimes rtx
3883         and sometimes rtx_insn *, as appropriate.
3884         (delete_output_reload): Eliminate top-level rtx "i1", splitting
3885         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3886         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
3887         local "trial" from rtx to rtx_insn *.
3888         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3889         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
3890         rtx_sequence * and use methods for clarity and typesafety.
3891         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3892         rtx to rtx_insn *.  Strenghten local "li" from rtx to
3893         rtx_insn_list * and use its methods for clarity and typesafety.
3894         (steal_delay_list_from_target): Strengthen param "insn" from rtx
3895         to rtx_insn *.
3896         (steal_delay_list_from_fallthrough): Likewise.
3897         (try_merge_delay_insns): Likewise for param "thread" and locals
3898         "trial", "next_trial", "delay_insn".
3899         (redundant_insn): Likewise for param "target" and local "trial".
3900         (own_thread_p): Likewise for param "thread" and locals
3901         "active_insn", "insn".
3902         (get_label_before): Likewise for param "insn".
3903         (fill_simple_delay_slots): Likewise for local "new_label"; use
3904         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3905         (label_before_next_insn): Strengthen return type and local "insn"
3906         from rtx to rtx_insn *.
3907         (relax_delay_slots): Likewise for locals "other", "tmp".
3908         (make_return_insns): Likewise for param "first" and locals "insn",
3909         "jump_insn", "prev".  Move declaration of "pat" to its assignment
3910         and strengthen from rtx to rtx_sequence *.  Use its methods for
3911         clarity and typesafety.
3912         * rtlanal.c (no_labels_between_p): Strengthen params from
3913         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
3914         rtx_insn *.
3915         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3916         from const_rtx to const rtx_insn *.
3917         (reg_set_between_p): Rename param "from_insn" to
3918         "uncast_from_insn", and reintroduce "from_insn" as a
3919         const rtx_insn * via a checked cast.
3920         (modified_between_p): Likewise for param "start" as "uncast_start".
3921         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3922         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3923         "tmp", head" from rtx to rtx_insn *.
3924         (recompute_rev_top_order): Likewise for local "insn".
3925         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3926         * store-motion.c (build_store_vectors): Likewise for local "insn".
3927         Strengthen local "st" from rtx to rtx_insn_list * and use methods
3928         for clarity and typesafety.
3929         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3930         rtx to rtx_insn *.
3931         (computation_cost): Likewise for local "seq".
3932         (get_address_cost): Likewise.
3933
3934 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3935
3936         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3937         const rtx_insn *.
3938         (label_is_jump_target_p): Likewise for second param.
3939
3940         * rtlanal.c (tablejump_p): Likewise for param "insn".
3941         (label_is_jump_target_p): Likewise for param "jump_insn".
3942
3943 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3944
3945         * rtl.h (find_first_parameter_load): Strengthen return type and
3946         both params from rtx to rtx_insn *.
3947         * rtlanal.c (find_first_parameter_load): Strengthen return type,
3948         both params and locals "before", "first_set" from rtx to
3949         rtx_insn *.  Remove now-redundant cast.
3950         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3951
3952 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3953
3954         * rtl.h (find_last_value): Delete.
3955         * rtlanal.c (find_last_value): Delete.
3956
3957 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3958
3959         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3960         from rtx to rtx_insn *.
3961         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3962         rtx "note" with new local rtx_insn * "new_head" when calculating
3963         head insn of new basic block.
3964         * combine.c (combine_split_insns): Strengthen return type and local
3965         "ret" from rtx to rtx_insn *.
3966         (likely_spilled_retval_p): Likewise for locals "use" and "p".
3967         (try_combine): Eliminate local "m_split", splitting into new
3968         locals "m_split_insn" and "m_split_pat".
3969         (find_split_point): Strengthen local "seq" from rtx into
3970         rtx_insn *.
3971         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3972         locals "label", "branch".
3973         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3974         for local "insn".
3975         (define_expand "umulsi3_highpart"): Likewise for local "insn".
3976         * dse.c (note_add_store_info): Likewise for fields "first",
3977         "current".
3978         (note_add_store): Likewise for local "insn".
3979         (emit_inc_dec_insn_before): Likewise for locals "insn",
3980         "new_insn", "cur".
3981         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3982         (replace_read): Likewise for locals "insns", "this_insn".
3983         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3984         (notice_eh_throw): Likewise for param "insn".
3985         (before_next_cfi_note): Likewise for return type, param, and local
3986         "prev".
3987         (connect_traces): Likewise for local "note".
3988         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3989         (verify_rtl_sharing): Likewise.
3990         (unshare_all_rtl_in_chain): Likewise for param "insn".
3991         (get_first_nonnote_insn): Likewise for local "insn".
3992         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
3993         "seq" and use its methods to clarify things.
3994         (next_insn): Strengthen return type from rtx to rtx_insn *.
3995         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3996         local rtx_insn * using a checked cast, dropping a checked cast
3997         made redundant by this change.  Use a cast to and method of
3998         rtx_sequence to clarify the code.
3999         (previous_insn): Rename param "insn" to "uncast_insn" and
4000         reintroduce "insn" as a local rtx_insn * using a checked cast,
4001         dropping a checked cast made redundant by this change.  Use a cast
4002         to and method of rtx_sequence to clarify the code.
4003         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
4004         reintroduce "insn" as a local rtx_insn * using a checked cast,
4005         dropping a checked cast made redundant by this change.
4006         (next_nonnote_insn_bb): Likewise.
4007         (prev_nonnote_insn): Likewise.
4008         (prev_nonnote_insn_bb): Likewise.
4009         (next_nondebug_insn): Likewise.
4010         (prev_nondebug_insn): Likewise.
4011         (next_nonnote_nondebug_insn): Likewise.
4012         (prev_nonnote_nondebug_insn): Likewise.
4013         (next_real_insn): Likewise.
4014         (prev_real_insn): Likewise.
4015         (next_active_insn): Likewise.
4016         (prev_active_insn): Likewise.
4017         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
4018         clarity.
4019         (prev_cc0_setter): Likewise.
4020         (try_split): Rename param "trial" to "uncast_trial" and
4021         reintroduce "insn" as a local rtx_insn * using a checked cast,
4022         dropping checked casts made redundant by this change.
4023         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
4024         rtx to rtx_insn *.
4025         (remove_insn): Rename param "insn" to "uncast_insn" and
4026         reintroduce "insn" as a local rtx_insn * using a checked cast.
4027         (emit_pattern_after_setloc): Likewise for param "after", as
4028         "uncast_after".
4029         (emit_pattern_after): Likewise.  Strengthen local "prev" from
4030         rtx to rtx_insn *.
4031         (emit_pattern_before_setloc): Rename param "before" to
4032         "uncast_before" and reintroduce "before" as a local rtx_insn *
4033         using a checked cast.  Strengthen locals "first", "last" from
4034         rtx to rtx_insn *.
4035         (emit_pattern_before): Likewise rename/cast param "before" to
4036         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
4037         * except.c (copy_reg_eh_region_note_forward): Strengthen param
4038         "first" and local "insn" from rtx to rtx_insn *.
4039         (copy_reg_eh_region_note_backward): Likewise for param "last"
4040         and local "insn".
4041         * expr.c (fixup_args_size_notes): Rename param "last" to
4042         "uncast_last" and reintroduce "last" as a local rtx_insn *
4043         using a checked cast.  Strengthen local "insn" from rtx to
4044         rtx_insn *.
4045         * function.c (set_insn_locations): Strengthen param "insn" from
4046         rtx to rtx_insn *.
4047         (record_insns): Likewise for param "insns" and local "tmp".
4048         (active_insn_between): Rename param "tail" to
4049         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
4050         using a checked cast.
4051         (thread_prologue_and_epilogue_insns): Split out top-level local
4052         rtx "seq" into three different rtx_insn * locals.  Strengthen
4053         local "prologue_seq" from rtx to rtx_insn *.
4054         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
4055         from rtx to rtx_insn *.
4056         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
4057         (priority): Likewise for locals "prev_first", "twin".
4058         (setup_insn_max_reg_pressure): Likewise for param "after".
4059         (sched_setup_bb_reg_pressure_info): Likewise.
4060         (no_real_insns_p): Strengthen params from const_rtx to
4061         const rtx_insn *.
4062         (schedule_block): Strengthen local "next_tail" from rtx to
4063         rtx_insn *.
4064         * ifcvt.c (find_active_insn_before): Strengthen return type and
4065         param "insn" from rtx to rtx_insn *.
4066         (find_active_insn_after): Likewise.
4067         (cond_exec_process_insns): Likewise for param "start" and local "insn".
4068         (cond_exec_process_if_block): Likewise for locals "then_start",
4069         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
4070         (noce_process_if_block): Likewise for local "jump".
4071         (merge_if_block): Likewise for two locals named "end".
4072         (cond_exec_find_if_block): Likewise for local "last_insn".
4073         * jump.c (delete_related_insns): Rename param "insn" to
4074         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
4075         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
4076         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
4077         NULL.
4078         (split_reg): Likewise.
4079         * lra.c (lra_process_new_insns): Likewise.
4080         * modulo-sched.c (permute_partial_schedule): Strengthen param
4081         "last" from rtx to rtx_insn *.
4082         * optabs.c (add_equal_note): Likewise for param "insns" and local
4083         "last_insn".
4084         (expand_binop_directly): Add checked casts to rtx_insn * within
4085         NEXT_INSN (pat) uses.
4086         (expand_unop_direct): Likewise.
4087         (maybe_emit_unop_insn): Likewise.
4088         * recog.c (peep2_attempt): Strengthen locals "last",
4089         "before_try", "x" from rtx to rtx_insn *.
4090         * reorg.c (optimize_skip): Strengthen return type and local
4091         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
4092         and locals "trial", "next_trial" from rtx to rtx_insn *.
4093         * resource.c (next_insn_no_annul): Strengthen return type and
4094         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
4095         rtx_sequence to clarify the code.
4096         (mark_referenced_resources): Add a checked cast to rtx_insn *
4097         within PREV_INSN (x).
4098         (find_dead_or_set_registers): Strengthen return type, param
4099         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
4100         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
4101         to rtx_insn **.
4102         (mark_target_live_regs): Strengthen params "insns" and "target",
4103         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
4104         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
4105         the code.
4106         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
4107         from rtx to rtx_insn *.
4108         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
4109         from rtx to rtx_insn *.
4110         (copy_reg_eh_region_note_backward): Likewise.
4111         (unshare_all_rtl_in_chain): Likewise for sole param.
4112         (dump_rtl_slim): Strengthen second and third params from const_rtx
4113         to const rtx_insn *.
4114         * sched-deps.c (sched_free_deps): Strengthen params "head" and
4115         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
4116         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
4117         "next_tail" from rtx to rtx_insn *.
4118         (begin_move_insn): Likewise for local "next".
4119         * sched-int.h (sched_free_deps): Likewise for first and second
4120         params.
4121         (no_real_insns_p): Strengthen both params from const_rtx to
4122         const rtx_insn *.
4123         (sched_setup_bb_reg_pressure_info): Strengthen second params from
4124         rtx to rtx_insn *.
4125         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
4126         "next_tail".
4127         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
4128         and locals "insn", "tail" from const_rtx to const rtx_insn *.
4129         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
4130         rtx_insn *.
4131         (debug_rtl_slim): Strengthen params "first" and "last" from
4132         const_rtx to const rtx_insn *.
4133         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
4134         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
4135         (convert_to_simple_return): Likewise for param "returnjump".
4136         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
4137         "prologue_seq".
4138         (convert_to_simple_return): Likewise for param "returnjump".
4139         * valtrack.c (propagate_for_debug): Likewise for params
4140         "insn", "last".
4141         * valtrack.h (propagate_for_debug): Likewise for second param.
4142
4143 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4144
4145         * output.h (insn_current_reference_address): Strengthen param
4146         from rtx to rtx_insn *.
4147         * final.c (insn_current_reference_address): Likewise.
4148
4149 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4150
4151         * basic-block.h (inside_basic_block_p): Strengthen param from
4152         const_rtx to const rtx_insn *.
4153         * cfgbuild.c (inside_basic_block_p): Likewise.
4154
4155 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4156
4157         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
4158         rtx_insn *.
4159         (get_trace_info): Likewise for param "insn".
4160         (save_point_p): Likewise.
4161         (maybe_record_trace_start): Likewise for both params.
4162         (maybe_record_trace_start_abnormal): Likewise.
4163         (create_trace_edges): Likewise for sole param and for three of the
4164         locals named "lab".
4165         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
4166         to rtx_insn *, and update a call to pat->element to pat->insn.
4167
4168 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4169
4170         * function.h (struct expr_status): Convert field "x_forced_labels"
4171         from rtx_expr_list * to rtx_insn_list *.
4172
4173         * cfgbuild.c (make_edges): Convert local "x" from an
4174         rtx_expr_list * to an rtx_insn_list *, replacing use of
4175         "element" method with "insn" method.
4176         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4177         * except.c (sjlj_emit_dispatch_table): Replace use of
4178         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
4179         forced_labels.
4180         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
4181         rtx_expr_list * to an rtx_insn_list *, replacing use of
4182         "element" method with "insn" method.
4183         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4184         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
4185         rtx_insn *, adding a checked cast.  Replace use of
4186         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
4187         forced_labels.
4188         (expand_label): Likewise for local "label_r".
4189
4190 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4191
4192         * function.h (struct rtl_data): Convert field
4193         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
4194         rtx_insn_list *.
4195         * rtl.h (remove_node_from_insn_list): New prototype.
4196
4197         * builtins.c (expand_builtin): When prepending to
4198         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
4199         gen_rtx_EXPR_LIST.
4200         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
4201         to rtx_insn_list *, and use its "insn" method rather than
4202         "element" method.
4203         * cfgrtl.c (delete_insn): Use new function
4204         remove_node_from_insn_list rather than
4205         remove_node_from_expr_list.
4206         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
4207         to rtx_insn_list *, and use its "insn" method rather than
4208         "element" method.
4209         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4210         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4211         * rtlanal.c (remove_node_from_insn_list): New function, adapted
4212         from remove_node_from_expr_list.
4213         * stmt.c (expand_label): When prepending to
4214         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
4215         gen_rtx_EXPR_LIST.
4216
4217 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4218
4219         * function.h (struct rtl_data): Strengthen fields "x_return_label"
4220         and "x_naked_return_label" from rtx to rtx_code_label *.
4221
4222 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4223
4224         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
4225         (SET_NEXT_INSN): Likewise.
4226         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
4227
4228         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
4229         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
4230         to split out the SEQUENCE from local "bundle", strengthening the
4231         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
4232         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
4233         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
4234         and the type of the elements of the "slot" array from rtx to
4235         rtx_insn *.
4236         (reorg_split_calls): Likewise for locals "insn" and "next", and
4237         the type of the elements of the "slot" array.
4238
4239         * config/frv/frv.c (frv_nops): Likewise for the elements of this
4240         array.
4241         (frv_function_prologue): Likewise for locals "insn", "next",
4242         "last_call".
4243         (frv_register_nop): Introduce a local "nop_insn" to be the
4244         rtx_insn * containing rtx "nop".
4245
4246         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
4247         used as an insn and sometimes as a pattern, so rename it to
4248         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
4249         using it where dealing with the core insn.
4250
4251         * config/picochip/picochip.c (reorder_var_tracking_notes):
4252         Strengthen locals "insn", "next", "last_insn", "queue",
4253         "next_queue", "prev" from rtx to rtx_insn *.
4254
4255         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
4256         the second param is an rtx_insn ** rather than an rtx **.
4257         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
4258         from rtx to rtx_sequence *, and introduce local named "sequence",
4259         using methods of rtx_sequence to clarify the code.
4260         (remove_insn): Introduce local rtx_sequence * named "sequence" and
4261         use its methods.
4262         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
4263         Rename param "after" to "uncast_after", reintroducing "after" as a
4264         local rtx_insn * with a checked cast.
4265         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
4266         reintroducing "after" as a local rtx_insn * with a checked cast.
4267         Strengthen local "last" from rtx to rtx_insn * and remove the
4268         now-redundant checked casts.
4269         (copy_delay_slot_insn): Strengthen return type and param from rtx
4270         to rtx_insn *.
4271
4272         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
4273         "last" from rtx to rtx_insn *.
4274
4275 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4276
4277         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
4278         param from rtx to rtx_insn *.
4279
4280         * emit-rtl.c (copy_delay_slot_insn): Likewise.
4281
4282         * reorg.c (skip_consecutive_labels): Strengthen return type, param
4283         and local "insn" from rtx to rtx_insn *.
4284         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
4285         (unfilled_slots_next): Likewise.
4286         (function_return_label): Strengthen from rtx to rtx_code_label *.
4287         (function_simple_return_label): Likewise.
4288         (first_active_target_insn): Strengthen return type and param from
4289         rtx to rtx_insn *.
4290         (find_end_label): Strengthen return type from rtx to
4291         rtx_code_label *; strengthen locals as appropriate.
4292         (emit_delay_sequence): Strengthen return type, param "insn" and
4293         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
4294         and local "li" from rtx to rtx_insn_list *, using methods of
4295         rtx_insn_list for clarity and typesafety.
4296         (add_to_delay_list): Strengthen return type and param "insn" from
4297         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
4298         rtx_insn_list * and use methods of rtx_insn_list.
4299         (delete_from_delay_slot): Strengthen return type, param "insn",
4300         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
4301         Strengthen local "seq" from rtx to rtx_sequence *, and local
4302         "delay_list" from rtx to rtx_insn_list *, using methods of
4303         rtx_sequence for clarity and type-safety.
4304         (delete_scheduled_jump): Add checked cast when invoking
4305         delete_from_delay_slot.  Strengthen local "trial" from rtx to
4306         rtx_insn *.
4307         (optimize_skip): Strengthen return type and local "delay_list"
4308         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
4309         rtx_insn *.
4310         (steal_delay_list_from_target): Strengthen return type, param
4311         "delay_list" and local "new_delay_list" from rtx to
4312         rtx_insn_list *.  Strengthen param "seq" from rtx to
4313         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
4314         rtx_insn **.
4315         Split out local "temp" into multiple more-tightly scoped locals:
4316         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
4317         of rtx_insn_list and rtx_sequence for clarity and typesafety.
4318         Strengthen locals named "trial" from rtx to rtx_insn *.
4319         (steal_delay_list_from_fallthrough): Strengthen return type and
4320         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
4321         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
4322         Strengthen local "trial" from rtx to rtx_insn *.
4323         (try_merge_delay_insns): Strength local "merged_insns" from rtx
4324         to rtx_insn_list * and use its methods.  Strengthen local "pat"
4325         from rtx to rtx_sequence * and use its methods.  Strengthen locals
4326         "dtrial" and "new_rtx" from rtx to rtx_insn *.
4327         (get_label_before): Strengthen return type and local "label" from
4328         rtx to rtx_insn *.
4329         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
4330         "next_trial", "next", prev".  Strengthen local "delay_list" from
4331         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
4332         rtx_insn **.
4333         (follow_jumps): Strengthen return type, param "label" and locals
4334         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
4335         (fill_slots_from_thread): Strengthen return type, param
4336         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
4337         "insn", "thread", "opposite_thread" and locals "new_thread",
4338         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
4339         "sequence" from a checked cast to rtx_sequence so that we can call
4340         steal_delay_list_from_target and steal_delay_list_from_fallthrough
4341         with an rtx_sequence *.
4342         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
4343         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
4344         Strengthen local "delay_list" from rtx to rtx_insn_list *.
4345         (relax_delay_slots): Strengthen param "first" and locals "insn",
4346         "next", "trial", "delay_insn", "target_label" from rtx to
4347         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
4348         Introduce a local "trial_seq" for PATTERN (trial) of type
4349         rtx_sequence *, in both cases using methods of rtx_sequence.
4350         (dbr_schedule): Strengthen param "first" and locals "insn",
4351         "next", "epilogue_insn" from rtx to rtx_insn *.
4352
4353 2014-08-28  Richard Biener  <rguenther@suse.de>
4354
4355         PR tree-optimization/62283
4356         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4357         Do not peel loops for alignment where the vector loop likely
4358         doesn't run at least VF times.
4359
4360 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
4361
4362         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
4363         important_candidates.  Consider all important candidates if
4364         IVS doesn't give any result.  Remove check on ivs->upto.
4365         (try_add_cand_for): Call iv_ca_add_use only once.
4366
4367 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4368             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4369             Anna Tikhonova  <anna.tikhonova@intel.com>
4370             Ilya Tocar  <ilya.tocar@intel.com>
4371             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4372             Ilya Verbin  <ilya.verbin@intel.com>
4373             Kirill Yukhin  <kirill.yukhin@intel.com>
4374             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4375
4376         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
4377         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
4378         masking.
4379         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
4380         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4381         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4382         (define_insn "*mul<mode>3"): Add EVEX version.
4383
4384 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4385             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4386             Anna Tikhonova  <anna.tikhonova@intel.com>
4387             Ilya Tocar  <ilya.tocar@intel.com>
4388             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4389             Ilya Verbin  <ilya.verbin@intel.com>
4390             Kirill Yukhin  <kirill.yukhin@intel.com>
4391             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4392
4393         * config/i386/sse.md
4394         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
4395         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
4396         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
4397         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
4398         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
4399         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
4400         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
4401         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
4402         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
4403         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
4404         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
4405         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
4406         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
4407         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
4408         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
4409         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
4410
4411 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4412             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4413             Anna Tikhonova  <anna.tikhonova@intel.com>
4414             Ilya Tocar  <ilya.tocar@intel.com>
4415             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4416             Ilya Verbin  <ilya.verbin@intel.com>
4417             Kirill Yukhin  <kirill.yukhin@intel.com>
4418             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4419
4420         * config/i386/sse.md
4421         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
4422         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
4423         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
4424
4425 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4426             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4427             Anna Tikhonova  <anna.tikhonova@intel.com>
4428             Ilya Tocar  <ilya.tocar@intel.com>
4429             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4430             Ilya Verbin  <ilya.verbin@intel.com>
4431             Kirill Yukhin  <kirill.yukhin@intel.com>
4432             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4433
4434         * config/i386/sse.md
4435         (define_mode_iterator VI128_256): New.
4436         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
4437
4438 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4439             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4440             Anna Tikhonova  <anna.tikhonova@intel.com>
4441             Ilya Tocar  <ilya.tocar@intel.com>
4442             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4443             Ilya Verbin  <ilya.verbin@intel.com>
4444             Kirill Yukhin  <kirill.yukhin@intel.com>
4445             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4446
4447         * config/i386/sse.md
4448         (define_mode_iterator VI8_256_512): New.
4449         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
4450         Ditto.
4451         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4452         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
4453         Ditto.
4454         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
4455
4456 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4457
4458         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
4459         pointer to the cumulative reloc value and return the value for
4460         this reloc instead.
4461         (compute_reloc_for_rtx): Take a const_rtx.  Call
4462         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
4463         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
4464         for_each_rtx for the CONST case.
4465
4466 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4467
4468         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
4469         (mark_constants_in_pattern): ...this new function to iterate over
4470         all the subrtxes.
4471         (mark_constants): Update accordingly.
4472
4473 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4474
4475         * varasm.c: Include rtl-iter.h.
4476         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
4477         Remove the pointer to the cumulative hashval_t and just return
4478         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
4479         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4480         Accumulate the hashval_ts here instead of const_rtx_hash_1.
4481
4482 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4483
4484         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
4485         Give real type of data parameter.  Remove return value.
4486         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
4487         to iterate over subrtxes.
4488
4489 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4490
4491         * var-tracking.c (use_narrower_mode_test): Turn from being a
4492         for_each_rtx callback to being a function that examines each
4493         subrtx itself.
4494         (adjust_mems): Update accordingly.
4495
4496 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4497
4498         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
4499         callback to being a function that examines each subrtx itself.
4500         Remove handling of null rtxes.
4501         (add_uses): Update accordingly.
4502
4503 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4504
4505         * var-tracking.c: Include rtl-iter.h.
4506         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
4507         to being a function that examines each subrtx itself.
4508         (use_type): Update accordingly.
4509
4510 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4511
4512         * store-motion.c: Include rtl-iter.h.
4513         (extract_mentioned_regs_1): Delete.
4514         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
4515         for_each_rtx to iterate over subrtxes.
4516
4517 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4518
4519         * sel-sched.c: Include rtl-iter.h
4520         (count_occurrences_1): Delete.
4521         (count_occurrences_equiv): Turn rtxes into const_rtxes.
4522         Use FOR_EACH_SUBRTX rather than for_each_rtx.
4523
4524 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4525
4526         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
4527         * rtlanal.c (tls_referenced_p_1): Delete.
4528         (tls_referenced_p): Take a const_rtx rather than an rtx.
4529         Use FOR_EACH_SUBRTX rather than for_each_rtx.
4530
4531 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4532
4533         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
4534         (for_each_inc_dec): Take an rtx rather than an rtx *.
4535         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
4536         (cselib_record_sets): Likewise.
4537         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
4538         (check_for_inc_dec): Likewise.
4539         * rtlanal.c (for_each_inc_dec_ops): Delete.
4540         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
4541         rather than a pointer to the memory address.  Replace
4542         for_each_inc_dec_ops argument with separate function and data
4543         arguments.  Abort on non-autoinc addresses.
4544         (for_each_inc_dec_find_mem): Delete.
4545         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
4546         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
4547
4548 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4549
4550         * rtl.h (find_all_hard_regs): Declare.
4551         * rtlanal.c (find_all_hard_regs): New function.
4552         (record_hard_reg_uses_1): Delete.
4553         (record_hard_reg_uses): Use find_all_hard_regs.
4554
4555 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4556
4557         * rtl.h (replace_label_data): Delete.
4558         (replace_label): Take the old label, new label and update-nuses flag
4559         as direct arguments.  Return void.
4560         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
4561         * rtlanal.c (replace_label): Update interface as above.  Handle
4562         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
4563         iterator.  Use FOR_EACH_SUBRTX_PTR.
4564
4565 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4566
4567         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
4568         with const_rtx parameters.
4569         * varasm.c (get_pool_constant): Likewise.
4570         * rtlanal.c (rtx_referenced_p_1): Delete.
4571         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4572         Assert that the rtx we're looking for is nonnull.  Allow searches
4573         for constant pool SYMBOL_REFs.
4574
4575 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4576
4577         * reload1.c: Include rtl-iter.h.
4578         (note_reg_elim_costly): Turn from being a for_each_rtx callback
4579         to being a function that examines each subrtx itself.
4580         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
4581
4582 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4583
4584         * regcprop.c (cprop_find_used_regs_1): Delete.
4585         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4586
4587 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4588
4589         * regcprop.c: Include rtl-iter.h.
4590         (kill_value): Take a const_rtx.
4591         (kill_autoinc_value): Turn from being a for_each_rtx callback
4592         to being a function that examines each subrtx itself.
4593         (copyprop_hardreg_forward_1): Update accordingly.
4594
4595 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4596
4597         * reg-stack.c: Include rtl-iter.h.
4598         (subst_stack_regs_in_debug_insn): Delete.
4599         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
4600         instead of for_each_rtx.
4601
4602 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4603
4604         * lower-subreg.c (find_decomposable_subregs): Turn from being
4605         a for_each_rtx callback to being a function that examines each
4606         subrtx itself.  Remove handling of null rtxes.
4607         (decompose_multiword_subregs): Update accordingly.
4608
4609 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4610
4611         * lower-subreg.c (adjust_decomposed_uses): Delete.
4612         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
4613         Remove handling of null rtxes.
4614
4615 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4616
4617         * lower-subreg.c: Include rtl-iter.h.
4618         (resolve_subreg_use): Turn from being a for_each_rtx callback
4619         to being a function that examines each subrtx itself.  Remove
4620         handling of null rtxes.
4621         (resolve_reg_notes, resolve_simple_move): Update accordingly.
4622         (decompose_multiword_subregs): Likewise.
4623
4624 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4625
4626         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
4627         to being a function that examines each subrtx itself.
4628         (simplify_using_condition, simplify_using_initial_values): Update
4629         accordingly.
4630
4631 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4632
4633         * loop-iv.c: Include rtl-iter.h.
4634         (find_single_def_src): New function.
4635         (replace_single_def_regs): Turn from being a for_each_rtx callback
4636         to being a function that examines each subrtx itself.
4637         (replace_in_expr, simplify_using_initial_values): Update accordingly.
4638
4639 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4640
4641         * jump.c (eh_returnjump_p_1): Delete.
4642         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4643         Remove handling of null rtxes.
4644
4645 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4646
4647         * jump.c: Include rtl-iter.h.
4648         (returnjump_p_1): Delete.
4649         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4650         Remove handling of null rtxes.
4651
4652 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4653
4654         * ira.c: Include rtl-iter.h.
4655         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
4656         to being a function that examines each subrtx itself.  Remove
4657         handling of null rtxes.
4658         (update_equiv_regs): Update call accordingly.
4659
4660 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4661
4662         * fwprop.c: Include rtl-iter.h.
4663         (varying_mem_p): Turn from being a for_each_rtx callback to being
4664         a function that examines each subrtx itself.
4665         (propagate_rtx): Update accordingly.
4666
4667 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4668
4669         * function.c: Include rtl-iter.h
4670         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
4671         callback to being a function that examines each subrtx itself.
4672         Return the changed flag.
4673         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
4674         (instantiate_virtual_regs): Update calls accordingly.
4675
4676 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4677
4678         * final.c: Include rtl-iter.h.
4679         (mark_symbol_ref_as_used): Delete.
4680         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
4681         for_each_rtx.
4682
4683 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4684
4685         * emit-rtl.c: Include rtl-iter.h.
4686         (find_auto_inc): Turn from being a for_each_rtx callback to being
4687         a function that examines each subrtx itself.  Assume the first operand
4688         to an RTX_AUTOINC is the automodified register.
4689         (try_split): Update call accordingly.
4690
4691 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4692
4693         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4694         Return a bool, inverting the result so that 0/false means "not ok".
4695         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
4696         subrtxes of a CONST.
4697         (mem_loc_descriptor, add_const_value_attribute)
4698         (resolve_addr_in_expr): Update calls accordingly.
4699
4700 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4701
4702         * dwarf2out.c: Include rtl-iter.h.
4703         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4704         Remove unused data parameter.  Return a bool, inverting the result
4705         so that 0/false means "not ok".
4706         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
4707         instead of for_each_rtx.
4708
4709 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4710
4711         * dse.c: Include rtl-iter.h.
4712         (check_mem_read_rtx): Change void * parameter to real type.
4713         Remove return value.
4714         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
4715         for_each_rtx.  Don't handle null rtxes.
4716
4717 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4718
4719         * df-problems.c: Include rtl-iter.h.
4720         (find_memory): Turn from being a for_each_rtx callback to being
4721         a function that examines each subrtx itself.  Continue to look for
4722         volatile references even after a nonvolatile one has been found.
4723         (can_move_insns_across): Update calls accordingly.
4724
4725 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4726
4727         * ddg.c (walk_mems_2, walk_mems_1): Delete.
4728         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4729         to iterate over subrtxes.  Return a bool rather than an int.
4730
4731 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4732
4733         * ddg.c: Include rtl-iter.h.
4734         (mark_mem_use_1): Rename to...
4735         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
4736         instead of for_each_rtx.
4737         (mem_read_insn_p): Update accordingly.
4738
4739 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4740
4741         * cse.c (change_cc_mode_args): Delete.
4742         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4743         a function that examines each subrtx itself.  Take the fields of
4744         change_cc_mode_args as argument and return void.
4745         (cse_change_cc_mode_insn): Update calls accordingly.
4746
4747 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4748
4749         * cse.c (is_dead_reg): Change argument to const_rtx.
4750         (dead_debug_insn_data): Delete.
4751         (is_dead_debug_insn): Expand commentary.  Turn from being a
4752         for_each_rtx callback to being a function that examines
4753         each subrtx itself.  Take the fields of dead_debug_insn_data
4754         as argument.
4755         (delete_trivially_dead_insns): Update call accordingly.
4756
4757 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4758
4759         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
4760         being a for_each_rtx callback to being a function that examines
4761         each subrtx itself.
4762         (cse_extended_basic_block): Update call accordingly.
4763
4764 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4765
4766         * cse.c (check_dependence_data): Delete.
4767         (check_dependence): Change from being a for_each_rtx callback to being
4768         a function that examines all subrtxes itself.  Don't handle null rtxes.
4769         (invalidate): Update call accordingly.
4770
4771 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4772
4773         * cse.c: Include rtl-iter.h.
4774         (approx_reg_cost_1): Delete.
4775         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4776         Don't handle null rtxes.
4777
4778 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4779
4780         * cfgcleanup.c: Include rtl-iter.h.
4781         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4782         to being a function that examines each subrtx itself.
4783         (thread_jump): Update accordingly.
4784
4785 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4786
4787         * combine-stack-adj.c: Include rtl-iter.h.
4788         (record_stack_refs_data): Delete.
4789         (record_stack_refs): Turn from being a for_each_rtx callback
4790         to being a function that examines each subrtx itself.
4791         Take a pointer to the reflist.  Invert sense of return value
4792         so that true means success and false means failure.  Don't
4793         handle null rtxes.
4794         (combine_stack_adjustments_for_block): Update accordingly.
4795
4796 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4797
4798         * combine.c (record_truncated_value): Turn from being a for_each_rtx
4799         callback to a function that takes an rtx and returns a bool
4800         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4801         for_each_rtx.
4802
4803 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4804
4805         * combine.c: Include rtl-iter.h.
4806         (unmentioned_reg_p_1): Delete.
4807         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4808         Don't handle null rtxes.
4809
4810 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4811
4812         * calls.c: Include rtl-iter.h.
4813         (internal_arg_pointer_based_exp_1): Delete.
4814         (internal_arg_pointer_based_exp): Take a const_rtx.
4815         Use FOR_EACH_SUBRTX to iterate over subrtxes.
4816
4817 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4818
4819         * caller-save.c: Include rtl-iter.h.
4820         (add_used_regs_1): Delete.
4821         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4822         to iterate over subrtxes.  Assert that any remaining pseudos
4823         have been spilled.
4824
4825 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4826
4827         * bt-load.c: Include rtl-iter.h.
4828         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4829         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
4830         to iterate over subrtxes.
4831         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4832         find_btr_use rather than btr_referenced_p.
4833
4834 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4835
4836         * alias.c: Include rtl-iter.h.
4837         (refs_newer_value_cb): Delete.
4838         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4839
4840 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4841
4842         * rtl-iter.h: New file.
4843         * rtlanal.c: Include it.
4844         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4845         (generic_subrtx_iterator <T>::add_single_to_queue)
4846         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4847         (generic_subrtx_iterator <T>::free_array): New functions.
4848         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4849         (generic_subrtx_iterator <const_rtx_accessor>)
4850         (generic_subrtx_iterator <rtx_var_accessor>
4851         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4852         (setup_reg_subrtx_bounds): New function.
4853         (init_rtlanal): Call it.
4854
4855 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4856
4857         PR target/62261
4858         * config/sh/sh.md (ashlsi3): Handle negative shift count for
4859         TARGET_SHMEDIA.
4860         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4861
4862 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
4863
4864         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4865
4866 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4867
4868         * rtl.h (JUMP_LABEL_AS_INSN): New.
4869
4870 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4871
4872         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4873         rtx_expr_list **.
4874         (alloc_EXPR_LIST): Strengthen return type from rtx to
4875         rtx_expr_list *.
4876         (remove_free_EXPR_LIST_node): Likewise for param.
4877         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4878         from rtx to rtx_expr_list *.
4879         * sched-int.h (struct deps_desc): Strengthen fields
4880         "pending_read_mems" and "pending_write_mems" from rtx to
4881         rtx_expr_list *.
4882
4883         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4884         rtx to rtx_expr_list *.
4885         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4886         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4887         rtx_expr_list **.
4888         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
4889         from rtx to rtx_expr_list *.
4890         * loop-iv.c (simplify_using_initial_values): Strengthen local
4891         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4892         "pnote_next" from rtx * to rtx_expr_list **.
4893         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
4894         param "exprp" from rtx * to rtx_expr_list **.
4895         (add_insn_mem_dependence): Strengthen local "mem_list" from
4896         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
4897         to rtx_expr_list *.
4898         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4899         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
4900         param "old_mems_p" from rtx * to rtx_expr_list **.
4901         * var-tracking.c (struct adjust_mem_data): Strengthen field
4902         "side_effects" from rtx to rtx_expr_list *.
4903         (adjust_insn): Replace NULL_RTX with NULL when assigning to
4904         rtx_expr_list *.
4905         (prepare_call_arguments): Likewise.
4906
4907 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4908
4909         * function.h (struct rtl_data): Strengthen field
4910         "x_stack_slot_list" from rtx to rtx_expr_list *.
4911
4912         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4913         when assigning to stack_slot_list.
4914
4915 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4916
4917         * function.h (struct rtl_data): Strengthen field
4918         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4919         * rtl.h (remove_node_from_expr_list): Strengthen second param from
4920         rtx * to rtx_expr_list **.
4921
4922         * cfgbuild.c (make_edges): In loop over
4923         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4924         rtx_expr_list *, and use methods of the latter class to clarify
4925         the code.
4926         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4927         rtx_expr_list *, and use methods of the latter class to clarify
4928         the code.
4929         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4930         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4931         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4932         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
4933         to rtx_expr_list *.  Use methods of the latter class to clarify
4934         the code.
4935
4936 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4937
4938         * function.h (struct expr_status): Strengthen field
4939         "x_forced_labels" from rtx to rtx_expr_list *.
4940
4941         * cfgbuild.c (make_edges): Split local "x" into two locals,
4942         strengthening one from rtx to rtx_expr_list *, and using methods
4943         of said class.
4944         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4945         loop over forced_labels, introduce strengthen it from rtx to
4946         rtx_expr_list *, using methods to clarify the code.
4947         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4948         to rtx_expr_list *, using methods of said class to clarify the
4949         code.
4950         * reload1.c (set_initial_label_offsets): Split local "x" into two
4951         per-loop variables, strengthening the first from rtx to
4952         rtx_expr_list * and using methods.
4953
4954 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4955
4956         * coretypes.h (class rtx_expr_list): Add forward declaration.
4957         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4958         * gengenrtl.c (special_rtx): Add EXPR_LIST.
4959         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4960         invariant: GET_CODE (X) == EXPR_LIST.
4961         (is_a_helper <rtx_expr_list *>::test): New.
4962         (rtx_expr_list::next): New.
4963         (rtx_expr_list::element): New.
4964         (gen_rtx_EXPR_LIST): New.
4965
4966 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4967
4968         * varasm.c (mark_constants): Convert a GET_CODE check into a
4969         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4970         Use methods of rtx_sequence to clarify the code.
4971
4972 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4973
4974         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4975         local "seq" via a checked cast, and use methods of rtx_sequence
4976         to simplify the code.
4977
4978 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4979
4980         * resource.c (mark_referenced_resources): Strengthen local
4981         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4982         using methods of rtx_sequence to clarify the code.
4983         (find_dead_or_set_registers): Within the switch statement, convert
4984         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
4985         the JUMP_P handling, introduce another local "seq", adding a
4986         checked cast to rtx_sequence *.  In both cases, use methods of
4987         rtx_sequence to clarify the code.
4988         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4989         via a checked cast, and use methods of rtx_sequence to simplify
4990         the code.
4991
4992 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4993
4994         * reorg.c (redundant_insn): In two places in the function, replace
4995         a check of GET_CODE with a dyn_cast, introducing local "seq", and
4996         usings methods of rtx_sequence to clarify the code.
4997
4998 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4999
5000         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
5001         local "seq" with a checked cast, and use methods of rtx_sequence
5002         to clarify the code.
5003
5004 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5005
5006         * function.c (contains): Introduce local "seq" for PATTERN (insn),
5007         with a checked cast, in the region for where we know it's a
5008         SEQUENCE.  Use methods of rtx_sequence.
5009
5010 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5011
5012         * final.c (get_attr_length_1): Replace GET_CODE check with a
5013         dyn_cast, introducing local "seq" and the use of methods of
5014         rtx_sequence.
5015         (shorten_branches): Likewise, introducing local "body_seq".
5016         Strengthen local "inner_insn" from rtx to rtx_insn *.
5017         (reemit_insn_block_notes): Replace GET_CODE check with a
5018         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
5019         Use methods of rtx_sequence.
5020         (final_scan_insn): Likewise, introducing local "seq" for when
5021         "body" is known to be a SEQUENCE, using its methods.
5022
5023 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5024
5025         * except.c (can_throw_external): Strengthen local "seq" from rtx
5026         to rtx_sequence *.  Use methods of rtx_sequence.
5027         (insn_nothrow_p): Likewise.
5028
5029 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5030
5031         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
5032         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
5033         Use methods of rtx_sequence.
5034         (scan_trace): Likewise for local "pat".
5035
5036 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5037
5038         * coretypes.h (class rtx_sequence): Add forward declaration.
5039         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
5040         invariant: GET_CODE (X) == SEQUENCE.
5041         (is_a_helper <rtx_sequence *>::test): New.
5042         (is_a_helper <const rtx_sequence *>::test): New.
5043         (rtx_sequence::len): New.
5044         (rtx_sequence::element): New.
5045         (rtx_sequence::insn): New.
5046
5047 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5048
5049         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
5050         rtx_insn_list **.
5051         (alloc_INSN_LIST): Strengthen return type from rtx to
5052         rtx_insn_list *.
5053         (copy_INSN_LIST): Likewise for return type and param.
5054         (concat_INSN_LIST): Likewise for both params and return type.
5055         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
5056         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
5057         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
5058         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
5059
5060         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
5061         "implicit_sets", "control_uses", "clobbers" from rtx to
5062         rtx_insn_list *.
5063         (struct deps_desc): Likewise for fields "pending_read_insns",
5064         "pending_write_insns", "pending_jump_insns",
5065         "last_pending_memory_flush", "last_function_call",
5066         "last_function_call_may_noreturn", "sched_before_next_call",
5067         "sched_before_next_jump".
5068         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
5069         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
5070
5071         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
5072         from rtx to rtx_insn_list *.
5073         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
5074         rtx_insn_list *.
5075
5076         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
5077         to rtx_insn_list **.
5078         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
5079         rtx_insn_list *.
5080         (queue_insn): Likewise for local "link".
5081         (struct haifa_saved_data): Strengthen field "insn_queue" from
5082         rtx * to rtx_insn_list **.
5083         (save_backtrack_point): Update allocation of save->insn_queue to
5084         reflect the strengthening of elements from rtx to rtx_insn_list *.
5085         (queue_to_ready): Strengthen local "link" from rtx to
5086         rtx_insn_list *; use methods "next" and "insn" when traversing the
5087         list.
5088         (early_queue_to_ready): Likewise for locals "link", "next_link",
5089         "prev_link".
5090         (schedule_block): Update allocation of insn_queue to reflect the
5091         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
5092         local "link" from rtx to rtx_insn_list *, and use methods when
5093         working it.
5094         (add_to_speculative_block): Strengthen locals "twins" and
5095         "next_node" from rtx to rtx_insn_list *, and use methods when
5096         working with them.  Strengthen local "twin" from rtx to
5097         rtx_insn *, eliminating a checked cast.
5098         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
5099         from rtx to rtx_insn_list *, and use methods when working with
5100         them.
5101
5102         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
5103         from rtx to rtx_insn_list *, adding a checked cast.
5104         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
5105         rtx_insn_list **.
5106         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
5107         "newlink" from rtx to rtx_insn_list *.  Strengthen local
5108         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
5109         from rtx to rtx_insn *.
5110         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
5111         from rtx to rtx_insn_list *.  Use methods of the latter class.
5112         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
5113         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
5114         (remove_free_INSN_LIST_node): Strengthen return type and local
5115         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
5116         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
5117         rtx_insn_list *, using "insn" method.
5118
5119         * sched-deps.c (add_dependence_list):  Strengthen param "list"
5120         from rtx to rtx_insn_list *, and use methods when working with it.
5121         (add_dependence_list_and_free):  Strengthen param "listp" from
5122         rtx * to rtx_insn_list **.
5123         (remove_from_dependence_list): Strenghten param "listp" from rtx *
5124         to rtx_insn_list **, and use methods when working with *listp.
5125         (remove_from_both_dependence_lists): Strengthen param "listp" from
5126         rtx * to rtx_insn_list **
5127         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
5128         to rtx_insn_list **.  Eliminate local "link", in favor of two new
5129         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
5130         respectively.
5131         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
5132         by introducing local "cond_deps".
5133         (remove_from_deps): Strengthen param "insn" from rtx to
5134         rtx_insn *.
5135
5136         * sched-rgn.c (concat_insn_mem_list): Strengthen param
5137         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
5138         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
5139         Use methods of rtx_insn_list.
5140
5141         * store-motion.c (struct st_expr): Strengthen fields
5142         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
5143         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
5144         rtx_insn_list *.
5145         (find_moveable_store): Split out "tmp" into multiple more-tightly
5146         scoped locals.  Use methods of rtx_insn_list *.
5147         (compute_store_table): Strengthen local "tmp" from rtx to
5148         rtx_insn *.  Use methods of rtx_insn_list *.
5149
5150 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5151
5152         * coretypes.h (class rtx_insn_list): Add forward declaration.
5153         * rtl.h (class rtx_insn_list): New subclass of rtx_def
5154         (is_a_helper <rtx_insn_list *>::test): New.
5155         (rtx_insn_list::next): New.
5156         (rtx_insn_list::insn): New.
5157         (gen_rtx_INSN_LIST): Add prototype.
5158         * emit-rtl.c (gen_rtx_INSN_LIST): New.
5159         * gengenrtl.c (special_rtx): Add INSN_LIST.
5160
5161 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5162
5163         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
5164         "prev" from rtx to rtx_insn *.
5165
5166 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5167
5168         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
5169         functions.  Require merely an rtx for now, not an rtx_insn *.
5170         (BLOCK_FOR_INSN): Likewise.
5171         (INSN_LOCATION): Likewise.
5172         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
5173
5174 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5175
5176         * rtl.h (PATTERN): Convert this macro into a pair of inline
5177         functions, for now, requiring const_rtx and rtx.
5178
5179 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5180
5181         * target.def (unwind_emit): Strengthen param "insn" from rtx to
5182         rtx_insn *.
5183         (final_postscan_insn): Likewise.
5184         (adjust_cost): Likewise.
5185         (adjust_priority): Likewise.
5186         (variable_issue): Likewise.
5187         (macro_fusion_pair_p): Likewise.
5188         (dfa_post_cycle_insn): Likewise.
5189         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
5190         (first_cycle_multipass_issue): Likewise.
5191         (dfa_new_cycle): Likewise.
5192         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
5193         (speculate_insn): Likewise for param "insn".
5194         (gen_spec_check): Likewise for params "insn" and "label".
5195         (get_insn_spec_ds): Likewise for param "insn".
5196         (get_insn_checked_ds): Likewise.
5197         (dispatch_do): Likewise.
5198         (dispatch): Likewise.
5199         (cannot_copy_insn_p): Likewise.
5200         (invalid_within_doloop): Likewise.
5201         (legitimate_combined_insn): Likewise.
5202         (needed): Likewise.
5203         (after): Likewise.
5204
5205         * doc/tm.texi: Automatically updated to reflect changes to
5206         target.def.
5207
5208         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
5209         working with insn.
5210         (schedule_block): Likewise.
5211         (sched_init): Likewise.
5212         (sched_speculate_insn): Strengthen param "insn" from rtx to
5213         rtx_insn *.
5214         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
5215         working with insn.
5216         * hooks.c (hook_bool_rtx_true): Rename to...
5217         hook_bool_rtx_insn_true): ...this, and strengthen first param from
5218         rtx to rtx_insn *.
5219         (hook_constcharptr_const_rtx_null): Rename to...
5220         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
5221         first param from const_rtx to const rtx_insn *.
5222         (hook_bool_rtx_int_false): Rename to...
5223         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
5224         param from rtx to rtx_insn *.
5225         (hook_void_rtx_int): Rename to...
5226         (hook_void_rtx_insn_int): ...this, and strengthen first param from
5227         rtx to rtx_insn *.
5228
5229         * hooks.h (hook_bool_rtx_true): Rename to...
5230         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
5231         rtx to rtx_insn *.
5232         (hook_bool_rtx_int_false): Rename to...
5233         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
5234         param from rtx to rtx_insn *.
5235         (hook_void_rtx_int): Rename to...
5236         (hook_void_rtx_insn_int): ...this, and strengthen first param from
5237         rtx to rtx_insn *.
5238         (hook_constcharptr_const_rtx_null): Rename to...
5239         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
5240         first param from const_rtx to const rtx_insn *.
5241
5242         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
5243         and local "prev" from rtx to rtx_insn *.
5244
5245         * sched-int.h (sched_speculate_insn): Strengthen first param from
5246         rtx to rtx_insn *.
5247
5248         * sel-sched.c (create_speculation_check): Likewise for local "label".
5249         * targhooks.c (default_invalid_within_doloop): Strengthen param
5250         "insn" from const_rtx to const rtx_insn *.
5251         * targhooks.h (default_invalid_within_doloop): Strengthen param
5252         from const_rtx to const rtx_insn *.
5253
5254         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
5255         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
5256
5257         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
5258         "insn".
5259         (arc_invalid_within_doloop): Likewise, with const.
5260
5261         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
5262         (arm_cannot_copy_insn_p): Likewise for param "insn".
5263         (arm_unwind_emit): Likewise.
5264
5265         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
5266         "dep_insn".
5267
5268         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
5269         (c6x_variable_issue): Likewise.  Removed now-redundant checked
5270         cast.
5271         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
5272
5273         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
5274         Likewise for param "insn".
5275         (epiphany_mode_after): Likewise.
5276         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
5277         params "insn", "dep_insn".
5278         (epiphany_mode_needed): Likewise for param "insn".
5279         (epiphany_mode_after): Likewise.
5280
5281         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
5282         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
5283         (ix86_avx_u128_mode_needed): Likewise.
5284         (ix86_i387_mode_needed): Likewise.
5285         (ix86_mode_needed): Likewise.
5286         (ix86_avx_u128_mode_after): Likewise.
5287         (ix86_mode_after): Likewise.
5288         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
5289         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
5290         (ix86_adjust_priority): Likewise for param "insn".
5291         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
5292         (do_dispatch): Likewise.
5293         (has_dispatch): Likewise.
5294         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
5295
5296         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
5297         reflect renaming of default hook implementation from
5298         hook_constcharptr_const_rtx_null to
5299         hook_constcharptr_const_rtx_insn_null.
5300         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
5301         rtx to rtx_insn *.
5302         (ia64_variable_issue): Likewise for param "insn".
5303         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
5304         (ia64_dfa_new_cycle): Likewise.
5305         (ia64_get_insn_spec_ds): Likewise.
5306         (ia64_get_insn_checked_ds): Likewise.
5307         (ia64_speculate_insn): Likewise.
5308         (ia64_gen_spec_check): Likewise for params "insn", "label".
5309         (ia64_asm_unwind_emit): Likewise for param "insn".
5310
5311         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
5312
5313         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
5314         "insn", "def_insn".
5315         (m68k_sched_variable_issue): Likewise for param "insn".
5316
5317         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
5318         "def_insn".
5319
5320         * config/microblaze/microblaze.c (microblaze_adjust_cost):
5321         Likewise for params "insn", "dep".
5322
5323         * config/mips/mips.c (mips_adjust_cost): Likewise.
5324         (mips_variable_issue): Likewise for param "insn".
5325         (mips_final_postscan_insn): Likewise.
5326
5327         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
5328         for params "insn", "dep".
5329
5330         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
5331         "dep_insn".
5332         (pa_adjust_priority): Likewise for param "insn".
5333
5334         * config/picochip/picochip.c (picochip_sched_adjust_cost):
5335         Likewise for params "insn", "dep_insn".
5336
5337         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
5338         param "insn".
5339         (rs6000_variable_issue): Likewise.
5340         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
5341         (rs6000_debug_adjust_cost): Likewise.
5342         (rs6000_adjust_priority): Likewise for param "insn".
5343         (rs6000_use_sched_lookahead_guard): Likewise.
5344         (get_next_active_insn): Likewise for return type and both params.
5345         (redefine_groups): Likewise for params "prev_head_insn", "tail"
5346         and locals "insn", "next_insn".
5347         (pad_groups): Likewise.
5348
5349         * config/s390/s390.c (s390_adjust_priority): Likewise for param
5350         "insn".
5351         (s390_cannot_copy_insn_p): Likewise.
5352         (s390_sched_variable_issue): Likewise for third param, eliminating
5353         checked cast.
5354         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
5355         default hook implementation from hook_constcharptr_const_rtx_null
5356         to hook_constcharptr_const_rtx_insn_null.
5357
5358         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
5359         from rtx to rtx_insn *.
5360         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
5361         (sh_variable_issue): Likewise for param "insn".
5362         (sh_dfa_new_cycle): Likewise.
5363         (sh_mode_needed): Likewise.
5364         (sh_mode_after): Likewise.
5365
5366         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
5367         params "insn", "dep_insn".
5368         (hypersparc_adjust_cost): Likewise.
5369         (sparc_adjust_cost): Likewise.
5370
5371         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
5372         param, eliminated checked cast.
5373         (spu_sched_adjust_cost): Likewise for first and third params.
5374
5375         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
5376         params "insn" and "dep_insn" from rtx to rtx_insn *.
5377
5378         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
5379
5380 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5381
5382         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
5383         (set_is_load_p): ...this, updating to work on a SET pattern rather
5384         than an insn.
5385         (is_store_insn): Rename to...
5386         (set_is_store_p): ...this, updating to work on a SET pattern
5387         rather than an insn.
5388         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
5389         top of function to where it is needed.  Rewrite the bogus
5390         condition that checks for "insn" and "dep" being PARALLEL to
5391         instead use single_set, introducing locals "insn_set" and
5392         "dep_set".  Given that we only ever returned "cost" for a non-pair
5393         of SETs, bail out early if we don't have a pair of SET.
5394         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
5395         use the new locals "insn_set" and "dep_set", and update calls to
5396         is_load_insn and is_store_insn to be calls to set_is_load_p and
5397         set_is_store_p.
5398
5399 2014-08-27  Guozhi Wei  <carrot@google.com>
5400
5401         PR target/62262
5402         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
5403         amount before using it.
5404
5405 2014-08-27  Richard Biener  <rguenther@suse.de>
5406
5407         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
5408         get_maxval_strlen inside a more useful API.
5409         (gimple_fold_builtin_with_strlen): Remove and fold into ...
5410         (gimple_fold_builtin): ... caller.
5411         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
5412         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
5413         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
5414         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
5415         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
5416         gimple_fold_builtin_sprintf): Adjust to compute maxval
5417         themselves.
5418
5419 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
5420
5421         PR other/62248
5422         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
5423
5424 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5425             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5426             Anna Tikhonova  <anna.tikhonova@intel.com>
5427             Ilya Tocar  <ilya.tocar@intel.com>
5428             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5429             Ilya Verbin  <ilya.verbin@intel.com>
5430             Kirill Yukhin  <kirill.yukhin@intel.com>
5431             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5432
5433         * config/i386/sse.md
5434         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
5435         Use `concat_tg_mode' attribute to determine asm register size.
5436
5437 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5439             Anna Tikhonova  <anna.tikhonova@intel.com>
5440             Ilya Tocar  <ilya.tocar@intel.com>
5441             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5442             Ilya Verbin  <ilya.verbin@intel.com>
5443             Kirill Yukhin  <kirill.yukhin@intel.com>
5444             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5445
5446         * config/i386/sse.md
5447         (define_mode_iterator VI48_AVX512VL): New.
5448         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
5449         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
5450         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
5451         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5452         with VI1): Change mode iterator.
5453         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5454         with VI_ULOADSTORE_BW_AVX512VL): New.
5455         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5456         with VI_ULOADSTORE_F_AVX512VL): Ditto.
5457         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5458         with VI1): Change mode iterator.
5459         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5460         with VI_ULOADSTORE_BW_AVX512VL): New.
5461         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5462         with VI_ULOADSTORE_F_AVX512VL): Ditto.
5463         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5464         with VI1): Change mode iterator.
5465         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5466         with VI_ULOADSTORE_BW_AVX512VL): New.
5467         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5468         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
5469         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
5470         (define_insn "<avx512>_storedqu<mode>_mask" with
5471         VI48_AVX512VL): New.
5472         (define_insn "<avx512>_storedqu<mode>_mask" with
5473         VI12_AVX512VL): Ditto.
5474
5475 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5476             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5477             Anna Tikhonova  <anna.tikhonova@intel.com>
5478             Ilya Tocar  <ilya.tocar@intel.com>
5479             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5480             Ilya Verbin  <ilya.verbin@intel.com>
5481             Kirill Yukhin  <kirill.yukhin@intel.com>
5482             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5483
5484         * config/i386/sse.md
5485         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
5486         (define_mode_iterator VI48_AVX512BW): New.
5487         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
5488         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5489         with VI48_AVX2_48_AVX512F): New.
5490         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5491         with VI2_AVX512VL): Ditto.
5492
5493 2014-08-27  Richard Biener  <rguenther@suse.de>
5494
5495         PR middle-end/62239
5496         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
5497         (fold_builtin_3): Do not fold strcat_chk here.
5498         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
5499         from builtins.c.
5500         (gimple_fold_builtin): Fold strcat_chk here.
5501
5502 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
5503
5504         * dwarf2out.h (dwarf2out_decl): Remove prototype.
5505         * dwarf2out.c (dwarf2out_decl): Make static.
5506
5507 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
5508
5509         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
5510
5511 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5512
5513         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
5514         from rtx to rtx_insn *.
5515         (cselib_lookup_from_insn): Likewise for final param.
5516         (cselib_subst_to_values_from_insn): Likewise.
5517         (cselib_add_permanent_equiv): Likewise.
5518
5519         * cselib.c (cselib_current_insn): Likewise for this variable.
5520         (cselib_subst_to_values_from_insn): Likewise for param "insn".
5521         (cselib_lookup_from_insn): Likewise.
5522         (cselib_add_permanent_equiv): Likewise for param "insn" and local
5523         "save_cselib_current_insn".
5524         (cselib_process_insn): Replace use of NULL_RTX with NULL.
5525
5526         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
5527         from rtx to rtx_insn *.
5528
5529 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5530
5531         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
5532         rtx_insn *.
5533
5534 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5535
5536         * df.h (df_dump_insn_problem_function): Strengthen first param of
5537         this callback from const_rtx to const rtx_insn *.
5538         (struct df_insn_info): Strengthen field "insn" from rtx to
5539         rtx_insn *.
5540         (DF_REF_INSN): Eliminate this function, reinstating the older
5541         macro definition.
5542         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
5543         (df_reg_defined): Likewise.
5544         (df_find_use): Likewise.
5545         (df_reg_used): Likewise.
5546         (df_dump_insn_top): Strengthen param 1 from const_rtx to
5547         const rtx_insn *.
5548         (df_dump_insn_bottom): Likewise.
5549         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
5550         (df_insn_debug_regno): Likewise.
5551         (debug_df_insn): Likewise.
5552         (df_rd_simulate_one_insn): Likewise for param 2.
5553         (df_word_lr_simulate_defs): Likewise for param 1.
5554         (df_word_lr_simulate_uses): Likewise.
5555         (df_md_simulate_one_insn): Likewise for param 2.
5556         (df_simulate_find_noclobber_defs): Likewise for param 1.
5557         (df_simulate_find_defs): Likewise.
5558         (df_simulate_defs): Likewise.
5559         (df_simulate_uses): Likewise.
5560         (df_simulate_one_insn_backwards): Likewise for param 2.
5561         (df_simulate_one_insn_forwards): Likewise.
5562         (df_uses_create): Likewise for param 2.
5563         (df_insn_create_insn_record): Likewise for param 1.
5564         (df_insn_delete): Likewise.
5565         (df_insn_rescan): Likewise.
5566         (df_insn_rescan_debug_internal): Likewise.
5567         (df_insn_change_bb): Likewise.
5568         (df_notes_rescan): Likewise.
5569         * rtl.h (remove_death): Likewise for param 2.
5570         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
5571         const rtx_insn *.
5572         * sched-int.h (reemit_notes): Strengthen param from rtx to
5573         rtx_insn *.
5574         * valtrack.h (propagate_for_debug): Likewise for param 1.
5575
5576         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
5577         local "tmp_rtx" from const_rtx to const rtx_insn *.
5578         * combine.c (remove_death): Strengthen param "insn" from rtx to
5579         rtx_insn *.
5580         (move_deaths): Likewise for local "where_dead".
5581         * cse.c (delete_trivially_dead_insns): Introduce local
5582         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
5583         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
5584         rtx_insn *.
5585         (df_reg_defined): Likewise.
5586         (df_find_use): Likewise.
5587         (df_reg_used): Likewise.
5588         (df_dump_insn_problem_data): Strengthen param "insn" from
5589         const_rtx to const rtx_insn *.
5590         (df_dump_insn_top): Likewise.
5591         (df_dump_insn_bottom): Likewise.
5592         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
5593         (df_insn_debug_regno): Likewise.
5594         (debug_df_insn): Likewise.
5595         (DF_REF_INSN): Delete.
5596         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
5597         from rtx to rtx_insn *.
5598         (df_chain_insn_top_dump): Strengthen param "insn" from
5599         const_rtx to const rtx_insn *.
5600         (df_chain_insn_bottom_dump): Likewise.
5601         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
5602         rtx_insn *.
5603         (df_word_lr_simulate_uses): Likewise.
5604         (df_print_note): Likewise.
5605         (df_remove_dead_and_unused_notes): Likewise.
5606         (df_set_unused_notes_for_mw): Likewise.
5607         (df_set_dead_notes_for_mw): Likewise.
5608         (df_create_unused_note): Likewise.
5609         (df_simulate_find_defs): Likewise.
5610         (df_simulate_find_uses): Likewise.
5611         (df_simulate_find_noclobber_defs): Likewise.
5612         (df_simulate_defs): Likewise.
5613         (df_simulate_uses): Likewise.
5614         (df_simulate_one_insn_backwards): Likewise.
5615         (df_simulate_one_insn_forwards): Likewise.
5616         (df_md_simulate_one_insn): Likewise.
5617         * df-scan.c (df_uses_create): Likewise.
5618         (df_insn_create_insn_record): Likewise.
5619         (df_insn_delete): Likewise.
5620         (df_insn_rescan): Likewise.
5621         (df_insn_rescan_debug_internal): Likewise.
5622         (df_insn_change_bb): Likewise.
5623         (df_notes_rescan): Likewise.
5624         (df_refs_add_to_chains): Likewise.
5625         (df_insn_refs_verify): Likewise.
5626         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
5627         when invoking df_insn_delete.
5628         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
5629         (set_unique_reg_note): Add checked cast.
5630         * final.c (cleanup_subreg_operands): Likewise.
5631         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
5632         "insn" from rtx to rtx_insn *.
5633         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
5634         "last" from rtx to rtx_insn *.
5635         * ira-emit.c (change_regs_in_insn): New function.
5636         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
5637         Invoke change_regs_in_insn rather than change_regs.
5638         * ira.c (update_equiv_regs): Strengthen locals "insn",
5639         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
5640         for_each_rtx_in_insn rather than for_each_rtx.
5641         * recog.c (confirm_change_group): Add checked casts.
5642         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
5643         Add checked cast.
5644         (peep2_fill_buffer): Add checked cast.
5645         * rtlanal.c (remove_note): Likewise.
5646         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
5647         locals "next" "end" from rtx to rtx_insn *.
5648
5649 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5650
5651         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
5652         to rtx_insn *.
5653         (struct reg_use_data): Likewise for field "insn".
5654         (insn_cost): Likewise for param.
5655         (real_insn_for_shadow): Likewise for return type and param.
5656         (increase_insn_priority): Likewise for param 1.
5657         (debug_dependencies): Likewise for both params.
5658
5659         * haifa-sched.c (insn_delay): Likewise for param "insn".
5660         (real_insn_for_shadow): Likewise for return type and param "insn".
5661         (update_insn_after_change): Likewise for param "insn".
5662         (recompute_todo_spec): Likewise for param "next" and locals "pro",
5663         "other".
5664         (insn_cost): Likewise for param "insn".
5665         (increase_insn_priority): Likewise.
5666         (calculate_reg_deaths): Likewise.
5667         (setup_insn_reg_pressure_info): Likewise.
5668         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
5669         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
5670         (model_recompute): Likewise.
5671         (must_restore_pattern_p): Likewise for param "next".
5672         (model_excess_cost): Likewise for param "insn".
5673         (queue_remove): Likewise.
5674         (adjust_priority): Likewise for param "prev".
5675         (update_register_pressure): Likewise for param "insn".
5676         (setup_insn_max_reg_pressure): Likewise for local "insn".
5677         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
5678         (model_add_to_schedule): Likewise.
5679         (model_reset_queue_indices): Likewise for local "insn".
5680         (unschedule_insns_until): Strengthen local "recompute_vec" from
5681         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
5682         "con" from rtx to rtx_insn *.
5683         (restore_last_backtrack_point): Likewise for both locals "x". Add
5684         checked casts.
5685         (estimate_insn_tick): Likewise for param "insn".
5686         (commit_schedule): Likewise for params "prev_head", "tail" and
5687         local "x".
5688         (verify_shadows): Likewise for locals "i1", "i2".
5689         (dump_insn_stream): Likewise for params "head", "tail" and locals
5690         "next_tail", "insn".
5691         (schedule_block): Likewise for locals "insn", "x".  Add a checked
5692         cast.
5693         (fix_inter_tick): Likewise for params "head", "tail".
5694         (create_check_block_twin): Likewise for local "jump".
5695         (haifa_change_pattern): Likewise for param "insn".
5696         (haifa_speculate_insn): Likewise.
5697         (dump_new_block_header): Likewise for params "head", "tail".
5698         (fix_jump_move): Likewise for param "jump".
5699         (move_block_after_check): Likewise.
5700         (sched_init_insn_luid): Likewise for param "insn".
5701         (sched_init_luids): Likewise for local "insn".
5702         (insn_luid): Likewise for param "insn".
5703         (init_h_i_d): Likewise.
5704         (haifa_init_h_i_d): Likewise for local "insn".
5705         (haifa_init_insn): Likewise for param "insn".
5706         * sched-deps.c (add_dependence): Likewise for local "real_pro",
5707         "other".
5708         (create_insn_reg_use): Likewise for param "insn".
5709         (setup_insn_reg_uses): Likewise.  Add a checked cast.
5710         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5711         "tail" from rtx to rtx_insn *.
5712         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5713         "insn", "next_tail".
5714
5715 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5716
5717         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5718         from rtx to rtx_insn *.
5719         (model_add_to_schedule): Likewise for locals "start", "end",
5720         "iter".
5721
5722 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5723
5724         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5725         rtx_insn *.
5726         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
5727         "to" and locals "insn", "next", "copy".  Remove now-redundant
5728         checked cast.
5729
5730 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5731
5732         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5733         rtx_insn * and param 4 from rtx * to rtx_insn **.
5734         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5735         param 2 from rtx * to rtx_insn **.
5736
5737         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5738         rtx_insn * and final param from rtx * to rtx_insn **.
5739
5740         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5741         from rtx to rtx_insn *.
5742         (try_head_merge_bb): Likewise for both locals named "move_upto".
5743         * df-problems.c (can_move_insns_across): Likewise for params
5744         "from", "to", "across_from", "across_to" and locals "insn",
5745         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
5746         rtx_insn **.
5747         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5748         from rtx to rtx_insn *.
5749         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5750         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
5751         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5752         rtx_insn *.
5753         (noce_try_abs): Likewise.
5754         (noce_get_condition): Likewise for param "jump".  Strengthen param
5755         "earliest" from rtx * to rtx_insn **.
5756         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5757         rtx_insn *.
5758         (find_cond_trap): Likewise.
5759         (dead_or_predicable): Likewise for local "earliest".
5760         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
5761         checked cast.
5762         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5763         and local "prev".  Strengthen param "earliest" from rtx * to
5764         rtx_insn **.
5765         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5766         Strengthen param "earliest" from rtx * to rtx_insn **.
5767
5768 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5769
5770         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5771         "to" and local "insn" from rtx to rtx_insn *.
5772
5773 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5774
5775         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5776         from rtx to rtx_insn *.
5777         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5778         (code_motion_path_driver): Likewise for local "last_insn".
5779         (simplify_changed_insns): Likewise for local "insn".
5780
5781 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5782
5783         * rtl.h (push_to_sequence): Strengthen param from rtx to
5784         rtx_insn *.
5785         (push_to_sequence2): Likewise for both params.
5786         (delete_insns_since): Likewise for param.
5787         (reorder_insns_nobb): Likewise for all three params.
5788         (set_new_first_and_last_insn): Likewise for both params.
5789
5790         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5791         rtx_insn *.  Remove now-redundant cast.
5792         (set_last_insn): Likewise.
5793
5794         * builtins.c (expand_builtin_return): Strengthen local
5795         "call_fusage" from rtx to rtx_insn *.
5796         * cfgrtl.c (create_basic_block_structure): Likewise for local
5797         "after".
5798         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5799         "first", "last" and local "insn".
5800         (delete_insns_since): Likewise for param "from".
5801         (reorder_insns_nobb): Likewise for params "from", "to", "after"
5802         and local "x".
5803         (push_to_sequence): Likewise for param "first" and local "last".
5804         (push_to_sequence2): Likewise for params "first" and "last".
5805         * lra.c (emit_add3_insn): Likewise for local "last".
5806         (lra_emit_add): Likewise.
5807         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5808         "last_insn".
5809         (process_address_1): Likewise for locals "insn", last".
5810         * modulo-sched.c (ps_first_note): Likewise for return type.
5811         * optabs.c (expand_binop_directly): Likewise for param "last".
5812
5813 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5814
5815         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5816         to rtx_insn*.
5817         * emit-rtl.c (get_last_insn_anywhere): Likewise.
5818
5819 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5820
5821         * function.h (struct sequence_stack): Strengthen fields "first"
5822         and "last" from rtx to rtx_insn *.
5823         (struct emit_status): Likewise for fields "x_first_insn" and
5824         "x_last_insn".
5825
5826         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5827         (set_first_insn): Add checked cast.
5828         (get_last_insn): Remove now-redundant checked cast.
5829         (set_last_insn): Add checked cast.
5830
5831         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5832         "saved_first" and "saved_last" from rtx to rtx_insn *.
5833
5834 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5835
5836         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5837         (unlink_insn_chain): Strengthen both params from rtx to
5838         rtx_insn *.
5839
5840         * cfgrtl.c (cfg_layout_function_header): Likewise for this
5841         variable.
5842         (unlink_insn_chain): Likewise for params "first" and "last".
5843         Remove now-redundant checked cast.
5844         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5845         (fixup_reorder_chain): Strengthen local "insn" from rtx to
5846         rtx_insn *.
5847         * emit-rtl.c (link_insn_into_chain): Likewise for all three
5848         params.
5849         (add_insn): Likewise for param "insn" and local "prev".
5850         (add_insn_after_nobb): Likewise for both params and local "next".
5851         (add_insn_before_nobb): Likewise for both params and local "prev".
5852         (add_insn_after): Rename param "after" to "uncast_after",
5853         introducing local "after" with another checked cast.
5854         (add_insn_before): Rename params "insn" and "before", giving them
5855         "uncast_" prefixes, adding the old names back using checked casts.
5856         (emit_note_after): Likewise for param "after".
5857         (emit_note_before): Likewise for param "before".
5858         (emit_label): Add a checked cast.
5859
5860 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5861
5862         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
5863         "insn" from rtx to rtx_insn *.
5864
5865         * cselib.c (cselib_record_sets_hook): Likewise.
5866
5867         * var-tracking.c (add_with_sets): Likewise, renaming back from
5868         "uncast_insn" to "insn" and eliminating the checked cast from rtx
5869         to rtx_insn *.
5870
5871 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5872
5873         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5874         and "header_" from rtx to rtx_insn *.
5875         (struct basic_block_d): Likewise for field "head_" within "x"
5876         field of union basic_block_il_dependent.
5877         (BB_HEAD): Drop function...
5878         (SET_BB_HEAD): ...and this function in favor of...
5879         (BB_HEAD): ...reinstate macro.
5880         (BB_END): Drop function...
5881         (SET_BB_END): ...and this function in favor of...
5882         (BB_END): ...reinstate macro.
5883         (BB_HEADER): Drop function...
5884         (SET_BB_HEADER): ...and this function in favor of...
5885         (BB_HEADER): ...reinstate macro.
5886
5887         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5888         (fix_crossing_unconditional_branches): Likewise.
5889         * caller-save.c (save_call_clobbered_regs): Likewise.
5890         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5891         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5892         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5893         (merge_blocks_move_successor_nojumps): Likewise.
5894         (outgoing_edges_match): Update use of for_each_rtx to
5895         for_each_rtx_in_insn.
5896         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5897         (expand_gimple_cond): Likewise.
5898         (expand_gimple_tailcall): Likewise.
5899         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5900         SET_BB_END.
5901         (construct_exit_block): Drop use of SET_BB_END.
5902         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5903         rtx_insn *.
5904         (delete_insn): Rename param "insn" to "uncast_insn", introducing
5905         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
5906         SET_BB_HEAD and SET_BB_END.
5907         (create_basic_block_structure): Drop use of SET_BB_HEAD and
5908         SET_BB_END.
5909         (rtl_delete_block): Drop use of SET_BB_HEAD.
5910         (rtl_split_block): Drop use of SET_BB_END.
5911         (emit_nop_for_unique_locus_between): Likewise.
5912         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5913         (block_label): Drop use of SET_BB_HEAD.
5914         (fixup_abnormal_edges): Drop use of SET_BB_END.
5915         (record_effective_endpoints): Drop use of SET_BB_HEADER.
5916         (relink_block_chain): Likewise.
5917         (fixup_reorder_chain): Drop use of SET_BB_END.
5918         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5919         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5920         rtx_insn **.  Drop use of SET_BB_HEADER.
5921         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5922         SET_BB_HEAD.
5923         (BB_HEAD): Delete this function.
5924         (SET_BB_HEAD): Likewise.
5925         (BB_END): Likewise.
5926         (SET_BB_END): Likewise.
5927         (BB_HEADER): Likewise.
5928         (SET_BB_HEADER): Likewise.
5929         * emit-rtl.c (add_insn_after):  Rename param "insn" to
5930         "uncast_insn", adding a new local "insn" and a checked cast to
5931         rtx_insn *.  Drop use of SET_BB_END.
5932         (remove_insn): Strengthen locals "next" and "prev" from rtx to
5933         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
5934         (reorder_insns): Drop use of SET_BB_END.
5935         (emit_insn_after_1): Strengthen param "first" and locals "last",
5936         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
5937         (emit_pattern_after_noloc): Add checked cast.
5938         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5939         (restore_other_notes): Likewise.
5940         (move_insn): Likewise.
5941         (sched_extend_bb): Likewise.
5942         (fix_jump_move): Likewise.
5943         * ifcvt.c (noce_process_if_block): Likewise.
5944         (dead_or_predicable): Likewise.
5945         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5946         * reg-stack.c (change_stack): Drop use of SET_BB_END.
5947         * sel-sched-ir.c (sel_move_insn): Likewise.
5948         * sel-sched.c (move_nop_to_previous_block): Likewise.
5949
5950         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5951         SET_BB_END.
5952         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5953
5954 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5955
5956         * basic-block.h (create_basic_block_structure): Strengthen params
5957         1 "head" and 2 "end" from rtx to rtx_insn *.
5958         * cfgrtl.c (create_basic_block_structure): Likewise.
5959         (rtl_create_basic_block): Update casts from void * to rtx to
5960         rtx_insn *, so that we can pass them as rtx_insn * to
5961         create_basic_block_structure.
5962         * sel-sched-ir.c (sel_create_basic_block): Likewise.
5963
5964 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5965
5966         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5967         rtx_insn **.
5968         (check_for_inc_dec): Strengthen param "insn" from rtx to
5969         rtx_insn *.
5970
5971         * cselib.h (cselib_process_insn): Likewise.
5972
5973         * cselib.c (cselib_record_sets): Likewise.
5974         (cselib_process_insn): Likewise.
5975
5976         * dse.c (struct insn_info): Likewise for field "insn".
5977         (check_for_inc_dec_1): Likewise for local "insn".
5978         (check_for_inc_dec): Likewise for param "insn".
5979         (scan_insn): Likewise.
5980         (dse_step1): Likewise for local "insn".
5981
5982         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5983         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
5984
5985 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5986
5987         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5988         from rtx to rtx_insn *.
5989         (DEP_PRO): Delete this function and...
5990         (SET_DEP_PRO): ...this function in favor of...
5991         (DEP_PRO): ...reinstate this macro.
5992         (DEP_CON): Delete this function and...
5993         (SET_DEP_CON): ...this function in favor of...
5994         (DEP_CON): ...reinstate this old macro.
5995         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5996         (init_dep): Likewise.
5997         (set_priorities): Likewise for both params.
5998         (sd_copy_back_deps): Likewise for params 1 and 2.
5999
6000         * haifa-sched.c (priority): Likewise for param "insn" and local
6001         "next".
6002         (set_priorities): Likewise for params "head" and "tail" and local
6003         "insn".
6004         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
6005         local "consumer".
6006         (add_to_speculative_block): Add a checked cast.
6007         (create_check_block_twin): Drop use of SET_DEP_CON.
6008         (add_jump_dependencies): Strengthen params "insn" and "jump" from
6009         rtx to rtx_insn *.
6010
6011         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
6012         Drop use of SET_DEP_PRO
6013         (init_dep): Strengthen params "pro" and "con" from rtx to
6014         rtx_insn *.
6015         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
6016         use of SET_DEP_CON.
6017         (DEP_PRO): Delete.
6018         (DEP_CON): Delete.
6019         (SET_DEP_PRO): Delete.
6020         (SET_DEP_CON): Delete.
6021
6022 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6023
6024         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
6025         from rtx to rtx_insn *.
6026         (VINSN_INSN_RTX): Eliminate rvalue function and...
6027         (SET_VINSN_INSN): ...lvalue function in favor of...
6028         (VINSN_INSN_RTX): reinstate this old macro.
6029
6030         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
6031         in favor of VINSN_INSN_RTX.
6032         (VINSN_INSN_RTX): Delete this function.
6033         (SET_VINSN_INSN_RTX): Likewise.
6034
6035 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6036
6037         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
6038         (BND_TO): Delete this function and...
6039         (SET_BND_TO): ...this functions in favor of...
6040         (BND_TO): ...reinstating this macro.
6041         (struct _fence): Strengthen field "executing_insns" from
6042         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
6043         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
6044         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
6045         and param "insn" from rtx to insn_t.
6046         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
6047         rtx_insn *.
6048
6049         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
6050         vec<rtx_insn *> .
6051         (rtx_vec_t): Likewise.
6052         (struct sched_deps_info_def): Strengthen param of "start_insn"
6053         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
6054         "note_mem_dep" callback and first param of "note_dep" callback.
6055
6056         * haifa-sched.c (add_to_speculative_block): Strengthen param
6057         "insn" from rtx to rtx_insn *.
6058         (clear_priorities): Likewise.
6059         (calc_priorities): Likewise for local "insn".
6060
6061         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
6062         Remove redundant checked cast.
6063         (haifa_note_mem_dep): Likewise for param "pending_insn".
6064         (haifa_note_dep): Likewise for param "elem".
6065         (note_mem_dep): Likewise for param "e".
6066         (sched_analyze_1): Add checked casts.
6067         (sched_analyze_2): Likewise.
6068
6069         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
6070         from rtx to rtx_insn *.
6071         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
6072         from vec<rtx> * to vec<rtx_insn *> *.
6073
6074         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
6075         scaffolding.
6076         (flist_add): Strengthen param "executing_insns" from
6077         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
6078         (advance_deps_context): Remove now-redundant checked cast.
6079         (init_fences): Replace uses of NULL_RTX with NULL.
6080         (merge_fences): Strengthen params "last_scheduled_insn" and
6081         "sched_next" from rtx to rtx_insn * and "executing_insns" from
6082         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
6083         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
6084         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
6085         an instruction, rather than doing double-duty as a pattern.
6086         (return_nop_to_pool): Update for change of insn_t.
6087         (deps_init_id): Remove now-redundant checked cast.
6088         (struct sched_scan_info_def): Strengthen param of "init_insn"
6089         callback from rtx to insn_t.
6090         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
6091         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
6092         NULL.
6093         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
6094         "end" from rtx to rtx_insn *.
6095         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
6096         (rtx insn_rtx, bool force_unique_p)
6097         (BND_TO): Delete function.
6098         (SET_BND_TO): Delete function.
6099
6100         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
6101         rtx to rtx_insn *.
6102         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
6103         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
6104         rtx to rtx_insn *.
6105         (undo_transformations): Likewise for param "insn".
6106         (update_liveness_on_insn): Likewise.
6107         (compute_live_below_insn): Likewise for param "insn" and local
6108         "succ".
6109         (update_data_sets): Likewise for param "insn".
6110         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
6111         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
6112         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
6113         rtx_insn *.
6114         (move_cond_jump): Likewise for param "insn".
6115         (move_cond_jump): Drop use of SET_BND_TO.
6116         (compute_av_set_on_boundaries): Likewise.
6117         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
6118         (update_and_record_unavailable_insns): Strengthen local "bb_end"
6119         from rtx to rtx_insn *.
6120         (maybe_emit_renaming_copy): Likewise for param "insn".
6121         (maybe_emit_speculative_check): Likewise.
6122         (handle_emitting_transformations): Likewise.
6123         (remove_insn_from_stream): Likewise.
6124         (code_motion_process_successors): Strengthen local "succ" from rtx
6125         to insn_t.
6126
6127 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6128
6129         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
6130         ilist_t, not _xlist_t;
6131         (ILIST_INSN): Define in terms of new union field "insn".
6132         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
6133         _XLIST_NEXT.
6134         (struct _list_node): Add new field "insn" to the union, of type
6135         insn_t.
6136         (ilist_add): Replace macro with an inline function, requiring an
6137         insn_t.
6138         (ilist_remove): Define this macro directly in terms of
6139         _list_remove, rather than indirectly via _xlist_remove.
6140         (ilist_clear): Likewise, in terms of _list_clear rather than
6141         _xlist_clear.
6142         (ilist_is_in_p): Replace macro with an inline function, requiring
6143         an insn_t.
6144         (_list_iter_cond_insn): New function.
6145         (ilist_iter_remove): Define this macro directly in terms of
6146         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
6147         (ilist_iterator): Define directly in terms of _list_iterator
6148         rather than indirectly through _xlist_iterator.
6149         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
6150         than in terms of _FOR_EACH_X.
6151         (FOR_EACH_INSN_1): Likewise.
6152
6153 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
6154
6155         PR target/60606
6156         PR target/61330
6157         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
6158         DECL_HARD_REGISTER and return for invalid register specifications.
6159         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
6160         DECL_HARD_REGISTER, call expand_one_error_var.
6161         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
6162         CC_REGNUM with non-MODE_CC modes.
6163         (arm_regno_class): Return NO_REGS for PC_REGNUM.
6164
6165 2014-08-26  Marek Polacek  <polacek@redhat.com>
6166
6167         PR c/61271
6168         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
6169
6170 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
6171
6172         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
6173         qi cost; add di cost.
6174         (cortexa57_addrcost_table): Likewise.
6175
6176 2014-08-26  Marek Polacek  <polacek@redhat.com>
6177
6178         PR c/61271
6179         * expr.c (is_aligning_offset): Remove logical not.
6180
6181 2014-08-26  Marek Polacek  <polacek@redhat.com>
6182
6183         PR c/61271
6184         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
6185         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
6186
6187 2014-08-26  Richard Biener  <rguenther@suse.de>
6188
6189         PR tree-optimization/62175
6190         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6191         expand possibly trapping operations.
6192
6193 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6194
6195         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
6196         "insn" from rtx to rtx_insn *.
6197         (permute_load): Likewise for param "insn".
6198         (permute_store): Likewise.
6199         (handle_special_swappables): Likewise for local "insn".
6200         (replace_swap_with_copy): Likewise for locals "insn" and
6201         "new_insn".
6202         (rs6000_analyze_swaps): Likewise for local "insn".
6203
6204 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6205
6206         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
6207         to rtx_insn *.
6208
6209 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6210
6211         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
6212         "note_list" from rtx to rtx_insn *.
6213         (BB_NOTE_LIST): Replace this function and...
6214         (SET_BB_NOTE_LIST): ...this function with...
6215         (BB_NOTE_LIST): ...the former macro implementation.
6216
6217         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
6218         local "from_start" from rtx to rtx_insn *.  Strengthen param
6219         "to_endp" from rtx * to rtx_insn **.
6220
6221         * haifa-sched.c (concat_note_lists): Likewise.
6222         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
6223         BB_NOTE_LIST.
6224         (sel_restore_notes): Likewise.
6225         (move_bb_info): Likewise.
6226         (BB_NOTE_LIST): Delete this function.
6227         (SET_BB_NOTE_LIST): Delete this function.
6228         * sel-sched.c (create_block_for_bookkeeping): Eliminate
6229         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
6230
6231 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6232
6233         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
6234         from rtx * to rtx_insn **.
6235         (reorder2): Likewise.
6236         (dependencies_evaluation_hook): Strengthen params "head", "tail"
6237         from rtx to rtx_insn *.
6238
6239         * doc/tm.texi: Update mechanically for above change to target.def.
6240
6241         * sched-int.h (note_list): Strengthen this variable from rtx to
6242         rtx_insn *.
6243         (remove_notes): Likewise for both params.
6244         (restore_other_notes): Likewise for return type and first param.
6245         (struct ready_list): Strengthen field "vec" from rtx * to
6246         rtx_insn **.
6247         (struct dep_replacement): Strenghten field "insn" from rtx to
6248         rtx_insn *.
6249         (struct deps_desc): Likewise for fields "last_debug_insn",
6250         "last_args_size".
6251         (struct haifa_sched_info): Likewise for callback field
6252         "can_schedule_ready_p"'s param, for first param of "new_ready"
6253         callback field, for both params of "rank" callback field, for
6254         first field of "print_insn" callback field (with a const), for
6255         both params of "contributes_to_priority" callback, for param
6256         of "insn_finishes_block_p" callback, for fields "prev_head",
6257         "next_tail", "head", "tail", for first param of "add_remove_insn"
6258         callback, for first param of "begin_schedule_ready" callback, for
6259         both params of "begin_move_insn" callback, and for second param
6260         of "advance_target_bb" callback.
6261         (add_dependence): Likewise for params 1 and 2.
6262         (sched_analyze): Likewise for params 2 and 3.
6263         (deps_analyze_insn): Likewise for param 2.
6264         (ready_element): Likewise for return type.
6265         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6266         (try_ready): Strenghten param from rtx to rtx_insn *.
6267         (sched_emit_insn): Likewise for return type.
6268         (record_delay_slot_pair): Likewise for params 1 and 2.
6269         (add_delay_dependencies): Likewise for param.
6270         (contributes_to_priority): Likewise for both params.
6271         (find_modifiable_mems): Likewise.
6272
6273         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
6274         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
6275         "first_older_only_insn" from rtx to rtx_insn *.
6276         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
6277         rtx_insn **.
6278
6279         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
6280         "last_scheduled_iter0" from rtx to rtx_insn *.
6281         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
6282         (c6x_sched_reorder_1): Strengthen param "ready" and locals
6283         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
6284         "insn" from rtx to rtx_insn *.
6285         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
6286         rtx_insn **.
6287         (c6x_sched_reorder2): Strengthen param "ready" and locals
6288         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
6289         "insn" from rtx to rtx_insn *.
6290         (c6x_variable_issue):  Add a checked cast when assigning from insn
6291         to ss.last_scheduled_iter0.
6292         (split_delayed_branch): Strengthen param "insn" and local "i1"
6293         from rtx to rtx_insn *.
6294         (split_delayed_nonbranch): Likewise.
6295         (undo_split_delayed_nonbranch): Likewise for local "insn".
6296         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
6297         "entry_after", "end_packet", "head_insn", "tail_insn",
6298         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
6299         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
6300         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
6301         but add a checked cast on loop->start_label.  Consolidate calls to
6302         avoid assigning result of gen_spkernel to "insn", now an
6303         rtx_insn *.
6304
6305         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
6306         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
6307         rtx to rtx_insn *.
6308         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
6309         rtx_insn **.  Strengthen locals "top", "next" from rtx to
6310         rtx_insn *.
6311         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
6312         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
6313         (add_parameter_dependencies): Strengthen params "call", "head" and
6314         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
6315         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
6316         (add_dependee_for_func_arg): Likewise for param "arg" and local
6317         "insn".
6318         (ix86_dependencies_evaluation_hook): Likewise for params "head",
6319         "tail" and locals "insn", "first_arg".
6320
6321         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
6322         for params "head", "tail" and locals "insn", "next", "next_tail".
6323         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
6324         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
6325         "insn", "lowest", "highest" from rtx to rtx_insn *.
6326         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
6327         rtx_insn **.
6328         (ia64_sched_reorder2): Likewise.
6329
6330         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
6331         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
6332         from rtx * to rtx_insn **.
6333         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
6334         rtx_insn **.
6335         (mep_print_sched_insn): Strengthen param "insn" from rtx to
6336         rtx_insn *.
6337         (mep_sched_reorder): Strengthen param "ready" from rtx * to
6338         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
6339         to rtx_insn *.
6340
6341         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
6342         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
6343         to rtx_insn *.
6344         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
6345         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
6346         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
6347         rtx_insn **.
6348         (vr4130_reorder): Likewise.
6349         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
6350         rtx to rtx_insn *.
6351         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
6352         rtx_insn **.
6353         (mips_sched_reorder): Likewise.
6354         (mips_sched_reorder2): Likewise.
6355
6356         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
6357
6358         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
6359         Strengthen local "tmp" from rtx to rtx_insn *.
6360         (rs6000_sched_reorder2): Likewise.
6361
6362         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
6363         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
6364         (s390_sched_reorder): Strengthen param "ready" from rtx * to
6365         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
6366
6367         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
6368         "tmp2" from rtx to rtx_insn *.
6369         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
6370         Strengthen local "insn" from rtx to rtx_insn *.
6371         (ready_reorder): Strengthen param "ready" from rtx * to
6372         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
6373         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
6374         (sh_reorder2): Likewise.
6375
6376         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
6377         local "insn" from rtx to rtx_insn *.
6378
6379         * haifa-sched.c (note_list): Strengthen this variable from rtx to
6380         rtx_insn *.
6381         (scheduled_insns): Strengthen this variable from vec<rtx> to
6382         vec<rtx_insn *>.
6383         (set_modulo_params): Likewise for locals "i1", "i2".
6384         (record_delay_slot_pair): Likewise for params "i1", "i2".
6385         (add_delay_dependencies): Likewise for param "insn".
6386         (cond_clobbered_p): Likewise.
6387         (recompute_todo_spec): Likewise for local "prev".
6388         (last_scheduled_insn): Likewise for this variable.
6389         (nonscheduled_insns_begin): Likewise.
6390         (model_set_excess_costs): Strengthen param "insns" from rtx * to
6391         rtx_insn **.
6392         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
6393         rtx_insn *.
6394         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
6395         Strengthen local "insn" from rtx to rtx_insn *.
6396         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
6397         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6398         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
6399         (ready_remove_first): Likewise for return type and local "t".
6400         (ready_element): Likewise for return type.
6401         (ready_remove): Likewise for return type and local "t".
6402         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
6403         (check_clobbered_conditions): Strengthen local "x" from rtx to
6404         rtx_insn *, adding a checked cast.
6405         (schedule_insn): Likewise for param "insn".
6406         (remove_notes): Likewise for params "head", "tail" and locals
6407         "next_tail", "insn", "next".
6408         (struct haifa_saved_data): Likewise for fields
6409         "last_scheduled_insn", "nonscheduled_insns_begin".
6410         (save_backtrack_point): Update for change to field "vec" of
6411         struct ready_list.
6412         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
6413         rtx_insn **.
6414         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
6415         from rtx to rtx_insn *
6416         (resolve_dependencies): Strengthen param "insn" from rtx to
6417         rtx_insn *
6418         (restore_other_notes): Likewise for return type, for param "head"
6419         and local "note_head".
6420         (undo_all_replacements): Likewise for local "insn".
6421         (first_nonscheduled_insn): Likewise for return type and local "insn".
6422         (queue_to_ready): Likewise for local "insn", adding checked casts.
6423         (early_queue_to_ready): Likewise for local "insn".
6424         (debug_ready_list_1): Strengthen local "p" from rtx * to
6425         rtx_insn **.
6426         (move_insn): Strengthen param "insn" and local "note" from rtx to
6427         rtx_insn *
6428         (insn_finishes_cycle_p): Likewise for param "insn".
6429         (max_issue): Likewise for local "insn".
6430         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
6431         to rtx_insn **.
6432         (commit_schedule): Strengthen param "prev_head" and local "insn"
6433         from rtx to rtx_insn *
6434         (prune_ready_list): Likewise for local "insn".
6435         (schedule_block): Likewise for locals "prev_head", "head", "tail",
6436         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
6437         (set_priorities): Likewise for local "prev_head".
6438         (try_ready): Likewise for param "next".
6439         (fix_tick_ready): Likewise.
6440         (change_queue_index): Likewise.
6441         (sched_extend_ready_list): Update for change to field "vec" of
6442         struct ready_list.
6443         (generate_recovery_code): Strengthen param "insn" from rtx to
6444         rtx_insn *.
6445         (begin_speculative_block): Likewise.
6446         (create_check_block_twin): Likewise for param "insn" and locals
6447         "label", "check", "twin".  Introduce local "check_pat" to avoid
6448         "check" being used as a plain rtx before being used as an insn.
6449         (fix_recovery_deps): Add a checked cast to rtx_insn * when
6450         extracting elements from ready_list.
6451         (sched_remove_insn): Strengthen param "insn" from rtx to
6452         rtx_insn *.
6453         (sched_emit_insn): Likewise for return type.
6454         (ready_remove_first_dispatch): Likewise for return type and local
6455         "insn".
6456
6457         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
6458
6459         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
6460         const rtx_insn *.
6461
6462         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
6463         from rtx to rtx_insn *.
6464         (add_dependence_list): Likewise for param "insn".  Add a checked
6465         cast.
6466         (add_dependence_list_and_free): Strengthen param "insn" from rtx
6467         to rtx_insn *.  Strengthen param "list_p" from rtx * to
6468         rtx_insn **.
6469         (chain_to_prev_insn): Strengthen param "insn" and locals
6470         "prec_nonnote", "i" from rtx to rtx_insn *.
6471         (flush_pending_lists): Likewise for param "insn".
6472         (cur_insn): Likewise for this variable.
6473         (haifa_start_insn): Add a checked cast.
6474         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
6475         (sched_analyze_reg): Likewise for param "insn".
6476         (sched_analyze_1): Likewise.
6477         (sched_analyze_2): Likewise.  Add checked casts.
6478         (sched_analyze_insn): Likewise.  Also for local "prev".
6479         (deps_analyze_insn): Likewise for param "insn".
6480         (sched_analyze): Likewise for params "head", "tail" and local "insn".
6481         (add_dependence_1): Likewise for params "insn", "elem".
6482         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
6483         (parse_add_or_inc): Likewise for param "insn".
6484         (find_inc): Likewise for local "inc_cand".
6485         (find_modifiable_mems): Likewise for params "head", "tail" and
6486         locals "insn", "next_tail".
6487
6488         * sched-ebb.c (init_ready_list): Likewise for local "insn".
6489         (begin_schedule_ready): Likewise for param "insn".
6490         (begin_move_insn): Likewise for params "insn" and "last".
6491         (ebb_print_insn): Strengthen param "insn" from const_rtx to
6492         const rtx_insn *.
6493         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
6494         (ebb_contributes_to_priority): Likewise for params "next", "insn".
6495         (ebb_add_remove_insn): Likewise for param "insn".
6496         (advance_target_bb): Likewise.
6497
6498         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
6499         "insn".
6500         (check_live): Likewise for param "insn".
6501         (init_ready_list): Likewise for local "insn".
6502         (can_schedule_ready_p): Likewise for param "insn".
6503         (begin_schedule_ready): Likewise.
6504         (new_ready): Likewise for param "next".
6505         (rgn_print_insn): Likewise for param "insn".
6506         (rgn_rank): Likewise for params "insn1", "insn2".
6507         (contributes_to_priority): Likewise for params "next", "insn".
6508         (rgn_insn_finishes_block_p): Likewise for param "insn".
6509         (add_branch_dependences): Likewise for params "head", "tail" and
6510         locals "insn", "last".
6511         (rgn_add_remove_insn): Likewise for param "insn".
6512         (advance_target_bb): Likewise.
6513
6514         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
6515         const_rtx to const rtx_insn *.
6516
6517         * sel-sched-dump.h (sel_print_insn): Likewise.
6518
6519         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
6520         (deps_init_id): Likewise.
6521
6522         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
6523         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
6524         rtx_insn **.
6525
6526 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6527
6528         * output.h (final_start_function): Strengthen param 1 from rtx to
6529         rtx_insn *.
6530
6531         * final.c (final_start_function): Likewise, renaming back from
6532         "uncast_first" to "first", and dropping the checked cast from rtx
6533         to rtx_insn *.
6534
6535 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6536
6537         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
6538         * final.c (final): Likewise.  Rename param back from
6539         "uncast_first" to "first" and eliminate the checked cast from rtx
6540         to rtx_insn *.
6541
6542 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6543
6544         * output.h (shorten_branches): Strengthen param from rtx to
6545         rtx_insn *.
6546
6547         * final.c (shorten_branches): Likewise, renaming param back from
6548         "uncast_first" to "first", and dropping the checked cast from rtx
6549         to rtx_insn *.
6550
6551         * genattr.c (gen_attr): Likewise when writing out the prototype of
6552         shorten_branches.
6553
6554 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6555
6556         * sched-int.h (struct haifa_sched_info): Strengthen fields
6557         "prev_head" and "next_tail" from rtx to rtx_insn *.
6558
6559 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6560
6561         * rtl.h (rtx_jump_table_data::get_labels): New method.
6562         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
6563         with use of the new rtx_jump_table_data::get_labels method.
6564         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
6565         to rtx_jump_table_data *.  Simplify by using get_labels method.
6566         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
6567         a dyn_cast, introducing local "table", using it to replace
6568         label-lookup logic with a get_labels method call.
6569         (patch_jump_insn): Simplify using get_labels method.
6570         * dwarf2cfi.c (create_trace_edges): Likewise.
6571         * rtlanal.c (label_is_jump_target_p): Likewise.
6572
6573 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6574
6575         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
6576         to rtx_insn *.
6577
6578         * emit-rtl.c (unshare_all_rtl_1): Likewise.
6579         (unshare_all_rtl_again): Likewise, also for local "p".
6580
6581 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6582
6583         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
6584         to rtx_insn *.
6585         * cfgrtl.c (delete_insn_and_edges): Likewise.
6586
6587 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6588
6589         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
6590         from rtx to rtx_insn *.
6591
6592         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
6593
6594 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6595
6596         * function.c (thread_prologue_and_epilogue_insns): Likewise for
6597         locals "returnjump", "epilogue_end", "insn", "next".
6598
6599         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
6600         "returnjump" from rtx * to rtx_insn **.
6601         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
6602
6603 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6604
6605         * basic-block.h (struct edge_def). Strengthen "r" within
6606         union edge_def_insns from rtx to rtx_insn *.
6607
6608         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
6609         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
6610         rtx_insn *.
6611         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
6612         from rtx to rtx_insn *.
6613         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
6614         rtx_insn *.
6615         * postreload-gcse.c (reg_killed_on_edge): Likewise.
6616         (reg_used_on_edge): Likewise.
6617         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
6618         (gt_pch_nx): New overload for rtx_insn *&.
6619         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
6620         from rtx to rtx_insn *.
6621
6622 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6623
6624         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
6625         from rtx to rtx_insn *.
6626         (BB_FOOTER): Replace function with access macro.
6627         (SET_BB_FOOTER): Delete.
6628
6629         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
6630         with BB_FOOTER.
6631         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6632         (emit_barrier_after_bb): Likewise.
6633         (record_effective_endpoints): Likewise.
6634         (relink_block_chain): Likewise.
6635         (fixup_fallthru_exit_predecessor): Likewise.
6636         (cfg_layout_duplicate_bb): Likewise.
6637         (cfg_layout_split_block): Likewise.
6638         (cfg_layout_delete_block): Likewise.
6639         (cfg_layout_merge_blocks): Likewise.
6640         (BB_FOOTER): Delete function.
6641         (SET_BB_FOOTER): Delete function.
6642         * combine.c (update_cfg_for_uncondjump): Replace uses of
6643         SET_BB_FOOTER with BB_FOOTER.
6644
6645 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6646
6647         * except.h (struct eh_landing_pad_d): Strengthen field
6648         "landing_pad" from rtx to rtx_code_label *.
6649
6650         * except.c (sjlj_emit_dispatch_table): Likewise for param
6651         "dispatch_label"
6652         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
6653
6654 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6655
6656         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
6657         first param from rtx to rtx_insn *.
6658         * config/xtensa/xtensa.c (struct machine_function): Likewise for
6659         field "set_frame_ptr_insn".
6660         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
6661         "csend" from rtx to rtx_code_label *.
6662         (xtensa_expand_atomic): Likewise for local "csloop".
6663         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
6664         rtx_insn *.
6665         (xtensa_call_tls_desc): Likewise for return type and locals
6666         "call_insn", "insns".
6667         (xtensa_legitimize_tls_address): Likewise for local "insns".
6668         (xtensa_expand_prologue): Likewise for locals "insn", "first".
6669
6670 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6671
6672         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
6673         first param from rtx to rtx_insn *.
6674         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
6675         "insn".
6676
6677 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6678
6679         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
6680         Strengthen param 1 from rtx to rtx_insn *.
6681         (tilepro_output_cbranch): Likewise.
6682         (tilepro_adjust_insn_length): Likewise.
6683         (tilepro_final_prescan_insn): Likewise for sole param.
6684
6685         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
6686         Likewise for local "last".
6687         (cbranch_predicted_p): Likewise for param "insn".
6688         (tilepro_output_simple_cbranch_with_opcode): Likewise.
6689         (tilepro_output_cbranch_with_opcode): Likewise.
6690         (tilepro_output_cbranch): Likewise.
6691         (frame_emit_load): Likewise for return type and locals "seq",
6692         "insn".
6693         (emit_sp_adjust): Likewise for return type and local "insn".
6694         (tilepro_expand_epilogue): Likewise for locals "last_insn",
6695         "insn".
6696         (tilepro_adjust_insn_length): Likewise for param "insn".
6697         (next_insn_to_bundle): Likewise for return type and params
6698         "r", "end".
6699         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6700         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6701         local "new_insns".
6702         (match_addli_pcrel): Likewise for param "insn".
6703         (replace_addli_pcrel): Likewise.
6704         (match_auli_pcrel): Likewise.
6705         (replace_auli_pcrel): Likewise.
6706         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6707         "next_insn".
6708         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6709         "queue", "next_queue", "prev".
6710         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6711         (tilepro_final_prescan_insn): Likewise for param "insn".
6712
6713 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6714
6715         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6716         Strengthen param 1 from rtx to rtx_insn *.
6717         (tilegx_output_cbranch): Likewise.
6718         (tilegx_adjust_insn_length): Likewise.
6719         (tilegx_final_prescan_insn): Likewise for sole param.
6720
6721         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6722         or local "last".
6723         (cbranch_predicted_p): Likewise for param "insn".
6724         (tilegx_output_simple_cbranch_with_opcode): Likewise.
6725         (tilegx_output_cbranch_with_opcode): Likewise.
6726         (tilegx_output_cbranch): Likewise.
6727         (frame_emit_load): Likewise for return type.
6728         (set_frame_related_p): Likewise for locals "seq", "insn".
6729         (emit_sp_adjust): Likewise for return type, and for local "insn".
6730         Introduce local "pat" for use in place of "insn" where the latter
6731         isn't an instruction.
6732         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6733         from rtx to rtx_insn *.
6734         (tilegx_adjust_insn_length): Likewise for param "insn".
6735         (next_insn_to_bundle): Likewise for return type and params "r" and
6736         "end".
6737         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6738         "end".
6739         (replace_insns): Likewise for params "old_insn", "new_insns".
6740         (replace_mov_pcrel_step1): Likewise for param "insn" and local
6741         "new_insns".
6742         (replace_mov_pcrel_step2): Likewise.
6743         (replace_mov_pcrel_step3): Likewise.
6744         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6745         "next_insn".
6746         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6747         "queue", "next_queue", "prev".
6748         (tilegx_output_mi_thunk): Likewise for local "insn".
6749         (tilegx_final_prescan_insn): Likewise for param "insn".
6750
6751 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6752
6753         * config/spu/spu.c (frame_emit_store): Strengthen return type from
6754         rtx to rtx_insn *.
6755         (frame_emit_load): Likewise.
6756         (frame_emit_add_imm): Likewise, also for local "insn".
6757         (spu_expand_prologue): Likewise for local "insn".
6758         (struct spu_bb_info): Likewise for field "prop_jump".
6759         (emit_nop_for_insn): Likewise for param "insn" and local
6760         "new_insn".
6761         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6762         "hbr_insn".
6763         (spu_emit_branch_hint): Likewise for params "before", "branch" and
6764         locals "hint", "insn".
6765         (get_branch_target): Likewise for param "branch".
6766         (insn_clobbers_hbr): Likewise for param "insn".
6767         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6768         locals "insn", "before_4", "before_16".
6769         (insert_hbrp): Likewise for local "insn".
6770         (spu_machine_dependent_reorg): Likewise for locals "branch",
6771         "insn", "next", "bbend".
6772         (uses_ls_unit): Likewise for param "insn".
6773         (get_pipe): Likewise.
6774         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6775         introducing a checked cast.
6776         (spu_sched_adjust_cost): Likewise for params "insn" and
6777         "dep_insn".
6778         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6779         (spu_sms_res_mii): Likewise.
6780
6781 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6782
6783         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6784         from rtx to rtx_insn *.
6785         (output_cbranch): Likewise for param 6.
6786         (output_return): Likewise for param 1.
6787         (output_sibcall): Likewise.
6788         (output_v8plus_shift): Likewise.
6789         (output_v8plus_mult): Likewise.
6790         (output_v9branch): Likewise for param 7.
6791         (output_cbcond):  Likewise for param 3.
6792
6793         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6794         for local "insn".
6795         (sparc_legitimize_pic_address): Likewise.
6796         (sparc_emit_call_insn): Likewise.
6797         (emit_save_or_restore_regs): Likewise.
6798         (emit_window_save): Likewise for return type and local "insn".
6799         (sparc_expand_prologue): Likewise for local "insn".
6800         (sparc_flat_expand_prologue): Likewise.
6801         (output_return): Likewise for param "insn".
6802         (output_sibcall): Likewise for param "insn" and local "delay".
6803         (output_ubranch): Likewise for param "insn".
6804         (output_cbranch): Likewise.
6805         (output_cbcond): Likewise.
6806         (output_v9branch): Likewise.
6807         (output_v8plus_shift): Likewise.
6808         (sparc_output_mi_thunk): Likewise for local "insn".
6809         (get_some_local_dynamic_name): Likewise.
6810         (output_v8plus_mult): Likewise for param "insn".
6811
6812 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6813
6814         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6815         from rtx to rtx_insn *.
6816         (output_branchy_insn): Likewise for param 3.
6817         (output_far_jump): Likewise for param 1.
6818         (final_prescan_insn): Likewise.
6819         (sh_insn_length_adjustment): Likewise for sole param.
6820
6821         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6822         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6823         rtx_code_label *.
6824         (sh_emit_compare_and_set): Likewise for local "lab".
6825         (output_far_jump): Strengthen param "insn" and local "prev" from
6826         rtx to rtx_insn *.
6827         (output_branchy_insn): Likewise for param "insn" and local
6828         "next_insn".
6829         (output_ieee_ccmpeq): Likewise for param "insn".
6830         (struct label_ref_list_d): Strengthen field "label" from rtx to
6831         rtx_code_label *.
6832         (pool_node): Likewise.
6833         (pool_window_label): Likewise for this global.
6834         (add_constant): Likewise for return type and locals "lab", "new_rtx".
6835         (dump_table): Strengthen params "start", "barrier" and local
6836         "scan" from rtx to rtx_insn *.
6837         (broken_move): Likewise for param "insn".
6838         (untangle_mova): Likewise for params "first_mova" and "new_mova".
6839         Strengthen param "first_mova" from rtx * to rtx_insn **.
6840         (mova_p): Likewise for param "insn".
6841         (fixup_mova): Likewise for param "mova".
6842         (find_barrier): Likewise for return type, params "mova" and
6843         "from", and locals "barrier_before_mova", "found_barrier",
6844         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
6845         "label" from rtx to rtx_code_label *.
6846         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6847         rtx to rtx_insn *.
6848         (sh_reorg): Likewise for locals "link", "scan", "barrier".
6849         (split_branches): Likewise for param "first" and local "insn".
6850         (final_prescan_insn): Likewise for param "insn".
6851         (sequence_insn_p): Likewise for locals "prev", "next".
6852         (sh_insn_length_adjustment): Likewise for param "insn".
6853         (sh_can_redirect_branch): Likewise for local "insn".
6854         (find_r0_life_regions): Likewise for locals "end", "insn".
6855         (sh_output_mi_thunk): Likewise for local "insns".
6856
6857 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6858
6859         * config/score/score.c (score_output_mi_thunk): Strengthen local
6860         "insn" from rtx to rtx_insn *.
6861         (score_prologue): Likewise.
6862
6863 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6864
6865         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6866         1 from rtx to rtx_insn *.
6867         (s390_emit_jump): Likewise for return type.
6868         (s390_emit_call): Likewise.
6869         (s390_load_got): Likewise.
6870
6871         * config/s390/s390.c (last_scheduled_insn): Likewise for this
6872         variable.
6873         (s390_match_ccmode): Likewise for param "insn".
6874         (s390_emit_jump): Likewise for return type.
6875         (s390_split_branches): Likewise for local "label".
6876         (struct constant): Strengthen field "label" from rtx to
6877         rtx_code_label *.
6878         (struct constant_pool): Likewise for field "label".  Strengthen
6879         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6880         rtx_insn *.
6881         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6882         insns.
6883         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6884         (s390_end_pool): Likewise.
6885         (s390_dump_pool): Likewise for local "insn".
6886         (s390_mainpool_start): Likewise.
6887         (s390_chunkify_start): Likewise.
6888         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6889         with insns.  Strengthen locals "label", "jump", "barrier", "next",
6890         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6891         (s390_chunkify_finish): Strengthen local "insn" from rtx to
6892         rtx_insn *.
6893         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6894         "jump", "label", "next_insn".
6895         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6896         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6897         "tbegin_insn".
6898         (s390_load_got): Likewise for return type and local "insns".
6899         (s390_save_gprs_to_fprs): Likewise for local "insn".
6900         (s390_restore_gprs_from_fprs): Likewise.
6901         (pass_s390_early_mach::execute): Likewise.
6902         (s390_emit_prologue): Likewise for local "insns".
6903         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6904         rtx_code_label *.
6905         (s390_emit_call): Strengthen return type and local "insn" from
6906         rtx to rtx_insn *.
6907         (s390_emit_tpf_eh_return): Likewise for local "insn".
6908         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6909         "next_insn", introducing locals "s_pat", "rpat" to allow this.
6910         (s390_fix_long_loop_prediction): Likewise for param "insn" and
6911         local "cur_insn".
6912         (s390_non_addr_reg_read_p): Likewise for param "insn".
6913         (find_cond_jump): Likewise for return type and param "insn".
6914         (s390_swap_cmp): Likewise for param "insn".
6915         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6916         "prev_insn", "next_insn".
6917         (s390_reorg): Likewise for locals "insn", "target".
6918         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6919         (s390_sched_variable_issue): For now, rename param "insn" to
6920         "uncast_insn", introducing a checked cast.
6921         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6922         insn.
6923         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6924         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
6925
6926 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6927
6928         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6929         param from rtx to rtx_insn *.
6930         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6931
6932 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6933
6934         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6935         4 from rtx to rtx_insn *.
6936         (rs6000_final_prescan_insn): Likewise for first param.
6937         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6938         local "insn".
6939         (rs6000_get_some_local_dynamic_name): Likewise.
6940         (output_cbranch): Likewise for param "insn".
6941         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6942         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6943         (rs6000_emit_allocate_stack): Likewise for local "insn".
6944         (load_cr_save): Likewise.
6945         (restore_saved_cr): Likewise.
6946         (restore_saved_lr): Likewise.
6947         (emit_cfa_restores): Likewise.
6948         (rs6000_output_function_epilogue): Likewise for locals "insn" and
6949         "deleted_debug_label".
6950         (rs6000_output_mi_thunk): Likewise for local "insn".
6951         (rs6000_final_prescan_insn): Likewise for param "insn".
6952
6953 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6954
6955         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6956         Strengthen param "insn" from rtx to rtx_insn *.
6957         * config/picochip/picochip.c (picochip_current_prescan_insn):
6958         Likewise for this variable.
6959         (picochip_final_prescan_insn): Likewise for param "insn".
6960
6961 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6962
6963         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6964         from rtx to rtx_insn *.
6965         (pa_output_indirect_call): Likewise.
6966         (pa_adjust_insn_length): Likewise.
6967         (pa_attr_length_millicode_call): Likewise.
6968         (pa_attr_length_call): Likewise.
6969         (pa_attr_length_indirect_call): Likewise.
6970
6971         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6972         "insn".
6973         (pa_attr_length_millicode_call): Likewise.
6974         (pa_attr_length_call): Likewise.
6975         (pa_output_call): Likewise.
6976         (pa_attr_length_indirect_call): Likewise.
6977         (pa_output_indirect_call): Likewise.
6978
6979 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6980
6981         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6982         Strengthen first param from rtx to rtx_insn *.
6983         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6984         param "insn".
6985
6986 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6987
6988         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6989         type from rtx to rtx_insn *.
6990         (mips_expand_call): Likewise.
6991         (mips_adjust_insn_length): Likewise for first param.
6992         (mips_output_conditional_branch): Likewise.
6993         (mips_output_order_conditional_branch): Likewise.
6994         (mips_final_prescan_insn): Likewise.
6995
6996         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6997         rtx_insn * for the SEQUENCE case.
6998         (SEQ_END): Likewise.
6999         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
7000         (mips_emit_call_insn): Likewise, also for local "insn".
7001         (mips16_gp_pseudo_reg): Likewise for local "scan".
7002         (mips16_build_call_stub): Likewise for return type and for local
7003         "insn".  Introduce a new local "pattern" so that "insn" can indeed
7004         be an insn.
7005         (mips_expand_call): Strengthen return type and local "insn" from
7006         rtx to rtx_insn *.
7007         (mips_block_move_loop): Strengthen local "label" from rtx to
7008         rtx_code_label *.
7009         (mips_expand_synci_loop): Likewise for locals "label",
7010         "end_label".
7011         (mips_set_frame_expr): Strengthen local "insn" from rtx to
7012         rtx_insn *.
7013         (mips16e_collect_argument_saves): Likewise for locals "insn",
7014         "next".
7015         (mips_find_gp_ref): Likewise for param of callback for "pred"
7016         param, and for local "insn".
7017         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
7018         (mips_insn_has_flexible_gp_ref_p): Likewise.
7019         (mips_epilogue_emit_cfa_restores): Likewise for return type and
7020         local "insn".
7021         (mips_epilogue_set_cfa): Likewise for local "insn".
7022         (mips_expand_epilogue): Likewise.
7023         (mips_adjust_insn_length): Likewise for param "insn".
7024         (mips_output_conditional_branch): Likewise.
7025         (mips_output_order_conditional_branch): Likewise.
7026         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
7027         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
7028         "falu2_turn_enabled_insn".
7029         (mips_builtin_branch_and_move): Strengthen locals "true_label",
7030         "done_label" from rtx to rtx_code_label *.
7031         (struct mips16_constant): Likewise for field "label".
7032         (mips16_add_constant): Likewise for return type.
7033         (mips16_emit_constants_1): Strengthen return type and param "insn"
7034         from rtx to rtx_insn *.
7035         (mips16_emit_constants): Likewise for param "insn".
7036         (mips16_insn_length): Likewise.
7037         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
7038         to rtx_code_label *.
7039         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
7040         from rtx to rtx_insn *.
7041         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
7042         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
7043         (r10k_simplify_address): Strengthen param "insn" and local
7044         "def_insn" from rtx to rtx_insn *.
7045         (r10k_safe_address_p): Strengthen param "insn" from rtx to
7046         rtx_insn *.
7047         (r10k_needs_protection_p_1): Update target type of cast of data
7048         from to rtx to rtx_insn *.
7049         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
7050         rtx * to rtx_insn **.
7051         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
7052         rtx_insn *.
7053         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
7054         (mips_call_expr_from_insn): Likewise for param "insn".
7055         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
7056         (mips_find_pic_call_symbol): Likewise for param "insn".
7057         (mips_annotate_pic_calls): Likewise for local "insn".
7058         (mips_sim_insn): Likewise for this variable.
7059         (struct mips_sim): Likewise for field "insn" within elements of
7060         last_set array.
7061         (mips_sim_wait_reg): Likewise for param "insn".
7062         (mips_sim_wait_regs): Likewise.
7063         (mips_sim_wait_units): Likewise.
7064         (mips_sim_wait_insn): Likewise.
7065         (mips_sim_issue_insn): Likewise.
7066         (mips_sim_finish_insn): Likewise.
7067         (mips_seq_time): Likewise for param "seq" and local "insn".
7068         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
7069         locals "first", "second".
7070         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
7071         "last", "last2", "next".
7072         (mips_avoid_hazard): Likewise for params "after", "insn".
7073         (mips_reorg_process_insns): Likewise for locals "insn",
7074         "last_insn", "subinsn", "next_insn".
7075         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
7076         (mips16_split_long_branches): Likewise for locals "insn" "jump",
7077         "jump_sequence".
7078         (mips_output_mi_thunk): Likewise for local "insn".
7079         (mips_final_prescan_insn): Likewise for param "insn".
7080
7081 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7082
7083         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
7084         Strengthen return type and local "insns" from rtx to rtx_insn *.
7085         (microblaze_legitimize_tls_address): Likewise for local "insns".
7086         (microblaze_block_move_loop): Strengthen local "label" from rtx
7087         to rtx_code_label *.
7088         (microblaze_expand_prologue): Strengthen two locals named "insn"
7089         from rtx to rtx_insn *.
7090         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
7091         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
7092         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
7093         to rtx_code_label *.
7094
7095 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7096
7097         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
7098         param from rtx to rtx_insn *.
7099         (mep_reuse_lo): Likewise for third param.
7100         (mep_use_post_modify_p): Likewise for first param.
7101         (mep_core_address_length): Likewise.
7102         (mep_cop_address_length): Likewise.
7103         (mep_final_prescan_insn): Likewise.
7104         (mep_store_data_bypass_p): Likewise for both params.
7105         (mep_mul_hilo_bypass_p): Likewise.
7106         (mep_ipipe_ldc_p): Likewise for param.
7107
7108         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
7109         (mep_rewrite_mult): Likewise.
7110         (mep_rewrite_mulsi3): Likewise.
7111         (mep_rewrite_maddsi3): Likewise.
7112         (mep_reuse_lo_p_1): Likewise.
7113         (mep_reuse_lo_p): Likewise.
7114         (mep_frame_expr): Likewise.
7115         (mep_make_parallel): Likewise for both params.
7116         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
7117         local "insn".
7118         (mep_use_post_modify_p): Likewise for param "insn".
7119         (mep_core_address_length): Likewise.
7120         (mep_cop_address_length): Likewise.
7121         (mep_reg_set_in_function): Likewise for local "insn".
7122         (mep_asm_without_operands_p): Likewise.
7123         (F): Likewise for return type and param "x".
7124         (add_constant): Likewise for local "insn".
7125         (maybe_dead_move): Likewise for return type and local "insn".
7126         (mep_expand_prologue): Likewise for local "insn".
7127         (mep_final_prescan_insn): Likewise for param "insn".
7128         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
7129         "next", "follow", "x".
7130         (mep_insert_repeat_label_last): Likewise for return type, param
7131         "last_insn", and locals "next", "prev".  Strengthen param "label"
7132         from rtx to rtx_code_label *.
7133         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
7134         rtx_insn *.
7135         (struct mep_doloop_end): Likewise for fields "insn" and
7136         "fallthrough".
7137         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
7138         Strengthen local "repeat_label" from rtx to rtx_code_label *.
7139         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
7140         rtx_insn *.
7141         (mep_invert_branch): Likewise for params "insn" and "after".
7142         (mep_reorg_erepeat): Likewise for param "insns" and locals
7143         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
7144         "l" from rtx to rtx_code_label *.
7145         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
7146         from rtx to rtx_insn *.
7147         (mep_reorg_addcombine): Likewise for param "insns" and locals
7148         "i", "n".
7149         (add_sp_insn_p): Likewise for param "insn".
7150         (mep_reorg_noframe): Likewise for param "insns" and locals
7151         "start_frame_insn", "end_frame_insn", "next".
7152         (mep_reorg): Likewise for local "insns".
7153         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
7154         cast.
7155         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
7156         (mep_mul_hilo_bypass_p): Likewise.
7157         (mep_ipipe_ldc_p): Likewise for param "insn".
7158         (mep_make_bundle): Likewise for return type, param "cop" and local
7159         "insn", splitting out the latter into a new local "seq" for when it
7160         is a SEQUENCE rather than an insn.
7161         (core_insn_p): Likewise for param "insn".
7162         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
7163         "last", "first", "note", "prev", "core_insn".
7164
7165 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7166
7167         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
7168         rtx to rtx_insn *.
7169         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
7170         (m68k_final_prescan_insn): Likewise for first param.
7171
7172         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
7173         (m68k_set_frame_related): Likewise for param "insn".
7174         (output_btst): Likewise for param "insn".
7175         (m68k_final_prescan_insn): Likewise.
7176         (m68k_move_to_reg): Likewise for local "insn".
7177         (m68k_call_tls_get_addr): Likewise for local "insns".
7178         (m68k_call_m68k_read_tp): Likewise.
7179         (strict_low_part_peephole_ok): Likewise for param "first_insn".
7180         (m68k_output_mi_thunk): Likewise for local "insn".
7181
7182 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7183
7184         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
7185         first param from rtx to rtx_insn *.
7186         (iq2000_adjust_insn_length): Likewise.
7187         (iq2000_output_conditional_branch): Likewise.
7188         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
7189         "insn" and local "nop_insn".
7190         (iq2000_annotate_frame_insn): Likewise for param "insn".
7191         (iq2000_expand_prologue): Likewise for both locals "insn".
7192         (iq2000_adjust_insn_length): Likewise for param "insn".
7193         (iq2000_output_conditional_branch): Likewise.
7194
7195 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7196
7197         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
7198         "insns" from rtx to rtx_insn *.
7199         (ia64_emit_cond_move): Likewise for locals "insn", "first".
7200         (struct spill_fill_data): Likewise for field "init_after" and for
7201         elements of array field "prev_insn".
7202         (spill_restore_mem): Likewise for locals "insn", "first".
7203         (do_spill): Likewise for local "insn".
7204         (do_restore): Likewise.
7205         (ia64_expand_prologue): Likewise.
7206         (ia64_expand_epilogue): Likewise.
7207         (emit_insn_group_barriers): Likewise for locals "insn",
7208         "last_label".
7209         (emit_all_insn_group_barriers): Likewise for locals "insn",
7210         "last".
7211         (dfa_stop_insn): Likewise for this global.
7212         (dfa_pre_cycle_insn): Likewise.
7213         (ia64_nop): Likewise.
7214         (final_emit_insn_group_barriers): Likewise for locals "insn",
7215         "last".
7216         (emit_predicate_relation_info): Likewise for locals "head", "n",
7217         "insn", "b", "a".
7218         (ia64_reorg): Likewise for local "insn".
7219         (ia64_output_mi_thunk): Likewise.
7220         (expand_vec_perm_interleave_2): Likewise for local "seq".
7221
7222 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7223
7224         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
7225         param 1 "insn" from rtx to rtx_insn *.
7226         (ix86_use_lea_for_mov): Likewise.
7227         (ix86_avoid_lea_for_addr): Likewise.
7228         (ix86_split_lea_for_addr): Likewise.
7229         (ix86_lea_for_add_ok): Likewise.
7230         (ix86_output_call_insn): Likewise.
7231
7232         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
7233         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
7234         (ix86_output_function_epilogue): Likewise for locals "insn",
7235         "deleted_debug_label".
7236         (legitimize_tls_address): Likewise for local "insn".
7237         (get_some_local_dynamic_name): Likewise.
7238         (increase_distance): Likewise for params "prev", "next".
7239         (distance_non_agu_define_in_bb): Likewise for params "insn",
7240         "start" and locals "prev", "next".
7241         (distance_non_agu_define): Likewise for param "insn".
7242         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
7243         locals "next", "prev".
7244         (distance_agu_use): Likewise for param "insn".
7245         (ix86_lea_outperforms): Likewise.
7246         (ix86_ok_to_clobber_flags): Likewise.
7247         (ix86_avoid_lea_for_add): Likewise.
7248         (ix86_use_lea_for_mov): Likewise.
7249         (ix86_avoid_lea_for_addr): Likewise.
7250         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
7251         (ix86_split_lea_for_addr): Likewise for param "insn".
7252         (ix86_lea_for_add_ok): Likewise for param "insn".
7253         (ix86_expand_carry_flag_compare): Likewise for local
7254         "compare_seq".
7255         (ix86_expand_int_movcc): Likewise.
7256         (ix86_output_call_insn): Likewise for param "insn".
7257         (ix86_output_call_insn): Likewise for local "i".
7258         (x86_output_mi_thunk): Introduce local "insn", using it in place
7259         of "tmp" when dealing with insns.
7260         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
7261         "start".
7262         (ix86_pad_returns): Likewise for locals "ret", "prev".
7263         (ix86_count_insn_bb): Likewise for local "insn".
7264         (ix86_pad_short_function): Likewise for locals "ret", "insn".
7265         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
7266         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
7267         (expand_vec_perm_interleave2): Likewise for local "seq".
7268         (expand_vec_perm_vperm2f128_vblend): Likewise.
7269         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
7270         call to for_each_rtx with for_each_rtx_in_insn.
7271
7272 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7273
7274         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
7275         "label" from rtx to rtx_code_label *.
7276         (ix86_expand_prologue): Likewise.
7277         (ix86_expand_split_stack_prologue): Likewise for locals "label",
7278         "varargs_label".
7279         (ix86_split_idivmod): Likewise for locals "end_label" and
7280         "qimode_label".
7281         (ix86_expand_branch): Likewise for local "label2".
7282         (ix86_expand_aligntest): Likewise for return type and local "label".
7283         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
7284         "top_label".
7285         (expand_movmem_epilogue): Likewise for the various locals named
7286         "label".
7287         (expand_setmem_epilogue): Likewise.
7288         (expand_small_movmem_or_setmem): Likewise for local "label".
7289         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7290         Strengthen param "done_label" from rtx * to rtx_code_label **.
7291         Strengthen locals "loop_label" and "label" from rtx to
7292         rtx_code_label *.
7293         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7294         Likewise for locals "loop_label", "label".
7295         (ix86_expand_set_or_movmem): Likewise for locals "label",
7296         "jump_around_label", "hot_label".
7297         (ix86_expand_strlensi_unroll_1): Likewise for locals
7298         "align_2_label", align_3_label", "align_4_label", "end_0_label",
7299         "end_2_label".
7300         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
7301         (void ix86_emit_i387_log1p): Likewise for locals "label1",
7302         "label2", "jump_label".
7303         (ix86_expand_sse_compare_and_jump): Likewise for return type and
7304         local "label".
7305         (ix86_expand_lfloorceil): Likewise for local "label".
7306         (ix86_expand_rint): Likewise.
7307         (ix86_expand_floorceildf_32): Likewise.
7308         (ix86_expand_floorceil): Likewise.
7309         (ix86_expand_rounddf_32): Likewise.
7310         (ix86_expand_trunc): Likewise.
7311         (ix86_expand_truncdf_32): Likewise.
7312         (ix86_expand_round): Likewise.
7313
7314 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7315
7316         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
7317         first param from rtx to rtx_insn *.
7318         (h8300_insn_length_from_table): Likewise.
7319         * config/h8300/h8300.c (F): Likewise for return type and param
7320         "x".
7321         (Fpa): Add a checked cast to rtx_insn *.
7322         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
7323         rtx_insn *.
7324         (final_prescan_insn): Likewise for param "insn".
7325         (h8300_binary_length): Likewise.
7326         (h8300_insn_length_from_table): Likewise.
7327
7328 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7329
7330         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
7331         Strengthen first param "insn" from rtx to rtx_insn *.
7332
7333         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
7334         Likewise.
7335         (frame_insn): Likewise for return type.  Introduce local "insn"
7336         for use in place of local "x" for use as an rtx_insn *.
7337         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
7338         (epiphany_expand_prologue): Likewise for local "insn".
7339         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
7340         * config/epiphany/resolve-sw-modes.c
7341         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
7342         "seq".
7343
7344 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7345
7346         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
7347         param from rtx to rtx_insn *.
7348         (c6x_final_prescan_insn): Likewise for first param.
7349
7350         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
7351         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
7352         (c6x_expand_compare): Strengthen local "insns" from rtx to
7353         rtx_insn *.
7354         (c6x_get_unit_specifier): Likewise for param "insn".
7355         (c6x_print_unit_specifier_field): Likewise.
7356         (c6x_final_prescan_insn): Likewise.
7357         (emit_add_sp_const): Likewise for local "insn".
7358         (c6x_expand_prologue): Likewise.
7359
7360 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7361
7362         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
7363         param 1 from rtx to rtx_insn *.
7364         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
7365         the various locals named "insn".
7366         (expand_epilogue_reg_restore): Likewise.
7367         (frame_related_constant_load): Likewise.
7368         (add_to_reg): Likewise.
7369         (emit_link_insn): Likewise.
7370         (do_link): Likewise.
7371         (expand_interrupt_handler_prologue): Likewise.
7372         (branch_dest): Likewise for param "branch".
7373         (asm_conditional_branch): Likewise for param "insn".
7374         (gen_one_bundle): Likewise for elements of param "slot" and local
7375         "t".
7376         (bfin_gen_bundles): Likewise for locals "insn", "next" and
7377         elements of local "slot".
7378         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7379         "queue", "next_queue", "prev".
7380         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
7381         (add_sched_insns_for_speculation): Likewise for local "insn".
7382
7383 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7384
7385         * config/avr/avr-protos.h (output_movqi): Strengthen first param
7386         from rtx to rtx_insn *.
7387         (output_movhi): Likewise.
7388         (output_movsisf): Likewise.
7389         (avr_out_tstsi): Likewise.
7390         (avr_out_tsthi): Likewise.
7391         (avr_out_tstpsi): Likewise.
7392         (avr_out_compare): Likewise.
7393         (avr_out_compare64): Likewise.
7394         (avr_out_movpsi): Likewise.
7395         (ashlqi3_out): Likewise.
7396         (ashlhi3_out): Likewise.
7397         (ashlsi3_out): Likewise.
7398         (ashrqi3_out): Likewise.
7399         (ashrhi3_out): Likewise.
7400         (ashrsi3_out): Likewise.
7401         (lshrqi3_out): Likewise.
7402         (lshrhi3_out): Likewise.
7403         (lshrsi3_out): Likewise.
7404         (avr_out_ashlpsi3): Likewise.
7405         (avr_out_ashrpsi3): Likewise.
7406         (avr_out_lshrpsi3): Likewise.
7407         (avr_out_fract): Likewise.
7408         (avr_out_sbxx_branch): Likewise.
7409         (avr_out_round): Likewise.
7410         (avr_out_xload): Likewise.
7411         (avr_out_movmem): Likewise.
7412         (adjust_insn_length): Likewise.
7413         (avr_out_lpm): Likewise.
7414         (reg_unused_after): Likewise.
7415         (_reg_unused_after): Likewise.
7416         (avr_jump_mode): Likewise for second param.
7417         (jump_over_one_insn): Likewise for first param.
7418         (avr_final_prescan_insn): Likewise.
7419         (out_shift_with_cnt): Likewise for second param.
7420
7421         * config/avr/avr.c (get_sequence_length): Likewise for param
7422         "insns" and local "insn".
7423         (emit_push_byte): Likewise for local "insn".
7424         (emit_push_sfr): Likewise.
7425         (avr_prologue_setup_frame): Likewise for locals "insn",
7426         "fp_plus_insns", "sp_plus_insns".
7427         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
7428         "sp_plus_insns".
7429         (avr_jump_mode): Likewise for param "insn".
7430         (avr_final_prescan_insn): Likewise.
7431         (avr_find_unused_d_reg): Likewise.
7432         (avr_out_lpm_no_lpmx): Likewise.
7433         (avr_out_lpm): Likewise.
7434         (avr_out_xload): Likewise.
7435         (output_movqi): Likewise.
7436         (output_movhi): Likewise.
7437         (out_movqi_r_mr): Likewise.
7438         (out_movhi_r_mr): Likewise.
7439         (out_movsi_r_mr): Likewise.
7440         (out_movsi_mr_r): Likewise.
7441         (output_movsisf): Likewise.
7442         (avr_out_load_psi): Likewise.
7443         (avr_out_store_psi): Likewise.
7444         (avr_out_movpsi): Likewise.
7445         (out_movqi_mr_r): Likewise.
7446         (avr_out_movhi_mr_r_xmega): Likewise.
7447         (out_movhi_mr_r): Likewise.
7448         (compare_condition): Likewise for param "insn" and local "next".
7449         (compare_sign_p): Likewise for param "insn".
7450         (compare_diff_p): Likewise.
7451         (compare_eq_p): Likewise.
7452         (avr_out_compare): Likewise.
7453         (avr_out_compare64): Likewise.
7454         (avr_out_tsthi): Likewise.
7455         (avr_out_tstpsi): Likewise.
7456         (avr_out_tstsi): Likewise.
7457         (out_shift_with_cnt): Likewise.
7458         (ashlqi3_out): Likewise.
7459         (ashlhi3_out): Likewise.
7460         (avr_out_ashlpsi3): Likewise.
7461         (ashlsi3_out): Likewise.
7462         (ashrqi3_out): Likewise.
7463         (ashrhi3_out): Likewise.
7464         (avr_out_ashrpsi3): Likewise.
7465         (ashrsi3_out): Likewise.
7466         (lshrqi3_out): Likewise.
7467         (lshrhi3_out): Likewise.
7468         (avr_out_lshrpsi3): Likewise.
7469         (lshrsi3_out): Likewise.
7470         (avr_out_fract): Likewise.
7471         (avr_out_round): Likewise.
7472         (avr_adjust_insn_length): Likewise.
7473         (reg_unused_after): Likewise.
7474         (_reg_unused_after): Likewise.
7475         (avr_compare_pattern): Likewise.
7476         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
7477         and locals "branch1", "branch2", "insn2", "jump".
7478         (avr_reorg): Likewise for local "insn".
7479         (avr_2word_insn_p): Likewise for param "insn".
7480         (jump_over_one_insn_p): Likewise.
7481         (avr_out_sbxx_branch): Likewise.
7482         (avr_out_movmem): Likewise.
7483
7484 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7485
7486         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
7487         param from rtx to rtx_insn *.
7488         (thumb1_final_prescan_insn): Likewise.
7489         (thumb2_final_prescan_insn): Likewise.
7490
7491         * config/arm/arm.c (emit_set_insn): Strengthen return type from
7492         rtx to rtx_insn *.
7493         (struct minipool_node): Likewise for field "insn".
7494         (dump_minipool): Likewise for param "scan".
7495         (create_fix_barrier): Likewise for local "from".  Strengthen local
7496         "label" from rtx to rtx_code_label *.
7497         (push_minipool_barrier): Strengthen param "insn" from rtx to
7498         rtx_insn *.
7499         (push_minipool_fix): Likewise.
7500         (note_invalid_constants): Likewise.
7501         (thumb2_reorg): Likewise for local "insn".
7502         (arm_reorg): Likewise.
7503         (thumb2_final_prescan_insn): Likewise for param
7504         "insn" and local "first_insn".
7505         (arm_final_prescan_insn): Likewise for param "insn" and locals
7506         "start_insn", "this_insn".
7507         (arm_debugger_arg_offset): Likewise for param "insn".
7508         (thumb1_emit_multi_reg_push): Likewise for return type and local
7509         "insn".
7510         (thumb1_final_prescan_insn): Likewise for param "insn".
7511         (thumb_far_jump_used_p): Likewise for local "insn".
7512         (thumb1_expand_prologue): Likewise.
7513         (arm_expand_epilogue_apcs_frame): Likewise.
7514         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
7515         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
7516         from rtx to rtx_code_label *.
7517         (arm_split_atomic_op): Likewise for local "label".
7518         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
7519
7520 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7521
7522         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
7523         first param from rtx to rtx_insn *.
7524         (arc_verify_short): Likewise.
7525         (arc_short_long): Likewise.
7526         (arc_need_delay): Likewise.
7527
7528         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
7529         "target_insn".
7530         (arc_ccfsm_advance): Likewise for param "insn" and locals
7531         "start_insn", "this_insn".
7532         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
7533         (arc_ccfsm_post_advance): Likewise for param "insn".
7534         (arc_next_active_insn): Likewise for return type and param "insn".
7535         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
7536         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
7537         (output_short_suffix): Likewise for local "insn".
7538         (arc_final_prescan_insn): Likewise for param "insn".  Remove
7539         now-redundant checked cast.
7540         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
7541         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
7542         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
7543         for use where lc_set became an insn.
7544         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
7545         rtx to rtx_insn *.
7546         (arc_get_insn_variants): Likewise for local "prev".
7547         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
7548         "next".
7549         (arc_predicate_delay_insns): Likewise for local "insn".
7550         (arc_pad_return): Likewise for local "prev".  For now, add a
7551         checked cast when extracting the insn from "final_sequence".
7552         (arc_short_long): Likewise for param "insn".
7553         (arc_need_delay): Likewise for param "insn" and local "next".
7554         (arc_label_align): Likewise for locals "prev", "next".
7555
7556 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7557
7558         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
7559         "insn" from rtx to rtx_insn *.
7560         (alpha_gp_save_rtx): Likewise for local "seq".
7561         (alpha_instantiate_decls): Likewise for local "top".
7562         (get_some_local_dynamic_name): Likewise for local "insn".
7563         (alpha_does_function_need_gp): Likewise.
7564         (set_frame_related_p): Likewise for return type and for locals
7565         "seq" and "insn".
7566         (emit_frame_store_1): Likewise for local "insn".
7567         (alpha_expand_prologue): Likewise for locals "insn", "seq".
7568         (alpha_end_function): Likewise for local "insn".
7569         (alpha_output_mi_thunk_osf): Likewise.
7570         (alphaev4_insn_pipe): Likewise for param "insn".
7571         (alphaev5_insn_pipe): Likewise.
7572         (alphaev4_next_group): Likewise for return type and param 1
7573         "insn".
7574         (alphaev5_next_group): Likewise.
7575         (alpha_align_insns_1): Likewise for return type and param 1 of
7576         callback param "next_group", and for locals "i", "next", "prev",
7577         "where", "where2", "insn".
7578
7579 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
7580
7581         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
7582         rather than modifying the stmt.
7583
7584 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7585
7586         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
7587         cgraph_state conversion.
7588
7589 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7590
7591         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7592         Strengthen local "insns" from rtx to rtx_insn *.
7593         (aarch64_set_frame_expr): Likewise for local "insn".
7594         (aarch64_save_or_restore_fprs): Likewise.
7595         (aarch64_save_or_restore_callee_save_registers): Likewise.
7596         (aarch64_expand_prologue): Likewise.
7597         (aarch64_expand_epilogue): Likewise.
7598         (aarch64_output_mi_thunk): Likewise.
7599         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
7600         "label2" from rtx to rtx_code_label *.
7601         (aarch64_split_atomic_op): Likewise for local "label".
7602
7603 2014-08-25  Martin Liska  <mliska@suse.cz>
7604
7605         * cgraph.h (symtab_node):
7606         (bool needed_p (void)): created from decide_is_symbol_needed
7607         (bool referred_to_p (void)): created from referred_to_p
7608         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
7609         * cgraph.h (cgraph_node):
7610         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
7611         (void expand (void)): created from expand_function
7612         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
7613         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
7614         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
7615         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
7616         * cgraph.h (varpool_node):
7617         (static void add (tree decl): created from varpool_add_new_variable
7618         * cgraph.h (cgraph_edge):
7619         void remove (void);
7620         (void remove_caller (void)): created from cgraph_edge_remove_caller
7621         (void remove_callee (void)): created from cgraph_edge_remove_callee
7622         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
7623           created from cgraph_set_call_stmt
7624         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
7625         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
7626         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
7627           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
7628         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
7629           created from cgraph_speculative_call_info
7630         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
7631           int freq_scale, bool update_original)): created from cgraph_clone_edge
7632         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
7633         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
7634         (bool recursive_p (void)): created from cgraph_edge_recursive_p
7635         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
7636         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
7637         (static void rebuild_references (void)): created from cgraph_rebuild_references
7638         * cgraph.h (symbol_table):
7639         (create_reference): renamed from add_reference
7640         (maybe_create_reference): renamed from maybe_add_reference
7641         (void register_symbol (symtab_node *node)): new function
7642         (void clear_asm_symbols (void)): new function
7643         (void unregister (symtab_node *node)): new function
7644         (void release_symbol (cgraph_node *node, int uid)): new function
7645         (cgraph_node * allocate_cgraph_symbol (void)): new function
7646         (void initialize (void)): created from cgraph_init
7647         (symtab_node *first_symbol (void)):new function
7648         (asm_node *first_asm_symbol (void)):new function
7649         (symtab_node *first_defined_symbol (void)):new function
7650         (varpool_node *first_variable (void)):new function
7651         (varpool_node *next_variable (varpool_node *node)):new function
7652         (varpool_node *first_static_initializer (void)):new function
7653         (varpool_node *next_static_initializer (varpool_node *node)):new function
7654         (varpool_node *first_defined_variable (void)):new function
7655         (varpool_node *next_defined_variable (varpool_node *node)):new function
7656         (cgraph_node *first_defined_function (void)):new function
7657         (cgraph_node *next_defined_function (cgraph_node *node)):new function
7658         (cgraph_node *first_function (void)):new function
7659         (cgraph_node *next_function (cgraph_node *node)):new function
7660         (cgraph_node *first_function_with_gimple_body (void)):new function
7661         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
7662         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
7663           created from symtab_remove_unreachable_nodes
7664         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
7665         (void process_new_functions (void)): created from cgraph_process_new_functions
7666         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
7667         (bool output_variables (void)): created from varpool_node::output_variables
7668         (void output_asm_statements (void)): created from output_asm_statements
7669         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
7670         (void compile (void)): created from compile
7671         (void output_weakrefs (void)): created from output_weakrefs
7672         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
7673         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
7674           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
7675         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
7676         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
7677           created from cgraph_next_function_with_gimple_body
7678         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
7679           created from cgraph_remove_edge_removal_hook
7680         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
7681           created from cgraph_add_node_removal_hook
7682         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
7683           created from cgraph_remove_node_removal_hook
7684         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
7685           created from varpool_add_node_removal_hook
7686         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
7687           created from varpool_remove_node_removal_hook
7688         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
7689           created from cgraph_add_function_insertion_hook
7690         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
7691           created from cgraph_remove_function_insertion_hook
7692         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
7693           created from varpool_add_variable_insertion_hook
7694         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
7695           created from varpool_remove_variable_insertion_hook
7696         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
7697           created from cgraph_add_edge_duplication_hook
7698         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7699           created from cgraph_remove_edge_duplication_hook
7700         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7701           created from cgraph_add_node_duplication_hook
7702         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7703           created from cgraph_remove_node_duplication_hook
7704         (void call_edge_removal_hooks (cgraph_edge *e)):
7705           created from cgraph_call_edge_removal_hooks
7706         (void call_cgraph_insertion_hooks (cgraph_node *node)):
7707           created from call_function_insertion_hooks 
7708         (void call_cgraph_removal_hooks (cgraph_node *node)):
7709           created from cgraph_call_node_removal_hooks 
7710         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7711           created from cgraph_node::call_duplication_hooks 
7712         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7713           created from cgraph_call_edge_duplication_hooks
7714         (void call_varpool_removal_hooks (varpool_node *node)):
7715           created from varpool_call_node_removal_hooks
7716         (void call_varpool_insertion_hooks (varpool_node *node)):
7717           created from varpool_call_variable_insertion_hooks
7718         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7719           created from insert_to_assembler_name_hash
7720         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7721           created from unlink_from_assembler_name_hash
7722         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7723           created from symtab_prevail_in_asm_name_hash
7724         (void symtab_initialize_asm_name_hash (void)):
7725           created from symtab_initialize_asm_name_hash
7726         (void change_decl_assembler_name (tree decl, tree name)):
7727           created from change_decl_assembler_name
7728         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7729         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7730           created from decl_assembler_name_hash
7731         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7732           created from decl_assembler_name_equal
7733         (static hashval_t hash_node_by_assembler_name (const void *p)):
7734           created from hash_node_by_assembler_name
7735         (static int eq_assembler_name (const void *p1, const void *p2)):
7736           created from eq_assembler_name
7737
7738 2014-08-25  Marek Polacek  <polacek@redhat.com>
7739
7740         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7741
7742 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
7743
7744         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7745         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7746         SWI1248_AVX512BW mode iterator.
7747
7748 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
7749
7750         PR target/62111
7751         * config/sh/predicates.md (general_extend_operand): Disable
7752         TRUNCATE before reload completes.
7753
7754 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
7755
7756         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7757
7758 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
7759
7760         PR target/61996
7761         * config/sh/sh.opt (musermode): Allow negative form.
7762         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7763         targets that don't support it.
7764         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7765         Document -mno-usermode option.
7766
7767 2014-08-24  Kito Cheng  <kito@0xlab.org>
7768
7769         * system.h (CALLER_SAVE_PROFITABLE): Poison.
7770         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7771         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7772         * doc/tm.texi: Regenerate.
7773
7774 2014-08-24  Kito Cheng  <kito@0xlab.org>
7775
7776         * ira.c: Fix typo in comment.
7777
7778 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
7779
7780         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7781         Deprecate c++1y. Change language to reflect greater confidence in C++14.
7782
7783 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
7784
7785         PR target/62038
7786         * config/pa/pa.c (pa_output_function_epilogue): Don't set
7787         last_address when the current function is a thunk.
7788         (pa_asm_output_mi_thunk): When we don't have named sections or they
7789         are not being used, check that thunk can reach the stub table with a
7790         short branch.
7791
7792 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7793
7794         * web.c (union_match_dups): Strengthen param "insn" from rtx to
7795         rtx_insn *.
7796         (pass_web::execute): Likewise for local "insn".
7797
7798 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7799
7800         * var-tracking.c (struct micro_operation_def): Strengthen field
7801         "insn" from rtx to rtx_insn *.
7802         (struct emit_note_data_def): Likewise.
7803         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7804         (vt_stack_adjustments): Likewise for local "insn".
7805         (adjust_insn): Likewise for param "insn".
7806         (val_store): Likewise.
7807         (val_resolve): Likewise.
7808         (struct count_use_info): Likewise for field "insn".
7809         (log_op_type): Likewise for param "insn".
7810         (reverse_op): Likewise.
7811         (prepare_call_arguments): Likewise.
7812         (add_with_sets):  The initial param takes an insn, but we can't
7813         yet strengthen it from rtx to rtx_insn * since it's used as a
7814         cselib_record_sets_hook callback.  For now rename initial param
7815         from "insn" to "uncast_insn", and introduce a local "insn" of
7816         the stronger rtx_insn * type, with a checked cast.
7817         (compute_bb_dataflow): Strengthen local "insn" from rtx to
7818         rtx_insn *.
7819         (emit_note_insn_var_location): Likewise.
7820         (emit_notes_for_changes): Likewise.
7821         (emit_notes_for_differences): Likewise.
7822         (next_non_note_insn_var_location): Likewise for return type and
7823         for param "insn".
7824         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7825         (vt_initialize): Likewise for local "insn".
7826         (delete_debug_insns): Likewise for locals "insn" and "next".
7827
7828 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7829
7830         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7831         rtx_insn *.
7832         (mark_constant_pool): Likewise for local "insn".
7833
7834 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7835
7836         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7837         rtx to rtx_insn *.
7838         (dead_debug_promote_uses): Likewise.
7839         (dead_debug_insert_temp): Likewise.
7840
7841 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7842
7843         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7844         from const_rtx to const rtx_insn *.
7845         (store_killed_after): Likewise.  Strengthen locals "last", "act"
7846         from rtx to rtx_insn *.
7847         (store_killed_before): Strengthen param "insn" from const_rtx to
7848         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
7849         (find_moveable_store): Strengthen param "insn" from rtx to
7850         rtx_insn *.
7851         (compute_store_table): Likewise for local "insn".
7852         (insert_insn_start_basic_block): Likewise for param "insn" and
7853         locals "prev", "before", "insn".
7854         (insert_store): For now, add a checked cast to rtx_insn * on the
7855         result of gen_move_insn.
7856         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7857         to rtx_insn *.
7858         (replace_store_insn): Likewise.  For now, add a checked cast to
7859         rtx_insn * on the result of gen_move_insn.
7860
7861 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7862
7863         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7864         rtx_insn *.
7865         (expand_sjlj_dispatch_table): Likewise.
7866
7867 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7868
7869         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7870         "insn" from rtx to rtx_insn *.
7871
7872 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7873
7874         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7875         "insn" from rtx to rtx_insn *.
7876         (dup_block_and_redirect): Likewise for param 3 "before".
7877
7878         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7879         from rtx to rtx_insn *.
7880         (move_insn_for_shrink_wrap): Likewise.
7881         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7882         (dup_block_and_redirect): Likewise for param "before" and local
7883         "insn".
7884         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7885         "end".
7886         (convert_to_simple_return): Likewise for local "start".
7887
7888         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7889         Strengthen local "insn" from rtx to rtx_insn *, for use when
7890         invoking requires_stack_frame_p.
7891
7892 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7893
7894         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7895         rtx_insn *.
7896         (speculate_expr): Likewise for locals "orig_insn_rtx",
7897         "spec_insn_rtx".
7898         (eq_transformed_insns): Likewise for locals "i1", "i2".
7899         (check_for_new_jump): Likewise for return type and local "end".
7900         (find_new_jump): Likewise for return type and local "jump".
7901         (sel_split_edge): Likewise for local "jump".
7902         (sel_create_recovery_block): Likewise.
7903         (sel_redirect_edge_and_branch_force): Likewise.
7904         (sel_redirect_edge_and_branch): Likewise.
7905
7906 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7907
7908         * sel-sched.c (substitute_reg_in_expr): Strengthen local
7909         "new_insn" from rtx to rtx_insn *.
7910         (create_insn_rtx_with_rhs): Likewise for return type and for local
7911         "insn_rtx".
7912         (create_insn_rtx_with_lhs): Likewise.
7913         (create_speculation_check): Likewise for local "insn_rtx".
7914         (implicit_clobber_conflict_p): Likewise for local "insn".
7915         (get_expr_cost): Likewise.
7916         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7917         (move_cond_jump): Likewise for locals "next", "prev", "link",
7918         "head", "from", "to".
7919
7920 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7921
7922         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7923         "next" from rtx to rtx_insn *.
7924         (find_conditional_protection): Likewise for local "next".
7925         (is_conditionally_protected): Likewise for local "insn1".
7926         (is_pfree): Likewise for locals "insn1", "insn2".
7927
7928 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7929
7930         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7931         from rtx to rtx_insn *.
7932
7933         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7934         locals "insn1", "insn2" from rtx to rtx_insn *.
7935         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7936         locals "insn", "prev", "last_jump", "next_tail".
7937         (schedule_ebb): Likewise for params "head", "tail".
7938         (schedule_ebbs): Likewise for locals "tail", "head".
7939
7940         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7941         to rtx_insn on "last_insn" in one of the invocations of
7942         schedule_ebb.
7943
7944 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7945
7946         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7947         "elem", "insn" from rtx to rtx_insn *.
7948         (change_spec_dep_to_hard): Likewise.
7949         (get_back_and_forw_lists): Likewise for local "con".
7950         (sd_add_dep): Likewise for locals "elem", "insn".
7951         (sd_resolve_dep): Likewise for locals "pro", "con".
7952         (sd_unresolve_dep): Likewise.
7953         (sd_delete_dep): Likewise.
7954         (chain_to_prev_insn): Likewise for local "pro".
7955         (find_inc): Likewise for locals "pro", "con".
7956
7957 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7958
7959         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7960         to rtx_insn *.
7961         (reg_set_between_p): Strengthen local "insn" from const_rtx to
7962         const rtx_insn *.
7963         (modified_between_p): Strengthen local "insn" from rtx to
7964         rtx_insn *.
7965         (remove_reg_equal_equiv_notes_for_regno): Likewise.
7966         (keep_with_call_p): Strengthen local "i2" from const_rtx to
7967         const rtx_insn *.
7968
7969 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7970
7971         * resource.c (next_insn_no_annul): Strengthen local "next" from
7972         rtx to rtx_insn *.
7973         (mark_referenced_resources): Likewise for local "insn".
7974
7975 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7976
7977         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7978         to rtx_insn *.
7979         (find_reloads): Likewise for param 1.
7980         (subst_reloads): Likewise for sole param.
7981         (find_equiv_reg): Likwise for param 2.
7982         (regno_clobbered_p): Likwise for param 2.
7983         (reload): Likewise for param 1.
7984
7985         * caller-save.c (save_call_clobbered_regs): Strengthen local
7986         "insn" from rtx to rtx_insn *.
7987         (insert_one_insn): Likewise for local "insn".
7988
7989         * reload.c (this_insn): Likewise for this global.
7990         (find_reloads): Likewise for param "insn".
7991         (find_reloads_toplev): Likewise.
7992         (find_reloads_address): Likewise.
7993         (subst_reg_equivs): Likewise.
7994         (update_auto_inc_notes): Likewise.
7995         (find_reloads_address_1): Likewise.
7996         (find_reloads_subreg_address): Likewise.
7997         (subst_reloads): Likewise.
7998         (find_equiv_reg): Likewise, also for local "p".
7999         (regno_clobbered_p): Likewise for param "insn".
8000
8001         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
8002         array.
8003         (spill_reg_store): Likewise for the elements of this array.
8004         (remove_init_insns): Likewise for local "equiv_insn".
8005         (will_delete_init_insn_p): Likewise for param "insn".
8006         (reload): Likewise for param ""first" and local "insn".
8007         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
8008         rtx_insn *.
8009         (calculate_elim_costs_all_insns): Likewise.
8010         (delete_caller_save_insns): Likewise.
8011         (spill_failure): Likewise for param "insn".
8012         (delete_dead_insn): Likewise.
8013         (set_label_offsets): Likewise.
8014         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
8015         "prev_insn".
8016         (elimination_costs_in_insn): Likewise for param "insn".
8017         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
8018         when referring to an insn.
8019         (set_initial_label_offsets): Likewise.
8020         (set_offsets_for_label): Strengthen param "insn" from rtx to
8021         rtx_insn *.
8022         (init_eliminable_invariants): Likewise for param "first" and local
8023         "insn".
8024         (fixup_eh_region_note): Likewise for param "insn".
8025         (reload_as_needed): Likewise for locals "prev", "insn",
8026         "old_next", "old_prev", "next".
8027         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
8028         "last".
8029         (reload_inheritance_insn): Strengthen elements of this array from
8030         rtx to rtx_insn *.
8031         (failed_reload): Likewise for param "insn".
8032         (choose_reload_regs): Likewise for local "insn".  Replace use of
8033         NULL_RTX with NULL when referring to an insn.
8034         (input_reload_insns): Strengthen elements of this array from rtx
8035         to rtx_insn *.
8036         (other_input_address_reload_insns): Likewise for this global.
8037         (other_input_reload_insns): Likewise for this global.
8038         (input_address_reload_insns): Likwise for the elements of this
8039         array.
8040         (inpaddr_address_reload_insns): Likwise for the elements of this
8041         array.
8042         (output_reload_insns): Likewise for the elements of this array.
8043         (output_address_reload_insns): Likewise for the elements of this
8044         array.
8045         (outaddr_address_reload_insns): Likewise for the elements of this
8046         array.
8047         (operand_reload_insns): Likewise for this global.
8048         (other_operand_reload_insns): Likewise for this global.
8049         (other_output_reload_insns): Likewise for the elements of this
8050         array.
8051         (new_spill_reg_store): Likewise for the elements of this
8052         array.
8053         (emit_input_reload_insns): Likewise for locals "insn", "temp".
8054         Strengthen local "where" from rtx * to rtx_insn **.
8055         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
8056         from rtx to rtx_insn *.
8057         (do_input_reload): Likewise for local "insn".
8058         (do_output_reload): Likewise for local "insn".
8059         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
8060         (emit_insn_if_valid_for_reload): Likewise for return type and local
8061         "last".  Add checked cast to rtx_insn when returning "insn" since
8062         this has been through emit_insn.
8063         (gen_reload): Strengthen return type and locals "last", "insn", "set"
8064         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
8065         returning "insn" since it's been through
8066         emit_insn_if_valid_for_reload at this point.
8067         (delete_output_reload): Strengthen param "insn" and locals
8068         "output_reload_insn", "i2" from rtx to rtx_insn *.
8069         (delete_address_reloads): Likewise for params "dead_insn",
8070         "current_insn" and locals "prev", "next".
8071         (delete_address_reloads_1): Likewise for params "dead_insn",
8072         "current_insn" and locals "prev", "i2".
8073         (inc_for_reload): Likewise for locals "last", "add_insn".
8074         (add_auto_inc_notes): Strengthen param "insn" from rtx to
8075         rtx_insn *.
8076
8077         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
8078         param of this duplicate of the prototype from reload.h
8079
8080 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8081
8082         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
8083         rtx to rtx_insn *.
8084         (regstat_bb_compute_calls_crossed): Likewise.
8085
8086 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8087
8088         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
8089         to rtx_insn *.
8090         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
8091         with an insn.
8092         (regrename_analyze): Strengthen local "insn" from rtx to
8093         rtx_insn *.
8094         (scan_rtx_reg): Likewise for param "insn".
8095         (scan_rtx_address): Likewise.
8096         (scan_rtx): Likewise.
8097         (restore_operands): Likewise.
8098         (record_out_operands): Likewise.
8099         (build_def_use): Likewise for local "insn".  Replace use of
8100         NULL_RTX with NULL when dealing with an insn.
8101
8102 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8103
8104         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
8105         * reginfo.c (reg_scan): Likewise, also for local "insn".
8106         (reg_scan_mark_refs): Likewise for param "insn".
8107         (init_subregs_of_mode): Likewise for local "insn".
8108
8109 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8110
8111         * regcprop.c (struct queued_debug_insn_change): Strengthen field
8112         "insn" from rtx to rtx_insn *.
8113         (replace_oldest_value_reg): Likewise for param "insn".
8114         (replace_oldest_value_addr): Likewise.
8115         (replace_oldest_value_mem): Likewise.
8116         (apply_debug_insn_changes): Likewise for local "last_insn".
8117         (copyprop_hardreg_forward_1): Likewise for local "insn".
8118
8119 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8120
8121         * reg-stack.c (next_flags_user): Strengthen return type and param
8122         "insn" from rtx to rtx_insn *.
8123         (straighten_stack): Likewise for param "insn".
8124         (check_asm_stack_operands): Likewise.
8125         (remove_regno_note): Likewise.
8126         (emit_pop_insn): Likewise for return type, param "insn", local
8127         "pop_insn".
8128         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
8129         "limit" from rtx to rtx_insn *.
8130         (swap_to_top): Likewise for param "insn".
8131         (move_for_stack_reg): Likewise.
8132         (move_nan_for_stack_reg): Likewise.
8133         (swap_rtx_condition): Likewise.
8134         (compare_for_stack_reg): Likewise.
8135         (subst_all_stack_regs_in_debug_insn): Likewise.
8136         (subst_stack_regs_pat): Likewise, and local "insn2".
8137         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
8138         rtx_insn *.
8139         (subst_stack_regs): Likewise.
8140         (change_stack): Likewise.
8141         (convert_regs_1): Likewise for locals "insn", "next".
8142
8143 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8144
8145         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
8146         rtx_insn *.
8147         (combine_set_extension): Likewise for param "curr_insn".
8148         (transform_ifelse): Likewise for param "def_insn".
8149         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
8150         from vec<rtx> * to vec<rtx_insn *> *.
8151         (is_cond_copy_insn): Likewise for param "insn".
8152         (struct ext_state): Strengthen the four vec fields from vec<rtx>
8153         to vec<rtx_insn *>.
8154         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
8155         local "def_insn" from rtx to rtx_insn *.
8156         (get_sub_rtx): Likewise for param "def_insn".
8157         (merge_def_and_ext): Likewise.
8158         (combine_reaching_defs): Likewise.
8159         (add_removable_extension): Likewise for param "insn".
8160         (find_removable_extensions): Likewise for local "insn".
8161         (find_and_remove_re): Likewise for locals "curr_insn" and
8162         "def_insn".  Strengthen locals "reinsn_del_list" and
8163         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
8164
8165 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8166
8167         * recog.c (split_insn): Strengthen param "insn" and locals
8168         "first", "last" from rtx to rtx_insn *.
8169         (split_all_insns): Likewise for locals "insn", "next".
8170         (split_all_insns_noflow): Likewise.
8171
8172 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8173
8174         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
8175         const rtx_insn *.
8176         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
8177         (debug_rtx_find): Likewise for param 1 "x".
8178
8179         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
8180         const_rtx to const rtx_insn *.  Likewise for local "insn".
8181         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
8182         (debug_rtx_find): Likewise for param 1 "x".
8183         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
8184         from const_rtx to const rtx_insn * within the appropriate cases of
8185         the switch statement.
8186
8187         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
8188         Strengthen local "insns" from rtx to rtx_insn * since this is
8189         passed to a call to debug_rtx_list.
8190
8191 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8192
8193         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
8194         to rtx_insn *.
8195
8196         * function.c (stack_protect_epilogue): Add checked cast to
8197         rtx_insn for now when invoking predict_insn_def.
8198
8199         * predict.c (predict_insn): Strengthen param "insn" from rtx to
8200         rtx_insn *.
8201         (predict_insn_def): Likewise.
8202         (rtl_predict_edge): Likewise for local "last_insn".
8203         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
8204         const rtx_insn *.
8205         (combine_predictions_for_insn): Strengthen param "insn" from rtx
8206         to rtx_insn *.
8207         (bb_estimate_probability_locally): Likewise for local "last_insn".
8208         (expensive_function_p): Likewise for local "insn".
8209
8210         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
8211         local "jmp", since this is used when invoking predict_insn_def.
8212
8213 2014-08-22  Marek Polacek  <polacek@redhat.com>
8214
8215         PR c++/62199
8216         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
8217
8218 2014-08-22  Marek Polacek  <polacek@redhat.com>
8219
8220         PR c/61271
8221         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
8222         a comparison in parens.
8223         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
8224         in parens.
8225
8226 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8227
8228         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
8229         rtx_insn *.
8230
8231         * cprop.c (fis_get_condition): Likewise.
8232
8233         * postreload.c (reload_cse_regs): Likewise for param "first".
8234         (reload_cse_simplify): Likewise for param "insn".
8235         (reload_cse_regs_1): Likewise for local "insn".
8236         (reload_cse_simplify_set): Likewise for param "insn".
8237         (reload_cse_simplify_operands): Likewise.
8238         (struct reg_use): Likewise for field "insn".
8239         (reload_combine_purge_insn_uses): Likewise for param "insn".
8240         (fixup_debug_insns): Likewise for params "from", "to" and local
8241         "insn".
8242         (try_replace_in_use): Likewise for local "use_insn".
8243         (reload_combine_recognize_const_pattern): Likewise for param
8244         "insn" and locals "add_moved_after_insn", "use_insn".
8245         (reload_combine_recognize_pattern): Likewise for param "insn" and
8246         local "prev".
8247         (reload_combine): Likewise for locals "insn", "prev".
8248         (reload_combine_note_use): Likewise for param "insn".
8249         (move2add_use_add2_insn): Likewise.
8250         (move2add_use_add3_insn): Likewise.
8251         (reload_cse_move2add): Likewise, also for local "next".
8252         (move2add_note_store): Likewise for local "insn".
8253
8254 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8255
8256         * postreload-gcse.c (struct occr): Strengthen field "insn" from
8257         rtx to rtx_insn *.
8258         (struct unoccr): Likewise.
8259         (struct modifies_mem): Likewise.
8260         (alloc_mem): Likewise for local "insn".
8261         (insert_expr_in_table): Likewise for param "insn".
8262         (dump_expr_hash_table_entry): Likewise for local "insn".
8263         (oprs_unchanged_p): Likewise for param "insn".
8264         (load_killed_in_block_p): Likewise for local "setter".
8265         (record_last_reg_set_info): Likewise for param "insn".
8266         (record_last_reg_set_info_regno): Likewise.
8267         (record_last_mem_set_info): Likewise.
8268         (record_last_set_info): Likewise for local "last_set_insn".
8269         (record_opr_changes): Likewise for param "insn".
8270         (hash_scan_set): Likewise.
8271         (compute_hash_table): Likewise for local "insn".
8272         (get_avail_load_store_reg): Likewise for param "insn".
8273         (eliminate_partially_redundant_load): Likewise, also for locals
8274         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
8275         RTX for insns.
8276         (eliminate_partially_redundant_loads): Likewise for local "insn".
8277
8278 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8279
8280         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
8281         rtx to rtx_insn *.
8282         (expand_binop): Likewise for locals "entry_last", "last", "insns"
8283         (expand_twoval_unop): Likewise for locals entry_last", "last".
8284         (expand_twoval_binop): Likewise.
8285         (expand_twoval_binop_libfunc): Likewise for local "insns".
8286         (widen_leading): Likewise for local "last".
8287         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
8288         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
8289         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
8290         (expand_parity): Likewise for locals "last" and "seq".
8291         (expand_ffs): Likewise for local "seq".  Strengthen local
8292         "nonzero_label" from rtx to rtx_code_label *.
8293         (expand_absneg_bit): Strengthen local "insns" from rtx to
8294         rtx_insn *.
8295         (expand_unop_direct): Likewise for local "last".
8296         (expand_unop): Likewise for locals "last", "insns".
8297         (expand_abs_nojump): Likewise for local "last".
8298         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
8299         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
8300         rtx_insn *.
8301         (expand_copysign_absneg): Strengthen local "label" from rtx to
8302         rtx_code_label *.
8303         (expand_copysign_bit): Strengthen local "insns" from rtx to
8304         rtx_insn *.
8305         (struct no_conflict_data): Likewise for fields "first", "insn".
8306         (emit_libcall_block_1): Likewise for param "insns" and locals
8307         "next", "last", "insn".
8308         (emit_libcall_block): For now, add a checked cast to rtx_insn *
8309         on "insns" when invoking emit_libcall_block_1.  Ultimately we
8310         want to strengthen insns itself.
8311         (prepare_cmp_insn): Strengthen local "last" from rtx to
8312         rtx_insn *.
8313         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
8314         (prepare_float_lib_cmp): Likewise for local "insns".
8315         (emit_conditional_move): Likewise for local "last".
8316         (emit_conditional_add): Likewise.
8317         (have_sub2_insn): Likewise for local "seq".
8318         (expand_float): Likewise for local "insns".  Strengthen locals
8319         "label", "neglabel" from rtx to rtx_code_label *.
8320         (expand_fix): Likewise for locals "last", "insn", "insns" (to
8321         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
8322         (expand_fixed_convert): Likewise for local "insns" (to
8323         rtx_insn *).
8324         (expand_sfix_optab): Likewise for local "last".
8325         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
8326         to rtx_code_label *.
8327         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
8328         from rtx to rtx_insn *.
8329         (expand_atomic_fetch_op): Likewise for local "insn".
8330         (maybe_legitimize_operand_same_code): Likewise for local "last".
8331         (maybe_legitimize_operands): Likewise.
8332
8333 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8334
8335         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
8336         "insn" from rtx to rtx_insn *.
8337         (ps_rtl_insn): Likewise for return type.
8338         (doloop_register_get): Likewise for params "head", "tail" and
8339         locals "insn", "first_insn_not_to_check".
8340         (schedule_reg_move): Likewise for local "this_insn".
8341         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
8342         of gen_move_insn for now.
8343         (reset_sched_times): Strengthen local "insn" from rtx to
8344         rtx_insn *.
8345         (permute_partial_schedule): Likewise.
8346         (duplicate_insns_of_cycles): Likewise for local "u_insn".
8347         (dump_insn_location): Likewise for param "insn".
8348         (loop_canon_p): Likewise for local "insn".
8349         (sms_schedule): Likewise.
8350         (print_partial_schedule): Likewise.
8351         (ps_has_conflicts): Likewise.
8352
8353 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8354
8355         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
8356         "tailp" from rtx * to rtx_insn **.
8357
8358         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
8359         from rtx to rtx_insn *.
8360         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
8361         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
8362         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
8363         rtx to rtx_insn *.
8364         * modulo-sched.c (const_iteration_count): Strengthen return type
8365         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
8366         use of NULL_RTX with NULL when working with insns.
8367         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
8368         to rtx_insn *.
8369         (sms_schedule): Likewise.
8370         * sched-rgn.c (init_ready_list): Likewise, also for locals
8371         "src_head" and "src_next_tail".
8372         (compute_block_dependences): Likewise.
8373         (free_block_dependencies): Likewise.
8374         (debug_rgn_dependencies): Likewise.
8375         (free_rgn_deps): Likewise.
8376         (compute_priorities): Likewise.
8377         (schedule_region): Likewise.
8378         * sel-sched.c (find_ebb_boundaries): Likewise.
8379
8380         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
8381         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
8382
8383 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8384
8385         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
8386         from rtx to rtx_insn *.
8387         (new_seginfo): Likewise for param "insn".
8388         (create_pre_exit): Likewise for locals "last_insn",
8389         "before_return_copy", "return_copy".
8390         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
8391         "mode_set".
8392
8393 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8394
8395         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
8396         from rtx to rtx_insn *.
8397         (lra_push_insn): Likewise for 1st param.
8398         (lra_push_insn_and_update_insn_regno_info): Likewise.
8399         (lra_pop_insn): Likewise for return type.
8400         (lra_invalidate_insn_data): Likewise for 1st param.
8401         (lra_set_insn_deleted): Likewise.
8402         (lra_delete_dead_insn): Likewise.
8403         (lra_process_new_insns): Likewise for first 3 params.
8404         (lra_set_insn_recog_data): Likewise for 1st param.
8405         (lra_update_insn_recog_data): Likewise.
8406         (lra_set_used_insn_alternative): Likewise.
8407         (lra_invalidate_insn_regno_info): Likewise.
8408         (lra_update_insn_regno_info): Likewise.
8409         (lra_former_scratch_operand_p): Likewise.
8410         (lra_eliminate_regs_1): Likewise.
8411         (lra_get_insn_recog_data): Likewise.
8412
8413         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
8414         rtx to rtx_insn *.
8415
8416         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
8417         "mv1" and "mv2".
8418         (substitute_within_insn): New.
8419         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
8420         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
8421         Replace call to "substitute" with call to substitute_within_insn.
8422
8423         * lra-constraints.c (curr_insn): Strengthen from rtx to
8424         rtx_insn *.
8425         (get_equiv_with_elimination): Likewise for param "insn".
8426         (match_reload): Strengthen params "before" and "after" from rtx *
8427         to rtx_insn **.
8428         (emit_spill_move): Likewise for return type.  Add a checked cast
8429         to rtx_insn * on result of gen_move_insn for now.
8430         (check_and_process_move): Likewise for local "before".  Replace
8431         NULL_RTX with NULL when referring to insns.
8432         (process_addr_reg): Strengthen params "before" and "after" from
8433         rtx * to rtx_insn **.
8434         (insert_move_for_subreg): Likewise.
8435         (simplify_operand_subreg): Strengthen locals "before" and "after"
8436         from rtx to rtx_insn *.
8437         (process_address_1): Strengthen params "before" and "after" from
8438         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
8439         rtx to rtx_insn *.
8440         (process_address): Strengthen params "before" and "after" from
8441         rtx * to rtx_insn **.
8442         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
8443         (curr_insn_transform): Strengthen locals "before" and "after"
8444         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
8445         to insns.
8446         (loc_equivalence_callback): Update cast of "data", changing
8447         resulting type from rtx to rtx_insn *.
8448         (substitute_pseudo_within_insn): New.
8449         (inherit_reload_reg): Strengthen param "insn" from rtx to
8450         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
8451         NULL when referring to insns.  Add a checked cast to rtx_insn *
8452         when using usage_insn to invoke lra_update_insn_regno_info.
8453         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
8454         likewise for locals "restore", "save".  Add checked casts to
8455         rtx_insn * when using usage_insn to invoke
8456         lra_update_insn_regno_info and lra_process_new_insns.  Replace
8457         NULL_RTX with NULL when referring to insns.
8458         (split_if_necessary): Strengthen param "insn" from rtx to
8459         rtx_insn *.
8460         (update_ebb_live_info): Likewise for params "head", "tail" and local
8461         "prev_insn".
8462         (get_last_insertion_point): Likewise for return type and local "insn".
8463         (get_live_on_other_edges): Likewise for local "last".
8464         (inherit_in_ebb): Likewise for params "head", "tail" and locals
8465         "prev_insn", "next_insn", "restore".
8466         (remove_inheritance_pseudos): Likewise for local "prev_insn".
8467         (undo_optional_reloads): Likewise for local "insn".
8468
8469         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
8470         "insn".
8471         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
8472         insns.
8473         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
8474         rtx_insn *.
8475         (spill_pseudos): Likewise for local "insn".
8476         (init_elimination): Likewise.
8477         (process_insn_for_elimination): Likewise for param "insn".
8478
8479         * lra-lives.c (curr_insn): Likewise.;
8480
8481         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
8482         (remove_pseudos): Likewise for param "insn".
8483         (spill_pseudos): Likewise for local "insn".
8484         (lra_final_code_change): Likewise for locals "insn", "curr".
8485
8486         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
8487         (lra_set_insn_deleted): Likewise.
8488         (lra_delete_dead_insn): Likewise, and for local "prev".
8489         (new_insn_reg): Likewise for param "insn".
8490         (lra_set_insn_recog_data): Likewise.
8491         (lra_update_insn_recog_data): Likewise.
8492         (lra_set_used_insn_alternative): Likewise.
8493         (get_insn_freq): Likewise.
8494         (invalidate_insn_data_regno_info): Likewise.
8495         (lra_invalidate_insn_regno_info): Likewise.
8496         (lra_update_insn_regno_info): Likewise.
8497         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
8498         vec<rtx_insn *>.
8499         (lra_push_insn_1): Strengthen param "insn" from rtx to
8500         rtx_insn *.
8501         (lra_push_insn): Likewise.
8502         (lra_push_insn_and_update_insn_regno_info): Likewise.
8503         (lra_pop_insn): Likewise for return type and local "insn".
8504         (push_insns): Likewise for params "from", "to", and local "insn".
8505         (setup_sp_offset): Likewise for params "from", "last" and locals
8506         "before", "insn".
8507         (lra_process_new_insns): Likewise for params "insn", "before",
8508         "after" and local "last".
8509         (struct sloc): Likewise for field "insn".
8510         (lra_former_scratch_operand_p): Likewise for param "insn".
8511         (remove_scratches): Likewise for locals "insn", "last".
8512         (check_rtl): Likewise for local "insn".
8513         (add_auto_inc_notes): Likewise for param "insn".
8514         (update_inc_notes): Likewise for local "insn".
8515         (lra): Replace NULL_RTX with NULL when referring to insn.
8516
8517 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8518
8519         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
8520         to rtx_insn *.
8521         (resolve_reg_notes): Likewise.
8522         (resolve_simple_move): Likewise for return type, param "insn", and
8523         locals "insns", "minsn".
8524         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
8525         (resolve_use): Likewise.
8526         (resolve_debug): Likewise.
8527         (find_decomposable_shift_zext): Likewise.
8528         (resolve_shift_zext): Likewise for return type, param "insn", and
8529         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
8530         (decompose_multiword_subregs): Likewise for local "insn",
8531         "orig_insn", "decomposed_shift", "end".
8532
8533 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8534
8535         * basic-block.h (basic_block split_edge_and_insert): Strengthen
8536         param "insns" from rtx to rtx_insn *.
8537
8538         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
8539         rtx to rtx_insn *.
8540         (struct iv_to_split): Likewise.
8541         (loop_exit_at_end_p): Likewise for local "insn".
8542         (split_edge_and_insert): Likewise for param "insns".
8543         (compare_and_jump_seq): Likewise for return type, param "cinsn",
8544         and locals "seq", "jump".
8545         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
8546         "branch_code"; update invocations of compare_and_jump_seq to
8547         eliminate NULL_RTX in favor of NULL.
8548         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
8549         rtx to rtx_insn *.
8550         (reset_debug_uses_in_loop): Likewise.
8551         (analyze_insn_to_expand_var): Likewise for param "insn".
8552         (analyze_iv_to_split_insn): Likewise.
8553         (analyze_insns_in_loop): Likewise for local "insn".
8554         (insert_base_initialization): Likewise for param
8555         "insn" and local "seq".
8556         (split_iv): Likewise for param "insn" and local "seq".
8557         (expand_var_during_unrolling): Likewise for param "insn".
8558         (insert_var_expansion_initialization): Likewise for local "seq".
8559         (combine_var_copies_in_loop_exit): Likewise.
8560         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
8561         "insn".
8562         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
8563         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
8564         "next".
8565
8566 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8567
8568         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
8569         rtx_insn *.
8570         (iv_analyze_result): Likewise.
8571         (iv_analyze_expr): Likewise.
8572         (biv_p): Likewise.
8573
8574         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
8575         local "def_insn" from rtx to rtx_insn *.
8576         (get_biv_step_1): Likewise for local "insn".
8577         (iv_analyze_expr): Likewise for param "insn".
8578         (iv_analyze_def): Likewise for local "insn".
8579         (iv_analyze_op): Likewise for param "insn".
8580         (iv_analyze): Likewise.
8581         (iv_analyze_result): Likewise.
8582         (biv_p): Likewise.
8583         (suitable_set_for_replacement): Likewise.
8584         (simplify_using_initial_values): Likewise for local "insn".
8585         (iv_number_of_iterations): Likewise for param "insn".
8586         (check_simple_exit): Add checked cast to rtx_insn when invoking
8587         iv_number_of_iterations for now (until get_condition is
8588         strengthened).
8589
8590         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
8591         "insn" from rtx to rtx_insn *.
8592         (analyze_insns_in_loop): Likewise for local "insn".
8593
8594 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8595
8596         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
8597         to rtx_insn *.
8598         (struct invariant): Likewise.
8599         (hash_invariant_expr_1): Likewise for param "insn".
8600         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
8601         (find_exits): Likewise for local "insn".
8602         (create_new_invariant): Likewise for param "insn".
8603         (check_dependencies): Likewise.
8604         (find_invariant_insn): Likewise.
8605         (record_uses): Likewise.
8606         (find_invariants_insn): Likewise.
8607         (find_invariants_bb): Likewise for local "insn".
8608         (get_pressure_class_and_nregs): Likewise for param "insn".
8609         (calculate_loop_reg_pressure): Likewise for local "insn".
8610
8611 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8612
8613         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
8614         to rtx_insn *.
8615         (add_test): Likewise for locals "seq", "jump".
8616         (doloop_modify): Likewise for locals "sequence", "jump_insn".
8617
8618 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8619
8620         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
8621         rtx_insn *.
8622         (rebuild_jump_labels_chain): Likewise for param "chain".
8623
8624         * cfgexpand.c (pass_expand::execute): Add checked cast to
8625         rtx_insn * when calling rebuild_jump_labels_chain in region where
8626         we know e->insns.r is non-NULL.
8627
8628         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
8629         rtx_insn *.
8630         (rebuild_jump_labels): Likewise.
8631         (rebuild_jump_labels_chain): Likewise for param "chain".
8632         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
8633         (init_label_info): Likewise for param "f".
8634         (maybe_propagate_label_ref): Likewise for params "jump_insn",
8635         "prev_nonjump_insn".
8636         (mark_all_labels): Likewise for param "f" and locals "insn",
8637         "prev_nonjump_insn".
8638
8639 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8640
8641         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
8642         from rtx to rtx_insn *insn.
8643         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
8644         (ira_add_allocno_copy): Likewise.
8645         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
8646         rtx to rtx_insn *.
8647         (ira_create_copy): Likewise.
8648         (ira_add_allocno_copy): Likewise.
8649         (create_bb_allocnos): Likewise for local "insn".
8650         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
8651         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
8652         process_regs_for_copy for rtx_insn * param.
8653         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
8654         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
8655         process_regs_for_copy for rtx_insn * param.
8656         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
8657         * ira-costs.c (record_reg_classes): Likewise for param "insn".
8658         (record_operand_costs): Likewise.
8659         (scan_one_insn): Likewise for return type, and for param "insn".
8660         (process_bb_for_costs): Likewise for local "insn".
8661         (process_bb_node_for_hard_reg_moves): Likewise.
8662         * ira-emit.c (struct move): Likewise for field "insn".
8663         (create_move): Eliminate use of NULL_RTX when dealing with an
8664         rtx_insn *.
8665         (emit_move_list): Strengthen return type and locals "result",
8666         "insn" from rtx to rtx_insn *insn.
8667         (emit_moves): Likewise for locals "insns", "tmp".
8668         (ira_emit): Likewise for local "insn".
8669         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
8670         "insn".
8671         (find_call_crossed_cheap_reg): Likewise.
8672         (process_bb_node_lives): Likewise for local "insn".
8673         * ira.c (decrease_live_ranges_number): Likewise.
8674         (compute_regs_asm_clobbered): Likewise.
8675         (build_insn_chain): Likewise.
8676         (find_moveable_pseudos): Likewise, also locals "def_insn",
8677         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
8678         to rtx_insn **.  Add a checked cast when assigning from
8679         "closest_use" into closest_uses array in a region where we know
8680         it's a non-NULL insn.
8681         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
8682         to rtx_insn *.
8683         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
8684         "last_interesting_insn", "uin".
8685         (move_unallocated_pseudos): Likewise for locals "def_insn",
8686         "move_insn", "newinsn".
8687
8688 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8689
8690         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
8691         Strengthen locals "done_label", "do_error" from rtx to
8692         rtx_code_label *.
8693         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
8694         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
8695         rtx_code_label *.
8696         (ubsan_expand_si_overflow_neg_check): Likewise for locals
8697         "done_label", "do_error" to rtx_code_label * and local  "last" to
8698         rtx_insn *.
8699         (ubsan_expand_si_overflow_mul_check): Likewise for locals
8700         "done_label", "do_error", "large_op0", "small_op0_large_op1",
8701         "one_small_one_large", "both_ops_large", "after_hipart_neg",
8702         "after_lopart_neg", "do_overflow", "hipart_different"  to
8703         rtx_code_label * and local  "last" to rtx_insn *.
8704
8705 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8706
8707         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8708         "insn" and "move_insn" from rtx to rtx_insn *.
8709
8710 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8711
8712         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8713         rtx_insn *.
8714         (cheap_bb_rtx_cost_p): Likewise.
8715         (first_active_insn): Likewise for return type and local "insn".
8716         (last_active_insn):  Likewise for return type and locals "insn",
8717         "head".
8718         (struct noce_if_info): Likewise for fields "jump", "insn_a",
8719         "insn_b".
8720         (end_ifcvt_sequence): Likewise for return type and locals "insn",
8721         "seq".
8722         (noce_try_move): Likewise for local "seq".
8723         (noce_try_store_flag): Likewise.
8724         (noce_try_store_flag_constants): Likewise.
8725         (noce_try_addcc): Likewise.
8726         (noce_try_store_flag_mask): Likewise.
8727         (noce_try_cmove): Likewise.
8728         (noce_try_minmax): Likewise.
8729         (noce_try_abs): Likewise.
8730         (noce_try_sign_mask): Likewise.
8731         (noce_try_bitop): Likewise.
8732         (noce_can_store_speculate_p): Likewise for local "insn".
8733         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8734         seq".
8735         (check_cond_move_block): Likewise for local "insn".
8736         (cond_move_convert_if_block): Likewise.
8737         (cond_move_process_if_block): Likewise for locals "seq",
8738         "loc_insn".
8739         (noce_find_if_block): Likewise for local "jump".
8740         (merge_if_block): Likewise for local "last".
8741         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8742         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8743         (block_has_only_trap): Likewise for return type and local "trap".
8744         (find_if_case_1): Likewise for local "jump".
8745         (dead_or_predicable): Likewise for locals "head", "end", "jump",
8746         "insn".
8747
8748 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8749
8750         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8751         "last_insn", "loop_end" from rtx to rtx_insn *.
8752
8753         * hw-doloop.c (scan_loop): Likewise for local "insn".
8754         (discover_loop): Likewise for param "tail_insn".
8755         (discover_loops): Likewise for local "tail".
8756
8757         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8758         cast to rtx_insn * when assigning from an rtx local to a
8759         hwloop_info's "last_insn" field.
8760
8761 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8762
8763         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8764         (add_delay_dependencies): Strengthen local "pro" from rtx to
8765         rtx_insn *.
8766         (recompute_todo_spec): Likewise.
8767         (dep_cost_1): Likewise for locals "insn", "used".
8768         (schedule_insn): Likewise for local "dbg".
8769         (schedule_insn): Likewise for locals "pro", "next".
8770         (unschedule_insns_until): Likewise for local "con".
8771         (restore_pattern): Likewise for local "next".
8772         (estimate_insn_tick): Likewise for local "pro".
8773         (resolve_dependencies): Likewise for local "next".
8774         (fix_inter_tick): Likewise.
8775         (fix_tick_ready): Likewise for local "pro".
8776         (add_to_speculative_block): Likewise for locals "check", "twin",
8777         "pro".
8778         (sched_extend_bb): Likewise for locals "end", "insn".
8779         (init_before_recovery): Likewise for local "x".
8780         (sched_create_recovery_block): Likewise for local "barrier".
8781         (create_check_block_twin): Likewise for local "pro".
8782         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8783         "consumer".
8784         (unlink_bb_notes): Update for change to type of bb_header.
8785         Strengthen locals "prev", "label", "note", "next" from rtx to
8786         rtx_insn *.
8787         (clear_priorities): Likewise for local "pro".
8788
8789 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8790
8791         * gcse.c (struct occr): Strengthen field "insn" from rtx to
8792         rtx_insn *.
8793         (test_insn): Likewise for this global.
8794         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8795         const rtx_insn *.
8796         (oprs_anticipatable_p): Likewise.
8797         (oprs_available_p): Likewise.
8798         (insert_expr_in_table): Strengthen param "insn" from  rtx to
8799         rtx_insn *.
8800         (hash_scan_set): Likewise.
8801         (hash_scan_clobber): Likewise.
8802         (hash_scan_call): Likewise.
8803         (hash_scan_insn): Likewise.
8804         (compute_hash_table_work): Likewise for local "insn".
8805         (process_insert_insn): Likewise for return type and local "pat".
8806         (insert_insn_end_basic_block): Likewise for locals "new_insn",
8807         "pat", "pat_end", "maybe_cc0_setter".
8808         (pre_edge_insert): Likewise for local "insn".
8809         (pre_insert_copy_insn): Likewise for param "insn".
8810         (pre_insert_copies): Likewise for local "insn".
8811         (struct set_data): Likewise for field "insn".
8812         (single_set_gcse): Likewise for param "insn".
8813         (gcse_emit_move_after): Likewise.
8814         (pre_delete): Likewise for local "insn".
8815         (update_bb_reg_pressure): Likewise for param "from" and local
8816         "insn".
8817         (should_hoist_expr_to_dom): Likewise for param "from".
8818         (hoist_code): Likewise for local "insn".
8819         (get_pressure_class_and_nregs): Likewise for param "insn".
8820         (calculate_bb_reg_pressure): Likewise for local "insn".
8821         (compute_ld_motion_mems): Likewise.
8822
8823 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8824
8825         * genpeep.c (main): Rename param back from "uncast_ins1" to
8826         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
8827         checked cast.
8828
8829         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8830
8831 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8832
8833         PR target/62195
8834         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8835         documentation to state it is only for VSX operations.
8836
8837         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8838         constraint only active if VSX.
8839
8840         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8841         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8842         (lfiwzx): Likewise.
8843
8844 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8845
8846         * fwprop.c (single_def_use_dom_walker::before_dom_children):
8847         Strengthen local "insn" from rtx to rtx_insn *.
8848         (use_killed_between): Likewise for param "target_insn".
8849         (all_uses_available_at): Likewise for param "target_insn" and
8850         local "next".
8851         (update_df_init): Likewise for params "def_insn", "insn".
8852         (update_df): Likewise for param "insn".
8853         (try_fwprop_subst): Likewise for param "def_insn" and local
8854         "insn".
8855         (free_load_extend): Likewise for param "insn".
8856         (forward_propagate_subreg): Likewise for param "def_insn" and
8857         local "use_insn".
8858         (forward_propagate_asm): Likewise for param "def_insn" and local
8859         "use_insn".
8860         (forward_propagate_and_simplify): Likewise for param "def_insn"
8861         and local "use_insn".
8862         (forward_propagate_into): Likewise for locals "def_insn" and
8863         "use_insn".
8864
8865 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8866
8867         * function.c (emit_initial_value_sets): Strengthen local "seq"
8868         from rtx to rtx_insn *.
8869         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8870         local "seq".
8871         (instantiate_virtual_regs): Likewise for local "insn".
8872         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8873         (reorder_blocks_1): Likewise for param "insns" and local "insn".
8874         (expand_function_end): Likewise for locals "insn" and "seq".
8875         (epilogue_done): Likewise for local "insn".
8876         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8877         "last", "trial".
8878         (reposition_prologue_and_epilogue_notes): Likewise for locals
8879         "insn", "last", "note", "first".
8880         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8881         (pass_match_asm_constraints::execute): Likewise for local "insn".
8882
8883 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8884
8885         * output.h (final_scan_insn): Strengthen return type from rtx to
8886         rtx_insn *.
8887         (final_forward_branch_p): Likewise for param.
8888         (current_output_insn): Likewise for this global.
8889
8890         * final.c (rtx debug_insn): Likewise for this variable.
8891         (current_output_insn): Likewise.
8892         (get_attr_length_1): Rename param "insn" to "uncast_insn",
8893         adding "insn" back in as an rtx_insn * with a checked cast, so
8894         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8895         first param.
8896         (compute_alignments): Strengthen local "label" from rtx to
8897         rtx_insn *.
8898         (shorten_branches): Rename param from "first" to "uncast_first",
8899         introducing a new local rtx_insn * "first" using a checked cast to
8900         effectively strengthen "first" from rtx to rtx_insn * without
8901         affecting the type signature.  Strengthen locals "insn", "seq",
8902         "next", "label" from rtx to rtx_insn *.
8903         (change_scope): Strengthen param "orig_insn" and local "insn" from
8904         rtx to rtx_insn *.
8905         (final_start_function): Rename param from "first" to "uncast_first",
8906         introducing a new local rtx_insn * "first" using a checked cast to
8907         effectively strengthen "first" from rtx to rtx_insn * without
8908         affecting the type signature.  Strengthen local "insn" from rtx to
8909         rtx_insn *.
8910         (dump_basic_block_info): Strengthen param "insn" from rtx to
8911         rtx_insn *.
8912         (final): Rename param from "first" to "uncast_first",
8913         introducing a new local rtx_insn * "first" using a checked cast to
8914         effectively strengthen "first" from rtx to rtx_insn * without
8915         affecting the type signature.  Strengthen locals "insn", "next"
8916         from rtx to rtx_insn *.
8917         (output_alternate_entry_point): Strengthen param "insn" from rtx to
8918         rtx_insn *.
8919         (call_from_call_insn): Strengthen param "insn" from rtx to
8920         rtx_call_insn *.
8921         (final_scan_insn): Rename param from "insn" to "uncast_insn",
8922         introducing a new local rtx_insn * "insn" using a checked cast to
8923         effectively strengthen "insn" from rtx to rtx_insn * without
8924         affecting the type signature.  Strengthen return type and locals
8925         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
8926         now-redundant checked cast to rtx_insn * from both invocations of
8927         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
8928         introducing a local "call_insn" for use when invoking
8929         call_from_call_insn.
8930         (notice_source_line): Strengthen param "insn" from rtx to
8931         rtx_insn *.
8932         (leaf_function_p): Likewise for local "insn".
8933         (final_forward_branch_p): Likewise.
8934         (leaf_renumber_regs): Likewise for param "first".
8935         (rest_of_clean_state): Likewise for locals "insn" and "next".
8936         (self_recursive_call_p): Likewise for param "insn".
8937         (collect_fn_hard_reg_usage): Likewise for local "insn".
8938         (get_call_fndecl): Likewise for param "insn".
8939         (get_call_cgraph_rtl_info): Likewise.
8940         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8941         introducing a new local rtx_insn * "insn" using a checked cast to
8942         effectively strengthen "insn" from rtx to rtx_insn * without
8943         affecting the type signature.
8944
8945         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8946         cast when assigning from param "insn" to current_output_insn.
8947         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8948         so that we can assign it back to current_output_insn.
8949
8950 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8951
8952         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8953         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8954         atmxt540s and atmxt540sreva devices.
8955         * config/avr/avr-tables.opt: Regenerate.
8956         * config/avr/t-multilib: Regenerate.
8957         * doc/avr-mmcu.texi: Regenerate.
8958
8959 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8960
8961         * expr.c (convert_move): Strengthen local "insns" from rtx to
8962         rtx_insn *.
8963         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8964         "top_label" from rtx to rtx_code_label *.
8965         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8966         rtx_insn *.
8967         (emit_single_push_insn): Likewise for locals "prev", "last".
8968         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8969         to rtx_code_label *.
8970         (store_constructor): Likewise for locals "loop_start", "loop_end".
8971         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8972         rtx_insn *.
8973         (expand_expr_real_2): Likewise.
8974         (expand_expr_real_1): Strengthen local "label" from rtx to
8975         rtx_code_label *.
8976
8977 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8978
8979         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8980         from rtx to rtx_insn *.
8981         (store_bit_field_1): Likewise.
8982         (extract_bit_field_1): Likewise.
8983         (expand_mult_const): Likewise for local "insns".
8984         (expmed_mult_highpart): Strengthen local "label" from rtx to
8985         rtx_code_label *.
8986         (expand_smod_pow2): Likewise.
8987         (expand_sdiv_pow2): Likewise.
8988         (expand_divmod): Strengthen locals "last", "insn" from rtx to
8989         rtx_insn *.  Strengthen locals "label", "label1", "label2",
8990         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8991         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8992         (emit_store_flag): Likewise.
8993         (emit_store_flag_force): Strengthen local "label" from rtx to
8994         rtx_code_label *.
8995         (do_cmp_and_jump): Likewise for param "label".
8996
8997 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8998
8999         * explow.c (force_reg): Strengthen local "insn" from rtx to
9000         rtx_insn *.
9001         (adjust_stack_1): Likewise.
9002         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
9003         "final_label", "available_label", "space_available" from rtx to
9004         rtx_code_label *.
9005         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
9006         (anti_adjust_stack_and_probe): Likewise.
9007
9008 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9009
9010         * except.h (sjlj_emit_function_exit_after): Strengthen param
9011         "after" from rtx to rtx_insn *.  This is only called with
9012         result of get_last_insn (in function.c) so type-change should be
9013         self-contained.
9014
9015         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
9016         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
9017         to rtx_insn *.  These fields are only used from except.c so this
9018         type-change should be self-contained to this patch.
9019
9020         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
9021         local "last" from rtx to rtx_insn *.
9022         (dw2_build_landing_pads): Likewise for local "seq".
9023         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
9024         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
9025         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
9026         rtx to rtx_insn *.
9027         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
9028         to rtx_insn *.
9029         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
9030         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
9031         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
9032         referring to an insn.  Strengthen local "dispatch_label" from
9033         rtx to rtx_code_label *.
9034         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
9035         rtx_insn *.
9036         (expand_eh_return): Strengthen local "around_label" from
9037         rtx to rtx_code_label *.
9038         (convert_to_eh_region_ranges): Strengthen locals "iter",
9039         "last_action_insn", "first_no_action_insn",
9040         "first_no_action_insn_before_switch",
9041         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
9042
9043 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9044
9045         * dwarf2out.c (last_var_location_insn): Strengthen this variable
9046         from rtx to rtx_insn *.
9047         (cached_next_real_insn): Likewise.
9048         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
9049         working with insns.
9050         (dwarf2out_var_location): Strengthen locals "next_real",
9051         "next_note", "expected_next_loc_note", "last_start", "insn" from
9052         rtx to rtx_insn *.
9053
9054 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9055
9056         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
9057         from rtx to rtx_insn *.
9058         (create_pseudo_cfg): Likewise for local "insn".
9059
9060 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9061
9062         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
9063         from rtx to rtx_insn *.
9064         (df_bb_regno_last_def_find): Likewise.
9065
9066         * df-problems.c (df_rd_bb_local_compute): Likewise.
9067         (df_lr_bb_local_compute): Likewise.
9068         (df_live_bb_local_compute): Likewise.
9069         (df_chain_remove_problem): Likewise.
9070         (df_chain_create_bb): Likewise.
9071         (df_word_lr_bb_local_compute): Likewise.
9072         (df_remove_dead_eq_notes): Likewise for param "insn".
9073         (df_note_bb_compute): Likewise for local "insn".
9074         (simulate_backwards_to_point): Likewise.
9075         (df_md_bb_local_compute): Likewise.
9076
9077         * df-scan.c (df_scan_free_bb_info): Likewise.
9078         (df_scan_start_dump): Likewise.
9079         (df_scan_start_block): Likewise.
9080         (df_install_ref_incremental): Likewise for local "insn".
9081         (df_insn_rescan_all): Likewise.
9082         (df_reorganize_refs_by_reg_by_insn): Likewise.
9083         (df_reorganize_refs_by_insn_bb): Likewise.
9084         (df_recompute_luids): Likewise.
9085         (df_bb_refs_record): Likewise.
9086         (df_update_entry_exit_and_calls): Likewise.
9087         (df_bb_verify): Likewise.
9088
9089 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9090
9091         * ddg.h (struct ddg_node): Strengthen fields "insn" and
9092         "first_note" from rtx to rtx_insn *.
9093         (get_node_of_insn): Likewise for param 2 "insn".
9094         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
9095
9096         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
9097         rtx_insn *.
9098         (mem_write_insn_p): Likewise.
9099         (mem_access_insn_p): Likewise.
9100         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
9101         (def_has_ccmode_p): Likewise for param "insn".
9102         (add_cross_iteration_register_deps): Likewise for locals
9103         "def_insn" and "use_insn".
9104         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
9105         (build_intra_loop_deps): Likewise for local "src_insn".
9106         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
9107         to rtx_insn *.
9108         (get_node_of_insn): Likewise for param "insn".
9109
9110 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9111
9112         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
9113         (deletable_insn_p): Strengthen param "insn" from rtx to
9114         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
9115         find_call_stack_args, since this is guarded by CALL_P (insn).
9116         (marked_insn_p): Strengthen param "insn" from rtx to
9117         rtx_insn *.
9118         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
9119         invoking find_call_stack_args, since this is guarded by
9120         CALL_P (insn).
9121         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
9122         rtx_insn *; we know this is an insn since this was called by
9123         mark_nonreg_stores.
9124         (mark_nonreg_stores_2): Likewise.
9125         (mark_nonreg_stores): Strengthen param "insn" from rtx to
9126         rtx_insn *.
9127         (find_call_stack_args): Strengthen param "call_insn" from rtx to
9128         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
9129         to rtx_insn *.
9130         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
9131         from rtx to rtx_insn *.
9132         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
9133         "next", "ref_insn".
9134         (delete_unmarked_insns): Likewise for locals "insn", "next".
9135         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
9136         (mark_reg_dependencies): Likewise for param "insn".
9137         (rest_of_handle_ud_dce): Likewise for local "insn".
9138         (word_dce_process_block): Likewise.
9139         (dce_process_block): Likewise.
9140
9141 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9142
9143         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
9144         from rtx to rtx_insn *.
9145         (struct change_cc_mode_args): Likewise for field "insn".
9146         (this_insn): Strengthen from rtx to rtx_insn *.
9147         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
9148         with insn.
9149         (validate_canon_reg): Strengthen param "insn" from rtx to
9150         rtx_insn *.
9151         (canon_reg): Likewise.
9152         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
9153         dealing with insn.
9154         (record_jump_equiv): Strengthen param "insn" from rtx to
9155         rtx_insn *.
9156         (try_back_substitute_reg): Likewise, also for locals "prev",
9157         "bb_head".
9158         (find_sets_in_insn): Likewise for param "insn".
9159         (canonicalize_insn): Likewise.
9160         (cse_insn): Likewise.  Add a checked cast.
9161         (invalidate_from_clobbers): Likewise for param "insn".
9162         (invalidate_from_sets_and_clobbers): Likewise.
9163         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
9164         dealing with insn.
9165         (cse_prescan_path): Strengthen local "insn" from rtx to
9166         rtx_insn *.
9167         (cse_extended_basic_block): Likewise for locals "insn" and
9168         "prev_insn".
9169         (cse_main): Likewise for param "f".
9170         (check_for_label_ref): Likewise for local "insn".
9171         (set_live_p): Likewise for second param ("insn").
9172         (insn_live_p): Likewise for first param ("insn") and for local
9173         "next".
9174         (cse_change_cc_mode_insn): Likewise for first param "insn".
9175         (cse_change_cc_mode_insns): Likewise for first and second params
9176         "start" and "end".
9177         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
9178         and "end".
9179         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
9180         "cc_src_insn".
9181
9182 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9183             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9184             Anna Tikhonova  <anna.tikhonova@intel.com>
9185             Ilya Tocar  <ilya.tocar@intel.com>
9186             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9187             Ilya Verbin  <ilya.verbin@intel.com>
9188             Kirill Yukhin  <kirill.yukhin@intel.com>
9189             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9190
9191         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
9192         New.
9193         * config/i386/sse.md
9194         (define_mode_iterator VI248_AVX2): Delete.
9195         (define_mode_iterator VI2_AVX2_AVX512BW): New.
9196         (define_mode_iterator VI48_AVX2): Ditto.
9197         (define_insn <shift_insn><mode>3): Delete.
9198         (define_insn "<shift_insn><mode>3<mask_name>" with
9199         VI2_AVX2_AVX512BW): New.
9200         (define_insn "<shift_insn><mode>3<mask_name>" with
9201         VI48_AVX2): Ditto.
9202
9203 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9204             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9205             Anna Tikhonova  <anna.tikhonova@intel.com>
9206             Ilya Tocar  <ilya.tocar@intel.com>
9207             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9208             Ilya Verbin  <ilya.verbin@intel.com>
9209             Kirill Yukhin  <kirill.yukhin@intel.com>
9210             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9211
9212         * config/i386/sse.md
9213         (define_mode_iterator VI4F_BRCST32x2): New.
9214         (define_mode_attr 64x2_mode): Ditto.
9215         (define_mode_attr 32x2mode): Ditto.
9216         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
9217         with VI4F_BRCST32x2): Ditto.
9218         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
9219         with V16FI mode iterator): Ditto.
9220         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
9221         with V16FI): Ditto.
9222         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
9223         with VI8F_BRCST64x2): Ditto.
9224
9225 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9226             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9227             Anna Tikhonova  <anna.tikhonova@intel.com>
9228             Ilya Tocar  <ilya.tocar@intel.com>
9229             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9230             Ilya Verbin  <ilya.verbin@intel.com>
9231             Kirill Yukhin  <kirill.yukhin@intel.com>
9232             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9233
9234         * config/i386/sse.md
9235         (define_mode_iterator VI8_AVX512VL): New.
9236         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
9237
9238 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9239
9240         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
9241         (define_mode_iterator V48_AVX512VL): New.
9242         (define_mode_iterator V12_AVX512VL): Ditto.
9243         (define_insn <avx512>_load<mode>_mask): Split into two similar
9244         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
9245         Refactor output template.
9246         (define_insn "<avx512>_store<mode>_mask"): Ditto.
9247
9248 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9249
9250         * cprop.c (struct occr): Strengthen field "insn" from rtx to
9251         rtx_insn *.
9252         (reg_available_p): Likewise for param "insn".
9253         (insert_set_in_table): Likewise.
9254         (hash_scan_set): Likewise.
9255         (hash_scan_insn): Likewise.
9256         (make_set_regs_unavailable): Likewise.
9257         (compute_hash_table_work): Likewise for local "insn".
9258         (reg_not_set_p): Strengthen param "insn" from const_rtx to
9259         const rtx_insn *.
9260         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
9261         (try_replace_reg): Likewise.
9262         (find_avail_set): Likewise.
9263         (cprop_jump): Likewise for params "setcc", "jump".
9264         (constprop_register): Likewise for param "insn".
9265         (cprop_insn): Likewise.
9266         (do_local_cprop): Likewise.
9267         (local_cprop_pass): Likewise for local "insn".
9268         (bypass_block): Likewise for params "setcc" and "jump".
9269         (bypass_conditional_jumps): Likewise for locals "setcc" and
9270         "insn".
9271         (one_cprop_pass): Likewise for local "insn".
9272
9273 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9274
9275         * compare-elim.c (struct comparison_use): Strengthen field "insn"
9276         from rtx to rtx_insn *.
9277         (struct comparison): Likewise, also for field "prev_clobber".
9278         (conforming_compare): Likewise for param "insn".
9279         (arithmetic_flags_clobber_p): Likewise.
9280         (find_flags_uses_in_insn): Likewise.
9281         (find_comparison_dom_walker::before_dom_children): Likewise for
9282         locals "insn", "next", "last_clobber".
9283         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
9284
9285 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9286
9287         * combine-stack-adj.c (struct csa_reflist): Strengthen field
9288         "insn" from rtx to rtx_insn *.
9289         (single_set_for_csa): Likewise for param "insn".
9290         (record_one_stack_ref): Likewise.
9291         (try_apply_stack_adjustment): Likewise.
9292         (struct record_stack_refs_data): Likewise for field "insn".
9293         (maybe_move_args_size_note): Likewise for params "last" and "insn".
9294         (prev_active_insn_bb): Likewise for return type and param "insn".
9295         (next_active_insn_bb): Likewise.
9296         (force_move_args_size_note): Likewise for params "prev" and "last"
9297         and locals "test", "next_candidate", "prev_candidate".
9298         (combine_stack_adjustments_for_block): Strengthen locals
9299         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
9300         rtx_insn *.
9301
9302 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9303
9304         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
9305         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
9306         (subst_insn): Likewise for this variable.
9307         (added_links_insn): Likewise.
9308         (struct insn_link): Likewise for field "insn".
9309         (alloc_insn_link): Likewise for param "insn".
9310         (struct undobuf): Likewise for field "other_insn".
9311         (find_single_use): Likewise for param "insn" and local "next".
9312         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
9313         (delete_noop_moves): Likewise for locals "insn", "next".
9314         (create_log_links): Likewise for locals "insn", "use_insn".
9315         Strengthen local "next_use" from rtx * to rtx_insn **.
9316         (insn_a_feeds_b): Likewise for params "a", "b".
9317         (combine_instructions): Likewise for param "f" and locals "insn",
9318         "next", "prev", "first", "last_combined_insn", "link", "link1",
9319         "temp".  Replace use of NULL_RTX with NULL when referring to
9320         insns.
9321         (setup_incoming_promotions): Likewise for param "first"
9322         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
9323         (can_combine_p): Likewise for params "insn", "i3", "pred",
9324         "pred2", "succ", "succ2" and for local "p".
9325         (combinable_i3pat): Likewise for param "i3".
9326         (cant_combine_insn_p): Likewise for param "insn".
9327         (likely_spilled_retval_p): Likewise.
9328         (adjust_for_new_dest): Likewise.
9329         (update_cfg_for_uncondjump): Likewise, also for local "insn".
9330         (try_combine): Likewise for return type and for params "i3", "i2",
9331         "i1", "i0", "last_combined_insn", and for locals "insn",
9332         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
9333         "i0_insn".  Eliminate local "tem" in favor of new locals
9334         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
9335         checked cast for now to rtx_insn * on the return type of
9336         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
9337         insns.
9338         (find_split_point): Strengthen param "insn" from rtx to
9339         rtx_insn *.
9340         (simplify_set): Likewise for local "other_insn".
9341         (recog_for_combine): Likewise for param "insn".
9342         (record_value_for_reg): Likewise.
9343         (record_dead_and_set_regs_1): Likewise for local
9344         "record_dead_insn".
9345         (record_dead_and_set_regs): Likewise for param "insn".
9346         (record_promoted_value): Likewise.
9347         (check_promoted_subreg): Likewise.
9348         (get_last_value_validate): Likewise.
9349         (reg_dead_at_p): Likewise.
9350         (move_deaths): Likewise for param "to_insn".
9351         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
9352         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
9353         in favor of new locals "tem_note" and "tem_insn", the latter being
9354         an rtx_insn *.
9355         (distribute_links): Strengthen locals "place", "insn" from rtx to
9356         rtx_insn *.
9357
9358 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9359
9360         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
9361         than a const_rtx.
9362         (can_delete_label_p): Require a const rtx_code_label * rather than
9363         a const_rtx.
9364         (delete_insn): Add checked cast to rtx_code_label * when we know
9365         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
9366         rtx to rtx_insn *.
9367         (delete_insn_chain): Strengthen locals "prev" and "current" from
9368         rtx to rtx_insn *.  Add a checked cast when assigning from
9369         "finish" (strengthening the params will come later).  Add a
9370         checked cast to rtx_note * in region where we know
9371         NOTE_P (current).
9372         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
9373         rtx_insn *.
9374         (compute_bb_for_insn): Likewise.
9375         (free_bb_for_insn): Likewise for local "insn".
9376         (compute_bb_for_insn): Likewise.
9377         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
9378         local "insn" from rtx to rtx_insn *
9379         (flow_active_insn_p): Require a const rtx_insn * rather than a
9380         const_rtx.
9381         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
9382         rtx_insn *.
9383         (can_fallthru): Likewise for locals "insn" and "insn2".
9384         (bb_note): Likewise for local "note".
9385         (first_insn_after_basic_block_note): Likewise for local "note" and
9386         for return type.
9387         (rtl_split_block): Likewise for locals "insn" and "next".
9388         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
9389         "end".
9390         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
9391         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
9392         "prev", "tmp".
9393         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
9394         them), "kill_from", "barrier", "new_insn".
9395         (patch_jump_insn): Likewise for params "insn", "old_label".
9396         (redirect_branch_edge): Likewise for locals "old_label", "insn".
9397         (force_nonfallthru_and_redirect): Likewise for locals "insn",
9398         "old_label", "new_label".
9399         (rtl_tidy_fallthru_edge): Likewise for local "q".
9400         (rtl_split_edge): Likewise for locals "before", "last".
9401         (commit_one_edge_insertion): Likewise for locals "before",
9402         "after", "insns", "tmp", "last", adding a checked cast where
9403         currently necessary.
9404         (commit_edge_insertions): Likewise.
9405         (rtl_dump_bb): Likewise for locals "insn", "last".
9406         (print_rtl_with_bb): Likewise for local "x".
9407         (rtl_verify_bb_insns): Likewise for local "x".
9408         (rtl_verify_bb_pointers): Likewise for local "insn".
9409         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
9410         "head", "end".
9411         (rtl_verify_fallthru): Likewise for local "insn".
9412         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
9413         (purge_dead_edges): Likewise for local "insn".
9414         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
9415         (skip_insns_after_block): Likewise for return type and for locals
9416         "insn", "last_insn", "next_head", "prev".
9417         (record_effective_endpoints): Likewise for locals "next_insn",
9418         "insn", "end".
9419         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
9420         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
9421         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
9422         (duplicate_insn_chain): For now, add checked cast from rtx to
9423         rtx_insn * when returning insn.
9424         (cfg_layout_duplicate_bb): Likewise for local "insn".
9425         (cfg_layout_delete_block): Likewise for locals "insn", "next",
9426         "prev", "remaints".
9427         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
9428         (rtl_block_empty_p): Likewise.
9429         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
9430         "split_point", "last".
9431         (rtl_block_ends_with_call_p): Likewise for local "insn".
9432         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
9433         const rtx_insn *.
9434         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
9435         "split_at_insn" from rtx to rtx_insn *.
9436         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
9437         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
9438         to const rtx_insn *.
9439         (rtl_account_profile_record): Likewise.
9440
9441 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9442
9443         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
9444         rtx to rtx_insn *.
9445         (average_num_loop_insns): Likewise.
9446         (init_set_costs): Likewise for local "seq".
9447         (seq_cost): Likewise for param "seq", from const_rtx to const
9448         rtx_insn *.
9449
9450 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9451
9452         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
9453         rtx to rtx_insn *.
9454
9455 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9456
9457         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
9458         "f1" and "f2" from rtx * to rtx_insn **.
9459         (flow_find_head_matching_sequence): Likewise.
9460
9461         * cfgcleanup.c (try_simplify_condjump): Strengthen local
9462         "cbranch_insn" from rtx to rtx_insn *.
9463         (thread_jump): Likewise for local "insn".
9464         (try_forward_edges): Likewise for local "last".
9465         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
9466         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
9467         "real_b_end".
9468         (can_replace_by): Likewise for params "i1", "i2".
9469         (old_insns_match_p): Likewise.
9470         (merge_notes): Likewise.
9471         (walk_to_nondebug_insn): Likewise for param "i1".
9472         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
9473         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
9474         "afterlast1", "afterlast2" from rtx to rtx_insn *.
9475         (flow_find_head_matching_sequence): Strengthen params "f1" and
9476         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
9477         "last1", "last2", "beforelast1", "beforelast2" from rtx to
9478         rtx_insn *.
9479         (outgoing_edges_match): Likewise for locals "last1", "last2".
9480         (try_crossjump_to_edge): Likewise for local "insn".
9481         Replace call to for_each_rtx with for_each_rtx_in_insn.
9482
9483         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
9484         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
9485         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
9486         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
9487         (try_optimize_cfg): Strengthen local "last" from rtx to
9488         rtx_insn *.
9489         (delete_dead_jumptables): Likewise for locals "insn", "next",
9490         "label".
9491
9492         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
9493         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
9494         "rtx else_first_tail", to reflect the basic-block.h changes above.
9495
9496 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9497
9498         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
9499         rtx_insn *.
9500         (purge_dead_tablejump_edges): Likewise.
9501         (find_bb_boundaries): Likewise for locals "insn", "end",
9502         "flow_transfer_insn".
9503
9504 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9505
9506         * caller-save.c (save_call_clobbered_regs): Strengthen locals
9507         "ins" and "prev" from rtx to rtx_insn *.
9508
9509 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9510
9511         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
9512         rtx_insn *.
9513         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
9514         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
9515         "scan_start".
9516         (load_register_parameters): Likewise for local "before_arg".
9517         (check_sibcall_argument_overlap): Likewise for param "insn".
9518         (expand_call): Likewise for locals "normal_call_insns",
9519         "tail_call_insns", "insns", "before_call", "after_args",
9520         "before_arg", "last", "prev".  Strengthen one of the "last" from
9521         rtx to rtx_call_insn *.
9522         (fixup_tail_calls): Strengthen local "insn" from rtx to
9523         rtx_insn *.
9524         (emit_library_call_value_1): Likewise for locals "before_call" and
9525         "last".
9526
9527 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9528
9529         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
9530         and "last" from rtx to rtx_insn *.
9531         (expand_builtin_nonlocal_goto): Likewise for local "insn".
9532         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
9533         rtx_call_insn *.
9534         (expand_errno_check): Strengthen local "lab" from rtx to
9535         rtx_code_label *.
9536         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
9537         rtx_insn *.
9538         (expand_builtin_mathfn_2): Likewise.
9539         (expand_builtin_mathfn_ternary): Likewise.
9540         (expand_builtin_mathfn_3): Likewise.
9541         (expand_builtin_interclass_mathfn): Likewise for local "last".
9542         (expand_builtin_int_roundingfn): Likewise for local "insns".
9543         (expand_builtin_int_roundingfn_2): Likewise.
9544         (expand_builtin_strlen): Likewise for local "before_strlen".
9545         (expand_builtin_strncmp): Likewise for local "seq".
9546         (expand_builtin_signbit): Likewise for local "last".
9547         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
9548         from rtx to rtx_code_label *.
9549         (expand_stack_restore):  Strengthen local "prev" from rtx to
9550         rtx_insn *.
9551
9552 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9553
9554         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
9555         to rtx_insn *.
9556         (struct btr_def_s): Likewise.
9557         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
9558         const rtx_insn *.
9559         (add_btr_def): Likewise.
9560         (new_btr_user): Likewise.
9561         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
9562         rtx to rtx_insn *.
9563         (link_btr_uses): Likewise.
9564         (move_btr_def): Likewise for locals "insp", "old_insn",
9565         "new_insn".  Add checked cast to rtx_insn * for now on result of
9566         gen_move_insn.
9567         (can_move_up): Strengthen param "insn" from const_rtx to
9568         const rtx_insn *.
9569
9570 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9571
9572         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
9573         rtx_insn *.
9574         (get_uncond_jump_length): Likewise for locals "label", "jump".
9575         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
9576         "jump", "insn".
9577         (add_labels_and_missing_jumps): Likewise for local "new_jump".
9578         (fix_up_fall_thru_edges): Likewise for local "old_jump".
9579         (find_jump_block): Likewise for local "insn".
9580         (fix_crossing_conditional_branches): Likewise for locals
9581         "old_jump", "new_jump".
9582         (fix_crossing_unconditional_branches): Likewise for locals
9583         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
9584         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
9585
9586 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9587
9588         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
9589         rtx to rtx_insn *.
9590         (struct mem_insn): Likewise for field "insn".
9591         (reg_next_use): Strengthen from rtx * to rtx_insn **.
9592         (reg_next_inc_use): Likewise.
9593         (reg_next_def): Likewise.
9594         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
9595         from rtx to rtx_insn *.
9596         (move_insn_before): Likewise for param "next_insn" and local "insns".
9597         (attempt_change): Likewise for local "mov_insn".
9598         (try_merge): Likewise for param "last_insn".
9599         (get_next_ref): Likewise for return type and local "insn".
9600         Strengthen param "next_array" from rtx * to rtx_insn **.
9601         (parse_add_or_inc): Strengthen param "insn" from rtx to
9602         rtx_insn *.
9603         (find_inc): Likewise for locals "insn" and "other_insn" (three of
9604         the latter).
9605         (merge_in_block): Likewise for locals "insn", "curr",
9606         "other_insn".
9607         (pass_inc_dec::execute): Update allocations of the arrays to
9608         reflect the stronger types.
9609
9610 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9611
9612         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
9613         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
9614         from rtx to rtx_code_label *.
9615
9616 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9617
9618         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
9619         to rtx_insn *.
9620
9621 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9622
9623         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
9624         generated a warning and prevented bootstrapping the compiler.
9625
9626 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9627
9628         * rtl.h (delete_related_insns): Strengthen return type from rtx to
9629         rtx_insn *.
9630
9631         * jump.c (delete_related_insns): Likewise, also for locals "next"
9632         and "prev".
9633
9634 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9635
9636         * genautomata.c (output_internal_insn_latency_func): When writing
9637         the function "internal_insn_latency" to insn-automata.c,
9638         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
9639         allowing the optional guard function of (define_bypass) clauses to
9640         expect a pair of rtx_insn *, rather than a pair of rtx.
9641         (output_insn_latency_func): When writing the function
9642         "insn_latency", add an "uncast_" prefix to params "insn" and
9643         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
9644         using checked casts from the params, thus enabling the above
9645         change to the generated "internal_insn_latency" function.
9646
9647 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
9648
9649         PR tree-optimization/62091
9650         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
9651         handle correctly arrays.
9652         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
9653         inheritance binfos.
9654         (record_known_type): Walk into inner type.
9655         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
9656         condition on no type changes.
9657
9658 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9659
9660         * genattrtab.c (write_attr_get): Within the generated get_attr_
9661         functions, rename param "insn" to "uncast_insn" and reintroduce
9662         "insn" as an local rtx_insn * using a checked cast, so that "insn"
9663         is an rtx_insn * within insn-attrtab.c
9664
9665 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9666
9667         * output.h (peephole): Strengthen return type from rtx to
9668         rtx_insn *.
9669         * rtl.h (delete_for_peephole): Likewise for both params.
9670         * genpeep.c (main): In generated "peephole" function, strengthen
9671         return type and local "insn" from rtx to rtx_insn *.  For now,
9672         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
9673         rtx_insn *, with a checked cast.
9674         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
9675         locals "insn", "next", "prev" from rtx to rtx_insn *.
9676
9677 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
9678
9679         PR tree-optimization/62112
9680         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
9681         * gimple-iterator.h (gsi_replace): Return bool.
9682         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
9683         moved from ref_may_alias_global_p.
9684         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
9685         New overloads.
9686         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
9687         (stmt_kills_ref_p_1): Rename...
9688         (stmt_kills_ref_p): ... to this.
9689         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
9690         stmt_kills_ref_p): Declare.
9691         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
9692         Move the self-assignment case...
9693         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
9694
9695 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9696
9697         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9698
9699         * emit-rtl.c (try_split): Likewise, also for locals "before" and
9700         "after".  For now, don't strengthen param "trial", which requires
9701         adding checked casts when returning it.
9702
9703 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9704
9705         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9706         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
9707         "var_location" hook from rtx to rtx_insn *.
9708         (debug_nothing_rtx): Delete in favor of...
9709         (debug_nothing_rtx_code_label): New prototype.
9710         (debug_nothing_rtx_rtx): Delete unused prototype.
9711         (debug_nothing_rtx_insn): New prototype.
9712
9713         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9714         invoking debug_hooks->var_location (in two places, one in a NOTE
9715         case of a switch statement, the other guarded by a CALL_P
9716         conditional.  Add checked cast to rtx_code_label * when invoking
9717         debug_hooks->label (within CODE_LABEL case of switch statement).
9718
9719         * dbxout.c (dbx_debug_hooks): Update "label" hook from
9720         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
9721         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9722         (xcoff_debug_hooks): Likewise.
9723         * debug.c (do_nothing_debug_hooks): Likewise.
9724         (debug_nothing_rtx): Delete in favor of...
9725         (debug_nothing_rtx_insn): New function.
9726         (debug_nothing_rtx_rtx): Delete unused function.
9727         (debug_nothing_rtx_code_label): New function.
9728         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9729         debug_nothing_rtx to debug_nothing_rtx_code_label.
9730         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9731         to rtx_insn *.
9732         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9733         debug_nothing_rtx to debug_nothing_rtx_insn.
9734         (sdbout_label): Strengthen param "insn" from rtx to
9735         rtx_code_label *.
9736         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9737         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
9738         "var_location" hook from debug_nothing_rtx to
9739         debug_nothing_rtx_insn.
9740
9741 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9742
9743         * recog.h (insn_output_fn): Update this function typedef to match
9744         the changes below to the generated output functions, strengthening
9745         the 2nd param from rtx to rtx_insn *.
9746
9747         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9748         insn when invoking an output function, to match the new signature
9749         of insn_output_fn with a stronger second param.
9750
9751         * genconditions.c (write_header): In the generated code for
9752         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9753         to match the other changes in this patch.
9754
9755         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9756         the generated "gen_" functions from rtx to rtx_insn * within their
9757         implementations.
9758
9759         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9760         the subfunctions within the generated "recog_", "split", "peephole2"
9761         function trees from rtx to rtx_insn *.  For now, the top-level
9762         generated functions ("recog", "split", "peephole2") continue to
9763         take a plain rtx for "insn", to avoid introducing dependencies on
9764         other patches.  Rename this 2nd param from "insn" to
9765         "uncast_insn", and reintroduce "insn" as a local variable of type
9766         rtx_insn *, initialized at the top of the generated function with
9767         a checked cast on "uncast_insn".
9768         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9769         the generated "gen_" functions from rtx to rtx_insn * within their
9770         prototypes.
9771
9772         * genoutput.c (process_template): Strengthen the 2nd param within
9773         the generated "output_" functions "insn" from rtx to rtx_insn *.
9774
9775 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9776
9777         * tree-profile.c (tree_profiling): Skip external functions
9778         when doing coverage instrumentation.
9779         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9780
9781 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9782
9783         * config/rs6000/altivec.h (vec_cpsgn): New #define.
9784         (vec_mergee): Likewise.
9785         (vec_mergeo): Likewise.
9786         (vec_cntlz): Likewise.
9787         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9788         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9789         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9790         VMRGEW, and VMRGOW.
9791         * doc/extend.texi: Document various forms of vec_cpsgn,
9792         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9793         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9794         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9795         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9796         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9797
9798 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9799
9800         * config/rs6000/rs6000.c (context.h): New include.
9801         (tree-pass.h): Likewise.
9802         (make_pass_analyze_swaps): New decl.
9803         (rs6000_option_override): Register pass_analyze_swaps.
9804         (swap_web_entry): New subsclass of web_entry_base (df.h).
9805         (special_handling_values): New enum.
9806         (union_defs): New function.
9807         (union_uses): Likewise.
9808         (insn_is_load_p): Likewise.
9809         (insn_is_store_p): Likewise.
9810         (insn_is_swap_p): Likewise.
9811         (rtx_is_swappable_p): Likewise.
9812         (insn_is_swappable_p): Likewise.
9813         (chain_purpose): New enum.
9814         (chain_contains_only_swaps): New function.
9815         (mark_swaps_for_removal): Likewise.
9816         (swap_const_vector_halves): Likewise.
9817         (adjust_subreg_index): Likewise.
9818         (permute_load): Likewise.
9819         (permute_store): Likewise.
9820         (handle_special_swappables): Likewise.
9821         (replace_swap_with_copy): Likewise.
9822         (dump_swap_insn_table): Likewise.
9823         (rs6000_analyze_swaps): Likewise.
9824         (pass_data_analyze_swaps): New pass_data.
9825         (pass_analyze_swaps): New rtl_opt_pass.
9826         (make_pass_analyze_swaps): New function.
9827         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9828
9829 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9830
9831         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9832         type from rtx to rtx_insn *.
9833         (create_copy_of_insn_rtx): Likewise.
9834         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9835         (create_copy_of_insn_rtx): Likewise, also for local "res".
9836
9837 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9838
9839         * rtl.h (find_first_parameter_load): Strengthen return type from
9840         rtx to rtx_insn *.
9841         * rtlanal.c (find_first_parameter_load): Strengthen return type
9842         from rtx to rtx_insn *.  Add checked cast for now, to postpone
9843         strengthening the params.
9844
9845 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9846
9847         PR fortran/44054
9848         * diagnostic.c: Set default caret.
9849         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9850         line is needed.
9851         * diagnostic.h (struct diagnostic_context):
9852
9853 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9854
9855         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9856         (sel_bb_head): Strengthen return type insn_t (currently just an
9857         rtx) to rtx_insn *.
9858         (sel_bb_end): Likewise.
9859
9860         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9861         (sel_bb_head): Strengthen return type and local "head" from
9862         insn_t (currently just an rtx) to rtx_insn *.
9863         (sel_bb_end): Likewise for return type.
9864         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9865         working with insn.
9866
9867 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9868
9869         * basic-block.h (get_last_bb_insn): Strengthen return type from
9870         rtx to rtx_insn *.
9871         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9872         end".
9873
9874 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9875
9876         PR fortran/44054
9877         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9878          to here ...
9879         (diagnostic_report_diagnostic): ... from here.
9880         * toplev.c (general_init): Move code to c-family.
9881
9882 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9883
9884         * df.h (web_entry_base): Replace existing struct web_entry with a
9885         new class web_entry_base with only the predecessor member.
9886         (unionfind_root): Remove declaration and move to class member.
9887         (unionfind_union): Remove declaration and move to friend
9888         function.
9889         (union_defs): Remove declaration.
9890         * web.c (web_entry_base::unionfind_root): Modify to be member
9891         function and adjust accessors.
9892         (unionfind_union): Modify to be friend function and adjust
9893         accessors.
9894         (web_entry): New subclass of web_entry_base containing the reg
9895         member.
9896         (union_match_dups): Modify for struct -> class changes.
9897         (union_defs): Likewise.
9898         (entry_register): Likewise.
9899         (pass_web::execute): Likewise.
9900
9901 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
9902
9903         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9904         builtin define __VEC_ELEMENT_REG_ORDER__.
9905
9906 2014-08-20  Martin Jambor  <mjambor@suse.cz>
9907             Wei Mi  <wmi@google.com>
9908
9909         PR ipa/60449
9910         PR middle-end/61776
9911         * tree-ssa-operands.c (update_stmt_operands): Remove
9912         MODIFIED_NORETURN_CALLS.
9913         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9914         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9915         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9916         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9917         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9918         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9919         (gimple_call_set_ctrl_altering): New func.
9920         (gimple_call_ctrl_altering_p): Ditto.
9921         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9922         (make_blocks): Use gimple_call_initialize_ctrl_altering.
9923         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9924         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9925         remove MODIFIED_NORETURN_CALLS.
9926
9927 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9928
9929         * coverage.c (coverage_compute_profile_id): Return non-0;
9930         also handle symbols with unique name.
9931         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9932
9933 2014-08-20  Steve Ellcey  <sellcey@mips.com>
9934
9935         PR middle-end/49191
9936         * doc/sourcebuild.texi (non_strict_align): New.
9937
9938 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9939
9940         * cgraphunit.c (ipa_passes, compile): Reshedule
9941         symtab_remove_unreachable_nodes passes; update comments.
9942         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9943         TODO_remove_functions before the pass; the functions ought to be
9944         already removed.
9945         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9946         TODO_remove_functions.
9947         * passes.c (pass_data_early_local_passes): Do not schedule function
9948         removal.
9949         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9950
9951 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9952
9953         PR c/59304
9954         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9955         before setting the option.
9956         * diagnostic.c (diagnostic_classify_diagnostic): Record
9957         command-line status.
9958
9959 2014-08-20  Richard Biener  <rguenther@suse.de>
9960
9961         PR lto/62190
9962         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9963         to build uint{16,32,64}_type_node.
9964
9965 2014-08-20  Terry Guo  <terry.guo@arm.com>
9966
9967         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9968         with immediate_operand.
9969
9970 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
9971
9972         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9973         "insn" from an as_a to a safe_as_a, for the case when "insn" is
9974         NULL.
9975
9976 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9977
9978         PR preprocessor/51303
9979         * incpath.c (remove_duplicates): Use cpp_warning.
9980
9981 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9982
9983         PR c/60975
9984         PR c/53063
9985         * doc/options.texi (CPP): Document it.
9986         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9987         * optc-gen.awk: Handle CPP.
9988         * opth-gen.awk: Likewise.
9989
9990 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9991
9992         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9993         rtx_insn *.
9994         (duplicate_insn_chain): Likewise.
9995         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9996         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
9997         checked cast for now (until we can strengthen the params in the
9998         same way).
9999         (duplicate_insn_chain): Likewise.
10000
10001 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10002
10003         * rtl.h (next_cc0_user): Strengthen return type from rtx to
10004         rtx_insn *.
10005         (prev_cc0_setter): Likewise.
10006
10007         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
10008         rtx_insn *, adding checked casts for now as necessary.
10009         (prev_cc0_setter): Likewise.
10010
10011 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10012
10013         * expr.h (emit_move_insn): Strengthen return type from rtx to
10014         rtx_insn *.
10015         (emit_move_insn_1): Likewise.
10016         (emit_move_complex_push): Likewise.
10017         (emit_move_complex_parts): Likewise.
10018
10019         * expr.c (emit_move_via_integer): Strengthen return type from rtx
10020         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
10021         with insns.
10022         (emit_move_complex_push): Strengthen return type from rtx to
10023         rtx_insn *.
10024         (emit_move_complex): Likewise, also for local "ret".
10025         (emit_move_ccmode): Likewise.
10026         (emit_move_multi_word): Likewise for return type and locals
10027         "last_insn", "seq".
10028         (emit_move_insn_1): Likewise for return type and locals "result",
10029         "ret".
10030         (emit_move_insn): Likewise for return type and local "last_insn".
10031         (compress_float_constant): Likewise.
10032
10033 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10034
10035         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
10036         from rtx to rtx_insn *.
10037
10038         * rtl.h (emit_insn_before): Likewise.
10039         (emit_insn_before_noloc): Likewise.
10040         (emit_insn_before_setloc): Likewise.
10041         (emit_jump_insn_before): Likewise.
10042         (emit_jump_insn_before_noloc): Likewise.
10043         (emit_jump_insn_before_setloc): Likewise.
10044         (emit_call_insn_before): Likewise.
10045         (emit_call_insn_before_noloc): Likewise.
10046         (emit_call_insn_before_setloc): Likewise.
10047         (emit_debug_insn_before): Likewise.
10048         (emit_debug_insn_before_noloc): Likewise.
10049         (emit_debug_insn_before_setloc): Likewise.
10050         (emit_label_before): Likewise.
10051         (emit_insn_after): Likewise.
10052         (emit_insn_after_noloc): Likewise.
10053         (emit_insn_after_setloc): Likewise.
10054         (emit_jump_insn_after): Likewise.
10055         (emit_jump_insn_after_noloc): Likewise.
10056         (emit_jump_insn_after_setloc): Likewise.
10057         (emit_call_insn_after): Likewise.
10058         (emit_call_insn_after_noloc): Likewise.
10059         (emit_call_insn_after_setloc): Likewise.
10060         (emit_debug_insn_after): Likewise.
10061         (emit_debug_insn_after_noloc): Likewise.
10062         (emit_debug_insn_after_setloc): Likewise.
10063         (emit_label_after): Likewise.
10064         (emit_insn): Likewise.
10065         (emit_debug_insn): Likewise.
10066         (emit_jump_insn): Likewise.
10067         (emit_call_insn): Likewise.
10068         (emit_label): Likewise.
10069         (gen_clobber): Likewise.
10070         (emit_clobber): Likewise.
10071         (gen_use): Likewise.
10072         (emit_use): Likewise.
10073         (emit): Likewise.
10074
10075         (emit_barrier_before): Strengthen return type from rtx to
10076         rtx_barrier *.
10077         (emit_barrier_after): Likewise.
10078         (emit_barrier): Likewise.
10079
10080         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
10081         from rtx to rtx_insn *.  Add checked casts for now when converting
10082         "last" from rtx to rtx_insn *.
10083         (emit_insn_before_noloc): Likewise for return type.
10084         (emit_jump_insn_before_noloc): Likewise.
10085         (emit_call_insn_before_noloc): Likewise.
10086         (emit_debug_insn_before_noloc): Likewise.
10087         (emit_barrier_before): Strengthen return type and local "insn"
10088         from rtx to rtx_barrier *.
10089         (emit_label_before): Strengthen return type from rtx to
10090         rtx_insn *.  Add checked cast for now when returning param
10091         (emit_pattern_after_noloc): Strengthen return type from rtx to
10092         rtx_insn *.  Add checked casts for now when converting "last" from
10093         rtx to rtx_insn *.
10094         (emit_insn_after_noloc): Strengthen return type from rtx to
10095         rtx_insn *.
10096         (emit_jump_insn_after_noloc): Likewise.
10097         (emit_call_insn_after_noloc): Likewise.
10098         (emit_debug_insn_after_noloc): Likewise.
10099         (emit_barrier_after): Strengthen return type from rtx to
10100         rtx_barrier *.
10101         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
10102         Add checked cast for now when converting "label" from rtx to
10103         rtx_insn *.
10104         (emit_pattern_after_setloc): Strengthen return type from rtx to
10105         rtx_insn *.  Add checked casts for now when converting "last" from
10106         rtx to rtx_insn *.
10107         (emit_pattern_after): Strengthen return type from rtx to
10108         rtx_insn *.
10109         (emit_insn_after_setloc): Likewise.
10110         (emit_insn_after): Likewise.
10111         (emit_jump_insn_after_setloc): Likewise.
10112         (emit_jump_insn_after): Likewise.
10113         (emit_call_insn_after_setloc): Likewise.
10114         (emit_call_insn_after): Likewise.
10115         (emit_debug_insn_after_setloc): Likewise.
10116         (emit_debug_insn_after): Likewise.
10117         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
10118         when converting "last" from rtx to rtx_insn *.
10119         (emit_pattern_before): Strengthen return type from rtx to
10120         rtx_insn *.
10121         (emit_insn_before_setloc): Likewise.
10122         (emit_insn_before): Likewise.
10123         (emit_jump_insn_before_setloc): Likewise.
10124         (emit_jump_insn_before): Likewise.
10125         (emit_call_insn_before_setloc): Likewise.
10126         (emit_call_insn_before): Likewise.
10127         (emit_debug_insn_before_setloc): Likewise.
10128         (emit_debug_insn_before): Likewise.
10129         (emit_insn): Strengthen return type and locals "last", "insn",
10130         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
10131         within cases where we know we have an insn.
10132         (emit_debug_insn): Likewise.
10133         (emit_jump_insn): Likewise.
10134         (emit_call_insn): Strengthen return type and local "insn" from rtx
10135         to rtx_insn *.
10136         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
10137         a checked cast to rtx_insn * for now on "label".
10138         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
10139         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
10140         (emit_use): Likewise.
10141         (gen_use): Likewise, also for local "seq".
10142         (emit): Likewise for return type and local "insn".
10143         (rtx_insn): Likewise for return type and local "new_rtx".
10144
10145         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
10146         from rtx to rtx_barrier *.
10147
10148         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
10149         changed return type from rtx to rtx_insn *, we must update
10150         "emit_fn" type, and this in turn means updating...
10151         (frame_insn): ...this.  Strengthen return type from rtx to
10152         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
10153
10154 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10155
10156         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
10157         rtx to rtx_jump_table_data *.  Also for local.
10158         * rtl.h (emit_jump_table_data): Likewise.
10159
10160 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10161
10162         * basic-block.h (create_basic_block_structure): Strengthen third
10163         param "bb_note" from rtx to rtx_note *.
10164         * rtl.h (emit_note_before): Strengthen return type from rtx to
10165         rtx_note *.
10166         (emit_note_after): Likewise.
10167         (emit_note): Likewise.
10168         (emit_note_copy): Likewise.  Also, strengthen param similarly.
10169         * function.h (struct rtl_data): Strengthen field
10170         "x_stack_check_probe_note" from rtx to rtx_note *.
10171
10172         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
10173         from rtx to rtx_note *.
10174         * cfgrtl.c (create_basic_block_structure): Strengthen third param
10175         "bb_note" from rtx to rtx_note *.
10176         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
10177         when calling emit_note_copy.
10178         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
10179         rtx_note *.
10180         (emit_note_after): Likewise.
10181         (emit_note_before): Likewise.
10182         (emit_note_copy): Likewise.  Also, strengthen param similarly.
10183         (emit_note): Likewise.
10184         * except.c (emit_note_eh_region_end): Likewise for return type.
10185         Strengthen local "next" from rtx to rtx_insn *.
10186         (convert_to_eh_region_ranges): Strengthen local "note"
10187         from rtx to rtx_note *.
10188         * final.c (change_scope): Likewise.
10189         (reemit_insn_block_notes): Likewise, for both locals named "note".
10190         Also, strengthen local "insn" from rtx to rtx_insn *.
10191         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
10192         rtx to rtx_note *.
10193         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
10194         strengthen local "seq" from rtx to rtx_insn *.
10195         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
10196         to rtx_note *.
10197         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
10198         vec<rtx_note *>.
10199         (get_bb_note_from_pool): Strengthen return type from rtx to
10200         rtx_note *.
10201         (sel_create_basic_block): Strengthen local "new_bb_note" from
10202         insn_t to rtx_note *.
10203         * var-tracking.c (emit_note_insn_var_location): Strengthen local
10204         "note" from rtx to rtx_note *.
10205         (emit_notes_in_bb): Likewise.
10206
10207 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10208
10209         * function.h (struct rtl_data): Strengthen field
10210         "x_parm_birth_insn" from rtx to rtx_insn *.
10211         * function.c (struct assign_parm_data_all): Strengthen fields
10212         "first_conversion_insn" and "last_conversion_insn" from rtx to
10213         rtx_insn *.
10214
10215 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10216
10217         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
10218         to rtx_insn *; also for local "var_end_seq".
10219         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
10220         (maybe_cleanup_end_of_block): Likewise for param "last" and local
10221         "insn".
10222         (expand_gimple_cond): Likewise for locals "last2" and "last".
10223         (mark_transaction_restart_calls): Likewise for local "insn".
10224         (expand_gimple_stmt): Likewise for return type and locals "last"
10225         and "insn".
10226         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
10227         (avoid_complex_debug_insns): Likewise for param "insn".
10228         (expand_debug_locations): Likewise for locals "insn", "last",
10229         "prev_insn" and "insn2".
10230         (expand_gimple_basic_block): Likewise for local "last".
10231         (construct_exit_block): Likewise for locals "head", "end",
10232         "orig_end".
10233         (pass_expand::execute): Likewise for locals "var_seq",
10234         "var_ret_seq", "next".
10235
10236 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10237
10238         * asan.h (asan_emit_stack_protection): Strengthen return type from
10239         rtx to rtx_insn *.
10240         * asan.c (asan_emit_stack_protection): Likewise.  Add local
10241         "insns" to hold the return value.
10242
10243 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10244
10245         * basic-block.h (bb_note): Strengthen return type from rtx to
10246         rtx_note *.
10247         * sched-int.h (bb_note): Likewise.
10248         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
10249
10250 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10251
10252         * rtl.h (make_insn_raw): Strengthen return type from rtx to
10253         rtx_insn *.
10254
10255         * emit-rtl.c (make_insn_raw): Strengthen return type and local
10256         "insn" from rtx to rtx_insn *.
10257         (make_debug_insn_raw): Strengthen return type from rtx to
10258         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
10259         (make_jump_insn_raw):  Strengthen return type from rtx to
10260         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
10261         (make_call_insn_raw):  Strengthen return type from rtx to
10262         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
10263         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
10264         callback from rtx to rtx_insn *; likewise for local "insn" and
10265         "next", adding a checked cast to rtx_insn in the relevant cases of
10266         the switch statement.
10267         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
10268         callback from rtx to rtx_insn *.
10269         (emit_pattern_after_setloc): Likewise.
10270         (emit_pattern_after): Likewise.
10271         (emit_pattern_before_setloc): Likewise.
10272         (emit_pattern_before): Likewise.
10273
10274 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10275
10276         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
10277         rtx_call_insn *.
10278         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
10279         accepting an rtx_insn *.
10280         (last_call_insn): Strengthen return type from rtx to
10281         rtx_call_insn *.
10282
10283 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10284
10285         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
10286         "insns" from rtx to rtx_insn *.
10287         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
10288         locals "insn" and "prev".
10289
10290 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10291
10292         * rtl.h (tablejump_p): Strengthen third param from rtx * to
10293         rtx_jump_table_data **.
10294
10295         * cfgbuild.c (make_edges): Introduce local "table", using it in
10296         place of "tmp" for jump table data.
10297         (find_bb_boundaries): Strengthen local "table" from rtx to
10298         rtx_jump_table_data *.
10299         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10300         (outgoing_edges_match): Likewise for locals "table1" and "table2".
10301         (try_crossjump_to_edge): Likewise.
10302         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
10303         "table".
10304         (patch_jump_insn): Introduce local "table", using it in place of
10305         "tmp" for jump table data.
10306         (force_nonfallthru_and_redirect): Introduce local "table", so that
10307         call to tablejump_p can receive an rtx_jump_table_data **.  Update
10308         logic around the call to overwrite "note" appropriately if
10309         tablejump_p returns non-zero.
10310         (get_last_bb_insn): Introduce local "table", using it in place of
10311         "tmp" for jump table data.
10312         * dwarf2cfi.c (create_trace_edges): Likewise.
10313
10314         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
10315         from rtx to rtx_jump_table_data *.
10316         (create_fix_barrier): Strengthen local "tmp" from rtx to
10317         rtx_jump_table_data *.
10318         (arm_reorg): Likewise for local "table".
10319
10320         * config/s390/s390.c (s390_chunkify_start): Likewise.
10321
10322         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
10323
10324         * jump.c (delete_related_insns): Strengthen local "lab_next" from
10325         rtx to rtx_jump_table_data *.
10326
10327         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
10328         rtx_jump_table_data **.  Add a checked cast when writing through
10329         the pointer: we know there that local "table" is non-NULL and that
10330         JUMP_TABLE_DATA_P (table) holds.
10331         (label_is_jump_target_p): Introduce local "table", using it in
10332         place of "tmp" for jump table data.
10333
10334 2014-08-19  Marek Polacek  <polacek@redhat.com>
10335
10336         PR c++/62153
10337         * doc/invoke.texi: Document -Wbool-compare.
10338
10339 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10340
10341         * rtl.h (entry_of_function): Strengthen return type from rtx to
10342         rtx_insn *.
10343         * cfgrtl.c (entry_of_function): Likewise.
10344
10345 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10346
10347         * emit-rtl.h (get_insns): Strengthen return type from rtx to
10348         rtx_insn *, adding a checked cast for now.
10349         (get_last_insn): Likewise.
10350
10351 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10352
10353         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
10354         rtx_code_label *.
10355
10356         * emit-rtl.c (gen_label_rtx): Likewise.
10357
10358 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10359
10360         * rtl.h (previous_insn): Strengthen return type from rtx to
10361         rtx_insn *.
10362         (next_insn): Likewise.
10363         (prev_nonnote_insn): Likewise.
10364         (prev_nonnote_insn_bb): Likewise.
10365         (next_nonnote_insn): Likewise.
10366         (next_nonnote_insn_bb): Likewise.
10367         (prev_nondebug_insn): Likewise.
10368         (next_nondebug_insn): Likewise.
10369         (prev_nonnote_nondebug_insn): Likewise.
10370         (next_nonnote_nondebug_insn): Likewise.
10371         (prev_real_insn): Likewise.
10372         (next_real_insn): Likewise.
10373         (prev_active_insn): Likewise.
10374         (next_active_insn): Likewise.
10375
10376         * emit-rtl.c (next_insn): Strengthen return type from rtx to
10377         rtx_insn *, adding a checked cast.
10378         (previous_insn): Likewise.
10379         (next_nonnote_insn): Likewise.
10380         (next_nonnote_insn_bb): Likewise.
10381         (prev_nonnote_insn): Likewise.
10382         (prev_nonnote_insn_bb): Likewise.
10383         (next_nondebug_insn): Likewise.
10384         (prev_nondebug_insn): Likewise.
10385         (next_nonnote_nondebug_insn): Likewise.
10386         (prev_nonnote_nondebug_insn): Likewise.
10387         (next_real_insn): Likewise.
10388         (prev_real_insn): Likewise.
10389         (next_active_insn): Likewise.
10390         (prev_active_insn): Likewise.
10391
10392         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
10393         param "stepfunc" so that it returns an rtx_insn * rather than an
10394         rtx, to track the change to prev_nonnote_insn_bb, which is the
10395         only function this is called with.
10396         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
10397
10398 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
10399
10400         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
10401         assert.
10402
10403 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10404
10405         * coretypes.h (class rtx_debug_insn): Add forward declaration.
10406         (class rtx_nonjump_insn): Likewise.
10407         (class rtx_jump_insn): Likewise.
10408         (class rtx_call_insn): Likewise.
10409         (class rtx_jump_table_data): Likewise.
10410         (class rtx_barrier): Likewise.
10411         (class rtx_code_label): Likewise.
10412         (class rtx_note): Likewise.
10413
10414         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
10415         adding the invariant DEBUG_INSN_P (X).
10416         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
10417         the invariant NONJUMP_INSN_P (X).
10418         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
10419         the invariant JUMP_P (X).
10420         (class rtx_call_insn): New, a subclass of rtx_insn, adding
10421         the invariant CALL_P (X).
10422         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
10423         invariant JUMP_TABLE_DATA_P (X).
10424         (class rtx_barrier): New, a subclass of rtx_insn, adding the
10425         invariant BARRIER_P (X).
10426         (class rtx_code_label): New, a subclass of rtx_insn, adding
10427         the invariant LABEL_P (X).
10428         (class rtx_note): New, a subclass of rtx_insn, adding
10429         the invariant NOTE_P(X).
10430         (is_a_helper <rtx_debug_insn *>::test): New.
10431         (is_a_helper <rtx_nonjump_insn *>::test): New.
10432         (is_a_helper <rtx_jump_insn *>::test): New.
10433         (is_a_helper <rtx_call_insn *>::test): New.
10434         (is_a_helper <rtx_jump_table_data *>::test): New functions,
10435         overloaded for both rtx and rtx_insn *.
10436         (is_a_helper <rtx_barrier *>::test): New.
10437         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
10438         for both rtx and rtx_insn *.
10439         (is_a_helper <rtx_note *>::test): New.
10440
10441 2014-08-19  Marek Polacek  <polacek@redhat.com>
10442
10443         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
10444         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10445         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
10446         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10447
10448 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10449
10450         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
10451         rtx_insn *.  To help with transition, for now, convert from an
10452         access macro into a pair of functions: BND_TO, returning an
10453         rtx_insn *, and...
10454         (SET_BND_TO): New function, for use where BND_TO is used as an
10455         lvalue.
10456
10457         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
10458         SET_BND_TO.
10459         (BND_TO): New function, adding a checked cast.
10460         (SET_BND_TO): New function.
10461
10462         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
10463         SET_BND_TO.
10464         (compute_av_set_on_boundaries): Likewise.
10465
10466 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
10467
10468         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
10469         destination if it is used in source.
10470         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
10471         (*popcount<mode>2_falsedep_1): Likewise.
10472
10473 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
10474
10475         PR other/62168
10476         * configure.ac: Set install_gold_as_default to no first.
10477         * configure: Regenerated.
10478
10479 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10480
10481         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
10482         "note_list" field will eventually be an rtx_insn *.  To help with
10483         transition, for now, convert from an access macro into a pair of
10484         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
10485         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
10486         used as an lvalue.
10487
10488         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
10489         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
10490
10491         * sel-sched-ir.c (init_bb): Likewise.
10492         (sel_restore_notes): Likewise.
10493         (move_bb_info): Likewise.
10494         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
10495         (SET_BB_NOTE_LIST): New function.
10496
10497 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10498
10499         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
10500         field will eventually be an rtx_insn *.  To help with transition,
10501         for now, convert from an access macro into a pair of functions:
10502         VINSN_INSN_RTX, returning an rtx_insn *, and...
10503         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
10504         is used as an lvalue.
10505
10506         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
10507         SET_VINSN_INSN_RTX where it's used as an lvalue.
10508         (VINSN_INSN_RTX): New function.
10509         (SET_VINSN_INSN_RTX): New function.
10510
10511 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10512
10513         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
10514         eventually be rtx_insn *, but to help with transition, for now,
10515         convert from an access macro into a pair of functions: DEP_PRO
10516         returning an rtx_insn * and...
10517         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
10518         lvalue, returning an rtx&.
10519         (DEP_CON): Analogous changes to DEP_PRO above.
10520         (SET_DEP_CON): Likewise.
10521
10522         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
10523         an lvalue to SET_DEP_CON.
10524         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
10525         (sd_copy_back_deps): Likewise for DEP_CON.
10526         (DEP_PRO): New function, adding a checked cast for now.
10527         (DEP_CON): Likewise.
10528         (SET_DEP_PRO): New function.
10529         (SET_DEP_CON): Likewise.
10530
10531 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
10532
10533         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
10534         (extra_options): Add i386/cygwin.opt.
10535         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
10536         (CPP_SPEC): Accept -pthread.
10537         (LINK_SPEC): Ditto.
10538         (GOMP_SELF_SPECS): Update comment.
10539         * config/i386/cygwin.opt: New file for -pthread flag.
10540
10541 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10542
10543         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
10544         * df.h (DF_REF_INSN): Convert from a macro to a function, so
10545         that we can return an rtx_insn *.
10546
10547 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
10548
10549         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
10550         when building executables, not DLLs.  Add --large-address-aware
10551         under the same conditions.
10552         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
10553         when building executables, not DLLs.  Add --large-address-aware
10554         under the same conditions when using -m32.
10555
10556         * config/i386/cygwin-stdint.h: Throughout, make type
10557         definitions dependent on target architecture, not host.
10558
10559 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10560
10561         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
10562         the return type from rtx to rtx_insn *,  which will enable various
10563         conversions in followup patches.  For now this is is done by a
10564         checked cast.
10565         (NEXT_INSN): Likewise.
10566         (SET_PREV_INSN): Convert to an inline function.  This is intended
10567         for use as an lvalue, and so returns an rtx& to allow in-place
10568         modification.
10569         (SET_NEXT_INSN): Likewise.
10570
10571 2014-07-08  Mark Wielaard  <mjw@redhat.com>
10572
10573         PR debug/59051
10574         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
10575
10576 2014-08-19  Marek Polacek  <polacek@redhat.com>
10577
10578         PR c/61271
10579         * cgraphunit.c (handle_alias_pairs): Fix condition.
10580
10581 2014-08-19  Richard Biener  <rguenther@suse.de>
10582
10583         * gimple-fold.c (fold_gimple_assign): Properly build a
10584         null-pointer constant when devirtualizing addresses.
10585
10586 2014-07-07  Mark Wielaard  <mjw@redhat.com>
10587
10588         * dwarf2out.c (decl_quals): New function.
10589         (modified_type_die): Take one cv_quals argument instead of two,
10590         one for const and one for volatile.
10591         (add_type_attribute): Likewise.
10592         (generic_parameter_die): Call add_type_attribute with one modifier
10593         argument.
10594         (base_type_for_mode): Likewise.
10595         (add_bounds_info): Likewise.
10596         (add_subscript_info): Likewise.
10597         (gen_array_type_die): Likewise.
10598         (gen_descr_array_type_die): Likewise.
10599         (gen_entry_point_die): Likewise.
10600         (gen_enumeration_type_die): Likewise.
10601         (gen_formal_parameter_die): Likewise.
10602         (gen_subprogram_die): Likewise.
10603         (gen_variable_die): Likewise.
10604         (gen_const_die): Likewise.
10605         (gen_field_die): Likewise.
10606         (gen_pointer_type_die): Likewise.
10607         (gen_reference_type_die): Likewise.
10608         (gen_ptr_to_mbr_type_die): Likewise.
10609         (gen_inheritance_die): Likewise.
10610         (gen_subroutine_type_die): Likewise.
10611         (gen_typedef_die): Likewise.
10612         (force_type_die): Likewise.
10613
10614 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10615
10616         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
10617         if unset.
10618         * configure: Regenerate.
10619
10620 2014-08-19  Richard Biener  <rguenther@suse.de>
10621
10622         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
10623         DECL_EXTERNALs in BLOCKs as non-references.
10624         * tree-streamer-out.c (streamer_write_chain): Likewise.
10625
10626 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10627             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10628             Anna Tikhonova  <anna.tikhonova@intel.com>
10629             Ilya Tocar  <ilya.tocar@intel.com>
10630             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10631             Ilya Verbin  <ilya.verbin@intel.com>
10632             Kirill Yukhin  <kirill.yukhin@intel.com>
10633             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10634
10635         * config/i386/sse.md
10636         (define_mode_iterator VI48_AVX512F): Delete.
10637         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
10638         (define_mode_iterator VI2_AVX512VL): Ditto.
10639         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
10640         Delete.
10641         (define_insn
10642         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
10643         New.
10644         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
10645         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
10646         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10647         with VI48_AVX512F_AVX512VL): New.
10648         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10649         with VI2_AVX512VL): Ditto.
10650
10651 2014-08-19  Marek Polacek  <polacek@redhat.com>
10652
10653         * doc/invoke.texi: Document -Wc99-c11-compat.
10654
10655 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10656
10657         * rtl.h (PREV_INSN): Split macro in two: the existing one,
10658         for rvalues, and...
10659         (SET_PREV_INSN): New macro, for use as an lvalue.
10660         (NEXT_INSN, SET_NEXT_INSN): Likewise.
10661
10662         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
10663         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
10664         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10665         (fixup_abnormal_edges): Likewise.
10666         (unlink_insn_chain): Likewise.
10667         (fixup_reorder_chain): Likewise.
10668         (cfg_layout_delete_block): Likewise.
10669         (cfg_layout_merge_blocks): Likewise.
10670         * combine.c (update_cfg_for_uncondjump): Likewise.
10671         * emit-rtl.c (link_insn_into_chain): Likewise.
10672         (remove_insn): Likewise.
10673         (delete_insns_since): Likewise.
10674         (reorder_insns_nobb): Likewise.
10675         (emit_insn_after_1): Likewise.
10676         * final.c (rest_of_clean_state): Likewise.
10677         (final_scan_insn): Likewise.
10678         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
10679         * haifa-sched.c (concat_note_lists): Likewise.
10680         (remove_notes): Likewise.
10681         (restore_other_notes): Likewise.
10682         (move_insn): Likewise.
10683         (unlink_bb_notes): Likewise.
10684         (restore_bb_notes): Likewise.
10685         * jump.c (delete_for_peephole): Likewise.
10686         * optabs.c (emit_libcall_block_1): Likewise.
10687         * reorg.c (emit_delay_sequence): Likewise.
10688         (fill_simple_delay_slots): Likewise.
10689         * sel-sched-ir.c (sel_move_insn): Likewise.
10690         (sel_remove_insn): Likewise.
10691         (get_bb_note_from_pool): Likewise.
10692         * sel-sched.c (move_nop_to_previous_block): Likewise.
10693
10694         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
10695         * config/c6x/c6x.c (gen_one_bundle): Likewise.
10696         (c6x_gen_bundles): Likewise.
10697         (hwloop_optimize): Likewise.
10698         * config/frv/frv.c (frv_function_prologue): Likewise.
10699         (frv_register_nop): Likewise.
10700         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10701         (ia64_reorg): Likewise.
10702         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10703         (mep_make_bundle): Likewise.
10704         (mep_bundle_insns): Likewise.
10705         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10706         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10707         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10708
10709 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10710
10711         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
10712         return type from rtx to rtx_insn *.
10713         (BB_END): Likewise.
10714         (BB_HEADER): Likewise.
10715         (BB_FOOTER): Likewise.
10716         (SET_BB_HEAD): Convert to a function.
10717         (SET_BB_END): Likewise.
10718         (SET_BB_HEADER): Likewise.
10719         (SET_BB_FOOTER): Likewise.
10720
10721         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10722         Strengthen the return type from rtx to rtx_insn *.  For now, this
10723         is done by adding a checked cast, but this will eventually
10724         become a field lookup.
10725         (BB_END): Likewise.
10726         (BB_HEADER): Likewise.
10727         (BB_FOOTER): Likewise.
10728         (SET_BB_HEAD): New function, from macro of same name.  This is
10729         intended for use as an lvalue, and so returns an rtx& to allow
10730         in-place modification.
10731         (SET_BB_END): Likewise.
10732         (SET_BB_HEADER): Likewise.
10733         (SET_BB_FOOTER): Likewise.
10734
10735 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10736
10737         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10738         for rvalues, and...
10739         (SET_BB_HEAD): New macro, for use as a lvalue.
10740         (BB_END, SET_BB_END): Likewise.
10741         (BB_HEADER, SET_BB_HEADER): Likewise.
10742         (BB_FOOTER, SET_BB_FOOTER): Likewise.
10743
10744         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10745         of BB_* macros into SET_BB_* macros.
10746         (fix_crossing_unconditional_branches): Likewise.
10747         * caller-save.c (save_call_clobbered_regs): Likewise.
10748         (insert_one_insn): Likewise.
10749         * cfgbuild.c (find_bb_boundaries): Likewise.
10750         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10751         (outgoing_edges_match): Likewise.
10752         (try_optimize_cfg): Likewise.
10753         * cfgexpand.c (expand_gimple_cond): Likewise.
10754         (expand_gimple_tailcall): Likewise.
10755         (expand_gimple_basic_block): Likewise.
10756         (construct_exit_block): Likewise.
10757         * cfgrtl.c (delete_insn): Likewise.
10758         (create_basic_block_structure): Likewise.
10759         (rtl_delete_block): Likewise.
10760         (rtl_split_block): Likewise.
10761         (emit_nop_for_unique_locus_between): Likewise.
10762         (rtl_merge_blocks): Likewise.
10763         (block_label): Likewise.
10764         (try_redirect_by_replacing_jump): Likewise.
10765         (emit_barrier_after_bb): Likewise.
10766         (fixup_abnormal_edges): Likewise.
10767         (record_effective_endpoints): Likewise.
10768         (relink_block_chain): Likewise.
10769         (fixup_reorder_chain): Likewise.
10770         (fixup_fallthru_exit_predecessor): Likewise.
10771         (cfg_layout_duplicate_bb): Likewise.
10772         (cfg_layout_split_block): Likewise.
10773         (cfg_layout_delete_block): Likewise.
10774         (cfg_layout_merge_blocks): Likewise.
10775         * combine.c (update_cfg_for_uncondjump): Likewise.
10776         * emit-rtl.c (add_insn_after): Likewise.
10777         (remove_insn): Likewise.
10778         (reorder_insns): Likewise.
10779         (emit_insn_after_1): Likewise.
10780         * haifa-sched.c (get_ebb_head_tail): Likewise.
10781         (restore_other_notes): Likewise.
10782         (move_insn): Likewise.
10783         (sched_extend_bb): Likewise.
10784         (fix_jump_move): Likewise.
10785         * ifcvt.c (noce_process_if_block): Likewise.
10786         (dead_or_predicable): Likewise.
10787         * ira.c (update_equiv_regs): Likewise.
10788         * reg-stack.c (change_stack): Likewise.
10789         * sel-sched-ir.c (sel_move_insn): Likewise.
10790         * sel-sched.c (move_nop_to_previous_block): Likewise.
10791
10792         * config/c6x/c6x.c (hwloop_optimize): Likewise.
10793         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10794
10795 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10796
10797         * rtl.h (for_each_rtx_in_insn): New function.
10798         * rtlanal.c (for_each_rtx_in_insn): Likewise.
10799
10800 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10801
10802         * coretypes.h (class rtx_insn): Add forward declaration.
10803
10804         * rtl.h: Include is-a.h.
10805         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10806         workaround to ensure gengtype knows inheritance is occurring,
10807         whilst continuing to use the pre-existing special-casing for
10808         rtx_def.
10809         (class rtx_insn): New subclass of rtx_def, adding the
10810         invariant that we're dealing with something we can sanely use
10811         INSN_UID, NEXT_INSN, PREV_INSN on.
10812         (is_a_helper <rtx_insn *>::test): New.
10813         (is_a_helper <const rtx_insn *>::test): New.
10814
10815 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10816
10817         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10818
10819 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10820
10821         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10822         comdats as extern.
10823
10824 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10825
10826         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10827         to BUILT_IN_UNREACHABLE.
10828
10829 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
10830
10831         PR target/62011
10832         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10833         New tune flag.
10834         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10835         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10836         (ffs<mode>2): Do not expand with tzcnt for
10837         TARGET_AVOID_FALSE_DEP_FOR_BMI.
10838         (ffssi2_no_cmove): Ditto.
10839         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10840         (ctz<mode>2): New expander.
10841         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10842         (*ctz<mode>2_falsedep): New insn.
10843         (*ctz<mode>2): Rename from ctz<mode>2.
10844         (clz<mode>2_lzcnt): New expander.
10845         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10846         (*clz<mode>2_lzcnt_falsedep): New insn.
10847         (*clz<mode>2): Rename from ctz<mode>2.
10848         (popcount<mode>2): New expander.
10849         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10850         (*popcount<mode>2_falsedep): New insn.
10851         (*popcount<mode>2): Rename from ctz<mode>2.
10852         (*popcount<mode>2_cmp): Remove.
10853         (*popcountsi2_cmp_zext): Ditto.
10854
10855 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
10856
10857         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10858         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10859         * config/microblaze/microblaze.h
10860         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10861
10862 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
10863
10864         PR other/62168
10865         * configure.ac: Set install_gold_as_default to no for
10866          --enable-gold=no.
10867          * configure: Regenerated.
10868
10869 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
10870
10871         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10872         * config.in: Add undef of HAVE_isl.
10873         * configure: Regenerate.
10874         * configure.ac: Add definition of HAVE_isl.
10875         * graphite-blocking.c: Add checking of HAVE_isl.
10876         * graphite-dependences.c: Likewise.
10877         * graphite-interchange.c: Likewise.
10878         * graphite-isl-ast-to-gimple.c: Likewise.
10879         * graphite-optimize-isl.c: Likewise.
10880         * graphite-poly.c: Likewise.
10881         * graphite-scop-detection.c: Likewise.
10882         * graphite-sese-to-poly.c: Likewise.
10883         * graphite.c: Likewise.
10884         * toplev.c: Replace the checking of HAVE_cloog with the checking
10885         of HAVE_isl.
10886
10887 2014-08-18  Richard Biener  <rguenther@suse.de>
10888
10889         PR tree-optimization/62090
10890         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10891         (fold_builtin_3): Do not fold snprintf.
10892         (fold_builtin_4): Likewise.
10893         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10894         moved from builtins.c.
10895         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10896         (gimple_fold_builtin): Do not fold sprintf here.
10897
10898 2014-08-18  Richard Biener  <rguenther@suse.de>
10899
10900         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10901         code to ...
10902         (maybe_canonicalize_mem_ref_addr): ... this function.
10903         (fold_stmt_1): Apply it here before all simplification.
10904
10905 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
10906
10907         PR ipa/61800
10908         * cgraph.h (cgraph_node::create_indirect_edge): Add
10909         compute_indirect_info param.
10910         * cgraph.c (cgraph_node::create_indirect_edge): Compute
10911         indirect_info only when it is required.
10912         * cgraphclones.c (cgraph_clone_edge): Do not recompute
10913         indirect_info fore cloned indirect edge.
10914
10915 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10916             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10917             Anna Tikhonova  <anna.tikhonova@intel.com>
10918             Ilya Tocar  <ilya.tocar@intel.com>
10919             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10920             Ilya Verbin  <ilya.verbin@intel.com>
10921             Kirill Yukhin  <kirill.yukhin@intel.com>
10922             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10923
10924         * config/i386/sse.md
10925         (define_mode_iterator VI8_AVX2_AVX512BW): New.
10926         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10927
10928 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10929             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10930             Anna Tikhonova  <anna.tikhonova@intel.com>
10931             Ilya Tocar  <ilya.tocar@intel.com>
10932             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10933             Ilya Verbin  <ilya.verbin@intel.com>
10934             Kirill Yukhin  <kirill.yukhin@intel.com>
10935             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10936
10937         * config/i386/sse.md
10938         (define_mode_iterator VF1_AVX512VL): New.
10939         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10940         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10941         New.
10942
10943 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10944             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10945             Anna Tikhonova  <anna.tikhonova@intel.com>
10946             Ilya Tocar  <ilya.tocar@intel.com>
10947             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10948             Ilya Verbin  <ilya.verbin@intel.com>
10949             Kirill Yukhin  <kirill.yukhin@intel.com>
10950             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10951
10952         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10953         * config/i386/i386.md
10954         (define_code_iterator any_float): New.
10955         (define_code_attr floatsuffix): New.
10956         * config/i386/sse.md
10957         (define_mode_iterator VF1_128_256VL): New.
10958         (define_mode_iterator VF2_512_256VL): New.
10959         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10960         TARGET check.
10961         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10962         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10963         New.
10964         (define_mode_attr qq2pssuff): New.
10965         (define_mode_attr sselongvecmode): New.
10966         (define_mode_attr sselongvecmodelower): New.
10967         (define_mode_attr sseintvecmode3): New.
10968         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10969         New.
10970         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10971         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10972         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10973         (define_insn "ufloatv2siv2df2<mask_name>"): New.
10974
10975 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10976             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10977             Anna Tikhonova  <anna.tikhonova@intel.com>
10978             Ilya Tocar  <ilya.tocar@intel.com>
10979             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10980             Ilya Verbin  <ilya.verbin@intel.com>
10981             Kirill Yukhin  <kirill.yukhin@intel.com>
10982             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10983
10984         * config/i386/sse.md
10985         (define_mode_iterator VF2_AVX512VL): New.
10986         (define_mode_attr sseintvecmode2): New.
10987         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10988         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10989         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10990         (define_insn
10991         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10992         Ditto.
10993         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10994         Ditto.
10995         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10996         Ditto.
10997
10998 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10999             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11000             Anna Tikhonova  <anna.tikhonova@intel.com>
11001             Ilya Tocar  <ilya.tocar@intel.com>
11002             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11003             Ilya Verbin  <ilya.verbin@intel.com>
11004             Kirill Yukhin  <kirill.yukhin@intel.com>
11005             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11006
11007         * config/i386/i386.md
11008         (define_insn "*movoi_internal_avx"): Add evex version.
11009         (define_insn "*movti_internal"): Ditto.
11010
11011 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11012             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11013             Anna Tikhonova  <anna.tikhonova@intel.com>
11014             Ilya Tocar  <ilya.tocar@intel.com>
11015             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11016             Ilya Verbin  <ilya.verbin@intel.com>
11017             Kirill Yukhin  <kirill.yukhin@intel.com>
11018             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11019
11020         * config/i386/i386.md
11021         (define_attr "isa"): Add avx512dq, noavx512dq.
11022         (define_attr "enabled"): Ditto.
11023         * config/i386/sse.md
11024         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
11025
11026 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11027             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11028             Anna Tikhonova  <anna.tikhonova@intel.com>
11029             Ilya Tocar  <ilya.tocar@intel.com>
11030             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11031             Ilya Verbin  <ilya.verbin@intel.com>
11032             Kirill Yukhin  <kirill.yukhin@intel.com>
11033             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11034
11035         * config/i386/i386.c
11036         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
11037         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
11038         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
11039         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
11040         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
11041         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
11042         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
11043         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
11044         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
11045         * config/i386/sse.md
11046         (define_mode_iterator VMOVE): Allow V4TI mode.
11047         (define_mode_iterator V_AVX512VL): New.
11048         (define_mode_iterator V): New handling for AVX512VL.
11049         (define_insn "avx512f_load<mode>_mask"): Delete.
11050         (define_insn "<avx512>_load<mode>_mask"): New.
11051         (define_insn "avx512f_store<mode>_mask"): Delete.
11052         (define_insn "<avx512>_store<mode>_mask"): New.
11053
11054
11055 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
11056
11057         PR sanitizer/62089
11058         * asan.c (instrument_derefs): Fix bitfield check.
11059
11060 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11061
11062         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
11063         * config/rs6000/htm.md (ttest): Remove clobber.
11064         * config/rs6000/predicates.md (any_mask_operand): New predicate.
11065         (and_operand): Reformat.
11066         (and_2rld_operand): New predicate.
11067         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
11068         parameter.
11069         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
11070         parameter.  Handle AND directly.
11071         (rs6000_split_logical_di): Remove last parameter.
11072         (rs6000_split_logical): Remove last parameter.  Remove obsolete
11073         comment.
11074         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
11075         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
11076         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
11077         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
11078         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
11079         and 5 anonymous splitters):  Delete.
11080         (and<mode>3): New expander.
11081         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
11082         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
11083         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
11084         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
11085         (floatdisf2_internal1): Remove clobbers.
11086         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
11087         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
11088         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
11089         (and<mode>3 for BOOL_128): Remove clobber.
11090         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
11091         rs6000_split_logical.
11092         (*bool<mode>3_internal for BOOL_128): Adjust call of
11093         rs6000_split_logical.
11094         (*boolc<mode>3_internal1 for BOOL_128,
11095         *boolc<mode>3_internal2 for BOOL_128,
11096         *boolcc<mode>3_internal1 for BOOL_128,
11097         *boolcc<mode>3_internal2 for BOOL_128,
11098         *eqv<mode>3_internal1 for BOOL_128,
11099         *eqv<mode>3_internal2 for BOOL_128,
11100         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
11101         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
11102         clobber.
11103         (*vec_reload_and_reg_<mptrsize>): Delete.
11104
11105 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11106
11107         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
11108         and split, *boolccsi3_internal3 and split): Delete.
11109         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
11110         *boolccdi3_internal3 and split): Delete.
11111         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
11112         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
11113
11114 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11115
11116         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
11117         and split, *boolcsi3_internal3 and split): Delete.
11118         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
11119         *boolcdi3_internal3 and split): Delete.
11120         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
11121
11122 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11123
11124         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
11125         <'u'>: Also support printing the low-order 16 bits.
11126         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
11127         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
11128         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
11129         *booldi3_internal3 and split): Delete.
11130         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
11131         *bool<mode>3_dot2): New.
11132         (two anonymous define_splits for non_logical_cint_operand): Merge.
11133
11134 2014-08-17  Marek Polacek  <polacek@redhat.com>
11135             Manuel López-Ibáñez  <manu@gcc.gnu.org>
11136
11137         PR c/62059
11138         * diagnostic.c (adjust_line): Add gcc_checking_assert.
11139         (diagnostic_show_locus): Don't print caret diagnostic
11140         if a column is larger than the line_width.
11141
11142 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
11143
11144         * common.opt: Make the ISL AST generator to be the main code generator
11145         of Graphite.
11146
11147 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
11148
11149         * wide-int.h (generic_wide_int): Declare as class instead of struct.
11150
11151 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
11152
11153         PR target/61641
11154         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
11155         Declare.
11156         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
11157         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
11158         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
11159         Define.
11160         * config/pa/pa.md (begin_brtab): Delete insn.
11161         (end_brtab): Likewise.
11162
11163 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11164
11165         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
11166
11167 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
11168
11169         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
11170         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
11171         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
11172         (get_dynamic_type): Remove.
11173         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
11174         (clear_speculation): Bring to ipa-deivrt.h
11175         (get_class_context): Rename to ...
11176         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
11177         (contains_type_p): Update.
11178         (get_dynamic_type): Rename to ...
11179         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
11180         (possible_polymorphic_call_targets): UPdate.
11181         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
11182         * ipa-prop.c (ipa_analyze_call_uses): Update.
11183
11184 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
11185
11186         * doc/invoke.texi (SH options): Document missing processor variant
11187         options.  Remove references to Hitachi.  Undocument deprecated mspace
11188         option.
11189
11190 2014-08-15  Jason Merrill  <jason@redhat.com>
11191
11192         * tree.c (type_hash_canon): Uncomment assert.
11193
11194 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11195
11196         * input.h (in_system_header_at): Add comment.
11197
11198 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11199
11200         PR fortran/44054
11201         * diagnostic.c (build_message_string): Make it extern.
11202         * diagnostic.h (build_message_string): Make it extern.
11203
11204 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
11205
11206         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
11207         load/store from/to non-floating class pseudo.
11208
11209 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11210
11211         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
11212
11213 2014-08-15  Richard Biener  <rguenther@suse.de>
11214
11215         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
11216         (get_constraint_for_ssa_var): Remove dead code.
11217         (get_constraint_for_1): Adjust.
11218         (find_what_var_points_to): Likewise.
11219         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
11220
11221 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
11222
11223         PR target/61878
11224         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
11225         (_mm512_mask_cmpge_epu32_mask): Ditto.
11226         (_mm512_cmpge_epu32_mask): Ditto.
11227         (_mm512_mask_cmpge_epi64_mask): Ditto.
11228         (_mm512_cmpge_epi64_mask): Ditto.
11229         (_mm512_mask_cmpge_epu64_mask): Ditto.
11230         (_mm512_cmpge_epu64_mask): Ditto.
11231         (_mm512_mask_cmple_epi32_mask): Ditto.
11232         (_mm512_cmple_epi32_mask): Ditto.
11233         (_mm512_mask_cmple_epu32_mask): Ditto.
11234         (_mm512_cmple_epu32_mask): Ditto.
11235         (_mm512_mask_cmple_epi64_mask): Ditto.
11236         (_mm512_cmple_epi64_mask): Ditto.
11237         (_mm512_mask_cmple_epu64_mask): Ditto.
11238         (_mm512_cmple_epu64_mask): Ditto.
11239         (_mm512_mask_cmplt_epi32_mask): Ditto.
11240         (_mm512_cmplt_epi32_mask): Ditto.
11241         (_mm512_mask_cmplt_epu32_mask): Ditto.
11242         (_mm512_cmplt_epu32_mask): Ditto.
11243         (_mm512_mask_cmplt_epi64_mask): Ditto.
11244         (_mm512_cmplt_epi64_mask): Ditto.
11245         (_mm512_mask_cmplt_epu64_mask): Ditto.
11246         (_mm512_cmplt_epu64_mask): Ditto.
11247         (_mm512_mask_cmpneq_epi32_mask): Ditto.
11248         (_mm512_mask_cmpneq_epu32_mask): Ditto.
11249         (_mm512_cmpneq_epu32_mask): Ditto.
11250         (_mm512_mask_cmpneq_epi64_mask): Ditto.
11251         (_mm512_cmpneq_epi64_mask): Ditto.
11252         (_mm512_mask_cmpneq_epu64_mask): Ditto.
11253         (_mm512_cmpneq_epu64_mask): Ditto.
11254         (_mm512_castpd_ps): Ditto.
11255         (_mm512_castpd_si512): Ditto.
11256         (_mm512_castps_pd): Ditto.
11257         (_mm512_castps_si512): Ditto.
11258         (_mm512_castsi512_ps): Ditto.
11259         (_mm512_castsi512_pd): Ditto.
11260         (_mm512_castpd512_pd128): Ditto.
11261         (_mm512_castps512_ps128): Ditto.
11262         (_mm512_castsi512_si128): Ditto.
11263         (_mm512_castpd512_pd256): Ditto.
11264         (_mm512_castps512_ps256): Ditto.
11265         (_mm512_castsi512_si256): Ditto.
11266         (_mm512_castpd128_pd512): Ditto.
11267         (_mm512_castps128_ps512): Ditto.
11268         (_mm512_castsi128_si512): Ditto.
11269         (_mm512_castpd256_pd512): Ditto.
11270         (_mm512_castps256_ps512): Ditto.
11271         (_mm512_castsi256_si512): Ditto.
11272         (_mm512_cmpeq_epu32_mask): Ditto.
11273         (_mm512_mask_cmpeq_epu32_mask): Ditto.
11274         (_mm512_mask_cmpeq_epu64_mask): Ditto.
11275         (_mm512_cmpeq_epu64_mask): Ditto.
11276         (_mm512_cmpgt_epu32_mask): Ditto.
11277         (_mm512_mask_cmpgt_epu32_mask): Ditto.
11278         (_mm512_mask_cmpgt_epu64_mask): Ditto.
11279         (_mm512_cmpgt_epu64_mask): Ditto.
11280         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
11281         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
11282         * config/i386/i386.c (enum ix86_builtins): Add
11283         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
11284         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
11285         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
11286         (bdesc_args): Add __builtin_ia32_si512_256si,
11287         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
11288         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
11289         __builtin_ia32_pd512_pd.
11290         (ix86_expand_args_builtin): Handle new FTYPEs.
11291         * config/i386/sse.md (castmode): Add 512-bit modes.
11292         (AVX512MODE2P): New.
11293         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
11294         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
11295
11296 2014-08-15  Richard Biener  <rguenther@suse.de>
11297
11298         * fold-const.c (tree_swap_operands_p): Put all constants
11299         last, also strip sign-changing NOPs when considering further
11300         canonicalization.  Canonicalize also when optimizing for size.
11301
11302 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11303
11304         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
11305         one_match > zero_match case to just before simple_sequence.
11306
11307 2014-08-15  Richard Biener  <rguenther@suse.de>
11308
11309         * data-streamer.h (streamer_string_index, string_for_index):
11310         Remove.
11311         * data-streamer-out.c (streamer_string_index): Make static.
11312         * data-streamer-in.c (string_for_index): Likewise.
11313         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
11314         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
11315
11316 2014-08-15  Richard Biener  <rguenther@suse.de>
11317
11318         PR tree-optimization/62031
11319         * tree-data-ref.c (dr_analyze_indices): Do not set
11320         DR_UNCONSTRAINED_BASE.
11321         (dr_may_alias_p): All indirect accesses have to go the
11322         formerly DR_UNCONSTRAINED_BASE path.
11323         * tree-data-ref.h (struct indices): Remove
11324         unconstrained_base member.
11325         (DR_UNCONSTRAINED_BASE): Remove.
11326
11327 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
11328
11329         PR middle-end/62092
11330         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
11331         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
11332         in OMP_CLAUSE_MAP in some outer target region.
11333
11334 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
11335
11336         * tree-ssa-loop-ivopts.c (ivopts_data): New field
11337         name_expansion_cache.
11338         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
11339         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
11340         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
11341         (difference_cannot_overflow_p): New parameter.  Use affine
11342         expansion for equality check.
11343         (iv_elimination_compare_lt): Pass new argument.
11344
11345 2014-08-14  DJ Delorie  <dj@redhat.com>
11346
11347         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
11348         variables to the accumulator.
11349
11350         * config/rl78/predicates.md (rl78_near_mem_operand): New.
11351         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
11352         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
11353         with far-far moves.
11354
11355         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
11356         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
11357         (umulqihi3_virt): Likewise.
11358         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
11359         (umulqihi3_real): Likewise.
11360
11361         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
11362
11363 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
11364
11365         PR tree-optimization/62091
11366         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
11367         function_entry_reached.
11368         (walk_aliased_vdefs): Clear it here.
11369         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
11370
11371 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
11372
11373         * ipa-utils.h (compare_virtual_tables): Declare.
11374         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
11375
11376 2014-08-14  Marek Polacek  <polacek@redhat.com>
11377
11378         DR 458
11379         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
11380         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
11381
11382 2014-08-14  Tom de Vries  <tom@codesourcery.com>
11383
11384         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
11385
11386 2014-08-14  Tom de Vries  <tom@codesourcery.com>
11387
11388         PR rtl-optimization/62004
11389         PR rtl-optimization/62030
11390         * ifcvt.c (rtx_interchangeable_p): New function.
11391         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
11392         * emit-rtl.h (mem_attrs_eq_p): Declare.
11393
11394 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
11395
11396         * graphite-scop-detection.c:
11397         Add inclusion of cp-tree.h.
11398         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
11399         in case they are pointers to object types
11400
11401 2014-08-14  Richard Biener  <rguenther@suse.de>
11402
11403         * BASE-VER: Change to 5.0.0
11404
11405 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11406             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11407             Anna Tikhonova  <anna.tikhonova@intel.com>
11408             Ilya Tocar  <ilya.tocar@intel.com>
11409             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11410             Ilya Verbin  <ilya.verbin@intel.com>
11411             Kirill Yukhin  <kirill.yukhin@intel.com>
11412             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11413
11414         * config/i386/sse.md (define_mode_attr avx512): New.
11415         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
11416         V4DI modes.
11417         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
11418         (define_mode_attr ssse3_avx2): Ditto.
11419         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
11420         (define_mode_attr avx2_avx512bw): New.
11421         (define_mode_attr ssedoublemodelower): New.
11422         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
11423         V32HI, V64QI modes.
11424         (define_mode_attr ssebytemode): Allow V8DI modes.
11425         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
11426         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
11427         (define_mode_attr ssePSmode2): New.
11428         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
11429         V16HI, V32HI modes.
11430         (define_mode_attr dbpsadbwmode): New.
11431         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
11432         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
11433         (vi8_sse4_1_avx2_avx512): New.
11434         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
11435         mode attribute.
11436         (define_mode_attr blendbits): Move before its immediate use.
11437
11438 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11439             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11440             Anna Tikhonova  <anna.tikhonova@intel.com>
11441             Ilya Tocar  <ilya.tocar@intel.com>
11442             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11443             Ilya Verbin  <ilya.verbin@intel.com>
11444             Kirill Yukhin  <kirill.yukhin@intel.com>
11445             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11446
11447         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
11448         * config/i386/subst.md
11449         (define_mode_iterator SUBST_V): Update.
11450         (define_mode_iterator SUBST_A): Ditto.
11451         (define_subst_attr "mask_operand7"): New.
11452         (define_subst_attr "mask_operand10"): New.
11453         (define_subst_attr "mask_operand_arg34") : New.
11454         (define_subst_attr "mask_expand_op3"): New.
11455         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
11456         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
11457         (define_subst_attr "mask_avx512vl_condition"): New.
11458         (define_subst_attr "round_mask_operand4"): Ditto.
11459         (define_subst_attr "round_mask_scalar_op3"): Delete.
11460         (define_subst_attr "round_mask_op4"): New.
11461         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
11462         V16SImode.
11463         (define_subst_attr "round_modev8sf_condition"): New.
11464         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
11465         <MODE>mode.
11466         (define_subst_attr "round_saeonly_mask_operand4"): New.
11467         (define_subst_attr "round_saeonly_mask_op4"): New.
11468         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
11469         V8DImode, V16SImode.
11470         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
11471         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
11472         (define_subst_attr "mask_expand4_args"): New.
11473         (define_subst "mask_expand4"): New.
11474
11475 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11476             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11477             Anna Tikhonova  <anna.tikhonova@intel.com>
11478             Ilya Tocar  <ilya.tocar@intel.com>
11479             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11480             Ilya Verbin  <ilya.verbin@intel.com>
11481             Kirill Yukhin  <kirill.yukhin@intel.com>
11482             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11483
11484         * config/i386/i386.md
11485         (define_attr "isa"): Add avx512bw,noavx512bw.
11486         (define_attr "enabled"): Ditto.
11487         (define_split): Add 32/64-bit mask logic.
11488         (define_insn "*k<logic>qi"): New.
11489         (define_insn "*k<logic>hi"): New.
11490         (define_insn "*anddi_1"): Add mask version.
11491         (define_insn "*andsi_1"): Ditto.
11492         (define_insn "*<code><mode>_1"): Ditto.
11493         (define_insn "*<code>hi_1"): Ditto.
11494         (define_insn "kxnor<mode>"): New.
11495         (define_insn "kunpcksi"): New.
11496         (define_insn "kunpckdi"): New.
11497         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
11498         (define_insn "*one_cmplhi2_1"): Ditto.
11499
11500 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11501             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11502             Anna Tikhonova  <anna.tikhonova@intel.com>
11503             Ilya Tocar  <ilya.tocar@intel.com>
11504             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11505             Ilya Verbin  <ilya.verbin@intel.com>
11506             Kirill Yukhin  <kirill.yukhin@intel.com>
11507             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11508
11509         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
11510         V32HImode.
11511
11512 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11513             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11514             Anna Tikhonova  <anna.tikhonova@intel.com>
11515             Ilya Tocar  <ilya.tocar@intel.com>
11516             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11517             Ilya Verbin  <ilya.verbin@intel.com>
11518             Kirill Yukhin  <kirill.yukhin@intel.com>
11519             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11520
11521         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
11522         registers.
11523         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
11524         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
11525         xmm/ymm16+ when availble.
11526         * config/i386/i386.h
11527         (HARD_REGNO_NREGS): Add mask regs.
11528         (VALID_AVX512F_REG_MODE): Ditto.
11529         (VALID_AVX512F_REG_MODE) : Define.
11530         (VALID_MASK_AVX512BW_MODE): Ditto.
11531         (reg_class) (MASK_REG_P(X)): Define.
11532         * config/i386/i386.md: Do not split long moves with mask register,
11533         use kmovb if avx512bw is availible.
11534         (movdi_internal): Handle mask registers.
11535
11536 2014-08-14  Richard Biener  <rguenther@suse.de>
11537
11538         PR tree-optimization/62081
11539         * tree-ssa-loop.c (pass_fix_loops): New pass.
11540         (pass_tree_loop::gate):  Do not fixup loops here.
11541         * tree-pass.h (make_pass_fix_loops): Declare.
11542         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
11543
11544 2014-08-14  Richard Biener  <rguenther@suse.de>
11545
11546         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
11547         (type_hash_canon): ... this and avoid 2nd lookup for the add.
11548
11549 2014-08-14  Richard Biener  <rguenther@suse.de>
11550
11551         PR tree-optimization/62090
11552         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
11553         (fold_builtin_2): Do not fold sprintf.
11554         (fold_builtin_3): Likewise.
11555         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
11556         moved from builtins.c.
11557         (gimple_fold_builtin): Fold sprintf.
11558
11559 2014-08-14  Richard Biener  <rguenther@suse.de>
11560
11561         PR rtl-optimization/62079
11562         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
11563         run cleanup_cfg.
11564
11565 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
11566
11567         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
11568         current_function_decl.
11569
11570 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
11571
11572         * cgraph.c (cgraph_node::function_symbol): Fix wrong
11573         cgraph_function_node to cgraph_node::function_symbol
11574         refactoring.
11575
11576 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11577
11578         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
11579         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
11580
11581 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
11582
11583         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
11584         warning.
11585
11586 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
11587
11588         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
11589         generator.
11590
11591 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
11592
11593         PR target/62025
11594         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
11595         any registers that are used in mem_insn.
11596
11597 2014-08-12  Steve Ellcey  <sellcey@mips.com>
11598
11599         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
11600
11601 2014-08-12  Steve Ellcey  <sellcey@mips.com>
11602
11603         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
11604         (MULTILIB_DIRNAMES): Ditto.
11605         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
11606         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
11607         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
11608         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
11609         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
11610         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
11611
11612 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11613
11614         PR target/61413
11615         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
11616         of __ARM_SIZEOF_WCHAR_T.
11617
11618 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11619
11620         PR target/62098
11621         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
11622         Remove unnecessary attributes.
11623
11624 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
11625
11626         * internal-fn.c (init_internal_fns): Fix off-by-one.
11627
11628 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11629             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11630             Anna Tikhonova  <anna.tikhonova@intel.com>
11631             Ilya Tocar  <ilya.tocar@intel.com>
11632             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11633             Ilya Verbin  <ilya.verbin@intel.com>
11634             Kirill Yukhin  <kirill.yukhin@intel.com>
11635             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11636
11637         * config/i386/i386.c (standard_sse_constant_opcode): Use
11638         vpxord/vpternlog if avx512 is availible.
11639
11640 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11641
11642         PR middle-end/62103
11643         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
11644         bitfields, that is when size doesn't match the size of type or the
11645         size of the constructor.
11646
11647 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11648
11649         * config/rs6000/constraints.md (wh constraint): New constraint,
11650         for FP registers if direct move is available.
11651         (wi constraint): New constraint, for VSX/FP registers that can
11652         handle 64-bit integers.
11653         (wj constraint): New constraint for VSX/FP registers that can
11654         handle 64-bit integers for direct moves.
11655         (wk constraint): New constraint for VSX/FP registers that can
11656         handle 64-bit doubles for direct moves.
11657         (wy constraint): Make documentation match implementation.
11658
11659         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
11660         scalar_in_vmx_p field to simplify tests of whether SFmode or
11661         DFmode can go in the Altivec registers.
11662         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
11663         (rs6000_setup_reg_addr_masks): Likewise.
11664         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
11665         field, and wh/wi/wj/wk constraints.
11666         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
11667         the wh/wi/wj/wk constraints.
11668         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
11669         upper registers, prefer VSX registers unless the operation is a
11670         memory operation with REG+OFFSET addressing.
11671
11672         * config/rs6000/vsx.md (VSr mode attribute): Add support for
11673         DImode.  Change SFmode to use ww constraint instead of d to allow
11674         SF registers in the upper registers.
11675         (VSr2): Likewise.
11676         (VSr3): Likewise.
11677         (VSr5): Fix thinko in comment.
11678         (VSa): New mode attribute that is an alternative to wa, that
11679         returns the VSX register class that a mode can go in, but may not
11680         be the preferred register class.
11681         (VS_64dm): New mode attribute for appropriate register classes for
11682         referencing 64-bit elements of vectors for direct moves and normal
11683         moves.
11684         (VS_64reg): Likewise.
11685         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
11686         register allocator to only registers the data type can handle.
11687         (vsx_le_perm_load_<mode>): Likewise.
11688         (vsx_le_perm_store_<mode>): Likewise.
11689         (vsx_xxpermdi2_le_<mode>): Likewise.
11690         (vsx_xxpermdi4_le_<mode>): Likewise.
11691         (vsx_lxvd2x2_le_<mode>): Likewise.
11692         (vsx_lxvd2x4_le_<mode>): Likewise.
11693         (vsx_stxvd2x2_le_<mode>): Likewise.
11694         (vsx_add<mode>3): Likewise.
11695         (vsx_sub<mode>3): Likewise.
11696         (vsx_mul<mode>3): Likewise.
11697         (vsx_div<mode>3): Likewise.
11698         (vsx_tdiv<mode>3_internal): Likewise.
11699         (vsx_fre<mode>2): Likewise.
11700         (vsx_neg<mode>2): Likewise.
11701         (vsx_abs<mode>2): Likewise.
11702         (vsx_nabs<mode>2): Likewise.
11703         (vsx_smax<mode>3): Likewise.
11704         (vsx_smin<mode>3): Likewise.
11705         (vsx_sqrt<mode>2): Likewise.
11706         (vsx_rsqrte<mode>2): Likewise.
11707         (vsx_tsqrt<mode>2_internal): Likewise.
11708         (vsx_fms<mode>4): Likewise.
11709         (vsx_nfma<mode>4): Likewise.
11710         (vsx_eq<mode>): Likewise.
11711         (vsx_gt<mode>): Likewise.
11712         (vsx_ge<mode>): Likewise.
11713         (vsx_eq<mode>_p): Likewise.
11714         (vsx_gt<mode>_p): Likewise.
11715         (vsx_ge<mode>_p): Likewise.
11716         (vsx_xxsel<mode>): Likewise.
11717         (vsx_xxsel<mode>_uns): Likewise.
11718         (vsx_copysign<mode>3): Likewise.
11719         (vsx_float<VSi><mode>2): Likewise.
11720         (vsx_floatuns<VSi><mode>2): Likewise.
11721         (vsx_fix_trunc<mode><VSi>2): Likewise.
11722         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11723         (vsx_x<VSv>r<VSs>i): Likewise.
11724         (vsx_x<VSv>r<VSs>ic): Likewise.
11725         (vsx_btrunc<mode>2): Likewise.
11726         (vsx_b2trunc<mode>2): Likewise.
11727         (vsx_floor<mode>2): Likewise.
11728         (vsx_ceil<mode>2): Likewise.
11729         (vsx_<VS_spdp_insn>): Likewise.
11730         (vsx_xscvspdp): Likewise.
11731         (vsx_xvcvspuxds): Likewise.
11732         (vsx_float_fix_<mode>2): Likewise.
11733         (vsx_set_<mode>): Likewise.
11734         (vsx_extract_<mode>_internal1): Likewise.
11735         (vsx_extract_<mode>_internal2): Likewise.
11736         (vsx_extract_<mode>_load): Likewise.
11737         (vsx_extract_<mode>_store): Likewise.
11738         (vsx_splat_<mode>): Likewise.
11739         (vsx_xxspltw_<mode>): Likewise.
11740         (vsx_xxspltw_<mode>_direct): Likewise.
11741         (vsx_xxmrghw_<mode>): Likewise.
11742         (vsx_xxmrglw_<mode>): Likewise.
11743         (vsx_xxsldwi_<mode>): Likewise.
11744         (vsx_xscvdpspn): Tighten constraints to only use register classes
11745         the types use.
11746         (vsx_xscvspdpn): Likewise.
11747         (vsx_xscvdpspn_scalar): Likewise.
11748
11749         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11750         wj, and wk constraints.
11751         (GPR_REG_CLASS_P): New helper macro for register classes targeting
11752         general purpose registers.
11753
11754         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11755         direct moves.
11756         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11757         DImode instead of wm.  Use wk constraint for direct move of DFmode
11758         instead of wm.
11759         (extendsidi2_lfiwax): Likewise.
11760         (lfiwax): Likewise.
11761         (lfiwzx): Likewise.
11762         (movdi_internal64): Likewise.
11763
11764         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11765         wk constraints. Make the wy constraint documentation match them
11766         implementation.
11767
11768 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
11769
11770         Replacement of isl_int by isl_val
11771         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11772         (compute_bounds_for_param): use isl_val instead of isl_int
11773         (compute_bounds_for_loop): likewise
11774         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11775         (build_linearized_memory_access): use isl_val instead of isl_int
11776         (pdr_stride_in_loop): likewise
11777         * graphite-optimize-isl.c:
11778         (getPrevectorMap): use isl_val instead of isl_int
11779         * graphite-poly.c:
11780         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11781         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11782         (extern the_isl_ctx): declare
11783         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11784         (extract_affine_gmp): likewise
11785         (wrap): likewise
11786         (build_loop_iteration_domains): likewise
11787         (add_param_constraints): likewise
11788
11789 2014-08-11  Richard Biener  <rguenther@suse.de>
11790
11791         PR tree-optimization/62075
11792         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11793         handle uses in patterns.
11794
11795 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11796             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11797             Anna Tikhonova  <anna.tikhonova@intel.com>
11798             Ilya Tocar  <ilya.tocar@intel.com>
11799             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11800             Ilya Verbin  <ilya.verbin@intel.com>
11801             Kirill Yukhin  <kirill.yukhin@intel.com>
11802             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11803
11804         * common/config/i386/i386-common.c
11805         (OPTION_MASK_ISA_AVX512VL_SET): Define.
11806         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11807         (ix86_handle_option): Handle OPT_mavx512vl.
11808         * config/i386/cpuid.h (bit_AVX512VL): Define.
11809         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11810         set -mavx512vl accordingly.
11811         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11812         OPTION_MASK_ISA_AVX512VL.
11813         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11814         (ix86_option_override_internal): Define PTA_AVX512VL, handle
11815         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11816         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11817         * config/i386/i386.h (TARGET_AVX512VL): Define.
11818         (TARGET_AVX512VL_P(x)): Ditto.
11819         * config/i386/i386.opt: Add mavx512vl.
11820
11821 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
11822
11823         PR tree-optimization/62073
11824         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11825         a basic block.
11826
11827 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11828             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11829             Anna Tikhonova  <anna.tikhonova@intel.com>
11830             Ilya Tocar  <ilya.tocar@intel.com>
11831             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11832             Ilya Verbin  <ilya.verbin@intel.com>
11833             Kirill Yukhin  <kirill.yukhin@intel.com>
11834             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11835
11836         * common/config/i386/i386-common.c
11837         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11838         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11839         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11840         (ix86_handle_option): Handle OPT_mavx512bw.
11841         * config/i386/cpuid.h (bit_AVX512BW): Define.
11842         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11843         set -mavx512bw accordingly.
11844         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11845         OPTION_MASK_ISA_AVX512BW.
11846         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11847         (ix86_option_override_internal): Define PTA_AVX512BW, handle
11848         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11849         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11850         * config/i386/i386.h (TARGET_AVX512BW): Define.
11851         (TARGET_AVX512BW_P(x)): Ditto.
11852         * config/i386/i386.opt: Add mavx512bw.
11853
11854 2014-08-11  Richard Biener  <rguenther@suse.de>
11855
11856         PR tree-optimization/62070
11857         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11858         Remove SSA checking.
11859
11860 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11861
11862         * asan.c (asan_check_flags): New enum.
11863         (build_check_stmt_with_calls): Removed function.
11864         (build_check_stmt): Split inlining logic to
11865         asan_expand_check_ifn.
11866         (instrument_derefs): Rename parameter.
11867         (instrument_mem_region_access): Rename parameter.
11868         (instrument_strlen_call): Likewise.
11869         (asan_expand_check_ifn): New function.
11870         (asan_instrument): Remove old code.
11871         (pass_sanopt::execute): Change handling of
11872         asan-instrumentation-with-call-threshold.
11873         (asan_clear_shadow): Fix formatting.
11874         (asan_function_start): Likewise.
11875         (asan_emit_stack_protection): Likewise.
11876         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11877         Update description.
11878         * internal-fn.c (expand_ASAN_CHECK): New function.
11879         * internal-fn.def (ASAN_CHECK): New internal function.
11880         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11881         Update description.
11882         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11883         * tree.c: Small comment fix.
11884
11885 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11886
11887         * gimple.c (gimple_call_fnspec): Support internal functions.
11888         (gimple_call_return_flags): Use const.
11889         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11890         * internal-fn.def: Add fnspec information.
11891         * internal-fn.h (internal_fn_fnspec): New function.
11892         (init_internal_fns): Declare new function.
11893         * internal-fn.c (internal_fn_fnspec_array): New global variable.
11894         (init_internal_fns): New function.
11895         * tree-core.h: Update macro call.
11896         * tree.c (build_common_builtin_nodes): Initialize internal fns.
11897
11898 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
11899
11900         * lto-streamer.h (struct output_block::symbol): Change from
11901         struct symtab_node to plain symtab_node.
11902         (referenced_from_this_partition_p): Change first parameter
11903         from struct symtab_node to plain symtab_node.
11904
11905 2014-08-10  Marek Polacek  <polacek@redhat.com>
11906
11907         PR c/51849
11908         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11909
11910 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
11911
11912         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11913         DECL correctly; do not give up on types in static storage.
11914
11915 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
11916
11917         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11918
11919 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
11920
11921         * graphite-isl-ast-to-gimple.c:
11922         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11923
11924         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11925
11926 2014-08-08  Guozhi Wei  <carrot@google.com>
11927
11928         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11929
11930 2014-08-08  Cary Coutant  <ccoutant@google.com>
11931
11932         * dwarf2out.c (get_skeleton_type_unit): Remove.
11933         (output_skeleton_debug_sections): Remove skeleton type units.
11934         (output_comdat_type_unit): Likewise.
11935         (dwarf2out_finish): Likewise.
11936
11937 2014-08-07  Yi Yang  <ahyangyi@google.com>
11938
11939         * predict.c (expr_expected_value_1): Remove the redundant assignment.
11940
11941 2014-08-08  Richard Biener  <rguenther@suse.de>
11942
11943         * lto-streamer.h (struct lto_input_block): Make it a class
11944         with a constructor.
11945         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11946         (struct lto_function_header, struct lto_simple_header,
11947         struct lto_simple_header_with_strings,
11948         struct lto_decl_header, struct lto_function_header): Make
11949         a simple inheritance hieararchy.  Remove unused fields.
11950         (struct lto_asm_header): Remove.
11951         * lto-streamer-out.c (produce_asm): Adjust.
11952         (lto_output_toplevel_asms): Likewise.
11953         (produce_asm_for_decls): Likewise.
11954         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11955         * data-streamer-in.c (string_for_index): Likewise.
11956         * ipa-inline-analysis.c (inline_read_section): Likewise.
11957         * ipa-prop.c (ipa_prop_read_section): Likewise.
11958         (read_replacements_section): Likewise.
11959         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11960         * lto-section-in.c (lto_create_simple_input_block): Likewise.
11961         (lto_destroy_simple_input_block): Likewise.
11962         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11963         (lto_input_toplevel_asms): Likewise.
11964
11965 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11966             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11967             Anna Tikhonova  <anna.tikhonova@intel.com>
11968             Ilya Tocar  <ilya.tocar@intel.com>
11969             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11970             Ilya Verbin  <ilya.verbin@intel.com>
11971             Kirill Yukhin  <kirill.yukhin@intel.com>
11972             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11973
11974         * common/config/i386/i386-common.c
11975         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11976         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11977         (ix86_handle_option): Handle OPT_mavx512dq.
11978         * config/i386/cpuid.h (bit_AVX512DQ): Define.
11979         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11980         set -mavx512dq accordingly.
11981         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11982         OPTION_MASK_ISA_AVX512DQ.
11983         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11984         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11985         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11986         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11987         * config/i386/i386.h (TARGET_AVX512DQ): Define.
11988         (TARGET_AVX512DQ_P(x)): Ditto.
11989         * config/i386/i386.opt: Add mavx512dq.
11990
11991 2014-08-08  Richard Biener  <rguenther@suse.de>
11992
11993         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11994         target_percent, target_percent_s): Export.
11995         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11996         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11997         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11998         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11999         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
12000         Move to gimple-fold.c.
12001         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
12002         strcat and strcpy.
12003         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
12004         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
12005         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
12006         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
12007         (rewrite_call_expr_array): Remove.
12008         (fold_builtin_sprintf_chk): Likewise.
12009         (fold_builtin_snprintf_chk): Likewise.
12010         (fold_builtin_varargs): Remove handling of sprintf_chk,
12011         vsprintf_chk, snprintf_chk and vsnprintf_chk.
12012         (gimple_fold_builtin_sprintf_chk): Remove.
12013         (gimple_fold_builtin_snprintf_chk): Likewise.
12014         (gimple_fold_builtin_varargs): Likewise.
12015         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
12016         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
12017         * gimple.c (gimple_seq_add_seq_without_update): New function.
12018         * gimple.h (gimple_seq_add_seq_without_update): Declare.
12019         * gimple-fold.c: Include output.h.
12020         (gsi_replace_with_seq_vops): New function, split out from ...
12021         (gimplify_and_update_call_from_tree): ... here.
12022         (replace_call_with_value): New function.
12023         (replace_call_with_call_and_fold): Likewise.
12024         (var_decl_component_p): Moved from builtins.c.
12025         (gimple_fold_builtin_memory_op): Moved from builtins.c
12026         fold_builtin_memory_op and rewritten to GIMPLE.
12027         (gimple_fold_builtin_memset): Likewise.
12028         (gimple_fold_builtin_strcpy): Likewise.
12029         (gimple_fold_builtin_strncpy): Likewise.
12030         (gimple_fold_builtin_strcat): Likewise.
12031         (gimple_fold_builtin_fputs): Likewise.
12032         (gimple_fold_builtin_memory_chk): Likewise.
12033         (gimple_fold_builtin_stxcpy_chk): Likewise.
12034         (gimple_fold_builtin_stxncpy_chk): Likewise.
12035         (gimple_fold_builtin_snprintf_chk): Likewise.
12036         (gimple_fold_builtin_sprintf_chk): Likewise.
12037         (gimple_fold_builtin_strlen): New function.
12038         (gimple_fold_builtin_with_strlen): New function split out from
12039         gimple_fold_builtin.
12040         (gimple_fold_builtin): Change signature and handle
12041         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
12042         here.  Call gimple_fold_builtin_with_strlen.
12043         (gimple_fold_call): Adjust.
12044
12045 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
12046
12047         * calls.c (precompute_arguments): Check
12048          promoted_for_signed_and_unsigned_p and set the promoted mode.
12049         (promoted_for_signed_and_unsigned_p): New function.
12050         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
12051         and set the promoted mode.
12052         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
12053         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
12054         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
12055
12056
12057 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
12058
12059         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
12060         instead of SUBREG_PROMOTED_UNSIGNED_SET.
12061         (expand_call): Likewise.
12062         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
12063         to get promoted mode.
12064         * combine.c (record_promoted_value): Skip > 0 comparison with
12065         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
12066         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
12067         of SUBREG_PROMOTED_UNSIGNED_P.
12068         (convert_modes): Likewise.
12069         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
12070         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
12071         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
12072         SUBREG_PROMOTED_UNSIGNED_SET.
12073         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
12074         instead of SUBREG_PROMOTED_UNSIGNED_SET.
12075         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
12076         SUBREG_PROMOTED_SET.
12077         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
12078         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
12079         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
12080         of SUBREG_PROMOTED_UNSIGNED_P.
12081         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
12082         (SUBREG_PROMOTED_SET): New define.
12083         (SUBREG_PROMOTED_GET): Likewise.
12084         (SUBREG_PROMOTED_SIGN): Likewise.
12085         (SUBREG_PROMOTED_SIGNED_P): Likewise.
12086         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
12087         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
12088         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
12089         instead of SUBREG_PROMOTED_UNSIGNED_GET.
12090         (nonzero_bits1): Skip > 0 comparison with the results as
12091         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
12092         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
12093         of !SUBREG_PROMOTED_UNSIGNED_P.
12094         * simplify-rtx.c (simplify_unary_operation_1): Use new
12095         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
12096         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
12097         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
12098         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
12099
12100 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
12101
12102         * ipa-devirt.c: Include gimple-pretty-print.h
12103         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
12104         further tests.
12105         (decl_maybe_in_construction_p): Fix conditional on cdtor check
12106         (get_polymorphic_call_info): Fix return value
12107         (type_change_info): New sturcture based on ipa-prop
12108         variant.
12109         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
12110         based on ipa-prop variant.
12111         (extr_type_from_vtbl_ptr_store): New function
12112         based on ipa-prop variant.
12113         (record_known_type): New function.
12114         (check_stmt_for_type_change): New function.
12115         (get_dynamic_type): New function.
12116         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
12117         * tree-ssa-pre.c: ipa-utils.h
12118         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
12119         machinery; sanity check with ipa-prop devirtualization.
12120         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
12121         polymorphic flag.
12122
12123 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
12124
12125         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
12126         * alias.c, cfgexpand.c, cgraphbuild.c,
12127         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
12128         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
12129         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
12130         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
12131         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
12132         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
12133         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
12134         dse.c, except.c, gengtype.c, gimple-expr.c,
12135         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
12136         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
12137         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
12138         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
12139         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
12140         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
12141         pointer-set.h.
12142         * pointer-set.c: Remove file.
12143         * pointer-set.h: Remove file.
12144
12145 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12146
12147         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
12148         * config/arm/types.md (f_sels, f_seld): Delete.
12149
12150 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12151
12152         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
12153         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
12154         (aarch64_movdi_<mode>high): Likewise.
12155         (aarch64_mov<mode>high_di): Likewise.
12156         (aarch64_movdi_<mode>low): Likewise.
12157         (aarch64_mov<mode>low_di): Likewise.
12158         (aarch64_movtilow_tilow): Likewise.
12159         Add comment explaining usage of fp,simd attributes and of
12160         TARGET_FLOAT and TARGET_SIMD.
12161
12162 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
12163             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12164
12165         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
12166         Use MOVN when one of the half-words is 0xffff.
12167
12168 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
12169
12170         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
12171
12172 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
12173
12174         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
12175         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
12176         (rfs_str): String corresponding to RFS_* constants.
12177         (rank_for_schedule_stats_t): New typedef.
12178         (rank_for_schedule_stats): New static variable.
12179         (rfs_result): New static function.
12180         (rank_for_schedule): Track statistics for deciding heuristics.
12181         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
12182         static functions.
12183         (ready_sort): Use them for debug printouts.
12184         (schedule_block): Init statistics state.  Print statistics on
12185         rank_for_schedule decisions.
12186
12187 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
12188
12189         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
12190
12191 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
12192
12193         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
12194         constraint.
12195
12196 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
12197
12198         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
12199         function to not conflict.
12200         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
12201         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
12202         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
12203         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
12204         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
12205         of pointer_map.
12206
12207 2014-08-07  Marek Polacek  <polacek@redhat.com>
12208
12209         * fold-const.c (fold_binary_loc): Add folding of
12210         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
12211
12212 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
12213
12214         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
12215         instead of type size.
12216         (ASM_FINISH_DECLARE_OBJECT): Likewise.
12217
12218 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
12219
12220         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
12221         (*thumb1_movqi_insn): Likewise.
12222         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
12223
12224 2014-08-07  Tom de Vries  <tom@codesourcery.com>
12225
12226         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12227         (glibc_2_11_or_earlier): Remove effective-target keywords.
12228
12229 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12230
12231         * config/arm/arm.c (bdesc_2arg): Fix typo.
12232         (arm_atomic_assign_expand_fenv): Remove The default implementation.
12233
12234 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12235
12236         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
12237
12238 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
12239
12240         PR debug/61923
12241         * haifa-sched.c (advance_one_cycle): Fix dump.
12242         (schedule_block): Don't advance cycle if we are already at the
12243         beginning of the cycle.
12244
12245 2014-08-06  Martin Jambor  <mjambor@suse.cz>
12246
12247         PR ipa/61393
12248         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
12249
12250 2014-08-06  Richard Biener  <rguenther@suse.de>
12251
12252         PR lto/62034
12253         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
12254         SCCs here.
12255         (lto_input_tree): Pop SCCs here.
12256
12257 2014-08-06  Richard Biener  <rguenther@suse.de>
12258
12259         PR tree-optimization/61320
12260         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
12261         handle misaligned loads.
12262
12263 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
12264
12265         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
12266         (aarch64_expand_vec_perm_const): Check for dup before zip.
12267
12268 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12269
12270         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
12271         CONST_INT_P instead of GET_CODE and compare.
12272         (aarch64_select_cc_mode): Likewise.
12273         (aarch64_print_operand): Likewise.
12274         (aarch64_rtx_costs): Likewise.
12275         (aarch64_simd_valid_immediate): Likewise.
12276         (aarch64_simd_check_vect_par_cnst_half): Likewise.
12277         (aarch64_simd_emit_pair_result_insn): Likewise.
12278
12279 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
12280
12281         * gdbhooks.py (find_gcc_source_dir): New helper function.
12282         (class PassNames): New class, locating and parsing passes.def.
12283         (class BreakOnPass): New command "break-on-pass".
12284
12285 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
12286
12287         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
12288         getting olde.
12289
12290 2014-08-05  Richard Biener  <rguenther@suse.de>
12291
12292         PR rtl-optimization/61672
12293         * emit-rtl.h (mem_attrs_eq_p): Declare.
12294         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
12295         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
12296         * cfgcleanup.c (merge_memattrs): Likewise.
12297         Include emit-rtl.h.
12298
12299 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12300
12301         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
12302         rather than singleton vectors.
12303         (vqdmlsls_lane_s32): Likewise.
12304
12305 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12306
12307         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
12308         Use VSDQ_HSI mode iterator.
12309         (aarch64_sqrdmulh_laneq<mode>): Likewise.
12310         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
12311         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
12312         Use BUILTIN_VDQHS macro.
12313         (sqrdmulh_laneq): Likewise.
12314         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
12315         (vqdmlals_laneq_s32): Likewise.
12316         (vqdmlslh_laneq_s16): Likewise.
12317         (vqdmlsls_laneq_s32): Likewise.
12318         (vqdmulhh_laneq_s16): Likewise.
12319         (vqdmulhs_laneq_s32): Likewise.
12320         (vqrdmulhh_laneq_s16): Likewise.
12321         (vqrdmulhs_laneq_s32): Likewise.
12322
12323 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12324
12325         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
12326         (vmuld_laneq_f64): Likewise.
12327         (vmuls_laneq_f32): Likewise.
12328         (vmul_n_f64): Likewise.
12329         (vmuld_lane_f64): Reimplement in C.
12330         (vmuls_lane_f32): Likewise.
12331
12332 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12333
12334         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
12335         to reservation.
12336         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
12337
12338 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12339
12340         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
12341         (rbitsi2): Likewise.
12342         (*arm_rev): Set predicable and predicable_short_it attributes.
12343
12344 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12345
12346         * convert.c (convert_to_integer): Guard transformation to lrint by
12347         -fno-math-errno.
12348
12349 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
12350
12351         * config/aarch64/aarch64-builtins.c
12352         (aarch64_simd_builtin_type_mode): Delete.
12353         (v8qi_UP): Remap to V8QImode.
12354         (v4hi_UP): Remap to V4HImode.
12355         (v2si_UP): Remap to V2SImode.
12356         (v2sf_UP): Remap to V2SFmode.
12357         (v1df_UP): Remap to V1DFmode.
12358         (di_UP): Remap to DImode.
12359         (df_UP): Remap to DFmode.
12360         (v16qi_UP):V16QImode.
12361         (v8hi_UP): Remap to V8HImode.
12362         (v4si_UP): Remap to V4SImode.
12363         (v4sf_UP): Remap to V4SFmode.
12364         (v2di_UP): Remap to V2DImode.
12365         (v2df_UP): Remap to V2DFmode.
12366         (ti_UP): Remap to TImode.
12367         (ei_UP): Remap to EImode.
12368         (oi_UP): Remap to OImode.
12369         (ci_UP): Map to CImode.
12370         (xi_UP): Remap to XImode.
12371         (si_UP): Remap to SImode.
12372         (sf_UP): Remap to SFmode.
12373         (hi_UP): Remap to HImode.
12374         (qi_UP): Remap to QImode.
12375         (aarch64_simd_builtin_datum): Make mode a machine_mode.
12376         (VAR1): Build builtin name.
12377         (aarch64_init_simd_builtins): Remove dead code.
12378
12379 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
12380
12381         * graphite-isl-ast-to-gimple.c:
12382         (set_options): New function.
12383         (scop_to_isl_ast): Add calling of set_options.
12384
12385 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
12386
12387         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
12388         (analyze_iv_to_split_insn): Don't initialize them.
12389         (get_ivts_expr): Removed.
12390         (allocate_basic_variable, insert_base_initialization): Use
12391         SET_SRC instead of *get_ivts_expr.
12392         (split_iv): Use &SET_SRC instead of get_ivts_expr.
12393
12394 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
12395
12396         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
12397         (translate_isl_ast_for_loop): Add checking of the
12398         flag_loop_parallelize_all.
12399         (ast_build_before_for): New function.
12400         (scop_to_isl_ast): Add checking of the
12401         flag_loop_parallelize_all.
12402         * graphite-dependences.c: Move the defenition of the
12403         scop_get_dependences from graphite-optimize-isl.c to this file.
12404         (apply_schedule_on_deps): Add checking of the ux's emptiness.
12405         (carries_deps): Add checking of the x's value.
12406         * graphite-optimize-isl.c: Move the defenition of the
12407         scop_get_dependences to graphite-dependences.c.
12408         * graphite-poly.h: Add declarations of scop_get_dependences
12409         and carries_deps.
12410
12411 2014-08-04  Rohit  <rohitarulraj@freescale.com>
12412
12413         PR target/60102
12414         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
12415         names.
12416         (alt_reg_names): Likewise.
12417         (rs6000_dwarf_register_span): For SPE high registers, replace
12418         dwarf register numbers with GCC hard register numbers.
12419         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
12420         (rs6000_dbx_register_number): For SPE high registers, return dwarf
12421         register number for the corresponding GCC hard register number.
12422         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
12423         newly added GCC hard register numbers for SPE high registers.
12424         (DWARF_FRAME_REGISTERS):  Likewise.
12425         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
12426         (DWARF_FRAME_REGNUM): Likewise.
12427         (FIXED_REGISTERS): Likewise.
12428         (CALL_USED_REGISTERS): Likewise.
12429         (CALL_REALLY_USED_REGISTERS): Likewise.
12430         (REG_ALLOC_ORDER): Likewise.
12431         (enum reg_class): Likewise.
12432         (REG_CLASS_NAMES): Likewise.
12433         (REG_CLASS_CONTENTS): Likewise.
12434         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
12435
12436 2014-08-04  Richard Biener  <rguenther@suse.de>
12437
12438         * gimple-fold.h (gimple_fold_builtin): Remove.
12439         * gimple-fold.c (gimple_fold_builtin): Make static.
12440         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
12441         fold_stmt, not gimple_fold_builtin.
12442
12443 2014-08-04  Martin Liska <mliska@suse.cz>
12444
12445         * cgraph.h (csi_end_p): Removed.
12446         (csi_next): Likewise.
12447         (csi_node): Likewise.
12448         (csi_start): Likewise.
12449         (cgraph_node_in_set_p): Likewise.
12450         (cgraph_node_set_size): Likewise.
12451         (vsi_end_p): Likewise.
12452         (vsi_next): Likewise.
12453         (vsi_node): Likewise.
12454         (vsi_start): Likewise.
12455         (varpool_node_set_size): Likewise.
12456         (cgraph_node_set_nonempty_p): Likewise.
12457         (varpool_node_set_nonempty_p): Likewise.
12458         * cgraphunit.c (cgraph_process_new_functions): vec replaces
12459         cgraph_node_set.
12460         * ipa-inline-transform.c: Likewise.
12461         * ipa-utils.c (cgraph_node_set_new): Removed.
12462         (cgraph_node_set_add): Likewise.
12463         (cgraph_node_set_remove): Likewise.
12464         (cgraph_node_set_find): Likewise.
12465         (dump_cgraph_node_set): Likewise.
12466         (debug_cgraph_node_set): Likewise.
12467         (free_cgraph_node_set): Likewise.
12468         (varpool_node_set_new): Likewise.
12469         (varpool_node_set_add): Likewise.
12470         (varpool_node_set_remove): Likewise.
12471         (varpool_node_set_find): Likewise.
12472         (dump_varpool_node_set): Likewise.
12473         (free_varpool_node_set): Likewise.
12474         (debug_varpool_node_set): Likewise.
12475         * tree-emutls.c (struct tls_var_data):
12476         (emutls_index): Removed.
12477         (emutls_decl): Likewise.
12478         (gen_emutls_addr): Function implementation uses newly added
12479         hash_map<varpool_node *, tls_var_data>.
12480         (clear_access_vars): Likewise.
12481         (create_emultls_var): Likewise.
12482         (ipa_lower_emutls): Likewise.
12483         (reset_access): New function.
12484
12485 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12486
12487         * config/i386/i386.c (ix86_option_override_internal): Add
12488         PTA_RDRND and PTA_MOVBE for bdver4.
12489
12490 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12491             James Greenhalgh  <james.greenhalgh@arm.com>
12492
12493         * doc/md.texi (clrsb): Document.
12494         (clz): Change reference to x into operand 1.
12495         (ctz): Likewise.
12496         (popcount): Likewise.
12497
12498 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12499
12500         PR target/61713
12501         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
12502         move to subtarget in serial version if result is ignored.
12503
12504 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12505             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12506
12507         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
12508         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
12509         (sched_analyze_insn): Update use of try_group_insn to
12510         sched_macro_fuse_insns.
12511         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
12512         arguments that are not conditional jumps.
12513
12514 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12515
12516         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
12517         family information. Handle BTVER2 cpu with cpuid family value.
12518
12519 2014-08-04  Tom de Vries  <tom@codesourcery.com>
12520
12521         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12522         (glibc_2_11_or_earlier): Document effective-target keywords.
12523
12524 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
12525
12526         * ipa-devirt.c (odr_type_warn_count): Add type.
12527         (possible_polymorphic_call_targets): Set it.
12528         (ipa_devirt): Use it.
12529
12530 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
12531
12532         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
12533         Document.
12534         * ipa-devirt.c: Include hash-map.h
12535         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
12536         (clear_speculation): Break out of ...
12537         (get_class_context): ... here; speed up handling obviously useless
12538         speculations.
12539         (odr_type_warn_count, decl_warn_count): New structures.
12540         (final_warning_record): New structure.
12541         (final_warning_records): New static variable.
12542         (possible_polymorphic_call_targets): Cleanup handling of
12543         speculative info; do not build speculation when user do not care;
12544         record info about warnings when asked for.
12545         (add_decl_warning): New function.
12546         (type_warning_cmp): New function.
12547         (decl_warning_cmp): New function.
12548         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
12549         (gate): Enable pass when warnings are requested.
12550         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
12551         options.
12552
12553 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
12554
12555         * hash-map.h (default_hashmap_traits::mark_key_deleted):
12556         Fix cast.
12557         (hash_map::remove): New method.
12558         (hash_map::traverse): New method.
12559         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
12560         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
12561         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
12562         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
12563         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
12564         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
12565         pointer_map.
12566
12567 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
12568
12569         * hash-set.h: new File.
12570         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
12571         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
12572         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
12573         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
12574         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
12575         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
12576         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
12577         varpool.c: Use hash_set instead of pointer_set.
12578
12579 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
12580
12581         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
12582
12583 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12584
12585         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
12586         for frame access when strict_p is false.
12587
12588 2014-08-01  Renlin Li <renlin.li@arm.com>
12589 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12590
12591         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
12592         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
12593         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
12594         Declaration.
12595         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
12596         predicate.
12597         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
12598         aarch64_mem_pair_offset.
12599
12600 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12601
12602         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
12603         offset.
12604         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
12605         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
12606
12607 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
12608
12609         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
12610
12611 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
12612
12613         PR regression/61510
12614         * cgraphunit.c (analyze_functions): Use get_create rather than get
12615         for decls which are clones of abstract functions.
12616
12617 2014-08-01  Martin Liska  <mliska@suse.cz>
12618
12619         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
12620         * ipa-prop.h (count_formal_params): Global function created from static.
12621         * ipa-prop.c (count_formal_params): Likewise.
12622         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
12623         profiles for semantically equivalent functions.
12624         * passes.c (do_per_function): If we load body of a function
12625         during WPA, this condition should behave same.
12626         * varpool.c (ctor_for_folding): More tolerant assert for variable
12627         aliases created during WPA.
12628
12629 2014-08-01  Martin Liska  <mliska@suse.cz>
12630
12631         * doc/invoke.texi (Options That Control Optimization): Documentation
12632         for -foptimize-strlen introduced. Optimization levels default options
12633         fixed.
12634
12635 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
12636
12637         * opts.c (common_handle_option): Handle -fsanitize=alignment.
12638         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
12639         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
12640         type to bool.
12641         * stor-layout.h (min_align_of_type): New prototype.
12642         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
12643         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
12644         check.
12645         * ubsan.c: Include builtins.h.
12646         (ubsan_expand_bounds_ifn): Change return type to bool,
12647         always return true.
12648         (ubsan_expand_null_ifn): Change return type to bool, change
12649         argument to gimple_stmt_iterator *.  Handle both null and alignment
12650         sanitization, take type from ckind argument's type rather than
12651         first argument.
12652         (instrument_member_call): Removed.
12653         (instrument_mem_ref): Remove t argument, add mem and base arguments.
12654         Handle both null and alignment sanitization, don't say whole
12655         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
12656         call instead of 2 argument.
12657         (instrument_null): Adjust instrument_mem_ref caller.  Don't
12658         instrument calls here.
12659         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
12660         like SANITIZE_NULL.
12661         * stor-layout.c (min_align_of_type): New function.
12662         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
12663         Or it into SANITIZE_UNDEFINED.
12664         * doc/invoke.texi (-fsanitize=alignment): Document.
12665
12666 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12667
12668         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
12669
12670 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12671
12672         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
12673         inchash.
12674         (vn_reference_compute_hash): Dito.
12675         (vn_nary_op_compute_hash): Dito.
12676         (vn_phi_compute_hash): Dito.
12677         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
12678
12679 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12680
12681         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
12682         Rename to inchash:add_expr_commutative. Convert to inchash.
12683         (iterative_hash_hashable_expr): Rename to
12684         inchash:add_hashable_expr. Convert to inchash.
12685         (avail_expr_hash): Dito.
12686
12687 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12688
12689         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
12690         Convert to inchash.
12691
12692 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12693
12694         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
12695
12696 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12697
12698         * Makefile.in (OBJS): Add rtlhash.o
12699         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12700         (loc_checksum): Dito.
12701         (loc_checksum_ordered): Dito.
12702         (hash_loc_operands): Dito.
12703         (hash_locs): Dito.
12704         (hash_loc_list): Dito.
12705         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12706         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12707         * rtlhash.c: New file.
12708         * rtlhash.h: New file.
12709
12710 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12711
12712         * inchash.h (inchash): Change inchash class to namespace.
12713         (class hash): ... Rename from inchash.
12714         (add_object): Move from macro to class template.
12715         * lto-streamer-out.c (hash_tree): Change inchash
12716         to inchash::hash.
12717         * tree.c (build_type_attribute_qual_variant): Dito.
12718         (type_hash_list): Dito.
12719         (attribute_hash_list): Dito.
12720         (iterative_hstate_expr): Rename to inchash::add_expr
12721         (build_range_type_1): Change inchash to inchash::hash
12722         and use hash::add_expr.
12723         (build_array_type_1): Dito.
12724         (build_function_type): Dito
12725         (build_method_type_directly): Dito.
12726         (build_offset_type): Dito.
12727         (build_complex_type): Dito.
12728         (make_vector_type): Dito.
12729         * tree.h (iterative_hash_expr): Dito.
12730
12731 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
12732
12733         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12734
12735 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12736
12737         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12738         correct alphabetical position.
12739         (vpaddd_f64): Rewrite using builtins.
12740         (vpaddd_s64): Move to correct alphabetical position.
12741         (vpaddd_u64): New.
12742
12743 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
12744
12745         PR target/61844
12746         * config/sh/sh.c (sh_legitimate_address_p,
12747         sh_legitimize_reload_address): Handle reg+reg address modes when
12748         ALLOW_INDEXED_ADDRESS is false.
12749         * config/sh/predicates.md (general_movsrc_operand,
12750         general_movdst_operand): Likewise.
12751
12752 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12753
12754         * config/aarch64/aarch64-builtins.c
12755         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12756         BYTES_BIG_ENDIAN.
12757
12758 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12759
12760         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12761         the generated mask based on BYTES_BIG_ENDIAN.
12762         (aarch64_simd_check_vect_par_cnst_half): New.
12763         * config/aarch64/aarch64-protos.h
12764         (aarch64_simd_check_vect_par_cnst_half): New.
12765         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12766         the check out to aarch64_simd_check_vect_par_cnst_half.
12767         (vect_par_cnst_lo_half): Likewise.
12768         * config/aarch64/aarch64-simd.md
12769         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12770         (move_hi_quad_<mode>): Always generate a low mask.
12771
12772 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12773
12774         * doc/invoke.texi (AVR Options): Add documentation about
12775         __AVR_DEVICE_NAME__ built-in macro.
12776
12777 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
12778
12779         PR target/61948
12780         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12781         constraints are satisfied.
12782         (<shift>di3_neon): Likewise.
12783
12784 2014-07-31  Richard Biener  <rguenther@suse.de>
12785
12786         PR tree-optimization/61964
12787         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12788         by structural equality.
12789
12790 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
12791
12792         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12793         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12794         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12795         New enums.
12796         * gcc.c (sanitize_spec_function): Support new option.
12797         (SANITIZER_SPEC): Remove now redundant check.
12798         * opts.c (common_handle_option): Support new option.
12799         (finish_options): Check for incompatibilities.
12800         * toplev.c (process_options): Split userspace-specific checks.
12801
12802 2014-07-31  Richard Biener  <rguenther@suse.de>
12803
12804         * lto-streamer.h (struct output_block): Remove global.
12805         (struct data_in): Remove labels, num_named_labels and
12806         num_unnamed_labels.
12807         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12808         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12809
12810 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
12811
12812         PR c++/60517
12813         * common.opt (-Wreturn-local-addr): Moved from c.opt.
12814         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12815         (isolate_path): New argument to avoid inserting a trap.
12816         (find_implicit_erroneous_behaviour): Handle returning the address
12817         of a local variable.
12818         (find_explicit_erroneous_behaviour): Likewise.
12819
12820 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
12821
12822         PR lto/61868
12823         * toplev.c (init_random_seed): Move piece of code never called to
12824         set_random_seed.
12825         (set_random_seed): see above.
12826
12827 2014-07-31  Tom de Vries  <tom@codesourcery.com>
12828
12829         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12830
12831 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
12832
12833         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12834         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12835
12836 2014-07-31  Richard Biener  <rguenther@suse.de>
12837
12838         * data-streamer.h (streamer_write_data_stream): Declare here,
12839         renamed from ...
12840         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
12841         * lto-cgraph.c (lto_output_node): Adjust.
12842         (lto_output_varpool_node): Likewise.
12843         * data-streamer-out.c (streamer_string_index): Likewise.
12844         (streamer_write_data_stream, lto_append_block): Move from ...
12845         * lto-section-out.c (lto_output_data_stream,
12846         lto_append_block): ... here.
12847
12848 2014-07-30  Mike Stump  <mikestump@comcast.net>
12849
12850         * configure.ac: Also check for popen.
12851         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12852         * configure: Regenerate.
12853         * config.in:  Regenerate.
12854
12855 2014-07-30  Martin Jambor  <mjambor@suse.cz>
12856
12857         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12858         parameter to gimple.
12859
12860 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12861
12862         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12863         address as second parameter to __tpf_eh_return routine.
12864
12865 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
12866
12867         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12868         Thumb2.
12869
12870 2014-07-30  Tom Tromey  <tromey@redhat.com>
12871
12872         PR c/59855
12873         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12874         * doc/extend.texi (Type Attributes): Document designated_init
12875         attribute.
12876
12877 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
12878
12879         * graphite-isl-ast-to-gimple.c:
12880         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12881         (gcc_expression_from_isl_expression): Pass type to
12882         gcc_expression_from_isl_ast_expr_id.
12883
12884 2014-07-30  Richard Biener  <rguenther@suse.de>
12885
12886         * lto-streamer.h (lto_write_data): New function.
12887         * langhooks.c (lhd_append_data): Do not free block.
12888         * lto-section-out.c (lto_write_data): New function writing
12889         raw data to the current section.
12890         (lto_write_stream): Adjust for langhook semantic change.
12891         (lto_destroy_simple_output_block): Write header directly.
12892         * lto-opts.c (lto_write_options): Write options directly.
12893         * lto-streamer-out.c (produce_asm): Write heaeder directly.
12894         (lto_output_toplevel_asms): Likewise.
12895         (copy_function_or_variable): Copy data directly.
12896         (write_global_references): Output index table directly.
12897         (lto_output_decl_state_refs): Likewise.
12898         (write_symbol): Write data directly.
12899         (produce_symtab): Adjust.
12900         (produce_asm_for_decls): Output header and refs directly.
12901
12902 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12903
12904         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12905         to speculative_targets
12906         (get_class_context): Fix handling of contextes without outer type;
12907         avoid matching non-polymorphic types in LTO.
12908         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12909         parameter to speculative_targetsp; handle speculation.
12910         (dump_possible_polymorphic_call_targets): Update dumping.
12911
12912 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12913
12914         * common.opt (Wodr): Enable by default.
12915
12916 2014-07-29  Olivier Hainque  <hainque@adacore.com>
12917
12918         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12919
12920 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
12921
12922         PR bootstrap/61914
12923         * gengtype.c (strtoken): New function.
12924         (create_user_defined_type): Replace strtok with strtoken.
12925
12926 2014-07-29  Nathan Sidwell  <nathan@acm.org>
12927
12928         * gcov-io.c (gcov_var): Make hidden.
12929         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12930         (gcov_do_dump): Declare.
12931         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12932
12933 2014-07-29  Martin Jambor  <mjambor@suse.cz>
12934
12935         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12936         parameter to gimple.
12937         (sra_modify_assign): Likewise.
12938
12939 2014-07-29  Richard Biener  <rguenther@suse.de>
12940
12941         PR middle-end/52478
12942         * expr.c (expand_expr_real_2): Revert last change.
12943
12944 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12945
12946         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12947         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12948         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12949         call.
12950         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12951         (contains_type_p): Forward declare.
12952         (polymorphic_call_target_hasher::hash): Hash speculative info.
12953         (polymorphic_call_target_hasher::equal): Compare speculative info.
12954         (get_class_context): Handle speuclation.
12955         (contains_type_p): Update.
12956         (get_polymorphic_call_info_for_decl): Update.
12957         (walk_ssa_copies): Break out from ...
12958         (get_polymorphic_call_info): ... here; set speculative context
12959         before giving up.
12960         * ipa-prop.c (ipa_write_indirect_edge_info,
12961         ipa_read_indirect_edge_info): Stream speculative context.
12962         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12963         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12964         SPECULATIVE_MAYBE_DERIVED_TYPE).
12965         (possible_polymorphic_call_targets overriders): Update.
12966         (dump_possible_polymorphic_call_targets overriders): Update.
12967         (dump_possible_polymorphic_call_target_p overriders): Update.
12968
12969 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12970
12971         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12972         ipa-devirt path; fix thinko there.
12973
12974 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
12975
12976         * config/i386/i386.c (ix86_return_in_memory): Replace one
12977         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12978
12979 2014-07-28  Marek Polacek  <polacek@redhat.com>
12980
12981         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
12982
12983 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
12984
12985         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12986         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12987         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12988         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12989         (USE_LD_AS_NEEDED): Likewise.
12990         (ASM_APP_ON): Likewise.
12991         (ASM_APP_OFF): Likewise.
12992         (TARGET_POSIX_IO): Likewise.
12993         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12994         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12995         (USE_LD_AS_NEEDED): Likewise.
12996         (ASM_APP_ON): Likewise.
12997         (ASM_APP_OFF): Likewise.
12998         (TARGET_POSIX_IO): Likewise.
12999
13000 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
13001
13002         PR middle-end/61734
13003         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
13004         operators other than the equality operators.
13005
13006 2014-07-28  Richard Biener  <rguenther@suse.de>
13007
13008         PR middle-end/52478
13009         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
13010         sure to register SImode ones, not only >= word_mode ones.
13011         * expr.c (expand_expr_real_2): When expanding -ftrapv
13012         binops do not use OPTAB_LIB_WIDEN.
13013
13014 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
13015
13016         PR middle-end/61919
13017         * tree-outof-ssa.c (insert_partition_copy_on_edge)
13018         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
13019         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
13020         inserting them in the insn stream.
13021
13022 2014-07-28  Marek Polacek  <polacek@redhat.com>
13023
13024         PR middle-end/61913
13025         * common.opt (Wodr): Add Var.
13026
13027 2014-07-28  Richard Biener  <rguenther@suse.de>
13028
13029         PR tree-optimization/61921
13030         * tree-ssa-structalias.c (create_variable_info_for_1): Check
13031         if there is a varpool node before dereferencing it.
13032
13033 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
13034
13035         * graphite-sese-to-poly.c:
13036         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
13037         id of the pbb), which contains pointer to the pbb1.
13038
13039         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
13040
13041 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
13042
13043         * graphite-isl-ast-to-gimple.c:
13044         (graphite_create_new_guard): New function.
13045         (translate_isl_ast_node_if): New function.
13046         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
13047
13048         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
13049
13050 2014-07-27  Anthony Green  <green@moxielogic.com>
13051
13052         * config.gcc: Add moxie-*-moxiebox* configuration.
13053         * config/moxie/moxiebox.h: New file.
13054
13055 2014-07-26  Andrew Pinski  <apinski@cavium.com>
13056
13057         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
13058         from the read only register.
13059
13060 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
13061
13062         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
13063         as the allocation class if it isn't likely to be spilled.
13064
13065 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
13066
13067         * rtl.h (tls_referenced_p): Declare.
13068         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
13069         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
13070         (mips_cannot_force_const_mem): Use tls_referenced_p.
13071         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
13072         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
13073         instead of pa_tls_referenced_p.
13074         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
13075         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
13076         (pa_legitimate_constant_p): Likewise.
13077         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
13078         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
13079         (rs6000_cannot_force_const_mem, rs6000_emit_move)
13080         (rs6000_address_for_altivec): Use tls_referenced_p instead of
13081         rs6000_tls_referenced_p.
13082         (rs6000_tls_symbol_ref_1): Delete.
13083
13084 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
13085
13086         PR target/44551
13087         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
13088         Optimize inverse of a VEC_CONCAT.
13089
13090 2014-07-25  Xinliang David Li  <davidxl@google.com>
13091
13092         * params.def: New parameter.
13093         * coverage.c (get_coverage_counts): Check new flag.
13094         (coverage_compute_profile_id): Check new flag.
13095         (coverage_begin_function): Check new flag.
13096         (coverage_end_function): Check new flag.
13097         * value-prof.c (coverage_node_map_initialized_p): New function.
13098         (init_node_map): Populate map with all functions.
13099         * doc/invoke.texi: Document new parameter.
13100
13101 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
13102             Richard Biener <rguenther@suse.de>
13103
13104         * lto-streamer-out.c (struct sccs): Turn to ...
13105         (class DFS): ... this one; refactor the DFS walk so it can
13106         be re-done on per-SCC basis.
13107         (DFS::DFS): New constructor.
13108         (DFS::~DFS): New destructor.
13109         (hash_tree): Add new MAP argument holding in-SCC hash values;
13110         remove POINTER_TYPE hashing hack.
13111         (scc_entry_compare): Rename to ...
13112         (DFS::scc_entry_compare): ... this one.
13113         (hash_scc): Rename to ...
13114         (DFS::hash_scc): ... this one; pass output_block instead
13115         of streamer_cache; work harder to get unique and stable SCC
13116         hashes.
13117         (DFS_write_tree): Rename to ...
13118         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
13119         (lto_output_tree): Update.
13120
13121 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13122
13123         * lto-streamer-out.c (hash_tree): Convert to inchash.
13124
13125 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13126
13127         * tree.c (build_type_attribute_qual_variant): Use inchash.
13128         (type_hash_list): Dito.
13129         (attribute_hash_list): Dito
13130         (iterative_hstate_expr): Dito.
13131         (iterative_hash_expr): Dito.
13132         (build_range_type_1): Dito.
13133         (build_array_type_1): Dito.
13134         (build_function_type): Dito.
13135         (build_method_type_directly): Dito.
13136         (build_offset_type): Dito.
13137         (build_complex_type): Dito.
13138         (make_vector_type): Dito.
13139         * tree.h (iterative_hash_expr): Add compat wrapper.
13140         (iterative_hstate_expr): Add.
13141
13142 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13143
13144         * Makefile.in (OBJS): Add inchash.o.
13145         (PLUGIN_HEADERS): Add inchash.h.
13146         * ipa-devirt.c: Include inchash.h.
13147         * lto-streamer-out.c: Dito.
13148         * tree-ssa-dom.c: Dito.
13149         * tree-ssa-pre.c: Dito.
13150         * tree-ssa-sccvn.c: Dito.
13151         * tree-ssa-tail-merge.c: Dito.
13152         * asan.c: Dito.
13153         * tree.c (iterative_hash_hashval_t): Move to ...
13154         (iterative_hash_host_wide_int): Move to ...
13155         * inchash.c: Here. New file.
13156         * tree.h (iterative_hash_hashval_t): Move to ...
13157         (iterative_hash_host_wide_int): Move to ...
13158         * inchash.h: Here. New file.
13159
13160 2014-07-25  Richard Biener  <rguenther@suse.de>
13161
13162         PR middle-end/61762
13163         PR middle-end/61894
13164         * fold-const.c (native_encode_int): Add and handle offset
13165         parameter to do partial encodings of expr.
13166         (native_encode_fixed): Likewise.
13167         (native_encode_real): Likewise.
13168         (native_encode_complex): Likewise.
13169         (native_encode_vector): Likewise.
13170         (native_encode_string): Likewise.
13171         (native_encode_expr): Likewise.
13172         * fold-const.c (native_encode_expr): Add offset parameter
13173         defaulting to -1.
13174         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
13175         (fold_ctor_reference): Handle all reads from tcc_constant
13176         ctors.
13177
13178 2014-07-25  Richard Biener  <rguenther@suse.de>
13179
13180         * tree-inline.c (estimate_move_cost): Mark speed_p argument
13181         as possibly unused.
13182
13183 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13184
13185         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
13186
13187 2014-07-24  Kyle McMartin  <kyle@redhat.com>
13188
13189         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
13190
13191 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13192
13193         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
13194         Add prototype.
13195         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
13196         function.
13197         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
13198         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13199         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
13200
13201 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13202
13203         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
13204         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
13205         aggregate types.  Instead, *all* aggregate types, except for single-
13206         element or homogeneous float/vector aggregates, are quadword-aligned
13207         if required by their type alignment.  Issue -Wpsabi note when a type
13208         is now treated differently than before.
13209
13210 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13211
13212         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
13213         does not fit fully into floating-point registers, and there is still
13214         space in the register parameter area, use GPRs to pass those parts
13215         of the argument.  Issue -Wpsabi note if any parameter is now treated
13216         differently than before.
13217         (rs6000_arg_partial_bytes): Update.
13218
13219 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
13220
13221         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
13222
13223 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13224
13225         * rtl.h (target_rtl): Remove lang_dependent_initialized.
13226         * toplev.c (initialize_rtl): Don't use it.  Move previously
13227         "language-dependent" calls to...
13228         (backend_init): ...here.
13229         (lang_dependent_init_target): Don't set lang_dependent_initialized.
13230         Assert that RTL initialization hasn't happend yet.
13231
13232 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13233
13234         PR rtl-optimization/61629
13235         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
13236         they have already been initialized.
13237
13238 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13239
13240         PR middle-end/61268
13241         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
13242         DECL_INCOMING_RTL and entry_parm.
13243         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
13244         * calls.c (load_register_parameters): Likewise argument values.
13245         (emit_library_call_value_1, store_one_arg): Likewise argument
13246         save areas.
13247         * config/i386/i386.c (assign_386_stack_local): Likewise the local
13248         stack slot.
13249         * explow.c (validize_mem): Modify the argument in-place.
13250
13251 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13252
13253         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
13254         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
13255
13256 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13257
13258         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
13259         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
13260
13261 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13262
13263         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
13264         (aarch64_save_callee_saves): New parameter "skip_wb".
13265         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
13266
13267 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13268
13269         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
13270         "wb_candidate2".
13271         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
13272
13273 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
13274
13275         * graphite-isl-ast-to-gimple.c:
13276         (graphite_create_new_loop): Add calling of isl_id_free to properly
13277         decrement reference counts.
13278
13279         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
13280
13281 2014-07-24  Martin Liska  <mliska@suse.cz>
13282         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
13283         function used.
13284         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
13285         (rs6000_code_end): Likewise.
13286
13287 2014-07-24  Martin Liska  <mliska@suse.cz>
13288
13289         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
13290         symtab_node funtion used.
13291         (rs6000_xcoff_declare_object_name): Likewise.
13292
13293 2014-07-24  Martin Liska  <mliska@suse.cz>
13294
13295         * cgraphunit.c (compile): Correct function used.
13296
13297 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
13298
13299         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
13300         as non-indexable.
13301
13302 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
13303
13304         PR lto/61802
13305         * varasm.c (bss_initializer_p): Handle offlined ctors.
13306         (align_variable, get_variable_align): Likewise.
13307         (make_decl_one_only): Likewise.
13308         (default_binds_local_p_1): Likewise.
13309         (decl_binds_to_current_def_p): Likewise.
13310         (get_variable_section): Get constructor if it is offlined.
13311         (assemble_variable_contents): Sanity check that the caller
13312         streamed in the ctor in LTO.
13313
13314 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
13315
13316         * graphite-isl-ast-to-gimple.c:
13317         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
13318         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
13319         isl_ast_op_pdiv_r to the different case.
13320
13321         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
13322
13323 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13324
13325         PR middle-end/61876
13326         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
13327         when flag_errno_math is on.
13328
13329 2014-07-24  Martin Liska  <mliska@suse.cz>
13330
13331         * cgraph.h (varpool_node):
13332         (availability get_availability (void)):
13333         created from cgraph_variable_initializer_availability
13334         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
13335         created from: cgraph_variable_initializer_availability
13336         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
13337         (void finalize_named_section_flags (void)):
13338         created from varpool_finalize_named_section_flags
13339         (bool assemble_decl (void)): created from varpool_assemble_decl
13340         (void analyze (void)): created from varpool_analyze_node
13341         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
13342         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
13343         (void remove_initializer (void)): created from varpool_remove_initializer
13344         (tree get_constructor (void)): created from varpool_get_constructor
13345         (bool externally_visible_p (void)): created from varpool_externally_visible_p
13346         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
13347         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
13348         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
13349         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
13350         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
13351         (static bool output_variables (void)): created from varpool_output_variables
13352         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
13353         created from varpool_extra_name_alias
13354         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
13355         (static void dump_varpool (FILE *f)): created from dump_varpool
13356         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
13357         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
13358         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
13359         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
13360         (void assemble_aliases (void)): created from assemble_aliases
13361
13362 2014-07-24  Martin Liska  <mliska@suse.cz>
13363
13364         * cgraph.h (symtab_node):
13365         (void register_symbol (void)): created from symtab_register_node
13366         (void remove (void)): created from symtab_remove_node
13367         (void dump (FILE *f)): created from dump_symtab_node
13368         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
13369         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
13370         (struct ipa_ref *add_reference (symtab_node *referred_node,
13371         enum ipa_ref_use use_type)): created from add_reference 
13372         (struct ipa_ref *add_reference (symtab_node *referred_node,
13373         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
13374         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
13375         gimple stmt)): created from maybe_add_reference
13376         (bool semantically_equivalent_p (symtab_node *target)): created from
13377         symtab_semantically_equivalent_p
13378         (void remove_from_same_comdat_group (void)): created from
13379         remove_from_same_comdat_group
13380         (void add_to_same_comdat_group (symtab_node *old_node)): created from
13381         symtab_add_to_same_comdat_group
13382         (void dissolve_same_comdat_group_list (void)): created from
13383         symtab_dissolve_same_comdat_group_list
13384         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
13385         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
13386         created from symtab_alias_ultimate_target
13387         (inline symtab_node *next_defined_symbol (void)): created from
13388         symtab_next_defined_symbol
13389         (bool resolve_alias (symtab_node *target)): created from
13390         symtab_resolve_alias
13391         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
13392         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
13393         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
13394         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
13395         (void set_section (const char *section)): created from set_section_1 
13396         (enum availability get_availability (void)): created from symtab_node_availability
13397         (void make_decl_local (void)): created from symtab_make_decl_local
13398         (bool real_symbol_p (void)): created from symtab_read_node
13399         (can_be_discarded_p (void)): created from symtab_can_be_discarded
13400         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
13401         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
13402         symtab_in_same_comdat_p;
13403         (bool address_taken_from_non_vtable_p (void)): created from
13404         address_taken_from_non_vtable_p
13405         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
13406         (static void dump_table (FILE *)): created from dump_symtab
13407         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
13408         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
13409         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
13410         symtab_used_from_object_file_p 
13411         (void dump_base (FILE *)): created from dump_symtab_base
13412         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
13413         (void unregister (void)): created from symtab_unregister_node
13414         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
13415         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
13416         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
13417         symtab_nonoverwritable_alias_1
13418         * cgraph.h (cgraph_node):
13419         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
13420         created from cgraph_remove_node_and_inline_clones
13421         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
13422         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
13423         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
13424         (cgraph_node *function_symbol (enum availability *avail = NULL)):
13425         created from cgraph_function_node
13426         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
13427         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
13428         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
13429         created from cgraph_create_clone 
13430         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
13431         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
13432         created from cgraph_create_virtual_clone
13433         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
13434         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
13435         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
13436         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
13437         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
13438         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
13439         created from cgraph_function_version_info
13440         (struct cgraph_function_version_info *insert_new_function_version (void)):
13441         created from insert_new_cgraph_node_version
13442         (struct cgraph_function_version_info *function_version (void)): created from
13443         get_cgraph_node_version
13444         (void analyze (void)): created from analyze_function
13445         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
13446         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
13447         tree real_alias) cgraph_add_thunk
13448         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
13449         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
13450         created from cgraph_function_or_thunk_node
13451         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
13452         created from expand_thunk
13453         (void reset (void)): created from cgraph_reset_node
13454         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
13455         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
13456         (void remove (void)): created from cgraph_remove_node
13457         (void dump (FILE *f)): created from dump_cgraph_node
13458         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
13459         (bool get_body (void)): created from cgraph_get_body
13460         (void release_body (void)): created from cgraph_release_function_body
13461         (void unnest (void)): created from cgraph_unnest_node
13462         (void make_local (void)): created from cgraph_make_node_local
13463         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
13464         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
13465         gcov_type count, int freq)): created from cgraph_create_edge
13466         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
13467         gcov_type count, int freq)): created from cgraph_create_indirect_edge
13468         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
13469         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
13470         created from cgraph_create_edge_including_clones
13471         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
13472         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
13473         (void remove_callers (void)): created from cgraph_node_remove_callers
13474         (void remove_callees (void)): created from cgraph_node_remove_callees
13475         (enum availability get_availability (void)): created from cgraph_function_body_availability
13476         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
13477         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
13478         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
13479         (void call_duplication_hooks (cgraph_node *node2)): created from
13480         cgraph_call_node_duplication_hooks
13481         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
13482         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
13483         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
13484         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
13485         (void call_function_insertion_hooks (void)):
13486         created from cgraph_call_function_insertion_hooks
13487         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
13488         (bool local_p (void)): created from cgraph_local_node
13489         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
13490         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
13491         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
13492         (inline bool only_called_directly_or_aliased_p (void)):
13493         created from cgraph_only_called_directly_or_aliased_p
13494         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
13495         created from cgraph_will_be_removed_from_program_if_no_direct_calls
13496         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
13497         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
13498         (bool can_remove_if_no_direct_calls_p (void)):
13499         created from cgraph_can_remove_if_no_direct_calls_p
13500         (inline bool has_gimple_body_p (void)):
13501         created from cgraph_function_with_gimple_body_p
13502         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
13503         (static void dump_cgraph (FILE *f)): created from dump_cgraph
13504         (static inline void debug_cgraph (void)): created from debug_cgraph
13505         (static void record_function_versions (tree decl1, tree decl2)):
13506         created from record_function_versions
13507         (static void delete_function_version (tree decl)):
13508         created from delete_function_version
13509         (static void add_new_function (tree fndecl, bool lowered)):
13510         created from cgraph_add_new_function
13511         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
13512         (static cgraph_node * create (tree decl)): created from cgraph_create_node
13513         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
13514         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
13515         (static cgraph_node *get_for_asmname (tree asmname)):
13516         created from cgraph_node_for_asm
13517         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
13518         created from cgraph_same_body_alias 
13519         (static bool used_from_object_file_p_worker (cgraph_node *node,
13520         void *): new function
13521         (static bool non_local_p (cgraph_node *node, void *)):
13522         created from cgraph_non_local_node_p_1
13523         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
13524         created from verify_cgraph
13525         (static bool make_local (cgraph_node *node, void *)):
13526         created from cgraph_make_node_local
13527         (static cgraph_node *create_alias (tree alias, tree target)):
13528         created from cgraph_create_function_alias
13529         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
13530         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
13531         created from cgraph_create_edge_1
13532         * cgraph.h (varpool_node):
13533         (void remove (void)): created from varpool_remove_node
13534         (void dump (FILE *f)): created from dump_varpool_node
13535
13536 2014-07-24  Richard Biener  <rguenther@suse.de>
13537
13538         PR ipa/61823
13539         * tree-ssa-structalias.c (create_variable_info_for_1):
13540         Use varpool_get_constructor.
13541         (create_variable_info_for): Likewise.
13542
13543 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13544
13545         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
13546         subtract outgoing area size when restoring stack_pointer_rtx.
13547
13548 2014-07-24  Nick Clifton  <nickc@redhat.com>
13549
13550         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
13551         that operations are taking place in parallel.
13552         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
13553
13554 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
13555
13556         * omp-low.c (extract_omp_for_data): Add missing break statement.
13557
13558 2014-07-24  Richard Biener  <rguenther@suse.de>
13559
13560         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
13561         * tree-inline.c (estimate_move_cost): Add speed_p parameter
13562         and adjust MOVE_RATIO query accordingly.
13563         (estimate_num_insns): Adjust callers.
13564         * ipa-prop.c (ipa_populate_param_decls): Likewise.
13565         * ipa-cp.c (gather_context_independent_values,
13566         estimate_local_effects): Likewise.
13567         * ipa-split.c (consider_split): Likewise.
13568
13569 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
13570
13571         * config/i386/driver-i386.c: Remove names of unused arguments and
13572         unnecessary unused attributes.
13573         * config/i386/host-mingw32.c: Likewise.
13574         * config/i386/i386.c: Likewise.
13575         * config/i386/winnt-stubs.c: Likewise.
13576         * config/i386/winnt.c: Likewise.
13577
13578 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13579
13580         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
13581         (aarch64_gen_loadwb_pair): New helper function.
13582         (aarch64_expand_epilogue): Simplify code using new helper functions.
13583         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
13584
13585 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13586
13587         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
13588         (aarch64_gen_storewb_pair): New helper function.
13589         (aarch64_expand_prologue): Simplify code using new helper functions.
13590         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
13591
13592 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13593
13594         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
13595         Rename to aarch64_save_callee_saves, remove restore code.
13596         (aarch64_restore_callee_saves): New function.
13597
13598 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13599
13600         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
13601         (aarch64_save_callee_saves): New function to handle reg save
13602         for both core and vectore regs.
13603
13604 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13605
13606         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
13607         (aarch64_gen_store_pair): New helper function.
13608         (aarch64_save_or_restore_callee_save_registers)
13609         (aarch64_save_or_restore_fprs): Use new helper functions.
13610
13611 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13612
13613         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
13614         (aarch64_save_or_restore_callee_save_registers)
13615         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
13616
13617 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13618
13619         * config/aarch64/aarch64.c
13620         (aarch64_save_or_restore_callee_save_registers)
13621         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
13622
13623 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13624
13625         * config/aarch64/aarch64.c
13626         (aarch64_save_or_restore_callee_save_registers)
13627         (aarch64_save_or_restore_fprs): Remove 'increment'.
13628
13629 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13630
13631         * config/aarch64/aarch64.c
13632         (aarch64_save_or_restore_callee_save_registers)
13633         (aarch64_save_or_restore_fprs): Use register offset in
13634         cfun->machine->frame.reg_offset.
13635
13636 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13637
13638         * config/aarch64/aarch64.c
13639         (aarch64_save_or_restore_callee_save_registers)
13640         (aarch64_save_or_restore_fprs): Remove base_rtx.
13641
13642 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13643
13644         * config/aarch64/aarch64.c
13645         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
13646         to 'start_offset'.  Remove local variable 'start_offset'.
13647
13648 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13649
13650         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
13651         type to HOST_WIDE_INT.
13652
13653 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13654
13655         * config/aarch64/aarch64.c (aarch64_expand_prologue)
13656         (aarch64_save_or_restore_fprs)
13657         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
13658
13659 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13660
13661         * config/arm/t-rtems-eabi: Add
13662         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
13663         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
13664         mbig-endian/mthumb/march=armv7-r, and
13665         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
13666         multilibs.
13667
13668 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13669             Chris Johns <chrisj@rtems.org>
13670             Joel Sherrill <joel.sherrill@oarcorp.com>
13671
13672         * config.gcc: Add nios2-*-rtems*.
13673         * config/nios2/rtems.h: New file.
13674         * gcc/config/nios2/t-rtems: New file.
13675
13676 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
13677
13678         PR target/61396
13679         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
13680         constant numbers, not general constants.
13681         (rs6000_expand_vector_init): Ditto.
13682
13683 2014-07-23  Nathan Sidwell  <nathan@acm.org>
13684
13685         * gcov-tool.c (gcov_list): Declare here.
13686         (set_gcov_list): Remove.
13687         (gcov_output_files): Set gcov_list directly.
13688
13689 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
13690
13691         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
13692
13693 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13694
13695         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
13696         callee-saved registers are available for padding purpose
13697         and r3 is not mandatory, then prefer use those callee-saved
13698         instead of r3.
13699
13700 2014-07-23  Richard Biener  <rguenther@suse.de>
13701
13702         * params.def (PARAM_MAX_COMBINE_INSNS): New.
13703         * combine.c: Include statistics.h and params.h.
13704         (combine_instructions): Guard three and four insn combines
13705         with max-combine-insns value.  Record statistics for combines
13706         performed.
13707         * doc/invoke.texi (max-combine-insns): Document new param.
13708
13709 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
13710
13711         * graphite-isl-ast-to-gimple.c:
13712         (translate_isl_ast_node_block): New function.
13713         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13714
13715         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13716         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13717
13718 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
13719
13720         * graphite-isl-ast-to-gimple.c:
13721         (get_max_schedule_dimensions): New function.
13722         (extend_schedule): Likewise.
13723         (generate_isl_schedule): Add calling of extend_schedule and
13724         get_max_schedule_dimensions.
13725
13726 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13727
13728         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13729         (case UNSPEC): Handle UNSPEC_RBIT.
13730
13731 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13732
13733         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13734         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13735
13736 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13737
13738         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13739
13740 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
13741
13742         * graphite-isl-ast-to-gimple.c:
13743         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13744         (ivs_params_clear):
13745         (build_iv_mapping): New function.
13746         (translate_isl_ast_node_user): Likewise.
13747         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13748
13749         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13750         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13751         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13752
13753 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
13754
13755         PR target/55701
13756         * config/arm/arm.md (setmem): New pattern.
13757         * config/arm/arm-protos.h (struct tune_params): New fields.
13758         (arm_gen_setmem): New prototype.
13759         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13760         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13761         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13762         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13763         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13764         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13765         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13766         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13767         (arm_const_inline_cost): New function.
13768         (arm_block_set_max_insns): New function.
13769         (arm_block_set_non_vect_profit_p): New function.
13770         (arm_block_set_vect_profit_p): New function.
13771         (arm_block_set_unaligned_vect): New function.
13772         (arm_block_set_aligned_vect): New function.
13773         (arm_block_set_unaligned_non_vect): New function.
13774         (arm_block_set_aligned_non_vect): New function.
13775         (arm_block_set_vect, arm_gen_setmem): New functions.
13776
13777 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
13778
13779         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13780
13781 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
13782
13783         PR target/61855
13784         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13785         out of #ifdef __OPTIMIZE__.
13786
13787 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
13788
13789         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13790         different trapping status if -fnon-call-exceptions is enabled.
13791
13792 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
13793
13794         * expr.c (store_field): Handle VOIDmode for calls that return values
13795         in multiple locations.
13796
13797 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13798
13799         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
13800         (altivec_vsldoi_<mode>): Likewise.
13801
13802 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
13803
13804         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13805         to the number of characters in the line.
13806
13807 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
13808
13809         * graphite-isl-ast-to-gimple.c: Add using of
13810         build_nonstandard_integer_type instead of int128_integer_type_node.
13811
13812 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
13813
13814         * toplev.c (output_stack_usage): Adjust the location of the warning.
13815
13816 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
13817
13818         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13819         (*membar_storeload): Disable for LEON3.
13820
13821 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13822
13823         PR rtl-optimization/61461
13824         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13825
13826 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
13827
13828         PR target/61794
13829         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13830         Fix instruction constraint.
13831         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13832
13833 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
13834
13835         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13836
13837 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
13838
13839         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13840         GNU coding standards.
13841         (nds32_register_move_cost): Likewise.
13842         (nds32_memory_move_cost): Likewise.
13843         (nds32_address_cost): Likewise.
13844
13845 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13846
13847         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13848
13849 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
13850
13851         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13852         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13853         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13854         (HAVE_sync_compare_and_swapqi): Define.
13855         (HAVE_sync_compare_and_swaphi): Likewise.
13856         (HAVE_sync_compare_and_swapsi): Likewise.
13857
13858 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
13859
13860         * config/mips/p5600.md: Add missing cpu tests.
13861
13862 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13863
13864         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13865         (vmla_f64): Likewise.
13866         (vfms_f64): Likewise.
13867         (vmls_f64): Likewise.
13868
13869 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13870
13871         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13872         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13873
13874 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13875
13876         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13877         (vmlal_high_lane_s32): Likewise.
13878         (vmlal_high_lane_u16): Likewise.
13879         (vmlal_high_lane_u32): Likewise.
13880         (vmlsl_high_lane_s16): Likewise.
13881         (vmlsl_high_lane_s32): Likewise.
13882         (vmlsl_high_lane_u16): Likewise.
13883         (vmlsl_high_lane_u32): Likewise.
13884
13885 2014-07-17  Terry Guo  <terry.guo@arm.com>
13886
13887         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13888         (alus_reg): Renamed to alus_sreg.
13889         * config/arm/arm-fixed.md: Change type of non-dsp instructions
13890         from alu_reg to alu_sreg.  Change type of dsp instructions from
13891         alu_reg to alu_dsp_reg.
13892         * config/arm/thumb1.md: Likewise.
13893         * config/arm/thumb2.md: Likewise.
13894         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13895         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13896         with alu_sreg and alus_sreg.
13897         * config/arm/arm1026ejs.md (alu_op): Likewise.
13898         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13899         * config/arm/arm926ejs.md (9_alu_op): Likewise.
13900         * config/arm/fa526.md (526_alu_op): Likewise.
13901         * config/arm/fa606te.md (606te_alu_op): Likewise.
13902         * config/arm/fa626te.md (626te_alu_op): Likewise.
13903         * config/arm/fa726te.md (726te_alu_op): Likewise.
13904         * config/arm/fmp626.md (mp626_alu_op): Likewise.
13905         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13906         alu_sreg, alu_dsp_reg and alus_sreg.
13907         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13908         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13909         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13910         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13911         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13912         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13913         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13914         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13915         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13916         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13917         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13918         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13919         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13920         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13921         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13922         alus_reg to alus_sreg.
13923
13924 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
13925
13926         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13927         infinity format.
13928
13929 2014-07-17  Richard Biener  <rguenther@suse.de>
13930
13931         PR rtl-optimization/61801
13932         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13933         don't set reg_pending_barrier if it appears in a debug-insn.
13934
13935 2014-07-16  DJ Delorie  <dj@redhat.com>
13936
13937         * config/rx/rx.c (rx_option_override): Fix alignment values.
13938         (rx_align_for_label): Likewise.
13939
13940 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
13941
13942         PR target/61737.
13943         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13944         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13945         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13946         functions.
13947         (cris_print_index, cris_print_operand, cris_constant_index_p)
13948         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13949         (cris_address_cost): Ditto last CONSTANT_P.
13950         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
13951         callers changed.  Yield cris_offsettable_symbol for non-PIC
13952         constant symbolic expressions including labels.  Yield cris_unspec
13953         for all unspecs.
13954         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
13955         target to pic_offset_table_rtx for calls that will likely go
13956         through PLT, const0_rtx when they can't.  All callers changed.
13957         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13958         symbolic expressions to be PICified.  Remove second, redundant,
13959         assert on can_create_pseudo_p returning non-zero.  Use
13960         replace_equiv_address_nv, not replace_equiv_address, for final
13961         operand update.
13962         * config/cris/cris.md ("movsi"): Move variable t to pattern
13963         toplevel. Adjust assert for new cris_symbol_type member.  Use
13964         CONSTANT_P instead of CONSTANT_ADDRESS_P.
13965         ("*movsi_internal") <case 9>: Make check for valid unspec operands
13966         for lapc stricter.
13967         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13968         ("call", "call_value"): Use second incoming operand as a marker
13969         for pic-offset-table-register being used.
13970         ("*expanded_call_non_v32", "*expanded_call_v32")
13971         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13972         second incoming operand to CALL, match cris_call_type_marker.
13973         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
13974         ("*expanded_call_side"): Ditto.  Fix typo in comment.
13975         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13976         CONSTANT_P.
13977         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13978         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13979         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
13980         users changed.  Add members cris_offsettable_symbol and cris_unspec.
13981         (cris_symbol_type): Rename from cris_pic_symbol_type.
13982         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13983         just CONSTANT_P.
13984         * config/cris/cris-protos.h (cris_symbol_type_of,
13985         cris_expand_pic_call_address): Adjust prototypes.
13986         (cris_legitimate_constant_p): New prototype.
13987
13988         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13989         an existing tmake_file.  Don't add t-slibgcc and t-linux.
13990
13991 2014-07-17  Jason Merrill  <jason@redhat.com>
13992
13993         PR c++/61623
13994         * symtab.c (symtab_remove_from_same_comdat_group): Also
13995         set_comdat_group to NULL_TREE.
13996         (verify_symtab): Fix diagnostic.
13997
13998 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
13999
14000         PR target/61662
14001         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
14002
14003 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
14004
14005         Support location tracking for built-in macro tokens
14006         * input.h (is_location_from_builtin_token): New function declaration.
14007         * input.c (is_location_from_builtin_token): New function definition.
14008         * toplev.c (general_init): Tell libcpp what the pre-defined
14009         spelling location for built-in tokens is.
14010
14011 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
14012
14013         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
14014         on the FUNCTION_DECL.
14015
14016 2014-07-16  Richard Biener  <rguenther@suse.de>
14017
14018         PR other/61782
14019         * doc/extend.texi (always_inline): Clarify.
14020
14021 2014-07-15  Eric Christopher  <echristo@gmail.com>
14022
14023         * doc/invoke.texi (Link Options): Document -z option.
14024
14025 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
14026
14027         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
14028         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14029
14030 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
14031
14032         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
14033
14034 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
14035
14036         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
14037         varpool_assemble_decl.
14038         * varpool.c (varpool_assemble_decl): Assert that node->definition is
14039         true.
14040
14041 2014-07-15  Michael Matz  <matz@suse.de>
14042
14043         PR rtl-optimization/61772
14044         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
14045
14046 2014-07-15  Richard Biener  <rguenther@suse.de>
14047
14048         * opts.c (default_options_table): Disable bit-ccp at -Og.
14049
14050 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
14051
14052         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
14053
14054 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
14055
14056         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
14057         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
14058         call langhook for unknown declaration.
14059         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
14060         * tree.h (DECL_ARGUMENTS): Update.
14061         * print-tree.c (print_node): Update.
14062         * tree-core.h (tree_decl_non_common): Remove arguments.
14063         (tree_function_decl): Add arguments.
14064
14065 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
14066
14067         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
14068
14069 2014-07-14  Richard Biener  <rguenther@suse.de>
14070
14071         PR tree-optimization/61779
14072         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
14073         simplifying a condition.
14074
14075 2014-07-14  Richard Biener  <rguenther@suse.de>
14076
14077         * builtins.c (c_strlen): Make only_value == 2 really only
14078         affect warning generation.
14079
14080 2014-07-14  Richard Biener  <rguenther@suse.de>
14081
14082         PR tree-optimization/61757
14083         PR tree-optimization/61783
14084         PR tree-optimization/61787
14085         * tree-ssa-dom.c (record_equality): Revert canonicalization
14086         change and add comment.
14087         (propagate_rhs_into_lhs): Revert previous fix, removing
14088         loop depth restriction again.
14089
14090 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14091
14092         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
14093         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
14094         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
14095         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
14096         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
14097         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
14098         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
14099
14100 2014-07-14  Richard Biener  <rguenther@suse.de>
14101
14102         * cgraph.h (decl_in_symtab_p): Make inline.
14103
14104 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
14105
14106         PR middle-end/61294
14107         * doc/invoke.texi (-Wmemset-transposed-args): Document.
14108
14109         PR target/61656
14110         * config/i386/i386.c (classify_argument): Don't merge classes above
14111         number of words.
14112
14113 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
14114
14115         * cgraph.h (symtab_node): Add nonzero_address.
14116         (decl_in_symtab_p): Break out from ...
14117         (symtab_get_node): ... here.
14118         * fold-const.c: Include cgraph.h
14119         (tree_single_nonzero_warnv_p): Use symtab to determine
14120         if symbol is non-zero.
14121         * symtab.c (symtab_node::nonzero_address): New method.
14122
14123 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14124
14125         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
14126         forgotten in previous commit.
14127
14128 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14129
14130         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
14131         on builtin types.
14132         * ipa-devirt.c: Include stor-layout.h and intl.h
14133         (odr_subtypes_equivalent_p): New function.
14134         (warn_odr): New function.
14135         (warn_type_mismatch): New function.
14136         (odr_types_equivalent_p): New function.
14137         (add_type_duplicate): Use it.
14138         * common.opt (Wodr): New flag.
14139         * doc/invoke.texi (Wodr): Document new warning.
14140
14141 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14142
14143         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
14144         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
14145         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
14146         (varpool_get_constructor): Push CTORS_IN timevar.
14147         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
14148
14149 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
14150
14151         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
14152         Remove VOID_FTYPE_PUSHORT.
14153         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
14154         Change code to USHORT_FTYPE_VOID.
14155         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
14156         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
14157         (ix86_atomic_assign_expand_fenv): Update for
14158         __builtin_ia32_fnstsw changes.
14159         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
14160         (fnstsw): Change operand 0 to nonimmediate operand.
14161
14162 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14163
14164         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
14165         (varpool_get_constructor): New function.
14166         (varpool_ctor_useable_for_folding_p): Break out from ...
14167         (ctor_for_folding): ... here; use varpool_get_constructor.
14168         (varpool_assemble_decl): Likewise.
14169         * lto-streamer.h (struct output_block): Turn cgraph_node
14170         to symbol filed.
14171         (lto_input_variable_constructor): Declare.
14172         * ipa-visibility.c (function_and_variable_visibility): Use
14173         varpool_get_constructor.
14174         * cgraph.h (varpool_get_constructor): Declare.
14175         (varpool_ctor_useable_for_folding_p): New function.
14176         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
14177         parameter; return error_mark_node for non-trivial constructors.
14178         (lto_write_tree_1, DFS_write_tree): Update use of
14179         get_symbol_initial_value.
14180         (output_function): Update initialization of symbol.
14181         (output_constructor): New function.
14182         (copy_function): Rename to ..
14183         (copy_function_or_variable): ... this one; handle vars too.
14184         (lto_output): Output variable sections.
14185         * lto-streamer-in.c (input_constructor): New function.
14186         (lto_read_body): Rename from ...
14187         (lto_read_body_or_constructor): ... this one; handle vars too.
14188         (lto_input_variable_constructor): New function.
14189         * ipa-prop.c (ipa_prop_write_jump_functions,
14190         ipa_prop_write_all_agg_replacement): Update.
14191         * lto-cgraph.c (compute_ltrans_boundary): Use it.
14192         (output_cgraph_opt_summary): Set symbol to NULL.
14193
14194 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14195
14196         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
14197         non-polymorphic types.
14198         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
14199         * ipa-devirt.c (types_same_for_odr): Do not explode when one
14200         of types is not polymorphic.
14201
14202 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
14203
14204         * lra-constraints.c (remove_inheritance_pseudos): Process
14205         destination pseudo too.
14206
14207 2014-07-11  Rong Xu  <xur@google.com>
14208
14209         * gcov-tool.c (gcov_output_files): Fix build error introduced in
14210         commit r212448.
14211
14212 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
14213
14214         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
14215         * config/avr/avr-devices.c (AVR_MCU): Same.
14216         (avr_mcu_types): add text start value to end of device list.
14217         * config/avr/avr-mcus.def: Add text section start for all devices.
14218         (ata5782): Add new avr5 device.
14219         (ata5831): Same.
14220         * config/avr/avr-tables.opt: Regenerate.
14221         * config/avr/avr.h: Add declaration for text section start handler.
14222         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
14223         SPEC functions.
14224         (LINK_SPEC): Include text section start handler to linker spec.
14225         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
14226         pass -Ttext option to linker if the text section start for the device
14227         is not zero.
14228         * config/avr/t-multilib: Regenerate.
14229         * doc/avr-mmcu.texi: Regenerate.
14230
14231 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
14232
14233         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
14234         * config/rs6000/aix52.h (LINK_SPEC): Same.
14235         * config/rs6000/aix53.h (LINK_SPEC): Same.
14236         * config/rs6000/aix61.h (LINK_SPEC): Same.
14237         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
14238
14239 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
14240
14241         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
14242         (graphite_verify): New function.
14243         (ivs_params_clear): New function.
14244         (gcc_expression_from_isl_ast_expr_id): New function.
14245         (gcc_expression_from_isl_expr_int): New function.
14246         (binary_op_to_tree): New function.
14247         (ternary_op_to_tree): New function.
14248         (unary_op_to_tree): New function.
14249         (nary_op_to_tree): New function.
14250         (gcc_expression_from_isl_expr_op): New function.
14251         (gcc_expression_from_isl_expression): New function.
14252         (graphite_create_new_loop): New function.
14253         (translate_isl_ast_for_loop): New function.
14254         (get_upper_bound): New function.
14255         (graphite_create_new_loop_guard): New function.
14256         (translate_isl_ast_node_for): New function.
14257         (translate_isl_ast): New function.
14258         (add_parameters_to_ivs_params): New function.
14259         (scop_to_isl_ast): New parameter ip.
14260         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
14261
14262 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14263
14264         * config/xtensa/predicates.md (call expander): Update for
14265         DECL_SECTION_NAME being string.
14266
14267 2014-07-11  Richard Biener  <rguenther@suse.de>
14268
14269         PR middle-end/61473
14270         * builtins.c (fold_builtin_memory_op): Inline memory moves that
14271         can be implemented with a single load followed by a single store.
14272         (c_strlen): Only warn when only_value is not 2.
14273
14274 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
14275
14276         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
14277
14278 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
14279
14280         PR target/61561
14281         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
14282         (*movhi_bytes): Likewise.
14283         (*arm_movqi_insn): Likewise.
14284
14285 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
14286
14287         PR target/56858
14288         * config/alpha/alpha.c: Include tree-pass.h, context.h
14289         and pass_manager.h.
14290         (pass_data_handle_trap_shadows): New pass.
14291         (pass_handle_trap_shadows::gate): New pass gate function.
14292         (make_pass_handle_trap_shadows): New function.
14293         (rest_of_handle_trap_shadows): Ditto.
14294
14295         (alpha_align_insns_1): Rename from alpha_align_insns.
14296         (pass_data_align_insns): New pass.
14297         (pass_align_insns::gate): New pass gate function.
14298         (make_pass_aling_insns): New function.
14299         (rest_of_align_insns): Ditto.
14300         (alpha_align_insns): Ditto.
14301
14302         (alpha_option_override): Declare handle_trap_shadows info
14303         and align_insns_info.  Register handle_trap_shadows and align_insns
14304         passes here.
14305         (alpha_reorg): Do not call alpha_trap_shadows and
14306         alpha_align_insn from here.
14307
14308         (alpha_pad_function_end): Do not skip BARRIERs.
14309
14310 2014-07-10  Rong Xu  <xur@google.com>
14311
14312         Add gcov-tool: an offline gcda profile processing tool support.
14313         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
14314         (gcov_is_error): Ditto.
14315         (gcov_read_string): Ditto.
14316         (gcov_read_sync): Ditto.
14317         * gcov-io.h: Move counter defines to gcov-counter.def.
14318         * gcov-dump.c (tag_counters): Use gcov-counter.def.
14319         * coverage.c: Ditto.
14320         * gcov-tool.c: Offline gcda profile processing tool.
14321         (unlink_gcda_file): Remove one gcda file.
14322         (unlink_profile_dir): Remove gcda files from the profile path.
14323         (gcov_output_files): Output gcda files to an output dir.
14324         (profile_merge): Merge two profiles in directory.
14325         (print_merge_usage_message): Print merge usage.
14326         (merge_usage): Print merge usage and exit.
14327         (do_merge): Driver for profile merge sub-command.
14328         (profile_rewrite): Rewrite profile.
14329         (print_rewrite_usage_message): Print rewrite usage.
14330         (rewrite_usage): Print rewrite usage and exit.
14331         (do_rewrite): Driver for profile rewrite sub-command.
14332         (print_usage): Print gcov-info usage and exit.
14333         (print_version): Print gcov-info version.
14334         (process_args): Process arguments.
14335         (main): Main routine for gcov-tool.
14336         * Makefile.in: Build and install gcov-tool.
14337         * gcov-counter.def: New file split from gcov-io.h.
14338         * doc/gcc.texi: Include gcov-tool.texi.
14339         * doc/gcov-tool.texi: Document for gcov-tool.
14340
14341 2014-07-10  Richard Biener  <rguenther@suse.de>
14342
14343         PR tree-optimization/61757
14344         * tree-ssa-dom.c (loop_depth_of_name): Restore.
14345         (propagate_rhs_into_lhs): Revert part of last change.
14346
14347 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
14348
14349         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
14350         FUNCTION_DECLs.
14351
14352 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
14353
14354         PR middle-end/53590
14355         * function.c (allocate_struct_function): Revert r188667 change.
14356
14357         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
14358
14359 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
14360
14361         * doc/install.texi: Remove links to defunct package providers for
14362         Solaris.
14363
14364 2014-07-09  Tom de Vries  <tom@codesourcery.com>
14365
14366         * final.c (get_call_fndecl): Declare.
14367         (self_recursive_call_p): New function.
14368         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
14369
14370 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14371
14372         * ipa-devirt.c (record_node): Walk through aliases.
14373
14374 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14375
14376         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
14377
14378 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14379
14380         Revert:
14381         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14382
14383 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14384
14385         * ipa-visibility.c (function_and_variable_visibility): Remove
14386         temporary hack disabling local aliases on AIX.
14387
14388 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14389
14390         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
14391         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
14392
14393 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14394
14395         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
14396         * rs6000/rs6000.c: Inline output of .set instruction.
14397         (declare_alias_data): New struct.
14398         (rs6000_declare_alias): New function.
14399         (rs6000_xcoff_declare_function_name): Use it.
14400         (rs6000_xcoff_declare_object_name): New function.
14401         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
14402         (ASM_OUTPUT_DEF): Turn to empty definition.
14403
14404 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14405
14406         PR bootstrap/61679
14407         * hash-table.h: use hash_table::value_type instead of
14408         Descriptor::value_type in the return types of several methods.
14409
14410 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14411
14412         * tree-pass.h (pass_data): Remove has_execute member.
14413         * passes.c (execute_one_pass): Don't check pass->has_execute.
14414         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
14415         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
14416         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
14417         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
14418         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
14419         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
14420         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
14421         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
14422         gimple-low.c, gimple-ssa-isolate-paths.c,
14423         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
14424         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
14425         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
14426         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
14427         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
14428         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
14429         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
14430         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
14431         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
14432         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
14433         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
14434         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14435         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14436         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14437         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14438         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
14439         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
14440         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14441         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14442         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
14443         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
14444         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
14445         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
14446         web.c: Remove initializer for pass_data::has_execute.
14447
14448 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14449
14450         * graphite-htab.h: Use hash_map instead of hash_table.
14451         * graphite-clast-to-gimple.c: Adjust.
14452         * passes.c: Use hash_map instead of hash_table.
14453         * sese.c: Likewise.
14454         * sese.h: Remove now unused code.
14455
14456 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
14457
14458         PR target/61599
14459         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
14460         than zero.
14461
14462 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
14463
14464         PR rtl-optimization/61673
14465         * combine.c (simplify_comparison): Test just mode's sign bit
14466         in tmode rather than the sign bit and any bits above it.
14467
14468 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
14469
14470         * graphite-isl-ast-to-gimple.c (generate_isl_context):
14471         Add __isl_give to the declaration.
14472         (generate_isl_schedule): Likewise.
14473         (scop_to_isl_ast): Likewise.
14474
14475 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14476
14477         * config/arm/arm.c (cortexa5_extra_costs): New table.
14478         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
14479
14480 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
14481
14482         PR tree-optimization/61725
14483         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
14484         range, use range_includes_zerop_p instead of integer_zerop on
14485         vr0->min, only use log2 of max if min is not negative.
14486
14487 2014-07-08  Richard Biener  <rguenther@suse.de>
14488
14489         * tree-ssa-dom.h (loop_depth_of_name): Remove.
14490         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
14491         restriction on loop depth difference.
14492         (record_equality): Likewise.
14493         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
14494         (loop_depth_of_name): Remove.
14495         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
14496         restriction on loop depth difference.
14497         (init_copy_prop): Likewise.
14498
14499 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14500
14501         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
14502         parameter.
14503         (walk_aliased_vdefs): Likewise.
14504         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
14505         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
14506         (detect_type_change_from_memory_writes): Check if entry was reached.
14507
14508 2014-07-08  Richard Biener  <rguenther@suse.de>
14509
14510         PR tree-optimization/61681
14511         * tree-ssa-structalias.c (find_what_var_points_to): Expand
14512         NONLOCAL inside ESCAPED.
14513
14514 2014-07-08  Richard Biener  <rguenther@suse.de>
14515
14516         PR tree-optimization/61680
14517         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14518         Handle properly all read-write dependences with group accesses.
14519
14520 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
14521
14522         PR tree-optimization/61576
14523         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
14524         block containing reduction statement is predecessor of phi basi block.
14525
14526 2014-07-08  Marek Polacek  <polacek@redhat.com>
14527
14528         PR c/60226
14529         * fold-const.c (round_up_loc): Change the parameter type.
14530         Remove assert.
14531         * fold-const.h (round_up_loc): Adjust declaration.
14532         * stor-layout.c (finalize_record_size): Check for too large types.
14533
14534 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
14535
14536         * symtab.c: Include calls.h.
14537         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
14538
14539 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
14540
14541         * config/rs6000/rs6000.c (output_vec_const_move): Handle
14542         little-endian code generation.
14543         * config/rs6000/spe.md (spe_evmergehi): Rename to...
14544         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
14545         (spe_evmergehilo): Rename to...
14546         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
14547         (spe_evmergelo): Rename to...
14548         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
14549         (spe_evmergelohi): Rename to...
14550         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
14551         (spe_evmergehi, spe_evmergehilo): New expanders.
14552         (spe_evmergelo, spe_evmergelohi): Likewise.
14553         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
14554         (*frob_tf_ti): Likewise.
14555         (*frob_<mode>_di_2): Likewise.
14556         (*frob_tf_di_8_2): Likewise.
14557         (*frob_di_<mode>): Likewise.
14558         (*frob_ti_tf): Likewise.
14559         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
14560         (*frob_ti_<mode>_8_2): Likewise.
14561         (*frob_ti_tf_2): Likewise.
14562         (mov_si<mode>_e500_subreg0): Rename to...
14563         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
14564         endianness only.
14565         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
14566         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
14567         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
14568         the big endianness only.
14569         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
14570         (*mov_si<mode>_e500_subreg0_2): Rename to...
14571         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
14572         big big endianness only.
14573         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
14574         (*mov_si<mode>_e500_subreg4): Rename to...
14575         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
14576         endianness only.
14577         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
14578         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
14579         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
14580         the big endianness only.
14581         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
14582         pattern.
14583         (*mov_si<mode>_e500_subreg4_2): Rename to...
14584         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
14585         endianness only.
14586         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
14587         (*mov_sitf_e500_subreg8): Rename to...
14588         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
14589         endianness only.
14590         (*mov_sitf_e500_subreg8_le): New instruction pattern.
14591         (*mov_sitf_e500_subreg8_2): Rename to...
14592         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
14593         endianness only.
14594         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
14595         (*mov_sitf_e500_subreg12): Rename to...
14596         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
14597         endianness only.
14598         (*mov_sitf_e500_subreg12_le): New instruction pattern.
14599         (*mov_sitf_e500_subreg12_2): Rename to...
14600         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
14601         endianness only.
14602         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
14603
14604 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
14605
14606         * asan.c (instrument_strlen_call): Do not instrument first byte
14607         in strlen if already instrumented.
14608
14609 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14610
14611         * config/arm/arm.opt (mwords-little-endian): Delete.
14612         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
14613         of TARGET_LITTLE_WORDS.
14614         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
14615         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
14616         warning.
14617         * doc/invoke.texi: Remove references to -mwords-little-endian.
14618
14619 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
14620
14621         * expmed.c (struct init_expmed_rtl): Change all fields but
14622         pow2 and cint from struct rtx_def to rtx.
14623         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
14624         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
14625         at the end again.
14626
14627 2014-07-06  Marek Polacek  <polacek@redhat.com>
14628
14629         PR c/6940
14630         * doc/invoke.texi: Document -Wsizeof-array-argument.
14631
14632 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14633
14634         * wide-int.h (wide_int_storage): Change declaration from struct
14635         to class.
14636
14637 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
14638
14639         * cgraph.c (cgraph_create_indirect_edge): Update call of
14640         get_polymorphic_call_info.
14641         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
14642         (possible_polymorphic_call_targets): Add parameter call.
14643         (decl_maybe_in_construction_p): New predicate.
14644         (get_polymorphic_call_info): Add parameter call;
14645         use decl_maybe_in_construction_p.
14646         * gimple-fold.c (fold_gimple_assign): Update use of
14647         possible_polymorphic_call_targets.
14648         (gimple_fold_call): Likewise.
14649         * ipa-prop.c: Inlcude calls.h
14650         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
14651         (param_type_may_change_p): New predicate.
14652         (detect_type_change_from_memory_writes): Break out from ...
14653         (detect_type_change): ... this one; use param_type_may_change_p.
14654         (detect_type_change_ssa): Use param_type_may_change_p.
14655         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
14656
14657 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
14658
14659         PR target/49423
14660         * config/arm/arm-protos.h (arm_legitimate_address_p,
14661         arm_is_constant_pool_ref): Add prototypes.
14662         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
14663         (arm_is_constant_pool_ref) New function.
14664         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
14665         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
14666         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
14667         operand. Remove pool_range and neg_pool_range attributes.
14668         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
14669         pool_range and neg_pool_range attributes.
14670         * config/arm/constraints.md (Uh): New constraint.
14671         (Uq): Don't allow constant pool references.
14672
14673 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
14674
14675         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
14676         (move_lo_quad_internal_be_<mode>): Likewise.
14677         (move_lo_quad_<mode>): Convert to define_expand.
14678         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
14679         (aarch64_simd_move_hi_quad_be_<mode>): New.
14680         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
14681         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
14682         (aarch64_combinez_be<mode>): New.
14683         (aarch64_combine<mode>): Convert to define_expand.
14684         (aarch64_combine_internal<mode>): New.
14685         (aarch64_simd_combine<mode>): Remove bogus RTL description.
14686
14687 2014-07-04  Tom de Vries  <tom@codesourcery.com>
14688
14689         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
14690         combination of earlyclobber and read/write modifiers.
14691
14692 2014-07-04  Tom de Vries  <tom@codesourcery.com>
14693
14694         * config/aarch64/aarch64-simd.md
14695         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
14696
14697 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
14698
14699         PR target/61714
14700         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14701
14702 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
14703
14704         PR middle-end/61654
14705         * cgraphunit.c (expand_thunk): Call free_dominance_info.
14706
14707         PR tree-optimization/61684
14708         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14709         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
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/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14716         (nds32_symbol_load_store_p): Move to ...
14717         (nds32_fp_as_gp_check_available): Move to ...
14718         * config/nds32/nds32-fp-as-gp.c: ... here.
14719         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14720         extern declaration.
14721
14722 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14723             Kito Cheng  <kito@0xlab.org>
14724             Monk Chiang  <sh.chiang04@gmail.com>
14725
14726         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14727         (nds32_expand_store_multiple): Move to ...
14728         (nds32_expand_movmemqi): Move to ...
14729         * config/nds32/nds32-memory-manipulation.c: ... here.
14730
14731 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14732             Kito Cheng  <kito@0xlab.org>
14733             Monk Chiang  <sh.chiang04@gmail.com>
14734
14735         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14736         (nds32_output_casesi_pc_relative): Move to ...
14737         (nds32_output_casesi): Move to ...
14738         (nds32_mem_format): Move to ...
14739         (nds32_output_16bit_store): Move to ...
14740         (nds32_output_16bit_load): Move to ...
14741         (nds32_output_32bit_store): Move to ...
14742         (nds32_output_32bit_load): Move to ...
14743         (nds32_output_32bit_load_s): Move to ...
14744         (nds32_output_stack_push): Move to ...
14745         (nds32_output_stack_pop): Move to ...
14746         * config/nds32/nds32-md-auxiliary.c: ... here.
14747
14748 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14749             Ling-Hua Tseng  <uranus@tinlans.org>
14750
14751         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14752         the purpose of this file.
14753
14754 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14755             Kito Cheng  <kito@0xlab.org>
14756             Monk Chiang  <sh.chiang04@gmail.com>
14757
14758         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14759         (nds32_address_cost): Move implementation to ...
14760         * config/nds32/nds32-cost.c: ... here.
14761         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14762         (nds32_address_cost_impl): Declare.
14763
14764 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14765             Kito Cheng  <kito@0xlab.org>
14766             Monk Chiang  <sh.chiang04@gmail.com>
14767
14768         * config/nds32/nds32.c
14769         (nds32_consecutive_registers_load_store_p): Move to ...
14770         (nds32_valid_multiple_load_store): Move to ...
14771         (nds32_valid_stack_push_pop): Move to ...
14772         (nds32_can_use_bclr_p): Move to ...
14773         (nds32_can_use_bset_p): Move to ...
14774         (nds32_can_use_btgl_p): Move to ...
14775         (nds32_can_use_bitci_p): Move to ...
14776         * config/nds32/nds32-predicates.c: ... here.
14777
14778 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14779             Kito Cheng  <kito@0xlab.org>
14780             Monk Chiang  <sh.chiang04@gmail.com>
14781
14782         * config/nds32/nds32.c
14783         (nds32_expand_builtin_null_ftype_reg): Move to ...
14784         (nds32_expand_builtin_reg_ftype_imm): Move to ...
14785         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14786         (nds32_init_builtins): Move implementation to ...
14787         (nds32_expand_builtin): Move implementation to ...
14788         * config/nds32/nds32-intrinsic.c: ... here.
14789         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14790         (nds32_expand_builtin_impl): Declare.
14791
14792 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14793             Kito Cheng  <kito@0xlab.org>
14794             Monk Chiang  <sh.chiang04@gmail.com>
14795
14796         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14797         (nds32_emit_section_tail_template): Move to ...
14798         (nds32_emit_isr_jmptbl_section): Move to ...
14799         (nds32_emit_isr_vector_section): Move to ...
14800         (nds32_emit_isr_reset_conten): Move to ...
14801         (nds32_check_isr_attrs_conflict): Move to ...
14802         (nds32_construct_isr_vectors_information): Move to ...
14803         (nds32_asm_file_start): Move implementation to ...
14804         (nds32_asm_file_end): Move implementation to ...
14805         * config/nds32/nds32-isr.c: ... here.
14806         * config/nds32/nds32-protos.h
14807         (nds32_check_isr_attrs_conflict): Declare.
14808         (nds32_construct_isr_vectors_information): Declare.
14809         (nds32_asm_file_start_for_isr): Declare.
14810         (nds32_asm_file_end_for_isr): Declare.
14811
14812 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14813             Kito Cheng  <kito@0xlab.org>
14814             Monk Chiang  <sh.chiang04@gmail.com>
14815
14816         * config.gcc (nds32*): Add new modules to extra_objs.
14817         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14818         (nds32be-*-*): Likewise.
14819         * config/nds32/nds32-cost.c: New file.
14820         * config/nds32/nds32-fp-as-gp.c: New file.
14821         * config/nds32/nds32-intrinsic.c: New file.
14822         * config/nds32/nds32-isr.c: New file.
14823         * config/nds32/nds32-md-auxiliary.c: New file.
14824         * config/nds32/nds32-memory-manipulation.c: New file.
14825         * config/nds32/nds32-pipelines-auxiliary.c: New file.
14826         * config/nds32/nds32-predicates.c: New file.
14827         * config/nds32/t-nds32: New file.
14828
14829 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14830
14831         PR tree-optimization/61682
14832         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14833         using cases and when one of the operands is equal to 1.
14834
14835 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
14836
14837         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14838         ashr<mode>3): Correct mode of operands[2].
14839         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14840         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14841         Correct mode of operands[2].  Fix split condition.
14842
14843 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
14844
14845         * arm.md (arch): Add armv6_or_vfpv3.
14846         (arch_enabled): Add test for the above.
14847         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14848         on VFP9.
14849         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14850
14851 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14852
14853         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14854         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14855         HWI 1 and negate the unsigned value.
14856         * expmed.c (expand_sdiv_pow2): For modes wider than word always
14857         use AND instead of shift.
14858         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14859
14860 2014-07-03  Marek Polacek  <polacek@redhat.com>
14861
14862         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14863         (-fsanitize=float-divide-by-zero): Move to the table with
14864         -fsanitize=undefined suboptions.
14865         (-fsanitize=float-cast-overflow): Likewise.
14866
14867 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
14868
14869         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14870         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14871         endianness.
14872
14873 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14874
14875         * loop-invariant.c (struct invariant): Add a new member: eqno;
14876         (find_identical_invariants): Update eqno;
14877         (create_new_invariant): Init eqno;
14878         (get_inv_cost): Compute comp_cost with eqno;
14879
14880 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14881
14882         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14883         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14884         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14885         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14886         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14887
14888 2014-07-02  Christian Bruel  <christian.bruel@st.com>
14889
14890         PR target/29349
14891         PR target/53513
14892         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14893         (make_preds_opaque): Delete.
14894         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14895         (commit_mode_sets): New function.
14896         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14897         Process all modes at once.
14898         * basic-block.h (pre_edge_lcm_avs): Declare.
14899         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14900         Call clear_aux_for_edges. Fix comments.
14901         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14902         (pre_edge_rev_lcm): Idem.
14903         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14904         parameter.
14905         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14906         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14907         Idem.
14908         * config/i386/i386.c (x96_emit_mode_set): Idem.
14909         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14910         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
14911         (fpscr_toggle) Disallow from delay slot.
14912         * target.def (emit_mode_set): Add prev_mode parameter.
14913         * doc/tm.texi: Regenerate.
14914
14915 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14916
14917         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14918         variable i.
14919
14920 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14921
14922         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14923         vtable_pointer_value_to_vtable): Constify.
14924         (contains_polymorphic_type_p): Declare.
14925         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14926         vtable_pointer_value_to_vtable): Constify.
14927         (contains_polymorphic_type_p): New predicate.
14928         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14929         polymorphic types.
14930         (ipa_set_ancestor_jf): Likewise.
14931         (detect_type_change): Return false in easy cases.
14932         (compute_complex_assign_jump_func): Require type to contain
14933         polymorphic type.
14934         (compute_known_type_jump_func): Likewise.
14935
14936 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14937
14938         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14939         Remove.
14940         (type_in_anonymous_namespace_p): Constify argument.
14941         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14942         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14943         (main_odr_variant): New function.
14944         (hash_type_name): Make static; update assert; do not ICE on
14945         non-records.
14946         (types_same_for_odr): Bring here from tree.c; simplify and remove
14947         old structural comparing code that doesn't work for templates.
14948         (odr_hasher::equal): Update assert.
14949         (add_type_duplicate): Return true when bases should be computed;
14950         replace incomplete loader by complete; do not output duplicated
14951         warnings; do not ICE on non-records; set odr_violated flag.
14952         (get_odr_type): Be ready to replace incomplete type by complete
14953         one; work on ODR variants instead of main variants; reorder item
14954         in array so bases have still smaller indexes.
14955         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14956         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14957
14958 2014-07-01  Cary Coutant  <ccoutant@google.com>
14959
14960         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14961         lookup.
14962         (resolve_addr_in_expr): When replacing the rtx in a location list
14963         entry, get a new address table entry.
14964         (dwarf2out_finish): Call index_location_lists even if there are no
14965         addr_index_table entries yet.
14966
14967 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14968
14969         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14970         change for not being obvious.
14971
14972 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14973
14974         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14975         unused argument.
14976
14977 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14978
14979         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14980         (vcagt_f64): Likewise.
14981         (vcale_f64): Likewise.
14982         (vcaled_f64): Likewise.
14983         (vcales_f32): Likewise.
14984         (vcalt_f64): Likewise.
14985         (vcaltd_f64): Likewise.
14986         (vcalts_f32): Likewise.
14987
14988 2014-07-01  Marek Polacek  <polacek@redhat.com>
14989
14990         * doc/invoke.texi: Document -Wint-conversion.
14991
14992 2014-07-01  Marek Polacek  <polacek@redhat.com>
14993
14994         PR c/58286
14995         * doc/invoke.texi: Document -Wincompatible-pointer-types.
14996
14997 2014-07-01  Martin Liska  <mliska@suse.cz>
14998
14999         IPA REF alias refactoring
15000         * cgraph.h (iterate_direct_aliases): New function.
15001         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
15002         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
15003         FOR_EACH_ALIAS added.
15004         (cgraph_for_node_and_aliases): Likewise.
15005         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
15006         * ipa-inline.c (reset_edge_caches): Likewise.
15007         (update_caller_keys): Likewise.
15008         * trans-mem.c (ipa_tm_execute): Likewise.
15009         *varpool.c (varpool_analyze_node): Likewise.
15010         (varpool_for_node_and_aliases): Likewise.
15011         * ipa-ref.h (first_alias): New function.
15012         (last_alias): Likewise.
15013         (has_aliases_p): Likewise.
15014         * ipa-ref.c (ipa_ref::remove_reference): Removal function
15015         is sensitive to IPA_REF_ALIASes.
15016         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
15017         are put at the beginning of the list.
15018         (symtab_node::iterate_direct_aliases): New function.
15019
15020 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15021
15022         Revert:
15023         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
15024         type is complete.
15025         (write_ts_type_common_tree_pointers): Do not stream fields not set
15026         for incomplete types; do not stream duplicated fields for variants;
15027         sanity check that variant and type match.
15028         (write_ts_type_non_common_tree_pointers): Likewise.
15029         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
15030         TYPE_SIZE whether type is complete.
15031         (lto_input_ts_type_common_tree_pointers): Do same changes as in
15032         write_ts_type_common_tree_pointers
15033         (lto_input_ts_type_non_common_tree_pointers): Likewise.
15034
15035 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
15036
15037         * var-tracking.c (add_stores): Return instead of asserting if old
15038         and new values for conditional store are the same.
15039
15040 2014-06-30  Richard Henderson  <rth@redhat.com>
15041
15042         PR rtl-opt/61608
15043         PR target/39284
15044         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
15045         the cfg if there were any changes.
15046         * passes.def: Revert move of peephole2 after reorder_blocks;
15047         move duplicate_computed_gotos before peephole2.
15048
15049 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
15050
15051         * except.c (emit_note_eh_region_end): New helper function.
15052         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
15053         emit EH_REGION_END note.
15054         * jump.c (cleanup_barriers): Do not split a call and its
15055         corresponding CALL_ARG_LOCATION note.
15056
15057 2014-06-30  Jeff Law  <law@redhat.com>
15058
15059         PR tree-optimization/61607
15060         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
15061         deeper into the SSA_NAME_VALUE chain.
15062
15063 2014-06-30  Marek Polacek  <polacek@redhat.com>
15064
15065         * convert.c (convert_to_integer): Don't instrument conversions if the
15066         function has no_sanitize_undefined attribute.
15067         * ubsan.c: Don't run the ubsan pass if the function has
15068         no_sanitize_undefined attribute.
15069
15070 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
15071
15072         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
15073         -fsanitize=undefined suboptions.
15074
15075 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
15076
15077         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
15078         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
15079         against bigendian and adjust indices.
15080
15081 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
15082
15083         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
15084
15085 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15086
15087         PR target/61633
15088         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
15089         Add alternative; make early clobber.  Adjust both split patterns
15090         to use operand 0 as the working register.
15091
15092 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
15093
15094         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
15095         as ira_object_id_map might be NULL, or 1.
15096
15097 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15098
15099         * loop-invariant.c (get_inv_cost): Handle register class.
15100         (gain_for_invariant): Check the register pressure of the inv
15101         and its overlapped register class, other than all.
15102
15103 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
15104
15105         * doc/invoke.texi (Optimize Options): Fix descriptions of
15106         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
15107
15108 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
15109
15110         * doc/extend.texi (Function Attributes): Update 'naked' attribute
15111         documentation.
15112
15113 2014-06-29  Tobias Grosser <tobias@grosser.es>
15114
15115         PR bootstrap/61650
15116         * graphite-isl-ast-to-gimple.c: Add missing guards.
15117
15118 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15119
15120         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
15121         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
15122         * flag-types.h: Add new enum fgraphite_generator.
15123         * graphite-isl-ast-to-gimple.c: New.
15124         * graphite-isl-ast-to-gimple.h: New.
15125         * graphite.c (graphite_transform_loops): Add choice of Graphite
15126         code generator, which depends on flag_graphite_code_gen.
15127
15128 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15129
15130         * graphite-dependences.c (subtract_commutative_associative_deps):
15131         Add NULL checking of the following variables: must_raw_no_source,
15132         may_raw_no_source, must_war_no_source, may_war_no_source,
15133         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
15134         must_war, may_war, must_waw, may_waw.
15135
15136 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15137
15138         * graphite-clast-to-gimple.c: gloog is renamed to
15139         graphite_regenerate_ast_cloog.  gloog_error is renamed to
15140         graphite_regenerate_error.
15141         * graphite-clast-to-gimple.h: The definition of the struct
15142         bb_pbb_def is moved to graphite-htab.h.
15143         Add inclusion of the hash-table.h.
15144         * graphite-htab.h: The declaration of the function gloog is moved
15145         to graphite-clast-to-gimple.h and renamed to
15146         graphite_regenerate_ast_cloog.
15147         * graphite.c (graphite_transform_loops): gloog is renamed
15148         to graphite_regenerate_ast_cloog.
15149
15150 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15151
15152         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
15153         type is complete.
15154         (write_ts_type_common_tree_pointers): Do not stream fields not set
15155         for incomplete types; do not stream duplicated fields for variants;
15156         sanity check that variant and type match.
15157         (write_ts_type_non_common_tree_pointers): Likewise.
15158         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
15159         TYPE_SIZE whether type is complete.
15160         (lto_input_ts_type_common_tree_pointers): Do same changes as in
15161         write_ts_type_common_tree_pointers
15162         (lto_input_ts_type_non_common_tree_pointers): Likewise.
15163
15164 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15165
15166         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
15167
15168 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15169
15170         * tree-inline.c (remap_type_1): Do not duplicate fields
15171         that are shared in between type and its main variant.
15172
15173 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15174
15175         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
15176         of the type.
15177         (ipa_set_ancestor_jf) Likewise.
15178         (check_stmt_for_type_change): Check that we work on main variant.
15179         (detect_type_change): Look into main variant.
15180         (compute_known_type_jump_func): Check that main variant has BINFO.
15181
15182 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15183
15184         * ipa-devirt.c (set_type_binfo): New function.
15185         (add_type_duplicate): Use it.
15186         (get_odr_type): Sanity check that binfos points to main variants.
15187         (get_class_context): Be sure the context's outer_type is main variant.
15188         (contains_type_p): Walk main variant.
15189         (get_polymorphic_call_info_for_decl): Set outer_type to be
15190         main variant.
15191         (get_polymorphic_call_info): Likewise.
15192         (possible_polymorphic_call_targets): Sanity check that we operate
15193         on main variant.
15194
15195 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15196
15197         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15198
15199 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15200
15201         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
15202         accidental change due to wide-int branch merge.
15203
15204 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15205
15206         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
15207         compressed debug support.
15208         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
15209         * configure: Regenerate.
15210         * config.in: Regenerate.
15211         * common.opt (compressed_debug_sections): New enum.
15212         (gz, gz=): New options.
15213         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
15214         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
15215         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
15216         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
15217         LINK_COMPRESS_DEBUG_SPEC.
15218         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
15219         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
15220         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
15221         (Debugging Options): Document -gz[=type].
15222
15223 2014-06-27  Martin Jambor  <mjambor@suse.cz>
15224
15225         PR ipa/61160
15226         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
15227         args_to_skip, use those from node instead.  Copy args_to_skip and
15228         combined_args_to_skip from node to the new thunk.
15229         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
15230         (cgraph_create_virtual_clone): Moved computation of
15231         combined_args_to_skip...
15232         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
15233
15234 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
15235
15236         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
15237         redundant diagnostic machinary.
15238
15239 2014-06-27  Richard Biener  <rguenther@suse.de>
15240
15241         * tree-ssa-math-opts.c (bswap_replace): Fix
15242         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
15243
15244 2014-06-27  Martin Liska  <mliska@suse.cz>
15245
15246         * gimple.h (gimple_location_safe): New function introduced.
15247         * cgraphunit.c (walk_polymorphic_call_targets): Usage
15248         of gimple_location_safe replaces gimple_location.
15249         (gimple_fold_call): Likewise.
15250         * ipa-devirt.c (ipa_devirt): Likewise.
15251         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
15252         * ipa.c (walk_polymorphic_call_targets): Likewise.
15253         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15254
15255 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
15256
15257         PR tree-optimization/57233
15258         PR tree-optimization/61299
15259         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
15260         functions.
15261         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
15262         would be lowered to scalar shifts, check if corresponding
15263         shifts and vector BIT_IOR_EXPR are supported and don't lower
15264         or lower just to narrower vector type in that case.
15265         * expmed.c (expand_shift_1): Fix up handling of vector
15266         shifts and rotates.
15267
15268 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
15269
15270         PR target/61586
15271         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
15272
15273 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
15274
15275         * doc/invoke.texi (-fsemantic-interposition): Document.
15276         * common.opt (fsemantic-interposition): New flag.
15277         * varasm.c (decl_replaceable_p): Use it.
15278
15279 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15280
15281         PR target/61542
15282         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
15283         extraction other than index 3.
15284
15285 2014-06-26  Teresa Johnson  <tejohnson@google.com>
15286
15287         * doc/invoke.texi: Fix typo.
15288         * dumpfile.c: Add support for documented -fdump-* options
15289         optimized/missed/note/optall.
15290
15291 2014-06-26  Martin Jambor  <mjambor@suse.cz>
15292
15293         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
15294         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
15295         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
15296         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
15297         * opts.c (default_options_optimization): Set
15298         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
15299         * doc/invoke.texi (allow-load-data-races)
15300         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
15301         (allow-store-data-races): Document the new default.
15302
15303 2014-06-26  Martin Jambor  <mjambor@suse.cz>
15304
15305         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
15306         renamed to ipa_impossible_devirt_target.  Fix typo.
15307         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
15308         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
15309         ipa_impossible_devirt_target.
15310
15311 2014-06-26  Richard Biener  <rguenther@suse.de>
15312
15313         PR tree-optimization/61607
15314         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
15315         explaining why we restrict copies on loop depth.
15316         * tree-ssa-dom.c (cprop_operand): Remove restriction on
15317         on loop depth.
15318         (record_equivalences_from_phis): Instead add it here.
15319
15320 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
15321
15322         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
15323         (LTO_WRAPPER_OBJS): New variable.
15324         (lto-wrapper$(exeext)): Use it.
15325         * collect2.c: Include "collect-utils.h".
15326         (verbose, debug): Remove variables.
15327         (at_file_supplied): No longer static.
15328         (tool_name): New variable.
15329         (do_wait, fork_execute, maybe_unlink): Don't declare.
15330         (tool_cleanup): No longer static.
15331         (notice): Remove function.
15332         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
15333         fork_execute calls.
15334         (collect_wait, do_wait, collect_execute): Remove functions.
15335         (maybe_unlink): No longer static.
15336         * collect2.h (verbose, debug): Don't declare.
15337         (at_file_supplied): Declare.
15338         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
15339         changed.
15340         (collect_execute): Replace with implementation from collect2, plus a
15341         new arg use_atfile.  All callers changed.
15342         (collect_wait): Replace with implementation from collect2.
15343         (maybe_unlink_file): Remove function.
15344         (fork_execute): Replace with implementation from collect2, plus a
15345         new arg use_atfile.  All callers changed.
15346         (do_wait): Add call to utils_cleanup to the error path.
15347         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
15348         (tool_cleanup): Adjust declarations.
15349         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
15350         * tlink.c: Include "collect-utils.h".
15351         (tlink_execute): New arg use_atfile.  All callers changed.
15352         (tlink_init, tlink_execute): Remove declarations.
15353
15354         * collect-utils.c (save_temps): New variable.
15355         (do_wait): Use it instead of debug.  Use fatal_error.
15356         * collect-utils.h (save_temps): Declare.
15357         * collect2.c (verbose): Rename from vflag.  All uses changed.
15358         (tool_cleanup): New function, copied from collect_atexit.
15359         (collect_atexit, handler): Just call it.
15360         * collect2.h (verbose): Declaration renamed from vflag.
15361         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
15362         debug.
15363
15364         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
15365         (lto-wrapper$(exeext)): Link with collect-utils.o.
15366         * collect-utils.c: New file.
15367         * collect-utils.h: New file.
15368         * lto-wrapper.c: Include "collect-utils.h".
15369         (args_name): Delete variable.
15370         (tool_name): New variable.
15371         (tool_cleanup): New function.
15372         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
15373         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
15374         (fork_execute): Remove functions.
15375
15376 2014-06-26  Nick Clifton  <nickc@redhat.com>
15377
15378         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
15379
15380         * doc/extend.texi (Function Attributes): Fix typo in description
15381         of RX vector attribute.
15382
15383 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15384
15385         * config.gcc (supported_defaults): Error when passing either
15386         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
15387
15388 2014-06-26  Richard Biener  <rguenther@suse.de>
15389
15390         * tree-ssa-dom.c (cprop_operand): Remove restriction on
15391         propagating volatile pointers.
15392
15393 2014-06-26  Richard Biener  <rguenther@suse.de>
15394
15395         PR tree-optimization/61607
15396         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
15397         loop if we redirected its latch edge.
15398         (thread_block_1): Do not cancel loops prematurely.
15399
15400 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
15401
15402         * toplev.c (backend_init_target): Move init_emit_regs and
15403         init_regs to...
15404         (backend_init) ... here; skip ira_init_once and backend_init_target.
15405         (target_reinit) ... and here; clear
15406         this_target_rtl->lang_dependent_initialized.
15407         (lang_dependent_init_target): Clear
15408         this_target_rtl->lang_dependent_initialized;
15409         break out rtl initialization to ...
15410         (initialize_rtl): ... here; call also backend_init_target
15411         and ira_init_once.
15412         * toplev.h (initialize_rtl): New function.
15413         * function.c: Include toplev.h
15414         (init_function_start): Call initialize_rtl.
15415         * rtl.h (target_rtl): Add target_specific_initialized,
15416         lang_dependent_initialized.
15417
15418 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
15419             Jakub Jelinek  <jakub@redhat.com>
15420
15421         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
15422
15423 2014-06-25  Tom de Vries  <tom@codesourcery.com>
15424
15425         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
15426
15427 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15428
15429         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
15430         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
15431         Issue a strict overflow warning if appropriate.
15432
15433 2014-06-25  Martin Liska  <mliska@suse.cz>
15434
15435         IPA REF refactoring
15436         * Makefile.in: Removed header file (ipa-ref-inline.h).
15437         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
15438         called.
15439         (cgraph_speculative_call_info): Likewise.
15440         (cgraph_for_node_thunks_and_aliases): Likewise.
15441         (cgraph_for_node_and_aliases): Likewise.
15442         (verify_cgraph_node): Likewise.
15443         * cgraph.h: Batch of IPA REF functions become member functions of
15444         symtab_node: add_reference, maybe_add_reference, clone_references,
15445         clone_referring, clone_reference, find_reference,
15446         remove_stmt_references, remove_all_references,
15447         remove_all_referring, dump_references, dump_referring,
15448         has_alias_p, iterate_reference, iterate_referring.
15449         * cgraphbuild.c (record_reference): New IPA REF function used.
15450         (record_type_list): Likewise.
15451         (record_eh_tables): Likewise.
15452         (mark_address): Likewise.
15453         (mark_load): Likewise.
15454         (mark_store): Likewise.
15455         (pass_build_cgraph_edges): Likewise.
15456         (rebuild_cgraph_edge): Likewise.
15457         (cgraph_rebuild_references): Likewise.
15458         (pass_remove_cgraph_callee_edges): Likewise.
15459         * cgraphclones.c (cgraph_clone_node): Likewise.
15460         (cgraph_create_virtual_clone): Likewise.
15461         (cgraph_materialize_clone): Likewise.
15462         (cgraph_materialize_all_clones): Likewise.
15463         * cgraphunit.c (cgraph_reset_node): Likewise.
15464         (cgraph_reset_node): Likewise.
15465         (analyze_function): Likewise.
15466         (assemble_thunks_and_aliases): Likewise.
15467         (expand_function): Likewise.
15468         * ipa-comdats.c (propagate_comdat_group): Likewise.
15469         (enqueue_references): Likewise.
15470         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
15471         (create_specialized_node): Likewise.
15472         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
15473         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
15474         * ipa-inline.c (reset_edge_caches): Likewise.
15475         (update_caller_keys): Likewise.
15476         (execute): Likewise.
15477         * ipa-prop.c (remove_described_reference): Likewise.
15478         (propagate_controlled_uses): Likewise.
15479         (ipa_edge_duplication_hook): Likewise.
15480         (ipa_modify_call_arguments): Likewise.
15481         * ipa-pure-const.c (propagate_pure_const): Likewise.
15482         * ipa-ref-inline.h: Header file removed, functions moved
15483         to symtab_node class.
15484         * ipa-ref.c (remove_reference): New class member function.
15485         (cannot_lead_to_return): New class member function.
15486         (referring_ref_list): Likewise.
15487         (referred_ref_list): Likewise.
15488         Rest of functions moved to symtab_node class.
15489         * ipa-ref.h: New member functions remove_reference,
15490         cannot_lead_to_return, referring_ref_list, referred_ref_list added
15491         to ipa_ref class.
15492         ipa_ref_list class has new member functions: first_reference,
15493         first_referring, clear, nreferences.
15494         * ipa-reference.c (analyze_function): New IPA REF function used.
15495         (write_node_summary_p): Likewise.
15496         (ipa_reference_write_optimization_summary): Likewise.
15497         * ipa-split.c (split_function): Likewise.
15498         * ipa-utils.c (ipa_reverse_postorder): Likewise.
15499         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
15500         (function_and_variable_visibility): Likewise.
15501         * ipa.c (has_addr_references_p): Likewise.
15502         (process_references): Argument type changed.
15503         (symtab_remove_unreachable_nodes): New IPA REF function used.
15504         (process_references): Likewise.
15505         (set_writeonly_bit): Likewise.
15506         * lto-cgraph.c: Implementation of new symtab_node member functions
15507         that uses new IPA REF functions.
15508         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
15509         function used.
15510         * lto-streamer-out.c (output_symbol_p): Likewise.
15511         * lto-streamer.h (referenced_from_this_partition_p): Argument type
15512         changed.
15513         * symtab.c: Implementation of new IPA REF API.
15514         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
15515         (ipa_tm_create_version): Likewise.
15516         (ipa_tm_execute): Likewise.
15517         * tree-emutls.c (gen_emutls_addr): Likewise.
15518         * tree-inline.c (copy_bb): Likewise.
15519         (delete_unreachable_blocks_update_callgraph): Likewise.
15520         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
15521         (varpool_for_node_and_aliases): Likewise.
15522
15523 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
15524
15525         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
15526
15527 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
15528
15529         PR bootstrap/61598
15530         * fold-const.c (fold_checksum_tree): Use a hash_table of const
15531         tree_node * instead of tree_node *.
15532         (fold): Adjust.
15533         (print_fold_checksum): Likewise.
15534         (fold_check_failed): Likewise.
15535         (debug_fold_checksum): Likewise.
15536         (fold_build1_stat_loc): Likewise.
15537         (fold_build2_stat_loc): Likewise.
15538         (fold_build3_stat_loc): Likewise.
15539         (fold_build_call_array_loc): Likewise.
15540
15541 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
15542
15543         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
15544         implementation with call to...
15545         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
15546         function.
15547         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
15548         Declare.
15549
15550 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
15551
15552         PR tree-optimization/57742
15553         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
15554         after replacing the statement.
15555
15556 2014-06-25  Nick Clifton  <nickc@redhat.com>
15557
15558         * config/v850/v850.c (GHS_default_section_names): Change to const
15559         char * type.
15560         (GHS_current_section_names): Likewise.
15561         (v850_insert_attributes): Do not build strings, just assign the
15562         names directly.  Change the type of 'chosen_section' to const
15563         char*.
15564         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
15565         directly to the array entry.
15566         * config/v850/v850.h (GHS_default_section_names): Change to const
15567         char * type.
15568         (GHS_current_section_names): Likewise.
15569
15570 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
15571
15572         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
15573         (LANG_HOOKS_DECLS): Add it.
15574         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
15575         has correct type.
15576         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
15577         * langhooks.h (struct lang_hooks_for_decls): Add
15578         omp_clause_linear_ctor hook.
15579         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
15580         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
15581         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
15582         combined simd loop use omp_clause_linear_ctor hook.
15583
15584 2014-06-24  Cong Hou  <congh@google.com>
15585
15586         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
15587         pattern recognition.
15588         (type_conversion_p): PROMOTION is true if it's a type promotion
15589         conversion, and false otherwise.  Return true if the given expression
15590         is a type conversion one.
15591         * tree-vectorizer.h: Adjust the number of patterns.
15592         * tree.def: Add SAD_EXPR.
15593         * optabs.def: Add sad_optab.
15594         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
15595         * expr.c (expand_expr_real_2): Likewise.
15596         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
15597         * gimple.c (get_gimple_rhs_num_ops): Likewise.
15598         * optabs.c (optab_for_tree_code): Likewise.
15599         * tree-cfg.c (estimate_operator_cost): Likewise.
15600         * tree-ssa-operands.c (get_expr_operands): Likewise.
15601         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
15602         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
15603         * doc/generic.texi: Add document for SAD_EXPR.
15604         * doc/md.texi: Add document for ssad and usad.
15605
15606 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15607
15608         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
15609         qualification in cast.
15610
15611 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
15612
15613         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
15614         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
15615         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
15616         (tree_function_decl): ... here.
15617         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
15618         streaming of vindex to ...
15619         (write_ts_function_decl_tree_pointers): ... here.
15620         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
15621         Do not stream DECL_VINDEX.
15622         (lto_input_ts_function_decl_tree_pointers): Stream it here.
15623
15624 2014-06-24  Catherine Moore  <clm@codesourcery.com>
15625             Sandra Loosemore  <sandra@codesourcery.com>
15626
15627         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
15628         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
15629         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
15630
15631 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
15632
15633         * doc/invoke.texi (Warning Options): Remove duplicated
15634         -Wmaybe-uninitialized.
15635
15636 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
15637
15638         PR tree-optimization/57742
15639         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
15640         (handle_builtin_malloc, handle_builtin_memset): New functions.
15641         (strlen_optimize_stmt): Call them.
15642         * passes.def: Move strlen after loop+dom but before vrp.
15643
15644 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15645
15646         PR target/61570
15647         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
15648         model family 6 CPU with has_longmode never use a CPU without
15649         64-bit support.
15650
15651 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15652
15653         PR target/61570
15654         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
15655         the last change.
15656
15657 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15658
15659         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
15660         * dominance.c (iterate_fix_dominators): Use hash_map instead of
15661         pointer_map.
15662         * hash-map.h: New file.
15663         * ipa-comdats.c: Use hash_map instead of pointer_map.
15664         * ipa.c: Likewise.
15665         * lto-section-out.c: Adjust.
15666         * lto-streamer.h: Replace pointer_map with hash_map.
15667         * symtab.c (verify_symtab): Likewise.
15668         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
15669         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
15670         * tree-streamer.h: Likewise.
15671         * tree-streamer.c: Adjust.
15672         * pointer-set.h: Remove pointer_map.
15673
15674 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15675
15676         * hash-table.h: Add a template arg to choose between storing values
15677         and storing pointers to values, and then provide partial
15678         specializations for both.
15679         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
15680         should store, not the type values should point to.
15681         * tree-into-ssa.c (var_info_hasher): Likewise.
15682         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15683         * tree-complex.c: Adjust.
15684         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
15685         table instead of int_tree_map *.
15686         * tree-parloops.c: Adjust.
15687         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
15688         type is being stored.
15689         * tree-vectorizer.c: Adjust.
15690
15691 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15692
15693         * hash-table.h: Remove a layer of indirection from hash_table so that
15694         it contains the hash table's data instead of a pointer to the data.
15695         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
15696         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
15697         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15698         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15699         fold-const.c, gcse.c, ggc-common.c,
15700         gimple-ssa-strength-reduction.c, gimplify.c,
15701         graphite-clast-to-gimple.c, graphite-dependences.c,
15702         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15703         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15704         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15705         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15706         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15707         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15708         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15709         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15710         tree-ssa-live.c, tree-ssa-loop-im.c,
15711         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15712         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15713         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15714         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15715         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15716         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15717         vtable-verify.c, vtable-verify.h: Adjust.
15718
15719 2014-06-24  Richard Biener  <rguenther@suse.de>
15720
15721         PR tree-optimization/61572
15722         * tree-ssa-sink.c (statement_sink_location): Do not sink
15723         loads from hard registers.
15724
15725 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15726
15727         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15728         not mentioned in clauses use private clause if the iterator is
15729         declared in #pragma omp for simd, and when adding lastprivate
15730         instead, add it to the outer #pragma omp for too.  Diagnose
15731         if the variable is private in outer context.  For simd collapse > 1
15732         loops, replace all iterators with temporaries.
15733         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15734         same even in collapse > 1 loops.
15735
15736         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15737         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15738         non-NULL.
15739         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15740         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15741         non-NULL.
15742         (gimplify_adjust_omp_clauses): Likewise.
15743         * omp-low.c (lower_rec_simd_input_clauses,
15744         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15745         safelen the same as safelen(1).
15746         * tree-nested.c (convert_nonlocal_omp_clauses,
15747         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
15748         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15749         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15750         Fixup handling of GIMPLE_OMP_TARGET.
15751         (convert_tramp_reference_stmt, convert_gimple_call): Handle
15752         GIMPLE_OMP_TARGET.
15753
15754 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
15755
15756         PR tree-optimization/61554
15757         * tree-ssa-propagate.c: Include "bitmap.h".
15758         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15759         properly update constructor/destructor.
15760         (substitute_and_fold_dom_walker::before_dom_children):
15761         Remove call to gimple_purge_dead_eh_edges, add bb->index to
15762         need_eh_cleaup instead.
15763         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15764         need_eh_cleanup.
15765
15766 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
15767
15768         * varpool.c (dump_varpool_node): Dump used_by_single_function.
15769         * tree-pass.h (make_pass_ipa_single_use): New pass.
15770         * cgraph.h (used_by_single_function): New flag.
15771         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15772         Stream it.
15773         * passes.def (pass_ipa_single_use): Scedule.
15774         * ipa.c (BOTTOM): New macro.
15775         (meet): New function
15776         (propagate_single_user): New function.
15777         (ipa_single_use): New function.
15778         (pass_data_ipa_single_use): New pass.
15779         (pass_ipa_single_use): New pass.
15780         (pass_ipa_single_use::gate): New gate.
15781         (make_pass_ipa_single_use): New function.
15782
15783 2014-06-23  Kai Tietz  <ktietz@redhat.com>
15784
15785         PR target/39284
15786         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15787         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15788
15789 2014-06-23  Richard Biener  <rguenther@suse.de>
15790
15791         * tree-ssa-loop.c (gate_loop): New function.
15792         (pass_tree_loop::gate): Call it.
15793         (pass_data_tree_no_loop, pass_tree_no_loop,
15794         make_pass_tree_no_loop): New.
15795         * tree-vectorizer.c: Include tree-scalar-evolution.c
15796         (pass_slp_vectorize::execute): Initialize loops and SCEV if
15797         required.
15798         (pass_slp_vectorize::clone): New method.
15799         * timevar.def (TV_TREE_NOLOOP): New.
15800         * tree-pass.h (make_pass_tree_no_loop): Declare.
15801         * passes.def (pass_tree_no_loop): New pass group with
15802         SLP vectorizer.
15803
15804 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15805
15806         PR target/61570
15807         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15808         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15809
15810 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
15811
15812         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15813         "yes" where needed.
15814
15815 2014-06-23  Alan Modra  <amodra@gmail.com>
15816
15817         PR bootstrap/61583
15818         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15819         to zero on debug statements.
15820
15821 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15822
15823         PR target/60825
15824         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15825         Ignore third operand if present by marking qualifier_internal.
15826
15827         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15828
15829         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15830         vector extension.
15831         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15832         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15833         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15834         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15835         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15836         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15837         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15838         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15839         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15840         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15841         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15842         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15843         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15844         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15845         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15846         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15847         logic in GCC vector extensions
15848
15849         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15850         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15851         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15852         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15853         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15854         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15855         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15856         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15857         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15858         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15859
15860         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15861
15862         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15863         extensions.
15864
15865         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15866         (vget_low_s64): Use __GET_LOW macro.
15867         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15868         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15869         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15870         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15871         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15872
15873         (vcombine_s64): Use GCC vector extensions; remove cast.
15874         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15875         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15876         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15877         Fix type signature; remove cast.
15878
15879 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15880
15881         PR target/60825
15882         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15883         V1DFmode.
15884         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15885         add V1DFmode
15886         (BUILTIN_VD1): New.
15887         (BUILTIN_VD_RE): Remove.
15888         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15889         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15890         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15891         variant but not df.
15892         (vreinterpretv1df*, vreinterpret*v1df): New.
15893         (vreinterpretdf*, vreinterpret*df): Remove.
15894         * config/aarch64/aarch64-simd.md (aarch64_create,
15895         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15896         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15897         (VD1): New.
15898         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15899         (vcreate_f64): Remove cast, use v1df builtin.
15900         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15901         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15902         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15903         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15904         vmov_n_f64, vst1_f64): Use gcc vector extensions.
15905         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15906         add range check using __builtin_aarch64_im_lane_boundsi.
15907         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15908         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15909         type signature, use gcc vector extensions.
15910         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15911         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15912         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15913         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15914         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15915         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15916         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15917         vreinterpret_u64_f64): Use v1df builtin not df.
15918
15919 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
15920
15921         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15922         vector registers.
15923
15924 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
15925
15926         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15927         priority directly.
15928
15929 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15930
15931         * loop-invariant.c (pre_check_invariant_p): New function.
15932         (find_invariant_insn): Call pre_check_invariant_p.
15933
15934 2014-06-22  Richard Henderson  <rth@redhat.com>
15935
15936         PR target/61565
15937         * compare-elim.c (struct comparison): Add eh_note.
15938         (find_comparison_dom_walker::before_dom_children): Don't eliminate
15939         a redundant comparison in a different EH region.  Purge EH edges if
15940         necessary.
15941
15942 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15943
15944         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15945         (var_shift): Use it.
15946         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15947         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15948         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15949         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15950         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15951         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15952         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15953         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15954         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15955         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15956         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15957         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15958         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15959         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15960         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15961         *rotldi3_internal15be): Use the new attribute.  Merge register and
15962         integer alternatives.
15963
15964 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15965
15966         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15967         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15968         split, *ashrdi3_internal3 and split): Delete, merge into...
15969         (ashr<mode>3): New expander.
15970         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15971         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
15972
15973 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15974
15975         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15976         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15977         *rotldi3_internal3 and split): Delete, merge into...
15978         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15979         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
15980         Use "rotlw" extended mnemonic.
15981
15982 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15983
15984         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15985         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15986         and split, *ashldi3_internal3 and split): Delete, merge into...
15987         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15988         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
15989
15990 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15991
15992         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15993         (lshrsi3, two anonymous define_insns and define_splits,
15994         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15995         *lshrdi3_internal3 and split): Delete, merge into...
15996         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15997         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
15998
15999 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
16000
16001         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
16002         Remove "O" alternative.
16003
16004 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
16005
16006         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
16007         (mips_move_from_gpr_cost): Likewise.
16008         (mips_register_move_cost): Update accordingly.
16009         (mips_secondary_reload_class): Remove name of in_p.
16010
16011 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
16012
16013         PR target/61503
16014         * config/i386/i386.md (x86_64_shrd, x86_shrd,
16015         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
16016
16017 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16018
16019         * config/nios2/nios2.c: Include "builtins.h".
16020
16021 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
16022
16023         * cgraph.h (tls_model_names): New variable.
16024         * print-tree.c (print_node): Simplify.
16025         * varpool.c (tls_model_names): New variable.
16026         (dump_varpool_node): Output tls model.
16027
16028 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
16029
16030         * ipa-visibility.c (function_and_variable_visibility): Disable
16031         temporarily local aliases for some targets.
16032
16033 2014-06-20  Marek Polacek  <polacek@redhat.com>
16034
16035         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
16036         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
16037         into SANITIZE_UNDEFINED.
16038         * doc/invoke.texi: Describe -fsanitize=bounds.
16039         * gimplify.c (gimplify_call_expr): Add gimplification of internal
16040         functions created in the FEs.
16041         * internal-fn.c: Move "internal-fn.h" after "tree.h".
16042         (expand_UBSAN_BOUNDS): New function.
16043         * internal-fn.def (UBSAN_BOUNDS): New internal function.
16044         * internal-fn.h: Don't define internal functions here.
16045         * opts.c (common_handle_option): Add -fsanitize=bounds.
16046         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
16047         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
16048         * tree-core.h: Define internal functions here.
16049         (struct tree_base): Add ifn field.
16050         * tree-pretty-print.c: Include "internal-fn.h".
16051         (dump_generic_node): Handle functions without CALL_EXPR_FN.
16052         * tree.c (get_callee_fndecl): Likewise.
16053         (build_call_expr_internal_loc): New function.
16054         * tree.def (CALL_EXPR): Update description.
16055         * tree.h (CALL_EXPR_IFN): Define.
16056         (build_call_expr_internal_loc): Declare.
16057         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
16058         types.
16059         (ubsan_type_descriptor): Change bool parameter to enum
16060         ubsan_print_style.  Adjust the code.  Add handling of
16061         UBSAN_PRINT_ARRAY.
16062         (ubsan_expand_bounds_ifn): New function.
16063         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
16064         (ubsan_build_overflow_builtin): Likewise.
16065         (instrument_bool_enum_load): Likewise.
16066         (ubsan_instrument_float_cast): Likewise.
16067         * ubsan.h (enum ubsan_print_style): New enum.
16068         (ubsan_expand_bounds_ifn): Declare.
16069         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
16070
16071 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
16072
16073         * config/rs6000/rs6000.md: Append `DONE' to preparation
16074         statements of `bswap' pattern splitters.
16075
16076 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16077
16078         * target.def (call_fusage_contains_non_callee_clobbers): Update
16079         definition.
16080         * doc/tm.texi: Regenerate.
16081
16082 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
16083             Max Ostapenko  <m.ostapenko@partner.samsung.com>
16084
16085         PR sanitizer/61547
16086         * asan.c (instrument_strlen_call): Fixed instrumentation of
16087         trailing byte.
16088
16089 2014-06-20  Martin Jambor  <mjambor@suse.cz>
16090
16091         PR ipa/61540
16092         * ipa-prop.c (impossible_devirt_target): New function.
16093         (try_make_edge_direct_virtual_call): Use it, also instead of
16094         asserting.
16095
16096 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
16097             Max Ostapenko  <m.ostapenko@partner.samsung.com>
16098
16099         PR sanitizer/61530
16100         * asan.c (build_check_stmt): Add condition.
16101
16102 2014-06-20  Martin Jambor  <mjambor@suse.cz>
16103
16104         PR ipa/61211
16105         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
16106         expanded clones.
16107
16108 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16109
16110         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
16111         Update comments.
16112         (VCONQ): Make comment more helpful.
16113         (VCON): Delete.
16114         * config/aarch64/aarch64-simd.md
16115         (aarch64_sqdmulh_lane<mode>):
16116         Use VCOND for operands 2.  Update lane checking and flipping logic.
16117         (aarch64_sqrdmulh_lane<mode>): Likewise.
16118         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
16119         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
16120         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
16121         attribute of operand 3 to VCOND.
16122         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
16123         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
16124         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
16125         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
16126         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
16127         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
16128         define_insn.
16129         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
16130         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
16131         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
16132         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
16133         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
16134         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
16135         operand to VCOND.  Update lane flipping and bounds checking logic.
16136         (aarch64_sqdmlal2_lane<mode>): Likewise.
16137         (aarch64_sqdmlsl_lane<mode>): Likewise.
16138         (aarch64_sqdmull_lane<mode>): Likewise.
16139         (aarch64_sqdmull2_lane<mode>): Likewise.
16140         (aarch64_sqdmlal_laneq<mode>):
16141         Replace VCON usage with VCONQ.
16142         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
16143         (aarch64_sqdmlal2_laneq<mode>): Emit
16144         aarch64_sqdmlal2_laneq<mode>_internal insn.
16145         Replace VCON with VCONQ.
16146         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
16147         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16148         (aarch64_sqdmull_laneq<mode>): Emit
16149         aarch64_sqdmull_laneq<mode>_internal insn.
16150         Replace VCON with VCONQ.
16151         (aarch64_sqdmull2_laneq<mode>): Emit
16152         aarch64_sqdmull2_laneq<mode>_internal insn.
16153         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
16154         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
16155         of 3rd argument to int16x4_t.
16156         (vqdmlalh_lane_s16): Likewise.
16157         (vqdmlslh_lane_s16): Likewise.
16158         (vqdmull_high_lane_s16): Likewise.
16159         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
16160         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
16161         (vqdmlsl_lane_s16): Likewise.
16162         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
16163         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
16164         (vqdmlals_lane_s32): Likewise.
16165         (vqdmlsls_lane_s32): Likewise.
16166         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
16167         (vqdmulls_lane_s32): Likewise.
16168         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
16169         (vqdmlsl_lane_s32): Likewise.
16170         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
16171         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
16172         (vqrdmulhh_lane_s16): Likewise.
16173         (vqdmlsl_high_lane_s16): Likewise.
16174         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
16175         (vqdmlsl_high_lane_s32): Likewise.
16176         (vqrdmulhs_lane_s32): Likewise.
16177
16178 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16179
16180         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
16181         get_call_reg_set_usage.
16182
16183 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16184
16185         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
16186         it contains all call_used_regs.
16187
16188 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16189
16190         * final.c (collect_fn_hard_reg_usage): Add and use variable
16191         function_used_regs.
16192
16193 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
16194
16195         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
16196         (set_init_priority, get_init_priority, set_fini_priority,
16197         get_fini_priority): New methods.
16198         * tree.c (init_priority_for_decl): Remove.
16199         (init_ttree): Do not initialize init priority.
16200         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
16201         (decl_priority_info): Remove.
16202         (decl_init_priority_insert): Rewrite.
16203         (decl_fini_priority_insert): Rewrite.
16204         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
16205         tree_priority_map_marked_p): Remove.
16206         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
16207         * lto-streamer-out.c (hash_tree): Do not hash priorities.
16208         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
16209         not output priorities.
16210         (pack_ts_function_decl_value_fields): Likewise.
16211         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16212         not input priorities.
16213         (unpack_ts_function_decl_value_fields): Likewise.
16214         * symtab.c (symbol_priority_map): Declare.
16215         (init_priority_hash): Declare.
16216         (symtab_unregister_node): Unregister from priority hash, too.
16217         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
16218         New methods.
16219         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
16220         (symbol_priority_info): New function.
16221         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
16222         New methods.
16223         * tree-core.h (tree_priority_map): Remove.
16224
16225 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
16226
16227         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
16228         0xff to uint64_t before shifting it up.
16229
16230 2014-06-20  Julian Brown  <julian@codesourcery.com>
16231             Chung-Lin Tang  <cltang@codesourcery.com>
16232
16233         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
16234         TARGET_THUMB1_ONLY. Add comments.
16235
16236 2014-06-19  Tom de Vries  <tom@codesourcery.com>
16237
16238         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
16239         return type to void.
16240         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
16241
16242 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16243
16244         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
16245         as "move", from depends_on.
16246
16247 2014-06-19  Terry Guo  <terry.guo@arm.com>
16248
16249         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
16250         stage.
16251
16252 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16253
16254         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
16255         Remove cr5.
16256         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
16257
16258 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16259
16260         PR target/61550
16261         * config/sh/sh.c (prepare_move_operands): Don't process TLS
16262         addresses here if reload in progress or completed.
16263
16264 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16265
16266         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
16267         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
16268         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
16269         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
16270         (mips_register_priority): New function that implements the target
16271         hook TARGET_REGISTER_PRIORITY.
16272         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
16273         (mips_lra_p): Likewise for TARGET_LRA_P.
16274         (TARGET_REGISTER_PRIORITY): Define macro.
16275         (TARGET_SPILL_CLASS): Likewise.
16276         (TARGET_LRA_P): Likewise.
16277         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
16278         classes.
16279         (REG_CLASS_NAMES): Likewise.
16280         (REG_CLASS_CONTENTS): Likewise.
16281         (BASE_REG_CLASS): Use M16_SP_REGS.
16282         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
16283         New set attribute to enable alternatives depending on the register
16284         allocator used.
16285         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
16286         (*lea64): Disable pattern for MIPS16.
16287         * config/mips/mips.opt (mlra): New option.
16288
16289 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16290
16291         * lra-constraints.c (base_to_reg): New function.
16292         (process_address): Use new function.
16293
16294 2014-06-18  Tom de Vries  <tom@codesourcery.com>
16295
16296         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
16297         * config/aarch64/aarch64.c
16298         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
16299         (aarch64_emit_call_insn): New function.
16300         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
16301         of emit_call_insn.
16302         * config/aarch64/aarch64.md (define_expand "call_internal")
16303         (define_expand "call_value_internal", define_expand "sibcall_internal")
16304         (define_expand "sibcall_value_internal"): New.
16305         (define_expand "call", define_expand "call_value")
16306         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
16307         expand variant and aarch64_emit_call_insn.
16308
16309 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
16310             Tom de Vries  <tom@codesourcery.com>
16311
16312         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
16313         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16314         Redefine to true.
16315         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
16316         clobbers to CALL_INSN_FUNCTION_USAGE.
16317         (define_expand "sibcall_internal")
16318         (define_expand "sibcall_value_internal"): New.
16319         (define_expand "call", define_expand "call_value"): Add argument to
16320         arm_emit_call_insn.
16321         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
16322         (define_expand "sibcall_value"): Use sibcall_value_internal and
16323         arm_emit_call_insn.
16324
16325 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16326
16327         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
16328
16329 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16330
16331         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
16332         __udivmoddi4.
16333
16334 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16335
16336         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
16337         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
16338         annotations. Fix DWARF information.
16339
16340 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16341
16342         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
16343         __udivmoddi4, and fixups for negative operands.
16344
16345 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16346
16347         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
16348
16349 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16350
16351         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
16352         to __udivmoddi4.
16353
16354 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16355
16356         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
16357         manipulation.
16358
16359 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16360
16361         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
16362         describing register usage on function entry and exit.
16363
16364 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16365
16366         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
16367         (__aeabi_ldivmod): Fix whitespace.
16368
16369 2014-06-18  Andreas Schwab  <schwab@suse.de>
16370
16371         * doc/md.texi (Standard Names): Use @itemx for grouped items.
16372         Remove blank line after @item.
16373
16374 2014-06-18  Richard Henderson  <rth@redhat.com>
16375
16376         PR target/61545
16377         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
16378
16379 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16380
16381         * config/arm/arm.c (neon_vector_mem_operand): Allow register
16382         POST_MODIFY for neon loads and stores.
16383         (arm_print_operand): Output post-index register for neon loads and
16384         stores.
16385
16386 2014-06-18  Richard Biener  <rguenther@suse.de>
16387
16388         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
16389
16390 2014-06-18  Richard Biener  <rguenther@suse.de>
16391
16392         * tree-pass.h (make_pass_dce_loop): Remove.
16393         * passes.def: Replace pass_dce_loop with pass_dce.
16394         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
16395         changed free niter estimates and reset the scev cache.
16396         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
16397         make_pass_dce_loop): Remove.
16398         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
16399         (fini_copy_prop): Return whether something changed.  Always
16400         let substitute_and_fold perform DCE and free niter estimates
16401         and reset the scev cache if so.
16402         (execute_copy_prop): If sth changed schedule cleanup-cfg.
16403         (pass_data_copy_prop): Do not unconditionally schedule
16404         cleanup-cfg or update-ssa.
16405
16406 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
16407
16408         PR tree-optimization/61518
16409         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16410         reduction var is used in reduction stmt or phi-function only.
16411
16412 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16413
16414         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
16415
16416 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16417
16418         PR tree-optimization/61517
16419         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
16420         whose rhs's first tree is the source expression instead of the
16421         expression itself.
16422         (find_bswap_or_nop): Likewise.
16423         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
16424         gimple stmt whose rhs's first tree is the source. In the memory source
16425         case, move the stmt to be replaced close to one of the original load to
16426         avoid the problem of a store between the load and the stmt's original
16427         location.
16428         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
16429         signature.
16430
16431 2014-06-18  Andreas Schwab  <schwab@suse.de>
16432
16433         PR rtl-optimization/54555
16434         * postreload.c (move2add_use_add2_insn): Substitute
16435         STRICT_LOW_PART only if it is cheaper.
16436
16437 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
16438
16439         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
16440         Do not use unspec as call operand.  Use memory_operand instead of
16441         memory_nox32_operand and add "m" operand constraint.  Disable
16442         pattern for TARGET_X32.
16443         (*sibcall_pop_memory): Ditto.
16444         (*sibcall_value_memory): Ditto.
16445         (*sibcall_value_pop_memory): Ditto.
16446         (sibcall peepholes): Merge SImode and DImode patterns using
16447         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
16448         Disable pattern for TARGET_X32.  Check if eliminated register is
16449         really dead after call insn.  Generate call RTX without unspec operand.
16450         (sibcall_value peepholes): Ditto.
16451         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
16452         instead of memory_nox32_operand.  Check if eliminated register is
16453         really dead after call insn. Generate call RTX without unspec operand.
16454         (sibcall_value_pop peepholes): Ditto.
16455         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
16456
16457 2014-06-18  Terry Guo  <terry.guo@arm.com>
16458
16459         PR target/61544
16460         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
16461         reach the head.
16462
16463 2014-06-18  Olivier Hainque  <hainque@adacore.com>
16464
16465         * tree-core.h (tree_block): Add an "end_locus" field, allowing
16466         memorization of the end of block source location.
16467         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
16468         * gimplify.c (gimplify_bind_expr): Propagate the block start and
16469         end source location info we have on the block entry/exit code we
16470         generate.
16471
16472 2014-06-18  Richard Biener  <rguenther@suse.de>
16473
16474         * common.opt (fssa-phiopt): New option.
16475         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
16476         but not with -Og.
16477         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
16478         * doc/invoke.texi (-fssa-phiopt): Document.
16479
16480 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16481
16482         * genattrtab.c (n_bypassed): New variable.
16483         (process_bypasses): Initialise n_bypassed.
16484         Count number of bypassed reservations.
16485         (make_automaton_attrs): Allocate space for bypassed reservations
16486         rather than number of bypasses.
16487
16488 2014-06-18  Richard Biener  <rguenther@suse.de>
16489
16490         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
16491         we propagated anything.
16492         (substitute_and_fold_dom_walker::before_dom_children): Something
16493         changed if we propagated into PHI arguments.
16494         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
16495         we removed a stmt.
16496
16497 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
16498
16499         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
16500         vector case.
16501         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
16502         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
16503         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
16504         Introduces alternative way of loads group permutaions.
16505         (vect_transform_grouped_load): Try alternative way of permutations.
16506
16507 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16508
16509         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
16510         changed in ORT_TARGET region, don't jump to do_outer.
16511         (struct gimplify_adjust_omp_clauses_data): New type.
16512         (gimplify_adjust_omp_clauses_1): Adjust for data being
16513         a struct gimplify_adjust_omp_clauses_data pointer instead
16514         of tree *.  Pass pre_p as a new argument to
16515         lang_hooks.decls.omp_finish_clause hook.
16516         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
16517         splay_tree_foreach to pass both list_p and pre_p.
16518         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
16519         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
16520         gimplify_adjust_omp_clauses callers.
16521         * langhooks.c (lhd_omp_finish_clause): New function.
16522         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
16523         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
16524         * langhooks.h (struct lang_hooks_for_decls): Add a new
16525         gimple_seq * argument to omp_finish_clause hook.
16526         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
16527         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
16528         (scan_omp_parallel, lower_omp_for): When adding
16529         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
16530         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
16531         * tree-nested.c (convert_nonlocal_omp_clauses,
16532         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
16533         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
16534
16535 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
16536
16537         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
16538         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
16539
16540 2014-06-17  Xinliang David Li  <davidxl@google.com>
16541
16542         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
16543         * passes.c (pass_init_dump_file): Do not set initialize
16544         flag to false unconditionally.
16545
16546 2014-06-17  Richard Biener  <rguenther@suse.de>
16547
16548         * genopinit.c (main): Use vec<>::qsort method.
16549         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16550         Likewise.
16551         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
16552
16553 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
16554
16555         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
16556         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
16557         (mips_move_to_gpr_cost): Remove ST_REGS case.
16558         (mips_move_from_gpr_cost): Likewise.
16559         (mips_register_move_cost): Likewise.
16560         (mips_secondary_reload_class): Likewise.
16561
16562 2014-06-17  Richard Biener  <rguenther@suse.de>
16563
16564         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
16565         (pass_all_optimizations): Move 3rd copy-prop pass from after
16566         fre to before ifcombine/phiopt.
16567
16568 2014-06-17  Richard Biener  <rguenther@suse.de>
16569
16570         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
16571         and allow all blocks to be forwarders.
16572
16573 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
16574
16575         PR target/61483
16576         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
16577         variable 'size'; calculate 'size' right in the front; use
16578         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
16579         pcum->aapcs_stack_words.
16580
16581 2014-06-17  Nick Clifton  <nickc@redhat.com>
16582
16583         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
16584         (umulhi3, mulsidi3, umulsidi3): Likewise.
16585
16586 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
16587
16588         PR middle-end/61508
16589         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
16590         check for section name.
16591
16592 2014-06-17  Richard Biener  <rguenther@suse.de>
16593
16594         * tree-ssa-propagate.c: Include domwalk.h.
16595         (substitute_and_fold): Outline main worker into a domwalker ...
16596         (substitute_and_fold_dom_walker::before_dom_children): ... here.
16597         Schedule stmts we can fully propagate for removal.  Remove
16598         poor-mans DCE.
16599         (substitute_and_fold): Apply a dominator walk to perform
16600         substitution.  Process stmts scheduled for removal here.
16601
16602 2014-06-17  Richard Biener  <rguenther@suse.de>
16603
16604         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
16605         of PHI node moving.
16606
16607 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
16608
16609         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
16610         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
16611         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16612         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
16613         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
16614         TARGET_HARD_FLOAT.
16615         (get_fpscr) : Likewise.
16616
16617 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
16618
16619         PR rtl-optimization/61325
16620         * lra-constraints.c (valid_address_p): Add forward declaration.
16621         (simplify_operand_subreg): Check address validity before and after
16622         alter_reg of memory subreg.
16623
16624 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
16625
16626         * config/i386/i386.c (decide_alg): Correctly handle
16627         maximum size of stringop algorithm.
16628
16629 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
16630
16631         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
16632
16633 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
16634
16635         PR rtl-optimization/61522
16636         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
16637
16638 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
16639
16640         Revert:
16641         * symtab.c (symtab_node::reset_section): New method.
16642         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16643         for localization.
16644         * cgraph.h (reset_section): Declare.
16645         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16646         do not consider comdat locals.
16647         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16648         for new symbol.
16649         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16650         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16651         reset sections of symbols dragged out of the comdats.
16652         (function_and_variable_visibility): Reset sections of
16653         localized symbols.
16654
16655 2014-06-16  Richard Biener  <rguenther@suse.de>
16656
16657         PR tree-optimization/61482
16658         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
16659         [-INF(OVF), +INF(OVF)] range.
16660
16661 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16662
16663         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
16664         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
16665         handling 32-bit multiplication.
16666
16667 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
16668
16669         PR middle-end/61430
16670         * lra-lives.c (process_bb_lives): Skip creating copy during
16671         insn scan when src/dest has constrained to same regno.
16672
16673 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
16674
16675         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
16676         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
16677
16678 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
16679
16680         * asan.c (check_func): New function.
16681         (maybe_create_ssa_name): Likewise.
16682         (build_check_stmt_with_calls): Likewise.
16683         (use_calls_p): Likewise.
16684         (report_error_func): Change interface.
16685         (build_check_stmt): Allow non-integer lengths; add support
16686         for new parameter.
16687         (asan_instrument): Likewise.
16688         (instrument_mem_region_access): Moved code to build_check_stmt.
16689         (instrument_derefs): Likewise.
16690         (instrument_strlen_call): Likewise.
16691         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
16692         * doc/invoke.texi: Describe new parameter.
16693         * params.def: Define new parameter.
16694         * params.h: Likewise.
16695         * sanitizer.def: Describe new builtins.
16696
16697 2014-06-16  Richard Biener  <rguenther@suse.de>
16698
16699         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16700         Make all defs available at the end.
16701         (eliminate): If we remove a PHI node schedule cfg-cleanup.
16702
16703 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16704
16705         PR plugins/45078
16706         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16707
16708 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
16709
16710         PR bootstrap/61516
16711         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16712         initialization.  Replace remaining use of uid.
16713
16714 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
16715
16716         * c-family/c-common.c (handle_tls_model_attribute): Use
16717         set_decl_tls_model.
16718         * c-family/c-common.c (handle_tls_model_attribute): Use
16719         set_decl_tls_model.
16720         * cgraph.h (struct varpool_node): Add tls_model.
16721         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16722         * tree.h (DECL_TLS_MODEL): Update.
16723         (DECL_THREAD_LOCAL_P): Check that variable is static.
16724         (decl_tls_model): Declare.
16725         (set_decl_tls_model): Declare.
16726         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16727         set symbol prorperties.
16728         (get_emutls_init_templ_addr): Cleanup.
16729         (new_emutls_decl): Update.
16730         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16731         (lto_input_varpool_node): Likewise.
16732         * lto-streamer-out.c (hash_tree): Likewise.
16733         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16734         not stream DECL_TLS_MODEL.
16735         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16736         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16737
16738 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16739
16740         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16741
16742 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16743
16744         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16745         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16746         lists.
16747         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16748         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16749         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16750         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16751         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16752         (df_get_artificial_defs, df_get_artificial_uses)
16753         (df_single_def, df_single_use): Update accordingly.
16754         (df_refs_chain_dump): Take the first element in a linked list as
16755         parameter, rather than a pointer to an array of pointers.
16756         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16757         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16758         (df_chain_create_bb_process_use): Likewise.
16759         (df_md_bb_local_compute_process_def): Likewise.
16760         * fwprop.c (process_defs, process_uses): Likewise.
16761         (register_active_defs, update_uses): Likewise.
16762         (forward_propagate_asm): Update for new df_ref linking.
16763         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16764         (df_null_ref_rec, df_null_mw_rec): Likewise.
16765         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16766         explicitly.
16767         (df_scan_free_bb_info): Remove check for null artificial_defs.
16768         (df_install_ref_incremental): Adjust for new df_ref linking.
16769         Use a single-element insertion rather than a full sort.
16770         (df_ref_chain_delete_du_chain): Take the first element
16771         in a linked list as parameter, rather than a pointer to an array of
16772         pointers.
16773         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16774         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16775         (df_insn_info_delete): Remove check for null defs and call to
16776         df_scan_free_mws_vec.
16777         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16778         null rather than df_null_*_rec.
16779         (df_insn_rescan_debug_internal): Likewise, and update null
16780         checks in the same way.  Remove check for null defs.
16781         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16782         Move a single element rather doing a full sort.
16783         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16784         linking.
16785         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
16786         Initialize df_ref and df_mw_hardreg lists to null rather than
16787         df_null_*_rec.
16788         (df_ref_compare): Take df_refs as parameter, transferring the
16789         old interface to...
16790         (df_ref_ptr_compare): ...this new function.
16791         (df_sort_and_compress_refs): Update accordingly.
16792         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16793         old interface to...
16794         (df_mw_ptr_compare): ...this new function.
16795         (df_sort_and_compress_mws): Update accordingly.
16796         (df_install_refs, df_install_mws): Return a linked list rather than
16797         an array of pointers.
16798         (df_refs_add_to_chains): Assert that old lists are empty rather
16799         than freeing them.
16800         (df_insn_refs_verify): Don't handle null defs speciailly.
16801         * web.c (union_match_dups): Update for new df_ref linking.
16802
16803 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16804
16805         * df.h (df_ref_create, df_ref_remove): Delete.
16806         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16807         (df_ref_remove): Likewise.
16808
16809 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16810
16811         * df.h (df_single_def, df_single_use): New functions.
16812         * ira.c (find_moveable_pseudos): Use them.
16813
16814 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16815
16816         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16817         * df-problems.c (df_note_bb_compute): Use it.
16818         * regstat.c (regstat_bb_compute_ri): Likewise.
16819
16820 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16821
16822         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16823         * cse.c (cse_extended_basic_block): Use them.
16824         * dce.c (mark_artificial_use): Likewise.
16825         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16826         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16827         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16828         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16829         (df_simulate_initialize_backwards): Likewise.
16830         (df_simulate_finalize_backwards): Likewise.
16831         (df_simulate_initialize_forwards): Likewise.
16832         (df_md_simulate_artificial_defs_at_top): Likewise.
16833         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16834         * regrename.c (init_rename_info): Likewise.
16835         * regstat.c (regstat_bb_compute_ri): Likewise.
16836         (regstat_bb_compute_calls_crossed): Likewise.
16837
16838 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16839
16840         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16841         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16842         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16843         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16844         * combine.c (create_log_links): Likewise.
16845         * compare-elim.c (find_flags_uses_in_insn): Likewise.
16846         (try_eliminate_compare): Likewise.
16847         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16848         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16849         (remove_reg_equal_equiv_notes_for_defs): Likewise.
16850         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16851         (word_dce_process_block, dce_process_block): Likewise.
16852         * ddg.c (def_has_ccmode_p): Likewise.
16853         * df-core.c (df_bb_regno_first_def_find): Likewise.
16854         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16855         * df-problems.c (df_rd_simulate_one_insn): Likewise.
16856         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16857         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16858         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16859         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16860         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16861         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16862         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16863         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16864         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16865         * fwprop.c (local_ref_killed_between_p): Likewise.
16866         (all_uses_available_at, free_load_extend): Likewise.
16867         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16868         * hw-doloop.c (scan_loop): Likewise.
16869         * ifcvt.c (dead_or_predicable): Likewise.
16870         * init-regs.c (initialize_uninitialized_regs): Likewise.
16871         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16872         (process_bb_node_lives): Likewise.
16873         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16874         (find_moveable_pseudos): Likewise.
16875         * loop-invariant.c (check_dependencies, record_uses): Likewise.
16876         * recog.c (peep2_find_free_register): Likewise.
16877         * ree.c (get_defs): Likewise.
16878         * regstat.c (regstat_bb_compute_ri): Likewise.
16879         (regstat_bb_compute_calls_crossed): Likewise.
16880         * sched-deps.c (find_inc, find_mem): Likewise.
16881         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16882         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16883         * shrink-wrap.c (requires_stack_frame_p): Likewise.
16884         (prepare_shrink_wrap): Likewise.
16885         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16886         * web.c (union_defs, pass_web::execute): Likewise.
16887         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16888         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16889
16890 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
16891
16892         * lra-assign.c (assign_by_spills): Add code to assign vector regs
16893         to inheritance pseudos.
16894         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16895
16896 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
16897
16898         PR target/61415
16899         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16900         (BU_MISC_2): Rename to ...
16901         (BU_LDBL128_2): ... this.
16902         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16903         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16904         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16905         RS6000_BTM_LDBL128.
16906         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16907         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16908         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16909         (unpacktf_1): Likewise.
16910         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16911         (__builtin_longdouble_dw1): Likewise.
16912         * doc/sourcebuild.texi (longdouble128): Document.
16913
16914 2014-06-13  Jeff Law  <law@redhat.com>
16915
16916         PR rtl-optimization/61094
16917         PR rtl-optimization/61446
16918         * ree.c (combine_reaching_defs): Get the mode for the copy from
16919         the extension insn rather than the defining insn.
16920
16921 2014-06-13  Dehao Chen  <dehao@google.com>
16922
16923         * dwarf2out.c (add_linkage_name): Emit more linkage name.
16924
16925 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
16926
16927         * doc/install.texi (--enable-linker-plugin-configure-flags)
16928         (--enable-linker-plugin-flags): Document new flags.
16929
16930 2014-06-13  Martin Jambor  <mjambor@suse.cz>
16931
16932         PR ipa/61186
16933         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16934         cache_token if returning early.
16935
16936 2014-06-13  Nick Clifton  <nickc@redhat.com>
16937
16938         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16939         requested alignment is active.
16940         (LABEL_ALIGN): Likewise.
16941         (LOOP_ALIGN): Likewise.
16942
16943 2014-06-13  Richard Biener  <rguenther@suse.de>
16944
16945         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16946         Rewrite to propagate the VN result into all uses where
16947         possible and to remove stmts becoming dead because of that.
16948         (eliminate): Generalize stmt removal handling, remove in
16949         reverse dominator order to support proper debug stmt
16950         generation.  Update stmts before removing stmts.
16951         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16952
16953 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16954
16955         PR tree-optimization/61375
16956         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16957         symbolic number cannot be represented in an uint64_t.
16958         (find_bswap_or_nop_1): Likewise.
16959
16960 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16961
16962         * symtab.c (symtab_node::reset_section): New method.
16963         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16964         for localization.
16965         * cgraph.h (reset_section): Declare.
16966         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16967         do not consider comdat locals.
16968         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16969         for new symbol.
16970         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16971         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16972         reset sections of symbols dragged out of the comdats.
16973         (function_and_variable_visibility): Reset sections of
16974         localized symbols.
16975
16976 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16977
16978         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16979         to use symtab and decl_binds_to_current_def_p
16980         * tree-vectorizer.c (increase_alignment): Increase alignment
16981         of alias target, too.
16982
16983 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
16984
16985         PR middle-end/61486
16986         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16987         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16988         if outer combined construct is distribute.
16989         (gimplify_omp_for): For OMP_DISTRIBUTE set
16990         gimplify_omp_ctxp->distribute.
16991         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16992         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16993         mapping into decl map.
16994
16995 2014-06-12  Jason Merrill  <jason@redhat.com>
16996
16997         * common.opt (fabi-version): Change default to 0.
16998
16999 2014-06-12  Jason Merrill  <jason@redhat.com>
17000
17001         * toplev.c (process_options): Reject -fabi-version=1.
17002
17003 2014-06-12  Jeff Law  <law@redhat.com>
17004
17005         PR tree-optimization/61009
17006         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
17007         value when we stop processing a block due to problematic PHIs.
17008
17009 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
17010
17011         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
17012         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
17013         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
17014         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
17015         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
17016         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
17017         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
17018         are not in the spec.
17019
17020 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
17021
17022         PR target/59843
17023         * config/aarch64/aarch64-modes.def: Add V1DFmode.
17024         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
17025         Support V1DFmode.
17026
17027 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
17028
17029         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
17030
17031 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
17032
17033         PR target/61443
17034         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
17035         loading from address spaces.
17036
17037 2014-06-12  Martin Liska  <mliska@suse.cz>
17038
17039         PR ipa/61462
17040         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
17041         statement is reachable.
17042
17043 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
17044
17045         * symtab.c (section_hash): New hash.
17046         (symtab_unregister_node): Clear section before freeing.
17047         (hash_section_hash_entry): New haser.
17048         (eq_sections): New function.
17049         (symtab_node::set_section_for_node): New method.
17050         (set_section_1): Update.
17051         (symtab_node::set_section): Take string instead of tree as parameter.
17052         (symtab_resolve_alias): Update.
17053         * cgraph.h (section_hash_entry_d): New structure.
17054         (section_hash_entry): New typedef.
17055         (cgraph_node): Change comdat_group_ to x_comdat_group,
17056         change section_ to x_section and turn into section_hash_entry;
17057         update accestors; put set_section_for_node offline.
17058         * tree.c (decl_section_name): Turn into string.
17059         (set_decl_section_name): Change parameter to be string.
17060         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
17061         * sdbout.c (sdbout_one_type): Update.
17062         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
17063         * varasm.c (IN_NAMED_SECTION, get_named_section,
17064         resolve_unique_section, hot_function_section, get_named_text_section,
17065         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
17066         make_decl_rtl, default_unique_section): Update.
17067         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
17068         (c6x_elf_unique_section): Update.
17069         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
17070         * config/pa/pa.c (pa_function_section): Update.
17071         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
17072         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
17073         * config/arc/arc.c (arc_in_small_data_p): Update.
17074         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
17075         * config/mcore/mcore.c (mcore_unique_section): Update.
17076         * config/mips/mips.c (mips16_build_function_stub): Update.
17077         (mips16_build_call_stub): Update.
17078         (mips_function_rodata_section): Update.
17079         (mips_in_small_data_p): Update.
17080         * config/score/score.c (score_in_small_data_p): Update.
17081         * config/rx/rx.c (rx_in_small_data): Update.
17082         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
17083         (rs6000_xcoff_asm_named_section): Update.
17084         (rs6000_xcoff_unique_section): Update.
17085         * config/frv/frv.c (frv_string_begins_with): Update.
17086         (frv_in_small_data_p): Update.
17087         * config/v850/v850.c (v850_encode_data_area): Update.
17088         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
17089         (bfin_handle_l1_data_attribute): Update.
17090         (bfin_handle_l2_attribute): Update.
17091         * config/mep/mep.c (mep_unique_section): Update.
17092         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
17093         Update.
17094         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
17095         (h8300_handle_tiny_data_attribute): Update.
17096         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
17097         (m32r_in_small_data_p): Update.
17098         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
17099         * config/i386/i386.c (ix86_in_large_data_p): Update.
17100         * config/i386/winnt.c (i386_pe_unique_section): Update.
17101         * config/darwin.c (darwin_function_section): Update.
17102         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
17103         * tree-emutls.c (get_emutls_init_templ_addr): Update.
17104         (new_emutls_decl): Update.
17105         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
17106         input_varpool_node): Update.
17107         (ead_string_cst): Turn to ...
17108         (read_string): ... this one.
17109         * dwarf2out.c (secname_for_decl): Update.
17110         * asan.c (asan_protect_global): Update.
17111
17112 2014-06-11  DJ Delorie  <dj@redhat.com>
17113
17114         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
17115         cache lines.
17116         * config/rx/rx.c (rx_option_override): Likewise.
17117         (rx_align_for_label): Likewise.
17118
17119         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
17120
17121 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
17122
17123         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
17124         prototype.
17125
17126 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17127
17128         * common.md: New file.
17129         * doc/md.texi: Update description of generic, machine-independent
17130         constraints.
17131         * config/s390/constraints.md (e): Delete.
17132         * Makefile.in (md_file): Include common.md.
17133         * config/m32c/t-m32c (md_file): Likewise.
17134         * genpreds.c (general_mem): New array.
17135         (generic_constraint_letters): Remove constraints now defined by
17136         common.md.
17137         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
17138         Allow the first character to be '<' or '>' as well.
17139         * genoutput.c (general_mem): New array.
17140         (indep_constraints): Remove constraints now defined by common.md.
17141         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
17142         Remove special handling of 'm'.
17143         * ira-costs.c (record_reg_classes): Remove special handling of
17144         constraints now defined by common.md.
17145         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
17146         * ira-lives.c (single_reg_class): Likewise.
17147         (ira_implicitly_set_insn_hard_regs): Likewise.
17148         * lra-constraints.c (reg_class_from_constraints): Likewise.
17149         (process_alt_operands, process_address, curr_insn_transform): Likewise.
17150         * postreload.c (reload_cse_simplify_operands): Likewise.
17151         * reload.c (push_secondary_reload, scratch_reload_class)
17152         (find_reloads, alternative_allows_const_pool_ref): Likewise.
17153         * reload1.c (maybe_fix_stack_asms): Likewise.
17154         * targhooks.c (default_secondary_reload): Likewise.
17155         * stmt.c (parse_output_constraint): Likewise.
17156         * recog.c (preprocess_constraints): Likewise.
17157         (constrain_operands, peep2_find_free_register): Likewise.
17158         (asm_operand_ok): Likewise, but add a comment saying why 'o'
17159         must be handled specially.
17160
17161 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17162
17163         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
17164         * genpreds.c (have_const_dbl_constraints): Delete.
17165         (add_constraint): Don't set it.
17166         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
17167         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
17168         constraints using the lookup_constraint logic.
17169         * ira-lives.c (single_reg_class): Likewise.
17170         * ira.c (ira_setup_alts): Likewise.
17171         * lra-constraints.c (process_alt_operands): Likewise.
17172         * recog.c (asm_operand_ok, constrain_operands): Likewise.
17173         * reload.c (find_reloads): Likewise.
17174
17175 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17176
17177         * genpreds.c (const_int_start, const_int_end): New variables.
17178         (choose_enum_order): Output CONST_INT constraints before memory
17179         constraints.
17180         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
17181         Add CT_CONST_INT.
17182         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
17183         * ira.c (ira_setup_alts): Likewise.
17184         * lra-constraints.c (process_alt_operands): Likewise.
17185         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
17186         * reload.c (find_reloads): Likewise.
17187
17188 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17189
17190         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
17191         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
17192         * recog.c (preprocess_constraints): Update accordingly.
17193
17194 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17195
17196         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
17197         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
17198         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
17199         * genpreds.c (print_type_tree): New function.
17200         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
17201         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
17202         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
17203         Write out enum constraint_type and get_constraint_type.
17204         * lra-constraints.c (satisfies_memory_constraint_p): Take a
17205         constraint_num rather than a constraint string.
17206         (satisfies_address_constraint_p): Likewise.
17207         (reg_class_from_constraints): Avoid old constraint macros.
17208         (process_alt_operands, process_address_1): Likewise.
17209         (curr_insn_transform): Likewise.
17210         * ira-costs.c (record_reg_classes): Likewise.
17211         (record_operand_costs): Likewise.
17212         * ira-lives.c (single_reg_class): Likewise.
17213         (ira_implicitly_set_insn_hard_regs): Likewise.
17214         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
17215         * postreload.c (reload_cse_simplify_operands): Likewise.
17216         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
17217         (constrain_operands, peep2_find_free_register): Likewise.
17218         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
17219         (find_reloads, alternative_allows_const_pool_ref): Likewise.
17220         * reload1.c (maybe_fix_stack_asms): Likewise.
17221         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17222         * targhooks.c (default_secondary_reload): Likewise.
17223         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
17224         to EXTRA_CONSTRAINT_STR.
17225         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
17226
17227 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17228
17229         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
17230         (write_constraint_satisfied_p_array): ...this new function.
17231         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
17232         an array.
17233         (write_insn_preds_c): Update accordingly.
17234
17235 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17236
17237         * genpreds.c (write_lookup_constraint): Rename to...
17238         (write_lookup_constraint_1): ...this.
17239         (write_lookup_constraint_array): New function.
17240         (write_tm_preds_h): Define lookup_constraint as an inline function
17241         that uses write_lookup_constraint_array where possible.
17242         (write_insn_preds_c): Update for the changes above.
17243
17244 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17245
17246         * doc/md.texi (regclass_for_constraint): Rename to...
17247         (reg_class_for_constraint): ...this.
17248         * genpreds.c (num_constraints, enum_order, register_start)
17249         (register_end, satisfied_start, memory_start, memory_end)
17250         (address_start, address_end): New variables.
17251         (add_constraint): Count the number of constraints.
17252         (choose_enum_order): New function.
17253         (write_enum_constraint_num): Iterate over enum_order.
17254         (write_regclass_for_constraint): Rename to...
17255         (write_reg_class_for_constraint_1): ...this and update output
17256         accordingly.
17257         (write_constraint_satisfied_p): Rename to...
17258         (write_constraint_satisfied_p_1): ...this and update output
17259         accordingly.  Do nothing if all extra constraints are register
17260         constraints.
17261         (write_insn_extra_memory_constraint): Delete.
17262         (write_insn_extra_address_constraint): Delete.
17263         (write_range_function): New function.
17264         (write_tm_preds_h): Define constraint_satisfied_p and
17265         reg_class_for_constraint as inline functions that do a range check
17266         before calling the out-of-line function.  Use write_range_function
17267         to implement insn_extra_{register,memory,address}_constraint,
17268         the first of which is new.
17269         (write_insn_preds_c): Update after above changes to write_* functions.
17270         (main): Call choose_enum_order.
17271
17272 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17273
17274         PR tree-optimization/61306
17275         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
17276         expression instead of its size.
17277         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
17278         false to prevent optimization when the result is unpredictable due to
17279         arithmetic right shift of signed type with highest byte is set.
17280         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
17281         (init_symbolic_number): Likewise.
17282         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
17283         when the result is unpredictable due to sign extension.
17284
17285 2014-06-11  Terry Guo  <terry.guo@arm.com>
17286
17287         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
17288         (*thumb1_addsi3): Ditto.
17289         (*thumb_subdi3): Ditto.
17290         (thumb1_subsi3_insn): Ditto.
17291         (*thumb_mulsi3): Ditto.
17292         (*thumb_mulsi3_v6): Ditto.
17293         (*thumb1_andsi3_insn): Ditto.
17294         (thumb1_bicsi3): Ditto.
17295         (*thumb1_iorsi3_insn): Ditto.
17296         (*thumb1_xorsi3_insn): Ditto.
17297         (*thumb1_ashlsi3): Ditto.
17298         (*thumb1_ashrsi3): Ditto.
17299         (*thumb1_lshrsi3): Ditto.
17300         (*thumb1_rotrsi3): Ditto.
17301         (*thumb1_negdi2): Ditto.
17302         (*thumb1_negsi2): Ditto.
17303         (*thumb1_abssi2): Ditto.
17304         (*thumb1_neg_abssi2): Ditto.
17305         (*thumb1_one_cmplsi2): Ditto.
17306         (*thumb1_zero_extendhisi2): Ditto.
17307         (*thumb1_zero_extendqisi2): Ditto.
17308         (*thumb1_zero_extendqisi2_v6): Ditto.
17309         (thumb1_extendhisi2): Ditto.
17310         (thumb1_extendqisi2): Ditto.
17311         (*thumb1_movdi_insn): Ditto.
17312         (*thumb1_movsi_insn): Ditto.
17313         (*thumb1_movhi_insn): Ditto.
17314         (thumb_movhi_clobber): Ditto.
17315         (*thumb1_movqi_insn): Ditto.
17316         (*thumb1_movhf): Ditto.
17317         (*thumb1_movsf_insn): Ditto.
17318         (*thumb_movdf_insn): Ditto.
17319         (movmem12b): Ditto.
17320         (movmem8b): Ditto.
17321         (cbranchqi4): Ditto.
17322         (cbranchsi4_insn): Ditto.
17323         (cbranchsi4_scratch): Ditto.
17324         (*negated_cbranchsi4): Ditto.
17325         (*tbit_cbranch): Ditto.
17326         (*tlobits_cbranch): Ditto.
17327         (*tstsi3_cbranch): Ditto.
17328         (*cbranchne_decr1): Ditto.
17329         (*addsi3_cbranch): Ditto.
17330         (*addsi3_cbranch_scratch): Ditto.
17331         (*thumb_cmpdi_zero): Ditto.
17332         (cstoresi_eq0_thumb1): Ditto.
17333         (cstoresi_ne0_thumb1): Ditto.
17334         (*cstoresi_eq0_thumb1_insn): Ditto.
17335         (*cstoresi_ne0_thumb1_insn): Ditto.
17336         (cstoresi_nltu_thumb1): Ditto.
17337         (cstoresi_ltu_thumb1): Ditto.
17338         (thumb1_addsi3_addgeu): Ditto.
17339         (*thumb_jump): Ditto.
17340         (*call_reg_thumb1_v5): Ditto.
17341         (*call_reg_thumb1): Ditto.
17342         (*call_value_reg_thumb1_v5): Ditto.
17343         (*call_value_reg_thumb1): Ditto.
17344         (*call_insn): Ditto.
17345         (*call_value_insn): Ditto.
17346         (thumb1_casesi_internal_pic): Ditto.
17347         (thumb1_casesi_dispatch): Ditto.
17348         (*thumb1_indirect_jump): Ditto.
17349         (prologue_thumb1_interwork): Ditto.
17350         (*epilogue_insns): Ditto.
17351         (consttable_1): Ditto.
17352         (consttable_2): Ditto.
17353         (tablejump): Ditto.
17354         (*thumb1_tablejump): Ditto.
17355         (thumb_eh_return): Ditto.
17356         (define_peephole2): Two of them are thumb1 only and got moved into
17357         new file thumb1.md.
17358         (define_split): Six of them are thumb1 only and got moved into new
17359         file thumb1.md.
17360         * config/arm/thumb1.md: New file comprised of above thumb1 only
17361         patterns.
17362
17363 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17364
17365         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
17366         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
17367         dependencies.
17368         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
17369         (aarch64_crc_builtin_datum): New struct.
17370         (aarch64_crc_builtin_data): New.
17371         (aarch64_init_crc32_builtins): New function.
17372         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
17373         (aarch64_crc32_expand_builtin): New.
17374         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
17375         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17376         __ARM_FEATURE_CRC32 when appropriate.
17377         (TARGET_CRC32): Define.
17378         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
17379         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
17380         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
17381         (aarch64_<crc_variant>): New pattern.
17382         * config/aarch64/arm_acle.h: New file.
17383         * config/aarch64/iterators.md (CRC): New int iterator.
17384         (crc_variant, crc_mode): New int attributes.
17385         * doc/aarch64-acle-intrinsics.texi: New file.
17386         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
17387         Include aarch64-acle-intrinsics.texi.
17388
17389 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
17390
17391         * tree-vect-data-refs.c (vect_grouped_store_supported): New
17392         check for stores group of length 3.
17393         (vect_permute_store_chain): New permutations for stores group of
17394         length 3.
17395         * tree-vect-stmts.c (vect_model_store_cost): Change cost
17396         of vec_perm_shuffle for the new permutations.
17397
17398 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
17399
17400         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
17401         table rewriting temporarily on targets not supporting ONE_ONLY.
17402
17403 2014-06-11  Richard Biener  <rguenther@suse.de>
17404
17405         PR middle-end/61437
17406         Revert
17407         2014-06-04  Richard Biener  <rguenther@suse.de>
17408
17409         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17410         TREE_PUBLIC and DECL_EXTERNAL decls.
17411
17412 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
17413
17414         * varasm.c (set_implicit_section): New function.
17415         (resolve_unique_section): Use it to set implicit section
17416         for aliases, too.
17417         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
17418         (default_function_section): Likewise.
17419         (decl_binds_to_current_def_p): Constify argument.
17420         * varasm.h (decl_binds_to_current_def_p): Update prototype.
17421         * asan.c (asan_protect_global): Use
17422         symtab_get_node (decl)->implicit_section.
17423         * symtab.c (dump_symtab_base): Dump implicit sections.
17424         (verify_symtab_base): Verify sanity of sectoins and comdats.
17425         (symtab_resolve_alias): Alias share the section of its target.
17426         (set_section_1): New function.
17427         (symtab_node::set_section): Move here, recurse to aliases.
17428         (verify_symtab): Check for duplicated symtab lists.
17429         * tree-core.h (implicit_section_name_p): Remove.
17430         * tree-vect-data-refs.c: Include varasm.h.
17431         (vect_can_force_dr_alignment_p): Fix conditional on when
17432         decl bints to current definition; use
17433         symtab_get_node (decl)->implicit_section.
17434         * cgraph.c (cgraph_make_node_local_1): Fix section set.
17435         * cgraph.h (struct symtab_node): Add implicit_section.
17436         (set_section): Rename to ...
17437         (set_section_for_node): ... this one.
17438         (set_section): Declare.
17439         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
17440         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17441         input_overwrite_node, input_varpool_node): Stream implicit_section.
17442         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
17443         removal; it will fail in LTO.
17444
17445 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17446
17447         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
17448         Change second alternative type to f_mcr.
17449         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
17450         and 12th alternatives' types to f_mcr and f_mrc.
17451         (*movdi_aarch64): Same for 12th and 13th alternatives.
17452         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
17453         (aarch64_movtilow_tilow): Change type to fmov.
17454
17455 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
17456
17457         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
17458         (aarch64_save_or_restore_callee_save_registers): Fix layout.
17459
17460 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17461
17462         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
17463         New expander.
17464         (aarch64_sqrdmulh_lane<mode>): Likewise.
17465         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17466         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17467         (aarch64_sqdmulh_laneq<mode>): New expander.
17468         (aarch64_sqrdmulh_laneq<mode>): Likewise.
17469         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
17470         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
17471         (aarch64_sqdmulh_lane<mode>): New expander.
17472         (aarch64_sqrdmulh_lane<mode>): Likewise.
17473         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17474         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17475         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
17476         (aarch64_sqdmlal_laneq<mode>): Likewise.
17477         (aarch64_sqdmlsl_lane<mode>): Likewise.
17478         (aarch64_sqdmlsl_laneq<mode>): Likewise.
17479         (aarch64_sqdmlal2_lane<mode>): Likewise.
17480         (aarch64_sqdmlal2_laneq<mode>): Likewise.
17481         (aarch64_sqdmlsl2_lane<mode>): Likewise.
17482         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17483         (aarch64_sqdmull_lane<mode>): Likewise.
17484         (aarch64_sqdmull_laneq<mode>): Likewise.
17485         (aarch64_sqdmull2_lane<mode>): Likewise.
17486         (aarch64_sqdmull2_laneq<mode>): Likewise.
17487
17488 2014-06-10  Richard Biener  <rguenther@suse.de>
17489
17490         PR tree-optimization/61438
17491         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
17492         (eliminate_dom_walker::before_dom_children): Only try to inhibit
17493         insertion of IVs if running PRE.
17494         (eliminate): Adjust.
17495         (pass_pre::execute): Likewise.
17496         (pass_fre::execute): Likewise.
17497
17498 2014-06-10  Richard Biener  <rguenther@suse.de>
17499
17500         PR middle-end/61456
17501         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17502         Do not use the main variant for the type comparison.
17503         (ncr_compar): Likewise.
17504         (nonoverlapping_component_refs_p): Likewise.
17505
17506 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17507
17508         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
17509         REG_CFA_RESTORE mode.
17510
17511 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
17512
17513         * config/i386/i386.c (expand_vec_perm_pblendv): New.
17514         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
17515         expand_vec_perm_pblendv.
17516
17517 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17518
17519         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
17520         available.
17521         Simplify description of __crc32d and __crc32cd intrinsics.
17522         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
17523         availability.
17524
17525 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17526
17527         PR lto/61334
17528         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
17529         * config.in: Regenerate.
17530         * configure: Likewise.
17531
17532 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
17533
17534         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
17535         and public vars.
17536         (intersect_static_var_sets): Remove.
17537         (propagate): Do not prune local statics.
17538
17539 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
17540
17541         PR fortran/60928
17542         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
17543         Set lastprivate_firstprivate even if omp_private_outer_ref
17544         langhook returns true.
17545         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
17546         langhook, call unshare_expr on new_var and call
17547         build_outer_var_ref to get the last argument.
17548
17549 2014-06-10  Marek Polacek  <polacek@redhat.com>
17550
17551         PR c/60988
17552         * doc/extend.texi: Add cindex for transparent_union.
17553
17554 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17555
17556         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
17557         init_symbolic_number ().
17558
17559 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
17560
17561         PR middle-end/61141
17562         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
17563         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
17564         (verify_rtl_sharing): Likewise.
17565
17566 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
17567
17568         PR c++/54442
17569         * tree.c (build_qualified_type): Use a canonical type for
17570         TYPE_CANONICAL.
17571
17572 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17573
17574         * config/arm/arm-modes.def: Remove XFmode.
17575
17576 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
17577
17578         PR target/61062
17579         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
17580         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
17581         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
17582         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
17583         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
17584         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
17585         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
17586         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
17587         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
17588
17589 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
17590
17591         * tree-core.h (tree_decl_with_vis): Remove section_name.
17592
17593 2014-06-09  Kito Cheng  <kito@0xlab.org>
17594
17595         * ira.c (ira): Don't call init_caller_save if LRA enabled
17596         since LRA use its own infrastructure to handle that.
17597
17598 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17599
17600         * symtab.c (dump_symtab_base): Update dumping.
17601         (symtab_make_decl_local): Clear only DECL_COMDAT.
17602         * tree-vect-data-refs.c (Check that variable is static before
17603         tampering with sections.
17604         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
17605         (cgraph_create_virtual_clone): Likewise.
17606         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
17607         (decl_section_name, set_decl_section_name): New accessors.
17608         (find_decls_types_r): Do not walk section name
17609         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
17610         (decl_comdat_group, decl_comdat_group_id): Constify.
17611         (decl_section_name, set_decl_section_name): Update.
17612         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
17613         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
17614         (cgraph_make_node_local_1): Clear section and comdat group.
17615         * cgraph.h (set_comdat_group): Sanity check.
17616         (get_section, set_section): New.
17617         * ipa-comdats.c (ipa_comdats): Use get_section.
17618         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
17619         * lto-streamer-out.c: Do not follow section names.
17620         * c-family/c-common.c (handle_section_attribute): Update.
17621         * lto-cgraph.c (lto_output_node): Output section.
17622         (lto_output_varpool_node): Likewise.
17623         (read_comdat_group): Rename to ...
17624         (read_identifier): ... this one.
17625         (read_string_cst): New function.
17626         (input_node, input_varpool_node): Input section names.
17627         * tree-emutls.c (get_emutls_init_templ_addr): Update.
17628         (new_emutls_decl): Update.
17629         (secname_for_decl): Check section names only of static vars.
17630         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
17631         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
17632         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17633         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17634         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
17635         * config/mcore/mcore.c (mcore_unique_section): Likewise.
17636         * config/mips/mips.c (mips16_build_function_stub): Likewise.
17637         * config/v850/v850.c (v850_insert_attributes): Likewise.
17638         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
17639         Likewise.
17640         (h8300_handle_tiny_data_attribute): Likewise.
17641         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
17642         (bfin_handle_l2_attribute): Likewise.
17643
17644 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17645
17646         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
17647         remove static initializer.
17648
17649 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17650
17651         * varasm.c (use_blocks_for_decl_p): Check symbol table
17652         instead of alias attribute.
17653         (place_block_symbol): Recurse on aliases.
17654
17655 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17656
17657         * ipa-visibility.c: Include varasm.h
17658         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
17659
17660 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17661
17662         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
17663         outputting aliases.
17664
17665 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
17666
17667         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
17668         from test_insn into GGC space escape via SET_SRC.
17669
17670 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
17671
17672         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
17673         call statement, if any.
17674         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
17675         statements, if any.  Tidy up.
17676
17677 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17678
17679         PR target/61431
17680         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
17681         iterators, VSX_D that handles 64-bit types, and VSX_LE that
17682         handles swapping the two 64-bit double words on little endian
17683         systems.  Include V1TImode and optionally TImode in VSX_LE so that
17684         these types are properly swapped.  Change all of the insns and
17685         splits that do the 64-bit swaps to use VSX_LE.
17686         (vsx_le_perm_load_<mode>): Likewise.
17687         (vsx_le_perm_store_<mode>): Likewise.
17688         (splitters for little endian memory operations): Likewise.
17689         (vsx_xxpermdi2_le_<mode>): Likewise.
17690         (vsx_lxvd2x2_le_<mode>): Likewise.
17691         (vsx_stxvd2x2_le_<mode>): Likewise.
17692
17693 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
17694
17695         PR target/61423
17696         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
17697         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17698         and corresponding splitters.  Zero extend general register
17699         or memory input operand to XMM temporary.  Enable for
17700         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17701         (floatunssi<mode>2): Update expander predicate.
17702
17703 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
17704
17705         PR rtl-optimization/61325
17706         * lra-constraints.c (process_address_1): Check scale equal to one
17707         to prevent transformation: base + scale * index => base + new_reg.
17708
17709 2014-06-06  Richard Biener  <rguenther@suse.de>
17710
17711         PR tree-optimization/59299
17712         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17713         a def operand.
17714         (nearest_common_dominator_of_uses): Likewise.
17715         (statement_sink_location): Adjust.  Support sinking loads.
17716
17717 2014-06-06  Martin Jambor  <mjambor@suse.cz>
17718
17719         * ipa-prop.c (get_place_in_agg_contents_list): New function.
17720         (build_agg_jump_func_from_list): Likewise.
17721         (determine_known_aggregate_parts): Renamed to
17722         determine_locally_known_aggregate_parts.  Moved some functionality
17723         to the two functions above, removed bound checks.
17724
17725 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
17726
17727         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17728         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17729         (aarch64_progress_pointer): Likewise.
17730         (aarch64_copy_one_part_and_move_pointers): Likewise.
17731         (aarch64_expand_movmen): Likewise.
17732         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17733         * config/aarch64/aarch64.md (movmem<mode>): New.
17734
17735 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
17736
17737         * targhooks.c (default_add_stmt_cost): Call target specific
17738         hook instead of default one.
17739
17740 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17741
17742         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17743         endianness instead of host endianness.
17744         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17745         comments.
17746
17747 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17748
17749         PR debug/53927
17750         * function.c (instantiate_decls): Process the saved static chain.
17751         (expand_function_start): If not optimizing, save the static chain
17752         onto the stack.
17753         * tree-nested.c (convert_all_function_calls): Always create the static
17754         chain for nested functions if not optimizing.
17755
17756 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17757
17758         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17759
17760 2014-06-06  Richard Biener  <rguenther@suse.de>
17761
17762         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17763         (construct_init_block): Likewise.
17764         (construct_exit_block): Likewise.
17765         (pass_expand::execute): Likewise.
17766         * graphite.c (graphite_transforms): Replace check for current_loops
17767         with a check for > 1 loops.
17768         (pass_graphite_transforms::execute): Adjust.
17769         * ipa-split.c (split_function): Remove check for current_loops.
17770         * omp-low.c (expand_parallel_call): Likewise.
17771         (expand_omp_for_init_counts): Likewise.
17772         (extract_omp_for_update_vars): Likewise.
17773         (expand_omp_for_generic): Likewise.
17774         (expand_omp_sections): Likewise.
17775         (expand_omp_target): Likewise.
17776         * tracer.c (tail_duplicate): Likewise.
17777         (pass_tracer::execute): Likewise.
17778         * trans-mem.c (expand_transaction): Likewise.
17779         * tree-complex.c (expand_complex_div_wide): Likewise.
17780         * tree-eh.c (lower_resx): Likewise.
17781         (cleanup_empty_eh_merge_phis): Likewise.
17782         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17783         current_loops with a check for > 1 loops.
17784         (pass_predcom::execute): Adjust.
17785         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17786         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17787         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17788         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17789         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17790         * tree-switch-conversion.c (process_switch): Likewise.
17791         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17792         * tree-vrp.c (vrp_visit_phi_node): Likewise.
17793         (execute_vrp): Likewise.
17794         * ubsan.c (ubsan_expand_null_ifn): Likewise.
17795
17796 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17797
17798         * rtl.h (insn_location): Declare.
17799         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17800         with UNKNOWN_LOCATION.
17801         * emit-rtl.c (insn_location): New function.
17802         * final.c (notice_source_line): Check that the instruction has a
17803         location before retrieving it and use insn_location.
17804         * modulo-sched.c (loop_single_full_bb_p): Likewise.
17805         * print-rtl.c (print_rtx): Likewise.
17806
17807 2014-06-06  Richard Biener  <rguenther@suse.de>
17808
17809         * passes.def: Move 2nd VRP pass before phi-only-cprop.
17810
17811 2014-06-06  Christian Bruel  <christian.bruel@st.com>
17812
17813         PR tree-optimization/43934
17814         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17815         cost.
17816
17817 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
17818
17819         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
17820         return NO_REGS for extra address and memory constraints.  Handle
17821         operands that match (or are equivalent to something that matches)
17822         extra constant constraints.  Ignore other non-register operands.
17823
17824 2014-06-06  Alan Modra  <amodra@gmail.com>
17825
17826         PR target/61300
17827         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17828         * doc/tm.texi: Regenerate.
17829         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17830         Use throughout in place of REG_PARM_STACK_SPACE.
17831         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17832         "incoming" param.  Pass to rs6000_function_parms_need_stack.
17833         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17834         prototype_p when incoming.  Use function decl when incoming
17835         to handle K&R style functions.
17836         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17837         (INCOMING_REG_PARM_STACK_SPACE): Define.
17838
17839 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17840
17841         PR target/52472
17842         * cfgexpand.c (expand_debug_expr): Use address space of nested
17843         TREE_TYPE for ADDR_EXPR and MEM_REF.
17844
17845 2014-06-05  Jeff Law  <law@redhat.com>
17846
17847         PR tree-optimization/61289
17848         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17849         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
17850         looking for those which match LHS.  All callers changed.
17851         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17852         parameters and code which manipulated them.  All callers changed.
17853         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17854         and DST_MAP parameters.  Simplify invalidation code by just calling
17855         invalidate_equivalences.  All callers changed.
17856         (thread_across_edge): Simplify now that we don't need to maintain
17857         the map of equivalences to invalidate.
17858
17859 2014-06-05  Kai Tietz  <ktietz@redhat.com>
17860             Richard Henderson  <rth@redhat.com>
17861
17862         PR target/46219
17863         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17864         checking for !TARGET_X32.
17865         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17866         (sibcall_intern): New define_insn, plus required peepholes.
17867         (sibcall_pop_intern): Likewise.
17868         (sibcall_value_intern): Likewise.
17869         (sibcall_value_pop_intern): Likewise.
17870
17871 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
17872
17873         * tree-inline.c (tree_function_versioning): Check DF info existence
17874         before accessing it.
17875
17876 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17877
17878         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17879         frame_size.
17880         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17881         aarch64_frame hard_fp_offset and frame_size.
17882         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17883         frame_size; remove original_frame_size.
17884         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17885         (aarch64_initial_elimination_offset): Remove frame_size and
17886         offset.  Use aarch64_frame frame_size.
17887
17888 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17889             Jiong Wang  <jiong.wang@arm.com>
17890             Renlin  <renlin.li@arm.com>
17891
17892         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17893         initialization of R30 offset.  Update offset.  Iterate core
17894         regisers upto X30.  Remove X29, X30 specific code.
17895
17896 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17897             Jiong Wang  <jiong.wang@arm.com>
17898
17899         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17900         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17901         (aarch64_register_saved_on_entry): Adjust test.
17902
17903 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17904
17905         * config/aarch64/aarch64.h (machine_function): Move
17906         saved_varargs_size from here...
17907         (aarch64_frame): ... to here.
17908
17909         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17910         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17911         (aarch64_initial_elimination_offset)
17912         (aarch64_setup_incoming_varargs): Adjust location of
17913         saved_varargs_size.
17914
17915 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17916
17917         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17918         layout comment.
17919
17920 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
17921             Prachi Godbole  <Prachi.Godbole@imgtec.com>
17922
17923         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
17924         mips32r5 entry to use PROCESSOR_P5600.
17925         * config/mips/mips-tables.opt: Regenerate.
17926         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17927         * config/mips/mips.c (mips_fmadd_bypass): New function.
17928         (mips_rtx_cost_data): Add costs for p5600.
17929         (mips_issue_rate): Add support for p5600.
17930         (mips_multipass_dfa_lookahead): Likewise.
17931         * config/mips/mips.h (TUNE_P5600): New define.
17932         (TUNE_MACC_CHAINS): Add TUNE_P5600.
17933         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17934         * config/mips/mips.md: Include p5600.md.
17935         (processor): Add p5600.
17936         * config/mips/p5600.md: New file.
17937
17938 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
17939
17940         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17941         * config/i386/predicates.md (palignr_operand): New.
17942         Indicates if permutation is suitable for palignr instruction.
17943
17944 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
17945
17946         PR tree-optimization/61319
17947         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17948         stmt belongs to loop.
17949
17950 2014-06-05  Richard Biener  <rguenther@suse.de>
17951
17952         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17953         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17954         (lookup_tmp_var): Adjust.
17955         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17956
17957 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17958
17959         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17960
17961 2014-06-05  Marek Polacek  <polacek@redhat.com>
17962
17963         PR c/49706
17964         * doc/invoke.texi: Document -Wlogical-not-parentheses.
17965
17966 2014-06-04  Tom de Vries  <tom@codesourcery.com>
17967
17968         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17969         CONST_INT.
17970
17971 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
17972
17973         PR tree-optimization/61385
17974         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17975
17976 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
17977
17978         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
17979         changed to use fatal_error.
17980         (main): Ensure lto_wrapper_cleanup is run atexit.
17981
17982 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17983
17984         * lra-constraints.c (valid_address_p): Move earlier in file.
17985         (address_eliminator): New structure.
17986         (satisfies_memory_constraint_p): New function.
17987         (satisfies_address_constraint_p): Likewise.
17988         (process_alt_operands, process_address, curr_insn_transform): Use them.
17989
17990 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17991
17992         * lra-int.h (lra_static_insn_data): Make operand_alternative a
17993         const pointer.
17994         (target_lra_int, default_target_lra_int, this_target_lra_int)
17995         (op_alt_data): Delete.
17996         * lra.h (lra_init): Delete.
17997         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17998         (init_insn_code_data_once): Remove op_alt_data handling.
17999         (finish_insn_code_data_once): Likewise.
18000         (init_op_alt_data): Delete.
18001         (get_static_insn_data): Initialize operand_alternative to null.
18002         (free_insn_recog_data): Cast operand_alternative before freeing it.
18003         (setup_operand_alternative): Take the operand_alternative as
18004         parameter and assume it isn't already cached in the static
18005         insn data.
18006         (lra_set_insn_recog_data): Update accordingly.
18007         (lra_init): Delete.
18008         * ira.c (ira_init): Don't call lra_init.
18009         * target-globals.h (this_target_lra_int): Declare.
18010         (target_globals): Remove lra_int.
18011         (restore_target_globals): Update accordingly.
18012         * target-globals.c: Don't include lra-int.h.
18013         (default_target_globals, save_target_globals): Remove lra_int.
18014
18015 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18016
18017         * recog.h (operand_alternative): Convert reg_class, reject,
18018         matched and matches into bitfields.
18019         (preprocess_constraints): New overload.
18020         (preprocess_insn_constraints): New function.
18021         (preprocess_constraints): Take the insn as parameter.
18022         (recog_op_alt): Change into a pointer.
18023         (target_recog): Add x_op_alt.
18024         * recog.c (asm_op_alt): New variable.
18025         (recog_op_alt): Change into a pointer.
18026         (preprocess_constraints): New overload, replacing the old function
18027         definition with one that doesn't use global state.
18028         (preprocess_insn_constraints): New function.
18029         (preprocess_constraints): Use them.  Take the insn as parameter.
18030         Use asm_op_alt for asms.
18031         (recog_init): Free existing x_op_alt entries.
18032         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
18033         pointer const.
18034         (make_early_clobber_and_input_conflicts): Likewise.
18035         (process_bb_node_lives): Pass the insn to process_constraints.
18036         * reg-stack.c (check_asm_stack_operands): Likewise.
18037         (subst_asm_stack_regs): Likewise.
18038         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
18039         * regrename.c (build_def_use): Likewise.
18040         * sched-deps.c (sched_analyze_insn): Likewise.
18041         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
18042         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
18043         (note_invalid_constants): Likewise.
18044         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
18045         (ix86_legitimate_combined_insn): Make operand_alternative pointer
18046         const.
18047
18048 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18049
18050         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
18051         * ira-lives.c (check_and_make_def_conflict): Check for disabled
18052         alternatives.
18053         (make_early_clobber_and_input_conflicts): Likewise.
18054         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
18055
18056 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18057
18058         * recog.h (alternative_class): New function.
18059         (which_op_alt): Return a const recog_op_alt.
18060         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
18061         (subst_asm_stack_regs): Likewise.
18062         * config/arm/arm.c (note_invalid_constants): Likewise.
18063         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
18064         the operand_alternative; use alternative class instead.
18065         * sel-sched.c (get_reg_class): Likewise.
18066         * regrename.c (build_def_use): Likewise.
18067         (hide_operands, restore_operands, record_out_operands): Update type
18068         accordingly.
18069
18070 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18071
18072         * recog.h (recog_op_alt): Convert to a flat array.
18073         (which_op_alt): New function.
18074         * recog.c (recog_op_alt): Convert to a flat array.
18075         (preprocess_constraints): Update accordingly, grouping all
18076         operands of the same alternative together, rather than the
18077         other way around.
18078         * ira-lives.c (check_and_make_def_conflict): Likewise.
18079         (make_early_clobber_and_input_conflicts): Likewise.
18080         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
18081         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
18082         (subst_asm_stack_regs): Likewise.
18083         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
18084         * regrename.c (hide_operands, record_out_operands): Likewise.
18085         (build_def_use): Likewise.
18086         * sel-sched.c (get_reg_class): Likewise.
18087         * config/arm/arm.c (note_invalid_constants): Likewise.
18088
18089 2014-06-04  Jason Merrill  <jason@redhat.com>
18090
18091         PR c++/51253
18092         PR c++/61382
18093         * gimplify.c (gimplify_arg): Non-static.
18094         * gimplify.h: Declare it.
18095
18096 2014-06-04  Richard Biener  <rguenther@suse.de>
18097
18098         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18099         TREE_PUBLIC and DECL_EXTERNAL decls.
18100
18101 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
18102
18103         * regcprop.c (copyprop_hardreg_forward_1): Account for
18104         HARD_REGNO_CALL_PART_CLOBBERED.
18105
18106 2014-06-04  Richard Biener  <rguenther@suse.de>
18107
18108         * configure.ac: Check whether the underlying type of int64_t
18109         is long or long long.
18110         * configure: Regenerate.
18111         * config.in: Likewise.
18112         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
18113         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18114
18115 2014-06-04  Richard Biener  <rguenther@suse.de>
18116
18117         PR tree-optimization/60098
18118         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
18119         we hit a kill.
18120         (dse_optimize_stmt): Simplify, now that we found a kill
18121         earlier.
18122
18123 2014-06-04  Richard Biener  <rguenther@suse.de>
18124
18125         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
18126         of accesses with non-invariant address.
18127
18128 2014-06-04  Martin Liska  <mliska@suse.cz>
18129
18130         * cgraph.h (cgraph_make_wrapper): New function introduced.
18131         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
18132         * ipa-inline.h (inline_analyze_function): The function is global.
18133         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
18134
18135 2014-06-04  Martin Liska  <mliska@suse.cz>
18136
18137         * tree.h (private_lookup_attribute_starting): New function.
18138         (lookup_attribute_starting): Likewise.
18139         * tree.c (private_lookup_attribute_starting): Likewise.
18140
18141 2014-06-04  Martin Liska  <mliska@suse.cz>
18142
18143         * cgraph.h (expand_thunk): New argument added.
18144         (address_taken_from_non_vtable_p): New global function.
18145         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
18146         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
18147         * cgraphunit.c (analyze_function): Likewise.
18148         (assemble_thunks_and_aliases): Argument added to call.
18149         (expand_thunk): New argument forces to produce GIMPLE thunk.
18150
18151 2014-06-04  Martin Liska  <mliska@suse.cz>
18152
18153         * coverage.h (coverage_compute_cfg_checksum): Argument added.
18154         * coverage.c (coverage_compute_cfg_checksum): Likewise.
18155         * profile.c (branch_prob): Likewise.
18156
18157 2014-06-04  Martin Jambor  <mjambor@suse.cz>
18158
18159         PR ipa/61340
18160         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
18161         handler for switch on an ipa_ref_use enum.
18162         * ipa-reference.c (analyze_function): Likewise.
18163
18164 2014-06-04  Kai Tietz  <ktietz@redhat.com>
18165
18166         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
18167         from old call-instruction.
18168
18169 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
18170
18171         * config/aarch64/aarch64.c (aarch64_classify_address)
18172         (aarch64_legitimize_reload_address): Support full addressing modes
18173         for vector modes.
18174         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
18175         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
18176
18177 2014-06-03  Andrew Pinski  <apinski@cavium.com>
18178
18179         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
18180         for OP0.
18181
18182 2014-06-03  Andrew Pinski  <apinski@cavium.com>
18183
18184         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
18185         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
18186
18187 2014-06-03  Kai Tietz  <ktietz@redhat.com>
18188
18189         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
18190         for 64-bit ms-abi.
18191
18192 2014-06-03  Dehao Chen  <dehao@google.com>
18193
18194         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
18195         the same loop.
18196
18197 2014-06-03  Marek Polacek  <polacek@redhat.com>
18198
18199         PR c/60439
18200         * doc/invoke.texi: Document -Wswitch-bool.
18201         * function.c (stack_protect_epilogue): Cast controlling expression of
18202         the switch to int.
18203         * gengtype.c (walk_type): Generate switch expression with its
18204         controlling expression cast to int.
18205
18206 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
18207
18208         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
18209         and attiny841.
18210         * config/avr/avr-tables.opt: Regenerate.
18211         * config/avr/t-multilib: Regenerate.
18212         * doc/avr-mmcu.texi: Regenerate.
18213
18214 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
18215             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18216
18217         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
18218         (ata6617c, ata664251): Add new avr35 devices.
18219         (ata6612c): Add new avr4 device.
18220         (ata6613c, ata6614q): Add new avr5 devices.
18221         * config/avr/avr-tables.opt: Regenerate.
18222         * config/avr/t-multilib: Regenerate.
18223         * doc/avr-mmcu.texi: Regenerate.
18224
18225 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18226
18227         * gcc/config/aarch64/aarch64-builtins.c
18228         (aarch64_types_binop_ssu_qualifiers): New static data.
18229         (TYPES_BINOP_SSU): Define.
18230         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
18231         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
18232         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
18233         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
18234         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
18235         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
18236         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
18237         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
18238         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
18239         suffix to builtin function name, remove cast.
18240         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
18241         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
18242         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
18243
18244 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18245
18246         * gcc/config/aarch64/aarch64-builtins.c
18247         (aarch64_types_binop_uus_qualifiers,
18248         aarch64_types_shift_to_unsigned_qualifiers,
18249         aarch64_types_unsigned_shiftacc_qualifiers): Define.
18250         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
18251         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
18252         sqshlu_n, uqshl_n): Update qualifiers.
18253         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
18254         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
18255         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
18256         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
18257         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
18258         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
18259         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
18260         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
18261         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
18262         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
18263         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
18264         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
18265         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
18266         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
18267         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
18268         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
18269         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
18270         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
18271         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
18272         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
18273         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
18274         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
18275         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
18276         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
18277         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
18278         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
18279         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
18280
18281 2014-06-03  Teresa Johnson  <tejohnson@google.com>
18282
18283         * tree-sra.c (modify_function): Record caller nodes after rebuild.
18284
18285 2014-06-02  Jason Merrill  <jason@redhat.com>
18286
18287         PR c++/61020
18288         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
18289
18290 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18291
18292         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
18293         location == 0.
18294
18295 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18296
18297         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
18298         New pattern.
18299         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
18300         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
18301         * config/aarch64/iterators.md (REVERSE): New iterator.
18302         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
18303         (rev_op): New int_attribute.
18304         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
18305         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
18306         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
18307         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
18308         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
18309         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
18310         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
18311         Replace temporary __asm__ with __builtin_shuffle.
18312
18313 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18314
18315         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
18316         mips64r5.
18317         * config/mips/mips-tables.opt: Regenerate.
18318         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
18319         to use mips_isa_rev rather than ISA_MIPS32R2.
18320         * config/mips/mips.h (ISA_MIPS32R3): New define.
18321         (ISA_MIPS32R5): New define.
18322         (ISA_MIPS64R3): New define.
18323         (ISA_MIPS64R5): New define.
18324         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
18325         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
18326         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
18327         and mips64r5.
18328         (MIPS_ISA_SYNCI_SPEC): Likewise.
18329         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
18330         (LINK_SPEC): Added mips32r3 and mips32r5.
18331         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
18332         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
18333         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
18334         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
18335         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
18336         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
18337         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
18338
18339 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18340
18341         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
18342         options.
18343         * config/mips/mips.opt (mxpa): New option.
18344         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
18345         assembler.
18346
18347 2014-06-03  Martin Jambor  <mjambor@suse.cz>
18348
18349         PR ipa/61160
18350         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
18351         thunks.
18352
18353 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18354
18355         PR tree-optimization/61328
18356         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
18357         initialization from find_bswap_or_nop_1.
18358         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
18359         in source_expr2 before using the size value the function sets. Also
18360         make use of init_symbolic_number () in both the old place and
18361         find_bswap_or_nop_load () to avoid reading uninitialized memory when
18362         doing recursion in the GIMPLE_BINARY_RHS case.
18363
18364 2014-06-03  Richard Biener  <rguenther@suse.de>
18365
18366         PR tree-optimization/61383
18367         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
18368         stmts can't trap.
18369
18370 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
18371
18372         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
18373         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
18374         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
18375         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
18376         in this file.
18377         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
18378         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
18379         * system.h: ...here and make it unconditional.
18380         * target.def (conditional_register_usage): Mention
18381         define_register_constraint instead of old-style constraint macros.
18382         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
18383         * doc/tm.texi: Regenerate.
18384         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
18385         protected by !USE_MD_CONSTRAINTS.
18386         * config/frv/frv.md: Remove quote from old version of documentation.
18387         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
18388         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
18389         CONST_DOUBLE_OK_FOR_LETTER.
18390         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
18391
18392 2014-06-02  Andrew Pinski  <apinski@cavium.com>
18393
18394         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
18395         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
18396         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
18397         file whose name depends on -mabi= and -mbig-endian.
18398         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
18399         Handle LP64 better and handle ilp32 too.
18400         (MULTILIB_OPTIONS): Delete.
18401         (MULTILIB_DIRNAMES): Delete.
18402
18403 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
18404
18405         * expr.h: Remove prototypes of functions defined in builtins.c.
18406         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
18407         Remove prototypes of functions defined in builtins.c.
18408         * builtins.h: Update prototype list to include all exported functions.
18409         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
18410         no_c99_libc_has_function): Move to targhooks.c
18411         (build_string_literal, build_call_expr_loc_array,
18412         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
18413         to tree.c.
18414         (expand_builtin_object_size, fold_builtin_object_size): Make static.
18415         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
18416         no_c99_libc_has_function): Relocate from builtins.c.
18417         * tree.c: Include builtins.h.
18418         (build_call_expr_loc_array, build_call_expr_loc_vec,
18419         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
18420         from builtins.c.
18421         * fold-const.h (fold_fma): Move prototype to builtins.h.
18422         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
18423         * asan.c: Include builtins.h.
18424         * cfgexpand.c: Likewise.
18425         * convert.c: Likewise.
18426         * emit-rtl.c: Likewise.
18427         * except.c: Likewise.
18428         * expr.c: Likewise.
18429         * fold-const.c: Likewise.
18430         * gimple-fold.c: Likewise.
18431         * gimple-ssa-strength-reduction.c: Likewise.
18432         * gimplify.c: Likewise.
18433         * ipa-inline.c: Likewise.
18434         * ipa-prop.c: Likewise.
18435         * lto-streamer-out.c: Likewise.
18436         * stmt.c: Likewise.
18437         * tree-inline.c: Likewise.
18438         * tree-object-size.c: Likewise.
18439         * tree-sra.c: Likewise.
18440         * tree-ssa-ccp.c: Likewise.
18441         * tree-ssa-forwprop.c: Likewise.
18442         * tree-ssa-loop-ivcanon.c: Likewise.
18443         * tree-ssa-loop-ivopts.c: Likewise.
18444         * tree-ssa-math-opts.c: Likewise.
18445         * tree-ssa-reassoc.c: Likewise.
18446         * tree-ssa-threadedge.c: Likewise.
18447         * tree-streamer-in.c: Likewise.
18448         * tree-vect-data-refs.c: Likewise.
18449         * tree-vect-patterns.c: Likewise.
18450         * tree-vect-stmts.c: Likewise.
18451         * config/aarch64/aarch64.c: Likewise.
18452         * config/alpha/alpha.c: Likewise.
18453         * config/arc/arc.c: Likewise.
18454         * config/arm/arm.c: Likewise.
18455         * config/avr/avr.c: Likewise.
18456         * config/bfin/bfin.c: Likewise.
18457         * config/c6x/c6x.c: Likewise.
18458         * config/cr16/cr16.c: Likewise.
18459         * config/cris/cris.c: Likewise.
18460         * config/epiphany/epiphany.c: Likewise.
18461         * config/fr30/fr30.c: Likewise.
18462         * config/frv/frv.c: Likewise.
18463         * config/h8300/h8300.c: Likewise.
18464         * config/i386/i386.c: Likewise.
18465         * config/i386/winnt.c: Likewise.
18466         * config/ia64/ia64.c: Likewise.
18467         * config/iq2000/iq2000.c: Likewise.
18468         * config/lm32/lm32.c: Likewise.
18469         * config/m32c/m32c.c: Likewise.
18470         * config/m32r/m32r.c: Likewise.
18471         * config/m68k/m68k.c: Likewise.
18472         * config/mcore/mcore.c: Likewise.
18473         * config/mep/mep.c: Likewise.
18474         * config/microblaze/microblaze.c: Likewise.
18475         * config/mips/mips.c: Likewise.
18476         * config/mmix/mmix.c: Likewise.
18477         * config/mn10300/mn10300.c: Likewise.
18478         * config/moxie/moxie.c: Likewise.
18479         * config/msp430/msp430.c: Likewise.
18480         * config/nds32/nds32.c: Likewise.
18481         * config/pa/pa.c: Likewise.
18482         * config/pdp11/pdp11.c: Likewise.
18483         * config/picochip/picochip.c: Likewise.
18484         * config/rl78/rl78.c: Likewise.
18485         * config/rs6000/rs6000.c: Likewise.
18486         * config/rx/rx.c: Likewise.
18487         * config/s390/s390.c: Likewise.
18488         * config/score/score.c: Likewise.
18489         * config/sh/sh.c: Likewise.
18490         * config/sparc/sparc.c: Likewise.
18491         * config/spu/spu.c: Likewise.
18492         * config/stormy16/stormy16.c: Likewise.
18493         * config/tilegx/tilegx.c: Likewise.
18494         * config/tilepro/tilepro.c: Likewise.
18495         * config/v850/v850.c: Likewise.
18496         * config/vax/vax.c: Likewise.
18497         * config/xtensa/xtensa.c: Likewise.
18498
18499 2014-06-02  Jeff Law  <law@redhat.com>
18500
18501         PR rtl-optimization/61094
18502         * ree.c (combine_reaching_defs): Do not reextend an insn if it
18503         was marked as do_no_reextend.  If a copy is needed to eliminate
18504         an extension, then mark it as do_not_reextend.
18505
18506 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18507
18508         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
18509
18510 2014-06-02  Richard Henderson  <rth@redhat.com>
18511
18512         PR target/61336
18513         * config/alpha/alpha.c (print_operand_address): Allow symbolic
18514         addresses inside asms.  Use output_operand_lossage instead of
18515         gcc_unreachable.
18516
18517 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
18518
18519         PR target/61239
18520         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
18521         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
18522
18523 2014-06-02  Tom de Vries  <tom@codesourcery.com>
18524
18525         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
18526         case that x has VOIDmode.
18527
18528 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
18529
18530         * varasm.c (copy_constant): Delete function.
18531         (build_constant_desc): Don't call it.
18532
18533 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18534
18535         PR target/61154
18536         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
18537         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
18538         with immediate_operand.
18539
18540 2014-06-02  Andreas Schwab  <schwab@suse.de>
18541
18542         * config/ia64/ia64.c
18543         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
18544         pending_data_specs first.
18545
18546 2014-06-02  Richard Biener  <rguenther@suse.de>
18547
18548         PR tree-optimization/61378
18549         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
18550         valueized_anything.
18551
18552 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
18553
18554         * config/i386/constraints.md (Bw): Rename from 'w'.
18555         (Bz): Rename from 'z'.
18556         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
18557
18558 2014-06-01  Kai Tietz  <ktietz@redhat.com>
18559
18560         PR target/61377
18561         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
18562         * config/i386/i386.md (sibcall_insn_operand): Use Bs
18563         instead of m constraint.
18564
18565 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
18566
18567         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
18568         a separate alternative where the scratch operand 2 is marked as
18569         early clobber.
18570
18571 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
18572
18573         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18574         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
18575         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
18576         and __builtins_arm_get_fpscr.
18577         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18578         __builtins_arm_get_fpscr.
18579         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
18580         __builtins_arm_ldfpscr.
18581         (arm_atomic_assign_expand_fenv): New function.
18582         * config/arm/vfp.md (set_fpscr): New pattern.
18583         (get_fpscr) : Likewise.
18584         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
18585         VUNSPEC_SET_FPSCR.
18586         * doc/extend.texi (AARCH64 Built-in Functions) : Document
18587         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
18588
18589 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
18590
18591         * asan.c (report_error_func): Add SLOW_P argument, use
18592         BUILT_IN_ASAN_*_N if set.
18593         (build_check_stmt): Likewise.
18594         (instrument_derefs): If T has insufficient alignment,
18595         force same handling as for odd sizes.
18596
18597         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
18598         BUILT_IN_ASAN_REPORT_STORE_N): New.
18599         * asan.c (struct asan_mem_ref): Change access_size type to
18600         HOST_WIDE_INT.
18601         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
18602         update_mem_ref_hash_table): Likewise.
18603         (asan_mem_ref_hasher::hash): Hash in a HWI.
18604         (report_error_func): Change size_in_bytes argument to HWI.
18605         Use *_N builtins if size_in_bytes is larger than 16 or not power of
18606         two.
18607         (build_shadow_mem_access): New function.
18608         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
18609         Handle size_in_bytes not power of two or larger than 16.
18610         (instrument_derefs): Don't give up if size_in_bytes is not
18611         power of two or is larger than 16.
18612
18613 2014-05-30  Kai Tietz  <ktietz@redhat.com>
18614
18615         PR target/60104
18616         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
18617         for sibling-tail-calls.
18618         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
18619         to its use.
18620         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
18621         (sibcall_insn_operand): Add check for sibcall_memory_operand.
18622
18623 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18624
18625         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
18626         * config/avr/avr-tables.opt: Regenerate.
18627         * config/avr/t-multilib: Regenerate.
18628         * doc/avr-mmcu.texi: Regenerate.
18629
18630 2014-05-30  Ian Lance Taylor  <iant@google.com>
18631
18632         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
18633         target("sse").
18634
18635 2014-05-30  Tom de Vries  <tom@codesourcery.com>
18636
18637         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18638         Redefine as true.
18639
18640 2014-05-30  Tom de Vries  <tom@codesourcery.com>
18641
18642         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18643         * lra.c (initialize_lra_reg_info_element): Add init of
18644         actual_call_used_reg_set field.
18645         (lra): Call lra_create_live_ranges before lra_inheritance for
18646         -fuse-caller-save.
18647         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18648         -fuse-caller-save.
18649         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
18650         instead of call_used_reg_set for -fuse-caller-save.
18651         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18652
18653 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18654
18655         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
18656         to mov_imm.
18657         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
18658
18659 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
18660
18661         * ira.c (ira_get_dup_out_num): Check for output operands at
18662         the start of the loop.  Handle cases where an included alternative
18663         follows an excluded one.
18664
18665 2014-05-29  Mike Stump  <mikestump@comcast.net>
18666
18667         PR debug/61352
18668         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
18669         post ld passes when lto is used.
18670
18671 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
18672
18673         PR rtl-optimization/61325
18674         * lra-constraints.c (process_address): Rename to process_address_1.
18675         (process_address): New function.
18676
18677 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
18678
18679         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
18680         TYPES_BINOPV): New static data.
18681         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
18682         New builtin.
18683         * config/aarch64/aarch64-simd.md (aarch64_ext,
18684         aarch64_im_lane_boundsi): New patterns.
18685         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
18686         patterns for EXT.
18687         (aarch64_evpc_ext): New function.
18688
18689         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
18690
18691         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
18692         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
18693         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
18694         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
18695         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
18696
18697 2014-05-29  Tom de Vries  <tom@codesourcery.com>
18698
18699         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18700
18701 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
18702             Richard Sandiford  <rdsandiford@googlemail.com>
18703
18704         * arm/iterators.md (shiftable_ops): New code iterator.
18705         (t2_binop0, arith_shift_insn): New code attributes.
18706         * arm/predicates.md (shift_nomul_operator): New predicate.
18707         * arm/arm.md (insn_enabled): Delete.
18708         (enabled): Remove insn_enabled test.
18709         (*arith_shiftsi): Delete.  Replace with ...
18710         (*<arith_shift_insn>_multsi): ... new pattern.
18711         (*<arith_shift_insn>_shiftsi): ... new pattern.
18712         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18713
18714 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
18715             Tom de Vries  <tom@codesourcery.com>
18716
18717         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18718         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18719         clobber.
18720         (mips_split_call): Use POST_CALL_TMP_REG.
18721         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18722
18723 2014-05-29  Tom de Vries  <tom@codesourcery.com>
18724
18725         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18726         with #ifdef STACK_REGS.
18727
18728 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
18729
18730         * varasm.c (get_variable_section): Walk aliases.
18731         (place_block_symbol): Walk aliases.
18732
18733 2014-05-28  Tom de Vries  <tom@codesourcery.com>
18734
18735         Revert:
18736         2014-05-28  Tom de Vries  <tom@codesourcery.com>
18737
18738         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18739         * lra.c (initialize_lra_reg_info_element): Add init of
18740         actual_call_used_reg_set field.
18741         (lra): Call lra_create_live_ranges before lra_inheritance for
18742         -fuse-caller-save.
18743         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18744         -fuse-caller-save.
18745         * lra-constraints.c (need_for_call_save_p): Use
18746         actual_call_used_reg_set instead of call_used_reg_set for
18747         -fuse-caller-save.
18748         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18749
18750 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18751
18752         * doc/md.texi: Document that the % constraint character must
18753         be at the beginning of the string.
18754         * genoutput.c (validate_insn_alternatives): Check that '=',
18755         '+' and '%' only appear at the beginning of a constraint.
18756         * ira.c (commutative_constraint_p): Delete.
18757         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18758         at the start of the string.
18759         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18760         duplicate '='s.
18761         * config/arm/neon.md (bicdi3_neon): Likewise.
18762         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18763         (slt_si, sltu_si): Likewise.
18764         * config/vax/vax.md (sbcdi3): Likewise.
18765         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18766         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18767         (mul64): Move '%' to beginning of constraint.
18768         * config/arm/arm.md (*xordi3_insn): Likewise.
18769         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18770         (xorsi3): Likewise.
18771
18772 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18773
18774         * doc/md.texi: Document the restrictions on the "enabled" attribute.
18775
18776 2014-05-28  Jason Merrill  <jason@redhat.com>
18777
18778         PR c++/47202
18779         * cgraph.h (symtab_node::get_comdat_group_id): New.
18780         * cgraphunit.c (analyze_functions): Call it.
18781         * symtab.c (dump_symtab_node): Likewise.
18782         * tree.c (decl_comdat_group_id): New.
18783         * tree.h: Declare it.
18784         * lto-streamer-out.c (write_symbol): Use it.
18785         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18786
18787 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18788
18789         PR bootstrap/PR61146
18790         * wide-int.cc: Do not include longlong.h when compiling with clang.
18791
18792 2014-05-28  Richard Biener  <rguenther@suse.de>
18793
18794         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18795         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18796         (vrp_visit_assignment_or_call): Print less vertical space.
18797         (vrp_visit_stmt): Likewise.
18798         (vrp_visit_phi_node): Likewise.  For a PHI argument with
18799         VR_VARYING range consider recording it as copy.
18800
18801 2014-05-28  Richard Biener  <rguenther@suse.de>
18802
18803         Revert
18804         2014-05-28  Richard Biener  <rguenther@suse.de>
18805
18806         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18807
18808 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18809
18810         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18811         sufficiently aligned and an offset is used at the same time.
18812         (expand_expr_real_1): Likewise.
18813
18814 2014-05-28  Richard Biener  <rguenther@suse.de>
18815
18816         PR middle-end/61045
18817         * fold-const.c (fold_comparison): When folding
18818         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18819         the sign of the remaining constant operand stays the same.
18820
18821 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
18822
18823         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18824         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18825         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18826         to the assembler.
18827         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18828         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18829         (m32bit-doubles) Likewise.
18830         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18831         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18832         option for RL78.
18833
18834 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18835
18836         * configure.ac ($gcc_cv_ld_clearcap): New test.
18837         * configure: Regenerate.
18838         * config.in: Regenerate.
18839         * config/sol2.opt (mclear-hwcap): New option.
18840         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18841         * config/sol2-clearcap.map: Moved here from
18842         testsuite/gcc.target/i386/clearcap.map.
18843         * config/sol2-clearcapv2.map: Move here from
18844         gcc.target/i386/clearcapv2.map.
18845         * config/t-sol2 (install): Depend on install-clearcap-map.
18846         (install-clearcap-map): New target.
18847         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18848         -mclear-hwcap.
18849
18850 2014-05-28  Richard Biener  <rguenther@suse.de>
18851
18852         * hwint.h (*_HALF_WIDE_INT*): Move to ...
18853         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18854         ... here and remove the rest.
18855         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18856
18857 2014-05-28  Richard Biener  <rguenther@suse.de>
18858
18859         PR tree-optimization/61335
18860         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18861         new range fails, drop to varying.
18862
18863 2014-05-28  Olivier Hainque  <hainque@adacore.com>
18864
18865         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18866         (CPP_SPEC): Add entry for -mcpu=8548.
18867         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18868         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18869
18870 2014-05-28  Tom de Vries  <tom@codesourcery.com>
18871
18872         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18873         * lra.c (initialize_lra_reg_info_element): Add init of
18874         actual_call_used_reg_set field.
18875         (lra): Call lra_create_live_ranges before lra_inheritance for
18876         -fuse-caller-save.
18877         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18878         -fuse-caller-save.
18879         * lra-constraints.c (need_for_call_save_p): Use
18880         actual_call_used_reg_set instead of call_used_reg_set for
18881         -fuse-caller-save.
18882         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18883
18884 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18885             Tom de Vries  <tom@codesourcery.com>
18886
18887         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18888         to gccoptlist.
18889         (@item -fuse-caller-save): New item.
18890
18891 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18892             Tom de Vries  <tom@codesourcery.com>
18893
18894         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18895         OPT_fuse_caller_save.
18896
18897 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18898             Tom de Vries  <tom@codesourcery.com>
18899
18900         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18901         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18902         get_call_reg_set_usage.
18903         * resource.c (mark_set_resources, mark_target_live_regs): Use
18904         get_call_reg_set_usage.
18905         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18906         field.
18907         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18908         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18909         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18910         * ira-build.c (ira_create_allocno): Init
18911         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18912         (create_cap_allocno, propagate_allocno_info)
18913         (propagate_some_info_from_allocno)
18914         (copy_info_to_removed_store_destinations): Handle
18915         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18916         * ira-costs.c (ira_tune_allocno_costs): Use
18917         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18918
18919 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18920             Tom de Vries  <tom@codesourcery.com>
18921
18922         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18923         and function_used_regs_valid fields.
18924         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18925         find_all_hard_reg_sets.
18926         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18927         (get_call_reg_set_usage): New function.
18928         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18929         * regs.h (get_call_reg_set_usage): Declare.
18930
18931 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18932
18933         PR libgcc/61152
18934         * config/dbx.h (License): Add Runtime Library Exception.
18935         * config/newlib-stdint.h (License): Same.
18936         * config/rtems.h (License): Same
18937         * config/initfini-array.h (License): Same
18938         * config/v850/v850.h (License): Same.
18939         * config/v850/v850-opts.h (License): Same
18940         * config/v850/rtems.h (License): Same.
18941
18942 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18943
18944         PR target/61044
18945         * doc/extend.texi (Local Labels): Note that label differences are
18946         not supported for AVR.
18947
18948 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18949             Olivier Hainque  <hainque@adacore.com>
18950
18951         * rtl.h (set_for_reg_notes): Declare.
18952         * emit-rtl.c (set_for_reg_notes): New function.
18953         (set_unique_reg_note): Use it.
18954         * optabs.c (add_equal_note): Likewise
18955
18956 2014-05-27  Andrew Pinski  <apinski@cavium.com>
18957
18958         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18959         Use <w> for the register in assembly template.
18960         (stack_protect_test): Use the mode of operands[0] for the result.
18961         (stack_protect_test_<mode>): Use <w> for the register
18962         in assembly template.
18963
18964 2014-05-27  DJ Delorie  <dj@redhat.com>
18965
18966         * config/rx/rx.c (add_vector_labels): New.
18967         (rx_output_function_prologue): Call it.
18968         (rx_handle_func_attribute): Don't require empty arguments.
18969         (rx_handle_vector_attribute): New.
18970         (rx_attribute_table): Add "vector" attribute.
18971         * doc/extend.texi (interrupt, vector): Document new/changed
18972         RX-specific attributes.
18973
18974         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18975
18976 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18977
18978         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18979         predicate to detect a negative quotient.
18980
18981 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18982
18983         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18984         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18985         Add X - Y CMP 0 to X CMP Y transformation.
18986         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18987
18988 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
18989
18990         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18991         before printing.
18992
18993 2014-05-27  Steve Ellcey  <sellcey@mips.com>
18994
18995         * config/mips/mips.c: Add include of cgraph.h.
18996
18997 2014-05-27  Richard Biener  <rguenther@suse.de>
18998
18999         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
19000
19001 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
19002
19003         PR libgcc/61152
19004         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
19005         * config/arm/arm-cores.def (License): Same.
19006         * config/arm/arm-opts.h (License): Same.
19007         * config/arm/aout.h (License): Same.
19008         * config/arm/bpabi.h (License): Same.
19009         * config/arm/elf.h (License): Same.
19010         * config/arm/linux-elf.h (License): Same.
19011         * config/arm/linux-gas.h (License): Same.
19012         * config/arm/netbsd-elf.h (License): Same.
19013         * config/arm/uclinux-eabi.h (License): Same.
19014         * config/arm/uclinux-elf.h (License): Same.
19015         * config/arm/vxworks.h (License): Same.
19016
19017 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19018
19019         * config/arm/neon.md (neon_bswap<mode>): New pattern.
19020         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
19021         (arm_init_neon_builtins): Handle NEON_BSWAP.
19022         Define required type nodes.
19023         (arm_expand_neon_builtin): Handle NEON_BSWAP.
19024         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
19025         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
19026         * config/arm/iterators.md (VDQHSD): New mode iterator.
19027
19028 2014-05-27  Richard Biener  <rguenther@suse.de>
19029
19030         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19031         Try using literal operands when comparing value-ranges failed.
19032
19033 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
19034
19035         * ira.c (commutative_operand): Adjust for change to recog_data.
19036         [Missing from previous commit.]
19037
19038 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
19039
19040         * system.h (TEST_BIT): New macro.
19041         * recog.h (alternative_mask): New type.
19042         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
19043         (recog_data_d): Replace alternative_enabled_p array with
19044         enabled_alternatives.
19045         (target_recog): New structure.
19046         (default_target_recog, this_target_recog): Declare.
19047         (get_enabled_alternatives, recog_init): Likewise.
19048         * recog.c (default_target_recog, this_target_recog): New variables.
19049         (get_enabled_alternatives): New function.
19050         (extract_insn): Use it.
19051         (recog_init): New function.
19052         (preprocess_constraints, constrain_operands): Adjust for change to
19053         recog_data.
19054         * postreload.c (reload_cse_simplify_operands): Likewise.
19055         * reload.c (find_reloads): Likewise.
19056         * ira-costs.c (record_reg_classes): Likewise.
19057         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
19058         all alternatives after a disabled one would be skipped.
19059         (ira_implicitly_set_insn_hard_regs): Likewise.
19060         * ira.c (ira_setup_alts): Adjust for change to recog_data.
19061         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
19062         with enabled_alternatives.
19063         * lra.c (free_insn_recog_data): Update accordingly.
19064         (lra_update_insn_recog_data): Likewise.
19065         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
19066         * lra-constraints.c (process_alt_operands): Likewise.  Handle
19067         only_alternative as part of the enabled mask.
19068         * target-globals.h (this_target_recog): Declare.
19069         (target_globals): Add a recog field.
19070         (restore_target_globals): Restore this_target_recog.
19071         * target-globals.c: Include recog.h.
19072         (default_target_globals): Initialize recog field.
19073         (save_target_globals): Likewise.
19074         * reginfo.c (reinit_regs): Call recog_init.
19075         * toplev.c (backend_init_target): Likewise.
19076
19077 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
19078
19079         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
19080         rather than any named insn's code.
19081
19082 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
19083
19084         PR libgcc/61152
19085         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
19086         * config/arm/arm-cores.def (License): Same.
19087
19088 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
19089
19090         * tree.h (decl_comdat_group): Declare.
19091         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
19092         * tree.c (decl_comdat_group): Here.
19093
19094 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
19095
19096         PR rtl-optimization/61222
19097         * combine.c (simplify_shift_const_1): When moving a PLUS outside
19098         the shift, truncate the PLUS operand to the result mode.
19099
19100 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
19101
19102         PR target/61271
19103         * config/i386/i386.c (ix86_rtx_costs)
19104         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
19105         Fix condition.
19106
19107 2014-05-26  Martin Jambor  <mjambor@suse.cz>
19108
19109         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
19110         subreg uses.
19111
19112 2014-05-26  Richard Biener  <rguenther@suse.de>
19113
19114         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
19115         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
19116         Provide specializations.
19117         (wi::int_traits <HOST_WIDE_INT>,
19118         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
19119
19120 2014-05-26  Alan Modra  <amodra@gmail.com>
19121
19122         PR target/61098
19123         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
19124         params and return a bool.  Remove dead code.  Update comment.
19125         Assert we have a const_int source.  Remove bogus code from
19126         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
19127         handling of constants > 2G and reg_equal note, from..
19128         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
19129         return value.  Update comment.  If we can, use a new pseudo
19130         for intermediate calculations.
19131         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
19132         prototype.
19133         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
19134         call to rs6000_emit_set_const in splitter.
19135         (movdi_internal64+2, +3): Likewise.
19136
19137 2014-05-26  Richard Biener  <rguenther@suse.de>
19138
19139         * system.h: Define __STDC_FORMAT_MACROS before
19140         including inttypes.h.
19141         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
19142         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
19143         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
19144         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
19145         HOST_WIDEST_INT_C): Remove.
19146         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
19147         if C99 inttypes.h is not available.
19148         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
19149         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
19150         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
19151         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
19152         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
19153         (struct output_info): Likewise.
19154         (print_statistics): Adjust.
19155         (dump_bitmap_statistics): Likewise.
19156         * bt-load.c (migrate_btr_defs): Print with PRId64.
19157         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
19158         (MAX_SAFE_MULTIPLIER): Adjust.
19159         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
19160         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
19161         dump_cgraph_node): Likewise.
19162         * final.c (dump_basic_block_info): Likewise.
19163         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
19164         * gcov.c (format_gcov): Likewise.
19165         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
19166         for calculation.
19167         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
19168         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
19169         (inline_small_functions, dump_overall_stats, dump_inline_stats):
19170         Use PRId64 for dumping.
19171         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
19172         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
19173         (add_allocno_hard_regs): Adjust.
19174         * loop-doloop.c (doloop_modify): Print using PRId64.
19175         * loop-iv.c (inverse): Compute in uint64_t.
19176         (determine_max_iter, iv_number_of_iterations): Likewise.
19177         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
19178         Print using PRId64.
19179         * lto-streamer-out.c (write_symbol): Use uint64_t.
19180         * mcf.c (CAP_INFINITY): Use int64_t maximum.
19181         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
19182         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
19183         * modulo-sched.c (const_iteration_count): Use int64_t.
19184         (sms_schedule): Dump using PRId64.
19185         * predict.c (dump_prediction): Likewise.
19186         * pretty-print.h (pp_widest_integer): Remove.
19187         * profile.c (get_working_sets, is_edge_inconsistent,
19188         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
19189         * tree-pretty-print.c (pp_double_int): Remove case handling
19190         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
19191         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
19192         and adjust users.
19193         (pass_optimize_bswap::execute): Remove restriction on hosts.
19194         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
19195         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
19196         * tree.c (widest_int_cst_value): Remove.
19197         * tree.h (widest_int_cst_value): Likewise.
19198         * value-prof.c (dump_histogram_value): Print using PRId64.
19199         * gengtype.c (main): Also inject int64_t.
19200         * ggc-page.c (struct max_alignment): Use int64_t.
19201         * alloc-pool.c (struct allocation_object_def): Likewise.
19202         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
19203         for computation.
19204         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
19205         * doc/tm.texi: Regenerated.
19206         * gengtype-lex.l (IWORD): Handle [u]int64_t.
19207         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
19208         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
19209         mmix_output_register_setting): Use [u]int64_t in prototypes.
19210         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
19211         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
19212         mmix_output_octa, mmix_output_shifted_value): Adjust.
19213         (mmix_intval): Adjust.  Remove unreachable case.
19214         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
19215
19216 2014-05-26  Richard Biener  <rguenther@suse.de>
19217
19218         * configure.ac: Drop __int64 type check.  Insist that we
19219         found uint64_t and int64_t.
19220         * hwint.h (HOST_BITS_PER___INT64): Remove.
19221         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
19222         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
19223         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
19224         (HOST_WIDEST_FAST_INT): Remove __int64 case.
19225         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
19226         for dst_q_src_df_rms_cdt.
19227         * configure: Regenerate.
19228         * config.in: Likewise.
19229
19230 2014-05-26  Michael Tautschnig  <mt@debian.org>
19231
19232         PR target/61249
19233         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
19234         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
19235
19236 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19237
19238         PR rtl-optimization/61278
19239         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
19240
19241 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19242
19243         PR rtl-optimization/61220
19244         Part of PR rtl-optimization/61225
19245         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
19246         insn; skip split_edge for a block with only one successor.
19247
19248 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19249
19250         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
19251         for variables.
19252
19253 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19254
19255         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
19256         (update_vtable_references): New function.
19257         (function_and_variable_visibility): Rewrite also vtable initializers.
19258         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
19259
19260 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19261
19262         * ggc.h (ggc_grow): New function.
19263         * ggc-none.c (ggc_grow): New function.
19264         * ggc-page.c (ggc_grow): Likewise.
19265
19266 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19267
19268         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
19269         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
19270         comdat_can_be_unshared_p, cgraph_externally_visible_p,
19271         varpool_externally_visible_p, can_replace_by_local_alias,
19272         update_visibility_by_resolution_info, function_and_variable_visibility,
19273         pass_data_ipa_function_and_variable_visibility,
19274         make_pass_ipa_function_and_variable_visibility,
19275         whole_program_function_and_variable_visibility,
19276         pass_data_ipa_whole_program_visibility,
19277         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
19278         * cgraph.h (cgraph_local_node_p): Declare.
19279         * ipa-visibility.c: New file.
19280         * Makefile.in (OBJS): Add ipa-visiblity.o
19281
19282 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19283
19284         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
19285         that var decl is available.
19286
19287 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19288
19289         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
19290         symtab_node pointer.
19291         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
19292         (find_decls_types_r): Do not walk COMDAT_GROUP.
19293         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
19294         * varasm.c (make_decl_one_only): Use set_comdat_group;
19295         create node if needed.
19296         * ipa-inline-transform.c (save_inline_function_body): Update
19297         way we decl->symtab mapping.
19298         * symtab.c (symtab_hash, hash_node, eq_node
19299         symtab_insert_node_to_hashtable): Remove.
19300         (symtab_register_node): Update.
19301         (symtab_unregister_node): Update.
19302         (symtab_get_node): Reimplement as inline function.
19303         (symtab_add_to_same_comdat_group): Update.
19304         (symtab_dissolve_same_comdat_group_list): Update.
19305         (dump_symtab_base): Update.
19306         (verify_symtab_base): Update.
19307         (symtab_make_decl_local): Update.
19308         (fixup_same_cpp_alias_visibility): Update.
19309         (symtab_nonoverwritable_alias): Update.
19310         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
19311         * ipa.c (update_visibility_by_resolution_info): UPdate.
19312         * bb-reorder.c: Include cgraph.h
19313         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
19314         with comdat groups.
19315         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
19316         * cgraph.c (cgraph_get_create_node): Update.
19317         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
19318         and comdat_group_.
19319         (symtab_get_node): Make inline.
19320         (symtab_insert_node_to_hashtable): Remove.
19321         (symtab_can_be_discarded): Update.
19322         (decl_comdat_group): New function.
19323         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
19324         Update.
19325         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
19326         comdat group name.
19327         (read_comdat_group): New function.
19328         (input_node, input_varpool_node): Use it.
19329         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
19330         comdat groups.
19331         * mips.c (mips_start_unique_function): Likewise.
19332         (ix86_code_end): Likewise.
19333         (rs6000_code_end): Likweise.
19334         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
19335
19336 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19337
19338         * gengtype-state.c (fatal_reading_state): Bring offline.
19339         * optabs.c (widening_optab_handler): Bring offline.
19340         * optabs.h (widening_optab_handler): Likewise.
19341         * final.c (get_attr_length_1): Likewise.
19342
19343 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19344
19345         * sched-int.h (sd_iterator_cond): Manually tail recurse.
19346
19347 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19348
19349         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
19350         (ppc440-compare): Include shift with dot.
19351         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
19352         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
19353         without dot.
19354         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
19355         without dot.
19356         (e6500_sfx2): Include it.
19357         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
19358         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
19359         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
19360         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
19361         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
19362         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
19363         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
19364         *lshiftrt_internal1le, *lshiftrt_internal1be,
19365         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
19366         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
19367         *rotldi3_internal10le, *rotldi3_internal10be,
19368         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
19369         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
19370         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
19371         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
19372         define_insns): Use type "shift" in the appropriate alternatives.
19373
19374 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19375
19376         * config/rs6000/rs6000.md (type): Add "logical".  Delete
19377         "fast_compare".
19378         (dot): Adjust comment.
19379         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
19380         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
19381         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
19382         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
19383         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
19384         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
19385         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
19386         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19387
19388         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19389         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19390         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19391         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19392         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19393         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19394         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19395         * config/rs6000/8540.md (ppc8540_su): Adjust.
19396         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19397         cell-cmp-microcoded): Adjust.
19398         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19399         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19400         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19401         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19402         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19403         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19404         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19405         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19406         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19407         Adjust.
19408         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19409         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
19410         Adjust.  Adjust comment.
19411         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19412         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19413
19414 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19415
19416         * config/rs6000/rs6000.md (type): Add "add".
19417         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
19418         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
19419         define_insns): Use it.
19420         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19421
19422         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19423         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19424         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19425         * config/rs6000/601.md (ppc601-integer): Adjust.
19426         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19427         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19428         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19429         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19430         * config/rs6000/8540.md (ppc8540_su): Adjust.
19431         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19432         cell-cmp-microcoded): Adjust.
19433         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19434         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19435         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19436         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19437         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19438         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19439         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19440         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19441         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19442         Adjust.
19443         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19444         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
19445         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19446         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19447
19448 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19449
19450         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
19451         "delayed_compare", "var_delayed_compare".
19452         (var_shift): New attribute.
19453         (cell_micro): Adjust.
19454         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
19455         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
19456         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
19457         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19458         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19459         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19460         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19461         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
19462         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
19463         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
19464         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
19465         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
19466         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
19467         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
19468         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
19469         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
19470         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
19471         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
19472         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
19473         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
19474         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
19475         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
19476         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
19477         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19478         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19479
19480         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19481         * config/rs6000/440.md (ppc440-integer): Adjust.
19482         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19483         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
19484         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19485         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19486         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19487         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19488         * config/rs6000/8540.md (ppc8540_su): Adjust.
19489         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19490         cell-cmp-microcoded): Adjust.
19491         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
19492         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19493         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
19494         e500mc64_delayed): Adjust.
19495         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
19496         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
19497         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19498         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
19499         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
19500         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
19501         power6-delayed-compare, power6-var-delayed-compare): Adjust.
19502         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
19503         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
19504         Adjust comment.
19505         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19506         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19507
19508 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19509
19510         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
19511         (bits): New mode_attr.
19512         (idiv_ldiv): Delete mode_attr.
19513         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
19514         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19515         rs6000_adjust_priority, is_nonpipeline_insn,
19516         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19517
19518         * config/rs6000/40x.md (ppc403-idiv): Adjust.
19519         * config/rs6000/440.md (ppc440-idiv): Adjust.
19520         * config/rs6000/476.md (ppc476-idiv): Adjust.
19521         * config/rs6000/601.md (ppc601-idiv): Adjust.
19522         * config/rs6000/603.md (ppc603-idiv): Adjust.
19523         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
19524         ppc620-ldiv): Adjust.
19525         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
19526         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
19527         * config/rs6000/8540.md (ppc8540_divide): Adjust.
19528         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
19529         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
19530         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
19531         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
19532         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
19533         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
19534         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
19535         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
19536         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
19537         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
19538         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
19539         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
19540         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
19541         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
19542         * config/rs6000/titan.md (titan_fxu_div): Adjust.
19543
19544 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19545
19546         * config/rs6000/rs6000.md (type): Delete "insert_word",
19547         "insert_dword".  Add "insert".
19548         (size): Update comment.
19549         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19550         insn_must_be_first_in_group): Adjust.
19551         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19552         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19553         *insvsi_internal6, insvdi_internal): Adjust.
19554
19555         * config/rs6000/40x.md (ppc403-integer): Adjust.
19556         * config/rs6000/440.md (ppc440-integer): Adjust.
19557         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
19558         * config/rs6000/601.md (ppc601-integer): Adjust.
19559         * config/rs6000/603.md (ppc603-integer): Adjust.
19560         * config/rs6000/6xx.md (ppc604-integer): Adjust.
19561         * config/rs6000/7450.md (ppc7450-integer): Adjust.
19562         * config/rs6000/7xx.md (ppc750-integer): Adjust.
19563         * config/rs6000/8540.md (ppc8540_su): Adjust.
19564         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
19565         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
19566         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19567         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
19568         * config/rs6000/e5500.md (e5500_sfx): Adjust.
19569         * config/rs6000/e6500.md (e6500_sfx): Adjust.
19570         * config/rs6000/mpc.md (mpccore-integer): Adjust.
19571         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
19572         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
19573         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
19574         * config/rs6000/power7.md (power7-integer): Adjust.
19575         * config/rs6000/power8.md (power8-1cyc): Adjust.
19576         * config/rs6000/rs64.md (rs64a-integer): Adjust.
19577         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19578
19579 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19580
19581         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
19582         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
19583         (size): New attribute.
19584         (dot): New attribute.
19585         (cell_micro): Adjust.
19586         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
19587         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
19588         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
19589         umuldi3_highpart): Adjust.
19590         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19591         rs6000_adjust_priority, is_nonpipeline_insn,
19592         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19593
19594         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
19595         ppc405-imul3): Adjust.
19596         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
19597         * config/rs6000/476.md (ppc476-imul): Adjust.
19598         * config/rs6000/601.md (ppc601-imul): Adjust.
19599         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
19600         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
19601         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
19602         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
19603         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
19604         Adjust.
19605         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
19606         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
19607         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
19608         cell-imul): Adjust.
19609         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
19610         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
19611         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
19612         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
19613         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
19614         * config/rs6000/mpc.md (mpccore-imul): Adjust.
19615         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
19616         power4-lmul, power4-imul, power4-imul3): Adjust.
19617         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
19618         power5-lmul, power5-imul, power5-imul3): Adjust.
19619         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
19620         power6-lmul, power6-imul, power6-imul3): Adjust.
19621         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
19622         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
19623
19624         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
19625         rs64a-lmul): Adjust.
19626         * config/rs6000/titan.md (titan_imul): Adjust.
19627
19628 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19629
19630         * config/rs6000/rs6000.md (type): Add new value "halfmul".
19631         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
19632         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
19633         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
19634         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
19635         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
19636         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
19637         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
19638         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
19639         * config/rs6000/titan.md: Delete nonsensical comment.
19640         (titan_imul): Add type imul3.
19641         (titan_mulhw): Remove type imul3; add type halfmul.
19642
19643 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19644
19645         * config/rs6000/rs6000.md (type): Reorder, reformat.
19646
19647 2014-05-23  Martin Jambor  <mjambor@suse.cz>
19648
19649         PR tree-optimization/53787
19650         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
19651         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
19652         analysis_done, update all uses.
19653         * ipa-prop.c: Include domwalk.h
19654         (param_analysis_info): Removed.
19655         (param_aa_status): New type.
19656         (ipa_bb_info): Likewise.
19657         (func_body_info): Likewise.
19658         (ipa_get_bb_info): New function.
19659         (aa_overwalked): Likewise.
19660         (find_dominating_aa_status): Likewise.
19661         (parm_bb_aa_status_for_bb): Likewise.
19662         (parm_preserved_before_stmt_p): Changed to use new param AA info.
19663         (load_from_unmodified_param): Accept func_body_info as a parameter
19664         instead of parms_ainfo.
19665         (parm_ref_data_preserved_p): Changed to use new param AA info.
19666         (parm_ref_data_pass_through_p): Likewise.
19667         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
19668         (compute_complex_assign_jump_func): Changed to use new param AA info.
19669         (compute_complex_ancestor_jump_func): Likewise.
19670         (ipa_compute_jump_functions_for_edge): Likewise.
19671         (ipa_compute_jump_functions): Removed.
19672         (ipa_compute_jump_functions_for_bb): New function.
19673         (ipa_analyze_indirect_call_uses): Likewise, moved variable
19674         declarations down.
19675         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
19676         and info, moved variable declarations down.
19677         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
19678         node and info.
19679         (ipa_analyze_stmt_uses): Likewise.
19680         (ipa_analyze_params_uses): Removed.
19681         (ipa_analyze_params_uses_in_bb): New function.
19682         (ipa_analyze_controlled_uses): Likewise.
19683         (free_ipa_bb_info): Likewise.
19684         (analysis_dom_walker): New class.
19685         (ipa_analyze_node): Handle node-specific forbidden analysis,
19686         initialize and free func_body_info, use dominator walker.
19687         (ipcp_modif_dom_walker): New class.
19688         (ipcp_transform_function): Create and free func_body_info, use
19689         ipcp_modif_dom_walker, moved a lot of functionality there.
19690
19691 2014-05-23  Marek Polacek  <polacek@redhat.com>
19692             Jakub Jelinek  <jakub@redhat.com>
19693
19694         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
19695         * gcc.c (sanitize_spec_function): Likewise.
19696         * convert.c (convert_to_integer): Include "ubsan.h".  Add
19697         floating-point to integer instrumentation.
19698         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19699         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19700         SANITIZE_NONDEFAULT.
19701         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19702         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19703         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19704         * ubsan.c: Include "realmpfr.h" and "dfp.h".
19705         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19706         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19707         float/double/long double.
19708         (ubsan_instrument_float_cast): New function.
19709         * ubsan.h (ubsan_instrument_float_cast): Declare.
19710
19711 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
19712
19713         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19714         predicate.
19715         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
19716         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19717         Adjust for tailcalling through registers.
19718         * config/aarch64/aarch64.h (enum reg_class): New caller save
19719         register class.
19720         (REG_CLASS_NAMES): Likewise.
19721         (REG_CLASS_CONTENTS): Likewise.
19722         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19723         Allow tailcalling without decls.
19724
19725 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
19726
19727         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19728         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19729
19730         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19731         gsi, and variables v_* to v*.
19732
19733 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
19734
19735         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19736
19737 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
19738
19739         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19740         * omp-low.c: Update accordingly.
19741
19742         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19743         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19744         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19745         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19746         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19747         GF_OMP_TARGET_KIND_UPDATE.
19748
19749         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19750         Explicitly enumerate the expected region types.
19751
19752 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19753
19754         PR other/56955
19755         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
19756         documentation; the old documentation didn't clearly state the
19757         constraints on the contents of the pointed-to storage.
19758
19759 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19760
19761         Fix bootstrap error on ia64
19762         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19763         Return default value.
19764
19765 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19766
19767         PR tree-optimization/54733
19768         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19769         (CMPNOP): Define.
19770         (find_bswap_or_nop_load): New.
19771         (find_bswap_1): Renamed to ...
19772         (find_bswap_or_nop_1): This. Also add support for memory source.
19773         (find_bswap): Renamed to ...
19774         (find_bswap_or_nop): This. Also add support for memory source and
19775         detection of bitwise operations equivalent to load in target
19776         endianness.
19777         (execute_optimize_bswap): Likewise. Also move its leading comment back
19778         in place and split statement transformation into ...
19779         (bswap_replace): This.
19780
19781 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
19782
19783         PR rtl-optimization/61215
19784         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19785         simplify_gen_subreg until final substitution.
19786
19787 2014-05-23  Alan Modra  <amodra@gmail.com>
19788
19789         PR target/61231
19790         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19791         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19792         Use "Y" constraint rather than "m".
19793
19794 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19795
19796         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19797         define.
19798         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19799         New function declaration.
19800         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19801         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19802         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19803         (aarch64_init_builtins) : Initialize builtins
19804         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19805         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19806         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19807         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19808         and __builtins_aarch64_set_fpsr.
19809         (aarch64_atomic_assign_expand_fenv): New function.
19810         * config/aarch64/aarch64.md (set_fpcr): New pattern.
19811         (get_fpcr) : Likewise.
19812         (set_fpsr) : Likewise.
19813         (get_fpsr) : Likewise.
19814         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19815          and UNSPECV_SET_FPSR.
19816         * doc/extend.texi (AARCH64 Built-in Functions) : Document
19817         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19818         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19819
19820 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
19821
19822         PR rtl-optimization/60969
19823         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19824         constraints.  Set up mem cost for NO_REGS case.
19825
19826 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
19827
19828         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19829
19830 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
19831
19832         * config/darwin.c: Include "lto-section-names.h".
19833         (LTO_SEGMENT_NAME): Don't define.
19834         * config/i386/winnt.c: Include "lto-section-names.h".
19835         * lto-streamer.c: Include "lto-section-names.h".
19836         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19837         * lto-wrapper.c: Include "lto-section-names.h".
19838         (LTO_SECTION_NAME_PREFIX): Don't define.
19839         * lto-section-names.h: New file.
19840         * cgraphunit.c: Include "lto-section-names.h".
19841
19842 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
19843
19844         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19845
19846 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
19847
19848         PR target/61208
19849         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19850
19851 2014-05-22  Nick Clifton  <nickc@redhat.com>
19852
19853         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19854
19855 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
19856
19857         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19858         -> (T)A transformation to integer types.
19859
19860 2014-05-22  Teresa Johnson  <tejohnson@google.com>
19861
19862         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19863         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19864         (gcov_rewrite): Use gcov_nonruntime_assert.
19865         (gcov_open): Ditto.
19866         (gcov_write_words): Ditto.
19867         (gcov_write_length): Ditto.
19868         (gcov_read_words): Use gcov_nonruntime_assert, and remove
19869         gcc_assert from IN_LIBGCOV code.
19870         (gcov_read_summary): Use gcov_error to flag profile corruption.
19871         (gcov_sync): Use gcov_nonruntime_assert.
19872         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19873         (gcov_histo_index): Use gcov_nonruntime_assert.
19874         (static void gcov_histogram_merge): Ditto.
19875         (compute_working_sets): Ditto.
19876         * gcov-io.h (gcov_nonruntime_assert): Define.
19877         (gcov_error): Define for !IN_LIBGCOV
19878
19879 2014-05-22  Richard Biener  <rguenther@suse.de>
19880
19881         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19882         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19883         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19884         and deallocation site.
19885         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19886         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19887         passing through the incoming points-to set.
19888         (handle_lhs_call): Use flags argument instead of recomputing it.
19889         (find_func_aliases_for_call): Call handle_lhs_call with proper
19890         call return flags.
19891
19892 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
19893
19894         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19895         all padding bits in REAL_VALUE_TYPE are cleared.
19896
19897 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19898
19899         Cleanup and improve multipass_dfa_lookahead_guard
19900         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19901         (core2i7_first_cycle_multipass_begin,)
19902         (core2i7_first_cycle_multipass_issue,)
19903         (core2i7_first_cycle_multipass_backtrack): Update signature.
19904         * config/ia64/ia64.c
19905         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19906         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19907         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19908         hook definition.
19909         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19910         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
19911         values.
19912         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19913         return values.
19914         * doc/tm.texi: Regenerate.
19915         * doc/tm.texi.in
19916         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19917         * haifa-sched.c (ready_try): Make signed to allow negative values.
19918         (rebug_ready_list_1): Update.
19919         (choose_ready): Simplify.
19920         (sched_extend_ready_list): Update.
19921
19922 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19923
19924         Remove IA64 speculation tweaking flags
19925         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19926         speculation tuning flags.
19927         (msched-prefer-non-data-spec-insns,)
19928         (msched-prefer-non-control-spec-insns): Obsolete options.
19929         * haifa-sched.c (choose_ready): Remove handling of
19930         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19931         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19932         and PREFER_NON_DATA_SPEC.
19933         * sel-sched.c (process_spec_exprs): Remove handling of
19934         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19935
19936 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19937
19938         Improve scheduling debug output
19939         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19940         (advance_one_cycle): Update.
19941         (schedule_insn, queue_to_ready): Add debug printouts.
19942         (debug_ready_list_1): New static function.
19943         (debug_ready_list): Update.
19944         (max_issue): Add debug printouts.
19945         (dump_insn_stream): New static function.
19946         (schedule_block): Use it.  Also better indent printouts.
19947
19948 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19949
19950         Fix sched_insn debug counter
19951         * haifa-sched.c (schedule_insn): Update.
19952         (struct haifa_saved_data): Add nonscheduled_insns_begin.
19953         (save_backtrack_point, restore_backtrack_point): Update.
19954         (first_nonscheduled_insn): New static function.
19955         (queue_to_ready, choose_ready): Use it.
19956         (schedule_block): Init nonscheduled_insns_begin.
19957         (sched_emit_insn): Update.
19958
19959
19960 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
19961
19962         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19963         to GENERAL_REGS.
19964         (aarch64_secondary_reload) : LikeWise.
19965         (aarch64_class_max_nregs) : Remove CORE_REGS.
19966         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19967         (REG_CLASS_NAMES) : Likewise.
19968         (REG_CLASS_CONTENTS) : LikeWise.
19969         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19970
19971 2014-05-21  Guozhi Wei  <carrot@google.com>
19972
19973         PR target/61202
19974         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19975         constraint.
19976         (vqdmulhq_n_s16): Likewise.
19977
19978 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
19979
19980         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19981
19982 2014-05-21  Marek Polacek  <polacek@redhat.com>
19983
19984         PR sanitizer/61272
19985         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19986
19987 2014-05-21  Martin Jambor  <mjambor@suse.cz>
19988
19989         * doc/invoke.texi (Optimize Options): Document parameters
19990         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19991         ipa-cp-array-index-hint-bonus.
19992
19993 2014-05-21  Mark Wielaard  <mjw@redhat.com>
19994
19995         PR debug/16063
19996         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19997         version >= 3 or not strict DWARF.
19998         * langhooks.h (struct lang_hooks_for_types): Add
19999         enum_underlying_base_type.
20000         * langhooks.c (lhd_enum_underlying_base_type): New function.
20001         * gcc/langhooks.h (struct lang_hooks_for_types): Add
20002         enum_underlying_base_type.
20003         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
20004         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
20005         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
20006
20007 2014-05-21  Richard Biener  <rguenther@suse.de>
20008
20009         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
20010
20011 2014-05-21  John Marino  <gnugcc@marino.st>
20012
20013         * config.gcc (*-*-dragonfly*): New target.
20014         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
20015         * configure: Regenerate.
20016         * config/dragonfly-stdint.h: New.
20017         * config/dragonfly.h: New.
20018         * config/dragonfly.opt: New.
20019         * config/i386/dragonfly.h: New.
20020         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
20021
20022 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20023
20024         * tree.def (VOID_CST): New.
20025         * tree-core.h (TI_VOID): New.
20026         * tree.h (void_node): New.
20027         * tree.c (tree_node_structure_for_code, tree_code_size)
20028         (iterative_hash_expr): Handle VOID_CST.
20029         (build_common_tree_nodes): Initialize void_node.
20030
20031 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
20032
20033         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
20034         functions.
20035         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
20036
20037         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
20038         more places.
20039
20040         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
20041         flag_reorder_blocks_and_partition.
20042         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
20043
20044 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
20045
20046         PR target/54236
20047         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
20048         constraints.
20049         (*addc_r_t): Add new insn_and_split.
20050
20051 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
20052
20053         PR middle-end/61252
20054         * omp-low.c (handle_simd_reference): New function.
20055         (lower_rec_input_clauses): Use it.  Defer adding reference
20056         initialization even for reduction without placeholder if in simd,
20057         handle it properly later on.
20058
20059 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
20060
20061         PR tree-optimization/60899
20062         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
20063         assume all static symbols will have definition wile parsing and
20064         check the do have definition later in compilation; check that
20065         variable referring symbol will be output before concluding that
20066         reference is safe; be conservative for referring local statics;
20067         be more precise about when comdat is output in other partition.
20068
20069 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
20070
20071         PR bootstrap/60984
20072         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
20073         parameter.
20074         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
20075         (ipa_inline): Loop inline_to_all_callers until no more aliases
20076         are removed.
20077
20078 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
20079
20080         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
20081         set writeonly flag only for vars actually written to.
20082
20083 2014-05-20  Dehao Chen  <dehao@google.com>
20084
20085         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
20086         and callee count to get clone count.
20087         * tree-inline.c (expand_call_inline): Use callee count instead of bb
20088         count in copy_body.
20089
20090 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
20091
20092         PR rtl-optimization/61243
20093         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
20094
20095 2014-05-20  Xinliang David Li  <davidxl@google.com>
20096
20097         * cgraphunit.c (walk_polymorphic_call_targets): Add
20098         dbgcnt and fopt-info support.
20099         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
20100         * ipa-devirt.c (ipa_devirt): Ditto.
20101         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
20102         * ipa.c (walk_polymorphic_call_targets): Ditto.
20103         * gimple-fold.c (fold_gimple_assign): Ditto.
20104         (gimple_fold_call): Ditto.
20105         * dbgcnt.def: New counter.
20106
20107 2014-05-20  DJ Delorie  <dj@redhat.com>
20108
20109         * config/msp430/msp430.md (split): Don't allow subregs when
20110         splitting SImode adds.
20111         (andneghi): Fix subtraction logic.
20112         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
20113
20114 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
20115
20116         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
20117         symbols.
20118         * except.c (switch_to_exception_section, resolve_unique_section,
20119         get_named_text_section, default_function_rodata_section,
20120         align_variable, get_block_for_decl, default_section_type_flags):
20121         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
20122         * symtab.c (symtab_add_to_same_comdat_group,
20123         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
20124         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
20125         Likewise.
20126         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
20127         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
20128         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
20129         (c6x_function_in_section_p): Likewise.
20130         * config/darwin.c (machopic_select_section): Likewise.
20131         * config/arm/arm.c (arm_function_in_section_p): Likewise.
20132         * config/mips/mips.c (mips_function_rodata_section): Likewise.
20133         * config/mep/mep.c (mep_select_section): LIkewise.
20134         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
20135
20136 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
20137
20138         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
20139         EH region of calls to pure functions that can throw an exception.
20140         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
20141         (copy_reference_ops_from_call): Also copy the EH region of the call if
20142         it can throw an exception.
20143
20144 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20145
20146         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
20147         nested VEC_SELECTs that are inverses of each other.
20148
20149 2014-05-20  Richard Biener  <rguenther@suse.de>
20150
20151         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
20152         (extract_and_process_scc_for_name): not here.
20153         (cond_dom_walker::before_dom_children): Only process
20154         stmts that end the BB in interesting ways.
20155         (run_scc_vn): Mark param uses as visited.
20156
20157 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20158
20159         * config/arm/arm.md (arith_shiftsi): Do not predicate for
20160         arm_restrict_it.
20161
20162 2014-05-20  Nick Clifton  <nickc@redhat.com>
20163
20164         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
20165         (msp430_gimplify_va_arg_expr): New function.
20166         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
20167
20168         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
20169         operand 0 in order to prevent confusion about the number of
20170         registers involved.
20171
20172 2014-05-20  Richard Biener  <rguenther@suse.de>
20173
20174         PR tree-optimization/61221
20175         * tree-ssa-pre.c (el_to_update): Remove.
20176         (eliminate_dom_walker::before_dom_children): Handle released
20177         VDEFs by value-numbering them to the associated VUSE.  Update
20178         stmt immediately for substituted call address.
20179         (eliminate): Remove delayed stmt updating code.
20180         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
20181         possibly late re-numbered vuses.
20182         (vn_reference_lookup_2): Adjust.
20183         (vn_reference_lookup_pieces): Likewise.
20184         (vn_reference_lookup): Likewise.
20185
20186 2014-05-20  Richard Biener  <rguenther@suse.de>
20187
20188         * config.gcc: Remove need_64bit_hwint.
20189         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
20190         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
20191         it to be true.
20192         * config.in: Regenerate.
20193         * configure: Likewise.
20194
20195 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
20196
20197         * doc/extend.texi: Create Label Attributes section,
20198         move all label attributes into it and reference it.
20199
20200 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
20201
20202         * arm.c (thumb1_reorg): When scanning backwards skip anything
20203         that's not a proper insn.
20204
20205 2014-05-19  Richard Biener  <rguenther@suse.de>
20206
20207         PR tree-optimization/61221
20208         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20209         Do nothing for unreachable blocks.
20210         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
20211         Improve unreachability detection.
20212
20213 2014-05-19  Richard Biener  <rguenther@suse.de>
20214
20215         PR tree-optimization/61209
20216         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
20217
20218 2014-05-19  Nick Clifton  <nickc@redhat.com>
20219
20220         * except.c (init_eh): Fix computation of builtin setjmp buffer
20221         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
20222
20223 2014-05-19  Richard Biener  <rguenther@suse.de>
20224
20225         PR tree-optimization/61184
20226         * tree-vrp.c (is_negative_overflow_infinity): Use
20227         TREE_OVERFLOW_P and do that check first.
20228         (is_positive_overflow_infinity): Likewise.
20229         (is_overflow_infinity): Likewise.
20230         (vrp_operand_equal_p): Properly treat operands with
20231         differing overflow as not equal.
20232
20233 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
20234
20235         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
20236         shift simplification where it was intended.
20237
20238 2014-05-19  Christian Bruel  <christian.bruel@st.com>
20239
20240         PR target/61195
20241         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
20242
20243 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
20244
20245         PR target/61084
20246         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
20247         than wide_int.
20248
20249 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20250
20251         * reg-notes.def (CROSSING_JUMP): Likewise.
20252         * rtl.h (rtx_def): Update comment for jump flag.
20253         (CROSSING_JUMP_P): Define.
20254         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
20255         of a REG_CROSSING_JUMP note.
20256         * cfghooks.c (tidy_fallthru_edges): Likewise.
20257         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
20258         * emit-rtl.c (try_split): Likewise.
20259         * haifa-sched.c (sched_create_recovery_edges): Likewise.
20260         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
20261         * jump.c (redirect_jump_2): Likewise.
20262         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
20263         (relax_delay_slots): Likewise.
20264         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
20265         (bbit_di): Likewise.
20266         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
20267         * config/sh/sh.md (jump_compact): Likewise.
20268         * bb-reorder.c (rotate_loop): Likewise.
20269         (pass_duplicate_computed_gotos::execute): Likewise.
20270         (add_reg_crossing_jump_notes): Rename to...
20271         (update_crossing_jump_flags): ...this.
20272         (pass_partition_blocks::execute): Update accordingly.
20273
20274 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20275
20276         * tree.h: Remove extraneous template <>.
20277
20278 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20279
20280         * ipa.c (symtab_remove_unreachable_nodes): Remove
20281         symbol from comdat group if its body was eliminated.
20282         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
20283         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
20284         (symtab_unregister_node): ... this one.
20285         (verify_symtab_base): More strict checking of comdats.
20286         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
20287
20288 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20289
20290         * tree-pass.h (make_pass_ipa_comdats): New pass.
20291         * timevar.def (TV_IPA_COMDATS): New timevar.
20292         * passes.def (pass_ipa_comdats): Add.
20293         * Makefile.in (OBJS): Add ipa-comdats.o
20294         * ipa-comdats.c: New file.
20295
20296 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20297
20298         * ipa.c (update_visibility_by_resolution_info): New function.
20299         (function_and_variable_visibility): Use it.
20300
20301 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20302
20303         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
20304         New functions.
20305         (FOR_EACH_DEFINED_SYMBOL): New macro.
20306         (varpool_first_static_initializer, varpool_next_static_initializer,
20307         varpool_first_defined_variable, varpool_next_defined_variable):
20308         Fix comments.
20309         (symtab_in_same_comdat_p): Correctly deal with inline functions.
20310
20311 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20312
20313         * ggc-page.c (ggc_handle_finalizers): Add comment.
20314
20315 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20316
20317         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
20318         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
20319         (ggc_internal_cleared_alloc): Likewise.
20320         * ggc-page.c (finalizer): New class.
20321         (vec_finalizer): Likewise.
20322         (globals::finalizers): New member.
20323         (globals::vec_finalizers): Likewise.
20324         (ggc_internal_alloc): Record the finalizer if any for the block being
20325         allocated.
20326         (ggc_handle_finalizers): New function.
20327         (ggc_collect): Call ggc_handle_finalizers.
20328         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
20329         finalizer.
20330         (ggc_internal_cleared_alloc): Likewise.
20331         (finalize): New function.
20332         (need_finalization_p): Likewise.
20333         (ggc_alloc): Install the type's destructor as the finalizer if it
20334         might do something.
20335         (ggc_cleared_alloc): Likewise.
20336         (ggc_vec_alloc): Likewise.
20337         (ggc_cleared_vec_alloc): Likewise.
20338
20339 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20340
20341         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
20342
20343 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20344
20345         * alias.c (record_alias_subset): Adjust.
20346         * bitmap.c (bitmap_element_allocate): Likewise.
20347         (bitmap_gc_alloc_stat): Likewise.
20348         * cfg.c (init_flow): Likewise.
20349         (alloc_block): Likewise.
20350         (unchecked_make_edge): Likewise.
20351         * cfgloop.c (alloc_loop): Likewise.
20352         (flow_loops_find): Likewise.
20353         (rescan_loop_exit): Likewise.
20354         * cfgrtl.c (init_rtl_bb_info): Likewise.
20355         * cgraph.c (insert_new_cgraph_node_version): Likewise.
20356         (cgraph_allocate_node): Likewise.
20357         (cgraph_create_edge_1): Likewise.
20358         (cgraph_allocate_init_indirect_info): Likewise.
20359         * cgraphclones.c (cgraph_clone_edge): Likewise.
20360         * cgraphunit.c (add_asm_node): Likewise.
20361         (init_lowered_empty_function): Likewise.
20362         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
20363         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20364         (alpha_use_linkage): Likewise.
20365         * config/arc/arc.c (arc_init_machine_status): Likewise.
20366         * config/arm/arm.c (arm_init_machine_status): Likewise.
20367         * config/avr/avr.c (avr_init_machine_status): Likewise.
20368         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20369         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
20370         * config/cris/cris.c (cris_init_machine_status): Likewise.
20371         * config/darwin.c (machopic_indirection_name): Likewise.
20372         (darwin_build_constant_cfstring): Likewise.
20373         (darwin_enter_string_into_cfstring_table): Likewise.
20374         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
20375         * config/frv/frv.c (frv_init_machine_status): Likewise.
20376         * config/i386/i386.c (get_dllimport_decl): Likewise.
20377         (ix86_init_machine_status): Likewise.
20378         (assign_386_stack_local): Likewise.
20379         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20380         (i386_pe_maybe_record_exported_symbol): Likewise.
20381         (i386_pe_record_stub): Likewise.
20382         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20383         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20384         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20385         (m32c_note_pragma_address): Likewise.
20386         * config/mep/mep.c (mep_init_machine_status): Likewise.
20387         (mep_note_pragma_flag): Likewise.
20388         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20389         (mips16_local_alias): Likewise.
20390         (mips_init_machine_status): Likewise.
20391         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20392         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20393         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
20394         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
20395         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
20396         * config/pa/pa.c (pa_init_machine_status): Likewise.
20397         (pa_get_deferred_plabel): Likewise.
20398         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
20399         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20400         (rs6000_init_machine_status): Likewise.
20401         (output_toc): Likewise.
20402         * config/s390/s390.c (s390_init_machine_status): Likewise.
20403         * config/score/score.c (score_output_external): Likewise.
20404         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20405         * config/spu/spu.c (spu_init_machine_status): Likewise.
20406         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
20407         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
20408         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20409         * coverage.c (coverage_end_function): Likewise.
20410         * dbxout.c (dbxout_init): Likewise.
20411         * doc/gty.texi: Don't mention variable_size attribute.
20412         * dwarf2cfi.c (new_cfi): Adjust.
20413         (new_cfi_row): Likewise.
20414         (copy_cfi_row): Likewise.
20415         (create_cie_data): Likewise.
20416         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
20417         (new_loc_descr): Likewise.
20418         (find_AT_string_in_table): Likewise.
20419         (add_addr_table_entry): Likewise.
20420         (new_die): Likewise.
20421         (add_var_loc_to_decl): Likewise.
20422         (clone_die): Likewise.
20423         (clone_as_declaration): Likewise.
20424         (break_out_comdat_types): Likewise.
20425         (new_loc_list): Likewise.
20426         (add_loc_descr_to_each): Likewise.
20427         (add_location_or_const_value_attribute): Likewise.
20428         (add_linkage_name): Likewise.
20429         (lookup_filename): Likewise.
20430         (dwarf2out_var_location): Likewise.
20431         (new_line_info_table): Likewise.
20432         (dwarf2out_init): Likewise.
20433         (mem_loc_descriptor): Likewise.
20434         (loc_descriptor): Likewise.
20435         (add_const_value_attribute): Likewise.
20436         (tree_add_const_value_attribute): Likewise.
20437         (comp_dir_string): Likewise.
20438         (dwarf2out_vms_debug_main_pointer): Likewise.
20439         (string_cst_pool_decl): Likewise.
20440         * emit-rtl.c (set_mem_attrs): Likewise.
20441         (get_reg_attrs): Likewise.
20442         (start_sequence): Likewise.
20443         (init_emit): Likewise.
20444         (init_emit_regs): Likewise.
20445         * except.c (init_eh_for_function): Likewise.
20446         (gen_eh_region): Likewise.
20447         (gen_eh_region_catch): Likewise.
20448         (gen_eh_landing_pad): Likewise.
20449         (add_call_site): Likewise.
20450         * function.c (add_frame_space): Likewise.
20451         (insert_temp_slot_address): Likewise.
20452         (assign_stack_temp_for_type): Likewise.
20453         (get_hard_reg_initial_val): Likewise.
20454         (allocate_struct_function): Likewise.
20455         (prepare_function_start): Likewise.
20456         (types_used_by_var_decl_insert): Likewise.
20457         * gengtype.c (variable_size_p): Remove function.
20458         (enum alloc_quantity): Remove enum.
20459         (write_typed_alloc_def): Remove function.
20460         (write_typed_struct_alloc_def): Likewise.
20461         (write_typed_typedef_alloc_def): Likewise.
20462         (write_typed_alloc_defns): Likewise.
20463         (main): Adjust.
20464         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
20465         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
20466         * ggc.h (ggc_alloc): new function.
20467         (ggc_cleared_alloc): Likewise.
20468         (ggc_vec_alloc): Template on type of vector element, and remove
20469         element size argument.
20470         (ggc_cleared_vec_alloc): Likewise.
20471         * gimple.c (gimple_build_omp_for): Adjust.
20472         (gimple_copy): Likewise.
20473         * ipa-cp.c (get_replacement_map): Likewise.
20474         (find_aggregate_values_for_callers_subset): Likewise.
20475         (known_aggs_to_agg_replacement_list): Likewise.
20476         * ipa-devirt.c (get_odr_type): Likewise.
20477         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
20478         (read_agg_replacement_chain): Likewise.
20479         * loop-iv.c (get_simple_loop_desc): Likewise.
20480         * lto-cgraph.c (input_node_opt_summary): Likewise.
20481         * lto-section-in.c (lto_new_in_decl_state): Likewise.
20482         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20483         (input_eh_region): Likewise.
20484         (input_eh_lp): Likewise.
20485         (input_cfg): Likewise.
20486         * optabs.c (set_optab_libfunc): Likewise.
20487         (init_tree_optimization_optabs): Likewise.
20488         (set_conv_libfunc): Likewise.
20489         * passes.c (do_per_function_toporder): Likewise.
20490         * rtl.h: Don't use variable_size gty attribute.
20491         * sese.c (if_region_set_false_region): Adjust.
20492         * stringpool.c (gt_pch_save_stringpool): Likewise.
20493         * target-globals.c (save_target_globals): Likewise.
20494         * toplev.c (general_init): Likewise.
20495         * trans-mem.c (record_tm_replacement): Likewise.
20496         (split_bb_make_tm_edge): Likewise.
20497         * tree-cfg.c (move_sese_region_to_fn): Likewise.
20498         * tree-data-ref.h (lambda_vector_new): Likewise.
20499         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20500         * tree-iterator.c (tsi_link_before): Likewise.
20501         (tsi_link_after): Likewise.
20502         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20503         * tree-ssa-loop-niter.c (record_estimate): Likewise.
20504         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20505         * tree-ssa-operands.h: Don't use variable_size gty attribute.
20506         * tree-ssa.c (init_tree_ssa): Adjust.
20507         * tree-ssanames.c (set_range_info): Likewise.
20508         (get_ptr_info): Likewise.
20509         (duplicate_ssa_name_ptr_info): Likewise.
20510         (duplicate_ssa_name_range_info): Likewise.
20511         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
20512         (unpack_ts_fixed_cst_value_fields): Likewise.
20513         * tree.c (build_fixed): Likewise.
20514         (build_real): Likewise.
20515         (build_string): Likewise.
20516         (decl_priority_info): Likewise.
20517         (decl_debug_expr_insert): Likewise.
20518         (decl_value_expr_insert): Likewise.
20519         (decl_debug_args_insert): Likewise.
20520         (type_hash_add): Likewise.
20521         (build_omp_clause): Likewise.
20522         * ubsan.c (decl_for_type_insert): Likewise.
20523         * varasm.c (get_unnamed_section): Likewise.
20524         (get_noswitch_section): Likewise.
20525         (get_section): Likewise.
20526         (get_block_for_section): Likewise.
20527         (create_block_symbol): Likewise.
20528         (build_constant_desc): Likewise.
20529         (create_constant_pool): Likewise.
20530         (force_const_mem): Likewise.
20531         (record_tm_clone_pair): Likewise.
20532         * varpool.c (varpool_create_empty_node): Likewise.
20533
20534 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20535
20536         * dwarf2out.c (tree_add_const_value_attribute): Call
20537         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
20538         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
20539         instead of ggc_internal_<x>alloc_stat.
20540         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
20541         (ggc_realloc): Likewise.
20542         * ggc-none.c (ggc_internal_alloc): Likewise.
20543         (ggc_internal_cleared_alloc): Likewise.
20544         * ggc-page.c: Likewise.
20545         * ggc.h (ggc_internal_alloc_stat): Likewise.
20546         (ggc_internal_alloc): Remove macro.
20547         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
20548         (ggc_internal_cleared_alloc): Remove macro.
20549         (GGC_RESIZEVEC): Adjust.
20550         (ggc_resizevar): Remove macro.
20551         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
20552         (ggc_internal_cleared_vec_alloc_stat): Likewise.
20553         (ggc_internal_vec_cleared_alloc): Remove macro.
20554         (ggc_alloc_atomic_stat): Drop _stat suffix.
20555         (ggc_alloc_atomic): Remove macro.
20556         (ggc_alloc_cleared_atomic): Remove macro.
20557         (ggc_alloc_string_stat): Drop _stat suffix.
20558         (ggc_alloc_string): Remove macro.
20559         (ggc_alloc_rtx_def_stat): Adjust.
20560         (ggc_alloc_tree_node_stat): Likewise.
20561         (ggc_alloc_cleared_tree_node_stat): Likewise.
20562         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
20563         (ggc_alloc_cleared_simd_clone_stat): Likewise.
20564         * gimple.c (gimple_build_omp_for): Likewise.
20565         (gimple_copy): Likewise.
20566         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
20567         * toplev.c (realloc_for_line_map): Adjust.
20568         * tree-data-ref.h (lambda_vector_new): Likewise.
20569         * tree-phinodes.c (allocate_phi_node): Likewise.
20570         * tree.c (grow_tree_vec_stat): Likewise.
20571         * vec.h (va_gc::reserve): Adjust.
20572
20573 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
20574
20575         * config/microblaze/microblaze.c (break_handler): New Declaration.
20576         (microblaze_break_function_p,microblaze_is_break_handler): New.
20577         (compute_frame_size): Use microblaze_break_function_p.
20578         Add the test of break_handler.
20579         (microblaze_function_prologue) : Add the test of variable
20580         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
20581         (microblaze_function_epilogue) : Add the test of break_handler.
20582         (microblaze_globalize_label) : Add the test of break_handler.
20583         Check the name by BREAK_HANDLER_NAME.
20584
20585         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
20586
20587         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
20588         microblaze_is_break_handler test.
20589         (call_internal1,call_value_intern): Use microblaze_break_function_p.
20590         Use SYMBOL_REF_DECL.
20591
20592         * config/microblaze/microblaze-protos.h
20593         (microblaze_break_function_p,microblaze_is_break_handler):
20594         New Declaration.
20595
20596         * doc/extend.texi (MicroBlaze break_handler Functions): Document
20597         new MicroBlaze break_handler functions.
20598
20599 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
20600
20601         * doc/extend.texi (Size of an asm): Move node text according
20602         to its @menu entry position.
20603
20604 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
20605
20606         PR tree-optimization/61140
20607         PR tree-optimization/61150
20608         PR tree-optimization/61197
20609         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
20610
20611 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
20612
20613         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
20614
20615 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
20616
20617         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
20618         __SIZEOF_INT128__ is defined.
20619
20620 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20621
20622         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
20623         (rs6000_delegitimize_address): Use it.
20624
20625 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20626
20627         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
20628         inplace argument.  Store the new address in the original MEM when true.
20629         * emit-rtl.c (change_address_1): Likewise.
20630         (adjust_address_1, adjust_automodify_address_1, offset_address):
20631         Update accordingly.
20632         * rtl.h (plus_constant): Add an inplace argument.
20633         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
20634         when true.  Avoid generating (plus X (const_int 0)).
20635         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
20636         in-place.  Pass true to plus_constant.
20637         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
20638
20639 2014-05-16  Dehao Chen  <dehao@google.com>
20640
20641         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
20642
20643 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20644
20645         PR target/54089
20646         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
20647         patterns.
20648         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
20649
20650 2014-05-16  Dehao Chen  <dehao@google.com>
20651
20652         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
20653         optimize_function_for_size_p.
20654         * regs.h (REG_FREQ_FROM_BB): Likewise.
20655
20656 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20657
20658         PR target/51244
20659         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
20660         negt_reg_operand cases.
20661         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
20662         predicate.
20663         * config/sh/predicates.md (cbranch_treg_value): Simplify.
20664
20665 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20666
20667         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
20668         target variants.
20669
20670 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
20671
20672         Revert:
20673         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
20674
20675         * tree-cfg.c (dump_function_to_file): Dump the return type of
20676         functions, in a line to itself before the function body, mimicking
20677         the layout of a C function.
20678
20679 2014-05-16  Dehao Chen  <dehao@google.com>
20680
20681         * cfghooks.c (make_forwarder_block): Use direct computation to
20682         get fall-through edge's count and frequency.
20683
20684 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
20685
20686         * config/arc/arc.c (arc_init): Fix typo in error message.
20687         * config/i386/i386.c (ix86_expand_builtin): Likewise.
20688         (split_stack_prologue_scratch_regno): Likewise.
20689         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
20690         word from error message.
20691
20692 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20693
20694         * ira-costs.c: Fix typo in comment.
20695
20696 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
20697
20698         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20699
20700 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
20701
20702         * varpool.c (dump_varpool_node): Dump write-only flag.
20703         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20704         write-only flag.
20705         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20706         write-only variables.
20707         * ipa.c (process_references): New function.
20708         (set_readonly_bit): New function.
20709         (set_writeonly_bit): New function.
20710         (clear_addressable_bit): New function.
20711         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20712         fix handling of aliases.
20713         * cgraph.h (struct varpool_node): Add writeonly flag.
20714
20715 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
20716
20717         PR rtl-optimization/60969
20718         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20719         Calculate costs for this case.
20720
20721 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
20722
20723         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20724         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20725
20726 2014-05-16  Richard Biener  <rguenther@suse.de>
20727
20728         PR tree-optimization/61194
20729         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20730         bool patterns ending in a COND_EXPR.
20731
20732 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20733
20734         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20735
20736 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20737
20738         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20739         where we were unable to cost an RTX.
20740
20741 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20742
20743         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20744         HIGH, LO_SUM.
20745
20746 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20747             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20748
20749         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
20750
20751 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20752             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20753
20754         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20755         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20756
20757 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20758             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20759
20760         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20761         operators.
20762
20763 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20764             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20765
20766         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20767         DIV/MOD.
20768
20769 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20770             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20771
20772         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20773         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20774
20775 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20776             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20777
20778         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20779         rotates and shifts.
20780
20781 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20782             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20783
20784         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20785         ZERO_EXTEND and SIGN_EXTEND better.
20786
20787 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20788             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20789
20790         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20791         logical operations.
20792
20793 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20794             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20795
20796         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20797         costs when costing loads and stores to memory.
20798
20799 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20800             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
20801
20802         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20803         for SET RTX.
20804
20805 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20806
20807         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20808
20809 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20810             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20811
20812         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20813         to...
20814         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20815         well formed.
20816         (aarch64_rtx_mult_cost): New.
20817         (aarch64_rtx_costs): Use it, refactor as appropriate.
20818
20819 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20820             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20821
20822         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20823         emit instructions, return number of instructions which would
20824         be emitted.
20825         (aarch64_add_constant): Update call to aarch64_build_constant.
20826         (aarch64_output_mi_thunk): Likewise.
20827         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20828         a CONST_DOUBLE.
20829
20830 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20831
20832         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20833         (TARGET_RTX_COSTS): Call it.
20834
20835 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20836
20837         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20838         (cortexa57_vector_cost): Likewise.
20839         (cortexa57_tunings): Use them.
20840
20841 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20842
20843         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20844         (cpu_addrcost_table): Use it.
20845         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20846         (aarch64_address_cost): Rewrite using aarch64_classify_address,
20847         move it.
20848
20849 2014-05-16  Richard Biener  <rguenther@suse.de>
20850
20851         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20852         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20853         (visit_phi): Ignore edges marked as not executable.
20854         (class cond_dom_walker): New.
20855         (cond_dom_walker::before_dom_children): Value-number
20856         control statements and mark successor edges as not
20857         executable if possible.
20858         (run_scc_vn): First walk all control statements in
20859         dominator order, marking edges as not executable.
20860         * tree-inline.c (copy_edges_for_bb): Be not confused
20861         about random edge flags.
20862
20863 2014-05-16  Richard Biener  <rguenther@suse.de>
20864
20865         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20866
20867 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
20868
20869         PR target/61193
20870         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20871         (__TM_simple_begin): Use it.
20872         (__TM_begin): Likewise.
20873
20874 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20875
20876         PR ipa/61085
20877         * ipa-prop.c (update_indirect_edges_after_inlining): Check
20878         type_preserved flag when the indirect edge is polymorphic.
20879
20880 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20881
20882         PR tree-optimization/61090
20883         * tree-sra.c (sra_modify_expr): Pass the current gsi to
20884         build_ref_for_model.
20885
20886 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20887
20888         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20889         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20890
20891 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
20892
20893         PR tree-optimization/61158
20894         * fold-const.c (fold_binary_loc): If X is zero-extended and
20895         shiftc >= prec, make sure zerobits is all ones instead of
20896         invoking undefined behavior.
20897
20898 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20899
20900         * regcprop.h: New file.
20901         * regcprop.c (skip_debug_insn_p): New decl.
20902         (replace_oldest_value_reg): Check skip_debug_insn_p.
20903         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20904         * shrink-wrap.c: Include regcprop.h.
20905         (prepare_shrink_wrap): Call
20906         copyprop_hardreg_forward_bb_without_debug_insn.
20907
20908 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20909
20910         * shrink-wrap.h: Update comment.
20911         * shrink-wrap.c: Update comment.
20912         (next_block_for_reg): Rename to live_edge_for_reg.
20913         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20914         (move_insn_for_shrink_wrap): Split live_edge.
20915         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20916
20917 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20918
20919         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20920         Delete.
20921         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20922         * config/sparc/sparc.md (fptype_ut699): New attribute.
20923         (in_branch_delay): Return false if -mfix-ut699 is specified and
20924         fptype_ut699 is set to single.
20925         (truncdfsf2): Add fptype_ut699 attribute.
20926         (fix_truncdfsi2): Likewise.
20927         (floatsisf2): Change fptype attribute.
20928         (fix_truncsfsi2): Likewise.
20929         (negtf2_notv9): Delete.
20930         (negtf2_v9): Likewise.
20931         (negtf2_hq): New instruction.
20932         (negtf2): New instruction and splitter.
20933         (negdf2_notv9): Rewrite.
20934         (abstf2_notv9): Delete.
20935         (abstf2_hq_v9): Likewise.
20936         (abstf2_v9): Likewise.
20937         (abstf2_hq): New instruction.
20938         (abstf2): New instruction and splitter.
20939         (absdf2_notv9): Rewrite.
20940
20941 2014-05-14  Cary Coutant  <ccoutant@google.com>
20942
20943         PR debug/61013
20944         * opts.c (common_handle_option): Don't special-case "-g".
20945         (set_debug_level): Default to at least level 2 with "-g".
20946
20947 2014-05-14  DJ Delorie  <dj@redhat.com>
20948
20949         * config/msp430/msp430.c (msp430_builtin): Add
20950         MSP430_BUILTIN_DELAY_CYCLES.
20951         (msp430_init_builtins): Register void __delay_cycles(long long).
20952         (msp430_builtin_decl): Add it.
20953         (cg_magic_constant): New.
20954         (msp430_expand_delay_cycles): New.
20955         (msp430_expand_builtin): Call it.
20956         (msp430_print_operand_raw): Change integer printing from "int" to
20957         HOST_WIDE_INT.
20958         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20959         (delay_cycles_start): New.
20960         (delay_cycles_end): New.
20961         (delay_cycles_32): New.
20962         (delay_cycles_32x): New.
20963         (delay_cycles_16): New.
20964         (delay_cycles_16x): New.
20965         (delay_cycles_2): New.
20966         (delay_cycles_1): New.
20967         * doc/extend.texi: Document __delay_cycles().
20968
20969 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
20970
20971         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20972         length attribute computation.
20973
20974 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
20975
20976         PR debug/61188
20977         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20978
20979 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
20980
20981         PR target/61084
20982         * config/sparc/sparc.md: Fix types of low and high in DI constant
20983         splitter.  Use gen_int_mode in some other splitters.
20984
20985 2014-05-14  Martin Jambor  <mjambor@suse.cz>
20986
20987         PR ipa/60897
20988         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20989
20990 2014-05-14  James Norris  <jnorris@codesourcery.com>
20991
20992         * omp-low.c (expand_parallel_call): Remove shadow variable.
20993         (expand_omp_taskreg): Likewise.
20994
20995 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
20996
20997         * common/config/i386/i386-common.c
20998         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20999         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
21000         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
21001         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
21002         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
21003         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
21004         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
21005         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
21006         xsavecintrin.h, xsavesintrin.h.
21007         (x86_64-*-*): Ditto.
21008         * config/i386/clflushoptintrin.h: New.
21009         * config/i386/xsavecintrin.h: Ditto.
21010         * config/i386/xsavesintrin.h: Ditto.
21011         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
21012         (bit_XSAVES): Ditto.
21013         (bit_XSAVES): Ditto.
21014         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
21015         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
21016         -mno-clflushopt.
21017         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21018         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
21019         OPTION_MASK_ISA_XSAVES.
21020         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
21021         -mxsavec, -mxsaves.
21022         (PTA_CLFLUSHOPT) Define.
21023         (PTA_XSAVEC): Ditto.
21024         (PTA_XSAVES): Ditto.
21025         (ix86_option_override_internal): Handle new options.
21026         (ix86_valid_target_attribute_inner_p): Ditto.
21027         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
21028         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
21029         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
21030         (bdesc_special_args): Add __builtin_ia32_xsaves,
21031         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
21032         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
21033         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
21034         (ix86_expand_builtin): Handle new builtins.
21035         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
21036         (TARGET_CLFLUSHOPT_P): Ditto.
21037         (TARGET_XSAVEC): Ditto.
21038         (TARGET_XSAVEC_P): Ditto.
21039         (TARGET_XSAVES): Ditto.
21040         (TARGET_XSAVES_P): Ditto.
21041         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
21042         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
21043         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
21044         (ANY_XRSTOR): New.
21045         (ANY_XRSTOR64): Ditto.
21046         (xrstor): Ditto.
21047         (xrstor): Change into <xrstor>.
21048         (xrstor_rex64): Change into <xrstor>_rex64.
21049         (xrstor64): Change into <xrstor>64
21050         (clflushopt): New.
21051         * config/i386/i386.opt (mclflushopt): New.
21052         (mxsavec): Ditto.
21053         (mxsaves): Ditto.
21054         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
21055         xsavecintrin.h.
21056         * doc/invoke.texi: Document new options.
21057
21058 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
21059
21060         PR rtl-optimization/60866
21061         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
21062         Default it to -1.  Pass it down to init_simplejump_data.
21063         (init_simplejump_data): New parameter old_seqno.  Pass it down
21064         to get_seqno_for_a_jump.
21065         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
21066         initializing new jump seqno as a last resort.  Add comment.
21067         (sel_redirect_edge_and_branch): Save old seqno of the conditional
21068         jump and pass it down to sel_init_new_insn.
21069         (sel_redirect_edge_and_branch_force): Likewise.
21070
21071 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
21072
21073         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
21074         shifted values to avoid build warning.
21075
21076 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
21077
21078         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
21079         * cfgrtl.c (rtl_merge_blocks): Fix comment.
21080         (cfg_layout_merge_blocks): Likewise.
21081         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
21082
21083 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
21084
21085         PR rtl-optimization/60901
21086         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
21087         bb predecessor belongs to the same scheduling region.  Adjust comment.
21088
21089 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
21090
21091         * doc/sourcebuild.texi: (dfp_hw): Document.
21092         (p8vector_hw): Likewise.
21093         (powerpc_eabi_ok): Likewise.
21094         (powerpc_elfv2): Likewise.
21095         (powerpc_htm_ok): Likewise.
21096         (ppc_recip_hw): Likewise.
21097         (vsx_hw): Likewise.
21098
21099 2014-05-13  Cary Coutant  <ccoutant@google.com>
21100
21101         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
21102
21103 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
21104
21105         * gengtype-parse.c (require3): Eliminate in favor of...
21106         (require4): New.
21107         (require_template_declaration): Update to support optional single *
21108         on a type.
21109
21110         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
21111         (create_user_defined_type): Handle a single level of explicit
21112         pointerness within template arguments.
21113         (struct write_types_data): Add field "kind".
21114         (filter_type_name): Handle "*" character.
21115         (write_user_func_for_structure_ptr): Require a write_types_data
21116         rather than just a prefix string, so that we can look up the kind
21117         of the wtd and use it as an index into wrote_user_func_for_ptr,
21118         ensuring that such functions are written at most once.  Support
21119         subclasses by invoking the marking function of the ultimate base class.
21120         (write_user_func_for_structure_body): Require a write_types_data
21121         rather than just a prefix string, so that we can pass this to
21122         write_user_func_for_structure_ptr.
21123         (write_func_for_structure): Likewise.
21124         (ggc_wtd): Add initializer of new "kind" field.
21125         (pch_wtd): Likewise.
21126
21127         * gengtype.h (enum write_types_kinds): New.
21128         (struct type): Add field wrote_user_func_for_ptr to the "s"
21129         union member.
21130
21131 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
21132
21133         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
21134         instead of const_binop.
21135         (fold_binary_loc): Likewise.
21136
21137 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
21138
21139         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
21140         calculation to match get_ref_base_and_extent.
21141
21142 2014-05-13  Catherine Moore  <clm@codesourcery.com>
21143             Sandra Loosemore  <sandra@codesourcery.com>
21144
21145         * configure.ac: Fix assembly for explicit JALR relocation check.
21146         * configure: Regenerate.
21147
21148 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21149
21150         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
21151         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
21152         Remove associated type declarations and initialisations.
21153         (arm_expand_neon_builtin): Likewise.
21154         (neon_emit_pair_result_insn): Delete.
21155         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
21156         * config/arm/neon.md (neon_vtrn<mode>): Delete.
21157         (neon_vzip<mode>): Likewise.
21158         (neon_vuzp<mode>): Likewise.
21159
21160 2014-05-13  Richard Biener  <rguenther@suse.de>
21161
21162         PR ipa/60973
21163         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
21164         it needs revisiting whether the call still may be tail-called.
21165
21166 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21167
21168         * rtl.def (SYMBOL_REF): Remove middle "0" field.
21169         * rtl.h (block_symbol): Reduce number of fields to 2.
21170         (rtx_def): Add u2.symbol_ref_flags.
21171         (SYMBOL_REF_FLAGS): Use it.
21172         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
21173         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
21174         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
21175         Lower index of SYMBOL_REF_DATA.
21176         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
21177         Print SYMBOL_REF_FLAGS at the same time.
21178         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
21179
21180 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21181
21182         * rtl.def (VAR_LOCATION): Remove "i" field.
21183         * rtl.h (rtx_def): Add u2.var_location_status.
21184         (PAT_VAR_LOCATION_STATUS): Use it.
21185         (gen_rtx_VAR_LOCATION): Declare.
21186         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
21187         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
21188         * var-tracking.c (emit_note_insn_var_location): Remove casts.
21189
21190 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21191
21192         * rtl.def (scratch): Fix outdated comment and remove "0" field.
21193         * gengtype.c (adjust_field_rtx_def): Update accordingly.
21194
21195 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21196
21197         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
21198         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
21199         * rtl.h (rtx_def): Add insn_uid to u2 field.
21200         (RTX_FLAG_CHECK8): Delete in favor of...
21201         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
21202         (INSN_DELETED_P): Update accordingly.
21203         (INSN_UID): Use u2.insn_uid.
21204         (INSN_CHAIN_CODE_P): Define.
21205         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
21206         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
21207         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
21208         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
21209         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
21210         indices accordingly.
21211         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
21212         Update indices for insn-chain rtxes.
21213         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
21214         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
21215         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
21216         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
21217         * combine.c (try_combine): Likewise.
21218         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21219
21220 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21221
21222         * rtl.def (REG): Remove middle field.
21223         * rtl.h (rtx_def): Add orignal_regno to u2.
21224         (ORIGINAL_REGNO): Use it instead of field 1.
21225         (REG_ATTRS): Lower field index accordingly.
21226         * gengtype.c (adjust_field_rtx_def): Remove handling of
21227         ORIGINAL_REGNO.  Move REG_ATTRS index down.
21228         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
21229         code that prints the REGNO.
21230
21231 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21232
21233         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
21234         GENERATOR_FILE.
21235
21236 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21237
21238         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
21239
21240 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
21241
21242         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
21243         (alloc_iv): Lower base expressions containing ADDR_EXPR.
21244
21245 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
21246
21247         * config/aarch64/aarch64-protos.h
21248         (aarch64_hard_regno_caller_save_mode): New prototype.
21249         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
21250         New function.
21251         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
21252
21253 2014-05-13  Christian Bruel  <christian.bruel@st.com>
21254
21255         * target.def (mode_switching): New hook vector.
21256         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
21257         (mode_exit, modepriority_to_mode): Likewise.
21258         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
21259         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21260         * target.h: Include tm.h and hard-reg-set.h.
21261         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
21262         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
21263         * doc/tm.texi Regenerate.
21264         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21265         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21266         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
21267         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
21268         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21269         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21270         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
21271         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
21272         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
21273         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
21274         (ix86_emit_mode_set): Hookify.
21275         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
21276         Delete.
21277         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21278         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
21279         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
21280         (epiphany_mode_priority_to_mode): Remove declaration.
21281         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
21282         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
21283         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
21284         Likewise.
21285         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
21286         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
21287         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
21288
21289 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
21290
21291         PR target/61060
21292         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
21293         is const0_rtx, return immediately.  Don't test count == 0 when
21294         it is always true.
21295
21296 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21297
21298         * Makefile.in: add shrink-wrap.o.
21299         * config/i386/i386.c: include "shrink-wrap.h"
21300         * function.c: Likewise.
21301         (requires_stack_frame_p, next_block_for_reg,
21302         move_insn_for_shrink_wrap, prepare_shrink_wrap,
21303         dup_block_and_redirect): Move to shrink-wrap.c
21304         (thread_prologue_and_epilogue_insns): Extract three code segments
21305         as functions in shrink-wrap.c
21306         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
21307         shrink-wrap.h
21308         * shrink-wrap.c: New file.
21309         * shrink-wrap.h: New file.
21310
21311 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
21312
21313         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
21314         reference to Solaris.
21315
21316 2014-05-12  Mike Stump  <mikestump@comcast.net>
21317
21318         PR other/31778
21319         * genattrtab.c (filename): Add.
21320         (convert_set_attr_alternative): Improve error message.
21321         (check_defs): Restore read_md_filename for error messages.
21322         (gen_insn): Save filename.
21323
21324 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
21325
21326         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
21327         -fno-local-ivars and -fivar-visibility.
21328         * c-family/c.opt: Make -Wshadow also implicitly enable
21329         -Wshadow-ivar.
21330
21331 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
21332
21333         * doc/tm.texi: Remove reference to deleted macro.
21334         * doc/tm.texi.in: Likewise.
21335
21336 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21337
21338         PR target/60991
21339         * config/avr/avr.c (avr_out_store_psi): Use correct constant
21340         to restore Y.
21341
21342 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
21343
21344         PR libgcc/61152
21345         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
21346         * config/arm/aout.h (License): Same.
21347         * config/arm/bpabi.h (License): Same.
21348         * config/arm/elf.h (License): Same.
21349         * config/arm/linux-elf.h (License): Same.
21350         * config/arm/linux-gas.h (License): Same.
21351         * config/arm/netbsd-elf.h (License): Same.
21352         * config/arm/uclinux-eabi.h (License): Same.
21353         * config/arm/uclinux-elf.h (License): Same.
21354         * config/arm/vxworks.h (License): Same.
21355
21356 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
21357
21358         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
21359         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
21360         number of operands to 3.
21361         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
21362         * tree-nested.c (convert_nonlocal_omp_clauses,
21363         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
21364         * gimplify.c (gimplify_scan_omp_clauses): Handle
21365         OMP_CLAUSE_LINEAR_STMT.
21366         * omp-low.c (lower_rec_input_clauses): Fix typo.
21367         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
21368         cast between Fortran boolean_type_node and C _Bool if
21369         needed.
21370
21371 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
21372
21373         PR tree-optimization/61136
21374         * wide-int.h (multiple_of_p): Define a version that doesn't return
21375         the quotient.
21376         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
21377         integer_zerop/const_binop pair.
21378         (multiple_of_p): Likewise, converting both operands to widest_int
21379         precision.
21380
21381 2014-05-09  Teresa Johnson  <tejohnson@google.com>
21382
21383         * cgraphunit.c (analyze_functions): Use correct dump file.
21384
21385 2014-05-09  Florian Weimer  <fweimer@redhat.com>
21386
21387         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
21388         expand_used_vars.
21389         (stack_protect_return_slot_p): New function.
21390         (expand_used_vars): Call stack_protect_decl_p and
21391         stack_protect_return_slot_p for -fstack-protector-strong.
21392
21393 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
21394         Andrew Haley <aph@redhat.com>
21395         Richard Sandiford <rdsandiford@googlemail.com>
21396
21397         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
21398         pages.
21399
21400 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
21401
21402         PR middle-end/61111
21403         * fold-const.c (fold_binary_loc): Changed width of mask.
21404
21405 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
21406
21407         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
21408         unsigned int initializers for regno_in, regno_out.
21409
21410 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
21411
21412         PR target/61055
21413         * config/avr/avr.md (cc): Add new attribute set_vzn.
21414         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
21415         Set cc insn attribute to set_vzn instead of set_zn for alternatives
21416         with INC, DEC or NEG.
21417         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
21418         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
21419         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
21420
21421 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21422
21423         Revert:
21424         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21425
21426         * wide-int.cc (UTItype): Define.
21427         (UDWtype): Define for appropriate W_TYPE_SIZE.
21428
21429 2014-05-09  Richard Biener  <rguenther@suse.de>
21430
21431         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
21432         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
21433         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
21434         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
21435         ssa_propagate): Adjust.
21436
21437 2014-05-08  Jeff Law  <law@redhat.com>
21438
21439         PR tree-optimization/61009
21440         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
21441         tri-state rather than a boolean.  When a block is too big to
21442         thread through, inform caller via negative return value.
21443         (thread_across_edge): If a block was too big for normal threading,
21444         then it's too big for a joiner too, so remove temporary equivalences
21445         and return immediately.
21446
21447 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21448             Matthias Klose  <doko@ubuntu.com>
21449
21450         PR driver/61106
21451         * optc-gen.awk: Fix option handling for -Wunused-parameter.
21452
21453 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
21454
21455         PR target/59952
21456         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
21457
21458 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
21459
21460         PR target/61092
21461         * config/alpha/alpha.c: Include gimple-iterator.h.
21462         (alpha_gimple_fold_builtin): New function.  Move
21463         ALPHA_BUILTIN_UMULH folding from ...
21464         (alpha_fold_builtin): ... here.
21465         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
21466
21467 2014-05-08  Wei Mi  <wmi@google.com>
21468
21469         PR target/58066
21470         * config/i386/i386.c (ix86_compute_frame_layout): Update
21471         preferred_stack_boundary for call, expanded from tls descriptor.
21472         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
21473         to depend on SP register.
21474         (*tls_local_dynamic_base_32_gnu): Ditto.
21475         (*tls_local_dynamic_32_once): Ditto.
21476         (tls_global_dynamic_64_<mode>): Set
21477         ix86_tls_descriptor_calls_expanded_in_cfun.
21478         (tls_local_dynamic_base_64_<mode>): Ditto.
21479         (tls_global_dynamic_32): Set
21480         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
21481         to depend on SP register.
21482         (tls_local_dynamic_base_32): Ditto.
21483
21484 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21485
21486         * config/arm/arm_neon.h: Update comment.
21487         * config/arm/neon-docgen.ml: Delete.
21488         * config/arm/neon-gen.ml: Delete.
21489         * doc/arm-neon-intrinsics.texi: Update comment.
21490
21491 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21492
21493         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
21494         and v4sf versions.
21495         (vand, vorr, veor, vorn, vbic): Remove.
21496         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
21497         iterator.
21498         (neon_vsub_unspec): Likewise.
21499         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
21500
21501 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21502
21503         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
21504         (vadd_s16): Likewise.
21505         (vadd_s32): Likewise.
21506         (vadd_f32): Likewise.
21507         (vadd_u8): Likewise.
21508         (vadd_u16): Likewise.
21509         (vadd_u32): Likewise.
21510         (vadd_s64): Likewise.
21511         (vadd_u64): Likewise.
21512         (vaddq_s8): Likewise.
21513         (vaddq_s16): Likewise.
21514         (vaddq_s32): Likewise.
21515         (vaddq_s64): Likewise.
21516         (vaddq_f32): Likewise.
21517         (vaddq_u8): Likewise.
21518         (vaddq_u16): Likewise.
21519         (vaddq_u32): Likewise.
21520         (vaddq_u64): Likewise.
21521         (vmul_s8): Likewise.
21522         (vmul_s16): Likewise.
21523         (vmul_s32): Likewise.
21524         (vmul_f32): Likewise.
21525         (vmul_u8): Likewise.
21526         (vmul_u16): Likewise.
21527         (vmul_u32): Likewise.
21528         (vmul_p8): Likewise.
21529         (vmulq_s8): Likewise.
21530         (vmulq_s16): Likewise.
21531         (vmulq_s32): Likewise.
21532         (vmulq_f32): Likewise.
21533         (vmulq_u8): Likewise.
21534         (vmulq_u16): Likewise.
21535         (vmulq_u32): Likewise.
21536         (vsub_s8): Likewise.
21537         (vsub_s16): Likewise.
21538         (vsub_s32): Likewise.
21539         (vsub_f32): Likewise.
21540         (vsub_u8): Likewise.
21541         (vsub_u16): Likewise.
21542         (vsub_u32): Likewise.
21543         (vsub_s64): Likewise.
21544         (vsub_u64): Likewise.
21545         (vsubq_s8): Likewise.
21546         (vsubq_s16): Likewise.
21547         (vsubq_s32): Likewise.
21548         (vsubq_s64): Likewise.
21549         (vsubq_f32): Likewise.
21550         (vsubq_u8): Likewise.
21551         (vsubq_u16): Likewise.
21552         (vsubq_u32): Likewise.
21553         (vsubq_u64): Likewise.
21554         (vand_s8): Likewise.
21555         (vand_s16): Likewise.
21556         (vand_s32): Likewise.
21557         (vand_u8): Likewise.
21558         (vand_u16): Likewise.
21559         (vand_u32): Likewise.
21560         (vand_s64): Likewise.
21561         (vand_u64): Likewise.
21562         (vandq_s8): Likewise.
21563         (vandq_s16): Likewise.
21564         (vandq_s32): Likewise.
21565         (vandq_s64): Likewise.
21566         (vandq_u8): Likewise.
21567         (vandq_u16): Likewise.
21568         (vandq_u32): Likewise.
21569         (vandq_u64): Likewise.
21570         (vorr_s8): Likewise.
21571         (vorr_s16): Likewise.
21572         (vorr_s32): Likewise.
21573         (vorr_u8): Likewise.
21574         (vorr_u16): Likewise.
21575         (vorr_u32): Likewise.
21576         (vorr_s64): Likewise.
21577         (vorr_u64): Likewise.
21578         (vorrq_s8): Likewise.
21579         (vorrq_s16): Likewise.
21580         (vorrq_s32): Likewise.
21581         (vorrq_s64): Likewise.
21582         (vorrq_u8): Likewise.
21583         (vorrq_u16): Likewise.
21584         (vorrq_u32): Likewise.
21585         (vorrq_u64): Likewise.
21586         (veor_s8): Likewise.
21587         (veor_s16): Likewise.
21588         (veor_s32): Likewise.
21589         (veor_u8): Likewise.
21590         (veor_u16): Likewise.
21591         (veor_u32): Likewise.
21592         (veor_s64): Likewise.
21593         (veor_u64): Likewise.
21594         (veorq_s8): Likewise.
21595         (veorq_s16): Likewise.
21596         (veorq_s32): Likewise.
21597         (veorq_s64): Likewise.
21598         (veorq_u8): Likewise.
21599         (veorq_u16): Likewise.
21600         (veorq_u32): Likewise.
21601         (veorq_u64): Likewise.
21602         (vbic_s8): Likewise.
21603         (vbic_s16): Likewise.
21604         (vbic_s32): Likewise.
21605         (vbic_u8): Likewise.
21606         (vbic_u16): Likewise.
21607         (vbic_u32): Likewise.
21608         (vbic_s64): Likewise.
21609         (vbic_u64): Likewise.
21610         (vbicq_s8): Likewise.
21611         (vbicq_s16): Likewise.
21612         (vbicq_s32): Likewise.
21613         (vbicq_s64): Likewise.
21614         (vbicq_u8): Likewise.
21615         (vbicq_u16): Likewise.
21616         (vbicq_u32): Likewise.
21617         (vbicq_u64): Likewise.
21618         (vorn_s8): Likewise.
21619         (vorn_s16): Likewise.
21620         (vorn_s32): Likewise.
21621         (vorn_u8): Likewise.
21622         (vorn_u16): Likewise.
21623         (vorn_u32): Likewise.
21624         (vorn_s64): Likewise.
21625         (vorn_u64): Likewise.
21626         (vornq_s8): Likewise.
21627         (vornq_s16): Likewise.
21628         (vornq_s32): Likewise.
21629         (vornq_s64): Likewise.
21630         (vornq_u8): Likewise.
21631         (vornq_u16): Likewise.
21632         (vornq_u32): Likewise.
21633         (vornq_u64): Likewise.
21634
21635 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21636
21637         * wide-int.cc (UTItype): Define.
21638         (UDWtype): Define for appropriate W_TYPE_SIZE.
21639
21640 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
21641
21642         PR tree-optimization/59100
21643         * tree-ssa-phiopt.c: Include tree-inline.h.
21644         (neutral_element_p, absorbing_element_p): New functions.
21645         (value_replacement): Handle conditional binary operations with a
21646         neutral or absorbing element.
21647
21648 2014-05-08  Richard Biener  <rguenther@suse.de>
21649
21650         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
21651         folding the expression.
21652         (valueize_expr): Remove.
21653         (visit_reference_op_load): Do not valueize the result of
21654         vn_get_expr_for.
21655         (simplify_binary_expression): Likewise.
21656         (simplify_unary_expression): Likewise.
21657
21658 2014-05-08  Richard Biener  <rguenther@suse.de>
21659
21660         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
21661         looking at TYPE_ARG_TYPES.
21662
21663 2014-05-08  Richard Biener  <rguenther@suse.de>
21664
21665         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
21666         pointer propagation special-case.
21667
21668 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
21669
21670         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
21671         core part of address expressions.
21672
21673 2014-05-08  Alan Modra  <amodra@gmail.com>
21674
21675         PR target/60737
21676         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
21677         loads and stores when -mno-strict-align at any alignment.
21678         (expand_block_clear): Similarly.  Also correct calculation of
21679         instruction count.
21680
21681 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21682
21683         PR middle-end/39246
21684         * tree-complex.c (expand_complex_move): Keep line info when expanding
21685         complex move.
21686         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
21687         of complex expression. Use new argument to display correct location
21688         for values coming from phi statement.
21689         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
21690         (warn_uninitialized_phi): Pass location of phi argument to
21691         warn_uninit.
21692         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
21693         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
21694
21695 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
21696
21697         * config/rs6000/predicates.md (indexed_address_mem): New.
21698         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21699         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21700         fpstore_ux, fpstore_u.
21701         (sign_extend, indexed, update): New.
21702         (cell_micro): Adjust.
21703         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21704         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21705         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21706         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21707         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21708         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21709         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21710         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21711         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21712         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21713         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21714         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21715         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21716         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21717         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21718
21719         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21720         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21721         *vsx_extract_<mode>_store): Adjust.
21722         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21723         is_cracked_insn, insn_must_be_first_in_group,
21724         insn_must_be_last_in_group): Adjust.
21725
21726         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21727         Adjust.
21728         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21729         ppc440-fpstore): Adjust.
21730         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21731         ppc476-fpstore): Adjust.
21732         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21733         ppc601-fpstore): Adjust.
21734         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21735         Adjust.
21736         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21737         Adjust.
21738         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21739         ppc7450-fpstore): Adjust.
21740         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21741         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21742         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21743         Adjust.
21744         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21745         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21746         cell-fpstore, cell-fpstore-update): Adjust.
21747         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21748         ppce300c3_store, ppce300c3_fpstore): Adjust.
21749         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21750         e500mc_fpstore): Adjust.
21751         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21752         e500mc64_store, e500mc64_fpstore): Adjust.
21753         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21754         e5500_fpstore): Adjust.
21755         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21756         e6500_fpstore): Adjust.
21757         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21758         Adjust.
21759         * config/rs6000/power4.md (power4-load, power4-load-ext,
21760         power4-load-ext-update, power4-load-ext-update-indexed,
21761         power4-load-update-indexed, power4-load-update, power4-fpload,
21762         power4-fpload-update, power4-store, power4-store-update,
21763         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21764         Adjust.
21765         * config/rs6000/power5.md (power5-load, power5-load-ext,
21766         power5-load-ext-update, power5-load-ext-update-indexed,
21767         power5-load-update-indexed, power5-load-update, power5-fpload,
21768         power5-fpload-update, power5-store, power5-store-update,
21769         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21770         Adjust.
21771         * config/rs6000/power6.md (power6-load, power6-load-ext,
21772         power6-load-update, power6-load-update-indexed,
21773         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21774         power6-fpload-update, power6-store, power6-store-update,
21775         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21776         Adjust.
21777         * config/rs6000/power7.md (power7-load, power7-load-ext,
21778         power7-load-update, power7-load-update-indexed,
21779         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21780         power7-fpload-update, power7-store, power7-store-update,
21781         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21782         Adjust.
21783         * config/rs6000/power8.md (power8-load, power8-load-update,
21784         power8-load-ext, power8-load-ext-update, power8-fpload,
21785         power8-fpload-update, power8-store, power8-store-update-indexed,
21786         power8-fpstore, power8-fpstore-update): Adjust.
21787         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21788         Adjust.
21789         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21790         titan_lsu_store, titan_lsu_fpstore): Adjust.
21791         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21792
21793 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
21794
21795         PR target/60884
21796         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21797         unrolled byte insns.  Emit address increments after move insns.
21798
21799 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
21800
21801         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21802         const_gimple, rather than a gimple.
21803         (gimple_call_builtin_p): Likewise, for the three variants.
21804
21805         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21806         (gimple_call_builtin_p): Likewise, for the three variants.
21807
21808 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21809
21810         PR tree-optimization/61095
21811         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21812
21813 2014-05-07  Richard Biener  <rguenther@suse.de>
21814
21815         PR tree-optimization/61034
21816         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21817         (maybe_skip_until): Use translate to take into account
21818         lattices when trying to do disambiguations.
21819         (get_continuation_for_phi_1): Likewise.
21820         (get_continuation_for_phi): Adjust for added translate arguments.
21821         (walk_non_aliased_vuses): Likewise.
21822         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21823         (walk_non_aliased_vuses): Likewise.
21824         (call_may_clobber_ref_p_1): Declare.
21825         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21826         calls.  Stop early if we are only supposed to disambiguate.
21827         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21828
21829 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
21830
21831         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21832         Emit an error when the function has arguments.
21833
21834 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21835
21836         * cfgloop.h (unswitch_loops): Remove.
21837         * doc/passes.texi: Remove references to loop-unswitch.c
21838         * timevar.def (TV_LOOP_UNSWITCH): Remove.
21839
21840 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
21841
21842         * tree-vect-data-refs.c (vect_grouped_load_supported): New
21843         check for loads group of length 3.
21844         (vect_permute_load_chain): New permutations for loads group of
21845         length 3.
21846         * tree-vect-stmts.c (vect_model_load_cost): Change cost
21847         of vec_perm_shuffle for the new permutations.
21848
21849 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
21850
21851         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21852         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21853         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21854         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21855         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21856         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21857         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21858         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21859
21860 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21861
21862         * loop-unswitch.c: Delete.
21863
21864 2014-05-07  Richard Biener  <rguenther@suse.de>
21865
21866         * config.gcc: Always set need_64bit_hwint to yes.
21867
21868 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
21869
21870         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21871         of using optimize_size.
21872
21873 2014-05-06  Mike Stump  <mikestump@comcast.net>
21874
21875         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21876
21877 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
21878
21879         * config/i386/sse.md (*mov<mode>_internal)
21880         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21881         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21882         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21883         (*<code><mode>3, *andnot<mode>3<mask_name>)
21884         (<mask_codefor><code><mode>3<mask_name>): Only consider
21885         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21886
21887 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21888
21889         Revert:
21890         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
21891
21892         * lra-constraints.c (valid_address_p): Move earlier in file.
21893         Add a constraint argument to the address_info version.
21894         (satisfies_memory_constraint_p): New function.
21895         (satisfies_address_constraint_p): Likewise.
21896         (process_alt_operands, curr_insn_transform): Use them.
21897         (process_address): Pass the constraint to valid_address_p when
21898         checking address operands.
21899
21900 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
21901
21902         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21903         to their respective blocks.  Fix inadvertent use of "node".
21904
21905 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21906
21907         * emit-rtl.c (init_derived_machine_modes): New functionm, split
21908         out from...
21909         (init_emit_once): ...here.
21910         * rtl.h (init_derived_machine_modes): Declare.
21911         * toplev.c (do_compile): Call it even if no_backend.
21912
21913 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
21914             Mike Stump  <mikestump@comcast.net>
21915             Richard Sandiford  <rdsandiford@googlemail.com>
21916             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21917
21918         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21919         (rtx_equal_for_memref_p): Update comment.
21920         (adjust_offset_for_component_ref): Use wide-int interfaces.
21921         * builtins.c (get_object_alignment_2): Likewise.
21922         (c_readstr): Likewise.
21923         (target_char_cast): Add comment.
21924         (determine_block_size): Use wide-int interfaces.
21925         (expand_builtin_signbit): Likewise.
21926         (fold_builtin_int_roundingfn): Likewise.
21927         (fold_builtin_bitop): Likewise.
21928         (fold_builtin_bswap): Likewise.
21929         (fold_builtin_logarithm): Use signop.
21930         (fold_builtin_pow): Likewise.
21931         (fold_builtin_memory_op): Use wide-int interfaces.
21932         (fold_builtin_object_size): Likewise.
21933         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21934         nb_iterations_estimate.
21935         (record_niter_bound): Use wide-int interfaces.
21936         (get_estimated_loop_iterations_int): Likewise.
21937         (get_estimated_loop_iterations): Likewise.
21938         (get_max_loop_iterations): Likewise.
21939         * cfgloop.h: Include wide-int.h.
21940         (struct nb_iter_bound): Change bound to widest_int.
21941         (struct loop): Change nb_iterations_upper_bound and
21942         nb_iterations_estimate to widest_int.
21943         (record_niter_bound): Switch to use widest_int.
21944         (get_estimated_loop_iterations): Likewise.
21945         (get_max_loop_iterations): Likewise.
21946         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21947         update for wide-int.
21948         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21949         * combine.c (try_combine): Likewise.
21950         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21951         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21952         interfaces.
21953         (aarch64_float_const_representable_p): Likewise.
21954         * config/arc/arc.c: Include wide-int.h.
21955         (arc_can_use_doloop_p): Use wide-int interfaces.
21956         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21957         (vfp3_const_double_index): Likewise.
21958         * config/avr/avr.c (avr_out_round): Likewise.
21959         (avr_fold_builtin): Likewise.
21960         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21961         (bfin_can_use_doloop_p): Likewise.
21962         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21963         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21964         * config/i386/i386.c: Include wide-int.h.
21965         (ix86_data_alignment): Use wide-int interfaces.
21966         (ix86_local_alignment): Likewise.
21967         (ix86_emit_swsqrtsf): Update real_from_integer.
21968         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21969         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21970         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21971         (zero_constant): Likewise.
21972         (input_operand): Likewise.
21973         (splat_input_operand): Likewise.
21974         (non_logical_cint_operand): Change const_double to const_wide_int.
21975         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21976         (easy_altivec_constant): Remove comment.
21977         (paired_expand_vector_init): Use CONSTANT_P.
21978         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21979         (rs6000_emit_move): Update checks.
21980         (rs6000_aggregate_candidate): Use wide-int interfaces.
21981         (rs6000_expand_ternop_builtin): Likewise.
21982         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21983         (rs6000_assemble_integer): Likewise.
21984         (rs6000_hash_constant): Likewise.
21985         (output_toc): Likewise.
21986         (rs6000_rtx_costs): Likewise.
21987         (rs6000_emit_swrsqrt); Update call to real_from_integer.
21988         * config/rs6000/rs6000-c.c: Include wide-int.h.
21989         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21990         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21991         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21992         Handle CONST_WIDE_INT.
21993         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21994         Use tree_fits_uhwi_p.
21995         * config/sparc/sparc.c: Include wide-int.h.
21996         (sparc_fold_builtin): Use wide-int interfaces.
21997         * config/vax/vax.c: Include wide-int.h.
21998         (vax_float_literal): Use real_from_integer.
21999         * coretypes.h (struct hwivec_def): New.
22000         (hwivec): New.
22001         (const_hwivec): New.
22002         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
22003         (equiv_constant): Handle CONST_WIDE_INT.
22004         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
22005         (cselib_hash_rtx): Handle CONST_WIDE_INT.
22006         * dbxout.c (stabstr_U): Use wide-int interfaces.
22007         (dbxout_type): Update to use cst_fits_shwi_p.
22008         * defaults.h (LOG2_BITS_PER_UNIT): Define.
22009         (TARGET_SUPPORTS_WIDE_INT): Add default.
22010         * dfp.c: Include wide-int.h.
22011         (decimal_real_to_integer2): Use wide-int interfaces and rename to
22012         decimal_real_to_integer.
22013         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
22014         decimal_real_to_integer.
22015         * doc/generic.texi (Constant expressions): Update for wide_int.
22016         * doc/rtl.texi (const_double): Likewise.
22017         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
22018         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
22019         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
22020         (REAL_VALUE_FROM_INT): Remove.
22021         (TARGET_SUPPORTS_WIDE_INT): New.
22022         * doc/tm.texi: Regenerate.
22023         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
22024         * double-int.h: Include wide-int.h.
22025         (struct wi::int_traits): New.
22026         * dwarf2out.c (get_full_len): New.
22027         (dw_val_equal_p): Add case dw_val_class_wide_int.
22028         (size_of_loc_descr): Likewise.
22029         (output_loc_operands): Likewise.
22030         (insert_double): Remove.
22031         (insert_wide_int): New.
22032         (add_AT_wide): New.
22033         (print_die): Add case dw_val_class_wide_int.
22034         (attr_checksum): Likewise.
22035         (attr_checksum_ordered): Likewise.
22036         (same_dw_val_p): Likewise.
22037         (size_of_die): Likewise.
22038         (value_format): Likewise.
22039         (output_die): Likewise.
22040         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
22041         Use wide-int.
22042         (clz_loc_descriptor): Use wide-int interfaces.
22043         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
22044         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
22045         (round_up_to_align): Use wide-int interfaces.
22046         (field_byte_offset): Likewise.
22047         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
22048         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
22049         CONST_DOUBLE handling.  Use wide-int interfaces.
22050         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
22051         (gen_enumeration_type_die): Use add_AT_wide.
22052         (hash_loc_operands): Add case dw_val_class_wide_int.
22053         (compare_loc_operands): Likewise.
22054         * dwarf2out.h: Include wide-int.h.
22055         (wide_int_ptr): New.
22056         (enum dw_val_class): Add dw_val_class_wide_int.
22057         (struct dw_val_struct): Add val_wide.
22058         * emit-rtl.c (const_wide_int_htab): New.
22059         (const_wide_int_htab_hash): New.
22060         (const_wide_int_htab_eq): New.
22061         (lookup_const_wide_int): New.
22062         (const_double_htab_hash): Use wide-int interfaces.
22063         (const_double_htab_eq): Likewise.
22064         (rtx_to_double_int): Conditionally compile for wide-int.
22065         (immed_double_int_const): Rename to immed_wide_int_const and
22066         update for wide-int.
22067         (immed_double_const): Conditionally compile for wide-int.
22068         (init_emit_once): Use wide-int interfaces.
22069         * explow.c (plus_constant): Likewise.
22070         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
22071         (lshift_value): Use wide-int interfaces.
22072         (expand_mult): Likewise.
22073         (choose_multiplier): Likewise.
22074         (expand_smod_pow2): Likewise.
22075         (make_tree): Likewise.
22076         * expr.c (convert_modes): Consolidate handling of constants.
22077         Use wide-int interfaces.
22078         (emit_group_load_1): Add note.
22079         (store_expr): Update comment.
22080         (get_inner_reference): Use wide-int interfaces.
22081         (expand_constructor): Update comment.
22082         (expand_expr_real_2): Use wide-int interfaces.
22083         (expand_expr_real_1): Likewise.
22084         (reduce_to_bit_field_precision): Likewise.
22085         (const_vector_from_tree): Likewise.
22086         * final.c: Include wide-int-print.h.
22087         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
22088         * fixed-value.c: Include wide-int.h.
22089         (fixed_from_string): Use wide-int interfaces.
22090         (fixed_to_decimal): Likewise.
22091         (fixed_convert_from_real): Likewise.
22092         (real_convert_from_fixed): Likewise.
22093         * fold-const.h (mem_ref_offset): Return an offset_int.
22094         (div_if_zero_remainder): Remove code parameter.
22095         * fold-const.c (div_if_zero_remainder): Remove code parameter.
22096         Use wide-int interfaces.
22097         (may_negate_without_overflow_p): Use wide-int interfaces.
22098         (negate_expr_p): Likewise.
22099         (fold_negate_expr): Likewise.
22100         (int_const_binop_1): Likewise.
22101         (const_binop): Likewise.
22102         (fold_convert_const_int_from_int): Likewise.
22103         (fold_convert_const_int_from_real): Likewise.
22104         (fold_convert_const_int_from_fixed): Likewise.
22105         (fold_convert_const_fixed_from_int): Likewise.
22106         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
22107         (sign_bit_p): Use wide-int interfaces.
22108         (make_range_step): Likewise.
22109         (build_range_check): Likewise.  Pass an integer of the correct type
22110         instead of using integer_one_node.
22111         (range_predecessor): Pass an integer of the correct type instead
22112         of using integer_one_node.
22113         (range_successor): Likewise.
22114         (merge_ranges): Likewise.
22115         (unextend): Use wide-int interfaces.
22116         (extract_muldiv_1): Likewise.
22117         (fold_div_compare): Likewise.
22118         (fold_single_bit_test): Likewise.
22119         (fold_sign_changed_comparison): Likewise.
22120         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
22121         (fold_plusminus_mult_expr): Use wide-int interfaces.
22122         (native_encode_int): Likewise.
22123         (native_interpret_int): Likewise.
22124         (fold_unary_loc): Likewise.
22125         (pointer_may_wrap_p): Likewise.
22126         (size_low_cst): Likewise.
22127         (mask_with_tz): Likewise.
22128         (fold_binary_loc): Likewise.
22129         (fold_ternary_loc): Likewise.
22130         (multiple_of_p): Likewise.
22131         (tree_call_nonnegative_warnv_p): Update calls to
22132         tree_int_cst_min_precision and real_from_integer.
22133         (fold_negate_const): Use wide-int interfaces.
22134         (fold_abs_const): Likewise.
22135         (fold_relational_const): Use tree_int_cst_lt.
22136         (round_up_loc): Use wide-int interfaces.
22137         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
22138         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
22139         * gengtype.c: Remove include of double-int.h.
22140         (do_typedef): Use wide-int interfaces.
22141         (open_base_files): Add wide-int.h.
22142         (main): Add offset_int and widest_int typedefs.
22143         * gengtype-lex.l: Handle "^".
22144         (CXX_KEYWORD): Add "static".
22145         * gengtype-parse.c (require3): New.
22146         (require_template_declaration): Handle constant template arguments
22147         and nested templates.
22148         * gengtype-state.c: Don't include "double-int.h".
22149         * genpreds.c (write_one_predicate_function): Update comment.
22150         (write_tm_constrs_h): Add check for hval and lval use in
22151         CONST_WIDE_INT.
22152         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
22153         (add_to_sequence): Likewise.
22154         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
22155         and const_double_operand.
22156         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
22157         interfaces.
22158         * gimple-fold.c (get_base_constructor): Likewise.
22159         (fold_array_ctor_reference): Likewise.
22160         (fold_nonarray_ctor_reference): Likewise.
22161         (fold_const_aggregate_ref_1): Likewise.
22162         (gimple_val_nonnegative_real_p): Likewise.
22163         (gimple_fold_indirect_ref): Likewise.
22164         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
22165         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
22166         (struct slsr_cand_d): Change index to be widest_int.
22167         (struct incr_info_d): Change incr to be widest_int.
22168         (alloc_cand_and_find_basis): Use wide-int interfaces.
22169         (slsr_process_phi): Likewise.
22170         (backtrace_base_for_ref): Likewise.  Return a widest_int.
22171         (restructure_reference): Take a widest_int instead of a double_int.
22172         (slsr_process_ref): Use wide-int interfaces.
22173         (create_mul_ssa_cand): Likewise.
22174         (create_mul_imm_cand): Likewise.
22175         (create_add_ssa_cand): Likewise.
22176         (create_add_imm_cand): Take a widest_int instead of a double_int.
22177         (slsr_process_add): Use wide-int interfaces.
22178         (slsr_process_cast): Likewise.
22179         (slsr_process_copy): Likewise.
22180         (dump_candidate): Likewise.
22181         (dump_incr_vec): Likewise.
22182         (replace_ref): Likewise.
22183         (cand_increment): Likewise.  Return a widest_int.
22184         (cand_abs_increment): Likewise.
22185         (replace_mult_candidate): Take a widest_int instead of a double_int.
22186         (replace_unconditional_candidate): Use wide-int interfaces.
22187         (incr_vec_index): Take a widest_int instead of a double_int.
22188         (create_add_on_incoming_edge): Likewise.
22189         (create_phi_basis): Use wide-int interfaces.
22190         (replace_conditional_candidate): Likewise.
22191         (record_increment): Take a widest_int instead of a double_int.
22192         (record_phi_increments): Use wide-int interfaces.
22193         (phi_incr_cost): Take a widest_int instead of a double_int.
22194         (lowest_cost_path): Likewise.
22195         (total_savings): Likewise.
22196         (analyze_increments): Use wide-int interfaces.
22197         (ncd_with_phi): Take a widest_int instead of a double_int.
22198         (ncd_of_cand_and_phis): Likewise.
22199         (nearest_common_dominator_for_cands): Likewise.
22200         (insert_initializers): Use wide-int interfaces.
22201         (all_phi_incrs_profitable): Likewise.
22202         (replace_one_candidate): Likewise.
22203         (replace_profitable_candidates): Likewise.
22204         * godump.c: Include wide-int-print.h.
22205         (go_output_typedef): Use wide-int interfaces.
22206         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
22207         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
22208         (build_loop_iteration_domains): Likewise.
22209         * hooks.h: Include wide-int.h rather than double-int.h.
22210         (hook_bool_dint_dint_uint_bool_true): Delete.
22211         (hook_bool_wint_wint_uint_bool_true): Declare.
22212         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
22213         (hook_bool_wint_wint_uint_bool_true): New.
22214         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
22215         interfaces.
22216         (ubsan_expand_si_overflow_mul_check): Likewise.
22217         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
22218         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
22219         (get_ancestor_addr_info): Likewise.
22220         (ipa_modify_call_arguments): Likewise.
22221         * loop-doloop.c (doloop_modify): Likewise.
22222         (doloop_optimize): Likewise.
22223         * loop-iv.c (iv_number_of_iterations): Likewise.
22224         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
22225         (unroll_loop_constant_iterations): Likewise.
22226         (decide_unroll_runtime_iterations): Likewise.
22227         (unroll_loop_runtime_iterations): Likewise.
22228         (decide_peel_simple): Likewise.
22229         (decide_unroll_stupid): Likewise.
22230         * lto-streamer-in.c (streamer_read_wi): Add.
22231         (input_cfg): Use wide-int interfaces.
22232         (lto_input_tree_1): Likewise.
22233         * lto-streamer-out.c (streamer_write_wi): Add.
22234         (hash_tree): Use wide-int interfaces.
22235         (output_cfg): Likewise.
22236         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
22237         (GTFILES): Add wide-int.h and signop.h.
22238         (TAGS): Look for .cc files too.
22239         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
22240         * optabs.c (expand_subword_shift): Likewise.
22241         (expand_doubleword_shift): Likewise.
22242         (expand_absneg_bit): Likewise.
22243         (expand_copysign_absneg): Likewise.
22244         (expand_copysign_bit): Likewise.
22245         * postreload.c (reload_cse_simplify_set): Likewise.
22246         * predict.c (predict_iv_comparison): Likewise.
22247         * pretty-print.h: Include wide-int-print.h.
22248         (pp_wide_int) New.
22249         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
22250         * print-tree.c: Include wide-int-print.h.
22251         (print_node_brief): Use wide-int interfaces.
22252         (print_node): Likewise.
22253         * read-rtl.c (validate_const_wide_int): New.
22254         (read_rtx_code): Add CONST_WIDE_INT case.
22255         * real.c: Include wide-int.h.
22256         (real_to_integer2): Delete.
22257         (real_to_integer): New function, returning a wide_int.
22258         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22259         (ten_to_ptwo): Update call to real_from_integer.
22260         (real_digit): Likewise.
22261         * real.h: Include signop.h, wide-int.h and insn-modes.h.
22262         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
22263         (REAL_VALUE_TO_INT): Delete.
22264         (real_to_integer): Declare a wide-int form.
22265         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22266         * recog.c (const_int_operand): Improve comment.
22267         (const_scalar_int_operand): New.
22268         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
22269         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
22270         (split_double): Likewise.
22271         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
22272         (rtx_size): Likewise.
22273         (rtx_alloc_stat_v): New.
22274         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
22275         (cwi_output_hex): New.
22276         (iterative_hash_rtx): Handle CONST_WIDE_INT.
22277         (cwi_check_failed_bounds): New.
22278         * rtl.def (CONST_WIDE_INT): New.
22279         * rtl.h: Include <utility> and wide-int.h.
22280         (struct hwivec_def): New.
22281         (CWI_GET_NUM_ELEM): New.
22282         (CWI_PUT_NUM_ELEM): New.
22283         (struct rtx_def): Add num_elem and hwiv.
22284         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
22285         (CASE_CONST_UNIQUE): Likewise.
22286         (CASE_CONST_ANY): Likewise.
22287         (CONST_SCALAR_INT_P): Likewise.
22288         (CONST_WIDE_INT_P): New.
22289         (CWI_ELT): New.
22290         (HWIVEC_CHECK): New.
22291         (cwi_check_failed_bounds): New.
22292         (CWI_ELT): New.
22293         (HWIVEC_CHECK): New.
22294         (CONST_WIDE_INT_VEC) New.
22295         (CONST_WIDE_INT_NUNITS) New.
22296         (CONST_WIDE_INT_ELT) New.
22297         (rtx_mode_t): New type.
22298         (wi::int_traits <rtx_mode_t>): New.
22299         (wi::shwi): New.
22300         (wi::min_value): New.
22301         (wi::max_value): New.
22302         (rtx_alloc_v) New.
22303         (const_wide_int_alloc): New.
22304         (immed_wide_int_const): New.
22305         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
22306         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
22307         * signop.h: New file.
22308         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
22309         (simplify_const_unary_operation): Use wide-int interfaces.
22310         (simplify_binary_operation_1): Likewise.
22311         (simplify_const_binary_operation): Likewise.
22312         (simplify_const_relational_operation): Likewise.
22313         (simplify_immed_subreg): Likewise.
22314         * stmt.c (expand_case): Likewise.
22315         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
22316         signop rather than a bool.
22317         * stor-layout.c (layout_type): Use wide-int interfaces.
22318         (initialize_sizetypes): Update calls to
22319         set_min_and_max_values_for_integral_type.
22320         (set_min_and_max_values_for_integral_type): Take a signop rather
22321         than a bool.  Use wide-int interfaces.
22322         (fixup_signed_type): Update accordingly.  Remove
22323         HOST_BITS_PER_DOUBLE_INT limit.
22324         (fixup_unsigned_type): Likewise.
22325         * system.h (STATIC_CONSTANT_P): New.
22326         (STATIC_ASSERT): New.
22327         * target.def (can_use_doloop_p): Take widest_ints rather than
22328         double_ints.
22329         * target.h: Include wide-int.h rather than double-int.h.
22330         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
22331         than double_ints.
22332         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
22333         rather than INT_CST_LT_UNSIGNED.
22334         (can_use_doloop_if_innermost): Take widest_ints rather than
22335         double_ints.
22336         * tree-affine.c: Include wide-int-print.h.
22337         (double_int_ext_for_comb): Delete.
22338         (wide_int_ext_for_comb): New.
22339         (aff_combination_zero): Use wide-int interfaces.
22340         (aff_combination_const): Take a widest_int instead of a double_int.
22341         (aff_combination_elt): Use wide-int interfaces.
22342         (aff_combination_scale): Take a widest_int instead of a double_int.
22343         (aff_combination_add_elt): Likewise.
22344         (aff_combination_add_cst): Likewise.
22345         (aff_combination_add): Use wide-int interfaces.
22346         (aff_combination_convert): Likewise.
22347         (tree_to_aff_combination): Likewise.
22348         (add_elt_to_tree): Take a widest_int instead of a double_int.
22349         (aff_combination_to_tree): Use wide-int interfaces.
22350         (aff_combination_remove_elt): Likewise.
22351         (aff_combination_add_product): Take a widest_int instead of
22352         a double_int.
22353         (aff_combination_mult): Use wide-int interfaces.
22354         (aff_combination_expand): Likewise.
22355         (double_int_constant_multiple_p): Delete.
22356         (wide_int_constant_multiple_p): New.
22357         (aff_combination_constant_multiple_p): Take a widest_int pointer
22358         instead of a double_int pointer.
22359         (print_aff): Use wide-int interfaces.
22360         (get_inner_reference_aff): Take a widest_int pointer
22361         instead of a double_int pointer.
22362         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
22363         * tree-affine.h: Include wide-int.h.
22364         (struct aff_comb_elt): Change type of coef to widest_int.
22365         (struct affine_tree_combination): Change type of offset to widest_int.
22366         (double_int_ext_for_comb): Delete.
22367         (wide_int_ext_for_comb): New.
22368         (aff_combination_const): Use widest_int instead of double_int.
22369         (aff_combination_scale): Likewise.
22370         (aff_combination_add_elt): Likewise.
22371         (aff_combination_constant_multiple_p): Likewise.
22372         (get_inner_reference_aff): Likewise.
22373         (aff_comb_cannot_overlap_p): Likewise.
22374         (aff_combination_zero_p): Use wide-int interfaces.
22375         * tree.c: Include tree.h.
22376         (init_ttree): Use make_int_cst.
22377         (tree_code_size): Removed code for INTEGER_CST case.
22378         (tree_size): Add INTEGER_CST case.
22379         (make_node_stat): Update comment.
22380         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
22381         (build_int_cst_type): Use wide-int interfaces.
22382         (double_int_to_tree): Likewise.
22383         (double_int_fits_to_tree_p): Delete.
22384         (force_fit_type_double): Delete.
22385         (force_fit_type): New.
22386         (int_cst_hash_hash): Use wide-int interfaces.
22387         (int_cst_hash_eq): Likewise.
22388         (build_int_cst_wide): Delete.
22389         (wide_int_to_tree): New.
22390         (cache_integer_cst): Use wide-int interfaces.
22391         (build_low_bits_mask): Likewise.
22392         (cst_and_fits_in_hwi): Likewise.
22393         (real_value_from_int_cst): Likewise.
22394         (make_int_cst_stat): New.
22395         (integer_zerop): Use wide_int interfaces.
22396         (integer_onep): Likewise.
22397         (integer_all_onesp): Likewise.
22398         (integer_pow2p): Likewise.
22399         (integer_nonzerop): Likewise.
22400         (tree_log2): Likewise.
22401         (tree_floor_log2): Likewise.
22402         (tree_ctz): Likewise.
22403         (int_size_in_bytes): Likewise.
22404         (mem_ref_offset): Return an offset_int rather than a double_int.
22405         (build_type_attribute_qual_variant): Use wide_int interfaces.
22406         (type_hash_eq): Likewise
22407         (tree_int_cst_equal): Likewise.
22408         (tree_int_cst_lt): Delete.
22409         (tree_int_cst_compare): Likewise.
22410         (tree_fits_shwi_p): Use wide_int interfaces.
22411         (tree_fits_uhwi_p): Likewise.
22412         (tree_int_cst_sign_bit): Likewise.
22413         (tree_int_cst_sgn): Likewise.
22414         (tree_int_cst_min_precision): Take a signop rather than a bool.
22415         (simple_cst_equal): Use wide_int interfaces.
22416         (compare_tree_int): Likewise.
22417         (iterative_hash_expr): Likewise.
22418         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
22419         INT_CST_LT.
22420         (get_type_static_bounds): Use wide_int interfaces.
22421         (tree_int_cst_elt_check_failed): New.
22422         (build_common_tree_nodes): Reordered to set prec before filling in
22423         value.
22424         (int_cst_value): Check cst_and_fits_in_hwi.
22425         (widest_int_cst_value): Use wide_int interfaces.
22426         (upper_bound_in_type): Likewise.
22427         (lower_bound_in_type): Likewise.
22428         (num_ending_zeros): Likewise.
22429         (drop_tree_overflow): Likewise.
22430         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
22431         (gen_conditions_for_pow_cst_base): Likewise.
22432         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
22433         (group_case_labels_stmt): Use wide-int interfaces.
22434         (verify_gimple_assign_binary): Likewise.
22435         (print_loop): Likewise.
22436         * tree-chrec.c (tree_fold_binomial): Likewise.
22437         * tree-core.h (struct tree_base): Add int_length.
22438         (struct tree_int_cst): Change rep of value.
22439         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
22440         (dr_may_alias_p): Likewise.
22441         (max_stmt_executions_tree): Likewise.
22442         * tree.def (INTEGER_CST): Update comment.
22443         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
22444         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
22445         * tree-dump.c: Include wide-int.h and wide-int-print.h.
22446         (dequeue_and_dump): Use wide-int interfaces.
22447         * tree.h: Include wide-int.h.
22448         (NULL_TREE): Moved to earlier loc in file.
22449         (TREE_INT_CST_ELT_CHECK): New.
22450         (tree_int_cst_elt_check_failed): New.
22451         (TYPE_SIGN): New.
22452         (TREE_INT_CST): Delete.
22453         (TREE_INT_CST_LOW): Use wide-int interfaces.
22454         (TREE_INT_CST_HIGH): Delete.
22455         (TREE_INT_CST_NUNITS): New.
22456         (TREE_INT_CST_EXT_NUNITS): Likewise.
22457         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
22458         (TREE_INT_CST_ELT): Likewise.
22459         (INT_CST_LT): Delete.
22460         (tree_int_cst_elt_check): New (two forms).
22461         (type_code_size): Update comment.
22462         (make_int_cst_stat, make_int_cst): New.
22463         (tree_to_double_int): Delete.
22464         (double_int_fits_to_tree_p): Delete.
22465         (force_fit_type_double): Delete.
22466         (build_int_cstu): Replace with out-of-line function.
22467         (build_int_cst_wide): Delete.
22468         (tree_int_cst_lt): Define inline.
22469         (tree_int_cst_le): New.
22470         (tree_int_cst_compare): Define inline.
22471         (tree_int_cst_min_precision): Take a signop rather than a bool.
22472         (wi::int_traits <const_tree>): New.
22473         (wi::int_traits <tree>): New.
22474         (wi::extended_tree): New.
22475         (wi::int_traits <wi::extended_tree>): New.
22476         (wi::to_widest): New.
22477         (wi::to_offset): New.
22478         (wi::fits_to_tree_p): New.
22479         (wi::min_value): New.
22480         (wi::max_value): New.
22481         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
22482         (copy_tree_body_r): Likewise.
22483         * tree-object-size.c (compute_object_offset): Likewise.
22484         (addr_object_size): Likewise.
22485         * tree-predcom.c: Include wide-int-print.h.
22486         (struct dref_d): Change type of offset to widest_int.
22487         (dump_dref): Call wide-int printer.
22488         (aff_combination_dr_offset): Use wide-int interfaces.
22489         (determine_offset): Take a widest_int pointer rather than a
22490         double_int pointer.
22491         (split_data_refs_to_components): Use wide-int interfaces.
22492         (suitable_component_p): Likewise.
22493         (order_drefs): Likewise.
22494         (add_ref_to_chain): Likewise.
22495         (valid_initializer_p): Likewise.
22496         (determine_roots_comp): Likewise.
22497         * tree-pretty-print.c: Include wide-int-print.h.
22498         (dump_generic_node): Use wide-int interfaces.
22499         * tree-sra.c (sra_ipa_modify_expr): Likewise.
22500         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
22501         (move_fixed_address_to_symbol): Likewise.
22502         (move_hint_to_base): Likewise.
22503         (move_pointer_to_base): Likewise.
22504         (move_variant_to_index): Likewise.
22505         (most_expensive_mult_to_index): Likewise.
22506         (addr_to_parts): Likewise.
22507         (copy_ref_info): Likewise.
22508         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22509         (indirect_refs_may_alias_p): Likewise.
22510         (stmt_kills_ref_p_1): Likewise.
22511         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
22512         * tree-ssa-ccp.c: Update comment at top of file.  Include
22513         wide-int-print.h.
22514         (struct prop_value_d): Change type of mask to widest_int.
22515         (extend_mask): New function.
22516         (dump_lattice_value): Use wide-int interfaces.
22517         (get_default_value): Likewise.
22518         (set_constant_value): Likewise.
22519         (set_value_varying): Likewise.
22520         (valid_lattice_transition): Likewise.
22521         (set_lattice_value): Likewise.
22522         (value_to_double_int): Delete.
22523         (value_to_wide_int): New.
22524         (get_value_from_alignment): Use wide-int interfaces.
22525         (get_value_for_expr): Likewise.
22526         (do_dbg_cnt): Likewise.
22527         (ccp_finalize): Likewise.
22528         (ccp_lattice_meet): Likewise.
22529         (bit_value_unop_1): Use widest_ints rather than double_ints.
22530         (bit_value_binop_1): Likewise.
22531         (bit_value_unop): Use wide-int interfaces.
22532         (bit_value_binop): Likewise.
22533         (bit_value_assume_aligned): Likewise.
22534         (evaluate_stmt): Likewise.
22535         (ccp_fold_stmt): Likewise.
22536         (visit_cond_stmt): Likewise.
22537         (ccp_visit_stmt): Likewise.
22538         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22539         (constant_pointer_difference): Likewise.
22540         (associate_pointerplus): Likewise.
22541         (combine_conversions): Likewise.
22542         * tree-ssa-loop.h: Include wide-int.h.
22543         (struct tree_niter_desc): Change type of max to widest_int.
22544         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
22545         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
22546         (remove_redundant_iv_tests): Likewise.
22547         (canonicalize_loop_induction_variables): Likewise.
22548         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
22549         (constant_multiple_of): Take a widest_int pointer instead of
22550         a double_int pointer.
22551         (get_computation_aff): Use wide-int interfaces.
22552         (ptr_difference_cost): Likewise.
22553         (difference_cost): Likewise.
22554         (get_loop_invariant_expr_id): Likewise.
22555         (get_computation_cost_at): Likewise.
22556         (iv_elimination_compare_lt): Likewise.
22557         (may_eliminate_iv): Likewise.
22558         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
22559         instead of double_int.
22560         (max_loop_iterations): Likewise.
22561         (max_stmt_executions): Likewise.
22562         (estimated_stmt_executions): Likewise.
22563         * tree-ssa-loop-niter.c: Include wide-int-print.h.
22564         (split_to_var_and_offset): Use wide-int interfaces.
22565         (determine_value_range): Likewise.
22566         (bound_difference_of_offsetted_base): Likewise.
22567         (bounds_add): Take a widest_int instead of a double_int.
22568         (number_of_iterations_ne_max): Use wide-int interfaces.
22569         (number_of_iterations_ne): Likewise.
22570         (number_of_iterations_lt_to_ne): Likewise.
22571         (assert_loop_rolls_lt): Likewise.
22572         (number_of_iterations_lt): Likewise.
22573         (number_of_iterations_le): Likewise.
22574         (number_of_iterations_cond): Likewise.
22575         (number_of_iterations_exit): Likewise.
22576         (finite_loop_p): Likewise.
22577         (derive_constant_upper_bound_assign): Likewise.
22578         (derive_constant_upper_bound): Return a widest_int.
22579         (derive_constant_upper_bound_ops): Likewise.
22580         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
22581         (record_estimate): Take a widest_int rather than a double_int.
22582         (record_nonwrapping_iv): Use wide-int interfaces.
22583         (double_int_cmp): Delete.
22584         (wide_int_cmp): New.
22585         (bound_index): Take a widest_int rather than a double_int.
22586         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
22587         (maybe_lower_iteration_bound): Likewise.
22588         (estimate_numbers_of_iterations_loop): Likewise.
22589         (estimated_loop_iterations): Take a widest_int pointer than than
22590         a double_int pointer.
22591         (estimated_loop_iterations_int): Use wide-int interfaces.
22592         (max_loop_iterations): Take a widest_int pointer than than
22593         a double_int pointer.
22594         (max_loop_iterations_int): Use wide-int interfaces.
22595         (max_stmt_executions): Take a widest_int pointer than than
22596         a double_int pointer.
22597         (estimated_stmt_executions): Likewise.
22598         (n_of_executions_at_most): Use wide-int interfaces.
22599         (scev_probably_wraps_p): Likewise.
22600         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
22601         to real_to_integer.
22602         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
22603         interfaces.
22604         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
22605         double_ints.  Adjust for trailing_wide_ints <3> representation.
22606         (set_nonzero_bits): Likewise.
22607         (get_range_info): Return wide_ints rather than double_ints.
22608         Adjust for trailing_wide_ints <3> representation.
22609         (get_nonzero_bits): Likewise.
22610         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
22611         representation.
22612         * tree-ssanames.h (struct range_info_def): Replace min, max and
22613         nonzero_bits with a trailing_wide_ints <3>.
22614         (set_range_info): Use wide_int_refs rather than double_ints.
22615         (set_nonzero_bits): Likewise.
22616         (get_range_info): Return wide_ints rather than double_ints.
22617         (get_nonzero_bits): Likewise.
22618         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
22619         * tree-ssa-pre.c (phi_translate_1): Likewise.
22620         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
22621         (acceptable_pow_call): Likewise.
22622         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
22623         interfaces.
22624         (vn_reference_fold_indirect): Likewise.
22625         (vn_reference_maybe_forwprop_address): Likewise.
22626         (valueize_refs_1): Likewise.
22627         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
22628         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
22629         tree_int_cst_lt and tree_int_cst_le.
22630         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
22631         interfaces.
22632         (streamer_alloc_tree): Likewise.
22633         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
22634         (streamer_write_tree_header): Likewise.
22635         (streamer_write_integer_cst): Likewise.
22636         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22637         (build_constructors): Likewise.
22638         (array_value_type): Likewise.
22639         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
22640         (vect_check_gather): Likewise.
22641         * tree-vect-generic.c (build_replicated_const): Likewise.
22642         (expand_vector_divmod): Likewise.
22643         * tree-vect-loop.c (vect_transform_loop): Likewise.
22644         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
22645         (vect_do_peeling_for_alignment): Likewise.
22646         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
22647         * tree-vrp.c: Include wide-int.h.
22648         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
22649         (extract_range_from_assert): Use wide-int interfaces.
22650         (vrp_int_const_binop): Likewise.
22651         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
22652         double_int pointers.
22653         (ranges_from_anti_range): Use wide-int interfaces.
22654         (quad_int_cmp): Delete.
22655         (quad_int_pair_sort): Likewise.
22656         (extract_range_from_binary_expr_1): Use wide-int interfaces.
22657         (extract_range_from_unary_expr_1): Likewise.
22658         (adjust_range_with_scev): Likewise.
22659         (masked_increment): Take and return wide_ints rather than double_ints.
22660         (register_edge_assert_for_2): Use wide-int interfaces.
22661         (check_array_ref): Likewise.
22662         (search_for_addr_array): Likewise.
22663         (maybe_set_nonzero_bits): Likewise.
22664         (union_ranges): Pass an integer of the correct type instead of
22665         using integer_one_node.
22666         (intersect_ranges): Likewise.
22667         (simplify_truth_ops_using_ranges): Likewise.
22668         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
22669         (range_fits_type_p): Likewise.
22670         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
22671         a bool.
22672         (simplify_conversion_using_ranges): Use wide-int interfaces.
22673         (simplify_float_conversion_using_ranges): Likewise.
22674         (vrp_finalize): Likewise.
22675         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
22676         (gimple_stringops_transform): Likewise.
22677         * varasm.c (decode_addr_const): Likewise.
22678         (const_hash_1): Likewise.
22679         (const_rtx_hash_1): Likewise
22680         (output_constant): Likewise.
22681         (array_size_for_constructor): Likewise.
22682         (output_constructor_regular_field): Likewise.
22683         (output_constructor_bitfield): Likewise.
22684         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
22685         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
22686         GENERATOR_FILEs.
22687         * gencheck.c: Define BITS_PER_UNIT.
22688         * wide-int.cc: New.
22689         * wide-int.h: New.
22690         * wide-int-print.cc: New.
22691         * wide-int-print.h: New.
22692
22693 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22694
22695         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
22696
22697 2014-05-06  Richard Biener  <rguenther@suse.de>
22698
22699         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22700         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22701         (TODO_verify_all): Adjust.
22702         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22703         TODO_verify_stmts and TODO_verify_rtl_sharing.
22704         * bb-reorder.c: Likewise.
22705         * cfgexpand.c: Likewise.
22706         * cprop.c: Likewise.
22707         * cse.c: Likewise.
22708         * function.c: Likewise.
22709         * fwprop.c: Likewise.
22710         * gcse.c: Likewise.
22711         * gimple-ssa-isolate-paths.c: Likewise.
22712         * gimple-ssa-strength-reduction.c: Likewise.
22713         * ipa-split.c: Likewise.
22714         * loop-init.c: Likewise.
22715         * loop-unroll.c: Likewise.
22716         * lower-subreg.c: Likewise.
22717         * modulo-sched.c: Likewise.
22718         * postreload-gcse.c: Likewise.
22719         * predict.c: Likewise.
22720         * recog.c: Likewise.
22721         * sched-rgn.c: Likewise.
22722         * store-motion.c: Likewise.
22723         * tracer.c: Likewise.
22724         * trans-mem.c: Likewise.
22725         * tree-call-cdce.c: Likewise.
22726         * tree-cfg.c: Likewise.
22727         * tree-cfgcleanup.c: Likewise.
22728         * tree-complex.c: Likewise.
22729         * tree-eh.c: Likewise.
22730         * tree-emutls.c: Likewise.
22731         * tree-if-conv.c: Likewise.
22732         * tree-into-ssa.c: Likewise.
22733         * tree-loop-distribution.c: Likewise.
22734         * tree-object-size.c: Likewise.
22735         * tree-parloops.c: Likewise.
22736         * tree-pass.h: Likewise.
22737         * tree-sra.c: Likewise.
22738         * tree-ssa-ccp.c: Likewise.
22739         * tree-ssa-copy.c: Likewise.
22740         * tree-ssa-copyrename.c: Likewise.
22741         * tree-ssa-dce.c: Likewise.
22742         * tree-ssa-dom.c: Likewise.
22743         * tree-ssa-dse.c: Likewise.
22744         * tree-ssa-forwprop.c: Likewise.
22745         * tree-ssa-ifcombine.c: Likewise.
22746         * tree-ssa-loop-ch.c: Likewise.
22747         * tree-ssa-loop-ivcanon.c: Likewise.
22748         * tree-ssa-loop.c: Likewise.
22749         * tree-ssa-math-opts.c: Likewise.
22750         * tree-ssa-phiopt.c: Likewise.
22751         * tree-ssa-phiprop.c: Likewise.
22752         * tree-ssa-pre.c: Likewise.
22753         * tree-ssa-reassoc.c: Likewise.
22754         * tree-ssa-sink.c: Likewise.
22755         * tree-ssa-strlen.c: Likewise.
22756         * tree-ssa-tail-merge.c: Likewise.
22757         * tree-ssa-uncprop.c: Likewise.
22758         * tree-switch-conversion.c: Likewise.
22759         * tree-tailcall.c: Likewise.
22760         * tree-vect-generic.c: Likewise.
22761         * tree-vectorizer.c: Likewise.
22762         * tree-vrp.c: Likewise.
22763         * tsan.c: Likewise.
22764         * var-tracking.c: Likewise.
22765         * bt-load.c: Likewise.
22766         * cfgcleanup.c: Likewise.
22767         * combine-stack-adj.c: Likewise.
22768         * combine.c: Likewise.
22769         * compare-elim.c: Likewise.
22770         * config/epiphany/resolve-sw-modes.c: Likewise.
22771         * config/i386/i386.c: Likewise.
22772         * config/mips/mips.c: Likewise.
22773         * config/s390/s390.c: Likewise.
22774         * config/sh/sh_treg_combine.cc: Likewise.
22775         * config/sparc/sparc.c: Likewise.
22776         * dce.c: Likewise.
22777         * dse.c: Likewise.
22778         * final.c: Likewise.
22779         * ifcvt.c: Likewise.
22780         * mode-switching.c: Likewise.
22781         * passes.c: Likewise.
22782         * postreload.c: Likewise.
22783         * ree.c: Likewise.
22784         * reg-stack.c: Likewise.
22785         * regcprop.c: Likewise.
22786         * regrename.c: Likewise.
22787         * web.c: Likewise.
22788
22789 2014-05-06  Richard Biener  <rguenther@suse.de>
22790
22791         PR middle-end/61070
22792         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22793         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22794
22795 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
22796
22797         PR ipa/60965
22798         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22799
22800 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
22801             Tom de Vries  <tom@codesourcery.com>
22802
22803         * target.def (call_fusage_contains_non_callee_clobbers): New
22804         DEFHOOKPOD.
22805         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22806         Hooks to @menu.
22807         (@node Miscellaneous Register Hooks): New node.
22808         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22809         * doc/tm.texi: Regenerate.
22810
22811 2014-05-05  Marek Polacek  <polacek@redhat.com>
22812
22813         PR driver/61065
22814         * opts.c (common_handle_option): Call error_at instead of warning_at.
22815
22816 2014-05-05  Richard Biener  <rguenther@suse.de>
22817
22818         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22819         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
22820         under the TODO_verify_il umbrella.
22821
22822 2014-05-05  Richard Biener  <rguenther@suse.de>
22823
22824         * passes.c (execute_function_todo): Move TODO_verify_flow under
22825         the TODO_verify_ul umbrella.
22826
22827 2014-05-05  Richard Biener  <rguenther@suse.de>
22828
22829         PR middle-end/61010
22830         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22831         X & CST away from a CST that is the mask of a mode.
22832
22833 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22834
22835         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22836         int argument to enum machine_mode.
22837         (picochip_class_max_nregs): Ditto.
22838         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22839         (picochip_class_max_nregs): Ditto.
22840
22841 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22842
22843         * target.def: Add new target hook.
22844         * doc/tm.texi: Regenerate.
22845         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22846         * targhooks.c (default_keep_leaf_when_profiled): New function.
22847
22848         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22849         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22850
22851 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
22852
22853         PR tree-optimization/60363
22854         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22855         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
22856         (update_destination_phis): New parameter.
22857         (create_edge_and_update_destination_phis): Ditto.
22858         (ssa_fix_duplicate_block_edges): Pass new arguments.
22859         (thread_single_edge): Ditto.
22860
22861 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
22862
22863         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22864         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22865         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22866         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22867         Use RS6000_BTM_HARD_FLOAT.
22868         (BU_MISC_2): Likewise.
22869         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22870         RS6000_BTM_HARD_FLOAT.
22871         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22872         is explicitly used.
22873         (rs6000_invalid_builtin): Add hard floating builtin support.
22874         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22875         hard float builtins.
22876         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22877
22878 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22879
22880         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22881         Add missing function* argument.
22882
22883 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22884
22885         * lra-constraints.c (valid_address_p): Move earlier in file.
22886         Add a constraint argument to the address_info version.
22887         (satisfies_memory_constraint_p): New function.
22888         (satisfies_address_constraint_p): Likewise.
22889         (process_alt_operands, curr_insn_transform): Use them.
22890         (process_address): Pass the constraint to valid_address_p when
22891         checking address operands.
22892
22893 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22894
22895         * config/mips/mips.c (mips_isa_rev): New variable.
22896         (mips_set_architecture): Set it.
22897         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22898         from mips_isa_rev.
22899         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22900         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22901         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22902         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22903         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22904         conditions in terms of mips_isa_rev.
22905         (mips_isa_rev): Declare.
22906
22907 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22908
22909         * config/sh/sh-mem.cc: Use tabs instead of spaces.
22910         (prob_unlikely, prob_likely): Make variables const.
22911
22912 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
22913
22914         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22915
22916 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22917
22918         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22919
22920 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22921
22922         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22923         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22924         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22925         functions.
22926         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22927         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22928         sh_pass_in_reg_p.
22929         Replace usage of ROUND_REG with sh_round_reg.
22930         Use CEIL instead of ROUND_ADVANCE.
22931
22932 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22933
22934         PR target/61026
22935         * config/sh/sh.c: Include stdlib headers before everything else.
22936
22937 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
22938
22939         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22940         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22941         (gimplify_adjust_omp_clauses): Simd region is never
22942         directly nested in combined parallel.  Instead, for linear
22943         with copyin/copyout, if in combined for simd loop, make decl
22944         firstprivate/lastprivate on OMP_FOR.
22945         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22946         expand_omp_for_static_chunk): When setting endvar, also set
22947         fd->loop.v to the same value.
22948
22949 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22950
22951         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22952
22953 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
22954
22955         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22956         expression.
22957
22958 2014-05-02  Marek Polacek  <polacek@redhat.com>
22959
22960         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22961
22962 2014-05-02  Kito Cheng  <kito@0xlab.org>
22963
22964         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22965         to a C expression marco.
22966         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22967         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22968         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22969         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22970         HONOR_REG_ALLOC_ORDER.
22971         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22972
22973 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22974
22975         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22976
22977 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22978
22979         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22980
22981 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
22982
22983         * tree-if-conv.c (is_cond_scalar_reduction): New function.
22984         (convert_scalar_cond_reduction): Likewise.
22985         (predicate_scalar_phi): Add recognition and transformation
22986         of simple conditioanl reduction to be vectorizable.
22987
22988 2014-05-01  Marek Polacek  <polacek@redhat.com>
22989
22990         PR c/43245
22991         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22992
22993 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
22994
22995         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22996         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22997         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22998         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22999         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
23000         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
23001         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
23002         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
23003
23004 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
23005
23006         * config/arc/arc.opt (mlra): Move comment above option name
23007         to avoid mis-parsing as language options.
23008
23009 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23010
23011         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
23012         * config/sol2.h: ... here.
23013         * config/sol2-10.h: Remove.
23014
23015         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
23016         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
23017         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
23018         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
23019         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
23020         * config/sol2.h: ... here.
23021         (SECTION_NAME_FORMAT): Don't redefine.
23022         (STARTFILE_ARCH32_SPEC): Rename to ...
23023         (STARTFILE_ARCH_SPEC): ... this.
23024         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
23025         * config/sparc/sol2.h: ... here.
23026         (SECTION_NAME_FORMAT): Don't undef.
23027         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
23028         (SUBTARGET_EXTRA_SPECS): Remove.
23029         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
23030
23031         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
23032         (MD_STARTFILE_PREFIX): Remove.
23033         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
23034         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
23035         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
23036         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
23037         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
23038         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
23039         * config/i386/sol2.h: ... here.
23040         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
23041         * config/i386/sol2-bi.h: Remove.
23042         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
23043         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
23044
23045         * config/i386/t-sol2-64: Rename to ...
23046         * config/i386/t-sol2: ... this.
23047         * config/sparc/t-sol2-64: Rename to ...
23048         * config/sparc/t-sol2: ... this.
23049
23050         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
23051         sol2_tm_file_head, sol2_tm_file_tail.
23052         Include ${cpu_type}/sol2.h before sol2.h.
23053         Remove sol2-10.h.
23054         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
23055         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
23056         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
23057         Reflect i386/t-sol2-64 renaming.
23058         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
23059         Reflect sparc/t-sol2-64 renaming.
23060
23061 2014-04-30  Richard Biener  <rguenther@suse.de>
23062
23063         * passes.c (execute_function_todo): Move TODO_verify_stmts
23064         and TODO_verify_ssa under the TODO_verify_il umbrella.
23065         * tree-ssa.h (verify_ssa): Adjust prototype.
23066         * tree-ssa.c (verify_ssa): Add parameter to tell whether
23067         we should verify SSA operands.
23068         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
23069         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
23070         whether we should verify whether not throwing stmts have EH info.
23071         * graphite-scop-detection.c (create_sese_edges): Adjust.
23072         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
23073         * tree-eh.c (lower_try_finally_switch): Do not add the
23074         default case label twice.
23075
23076 2014-04-30  Marek Polacek  <polacek@redhat.com>
23077
23078         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
23079         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
23080         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
23081         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
23082
23083 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23084
23085         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
23086         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
23087         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
23088         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
23089         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
23090         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
23091         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
23092         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
23093
23094 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
23095
23096         * tree-cfg.c (dump_function_to_file): Dump the return type of
23097         functions, in a line to itself before the function body, mimicking
23098         the layout of a C function.
23099
23100 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
23101
23102         PR tree-optimization/60971
23103         * tree-tailcall.c (process_assignment): Reject conversions which
23104         reduce precision.
23105
23106 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
23107
23108         * calls.c (initialize_argument_information): Always treat
23109         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
23110         (expand_call): Likewise.
23111         (emit_library_call_calue_1): Likewise.
23112         * expr.c (PUSH_ARGS_REVERSED): Do not define.
23113         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
23114         code accordingly.
23115
23116 2014-04-29  Nick Clifton  <nickc@redhat.com>
23117
23118         * config/msp430/msp430.md (umulsidi): Fix typo.
23119         (mulhisi3): Enable even inside interrupt handlers.
23120         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
23121         bigger return address pushed in large mode.
23122
23123 2014-04-29  Nick Clifton  <nickc@redhat.com>
23124
23125         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
23126         (arc_init_reg_tables): Use a machine_mode enum to iterate over
23127         available modes.
23128         * config/m32r/m32r.c (init_reg_tables): Likewise.
23129         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
23130         enum to hold the modes.
23131
23132 2014-04-29  Richard Biener  <rguenther@suse.de>
23133
23134         * dominance.c (free_dominance_info): Add overload with
23135         function parameter.
23136         (dom_info_state): Likewise.
23137         (dom_info_available_p): Likewise.
23138         * basic-block.h (free_dominance_info, dom_info_state,
23139         dom_info_available_p): Declare overloads.
23140         * passes.c (execute_function_todo): Verify that verifiers
23141         don't change dominator info state.  Drop dominator info
23142         for IPA pass invocations.
23143         * cgraph.c (release_function_body): Restore asserts that
23144         dominator information is released.
23145
23146 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
23147
23148         * doc/invoke.texi: Fix typo.
23149         * tree-vrp.c: Fix typos.
23150         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
23151
23152 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23153
23154         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
23155
23156 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
23157
23158         * config/aarch64/aarch64-builtins.c
23159         (aarch64_types_storestruct_lane_qualifiers): New.
23160         (TYPES_STORESTRUCT_LANE): Likewise.
23161         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
23162         (st3_lane): Likewise.
23163         (st4_lane): Likewise.
23164         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
23165         (vec_store_lanesci_lane<mode>): Likewise.
23166         (vec_store_lanesxi_lane<mode>): Likewise.
23167         (aarch64_st2_lane<VQ:mode>): Likewise.
23168         (aarch64_st3_lane<VQ:mode>): Likewise.
23169         (aarch64_st4_lane<VQ:mode>): Likewise.
23170         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
23171         * config/aarch64/arm_neon.h
23172         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
23173         use new macro arguments.
23174         (__ST3_LANE_FUNC): Likewise.
23175         (__ST4_LANE_FUNC): Likewise.
23176         * config/aarch64/iterators.md (V_TWO_ELEM): New.
23177         (V_THREE_ELEM): Likewise.
23178         (V_FOUR_ELEM): Likewise.
23179
23180 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
23181
23182         * doc/gimple.texi: Replace the description of the now-defunct
23183         union gimple_statement_d with a diagram showing the
23184         gimple_statement_base class hierarchy and its relationships to
23185         the GSS_ and GIMPLE_ enums.
23186
23187 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
23188
23189         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
23190         * config/aarch64/aarch64.c
23191         (aarch64_cannot_change_mode_class): Weaken conditions.
23192         (aarch64_modes_tieable_p): New.
23193         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
23194
23195 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
23196
23197         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23198         (loadsync_<mode>): Change mode.
23199         (load_quadpti, store_quadpti): New.
23200         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23201         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23202
23203 2014-04-28  Martin Jambor  <mjambor@suse.cz>
23204
23205         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
23206         same alias type as the original statement.
23207         (subreplacement_assignment_data): New type.
23208         (handle_unscalarized_data_in_subtree): New type of parameter,
23209         generate new memory accesses with same alias type as the original
23210         statement.
23211         (load_assign_lhs_subreplacements): Likewise.
23212         (sra_modify_constructor_assign): Generate new memory accesses with
23213         same alias type as the original statement.
23214
23215 2014-04-28  Richard Biener  <rguenther@suse.de>
23216
23217         * tree-pass.h (TODO_verify_il): Define.
23218         (TODO_verify_all): Complete properly.
23219         * passes.c (execute_function_todo): Move existing loop-closed
23220         SSA verification under TODO_verify_il.
23221         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
23222         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
23223         Fix tree sharing issue.
23224
23225 2014-04-28  Richard Biener  <rguenther@suse.de>
23226
23227         PR middle-end/60092
23228         * builtins.def (DEF_C11_BUILTIN): Add.
23229         (BUILT_IN_ALIGNED_ALLOC): Likewise.
23230         * coretypes.h (enum function_class): Add function_c11_misc.
23231         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23232         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
23233         (call_may_clobber_ref_p_1): Likewise.
23234         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23235         (mark_all_reaching_defs_necessary_1): Likewise.
23236         (propagate_necessity): Likewise.
23237         (eliminate_unnecessary_stmts): Likewise.
23238         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
23239
23240 2014-04-28  Richard Biener  <rguenther@suse.de>
23241
23242         * tree-vrp.c (vrp_var_may_overflow): Remove.
23243         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
23244         with overflow immediately bump to one before that value and
23245         let iteration figure out overflow status.
23246
23247 2014-04-28  Richard Biener  <rguenther@suse.de>
23248
23249         * configure.ac: Do valgrind header checks unconditionally.
23250         Add --enable-valgrind-annotations.
23251         * system.h: Guard valgrind header inclusion with
23252         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
23253         * alloc-pool.c (pool_alloc, pool_free): Use
23254         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
23255         to guard possibly dead code.
23256         * config.in: Regenerated.
23257         * configure: Likewise.
23258
23259 2014-04-28  Jeff Law  <law@redhat.com>
23260
23261         PR tree-optimization/60902
23262         * tree-ssa-threadedge.c
23263         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
23264         over real defs when invalidating outputs from statements that do not
23265         produce useful outputs for threading.
23266
23267 2014-04-28  Richard Biener  <rguenther@suse.de>
23268
23269         PR tree-optimization/60979
23270         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
23271         SCOPs that end in a block with a successor with abnormal
23272         predecessors.
23273
23274 2014-04-28  Richard Biener  <rguenther@suse.de>
23275
23276         * tree-pass.h (execute_pass_list): Adjust prototype.
23277         * passes.c (pass_manager::execute_early_local_passes): Adjust.
23278         (do_per_function): Change callback signature, push all actual
23279         work to the callbals.
23280         (do_per_function_toporder): Likewise.
23281         (execute_function_dump): Adjust.
23282         (execute_function_todo): Likewise.
23283         (clear_last_verified): Likewise.
23284         (verify_curr_properties): Likewise.
23285         (update_properties_after_pass): Likewise.
23286         (execute_pass_list_1): Split out from ...
23287         (execute_pass_list): ... here.  Adjust.
23288         (execute_ipa_pass_list): Likewise.
23289         * cgraphunit.c (cgraph_add_new_function): Adjust.
23290         (analyze_function): Likewise.
23291         (expand_function): Likewise.
23292         * cgraph.c (release_function_body): Free dominance info
23293         here instead of asserting it was magically freed elsewhere.
23294
23295 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
23296
23297         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
23298         * configure: Regenerate.
23299         * config/sparc/sparc.opt (muser-mode): New option.
23300         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
23301         for LEON3.
23302         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
23303         * doc/invoke.texi (SPARC options): Document -muser-mode.
23304
23305 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
23306
23307         * cselib.c (find_slot_memmode): Delete.
23308         (cselib_hasher): Change compare_type to a struct.
23309         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
23310         constants.
23311         (preserve_constants_and_equivs): Adjust for new compare_type.
23312         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
23313         (wrap_constant): Delete.
23314         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
23315
23316 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
23317
23318         * doc/install.texi (Building with profile feedback): Remove
23319         outdated sentence.
23320
23321 2014-04-26  Tom de Vries  <tom@codesourcery.com>
23322
23323         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
23324         array accesses.
23325
23326 2014-04-25  Cary Coutant  <ccoutant@google.com>
23327
23328         PR debug/60929
23329         * dwarf2out.c (should_move_die_to_comdat): A type definition
23330         can contain a subprogram definition, but don't move it to a
23331         comdat unit.
23332         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
23333         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
23334         from original DIE.
23335         (clone_tree_hash): Rename to...
23336         (clone_tree_partial): ...this; change callers.  Copy
23337         DW_TAG_subprogram DIEs as declarations.
23338         (copy_decls_walk): Don't copy children of a declaration into a
23339         type unit.
23340
23341 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
23342
23343         PR target/60969
23344         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
23345         alternative 12.
23346
23347 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
23348
23349         * config/arm/predicates.md (call_insn_operand): Add long_call check.
23350         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
23351         reg for long_call.
23352         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
23353         restriction.
23354
23355 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23356
23357         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
23358
23359 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23360
23361         PR tree-optimization/60930
23362         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
23363         creating a multiply candidate by folding two constant
23364         multiplicands when the result overflows.
23365
23366 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
23367
23368         PR tree-optimization/60960
23369         * tree-vect-generic.c (expand_vector_operation): Only call
23370         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
23371
23372 2014-04-25  Tom de Vries  <tom@codesourcery.com>
23373
23374         * expr.c (clobber_reg_mode): New function.
23375         * expr.h (clobber_reg): New function.
23376
23377 2014-04-25  Tom de Vries  <tom@codesourcery.com>
23378
23379         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
23380         clobbers.
23381
23382 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
23383             Tom de Vries  <tom@codesourcery.com>
23384
23385         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
23386         handle.
23387         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
23388         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
23389         new argument to find_all_hard_reg_sets call.
23390
23391 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23392
23393         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
23394         Use HOST_WIDE_INT_C for mask literal.
23395         (aarch_rev16_shleft_mask_imm_p): Likewise.
23396
23397 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
23398
23399         PR target/60941
23400         * config/sparc/sparc.md (ashlsi3_extend): Delete.
23401
23402 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
23403
23404         PR preprocessor/56540
23405         * config/i386/i386-c.c (ix86_target_macros): Define
23406         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
23407
23408 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23409
23410         * configure.ac (tga_func): Remove.
23411         (LIB_TLS_SPEC): Remove.
23412         * configure: Regenerate.
23413         * config.in: Regenerate.
23414         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
23415
23416 2014-04-25  Richard Biener  <rguenther@suse.de>
23417
23418         PR ipa/60912
23419         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
23420         call stmt use/clobber sets during stmt walk instead of
23421         walking the possibly incomplete set of caller edges.
23422
23423 2014-04-25  Richard Biener  <rguenther@suse.de>
23424
23425         PR ipa/60911
23426         * passes.c (apply_ipa_transforms): Inline into only caller ...
23427         (execute_one_pass): ... here.  Properly bring in function
23428         bodies for nodes we want to apply IPA transforms to.
23429
23430 2014-04-24  Cong Hou  <congh@google.com>
23431
23432         PR tree-optimization/60896
23433         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
23434         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
23435         (vect_mark_pattern_stmts): Set the def type of all statements in
23436         PATTERN_DEF_SEQ as vect_internal_def.
23437
23438 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23439
23440         * doc/extend.texi (PowerPC Built-in Functions): Document new
23441         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
23442         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
23443
23444         * config/rs6000/predicates.md (const_0_to_3_operand): New
23445         predicate to match 0..3 integer constants.
23446
23447         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
23448         to support adding miscellaneous builtin functions.
23449         (BU_DFP_MISC_2): Likewise.
23450         (BU_P7_MISC_1): Likewise.
23451         (BU_P7_MISC_2): Likewise.
23452         (BU_P8V_MISC_3): Likewise.
23453         (BU_MISC_1): Likewise.
23454         (BU_MISC_2): Likewise.
23455         (DIVWE): Add extended divide builtin functions.
23456         (DIVWEO): Likewise.
23457         (DIVWEU): Likewise.
23458         (DIVWEUO): Likewise.
23459         (DIVDE): Likewise.
23460         (DIVDEO): Likewise.
23461         (DIVDEU): Likewise.
23462         (DIVDEUO): Likewise.
23463         (DXEX): Add decimal floating-point builtin functions.
23464         (DXEXQ): Likewise.
23465         (DDEDPD): Likewise.
23466         (DDEDPDQ): Likewise.
23467         (DENBCD): Likewise.
23468         (DENBCDQ): Likewise.
23469         (DIEX): Likewise.
23470         (DIEXQ): Likewise.
23471         (DSCLI): Likewise.
23472         (DSCLIQ): Likewise.
23473         (DSCRI): Likewise.
23474         (DSCRIQ): Likewise.
23475         (CDTBCD): Add new BCD builtin functions.
23476         (CBCDTD): Likewise.
23477         (ADDG6S): Likewise.
23478         (BCDADD): Likewise.
23479         (BCDADD_LT): Likewise.
23480         (BCDADD_EQ): Likewise.
23481         (BCDADD_GT): Likewise.
23482         (BCDADD_OV): Likewise.
23483         (BCDSUB): Likewise.
23484         (BCDSUB_LT): Likewise.
23485         (BCDSUB_EQ): Likewise.
23486         (BCDSUB_GT): Likewise.
23487         (BCDSUB_OV): Likewise.
23488         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
23489         (UNPACK_TD): Likewise.
23490         (PACK_TF): Likewise.
23491         (UNPACK_TF): Likewise.
23492         (UNPACK_TF_0): Likewise.
23493         (UNPACK_TF_1): Likewise.
23494         (PACK_V1TI): Likewise.
23495         (UNPACK_V1TI): Likewise.
23496
23497         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23498         support for decimal floating point builtin functions.
23499         (rs6000_expand_ternop_builtin): Add checks for the new builtin
23500         functions that take constant arguments.
23501         (rs6000_invalid_builtin): Add decimal floating point builtin support.
23502         (rs6000_init_builtins): Setup long double, _Decimal64, and
23503         _Decimal128 types for new builtin functions.
23504         (builtin_function_type): Set the unsigned flags appropriately for
23505         the new builtin functions.
23506         (rs6000_opt_masks): Add support for decimal floating point builtin
23507         functions.
23508
23509         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
23510         floating point builtin functions.
23511         (RS6000_BTM_COMMON): Likewise.
23512         (RS6000_BTI_long_double): Likewise.
23513         (RS6000_BTI_dfloat64): Likewise.
23514         (RS6000_BTI_dfloat128): Likewise.
23515         (long_double_type_internal_node): Likewise.
23516         (dfloat64_type_internal_node): Likewise.
23517         (dfloat128_type_internal_node): Likewise.
23518
23519         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
23520         2.07 bcd arithmetic instructions.
23521         (UNSPEC_BCDSUB): Likewise.
23522         (UNSPEC_BCD_OVERFLOW): Likewise.
23523         (UNSPEC_BCD_ADD_SUB): Likewise.
23524         (bcd_add_sub): Likewise.
23525         (BCD_TEST): Likewise.
23526         (bcd<bcd_add_sub>): Likewise.
23527         (bcd<bcd_add_sub>_test): Likewise.
23528         (bcd<bcd_add_sub>_test2): Likewise.
23529         (bcd<bcd_add_sub>_<code>): Likewise.
23530         (peephole2 for combined bcd ops): Likewise.
23531
23532         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
23533         decimal floating point builtin functions.
23534         (UNSPEC_DENBCD): Likewise.
23535         (UNSPEC_DXEX): Likewise.
23536         (UNSPEC_DIEX): Likewise.
23537         (UNSPEC_DSCLI): Likewise.
23538         (UNSPEC_DSCRI): Likewise.
23539         (D64_D128): Likewise.
23540         (dfp_suffix): Likewise.
23541         (dfp_ddedpd_<mode>): Likewise.
23542         (dfp_denbcd_<mode>): Likewise.
23543         (dfp_dxex_<mode>): Likewise.
23544         (dfp_diex_<mode>): Likewise.
23545         (dfp_dscli_<mode>): Likewise.
23546         (dfp_dscri_<mode>): Likewise.
23547
23548         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
23549         builtin functions.
23550         (UNSPEC_CDTBCD): Likewise.
23551         (UNSPEC_CBCDTD): Likewise.
23552         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
23553         (UNSPEC_DIVEO): Likewise.
23554         (UNSPEC_DIVEU): Likewise.
23555         (UNSPEC_DIVEUO): Likewise.
23556         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
23557         pack/unpack 128-bit types.
23558         (UNSPEC_PACK_128BIT): Likewise.
23559         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
23560         (udiv<mode>3): Use idiv_ldiv mode attribute.
23561         (div<mode>3): Likewise.
23562         (addg6s): Add new BCD builtin functions.
23563         (cdtbcd): Likewise.
23564         (cbcdtd): Likewise.
23565         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
23566         (div_extend): Likewise.
23567         (div<div_extend>_<mode>"): Likewise.
23568         (FP128_64): Add support for new builtin functions to pack/unpack
23569         128-bit types.
23570         (unpack<mode>): Likewise.
23571         (unpacktf_0): Likewise.
23572         (unpacktf_1): Likewise.
23573         (unpack<mode>_dm): Likewise.
23574         (unpack<mode>_nodm): Likewise.
23575         (pack<mode>): Likewise.
23576         (unpackv1ti): Likewise.
23577         (packv1ti): Likewise.
23578
23579 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
23580
23581         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
23582         is disabled.
23583
23584 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
23585
23586         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
23587         * gimplify.c (omp_is_private): Change last argument's type to int.
23588         Only diagnose lastprivate if the simd argument is 1, only diagnose
23589         linear if the simd argument is 2.
23590         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
23591         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
23592         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
23593         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
23594         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
23595         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23596         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
23597         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23598         * tree-nested.c (convert_nonlocal_omp_clauses,
23599         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
23600
23601 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
23602
23603         PR target/60822
23604         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
23605         operand 1.
23606
23607 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
23608
23609         * flag-types.h (enum ivar_visibility): Add.
23610
23611 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
23612
23613         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
23614         function * argument.
23615
23616 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
23617
23618         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
23619
23620 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
23621             Tom de Vries  <tom@codesourcery.com>
23622
23623         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
23624         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
23625         reg-note.
23626         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
23627         * emit-rtl.c (try_split): Same.
23628
23629 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
23630             Tom de Vries  <tom@codesourcery.com>
23631
23632         * common.opt (fuse-caller-save): New option.
23633
23634 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
23635
23636         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
23637         elements for big-endian.
23638
23639 2014-04-24  Richard Biener  <rguenther@suse.de>
23640
23641         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
23642         during TER and instead use the sepops interface for expanding
23643         non-GIMPLE_SINGLE_RHS.
23644
23645 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23646
23647         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
23648         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
23649
23650 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23651
23652         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
23653         assembler 64-bit option.
23654         * configure: Regenerate.
23655
23656 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23657
23658         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
23659         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
23660         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
23661         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
23662         (TARGET_CRYPTO): Take TARGET_SIMD into account.
23663
23664 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23665
23666         * config/aarch64/aarch64-builtins.c
23667         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
23668         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
23669         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
23670         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
23671         builtins.
23672         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
23673         (Vrevsuff): New mode attribute.
23674
23675 2014-04-24  Terry Guo  <terry.guo@arm.com>
23676
23677         * config/arm/arm.h (machine_function): Define variable
23678         after_arm_reorg here.
23679         * config/arm/arm.c (after_arm_reorg): Remove the definition.
23680         (arm_split_constant): Update the way to access variable
23681         after_arm_reorg.
23682         (arm_reorg): Ditto.
23683         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
23684
23685 2014-04-23  Tom de Vries  <tom@codesourcery.com>
23686
23687         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
23688
23689 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
23690
23691         * is-a.h: Update comments to reflect the following changes to the
23692         "pointerness" of the API, making the template parameter match the
23693         return type, allowing use of is-a.h with typedefs of pointers.
23694         (is_a_helper::cast): Return a T rather then a pointer to a T, so
23695         that the return type matches the parameter to the is_a_helper.
23696         (as_a): Likewise.
23697         (dyn_cast): Likewise.
23698
23699         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23700         pointer from the is-a.h API.
23701
23702         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23703         (is_a_helper <cgraph_node *>::test): ...this, matching change to
23704         is-a.h API.
23705         (is_a_helper <varpool_node>::test): Likewise, convert to...
23706         (is_a_helper <varpool_node *>::test): ...this.
23707
23708         (varpool_first_variable): Update for removal of implicit pointer
23709         from the is-a.h API.
23710         (varpool_next_variable): Likewise.
23711         (varpool_first_static_initializer): Likewise.
23712         (varpool_next_static_initializer): Likewise.
23713         (varpool_first_defined_variable): Likewise.
23714         (varpool_next_defined_variable): Likewise.
23715         (cgraph_first_defined_function): Likewise.
23716         (cgraph_next_defined_function): Likewise.
23717         (cgraph_first_function): Likewise.
23718         (cgraph_next_function): Likewise.
23719         (cgraph_first_function_with_gimple_body): Likewise.
23720         (cgraph_next_function_with_gimple_body): Likewise.
23721         (cgraph_alias_target): Likewise.
23722         (varpool_alias_target): Likewise.
23723         (cgraph_function_or_thunk_node): Likewise.
23724         (varpool_variable_node): Likewise.
23725         (symtab_real_symbol_p): Likewise.
23726         * cgraphunit.c (referred_to_p): Likewise.
23727         (analyze_functions): Likewise.
23728         (handle_alias_pairs): Likewise.
23729         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23730         * gimple-ssa.h (gimple_vuse_op): Likewise.
23731         (gimple_vdef_op): Likewise.
23732         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23733         * gimple.c (gimple_build_asm_1): Likewise.
23734         (gimple_build_try): Likewise.
23735         (gimple_build_resx): Likewise.
23736         (gimple_build_eh_dispatch): Likewise.
23737         (gimple_build_omp_for): Likewise.
23738         (gimple_omp_for_set_clauses): Likewise.
23739
23740         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23741         (is_a_helper <gimple_statement_asm *>::test): ...this.
23742         (is_a_helper <gimple_statement_bind>::test): Convert to...
23743         (is_a_helper <gimple_statement_bind *>::test): ...this.
23744         (is_a_helper <gimple_statement_call>::test): Convert to...
23745         (is_a_helper <gimple_statement_call *>::test): ...this.
23746         (is_a_helper <gimple_statement_catch>::test): Convert to...
23747         (is_a_helper <gimple_statement_catch *>::test): ...this.
23748         (is_a_helper <gimple_statement_resx>::test): Convert to...
23749         (is_a_helper <gimple_statement_resx *>::test): ...this.
23750         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23751         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23752         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23753         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23754         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23755         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23756         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23757         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23758         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23759         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23760         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23761         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23762         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23763         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23764         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23765         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23766         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23767         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23768         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23769         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23770         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23771         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23772         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23773         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23774         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23775         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23776         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23777         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23778         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23779         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23780         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23781         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23782         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23783         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23784         (is_a_helper <gimple_statement_phi>::test): Convert to...
23785         (is_a_helper <gimple_statement_phi *>::test): ...this.
23786         (is_a_helper <gimple_statement_transaction>::test): Convert to...
23787         (is_a_helper <gimple_statement_transaction *>::test): ...this.
23788         (is_a_helper <gimple_statement_try>::test): Convert to...
23789         (is_a_helper <gimple_statement_try *>::test): ...this.
23790         (is_a_helper <gimple_statement_wce>::test): Convert to...
23791         (is_a_helper <gimple_statement_wce *>::test): ...this.
23792         (is_a_helper <const gimple_statement_asm>::test): Convert to...
23793         (is_a_helper <const gimple_statement_asm *>::test): ...this.
23794         (is_a_helper <const gimple_statement_bind>::test): Convert to...
23795         (is_a_helper <const gimple_statement_bind *>::test): ...this.
23796         (is_a_helper <const gimple_statement_call>::test): Convert to...
23797         (is_a_helper <const gimple_statement_call *>::test): ...this.
23798         (is_a_helper <const gimple_statement_catch>::test): Convert to...
23799         (is_a_helper <const gimple_statement_catch *>::test): ...this.
23800         (is_a_helper <const gimple_statement_resx>::test): Convert to...
23801         (is_a_helper <const gimple_statement_resx *>::test): ...this.
23802         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23803         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23804         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23805         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23806         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23807         Convert to...
23808         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23809         ...this.
23810         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23811         Convert to...
23812         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23813         ...this.
23814         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23815         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23816         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23817         to...
23818         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23819         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23820         to...
23821         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23822         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23823         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23824         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23825         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23826         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23827         to...
23828         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23829         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23830         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23831         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23832         to...
23833         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23834         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23835         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23836         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23837         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23838         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23839         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23840         (is_a_helper <const gimple_statement_phi>::test): Convert to...
23841         (is_a_helper <const gimple_statement_phi *>::test): ...this.
23842         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23843         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23844         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23845         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23846         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23847         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23848         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23849         to...
23850         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23851         ...this.
23852         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23853         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23854
23855         (gimple_use_ops): Update for removal of implicit pointer from the
23856         is-a.h API.
23857         (gimple_set_use_ops): Likewise.
23858         (gimple_vuse): Likewise.
23859         (gimple_vdef): Likewise.
23860         (gimple_vuse_ptr): Likewise.
23861         (gimple_vdef_ptr): Likewise.
23862         (gimple_set_vuse): Likewise.
23863         (gimple_set_vdef): Likewise.
23864         (gimple_omp_return_set_lhs): Likewise.
23865         (gimple_omp_return_lhs): Likewise.
23866         (gimple_omp_return_lhs_ptr): Likewise.
23867         (gimple_call_fntype): Likewise.
23868         (gimple_call_set_fntype): Likewise.
23869         (gimple_call_set_internal_fn): Likewise.
23870         (gimple_call_use_set): Likewise.
23871         (gimple_call_clobber_set): Likewise.
23872         (gimple_bind_vars): Likewise.
23873         (gimple_bind_set_vars): Likewise.
23874         (gimple_bind_body_ptr): Likewise.
23875         (gimple_bind_set_body): Likewise.
23876         (gimple_bind_add_stmt): Likewise.
23877         (gimple_bind_block): Likewise.
23878         (gimple_bind_set_block): Likewise.
23879         (gimple_asm_ninputs): Likewise.
23880         (gimple_asm_noutputs): Likewise.
23881         (gimple_asm_nclobbers): Likewise.
23882         (gimple_asm_nlabels): Likewise.
23883         (gimple_asm_input_op): Likewise.
23884         (gimple_asm_input_op_ptr): Likewise.
23885         (gimple_asm_output_op): Likewise.
23886         (gimple_asm_output_op_ptr): Likewise.
23887         (gimple_asm_set_output_op): Likewise.
23888         (gimple_asm_clobber_op): Likewise.
23889         (gimple_asm_set_clobber_op): Likewise.
23890         (gimple_asm_label_op): Likewise.
23891         (gimple_asm_set_label_op): Likewise.
23892         (gimple_asm_string): Likewise.
23893         (gimple_catch_types): Likewise.
23894         (gimple_catch_types_ptr): Likewise.
23895         (gimple_catch_handler_ptr): Likewise.
23896         (gimple_catch_set_types): Likewise.
23897         (gimple_catch_set_handler): Likewise.
23898         (gimple_eh_filter_types): Likewise.
23899         (gimple_eh_filter_types_ptr): Likewise.
23900         (gimple_eh_filter_failure_ptr): Likewise.
23901         (gimple_eh_filter_set_types): Likewise.
23902         (gimple_eh_filter_set_failure): Likewise.
23903         (gimple_eh_must_not_throw_fndecl): Likewise.
23904         (gimple_eh_must_not_throw_set_fndecl): Likewise.
23905         (gimple_eh_else_n_body_ptr): Likewise.
23906         (gimple_eh_else_e_body_ptr): Likewise.
23907         (gimple_eh_else_set_n_body): Likewise.
23908         (gimple_eh_else_set_e_body): Likewise.
23909         (gimple_try_eval_ptr): Likewise.
23910         (gimple_try_cleanup_ptr): Likewise.
23911         (gimple_try_set_eval): Likewise.
23912         (gimple_try_set_cleanup): Likewise.
23913         (gimple_wce_cleanup_ptr): Likewise.
23914         (gimple_wce_set_cleanup): Likewise.
23915         (gimple_phi_capacity): Likewise.
23916         (gimple_phi_num_args): Likewise.
23917         (gimple_phi_result): Likewise.
23918         (gimple_phi_result_ptr): Likewise.
23919         (gimple_phi_set_result): Likewise.
23920         (gimple_phi_arg): Likewise.
23921         (gimple_phi_set_arg): Likewise.
23922         (gimple_resx_region): Likewise.
23923         (gimple_resx_set_region): Likewise.
23924         (gimple_eh_dispatch_region): Likewise.
23925         (gimple_eh_dispatch_set_region): Likewise.
23926         (gimple_omp_critical_name): Likewise.
23927         (gimple_omp_critical_name_ptr): Likewise.
23928         (gimple_omp_critical_set_name): Likewise.
23929         (gimple_omp_for_clauses): Likewise.
23930         (gimple_omp_for_clauses_ptr): Likewise.
23931         (gimple_omp_for_set_clauses): Likewise.
23932         (gimple_omp_for_collapse): Likewise.
23933         (gimple_omp_for_index): Likewise.
23934         (gimple_omp_for_index_ptr): Likewise.
23935         (gimple_omp_for_set_index): Likewise.
23936         (gimple_omp_for_initial): Likewise.
23937         (gimple_omp_for_initial_ptr): Likewise.
23938         (gimple_omp_for_set_initial): Likewise.
23939         (gimple_omp_for_final): Likewise.
23940         (gimple_omp_for_final_ptr): Likewise.
23941         (gimple_omp_for_set_final): Likewise.
23942         (gimple_omp_for_incr): Likewise.
23943         (gimple_omp_for_incr_ptr): Likewise.
23944         (gimple_omp_for_set_incr): Likewise.
23945         (gimple_omp_for_pre_body_ptr): Likewise.
23946         (gimple_omp_for_set_pre_body): Likewise.
23947         (gimple_omp_parallel_clauses): Likewise.
23948         (gimple_omp_parallel_clauses_ptr): Likewise.
23949         (gimple_omp_parallel_set_clauses): Likewise.
23950         (gimple_omp_parallel_child_fn): Likewise.
23951         (gimple_omp_parallel_child_fn_ptr): Likewise.
23952         (gimple_omp_parallel_set_child_fn): Likewise.
23953         (gimple_omp_parallel_data_arg): Likewise.
23954         (gimple_omp_parallel_data_arg_ptr): Likewise.
23955         (gimple_omp_parallel_set_data_arg): Likewise.
23956         (gimple_omp_task_clauses): Likewise.
23957         (gimple_omp_task_clauses_ptr): Likewise.
23958         (gimple_omp_task_set_clauses): Likewise.
23959         (gimple_omp_task_child_fn): Likewise.
23960         (gimple_omp_task_child_fn_ptr): Likewise.
23961         (gimple_omp_task_set_child_fn): Likewise.
23962         (gimple_omp_task_data_arg): Likewise.
23963         (gimple_omp_task_data_arg_ptr): Likewise.
23964         (gimple_omp_task_set_data_arg): Likewise.
23965         (gimple_omp_taskreg_clauses): Likewise.
23966         (gimple_omp_taskreg_clauses_ptr): Likewise.
23967         (gimple_omp_taskreg_set_clauses): Likewise.
23968         (gimple_omp_taskreg_child_fn): Likewise.
23969         (gimple_omp_taskreg_child_fn_ptr): Likewise.
23970         (gimple_omp_taskreg_set_child_fn): Likewise.
23971         (gimple_omp_taskreg_data_arg): Likewise.
23972         (gimple_omp_taskreg_data_arg_ptr): Likewise.
23973         (gimple_omp_taskreg_set_data_arg): Likewise.
23974         (gimple_omp_task_copy_fn): Likewise.
23975         (gimple_omp_task_copy_fn_ptr): Likewise.
23976         (gimple_omp_task_set_copy_fn): Likewise.
23977         (gimple_omp_task_arg_size): Likewise.
23978         (gimple_omp_task_arg_size_ptr): Likewise.
23979         (gimple_omp_task_set_arg_size): Likewise.
23980         (gimple_omp_task_arg_align): Likewise.
23981         (gimple_omp_task_arg_align_ptr): Likewise.
23982         (gimple_omp_task_set_arg_align): Likewise.
23983         (gimple_omp_single_clauses): Likewise.
23984         (gimple_omp_single_clauses_ptr): Likewise.
23985         (gimple_omp_single_set_clauses): Likewise.
23986         (gimple_omp_target_clauses): Likewise.
23987         (gimple_omp_target_clauses_ptr): Likewise.
23988         (gimple_omp_target_set_clauses): Likewise.
23989         (gimple_omp_target_child_fn): Likewise.
23990         (gimple_omp_target_child_fn_ptr): Likewise.
23991         (gimple_omp_target_set_child_fn): Likewise.
23992         (gimple_omp_target_data_arg): Likewise.
23993         (gimple_omp_target_data_arg_ptr): Likewise.
23994         (gimple_omp_target_set_data_arg): Likewise.
23995         (gimple_omp_teams_clauses): Likewise.
23996         (gimple_omp_teams_clauses_ptr): Likewise.
23997         (gimple_omp_teams_set_clauses): Likewise.
23998         (gimple_omp_sections_clauses): Likewise.
23999         (gimple_omp_sections_clauses_ptr): Likewise.
24000         (gimple_omp_sections_set_clauses): Likewise.
24001         (gimple_omp_sections_control): Likewise.
24002         (gimple_omp_sections_control_ptr): Likewise.
24003         (gimple_omp_sections_set_control): Likewise.
24004         (gimple_omp_for_set_cond): Likewise.
24005         (gimple_omp_for_cond): Likewise.
24006         (gimple_omp_atomic_store_set_val): Likewise.
24007         (gimple_omp_atomic_store_val): Likewise.
24008         (gimple_omp_atomic_store_val_ptr): Likewise.
24009         (gimple_omp_atomic_load_set_lhs): Likewise.
24010         (gimple_omp_atomic_load_lhs): Likewise.
24011         (gimple_omp_atomic_load_lhs_ptr): Likewise.
24012         (gimple_omp_atomic_load_set_rhs): Likewise.
24013         (gimple_omp_atomic_load_rhs): Likewise.
24014         (gimple_omp_atomic_load_rhs_ptr): Likewise.
24015         (gimple_omp_continue_control_def): Likewise.
24016         (gimple_omp_continue_control_def_ptr): Likewise.
24017         (gimple_omp_continue_set_control_def): Likewise.
24018         (gimple_omp_continue_control_use): Likewise.
24019         (gimple_omp_continue_control_use_ptr): Likewise.
24020         (gimple_omp_continue_set_control_use): Likewise.
24021         (gimple_transaction_body_ptr): Likewise.
24022         (gimple_transaction_label): Likewise.
24023         (gimple_transaction_label_ptr): Likewise.
24024         (gimple_transaction_set_body): Likewise.
24025         (gimple_transaction_set_label): Likewise.
24026
24027         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
24028         * ipa-inline-analysis.c (inline_write_summary): Likewise.
24029         * ipa-ref.c (ipa_record_reference): Likewise.
24030         * ipa-reference.c (analyze_function): Likewise.
24031         (ipa_reference_write_optimization_summary): Likewise.
24032         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
24033         (address_taken_from_non_vtable_p): Likewise.
24034         (comdat_can_be_unshared_p_1): Likewise.
24035         * lto-cgraph.c (lto_output_ref): Likewise.
24036         (add_references): Likewise.
24037         (compute_ltrans_boundary): Likewise.
24038         (output_symtab): Likewise.
24039         (input_ref): Likewise.
24040         (input_cgraph_1): Likewise.
24041         (output_cgraph_opt_summary): Likewise.
24042         * lto-streamer-out.c (lto_output): Likewise.
24043         (output_symbol_p): Likewise.
24044         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
24045         (lsei_start_function_in_partition): Likewise.
24046         (lsei_next_variable_in_partition): Likewise.
24047         (lsei_start_variable_in_partition): Likewise.
24048         * symtab.c (insert_to_assembler_name_hash): Likewise.
24049         (unlink_from_assembler_name_hash): Likewise.
24050         (symtab_unregister_node): Likewise.
24051         (symtab_remove_node): Likewise.
24052         (dump_symtab_node): Likewise.
24053         (verify_symtab_base): Likewise.
24054         (verify_symtab_node): Likewise.
24055         (symtab_make_decl_local): Likewise.
24056         (symtab_alias_ultimate_target): Likewise.
24057         (symtab_resolve_alias): Likewise.
24058         (symtab_get_symbol_partitioning_class): Likewise.
24059         * tree-phinodes.c (allocate_phi_node): Likewise.
24060         (reserve_phi_args_for_new_edge): Likewise.
24061         (remove_phi_args): Likewise.
24062         * varpool.c (varpool_node_for_asm): Likewise.
24063         (varpool_remove_unreferenced_decls): Likewise.
24064
24065 2014-04-23  Jeff Law  <law@redhat.com>
24066
24067         PR tree-optimization/60902
24068         * tree-ssa-threadedge.c
24069         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
24070         invalidate outputs from statements that do not produce useful
24071         outputs for threading.
24072
24073 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
24074
24075         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
24076         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
24077         machine descriptions for Stack Smashing Protector.
24078
24079 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
24080
24081         * aarch64.md (<optab>_rol<mode>3): New pattern.
24082         (<optab>_rolsi3_uxtw): Likewise.
24083         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
24084
24085 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
24086
24087         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
24088         (arm_cortex_a12_tune): Likewise.
24089
24090 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24091
24092         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
24093
24094 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24095
24096         * config/arm/arm.md (arm_rev16si2): New pattern.
24097         (arm_rev16si2_alt): Likewise.
24098         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
24099
24100 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24101
24102         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
24103         (rev16<mode>2_alt): Likewise.
24104         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
24105         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
24106         (aarch_rev16_shleft_mask_imm_p): Likewise.
24107         (aarch_rev16_p_1): Likewise.
24108         (aarch_rev16_p): Likewise.
24109         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
24110         (aarch_rev16_shright_mask_imm_p): Likewise.
24111         (aarch_rev16_shleft_mask_imm_p): Likewise.
24112
24113 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24114
24115         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
24116         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
24117         rev cost.
24118         (cortex_a53_extra_costs): Likewise.
24119         (cortex_a57_extra_costs): Likewise.
24120         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
24121         (cortexa7_extra_costs): Likewise.
24122         (cortexa8_extra_costs): Likewise.
24123         (cortexa12_extra_costs): Likewise.
24124         (cortexa15_extra_costs): Likewise.
24125         (v7m_extra_costs): Likewise.
24126         (arm_new_rtx_costs): Handle BSWAP.
24127
24128 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24129
24130         * config/arm/arm.c (cortexa8_extra_costs): New table.
24131         (arm_cortex_a8_tune): New tuning struct.
24132         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
24133
24134 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24135
24136         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
24137
24138 2014-04-23  Richard Biener  <rguenther@suse.de>
24139
24140         * Makefile.in (OBJS): Remove loop-unswitch.o.
24141         * tree-pass.h (make_pass_rtl_unswitch): Remove.
24142         * passes.def (pass_rtl_unswitch): Likewise.
24143         * loop-init.c (gate_rtl_unswitch): Likewise.
24144         (rtl_unswitch): Likewise.
24145         (pass_data_rtl_unswitch): Likewise.
24146         (pass_rtl_unswitch): Likewise.
24147         (make_pass_rtl_unswitch): Likewise.
24148         * rtl.h (reversed_condition): Likewise.
24149         (compare_and_jump_seq): Likewise.
24150         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
24151         and make static.
24152         * loop-unroll.c (compare_and_jump_seq): Likewise.
24153
24154 2014-04-23  Richard Biener  <rguenther@suse.de>
24155
24156         PR tree-optimization/60903
24157         * tree-ssa-loop-im.c (analyze_memory_references): Remove
24158         commented code block.
24159         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
24160         loop flags to newly created BBs and edges.
24161
24162 2014-04-23  Nick Clifton  <nickc@redhat.com>
24163
24164         * config/msp430/msp430.c (msp430_handle_option): Move function
24165         to msp430-common.c
24166         (msp430_option_override): Simplify mcu and mcpu option handling.
24167         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
24168         support for -mhwmult command line option.
24169         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
24170         -mhwmult command line option.
24171         (msp430_hwmult_enabled): Delete.
24172         (msp43o_output_labelref): Add support for -mhwmult command line option.
24173         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
24174         (umulsidi3): Likewise.
24175         * config/msp430/msp430.opt (mmcu): Add Report attribute.
24176         (mcpu, mlarge, msmall): Likewise.
24177         (mhwmult): New option.
24178         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
24179         prototype.
24180         (msp430_is_f5_mcu): Remove prototype.
24181         (msp430_use_f5_series_hwmult): Add prototype.
24182         * config/msp430/msp430-opts.h: New file.
24183         * common/config/msp430: New directory.
24184         * common/config/msp430/msp430-common.c: New file.
24185         * config.gcc (msp430): Remove target_has_targetm_common.
24186         * doc/invoke.texi: Document -mhwmult command line option.
24187
24188 2014-04-23  Nick Clifton  <nickc@redhat.com>
24189
24190         * config/i386/cygwin.h (ENDFILE_SPEC): Include
24191         default-manifest.o if it can be found in the search path.
24192         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
24193
24194 2014-04-23  Terry Guo  <terry.guo@arm.com>
24195
24196         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
24197
24198 2014-04-23  Richard Biener  <rguenther@suse.de>
24199
24200         PR middle-end/60895
24201         * tree-inline.c (declare_return_variable): Use mark_addressable.
24202
24203 2014-04-23  Richard Biener  <rguenther@suse.de>
24204
24205         PR middle-end/60891
24206         * loop-init.c (loop_optimizer_init): Make sure to apply
24207         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
24208
24209 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24210
24211         PR sanitizer/60275
24212         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
24213         New options.
24214         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
24215         if flag_sanitize_undefined_trap_on_error.
24216         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
24217         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
24218         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
24219         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
24220         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
24221         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
24222         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
24223         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
24224         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
24225         * ubsan.c (ubsan_instrument_unreachable): Return
24226         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
24227         (ubsan_expand_null_ifn): Emit __builtin_trap ()
24228         if flag_sanitize_undefined_trap_on_error and
24229         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
24230         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
24231         instrument_bool_enum_load): Emit __builtin_trap () if
24232         flag_sanitize_undefined_trap_on_error and
24233         __builtin_handle_*_abort () if !flag_sanitize_recover.
24234         * doc/invoke.texi (-fsanitize-recover,
24235         -fsanitize-undefined-trap-on-error): Document.
24236
24237 2014-04-22  Christian Bruel  <christian.bruel@st.com>
24238
24239         * config/sh/sh.md (mov<mode>): Replace movQIHI.
24240          Force immediates to SImode.
24241
24242 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
24243
24244         * config/nios2/nios2.md (UNSPEC_ROUND): New.
24245         (lroundsfsi2): New.
24246         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
24247         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
24248         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
24249         (nios2_fpu_insn): Add entry for round.
24250         (N2FPU_NO_ERRNO_P): Define.
24251         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
24252         flag_errno_math.
24253         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
24254
24255 2014-04-22  Richard Henderson  <rth@redhat.com>
24256
24257         * config/aarch64/aarch64 (addti3, subti3): New expanders.
24258         (add<GPI>3_compare0): Remove leading * from name.
24259         (add<GPI>3_carryin): Likewise.
24260         (sub<GPI>3_compare0): Likewise.
24261         (sub<GPI>3_carryin): Likewise.
24262         (<su_optab>mulditi3): New expander.
24263         (multi3): New expander.
24264         (madd<GPI>): Remove leading * from name.
24265
24266 2014-04-22  Martin Jambor  <mjambor@suse.cz>
24267
24268         * cgraphclones.c (cgraph_function_versioning): Copy
24269         ipa_transforms_to_apply instead of asserting it is empty.
24270
24271 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
24272
24273         PR target/60868
24274         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
24275         on count_exp to get mode.
24276
24277 2014-04-22  Andrew Pinski  <apinski@cavium.com>
24278
24279         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24280         Handle TLS for ILP32.
24281         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
24282         (tlsie_small_<mode>): this and handle PTR.
24283         (tlsie_small_sidi): New pattern.
24284         (tlsle_small): Change to an expand to handle ILP32.
24285         (tlsle_small_<mode>): New pattern.
24286         (tlsdesc_small): Rename to ...
24287         (tlsdesc_small_<mode>): this and handle PTR.
24288
24289 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24290
24291         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
24292
24293 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24294
24295         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24296         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
24297         (aarch64_types_signed_poly_qualifiers): Likewise.
24298         (aarch64_types_unsigned_signed_qualifiers): Likewise.
24299         (aarch64_types_poly_signed_qualifiers): Likewise.
24300         (TYPES_REINTERP_SS): Type macro added.
24301         (TYPES_REINTERP_SU): Likewise.
24302         (TYPES_REINTERP_SP): Likewise.
24303         (TYPES_REINTERP_US): Likewise.
24304         (TYPES_REINTERP_PS): Likewise.
24305         (aarch64_fold_builtin): New expression folding added.
24306         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
24307         Declarations removed.
24308         (REINTERP_SS): Declarations added.
24309         (REINTERP_US): Likewise.
24310         (REINTERP_PS): Likewise.
24311         (REINTERP_SU): Likewise.
24312         (REINTERP_SP): Likewise.
24313         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
24314         (vreinterpretq_p8_f64): Likewise.
24315         (vreinterpret_p16_f64): Likewise.
24316         (vreinterpretq_p16_f64): Likewise.
24317         (vreinterpret_f32_f64): Likewise.
24318         (vreinterpretq_f32_f64): Likewise.
24319         (vreinterpret_f64_f32): Likewise.
24320         (vreinterpret_f64_p8): Likewise.
24321         (vreinterpret_f64_p16): Likewise.
24322         (vreinterpret_f64_s8): Likewise.
24323         (vreinterpret_f64_s16): Likewise.
24324         (vreinterpret_f64_s32): Likewise.
24325         (vreinterpret_f64_s64): Likewise.
24326         (vreinterpret_f64_u8): Likewise.
24327         (vreinterpret_f64_u16): Likewise.
24328         (vreinterpret_f64_u32): Likewise.
24329         (vreinterpret_f64_u64): Likewise.
24330         (vreinterpretq_f64_f32): Likewise.
24331         (vreinterpretq_f64_p8): Likewise.
24332         (vreinterpretq_f64_p16): Likewise.
24333         (vreinterpretq_f64_s8): Likewise.
24334         (vreinterpretq_f64_s16): Likewise.
24335         (vreinterpretq_f64_s32): Likewise.
24336         (vreinterpretq_f64_s64): Likewise.
24337         (vreinterpretq_f64_u8): Likewise.
24338         (vreinterpretq_f64_u16): Likewise.
24339         (vreinterpretq_f64_u32): Likewise.
24340         (vreinterpretq_f64_u64): Likewise.
24341         (vreinterpret_s64_f64): Likewise.
24342         (vreinterpretq_s64_f64): Likewise.
24343         (vreinterpret_u64_f64): Likewise.
24344         (vreinterpretq_u64_f64): Likewise.
24345         (vreinterpret_s8_f64): Likewise.
24346         (vreinterpretq_s8_f64): Likewise.
24347         (vreinterpret_s16_f64): Likewise.
24348         (vreinterpretq_s16_f64): Likewise.
24349         (vreinterpret_s32_f64): Likewise.
24350         (vreinterpretq_s32_f64): Likewise.
24351         (vreinterpret_u8_f64): Likewise.
24352         (vreinterpretq_u8_f64): Likewise.
24353         (vreinterpret_u16_f64): Likewise.
24354         (vreinterpretq_u16_f64): Likewise.
24355         (vreinterpret_u32_f64): Likewise.
24356         (vreinterpretq_u32_f64): Likewise.
24357
24358 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24359
24360         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24361         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
24362         (vreinterpret_p8_s8): Likewise.
24363         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
24364         (vreinterpret_p8_s16): Likewise.
24365         (vreinterpret_p8_s32): Likewise.
24366         (vreinterpret_p8_s64): Likewise.
24367         (vreinterpret_p8_f32): Likewise.
24368         (vreinterpret_p8_u8): Likewise.
24369         (vreinterpret_p8_u16): Likewise.
24370         (vreinterpret_p8_u32): Likewise.
24371         (vreinterpret_p8_u64): Likewise.
24372         (vreinterpret_p8_p16): Likewise.
24373         (vreinterpretq_p8_s8): Likewise.
24374         (vreinterpretq_p8_s16): Likewise.
24375         (vreinterpretq_p8_s32): Likewise.
24376         (vreinterpretq_p8_s64): Likewise.
24377         (vreinterpretq_p8_f32): Likewise.
24378         (vreinterpretq_p8_u8): Likewise.
24379         (vreinterpretq_p8_u16): Likewise.
24380         (vreinterpretq_p8_u32): Likewise.
24381         (vreinterpretq_p8_u64): Likewise.
24382         (vreinterpretq_p8_p16): Likewise.
24383         (vreinterpret_p16_s8): Likewise.
24384         (vreinterpret_p16_s16): Likewise.
24385         (vreinterpret_p16_s32): Likewise.
24386         (vreinterpret_p16_s64): Likewise.
24387         (vreinterpret_p16_f32): Likewise.
24388         (vreinterpret_p16_u8): Likewise.
24389         (vreinterpret_p16_u16): Likewise.
24390         (vreinterpret_p16_u32): Likewise.
24391         (vreinterpret_p16_u64): Likewise.
24392         (vreinterpret_p16_p8): Likewise.
24393         (vreinterpretq_p16_s8): Likewise.
24394         (vreinterpretq_p16_s16): Likewise.
24395         (vreinterpretq_p16_s32): Likewise.
24396         (vreinterpretq_p16_s64): Likewise.
24397         (vreinterpretq_p16_f32): Likewise.
24398         (vreinterpretq_p16_u8): Likewise.
24399         (vreinterpretq_p16_u16): Likewise.
24400         (vreinterpretq_p16_u32): Likewise.
24401         (vreinterpretq_p16_u64): Likewise.
24402         (vreinterpretq_p16_p8): Likewise.
24403         (vreinterpret_f32_s8): Likewise.
24404         (vreinterpret_f32_s16): Likewise.
24405         (vreinterpret_f32_s32): Likewise.
24406         (vreinterpret_f32_s64): Likewise.
24407         (vreinterpret_f32_u8): Likewise.
24408         (vreinterpret_f32_u16): Likewise.
24409         (vreinterpret_f32_u32): Likewise.
24410         (vreinterpret_f32_u64): Likewise.
24411         (vreinterpret_f32_p8): Likewise.
24412         (vreinterpret_f32_p16): Likewise.
24413         (vreinterpretq_f32_s8): Likewise.
24414         (vreinterpretq_f32_s16): Likewise.
24415         (vreinterpretq_f32_s32): Likewise.
24416         (vreinterpretq_f32_s64): Likewise.
24417         (vreinterpretq_f32_u8): Likewise.
24418         (vreinterpretq_f32_u16): Likewise.
24419         (vreinterpretq_f32_u32): Likewise.
24420         (vreinterpretq_f32_u64): Likewise.
24421         (vreinterpretq_f32_p8): Likewise.
24422         (vreinterpretq_f32_p16): Likewise.
24423         (vreinterpret_s64_s8): Likewise.
24424         (vreinterpret_s64_s16): Likewise.
24425         (vreinterpret_s64_s32): Likewise.
24426         (vreinterpret_s64_f32): Likewise.
24427         (vreinterpret_s64_u8): Likewise.
24428         (vreinterpret_s64_u16): Likewise.
24429         (vreinterpret_s64_u32): Likewise.
24430         (vreinterpret_s64_u64): Likewise.
24431         (vreinterpret_s64_p8): Likewise.
24432         (vreinterpret_s64_p16): Likewise.
24433         (vreinterpretq_s64_s8): Likewise.
24434         (vreinterpretq_s64_s16): Likewise.
24435         (vreinterpretq_s64_s32): Likewise.
24436         (vreinterpretq_s64_f32): Likewise.
24437         (vreinterpretq_s64_u8): Likewise.
24438         (vreinterpretq_s64_u16): Likewise.
24439         (vreinterpretq_s64_u32): Likewise.
24440         (vreinterpretq_s64_u64): Likewise.
24441         (vreinterpretq_s64_p8): Likewise.
24442         (vreinterpretq_s64_p16): Likewise.
24443         (vreinterpret_u64_s8): Likewise.
24444         (vreinterpret_u64_s16): Likewise.
24445         (vreinterpret_u64_s32): Likewise.
24446         (vreinterpret_u64_s64): Likewise.
24447         (vreinterpret_u64_f32): Likewise.
24448         (vreinterpret_u64_u8): Likewise.
24449         (vreinterpret_u64_u16): Likewise.
24450         (vreinterpret_u64_u32): Likewise.
24451         (vreinterpret_u64_p8): Likewise.
24452         (vreinterpret_u64_p16): Likewise.
24453         (vreinterpretq_u64_s8): Likewise.
24454         (vreinterpretq_u64_s16): Likewise.
24455         (vreinterpretq_u64_s32): Likewise.
24456         (vreinterpretq_u64_s64): Likewise.
24457         (vreinterpretq_u64_f32): Likewise.
24458         (vreinterpretq_u64_u8): Likewise.
24459         (vreinterpretq_u64_u16): Likewise.
24460         (vreinterpretq_u64_u32): Likewise.
24461         (vreinterpretq_u64_p8): Likewise.
24462         (vreinterpretq_u64_p16): Likewise.
24463         (vreinterpret_s8_s16): Likewise.
24464         (vreinterpret_s8_s32): Likewise.
24465         (vreinterpret_s8_s64): Likewise.
24466         (vreinterpret_s8_f32): Likewise.
24467         (vreinterpret_s8_u8): Likewise.
24468         (vreinterpret_s8_u16): Likewise.
24469         (vreinterpret_s8_u32): Likewise.
24470         (vreinterpret_s8_u64): Likewise.
24471         (vreinterpret_s8_p8): Likewise.
24472         (vreinterpret_s8_p16): Likewise.
24473         (vreinterpretq_s8_s16): Likewise.
24474         (vreinterpretq_s8_s32): Likewise.
24475         (vreinterpretq_s8_s64): Likewise.
24476         (vreinterpretq_s8_f32): Likewise.
24477         (vreinterpretq_s8_u8): Likewise.
24478         (vreinterpretq_s8_u16): Likewise.
24479         (vreinterpretq_s8_u32): Likewise.
24480         (vreinterpretq_s8_u64): Likewise.
24481         (vreinterpretq_s8_p8): Likewise.
24482         (vreinterpretq_s8_p16): Likewise.
24483         (vreinterpret_s16_s8): Likewise.
24484         (vreinterpret_s16_s32): Likewise.
24485         (vreinterpret_s16_s64): Likewise.
24486         (vreinterpret_s16_f32): Likewise.
24487         (vreinterpret_s16_u8): Likewise.
24488         (vreinterpret_s16_u16): Likewise.
24489         (vreinterpret_s16_u32): Likewise.
24490         (vreinterpret_s16_u64): Likewise.
24491         (vreinterpret_s16_p8): Likewise.
24492         (vreinterpret_s16_p16): Likewise.
24493         (vreinterpretq_s16_s8): Likewise.
24494         (vreinterpretq_s16_s32): Likewise.
24495         (vreinterpretq_s16_s64): Likewise.
24496         (vreinterpretq_s16_f32): Likewise.
24497         (vreinterpretq_s16_u8): Likewise.
24498         (vreinterpretq_s16_u16): Likewise.
24499         (vreinterpretq_s16_u32): Likewise.
24500         (vreinterpretq_s16_u64): Likewise.
24501         (vreinterpretq_s16_p8): Likewise.
24502         (vreinterpretq_s16_p16): Likewise.
24503         (vreinterpret_s32_s8): Likewise.
24504         (vreinterpret_s32_s16): Likewise.
24505         (vreinterpret_s32_s64): Likewise.
24506         (vreinterpret_s32_f32): Likewise.
24507         (vreinterpret_s32_u8): Likewise.
24508         (vreinterpret_s32_u16): Likewise.
24509         (vreinterpret_s32_u32): Likewise.
24510         (vreinterpret_s32_u64): Likewise.
24511         (vreinterpret_s32_p8): Likewise.
24512         (vreinterpret_s32_p16): Likewise.
24513         (vreinterpretq_s32_s8): Likewise.
24514         (vreinterpretq_s32_s16): Likewise.
24515         (vreinterpretq_s32_s64): Likewise.
24516         (vreinterpretq_s32_f32): Likewise.
24517         (vreinterpretq_s32_u8): Likewise.
24518         (vreinterpretq_s32_u16): Likewise.
24519         (vreinterpretq_s32_u32): Likewise.
24520         (vreinterpretq_s32_u64): Likewise.
24521         (vreinterpretq_s32_p8): Likewise.
24522         (vreinterpretq_s32_p16): Likewise.
24523         (vreinterpret_u8_s8): Likewise.
24524         (vreinterpret_u8_s16): Likewise.
24525         (vreinterpret_u8_s32): Likewise.
24526         (vreinterpret_u8_s64): Likewise.
24527         (vreinterpret_u8_f32): Likewise.
24528         (vreinterpret_u8_u16): Likewise.
24529         (vreinterpret_u8_u32): Likewise.
24530         (vreinterpret_u8_u64): Likewise.
24531         (vreinterpret_u8_p8): Likewise.
24532         (vreinterpret_u8_p16): Likewise.
24533         (vreinterpretq_u8_s8): Likewise.
24534         (vreinterpretq_u8_s16): Likewise.
24535         (vreinterpretq_u8_s32): Likewise.
24536         (vreinterpretq_u8_s64): Likewise.
24537         (vreinterpretq_u8_f32): Likewise.
24538         (vreinterpretq_u8_u16): Likewise.
24539         (vreinterpretq_u8_u32): Likewise.
24540         (vreinterpretq_u8_u64): Likewise.
24541         (vreinterpretq_u8_p8): Likewise.
24542         (vreinterpretq_u8_p16): Likewise.
24543         (vreinterpret_u16_s8): Likewise.
24544         (vreinterpret_u16_s16): Likewise.
24545         (vreinterpret_u16_s32): Likewise.
24546         (vreinterpret_u16_s64): Likewise.
24547         (vreinterpret_u16_f32): Likewise.
24548         (vreinterpret_u16_u8): Likewise.
24549         (vreinterpret_u16_u32): Likewise.
24550         (vreinterpret_u16_u64): Likewise.
24551         (vreinterpret_u16_p8): Likewise.
24552         (vreinterpret_u16_p16): Likewise.
24553         (vreinterpretq_u16_s8): Likewise.
24554         (vreinterpretq_u16_s16): Likewise.
24555         (vreinterpretq_u16_s32): Likewise.
24556         (vreinterpretq_u16_s64): Likewise.
24557         (vreinterpretq_u16_f32): Likewise.
24558         (vreinterpretq_u16_u8): Likewise.
24559         (vreinterpretq_u16_u32): Likewise.
24560         (vreinterpretq_u16_u64): Likewise.
24561         (vreinterpretq_u16_p8): Likewise.
24562         (vreinterpretq_u16_p16): Likewise.
24563         (vreinterpret_u32_s8): Likewise.
24564         (vreinterpret_u32_s16): Likewise.
24565         (vreinterpret_u32_s32): Likewise.
24566         (vreinterpret_u32_s64): Likewise.
24567         (vreinterpret_u32_f32): Likewise.
24568         (vreinterpret_u32_u8): Likewise.
24569         (vreinterpret_u32_u16): Likewise.
24570         (vreinterpret_u32_u64): Likewise.
24571         (vreinterpret_u32_p8): Likewise.
24572         (vreinterpret_u32_p16): Likewise.
24573         (vreinterpretq_u32_s8): Likewise.
24574         (vreinterpretq_u32_s16): Likewise.
24575         (vreinterpretq_u32_s32): Likewise.
24576         (vreinterpretq_u32_s64): Likewise.
24577         (vreinterpretq_u32_f32): Likewise.
24578         (vreinterpretq_u32_u8): Likewise.
24579         (vreinterpretq_u32_u16): Likewise.
24580         (vreinterpretq_u32_u64): Likewise.
24581         (vreinterpretq_u32_p8): Likewise.
24582         (vreinterpretq_u32_p16): Likewise.
24583
24584 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24585
24586         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
24587         Pattern extended.
24588         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
24589         (sqabs): Likewise.
24590         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
24591         (vqnegd_s64): Likewise.
24592         (vqabs_s64): Likewise.
24593         (vqabsd_s64): Likewise.
24594
24595 2014-04-22  Richard Henderson  <rth@redhat.com>
24596
24597         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
24598         computation to the top of the loop.
24599
24600 2014-04-22  Renlin  <renlin.li@arm.com>
24601             Jiong Wang  <jiong.wang@arm.com>
24602
24603         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
24604         * config/aarch64/aarch64.c (aarch64_layout_frame)
24605         (aarch64_initial_elimination_offset): Likewise.
24606
24607 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24608
24609         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
24610         Fix indentation.
24611
24612 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
24613
24614         * machmode.h (bitwise_mode_for_mode): Declare.
24615         * stor-layout.h (bitwise_type_for_mode): Likewise.
24616         * stor-layout.c (bitwise_mode_for_mode): New function.
24617         (bitwise_type_for_mode): Likewise.
24618         * builtins.c (fold_builtin_memory_op): Use it instead of
24619         int_mode_for_mode and build_nonstandard_integer_type.
24620
24621 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24622
24623         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
24624         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
24625         (*-*-solaris2*): Simplify.
24626         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
24627         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
24628         *-*-solaris2.9* handling.
24629
24630         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
24631         as bug.
24632         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
24633         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
24634         handling, simplify.
24635         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
24636         * configure: Regenerate.
24637
24638         * config/i386/sol2-9.h: Remove.
24639
24640         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
24641         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
24642         Remove Solaris 9 references.
24643
24644 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
24645
24646         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
24647         (floatuns<GPI:mode><GPF:mode>2): Remove.
24648         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
24649         and floatuns conversions.
24650         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
24651         and floatuns conversions.
24652         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
24653         (w1,w2): New mode attributes for inequal width conversions.
24654
24655 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
24656
24657         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
24658         the output asm format.
24659
24660 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
24661
24662         * config/aarch64/aarch64-simd.md
24663         (aarch64_cm<optab>di): Always split.
24664         (*aarch64_cm<optab>di): New.
24665         (aarch64_cmtstdi): Always split.
24666         (*aarch64_cmtstdi): New.
24667
24668 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24669
24670         PR tree-optimization/60823
24671         * omp-low.c (ipa_simd_modify_function_body): Go through
24672         all SSA_NAMEs and for those refering to vector arguments
24673         which are going to be replaced adjust SSA_NAME_VAR and,
24674         if it is a default definition, change it into a non-default
24675         definition assigned at the beginning of function from new_decl.
24676         (ipa_simd_modify_stmt_ops): Rewritten.
24677         * tree-dfa.c (set_ssa_default_def): When removing default def,
24678         check for NULL loc instead of NULL *loc.
24679
24680 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24681
24682         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
24683         restrictions on core registers for DImode values in Thumb2.
24684
24685 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24686
24687         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
24688         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
24689
24690 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24691
24692         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
24693         (*iordi_notzesidi_di): Likewise.
24694         (*iordi_notsesidi_di): Likewise.
24695
24696 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24697
24698         * config/arm/arm-protos.h (tune_params): New struct members.
24699         * config/arm/arm.c: Initialise tune_params per processor.
24700         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24701         for speed, based on new tune_params.
24702
24703 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24704
24705         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24706         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24707         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24708         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24709         * config/aarch64/arm_neon.h (vrnd_f64): Added.
24710         (vrnda_f64): Likewise.
24711         (vrndi_f64): Likewise.
24712         (vrndm_f64): Likewise.
24713         (vrndn_f64): Likewise.
24714         (vrndp_f64): Likewise.
24715         (vrndx_f64): Likewise.
24716
24717 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24718
24719         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24720         GET_MODE_SIZE argument is enum machine_mode.
24721
24722 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24723
24724         PR target/60910
24725         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24726         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24727
24728 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
24729
24730         PR middle-end/60281
24731         * asan.c (asan_emit_stack_protection): Force the base to align to
24732         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
24733         appropriate bits if STRICT_ALIGNMENT.
24734         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24735         when asan is on.
24736         (expand_used_vars): Leave a space in the stack frame for alignment
24737         if STRICT_ALIGNMENT.
24738
24739 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
24740
24741         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24742         than a gimple.
24743         (gimple_store_p): Likewise.
24744         (gimple_assign_load_p): Likewise.
24745         (gimple_assign_cast_p): Likewise.
24746         (gimple_clobber_p): Likewise.
24747
24748         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24749         rather than a gimple.
24750         (gimple_assign_cast_p): Likewise.
24751
24752 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24753
24754         PR target/60735
24755         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24756         If mode is DDmode and TARGET_E500_DOUBLE allow move.
24757
24758         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24759         more debug information for E500 if -mdebug=reg.
24760
24761 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
24762
24763         PR target/60909
24764         * config/i386/i386.c (ix86_expand_builtin)
24765         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24766         register for target RTX.
24767         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24768
24769 2014-04-18  Cong Hou  <congh@google.com>
24770
24771         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24772         the widen-mult pattern by handling two operands with different sizes,
24773         and operands whose size is smaller than half of the result type.
24774
24775 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
24776
24777         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24778         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24779         (do_estimate_edge_time): Compute it.
24780         * ipa-inline.c (want_inline_small_function_p): Bypass
24781         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24782
24783 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
24784
24785         * ipa-inline.c (spec_rem): New static variable.
24786         (dump_overall_stats): New function.
24787         (dump_inline_stats): New function.
24788
24789 2014-04-18  Richard Henderson  <rth@redhat.com>
24790
24791         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24792         to GET_MODE_SIZE, not a reg_class_t.
24793
24794 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24795
24796         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24797         (vsx_xxmrglw_<mode>): Likewise.
24798
24799 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
24800
24801         PR target/60876
24802         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24803         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24804         (rs6000_init_hard_regno_mode_ok): Likewise.
24805
24806 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
24807
24808         * ipa-inline.c (inline_small_functions): Account only non-cold
24809         functions.
24810         * doc/invoke.texi (inline-unit-growth): Update documentation.
24811
24812 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
24813
24814         * config/rs6000/rs6000.md (addti3, subti3): New.
24815
24816 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24817
24818         PR target/60863
24819         * config/i386/i386.c (ix86_expand_clear): Remove outdated
24820         comment.  Check optimize_insn_for_size_p instead of
24821         optimize_insn_for_speed_p.
24822
24823 2014-04-17  Martin Jambor  <mjambor@suse.cz>
24824
24825         * gimple-iterator.c (gsi_start_edge): New function.
24826         * gimple-iterator.h (gsi_start_edge): Declare.
24827         * tree-sra.c (single_non_eh_succ): New function.
24828         (disqualify_ops_if_throwing_stmt): Renamed to
24829         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
24830         having one non-EH successor BB.
24831         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24832         generate loads into replacements.
24833         (sra_modify_assign): Likewise and and also use the simple path for
24834         such statements.
24835         (sra_modify_function_body): Commit statements on edges.
24836
24837 2014-04-17  Richard Biener  <rguenther@suse.de>
24838
24839         PR middle-end/60849
24840         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24841         comparison results and add clarifying comment.
24842
24843 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
24844
24845         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24846         (blank_mode): Initialize it.
24847         (emit_mode_size_inline, emit_mode_nunits_inline,
24848         emit_mode_inner_inline): New functions.
24849         (emit_insn_modes_h): Call them and surround their output with
24850         #if GCC_VERSION >= 4001 ... #endif.
24851         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24852         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24853         mode_* arrays if the argument is __builtin_constant_p.
24854         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24855         is enum machine_mode.
24856
24857 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24858
24859         * passes.c (opt_pass::execute): Adjust.
24860         (pass_manager::execute_pass_mode_switching): Likewise.
24861         (early_local_passes::execute): Likewise.
24862         (execute_one_pass): Pass cfun to the pass's execute method.
24863         * tree-pass.h (opt_pass::execute): Add function * argument.
24864         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24865         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24866         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24867         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24868         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24869         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24870         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24871         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24872         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24873         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24874         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24875         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24876         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24877         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24878         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24879         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24880         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24881         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24882         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24883         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24884         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24885         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24886         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24887         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24888         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24889         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24890         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24891         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24892         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24893         Adjust.
24894
24895 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24896
24897         * passes.c (opt_pass::gate): Take function * argument.
24898         (gate_all_early_local_passes): Merge into
24899         (early_local_passes::gate): this.
24900         (gate_all_early_optimizations): Merge into
24901         (all_early_optimizations::gate): this.
24902         (gate_all_optimizations): Mege into
24903         (all_optimizations::gate): this.
24904         (gate_all_optimizations_g): Merge into
24905         (all_optimizations_g::gate): this.
24906         (gate_rest_of_compilation): Mege into
24907         (rest_of_compilation::gate): this.
24908         (gate_postreload): Merge into
24909         (postreload::gate): this.
24910         (dump_one_pass): Pass cfun to the pass's gate method.
24911         (execute_ipa_summary_passes): Likewise.
24912         (execute_one_pass): Likewise.
24913         (ipa_write_summaries_2): Likewise.
24914         (ipa_write_optimization_summaries_1): Likewise.
24915         (ipa_read_summaries_1): Likewise.
24916         (ipa_read_optimization_summaries_1): Likewise.
24917         (execute_ipa_stmt_fixups): Likewise.
24918         * tree-pass.h (opt_pass::gate): Add function * argument.
24919         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24920         combine-stack-adj.c, combine.c, compare-elim.c,
24921         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24922         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24923         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24924         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
24925         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24926         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24927         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24928         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24929         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24930         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24931         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24932         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24933         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24934         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24935         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24936         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24937         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24938         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24939         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24940         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24941         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24942         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24943         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24944         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24945         var-tracking.c, vtable-verify.c, web.c: Adjust.
24946
24947 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24948
24949         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24950         * configure: Regenerate.
24951
24952 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24953
24954         * passes.c (dump_one_pass): don't check pass->has_gate.
24955         (execute_ipa_summary_passes): Likewise.
24956         (execute_one_pass): Likewise.
24957         (ipa_write_summaries_2): Likewise.
24958         (ipa_write_optimization_summaries_1): Likewise.
24959         (ipa_read_optimization_summaries_1): Likewise.
24960         (execute_ipa_stmt_fixups): Likewise.
24961         * tree-pass.h (pass_data::has_gate): Remove.
24962         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24963         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24964         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24965         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24966         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24967         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24968         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24969         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24970         gimple-low.c, gimple-ssa-isolate-paths.c,
24971         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24972         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24973         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24974         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24975         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24976         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24977         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24978         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24979         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24980         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24981         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24982         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24983         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24984         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24985         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24986         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24987         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24988         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24989         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24990         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24991         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24992         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24993         Adjust.
24994
24995 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24996
24997         * pass_manager.h (pass_manager::register_dump_files_1): Remove
24998         declaration.
24999         * passes.c (pass_manager::register_dump_files_1): Merge into
25000         (pass_manager::register_dump_files): this, and remove its handling of
25001         properties since the pass always has the properties anyway.
25002         (pass_manager::pass_manager): Adjust.
25003
25004 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
25005
25006         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
25007         * passes.c (pass_manager::register_dump_files_1): Remove dead code
25008         dealing with properties.
25009         (pass_manager::register_dump_files): Adjust.
25010
25011 2014-03-20  Mark Wielaard  <mjw@redhat.com>
25012
25013         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
25014         then represent the bound as normal constant value.
25015
25016 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
25017
25018         PR target/60847
25019         Forward port from 4.8 branch
25020         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
25021
25022         * config/i386/bmiintrin.h (_blsi_u32): New.
25023         (_blsi_u64): Ditto.
25024         (_blsr_u32): Ditto.
25025         (_blsr_u64): Ditto.
25026         (_blsmsk_u32): Ditto.
25027         (_blsmsk_u64): Ditto.
25028         (_tzcnt_u32): Ditto.
25029         (_tzcnt_u64): Ditto.
25030
25031 2014-04-17  Kito Cheng  <kito@0xlab.org>
25032
25033         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
25034
25035 2014-04-17  Richard Biener  <rguenther@suse.de>
25036
25037         PR middle-end/60849
25038         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
25039         boolean results for comparisons.
25040
25041 2014-04-17  Richard Biener  <rguenther@suse.de>
25042
25043         PR tree-optimization/60836
25044         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
25045         initial PHI args to be gimple values.
25046
25047 2014-04-17  Richard Biener  <rguenther@suse.de>
25048
25049         PR tree-optimization/60841
25050         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
25051         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
25052         of stmts to SLP build.
25053         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
25054         (vect_analyze_slp): Likewise.
25055         (vect_analyze_slp_instance): Likewise.
25056         (vect_build_slp_tree): Limit overall SLP tree growth.
25057         * tree-vectorizer.h (vect_analyze_data_refs,
25058         vect_analyze_slp): Adjust prototypes.
25059
25060 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
25061
25062         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
25063         Silvermont.
25064
25065 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
25066
25067         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
25068         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
25069         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
25070         for TARGET_SLOW_PSHUFB
25071
25072 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
25073
25074         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
25075         * config/i386/i386.c (intel_cost): Ditto.
25076
25077 2014-04-17  Joey Ye  <joey.ye@arm.com>
25078
25079         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
25080
25081 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
25082
25083         * opts.c (common_handle_option): Disable -fipa-reference coorectly
25084         with -fuse-profile.
25085
25086 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
25087
25088         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
25089         (type_all_derivations_known_p): New predicate.
25090         (type_all_ctors_visible_p): New predicate.
25091         (type_possibly_instantiated_p): New predicate.
25092         (get_odr_type): Compute all_derivations_known.
25093         (dump_odr_type): Dump the flag.
25094         (maybe_record_type): Cleanup.
25095         (record_target_from_binfo): Add bases_to_consider array;
25096         record bases for types w/o instances and skip CXX destructor.
25097         (possible_polymorphic_call_targets_1): Add bases_to_consider
25098         and consider_construction parameters; check if type may have instance.
25099         (get_polymorphic_call_info): Set maybe_in_construction to true
25100         when we know nothing.
25101         (record_targets_from_bases): Skip CXX destructors; they are
25102         never called for types in construction.
25103         (possible_polymorphic_call_targets): Do not record target when
25104         type may not have instance.
25105
25106 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
25107
25108         PR ipa/60854
25109         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
25110         external aliases alive, too.
25111
25112 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
25113
25114         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
25115         definition.
25116
25117 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
25118
25119         * final.c (compute_alignments): Do not apply loop alignment to a block
25120         falling through to the exit.
25121
25122 2014-04-16  Catherine Moore  <clm@codesourcery.com>
25123
25124         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
25125         Adjust constraints for microMIPS store patterns.
25126
25127 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
25128
25129         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
25130
25131 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
25132
25133         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
25134         (append_use): Run at -O0.
25135         (append_vdef): Likewise.
25136         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
25137         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
25138
25139 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
25140
25141         PR tree-optimization/60844
25142         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
25143         (propagate_op_to_single_use, remove_visited_stmt_chain,
25144         linearize_expr, repropagate_negates, reassociate_bb): Use it
25145         instead of gsi_remove.
25146
25147 2014-04-16  Martin Jambor  <mjambor@suse.cz>
25148
25149         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
25150         ipa_transforms_to_apply.
25151         (cgraph_function_versioning): Assert that old_node has empty
25152         ipa_transforms_to_apply.
25153         * trans-mem.c (ipa_tm_create_version): Likewise.
25154         * tree-inline.c (tree_function_versioning): Do not duplicate
25155         ipa_transforms_to_apply.
25156
25157 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25158
25159         PR target/60817
25160         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
25161         x86_64-*-* cases.
25162         Pass necessary as flags on 64-bit Solaris/x86.
25163         Use lowercase relocs for x86_64-*-*.
25164         * configure: Regenerate.
25165
25166 2014-04-15  Jan Hubicka  <jh@suse.cz>
25167
25168         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
25169         (maybe_record_node, likely_target_p): Use it.
25170
25171 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25172
25173         PR target/60839
25174         Revert following patch
25175
25176         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25177
25178         PR target/60735
25179         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25180         software floating point or no floating point registers, do not
25181         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
25182         in GPRs that occurs after we tested for GPRs that would never be
25183         true.
25184
25185         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25186         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25187         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
25188         specifically allow DDmode, since that does not use the SPE SIMD
25189         instructions.
25190
25191 2014-03-21  Mark Wielaard  <mjw@redhat.com>
25192
25193         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
25194         as unsigned or int depending on type and value used.
25195
25196 2014-04-15  Richard Biener  <rguenther@suse.de>
25197
25198         PR rtl-optimization/56965
25199         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
25200         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
25201         ... here.
25202         * alias.c (true_dependence_1): Do not call
25203         nonoverlapping_component_refs_p.
25204         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
25205         nonoverlapping_component_refs_p.
25206         (indirect_refs_may_alias_p): Likewise.
25207
25208 2014-04-15  Teresa Johnson  <tejohnson@google.com>
25209
25210         * cfg.c (dump_bb_info): Fix flags check.
25211         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
25212
25213 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25214
25215         PR rtl-optimization/60663
25216         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
25217         avoid 0 cost.
25218
25219 2014-04-15  Richard Biener  <rguenther@suse.de>
25220
25221         * lto-streamer.h (LTO_major_version): Bump to 4.
25222
25223 2014-04-15  Richard Biener  <rguenther@suse.de>
25224
25225         * common.opt (lto_partition_model): New enum.
25226         (flto-partition=): Merge separate options with a single with argument,
25227         add -flto-partition=one support.
25228         * flag-types.h (enum lto_partition_model): Declare.
25229         * opts.c (finish_options): Remove duplicate -flto-partition=
25230         option check.
25231         * lto-wrapper.c (run_gcc): Adjust.
25232
25233 2014-04-15  Richard Biener  <rguenther@suse.de>
25234
25235         * alias.c (ncr_compar): New function.
25236         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
25237
25238 2014-04-15  Richard Biener  <rguenther@suse.de>
25239
25240         * alias.c (record_component_aliases): Do not walk BINFOs.
25241
25242 2014-04-15  Richard Biener  <rguenther@suse.de>
25243
25244         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25245         Add struct function argument and adjust.
25246         (find_func_aliases_for_call): Likewise.
25247         (find_func_aliases): Likewise.
25248         (find_func_clobbers): Likewise.
25249         (intra_create_variable_infos): Likewise.
25250         (compute_points_to_sets): Likewise.
25251         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
25252
25253 2014-04-15  Richard Biener  <rguenther@suse.de>
25254
25255         * tree.c (iterative_hash_expr): Use enum tree_code_class
25256         to store TREE_CODE_CLASS.
25257         (tree_block): Likewise.
25258         (tree_set_block): Likewise.
25259         * tree.h (fold_build_pointer_plus_loc): Use
25260         convert_to_ptrofftype_loc.
25261
25262 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
25263
25264         PR plugins/59335
25265         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
25266         added in 4.9.
25267
25268 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
25269
25270         * cfgloop.h (struct loop): Move force_vectorize down.
25271         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
25272         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
25273         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
25274         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
25275         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
25276         * tree-core.h (enum annot_expr_kind): Add new kind values.
25277         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
25278         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
25279         kinds.
25280         * tree.def (ANNOTATE_EXPR): Tweak comment.
25281
25282 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25283
25284         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
25285         cxa_pure_virtual).
25286
25287 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
25288
25289         * tree.h (TYPE_IDENTIFIER): Declare.
25290         * tree.c (subrange_type_for_debug_p): Use it.
25291         * godump.c (go_format_type): Likewise.
25292         * dwarf2out.c (is_cxx_auto, modified_type_die,
25293         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
25294         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
25295
25296 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25297
25298         PR lto/60820
25299         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
25300
25301 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
25302
25303         * config/i386/i386.c (examine_argument): Return bool.  Return true if
25304         parameter should be passed in memory.
25305         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
25306         (construct_container): Update calls to examine_argument.
25307         (function_arg_advance_64): Ditto.
25308         (return_in_memory_32): Merge with ix86_return_in_memory.
25309         (return_in_memory_64): Ditto.
25310         (return_in_memory_ms_64): Ditto.
25311
25312 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25313
25314         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
25315         * coverage.c (coverage_compute_profile_id): Handle externally visible
25316         symbols.
25317
25318 2014-04-14  Martin Jambor  <mjambor@suse.cz>
25319
25320         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
25321         DECL_DISREGARD_INLINE_LIMITS functions.
25322
25323 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
25324
25325         PR target/60827
25326         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
25327
25328 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
25329
25330         PR target/60827
25331         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
25332         optimize_insn_for_speed_p instead of
25333         optimize_function_for_speed_p.
25334
25335 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
25336
25337         * doc/invoke.texi (free): Document AArch64.
25338
25339 2014-04-14  Richard Biener  <rguenther@suse.de>
25340
25341         PR tree-optimization/60042
25342         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
25343         (insert_into_preds_of_block): Do not prevent PHI insertion
25344         for REFERENCE exprs here ...
25345         (eliminate_dom_walker::before_dom_children): ... but prevent
25346         their use here under similar conditions when applied to the
25347         IL after PRE optimizations.
25348
25349 2014-04-14  Richard Biener  <rguenther@suse.de>
25350
25351         * passes.def: Move early points-to after early SRA.
25352
25353 2014-04-14  Richard Biener  <rguenther@suse.de>
25354
25355         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
25356         check for which sign-changes we allow when forwarding
25357         a converted value into a switch.
25358
25359 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
25360
25361         * stor-layout.c (place_field): Finalize non-constant offset for the
25362         field, if any.
25363
25364 2014-04-14  Richard Biener  <rguenther@suse.de>
25365
25366         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
25367         as argument.
25368         (expand_switch_using_bit_tests_p): Likewise.
25369         (process_switch): Compute and pass on speed_p based on the
25370         switch stmt.
25371         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
25372         optimize_bb_for_speed_p.
25373
25374 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
25375
25376         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
25377         * function.h (struct function): Rename has_force_vect_loops into
25378         has_force_vectorize_loops.
25379         * lto-streamer-in.c (input_cfg): Adjust for renaming.
25380         (input_struct_function_base): Likewise.
25381         * lto-streamer-out.c (output_cfg): Likewise.
25382         (output_struct_function_base): Likewise.
25383         * omp-low.c (expand_omp_simd): Likewise.
25384         * tree-cfg.c (move_sese_region_to_fn): Likewise.
25385         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
25386         (version_loop_for_if_conversion): Likewise.
25387         (tree_if_conversion): Likewise.
25388         (main_tree_if_conversion): Likewise.
25389         (gate_tree_if_conversion): Likewise.
25390         * tree-inline.c (copy_loops): Likewise.
25391         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
25392         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
25393         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25394         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
25395         * tree-vectorizer.c (vectorize_loops): Likewise.
25396         * tree-vectorizer.h (unlimited_cost_model): Likewise.
25397
25398 2014-04-14  Richard Biener  <rguenther@suse.de>
25399
25400         PR lto/60720
25401         * lto-streamer-out.c (wrap_refs): New function.
25402         (lto_output): Wrap symbol references in global initializes in
25403         type-preserving MEM_REFs.
25404
25405 2014-04-14  Christian Bruel  <christian.bruel@st.com>
25406
25407         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
25408
25409 2014-04-14  Christian Bruel  <christian.bruel@st.com>
25410
25411         * config/sh/sh.md (setmemqi): New expand pattern.
25412         * config/sh/sh.h (CLEAR_RATIO): Define.
25413         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
25414         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
25415
25416 2014-04-14  Richard Biener  <rguenther@suse.de>
25417
25418         PR middle-end/55022
25419         * fold-const.c (negate_expr_p): Don't negate directional rounding
25420         division.
25421         (fold_negate_expr): Likewise.
25422
25423 2014-04-14  Richard Biener  <rguenther@suse.de>
25424
25425         PR tree-optimization/59817
25426         PR tree-optimization/60453
25427         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
25428         recursion to catch all CHRECs in the scalar evolution and restrict
25429         the predicate for the remains appropriately.
25430
25431 2014-04-12  Catherine Moore  <clm@codesourcery.com>
25432
25433         * config/mips/constraints.md: Add new register constraint "kb".
25434         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
25435         (*movhi_internal): Likewise.
25436         (*movqi_internal): Likewise.
25437         * config/mips/mips.h (M16_STORE_REGS): New register class.
25438         (REG_CLASS_NAMES): Add M16_STORE_REGS.
25439         (REG_CLASS_CONTENTS): Likewise.
25440         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
25441
25442 2014-04-11  Tobias Burnus  <burnus@net-b.de>
25443
25444         PR c/60194
25445         * doc/invoke.texi (-Wformat-signedness): Document it.
25446         (Wformat=2): Mention that this enables -Wformat-signedness.
25447
25448 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25449
25450         * common/config/epiphany/epiphany-common.c
25451         (epiphany_option_optimization_table): Enable section anchors by
25452         default at -O1 or higher.
25453         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
25454         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
25455         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
25456         carries no extra cost.
25457         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
25458         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
25459         * config/epiphany/predicates.md (memclob_operand): New predicate.
25460         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
25461         Use memclob_operand predicate and X constraint for operand 3.
25462
25463 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25464
25465         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
25466         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
25467         its operands.
25468
25469 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25470
25471         PR rtl-optimization/60651
25472         * mode-switching.c (optimize_mode_switching): Make sure to emit
25473         sets of a lower numbered entity before sets of a higher numbered
25474         entity to a mode of the same or lower priority.
25475         When creating a seginfo for a basic block that starts with a code
25476         label, move the insertion point past the code label.
25477         (new_seginfo): Document and enforce requirement that
25478         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
25479         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
25480         * doc/tm.texi: Regenerate.
25481
25482 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25483
25484         PR target/60811
25485         * config/arc/arc.c (arc_save_restore): Fix assert typo.
25486
25487 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
25488
25489         * BASE-VER: Set to 4.10.0.
25490
25491 2014-04-11  Tobias Burnus  <burnus@net-b.de>
25492
25493         PR other/59055
25494         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
25495         * doc/gcc.texi (Service): Update description in the @menu
25496         * doc/invoke.texi (Option Summary): Remove misplaced and
25497         duplicated @menu.
25498
25499 2014-04-11  Steve Ellcey  <sellcey@mips.com>
25500             Jakub Jelinek  <jakub@redhat.com>
25501
25502         PR middle-end/60556
25503         * expr.c (convert_move): Use emit_store_flag_force instead of
25504         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
25505         argument to it.
25506
25507 2014-04-11  Richard Biener  <rguenther@suse.de>
25508
25509         PR middle-end/60797
25510         * varasm.c (assemble_alias): Avoid endless error reporting
25511         recursion by setting TREE_ASM_WRITTEN.
25512
25513 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25514
25515         * config/s390/s390.md: Add a splitter for NOT rtx.
25516
25517 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
25518
25519         PR rtl-optimization/60663
25520         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
25521
25522 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
25523             Jakub Jelinek  <jakub@redhat.com>
25524
25525         PR lto/60567
25526         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
25527         flag from decl_node to node.
25528
25529 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25530
25531         PR debug/60655
25532         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
25533         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
25534         ameliorating the cases where it can be.
25535
25536 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
25537
25538         Revert
25539         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
25540
25541         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25542         (loadsync_<mode>): Change mode.
25543         (load_quadpti, store_quadpti): New.
25544         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25545         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25546         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
25547
25548 2014-04-09  Cong Hou  <congh@google.com>
25549
25550         PR testsuite/60773
25551         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
25552         documentation.
25553
25554 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25555
25556         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
25557         instead of vnor to exploit possible fusion opportunity in the
25558         future.
25559         (altivec_expand_vec_perm_const_le): Likewise.
25560
25561 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
25562
25563         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25564         (loadsync_<mode>): Change mode.
25565         (load_quadpti, store_quadpti): New.
25566         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25567         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25568
25569 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
25570
25571         PR target/60763
25572         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
25573         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
25574         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
25575
25576 2014-04-08  Richard Biener  <rguenther@suse.de>
25577
25578         PR middle-end/60706
25579         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
25580         a 64bit widest int print double-int similar to on HWI64 hosts.
25581
25582 2014-04-08  Richard Biener  <rguenther@suse.de>
25583
25584         PR tree-optimization/60785
25585         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
25586         default defs properly.
25587
25588 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
25589
25590         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
25591         (Weffc++): Likewise.
25592
25593 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
25594
25595         * ipa-devirt.c (maybe_record_node): When node is not recorded,
25596         set completep to false rather than true.
25597
25598 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
25599
25600         PR target/60504
25601         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
25602         ARM_TARGET2_DWARF_FORMAT.
25603
25604 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
25605
25606         PR target/60609
25607         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
25608         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
25609         ADDR_DIFF_VEC.
25610
25611 2014-04-07  Richard Biener  <rguenther@suse.de>
25612
25613         PR tree-optimization/60766
25614         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
25615         (may_eliminate_iv): Convert cand_value_at result to desired type.
25616
25617 2014-04-07  Jason Merrill  <jason@redhat.com>
25618
25619         PR c++/60731
25620         * common.opt (-fno-gnu-unique): Add.
25621         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
25622
25623 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25624
25625         * haifa-sched.c: Fix outdated function reference and minor
25626         grammar errors in introductory comment.
25627
25628 2014-04-07  Richard Biener  <rguenther@suse.de>
25629
25630         PR middle-end/60750
25631         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
25632         for noreturn calls.
25633         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
25634
25635 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
25636
25637         PR debug/55794
25638         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
25639         size accounting for thunks.
25640         (pa_asm_output_mi_thunk): Use final_start_function() and
25641         final_end_function() to output function start and end directives.
25642
25643 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
25644
25645         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
25646         device specific ISA/ feature information. Remove short_sp and
25647         errata_skip ds.  Add avr_device_specific_features enum to have device
25648         specific info.
25649         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
25650         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
25651         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
25652         updated device specific info.
25653         * config/avr/avr-mcus.def: Merge device specific details to
25654         dev_attribute field.
25655         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
25656         errata_skip.
25657         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
25658         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
25659         assembler if RMW isa supported by current device.
25660         * config/avr/genmultilib.awk: Update as device info structure changed.
25661         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
25662
25663 2014-04-04  Cong Hou  <congh@google.com>
25664
25665         PR tree-optimization/60656
25666         * tree-vect-stmts.c (supportable_widening_operation):
25667         Fix a bug that elements in a vector with vect_used_by_reduction
25668         property are incorrectly reordered when the operation on it is not
25669         consistant with the one in reduction operation.
25670
25671 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
25672
25673         PR rtl-optimization/60155
25674         * gcse.c (record_set_data): New function.
25675         (single_set_gcse): New function.
25676         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
25677         (hoist_code): Likewise.
25678         (get_pressure_class_and_nregs): Likewise.
25679
25680 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
25681
25682         * explow.c (probe_stack_range): Emit a final optimization blockage.
25683
25684 2014-04-04  Anthony Green  <green@moxielogic.com>
25685
25686         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
25687         typos.
25688
25689 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
25690
25691         PR ipa/59626
25692         * lto-cgraph.c (input_overwrite_node): Check that partitioning
25693         flags are set only during streaming.
25694         * ipa.c (process_references, walk_polymorphic_call_targets,
25695         symtab_remove_unreachable_nodes): Drop bodies of always inline
25696         after early inlining.
25697         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25698
25699 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
25700         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25701
25702         PR debug/60655
25703         * dwarf2out.c (const_ok_for_output_1): Reject expressions
25704         containing a NOT.
25705
25706 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25707
25708         PR bootstrap/60743
25709         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25710         duration.
25711         (cortex_a53_fdivd): Likewise.
25712
25713 2014-04-04  Martin Jambor  <mjambor@suse.cz>
25714
25715         PR ipa/60640
25716         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25717         Adjust all callers.
25718         * cgraph.c (clone_of_p): Also return true if thunks match.
25719         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25720         cgraph_function_or_thunk_node and an obsolete comment.
25721         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25722         file.
25723         (build_function_decl_skip_args): Likewise.
25724         (set_new_clone_decl_and_node_flags): New function.
25725         (duplicate_thunk_for_node): Likewise.
25726         (redirect_edge_duplicating_thunks): Likewise.
25727         (cgraph_clone_node): New parameter args_to_skip, pass it to
25728         redirect_edge_duplicating_thunks which is called instead of
25729         cgraph_redirect_edge_callee.
25730         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25731         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25732
25733 2014-04-04  Jeff Law  <law@redhat.com>
25734
25735         PR target/60657
25736         * config/arm/predicates.md (const_int_I_operand): New predicate.
25737         (const_int_M_operand): Similarly.
25738         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25739         const_int_operand.
25740         (insv_t2, extv_reg, extzv_t2): Likewise.
25741         (load_multiple_with_writeback): Similarly for const_int_I_operand.
25742         (pop_multiple_with_writeback_and_return): Likewise.
25743         (vfp_pop_multiple_with_writeback): Likewise
25744
25745 2014-04-04  Richard Biener  <rguenther@suse.de>
25746
25747         PR ipa/60746
25748         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25749         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25750         non-GIMPLE_LABELs.
25751         * gimplify.h (gimple_add_tmp_var_fn): Declare.
25752         * gimplify.c (gimple_add_tmp_var_fn): New function.
25753         * gimple-expr.h (create_tmp_reg_fn): Declare.
25754         * gimple-expr.c (create_tmp_reg_fn): New function.
25755         * gimple-low.c (record_vars_into): Don't change cfun.
25756         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25757         code generation without cfun.
25758
25759 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
25760
25761         PR bootstrap/60719
25762         * Makefile.in (install-driver): Fix shell scripting.
25763
25764 2014-04-03  Cong Hou  <congh@google.com>
25765
25766         PR tree-optimization/60505
25767         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25768         threshold of number of iterations below which no vectorization
25769         will be done.
25770         * tree-vect-loop.c (new_loop_vec_info):
25771         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25772         * tree-vect-loop.c (vect_analyze_loop_operations):
25773         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25774         * tree-vect-loop.c (vect_transform_loop):
25775         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25776         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25777         of iterations of the loop and see if we should build the epilogue.
25778
25779 2014-04-03  Richard Biener  <rguenther@suse.de>
25780
25781         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25782         (streamer_tree_cache_create): Adjust.
25783         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25784         to allow optional nodes array.
25785         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25786         (streamer_tree_cache_append): Likewise.
25787         (streamer_tree_cache_create): Create nodes array optionally
25788         as specified by parameter.
25789         * lto-streamer-out.c (create_output_block): Avoid maintaining
25790         the node array in the writer cache.
25791         (DFS_write_tree): Remove assertion.
25792         (produce_asm_for_decls): Free the out decl state hash table early.
25793         * lto-streamer-in.c (lto_data_in_create): Adjust for
25794         streamer_tree_cache_create prototype change.
25795
25796 2014-04-03  Richard Biener  <rguenther@suse.de>
25797
25798         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25799         set TREE_CHAIN to NULL_TREE.
25800
25801 2014-04-03  Richard Biener  <rguenther@suse.de>
25802
25803         PR tree-optimization/60740
25804         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25805         over all GIMPLE_COND operands.
25806
25807 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
25808
25809         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25810         (Weffc++): Remove Scott's numbering, merge lists and reference
25811         Wnon-virtual-dtor.
25812
25813 2014-04-03  Nick Clifton  <nickc@redhat.com>
25814
25815         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25816         properly.
25817
25818 2014-04-03  Martin Jambor  <mjambor@suse.cz>
25819
25820         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25821         mention gcc_unreachable before failing.
25822         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25823         removed symbols.
25824
25825 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
25826
25827         PR ipa/60659
25828         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25829         inconsistent code and instead mark the context inconsistent.
25830         (possible_polymorphic_call_targets): For inconsistent contexts
25831         return empty complete list.
25832
25833 2014-04-02  Anthony Green  <green@moxielogic.com>
25834
25835         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25836         (extendqisi2, extendhisi2): Define.
25837         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25838         (WCHAR_TYPE): Change to unsigned int.
25839
25840 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25841
25842         PR tree-optimization/60733
25843         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25844         insertion point for PHI candidates to be the end of the feeding
25845         block for the PHI argument.
25846
25847 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
25848
25849         PR rtl-optimization/60650
25850         * lra-constraints.c (process_alt_operands): Decrease reject for
25851         earlyclobber matching.
25852
25853 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25854
25855         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25856
25857 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25858
25859         * config/spu/spu.c (pad_bb): Do not crash when the last
25860         insn is CODE_FOR_blockage.
25861
25862 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25863
25864         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25865         lies outside the target mode.
25866
25867 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25868
25869         PR target/60735
25870         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25871         software floating point or no floating point registers, do not
25872         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
25873         in GPRs that occurs after we tested for GPRs that would never be
25874         true.
25875
25876         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25877         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25878         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
25879         specifically allow DDmode, since that does not use the SPE SIMD
25880         instructions.
25881
25882 2014-04-02  Richard Biener  <rguenther@suse.de>
25883
25884         PR middle-end/60729
25885         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25886         MODE_INTs.  Properly use negv_optab.
25887         (expand_abs): Likewise.
25888
25889 2014-04-02  Richard Biener  <rguenther@suse.de>
25890
25891         PR bootstrap/60719
25892         * Makefile.in (install-driver): Guard extra installs with special
25893         names properly.
25894
25895 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25896
25897         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25898         Document vec_vgbbd.
25899
25900 2014-04-01  Richard Henderson  <rth@redhat.com>
25901
25902         PR target/60704
25903         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25904         alternative enabled before register allocation.
25905
25906 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
25907
25908         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25909         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25910         typo.
25911         (nios2_large_got_address): Remove unneeded 'sym' parameter.
25912         (nios2_got_address): Update nios2_large_got_address call site.
25913         (nios2_delegitimize_address): New function.
25914         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25915         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25916         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25917
25918 2014-04-01  Martin Husemann  <martin@duskware.de>
25919
25920         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25921         for -mabi=32.
25922
25923 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
25924
25925         PR rtl-optimization/60604
25926         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25927         check from register_operand.
25928         (register_operand): Redefine in terms of general_operand.
25929         (nonmemory_operand): Use register_operand for the non-constant cases.
25930
25931 2014-04-01  Richard Biener  <rguenther@suse.de>
25932
25933         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25934
25935 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25936
25937         * doc/invoke.texi (mapp-regs): Clarify.
25938
25939 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
25940
25941         * config/i386/avx512fintrin.h (__v32hi): Define type.
25942         (__v64qi): Likewise.
25943         (_mm512_set1_epi8): Define.
25944         (_mm512_set1_epi16): Define.
25945         (_mm512_set4_epi32): Define.
25946         (_mm512_set4_epi64): Define.
25947         (_mm512_set4_pd): Define.
25948         (_mm512_set4_ps): Define.
25949         (_mm512_setr4_epi64): Define.
25950         (_mm512_setr4_epi32): Define.
25951         (_mm512_setr4_pd): Define.
25952         (_mm512_setr4_ps): Define.
25953         (_mm512_setzero_epi32): Define.
25954
25955 2014-03-31  Martin Jambor  <mjambor@suse.cz>
25956
25957         PR middle-end/60647
25958         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25959         callsite_arguments_match_p.  Updated all callers.  Also check types of
25960         corresponding formal parameters and actual arguments.
25961         (not_all_callers_have_enough_arguments_p) Renamed to
25962         some_callers_have_mismatched_arguments_p.
25963
25964 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
25965
25966         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25967
25968 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
25969
25970         PR target/60034
25971         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25972         section anchor.
25973
25974 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
25975
25976         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25977         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25978         Split out
25979         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25980         Use FMAMODE_NOVF512 mode iterator.
25981         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25982         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25983         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25984         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25985         Split out
25986         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25987         Use VF_128_256 mode iterator.
25988         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25989         Ditto.
25990
25991 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25992
25993         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25994         static chain if needed.
25995
25996 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25997
25998         PR target/60697
25999         * lra-constraints.c (index_part_to_reg): New.
26000         (process_address): Use it.
26001
26002 2014-03-27  Jeff Law  <law@redhat.com>
26003             Jakub Jelinek  <jakub@redhat.com>
26004
26005         PR target/60648
26006         * expr.c (do_tablejump): Use simplify_gen_binary rather than
26007         gen_rtx_{PLUS,MULT} to build up the address expression.
26008
26009         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
26010         creating non-canonical RTL.
26011
26012 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
26013
26014         PR ipa/60243
26015         * ipa-inline.c (want_inline_small_function_p): Short circuit large
26016         functions; reorganize to make cheap checks first.
26017         (inline_small_functions): Do not estimate growth when dumping;
26018         it is expensive.
26019         * ipa-inline.h (inline_summary): Add min_size.
26020         (growth_likely_positive): New function.
26021         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
26022         (set_cond_stmt_execution_predicate): Cleanup.
26023         (estimate_edge_size_and_time): Compute min_size.
26024         (estimate_calls_size_and_time): Likewise.
26025         (estimate_node_size_and_time): Likewise.
26026         (inline_update_overall_summary): Update min_size.
26027         (do_estimate_edge_time): Likewise.
26028         (do_estimate_edge_size): Update.
26029         (do_estimate_edge_hints): Update.
26030         (growth_likely_positive): New function.
26031
26032 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
26033
26034         PR target/60693
26035         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
26036         also if addr has VOIDmode.
26037
26038 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26039
26040         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
26041         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
26042         Declare extern.
26043         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
26044         instructions as well as AdvancedSIMD loads.
26045
26046 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26047
26048         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
26049         Use crypto_aese type.
26050         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
26051         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
26052         crypto_aese, crypto_aesmc.  Move to types.md.
26053         * config/arm/types.md (crypto_aes): Split into crypto_aese,
26054         crypto_aesmc.
26055         * config/arm/iterators.md (crypto_type): Likewise.
26056
26057 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
26058
26059         * cgraph.c: Include expr.h and tree-dfa.h.
26060         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
26061         remove LHS.
26062
26063 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
26064
26065         PR target/60675
26066         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
26067         regs from checking multi-reg pseudos.
26068
26069 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26070
26071         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
26072
26073 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26074
26075         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
26076         if it would clobber the stack pointer, even temporarily.
26077
26078 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
26079
26080         * mode-switching.c: Make small adjustments to the top comment.
26081
26082 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
26083
26084         * config/rs6000/constraints.md (wD constraint): New constraint to
26085         match the constant integer to get the top DImode/DFmode out of a
26086         vector in a VSX register.
26087
26088         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
26089         match the constant integer to get the top DImode/DFmode out of a
26090         vector in a VSX register.
26091
26092         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
26093         for ISA 2.07.
26094
26095         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26096         vbpermq builtins.
26097
26098         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
26099         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
26100
26101         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
26102         Optimize vec_extract of 64-bit values, where the value being
26103         extracted is in the top word, where we can use scalar
26104         instructions.  Add direct move and store support.  Combine the big
26105         endian/little endian vector select load support into a single insn.
26106         (vsx_extract_<mode>_internal1): Likewise.
26107         (vsx_extract_<mode>_internal2): Likewise.
26108         (vsx_extract_<mode>_load): Likewise.
26109         (vsx_extract_<mode>_store): Likewise.
26110         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
26111         combined into vsx_extract_<mode>_load.
26112         (vsx_extract_<mode>_one_le): Likewise.
26113
26114         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
26115         define the top 64-bit vector element.
26116
26117         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
26118         constraint.
26119
26120         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26121         Document vec_vbpermq builtin.
26122
26123         PR target/60672
26124         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
26125         enable use of xxsldwi and xxpermdi builtin functions.
26126         (vec_xxpermdi): Likewise.
26127
26128         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26129         Document use of vec_xxsldwi and vec_xxpermdi builtins.
26130
26131 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26132
26133         PR rtl-optimization/60650
26134         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
26135         first_p.  Use it.
26136         (find_spills_for): New.
26137         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
26138         Spill all pseudos on the second iteration.
26139
26140 2014-03-27  Marek Polacek  <polacek@redhat.com>
26141
26142         PR c/50347
26143         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
26144         types.
26145
26146 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26147
26148         * config/s390/s390.c (s390_can_use_return_insn): Check for
26149         call-saved FPRs on 31 bit.
26150
26151 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
26152
26153         PR middle-end/60682
26154         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
26155         if they need regimplification, just drop them instead of
26156         calling gimple_regimplify_operands on them.
26157
26158 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26159
26160         PR target/60580
26161         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
26162         (aarch64_frame_pointer_required): Adjust logic.
26163         (aarch64_can_eliminate): Adjust logic.
26164         (aarch64_override_options_after_change): Adjust logic.
26165
26166 2014-03-27  Dehao Chen  <dehao@google.com>
26167
26168         * ipa-inline.c (early_inliner): Update node's inline info.
26169
26170 2014-03-26  Dehao Chen  <dehao@google.com>
26171
26172         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
26173         compiler inserted conditional jumps for NAN float check.
26174
26175 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
26176
26177         * ubsan.h (ubsan_create_data): Change second argument's type
26178         to const location_t *.
26179         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
26180         _("<unknown>").
26181         (ubsan_create_data): Change second argument to const location_t *PLOC.
26182         Create Loc field whenever PLOC is non-NULL.
26183         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
26184         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
26185         callers.
26186
26187         PR other/59545
26188         * real.c (real_to_integer2): Change type of low to UHWI.
26189
26190 2014-03-26  Tobias Burnus  <burnus@net-b.de>
26191
26192         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
26193         (CILK_SELF_SPECS): New define.
26194         (driver_self_specs): Use it.
26195
26196 2014-03-26  Richard Biener  <rguenther@suse.de>
26197
26198         * tree-pretty-print.c (percent_K_format): Implement special
26199         case for LTO and its stripped down BLOCK tree.
26200
26201 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
26202
26203         PR sanitizer/60636
26204         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
26205
26206         * tree-vrp.c (simplify_internal_call_using_ranges): If only
26207         one range is range_int_cst_p, but not both, at least optimize
26208         addition/subtraction of 0 and multiplication by 0 or 1.
26209         * gimple-fold.c (gimple_fold_call): Fold
26210         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
26211         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
26212         INTEGER_CSTs, try to fold at least x * 0 and y - y.
26213
26214 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
26215
26216         PR rtl-optimization/60452
26217         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
26218         <case REG>: Return 1 for invalid offsets from the frame pointer.
26219
26220 2014-03-26  Marek Polacek  <polacek@redhat.com>
26221
26222         PR c/37428
26223         * doc/extend.texi (C Extensions): Mention variable-length arrays in
26224         a structure/union.
26225
26226 2014-03-26  Marek Polacek  <polacek@redhat.com>
26227
26228         PR c/39525
26229         * doc/extend.texi (Designated Inits): Describe what happens to omitted
26230         field members.
26231
26232 2014-03-26  Marek Polacek  <polacek@redhat.com>
26233
26234         PR other/59545
26235         * ira-color.c (update_conflict_hard_regno_costs): Perform the
26236         multiplication in unsigned type.
26237
26238 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
26239
26240         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
26241
26242 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
26243
26244         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
26245
26246 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
26247
26248         PR ipa/60315
26249         * cif-code.def (UNREACHABLE) New code.
26250         * ipa-inline.c (inline_small_functions): Skip edges to
26251         __builtlin_unreachable.
26252         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
26253         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
26254         predicate to __bulitin_unreachable.
26255         (set_cond_stmt_execution_predicate): Fix issue when
26256         invert_tree_comparison returns ERROR_MARK.
26257         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
26258         propagate to inline clones.
26259         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
26260         to unreachable.
26261         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
26262         * cgraphclones.c (cgraph_clone_node): If call destination is already
26263         ureachable, do not redirect it back.
26264         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
26265         unreachable.
26266
26267 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
26268
26269         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
26270         Do not modify inline clones.
26271
26272 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
26273
26274         * config/i386/i386.md (general_sext_operand): New mode attr.
26275         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
26276         don't generate (sign_extend (const_int)).
26277         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
26278         operands[2].  Use We constraint instead of <i> and
26279         <general_sext_operand> predicate instead of <general_operand>.
26280         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
26281         * config/i386/constraints.md (We): New constraint.
26282         * config/i386/predicates.md (x86_64_sext_operand,
26283         sext_operand): New predicates.
26284
26285 2014-03-25  Martin Jambor  <mjambor@suse.cz>
26286
26287         PR ipa/60600
26288         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
26289         inconsistent devirtualizations to __builtin_unreachable.
26290
26291 2014-03-25  Marek Polacek  <polacek@redhat.com>
26292
26293         PR c/35449
26294         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
26295
26296 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
26297
26298         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
26299         order of elements for big-endian.
26300
26301 2014-03-25  Richard Biener  <rguenther@suse.de>
26302
26303         PR middle-end/60635
26304         * gimplify-me.c (gimple_regimplify_operands): Update the
26305         re-gimplifed stmt.
26306
26307 2014-03-25  Martin Jambor  <mjambor@suse.cz>
26308
26309         PR ipa/59176
26310         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
26311         (lto_output_varpool_node): Likewise.
26312         (input_overwrite_node): Likewise.
26313         (input_varpool_node): Likewise.
26314
26315 2014-03-25  Richard Biener  <rguenther@suse.de>
26316
26317         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
26318         (run_gcc): Likewise.
26319
26320 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
26321
26322         * combine.c (simplify_compare_const): Add MODE argument.
26323         Handle mode_width 0 as very large mode_width.
26324         (try_combine, simplify_comparison): Adjust callers.
26325
26326         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
26327         type to avoid signed integer overflow.
26328         * explow.c (plus_constant): Likewise.
26329
26330 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26331
26332         * doc/generic.texi: Correct typos.
26333
26334 2014-03-24  Tobias Burnus  <burnus@net-b.de>
26335
26336         * doc/invoke.texi (-flto): Expand section about
26337         using static libraries with LTO.
26338
26339 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26340
26341         PR rtl-optimization/60501
26342         * optabs.def (addptr3_optab): New optab.
26343         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
26344         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
26345         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
26346
26347         * lra.c (emit_add3_insn): Use the addptr pattern if available.
26348
26349         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
26350
26351 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
26352
26353         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
26354         _mm512_set1_pd.
26355
26356         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
26357         (_mm256_undefined_ps): Define.
26358         (_mm256_undefined_pd): Define.
26359         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
26360         (_mm_undefined_pd): Define.
26361         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
26362         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
26363         (_mm512_undefined_ps): Define.
26364         (_mm512_undefined_pd): Define.
26365         Use _mm*_undefined_*.
26366         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
26367
26368 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
26369
26370         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
26371         (lshr_simd): DI mode added.
26372         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
26373         (aarch64_ushr_simddi): Likewise.
26374         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
26375         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
26376         (vshrd_n_u64): Likewise.
26377
26378 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26379
26380         * Makefile.in (s-macro_list): Depend on cc1.
26381
26382 2014-03-23  Teresa Johnson  <tejohnson@google.com>
26383
26384         * ipa-utils.c (ipa_print_order): Use specified dump file.
26385
26386 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
26387
26388         PR rtl-optimization/60601
26389         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
26390
26391         * gcc.c (eval_spec_function): Initialize save_growing_value.
26392
26393 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
26394
26395         PR sanitizer/60613
26396         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
26397         code == MINUS_EXPR, never swap op0 with op1.
26398
26399         * toplev.c (init_local_tick): Avoid signed integer multiplication
26400         overflow.
26401         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
26402         shift by first operand's bitsize.
26403
26404 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
26405
26406         PR target/60610
26407         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
26408         redefine to 1 or 0.
26409         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
26410         TARGET_ISA_64BIT_P(x).
26411
26412 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26413
26414         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
26415         pattern for vector nor instead of subtract from splat(-1).
26416         (altivec_expand_vec_perm_const_le): Likewise.
26417
26418 2014-03-21  Richard Henderson  <rth@twiddle.net>
26419
26420         PR target/60598
26421         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
26422         related insns after epilogue_completed.
26423
26424 2014-03-21  Martin Jambor  <mjambor@suse.cz>
26425
26426         PR ipa/59176
26427         * cgraph.h (symtab_node): New flag body_removed.
26428         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
26429         when removing bodies.
26430         * symtab.c (dump_symtab_base): Dump body_removed flag.
26431         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
26432         had their bodies removed.
26433
26434 2014-03-21  Martin Jambor  <mjambor@suse.cz>
26435
26436         PR ipa/60419
26437         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
26438         in the border.
26439
26440 2014-03-21  Richard Biener  <rguenther@suse.de>
26441
26442         PR tree-optimization/60577
26443         * tree-core.h (struct tree_base): Document nothrow_flag use
26444         in DECL_NONALIASED.
26445         * tree.h (DECL_NONALIASED): New.
26446         (may_be_aliased): Adjust.
26447         * coverage.c (build_var): Set DECL_NONALIASED.
26448
26449 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26450
26451         * expr.c (expand_expr_real_1): Remove outdated comment.
26452
26453 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
26454
26455         PR middle-end/60597
26456         * ira.c (adjust_cleared_regs): Call copy_rtx on
26457         *reg_equiv[REGNO (loc)].src_p before passing it to
26458         simplify_replace_fn_rtx.
26459
26460         PR target/60568
26461         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
26462         into CONST, put pic register as first operand of PLUS.  Use
26463         gen_const_mem for both 32-bit and 64-bit PIC got loads.
26464
26465 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26466
26467         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
26468
26469 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26470
26471         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
26472         around for store forwarding issue in the FPU on the UT699.
26473         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
26474         loads and operations if -mfix-ut699 is specified.
26475         (divtf3_hq): Tweak attribute.
26476         (sqrttf2_hq): Likewise.
26477
26478 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26479
26480         * calls.c (store_one_arg): Remove incorrect const qualification on the
26481         type of the temporary.
26482         * cfgexpand.c (expand_return): Likewise.
26483         * expr.c (expand_constructor): Likewise.
26484         (expand_expr_real_1): Likewise.
26485
26486 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26487
26488         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
26489         of parts.
26490
26491 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26492
26493         PR target/60039
26494         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
26495
26496 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
26497
26498         * config/arm/aarch-common-protos.h
26499         (alu_cost_table): Fix spelling of "extend".
26500         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
26501
26502 2014-03-19  Richard Biener  <rguenther@suse.de>
26503
26504         PR middle-end/60553
26505         * tree-core.h (tree_type_common): Re-order pointer members
26506         to reduce recursion depth during GC walks.
26507
26508 2014-03-19  Marek Polacek  <polacek@redhat.com>
26509
26510         PR sanitizer/60569
26511         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
26512         before accessing it.
26513
26514 2014-03-19  Richard Biener  <rguenther@suse.de>
26515
26516         PR lto/59543
26517         * lto-streamer-in.c (input_function): In WPA stage do not drop
26518         debug stmts.
26519
26520 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
26521
26522         PR tree-optimization/60559
26523         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
26524         with build_zero_cst assignment.
26525
26526 2014-03-18  Kai Tietz  <ktietz@redhat.com>
26527
26528         PR rtl-optimization/56356
26529         * sdbout.c (sdbout_parms): Verify that parms'
26530         incoming argument is valid.
26531         (sdbout_reg_parms): Likewise.
26532
26533 2014-03-18  Richard Henderson  <rth@redhat.com>
26534
26535         PR target/60562
26536         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
26537         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
26538         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
26539
26540 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
26541
26542         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
26543         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
26544         Italicize plugin event names in description.  Explain that
26545         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
26546         Remind that no GCC functions should be called after PLUGIN_FINISH.
26547         Explain what pragmas with expansion are.
26548
26549 2014-03-18  Martin Liska  <mliska@suse.cz>
26550
26551         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
26552         gimple call statement is update.
26553         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
26554         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
26555
26556 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
26557
26558         PR sanitizer/60557
26559         * ubsan.c (ubsan_instrument_unreachable): Call
26560         initialize_sanitizer_builtins.
26561         (ubsan_pass): Likewise.
26562
26563         PR sanitizer/60535
26564         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
26565         varpool_finalize_decl instead of rest_of_decl_compilation.
26566
26567 2014-03-18  Richard Biener  <rguenther@suse.de>
26568
26569         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
26570         by using bitmap_and_compl instead of bitmap_and_compl_into.
26571         (df_rd_transfer_function): Likewise.
26572
26573 2014-03-18  Richard Biener  <rguenther@suse.de>
26574
26575         * doc/lto.texi (fresolution): Fix typo.
26576
26577 2014-03-18  Richard Biener  <rguenther@suse.de>
26578
26579         * doc/invoke.texi (flto): Update for changes in 4.9.
26580
26581 2014-03-18  Richard Biener  <rguenther@suse.de>
26582
26583         * doc/loop.texi: Remove section on the removed lambda framework.
26584         Update loop docs with recent changes in preserving loop structure.
26585
26586 2014-03-18  Richard Biener  <rguenther@suse.de>
26587
26588         * doc/lto.texi (-fresolution): Document.
26589
26590 2014-03-18  Richard Biener  <rguenther@suse.de>
26591
26592         * doc/contrib.texi: Adjust my name.
26593
26594 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
26595
26596         PR ipa/58721
26597         * internal-fn.c: Include diagnostic-core.h.
26598         (expand_BUILTIN_EXPECT): New function.
26599         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
26600         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
26601         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
26602         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
26603         IFN_BUILTIN_EXPECT.
26604         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
26605         Revert 3 argument __builtin_expect code.
26606         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
26607         * gimple-fold.c (gimple_fold_call): Likewise.
26608         * tree.h (fold_builtin_expect): New prototype.
26609         * builtins.c (build_builtin_expect_predicate): Add predictor
26610         argument, if non-NULL, create 3 argument __builtin_expect.
26611         (fold_builtin_expect): No longer static.  Add ARG2 argument,
26612         pass it through to build_builtin_expect_predicate.
26613         (fold_builtin_2): Adjust caller.
26614         (fold_builtin_3): Handle BUILT_IN_EXPECT.
26615         * internal-fn.def (BUILTIN_EXPECT): New.
26616
26617 2014-03-18  Tobias Burnus  <burnus@net-b.de>
26618
26619         PR ipa/58721
26620         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
26621         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
26622         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
26623
26624 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
26625
26626         PR ipa/58721
26627         * predict.c (combine_predictions_for_bb): Fix up formatting.
26628         (expr_expected_value_1, expr_expected_value): Add predictor argument,
26629         fill what it points to if non-NULL.
26630         (tree_predict_by_opcode): Adjust caller, use the predictor.
26631         * predict.def (PRED_COMPARE_AND_SWAP): Add.
26632
26633 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
26634
26635         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
26636         proper constant for the store mode.
26637
26638 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
26639
26640         * symtab.c (change_decl_assembler_name): Fix transparent alias
26641         chain construction.
26642
26643 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
26644
26645         * config/aarch64/aarch64.c: Correct the comments about the
26646         aarch64 stack layout.
26647
26648 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
26649
26650         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
26651         check for GF_OMP_FOR_KIND_FOR.
26652
26653 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
26654
26655         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
26656         ymm and zmm register names.
26657
26658 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
26659
26660         PR target/60516
26661         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
26662         note creation for the 2010-08-31 changes.
26663
26664 2014-03-17  Marek Polacek  <polacek@redhat.com>
26665
26666         PR middle-end/60534
26667         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
26668         as -fno-tree-loop-vectorize.
26669         (expand_omp_simd): Likewise.
26670
26671 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26672
26673         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
26674         (eligible_for_call_delay): New prototype.
26675         * config/sparc/sparc.c (tls_call_delay): Rename into...
26676         (eligible_for_call_delay): ...this.  Return false if the instruction
26677         cannot be put in the delay slot of a branch.
26678         (eligible_for_restore_insn): Simplify.
26679         (eligible_for_return_delay): Return false if the instruction cannot be
26680         put in the delay slot of a branch and simplify.
26681         (eligible_for_sibcall_delay): Return false if the instruction cannot be
26682         put in the delay slot of a branch.
26683         * config/sparc/sparc.md (fix_ut699): New attribute.
26684         (tls_call_delay): Delete.
26685         (in_call_delay): Reimplement.
26686         (eligible_for_sibcall_delay): Rename into...
26687         (in_sibcall_delay): ...this.
26688         (eligible_for_return_delay): Rename into...
26689         (in_return_delay): ...this.
26690         (in_branch_delay): Reimplement.
26691         (in_uncond_branch_delay): Delete.
26692         (in_annul_branch_delay): Delete.
26693
26694 2014-03-14  Richard Henderson  <rth@redhat.com>
26695
26696         PR target/60525
26697         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26698         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26699         (*floathi<X87MODEF>2_i387_with_temp): Remove.
26700         (floathi splitters): Remove.
26701         (float<SWI48x>xf2): New pattern.
26702         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
26703         code that tried to handle DImode for 32-bit, but which was excluded
26704         by the pattern's condition.  Drop allocation of stack temporary.
26705         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26706         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26707         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26708         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26709         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26710         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26711         (*float<SWI48><MODEF>2_sse_interunit): Remove.
26712         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26713         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26714         (*float<SWI48x><X87MODEF>2_i387): Remove.
26715         (all float _with_temp splitters): Remove.
26716         (*float<SWI48x><MODEF>2_i387): New pattern.
26717         (*float<SWI48><MODEF>2_sse): New pattern.
26718         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26719         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26720
26721 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
26722             Marek Polacek  <polacek@redhat.com>
26723
26724         PR middle-end/60484
26725         * common.opt (dump_base_name_prefixed): New Variable.
26726         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26727         if x_dump_base_name_prefixed is already set, set it at the end.
26728
26729 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
26730
26731         PR rtl-optimization/60508
26732         * lra-constraints.c (get_reload_reg): Add new parameter
26733         in_subreg_p.
26734         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26735         Pass the new parameter values.
26736
26737 2014-03-14  Richard Biener  <rguenther@suse.de>
26738
26739         * common.opt: Revert unintented changes from r205065.
26740         * opts.c: Likewise.
26741
26742 2014-03-14  Richard Biener  <rguenther@suse.de>
26743
26744         PR middle-end/60518
26745         * cfghooks.c (split_block): Properly adjust all loops the
26746         block was a latch of.
26747
26748 2014-03-14  Martin Jambor  <mjambor@suse.cz>
26749
26750         PR lto/60461
26751         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26752         and simplify it.
26753
26754 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
26755
26756         PR target/59396
26757         * config/avr/avr.c (avr_set_current_function): Pass function name
26758         through default_strip_name_encoding before sanity checking instead
26759         of skipping the first char of the assembler name.
26760
26761 2014-03-13  Richard Henderson  <rth@redhat.com>
26762
26763         PR debug/60438
26764         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26765         (ix86_force_to_memory, ix86_free_from_memory): Remove.
26766         * config/i386/i386-protos.h: Likewise.
26767         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26768         in the expander instead of a splitter.
26769         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26770         any possibility of requiring a memory.
26771         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26772         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26773         (fp branch splitters): Update for ix86_split_fp_branch.
26774         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26775         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26776         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26777         (*fop_<MODEF>_2_i387): Remove f/r alternative.
26778         (*fop_<MODEF>_3_i387): Likewise.
26779         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26780         (splitters for the fop_* register patterns): Remove.
26781         (fscalexf4_i387): Rename from *fscalexf4_i387.
26782         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26783
26784 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
26785
26786         PR tree-optimization/59779
26787         * tree-dfa.c (get_ref_base_and_extent): Use double_int
26788         type for bitsize and maxsize instead of HOST_WIDE_INT.
26789
26790 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
26791
26792         PR rtl-optimization/57320
26793         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26794         the CFG after thread_prologue_and_epilogue_insns.
26795
26796 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
26797
26798         PR rtl-optimization/57189
26799         * lra-constraints.c (process_alt_operands): Disfavor spilling
26800         vector pseudos.
26801
26802 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
26803
26804         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26805
26806 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
26807
26808         PR tree-optimization/59025
26809         PR middle-end/60418
26810         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26811         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26812
26813 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
26814
26815         PR target/60486
26816         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26817         calls of avr_out_plus_1.
26818
26819 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
26820
26821         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26822         BB's single pred and update the father loop's latch info later.
26823
26824 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26825
26826         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26827         (VEC_M): Likewise.
26828         (VEC_N): Likewise.
26829         (VEC_R): Likewise.
26830         (VEC_base): Likewise.
26831         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26832         registers, we need to swap double words in little endian mode.
26833
26834         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26835         to be a container mode for 128-bit integer operations added in ISA
26836         2.07.  Unlike TImode and PTImode, the preferred register set is
26837         the Altivec/VMX registers for the 128-bit operations.
26838
26839         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26840         declarations.
26841         (rs6000_split_128bit_ok_p): Likewise.
26842
26843         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26844         macros for creating ISA 2.07 normal and overloaded builtin
26845         functions with 3 arguments.
26846         (BU_P8V_OVERLOAD_3): Likewise.
26847         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26848         for use as overloaded functions.
26849         (VPERM_1TI_UNS): Likewise.
26850         (VSEL_1TI): Likewise.
26851         (VSEL_1TI_UNS): Likewise.
26852         (ST_INTERNAL_1ti): Likewise.
26853         (LD_INTERNAL_1ti): Likewise.
26854         (XXSEL_1TI): Likewise.
26855         (XXSEL_1TI_UNS): Likewise.
26856         (VPERM_1TI): Likewise.
26857         (VPERM_1TI_UNS): Likewise.
26858         (XXPERMDI_1TI): Likewise.
26859         (SET_1TI): Likewise.
26860         (LXVD2X_V1TI): Likewise.
26861         (STXVD2X_V1TI): Likewise.
26862         (VEC_INIT_V1TI): Likewise.
26863         (VEC_SET_V1TI): Likewise.
26864         (VEC_EXT_V1TI): Likewise.
26865         (EQV_V1TI): Likewise.
26866         (NAND_V1TI): Likewise.
26867         (ORC_V1TI): Likewise.
26868         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26869         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
26870         overloaded builtin.
26871         (VADDUQM): Likewise.
26872         (VSUBCUQ): Likewise.
26873         (VADDEUQM): Likewise.
26874         (VADDECUQ): Likewise.
26875         (VSUBEUQM): Likewise.
26876         (VSUBECUQ): Likewise.
26877
26878         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26879         __int128_t and __uint128_t types.
26880         (__uint128_type): Likewise.
26881         (altivec_categorize_keyword): Add support for vector __int128_t,
26882         vector __uint128_t, vector __int128, and vector unsigned __int128
26883         as a container type for TImode operations that need to be done in
26884         VSX/Altivec registers.
26885         (rs6000_macro_to_expand): Likewise.
26886         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26887         to support 128-bit integer instructions vaddcuq, vadduqm,
26888         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26889         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26890
26891         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26892         for V1TImode, and set up preferences to use VSX/Altivec registers.
26893         Setup VSX reload handlers.
26894         (rs6000_debug_reg_global): Likewise.
26895         (rs6000_init_hard_regno_mode_ok): Likewise.
26896         (rs6000_preferred_simd_mode): Likewise.
26897         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26898         (easy_altivec_constant): Likewise.
26899         (output_vec_const_move): Likewise.
26900         (rs6000_expand_vector_set): Convert V1TImode set and extract to
26901         simple move.
26902         (rs6000_expand_vector_extract): Likewise.
26903         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26904         addressing.
26905         (rs6000_const_vec): Add support for V1TImode.
26906         (rs6000_emit_le_vsx_load): Swap double words when loading or
26907         storing TImode/V1TImode.
26908         (rs6000_emit_le_vsx_store): Likewise.
26909         (rs6000_emit_le_vsx_move): Likewise.
26910         (rs6000_emit_move): Add support for V1TImode.
26911         (altivec_expand_ld_builtin): Likewise.
26912         (altivec_expand_st_builtin): Likewise.
26913         (altivec_expand_vec_init_builtin): Likewise.
26914         (altivec_expand_builtin): Likewise.
26915         (rs6000_init_builtins): Add support for V1TImode type.  Add
26916         support for ISA 2.07 128-bit integer builtins.  Define type names
26917         for the VSX/Altivec vector types.
26918         (altivec_init_builtins): Add support for overloaded vector
26919         functions with V1TImode type.
26920         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26921         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26922         external function.
26923         (rs6000_split_128bit_ok_p): Likewise.
26924         (rs6000_handle_altivec_attribute): Create V1TImode from vector
26925         __int128_t and vector __uint128_t.
26926
26927         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26928         and mode attributes.
26929         (VSX_M): Likewise.
26930         (VSX_M2): Likewise.
26931         (VSm): Likewise.
26932         (VSs): Likewise.
26933         (VSr): Likewise.
26934         (VSv): Likewise.
26935         (VS_scalar): Likewise.
26936         (VS_double): Likewise.
26937         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26938
26939         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26940         we support the ISA 2.07 128-bit integer arithmetic instructions.
26941         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26942         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26943         and TImode types for use with the builtin functions.
26944         (V1TI_type_node): Likewise.
26945         (unsigned_V1TI_type_node): Likewise.
26946         (intTI_type_internal_node): Likewise.
26947         (uintTI_type_internal_node): Likewise.
26948
26949         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26950         128-bit builtin functions.
26951         (UNSPEC_VADDEUQM): Likewise.
26952         (UNSPEC_VADDECUQ): Likewise.
26953         (UNSPEC_VSUBCUQ): Likewise.
26954         (UNSPEC_VSUBEUQM): Likewise.
26955         (UNSPEC_VSUBECUQ): Likewise.
26956         (VM): Add V1TImode to vector mode iterators.
26957         (VM2): Likewise.
26958         (VI_unit): Likewise.
26959         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26960         (altivec_vaddcuq): Likewise.
26961         (altivec_vsubuqm): Likewise.
26962         (altivec_vsubcuq): Likewise.
26963         (altivec_vaddeuqm): Likewise.
26964         (altivec_vaddecuq): Likewise.
26965         (altivec_vsubeuqm): Likewise.
26966         (altivec_vsubecuq): Likewise.
26967
26968         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26969         mode iterators.
26970         (BOOL_128): Likewise.
26971         (BOOL_REGS_OUTPUT): Likewise.
26972         (BOOL_REGS_OP1): Likewise.
26973         (BOOL_REGS_OP2): Likewise.
26974         (BOOL_REGS_UNARY): Likewise.
26975         (BOOL_REGS_AND_CR0): Likewise.
26976
26977         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26978         128-bit integer builtin support.
26979         (vec_vadduqm): Likewise.
26980         (vec_vaddecuq): Likewise.
26981         (vec_vaddeuqm): Likewise.
26982         (vec_vsubecuq): Likewise.
26983         (vec_vsubeuqm): Likewise.
26984         (vec_vsubcuq): Likewise.
26985         (vec_vsubuqm): Likewise.
26986
26987         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26988         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26989         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26990         128-bit integer add/subtract to ISA 2.07.
26991
26992 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26993
26994         * config/arc/arc.c (arc_predicate_delay_insns):
26995         Fix third argument passed to conditionalize_nonjump.
26996
26997 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
26998
26999         * config/aarch64/aarch64-builtins.c
27000         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
27001         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
27002         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
27003         instead of __builtin_lfloor.
27004         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
27005
27006 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
27007
27008         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
27009         (tree_ssa_ifcombine_bb_1): New function.
27010         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
27011         is an empty forwarder block to then_bb or vice versa and then_bb
27012         and else_bb are effectively swapped.
27013
27014 2014-03-12  Christian Bruel  <christian.bruel@st.com>
27015
27016         PR target/60264
27017         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
27018         REG_CFA_DEF_CFA note.
27019         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
27020         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
27021
27022 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27023
27024         PR tree-optimization/60454
27025         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
27026
27027 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27028
27029         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
27030         Do not define target_cpu_default2 to generic.
27031         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
27032         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
27033         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
27034
27035 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
27036             Marc Glisse  <marc.glisse@inria.fr>
27037
27038         PR tree-optimization/60502
27039         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
27040         instead of build_low_bits_mask.
27041
27042 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
27043
27044         PR middle-end/60482
27045         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
27046         if there are multiple uses, but op doesn't live on E edge.
27047         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
27048         clobber stmts before __builtin_unreachable.
27049
27050 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
27051
27052         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
27053         hard_frame_pointer_rtx.
27054         * cse.c (cse_insn): Remove volatile check.
27055         * cselib.c (cselib_process_insn): Likewise.
27056         * dse.c (scan_insn): Likewise.
27057
27058 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27059
27060         * config/arc/arc.c (conditionalize_nonjump): New function,
27061         broken out of ...
27062         (arc_ifcvt): ... this.
27063         (arc_predicate_delay_insns): Use it.
27064
27065 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27066
27067         * config/arc/predicates.md (extend_operand): During/after reload,
27068         allow const_int_operand.
27069         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
27070         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
27071         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
27072         to "i".
27073         (umulsi3_highpart_i): Likewise.
27074
27075 2014-03-11  Richard Biener  <rguenther@suse.de>
27076
27077         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
27078         Add asserts to guard possible wrong-code bugs.
27079
27080 2014-03-11  Richard Biener  <rguenther@suse.de>
27081
27082         PR tree-optimization/60429
27083         PR tree-optimization/60485
27084         * tree-ssa-structalias.c (set_union_with_increment): Properly
27085         take into account all fields that overlap the shifted vars.
27086         (do_sd_constraint): Likewise.
27087         (do_ds_constraint): Likewise.
27088         (get_constraint_for_ptr_offset): Likewise.
27089
27090 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
27091
27092         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
27093         (nios2_compute_frame_layout):
27094         Add calculation of cfun->machine->fp_save_offset.
27095         (nios2_expand_prologue): Correct setting of frame pointer register
27096         in prologue.
27097         (nios2_expand_epilogue): Update recovery of stack pointer from
27098         frame pointer accordingly.
27099         (nios2_initial_elimination_offset): Update calculation of offset
27100         for eliminating to HARD_FRAME_POINTER_REGNUM.
27101
27102 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
27103
27104         PR ipa/60457
27105         * ipa.c (symtab_remove_unreachable_nodes): Don't call
27106         cgraph_get_create_node on VAR_DECLs.
27107
27108 2014-03-10  Richard Biener  <rguenther@suse.de>
27109
27110         PR middle-end/60474
27111         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
27112
27113 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
27114
27115         * config/vms/vms.opt (vms_float_format): New variable.
27116
27117 2014-03-08  Tobias Burnus  <burnus@net-b.de>
27118
27119         * doc/invoke.texi (-fcilkplus): Update implementation status.
27120
27121 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
27122             Richard Biener  <rguenther@suse.de>
27123
27124         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
27125         consistently accross all TUs.
27126         (run_gcc): Enable -fshort-double automatically at link at link-time
27127         and disallow override.
27128
27129 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
27130
27131         PR target/58271
27132         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
27133         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
27134         if they can't be used.
27135
27136 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27137
27138         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
27139         for Solaris 11/x86 ld.
27140         * configure: Regenerate.
27141
27142 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27143
27144         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
27145         (LIB_TLS_SPEC): Save as ld_tls_libs.
27146         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
27147         (HAVE_AS_IX86_TLSLDM): New test.
27148         * configure, config.in: Regenerate.
27149         * config/i386/i386.c (legitimize_tls_address): Fall back to
27150         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
27151         cannot support TLS_MODEL_LOCAL_DYNAMIC.
27152         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
27153         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
27154
27155 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
27156
27157         * common.opt (fira-loop-pressure): Mark as optimization.
27158
27159 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
27160
27161         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
27162         an OpenMP mappable type.
27163
27164 2014-03-06  Matthias Klose  <doko@ubuntu.com>
27165
27166         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
27167         MULTILIB_OSDIRNAMES is not defined.
27168
27169 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
27170             Meador Inge  <meadori@codesourcery.com>
27171
27172         PR target/58595
27173         * config/arm/arm.c (arm_tls_symbol_p): Remove.
27174         (arm_legitimize_address): Call legitimize_tls_address for any
27175         arm_tls_referenced_p expression, handle constant addend.  Call it
27176         before testing for !TARGET_ARM.
27177         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
27178
27179 2014-03-06  Richard Biener  <rguenther@suse.de>
27180
27181         PR middle-end/60445
27182         PR lto/60424
27183         PR lto/60427
27184         Revert
27185         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
27186
27187         * tree-streamer.c (record_common_node): Assert we don't record
27188         nodes with type double.
27189         (preload_common_node): Skip type double, complex double and double
27190         pointer since it is now frontend dependent due to fshort-double option.
27191
27192 2014-03-06  Richard Biener  <rguenther@suse.de>
27193
27194         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
27195         or -fno-lto is specified and the linker has full plugin support.
27196         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
27197         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
27198         * lto-wrapper.c (merge_and_complain): Merge compile-time
27199         optimization levels.
27200         (run_gcc): And pass it through to the link options.
27201
27202 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
27203
27204         PR debug/60381
27205         Revert:
27206         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27207         PR debug/59992
27208         * cselib.c (remove_useless_values): Skip to avoid quadratic
27209         behavior if the condition moved from...
27210         (cselib_process_insn): ... here holds.
27211
27212 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
27213
27214         PR plugins/59335
27215         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
27216         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
27217
27218         PR plugins/59335
27219         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
27220         (TM_H): Add x86-tune.def.
27221
27222 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27223
27224         * config/aarch64/aarch64.c (generic_tunings):
27225         Use cortexa57_extra_costs.
27226
27227 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
27228
27229         PR lto/60404
27230         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
27231         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
27232         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
27233         cost for in_lto_p.
27234
27235 2014-03-04  Heiher  <r@hev.cc>
27236
27237         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
27238         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
27239
27240 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
27241
27242         * config/i386/predicates.md (const2356_operand): Change to ...
27243         (const2367_operand): ... this.
27244         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
27245         const2367_operand.
27246         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27247         (*avx512pf_scatterpf<mode>sf): Ditto.
27248         (avx512pf_scatterpf<mode>df): Ditto.
27249         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27250         (*avx512pf_scatterpf<mode>df): Ditto.
27251         * config/i386/i386.c (ix86_expand_builtin): Update
27252         incorrect hint operand error message.
27253
27254 2014-03-04  Richard Biener  <rguenther@suse.de>
27255
27256         * lto-section-in.c (lto_get_section_data): Fix const cast.
27257
27258 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
27259
27260         * tree-streamer.c (record_common_node): Assert we don't record
27261         nodes with type double.
27262         (preload_common_node): Skip type double, complex double and double
27263         pointer since it is now frontend dependent due to fshort-double option.
27264
27265 2014-03-04  Richard Biener  <rguenther@suse.de>
27266
27267         PR lto/60405
27268         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
27269         (lto_input_toplevel_asms): Likewise.
27270         * lto-section-in.c (lto_get_section_data): Instead do it here
27271         for every section.
27272
27273 2014-03-04  Richard Biener  <rguenther@suse.de>
27274
27275         PR tree-optimization/60382
27276         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
27277         dead PHIs a reduction.
27278
27279 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
27280
27281         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
27282         hint value.
27283         (_mm_prefetch): Move out of GCC target("sse") pragma.
27284         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
27285         GCC target("prfchw") pragma.
27286         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
27287         for locality <= 2.
27288         * config/i386/i386.c (ix86_option_override_internal): Enable
27289         -mprfchw with -mprefetchwt1.
27290
27291 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27292
27293         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
27294         Mark as varying.
27295
27296 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27297
27298         * opts.h (CL_PCH_IGNORE): Define.
27299         * targhooks.c (option_affects_pch_p):
27300         Return false for options that have CL_PCH_IGNORE set.
27301         * opt-functions.awk: Process PchIgnore.
27302         * doc/options.texi: Document PchIgnore.
27303
27304         * config/arc/arc.opt (misize): Add PchIgnore property.
27305
27306 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27307
27308         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
27309         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
27310         constraint on constants to permit them being loaded into
27311         GENERAL_REGS or BASE_REGS.
27312
27313 2014-03-03  Nick Clifton  <nickc@redhat.com>
27314
27315         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
27316         anti-cacnonical alternatives.
27317         (negandhi3_real): New pattern.
27318         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
27319
27320 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27321
27322         * config/avr/avr-mcus.def: Remove atxmega16x1.
27323         * config/avr/avr-tables.opt: Regenerate.
27324         * config/avr/t-multilib: Regenerate.
27325         * doc/avr-mmcu.texi: Regenerate.
27326
27327 2014-03-03  Tobias Grosser  <tobias@grosser.es>
27328             Mircea Namolaru  <mircea.namolaru@inria.fr>
27329
27330         PR tree-optimization/58028
27331         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
27332         scalar dimensions.
27333
27334 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27335
27336         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
27337         not handled by recognizers.
27338
27339 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
27340
27341         PR middle-end/60175
27342         * function.c (expand_function_end): Don't emit
27343         clobber_return_register sequence if clobber_after is a BARRIER.
27344         * cfgexpand.c (construct_exit_block): Append instructions before
27345         return_label to prev_bb.
27346
27347 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27348
27349         * config/rs6000/constraints.md: Document reserved use of "wc".
27350
27351 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
27352
27353         PR ipa/60150
27354         * ipa.c (function_and_variable_visibility): When dissolving comdat
27355         group, also set all symbols to local.
27356
27357 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
27358
27359         PR ipa/60306
27360
27361         Revert:
27362         2013-12-14  Jan Hubicka  <jh@suse.cz>
27363         PR middle-end/58477
27364         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
27365
27366 2014-03-02  Jon Beniston  <jon@beniston.com>
27367
27368         PR bootstrap/48230
27369         PR bootstrap/50927
27370         PR bootstrap/52466
27371         PR target/46898
27372         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
27373           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
27374         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
27375         (simple_return, *simple_return): New patterns
27376         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
27377         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
27378
27379 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
27380
27381         * dwarf2out.c (gen_subprogram_die): Tidy.
27382
27383 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
27384
27385         PR target/60071
27386         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
27387         (*mov_t_msb_neg_negc): ... this new insn.
27388
27389 2014-02-28  Jason Merrill  <jason@redhat.com>
27390
27391         PR c++/58678
27392         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
27393         function.
27394
27395 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
27396
27397         PR c++/60314
27398         * dwarf2out.c (decltype_auto_die): New static.
27399         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
27400         (gen_type_die_with_usage): Handle 'decltype(auto)'.
27401         (is_cxx_auto): Likewise.
27402
27403 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
27404
27405         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
27406         we are not using general regs only.
27407
27408 2014-02-28  Richard Biener  <rguenther@suse.de>
27409
27410         PR target/60280
27411         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
27412         previous fix and only allow to remove trivial pre-headers
27413         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
27414         (remove_forwarder_block): Properly update the latch of a loop.
27415
27416 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27417
27418         PR debug/59992
27419         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
27420         (cselib_preserved_hash_table): New.
27421         (preserve_constants_and_equivs): Move preserved vals to it.
27422         (cselib_find_slot): Look it up first.
27423         (cselib_init): Initialize it.
27424         (cselib_finish): Release it.
27425         (dump_cselib_table): Dump it.
27426
27427 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27428
27429         PR debug/59992
27430         * cselib.c (remove_useless_values): Skip to avoid quadratic
27431         behavior if the condition moved from...
27432         (cselib_process_insn): ... here holds.
27433
27434 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27435
27436         PR debug/57232
27437         * var-tracking.c (vt_initialize): Apply the same condition to
27438         preserve the CFA base value.
27439
27440 2014-02-28  Joey Ye  <joey.ye@arm.com>
27441
27442         PR target/PR60169
27443         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
27444         if reload in progress or completed.
27445
27446 2014-02-28  Tobias Burnus  <burnus@net-b.de>
27447
27448         PR middle-end/60147
27449         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
27450         NAMELIST_DECL.
27451
27452 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
27453
27454         * doc/tm.texi.in (Condition Code Status): Update documention for
27455         relative locations of cc0-setter and cc0-user.
27456
27457 2014-02-27  Jeff Law  <law@redhat.com>
27458
27459         PR rtl-optimization/52714
27460         * combine.c (try_combine): When splitting an unrecognized PARALLEL
27461         into two independent simple sets, if I3 is a jump, ensure the
27462         pattern we place into I3 is a (set (pc) ...).
27463
27464 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
27465             Jeff Law  <law@redhat.com>
27466
27467         PR rtl-optimization/49847
27468         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
27469         are in different blocks.
27470         * doc/tm.texi (Condition Code Status): Update documention for
27471         relative locations of cc0-setter and cc0-user.
27472
27473 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27474
27475         PR target/59222
27476         * lra.c (lra_emit_add): Check SUBREG too.
27477
27478 2014-02-27  Andreas Schwab  <schwab@suse.de>
27479
27480         * config/m68k/m68k.c (m68k_option_override): Disable
27481         -flive-range-shrinkage for classic m68k.
27482         (m68k_override_options_after_change): Likewise.
27483
27484 2014-02-27  Marek Polacek  <polacek@redhat.com>
27485
27486         PR middle-end/59223
27487         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
27488         -Wmaybe-uninitialized.
27489
27490 2014-02-27  Alan Modra  <amodra@gmail.com>
27491
27492         PR target/57936
27493         * reload1.c (emit_input_reload_insns): When reload_override_in,
27494         set old to rl->in_reg when rl->in_reg is a subreg.
27495
27496 2014-02-26  Richard Biener  <rguenther@suse.de>
27497
27498         PR bootstrap/60343
27499         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
27500
27501 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
27502
27503         * common/config/i386/predicates.md (const1256_operand): Remove.
27504         (const2356_operand): New.
27505         (const_1_to_2_operand): Remove.
27506         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27507         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27508         (*avx512pf_gatherpf<mode>sf): Ditto.
27509         (avx512pf_gatherpf<mode>df): Ditto.
27510         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27511         (*avx512pf_gatherpf<mode>df): Ditto.
27512         (avx512pf_scatterpf<mode>sf): Ditto.
27513         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27514         (*avx512pf_scatterpf<mode>sf): Ditto.
27515         (avx512pf_scatterpf<mode>df): Ditto.
27516         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27517         (*avx512pf_scatterpf<mode>df): Ditto.
27518         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
27519
27520 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
27521
27522         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
27523         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
27524         (_mm512_mask_testn_epi64_mask): Move to ...
27525         * config/i386/avx512cdintrin.h: Here.
27526         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
27527         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
27528         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
27529         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
27530         TARGET_AVX512F from TARGET_AVX512CD.
27531
27532 2014-02-26  Richard Biener  <rguenther@suse.de>
27533
27534         PR ipa/60327
27535         * ipa.c (walk_polymorphic_call_targets): Properly guard
27536         call to inline_update_overall_summary.
27537
27538 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
27539
27540         PR target/60280
27541         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
27542         and latches only if requested.  Fix latch if it is removed.
27543         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
27544         LOOPS_HAVE_PREHEADERS.
27545
27546 2014-02-25  Andrew Pinski  <apinski@cavium.com>
27547
27548         * builtins.c (expand_builtin_thread_pointer): Create a new target
27549         when the target is NULL.
27550
27551 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
27552
27553         PR rtl-optimization/60317
27554         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27555         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27556         * lra-assigns.c: Include params.h.
27557         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
27558         other reload pseudos considerations.
27559
27560 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27561
27562         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
27563         to use canonical form for nor<mode>3.
27564
27565 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27566
27567         PR target/55426
27568         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
27569         conversions.
27570
27571 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
27572
27573         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
27574         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
27575         (ix86_handle_option): Handle OPT_mprefetchwt1.
27576         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
27577         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27578         PREFETCHWT1 CPUID.
27579         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27580         OPTION_MASK_ISA_PREFETCHWT1.
27581         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
27582         (PTA_PREFETCHWT1): New.
27583         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
27584         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
27585         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
27586         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
27587         (*prefetch_avx512pf_<mode>_: Change into ...
27588         (*prefetch_prefetchwt1_<mode>: This.
27589         * config/i386/i386.opt (mprefetchwt1): New.
27590         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
27591         (_mm_prefetch): Handle intent to write.
27592         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
27593
27594 2014-02-25  Richard Biener  <rguenther@suse.de>
27595
27596         PR middle-end/60291
27597         * emit-rtl.c (mem_attrs_htab): Remove.
27598         (mem_attrs_htab_hash): Likewise.
27599         (mem_attrs_htab_eq): Likewise.
27600         (set_mem_attrs): Always allocate new mem-attrs when something changed.
27601         (init_emit_once): Do not allocate mem_attrs_htab.
27602
27603 2014-02-25  Richard Biener  <rguenther@suse.de>
27604
27605         PR lto/60319
27606         * lto-opts.c (lto_write_options): Output non-explicit conservative
27607         -fwrapv, -fno-trapv and -fno-strict-overflow.
27608         * lto-wrapper.c (merge_and_complain): Handle merging those options.
27609         (run_gcc): And pass them through.
27610
27611 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
27612
27613         * sel-sched.c (calculate_new_fences): New parameter ptime.
27614         Calculate it as a maximum over all fence cycles.
27615         (sel_sched_region_2): Adjust the call to calculate_new_fences.
27616         Print the final schedule timing when sched_verbose.
27617
27618 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
27619
27620         PR rtl-optimization/60292
27621         * sel-sched.c (fill_vec_av_set): Do not reset target availability
27622         bit fot the fence instruction.
27623
27624 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
27625
27626         * calls.h: Fix typo in comment.
27627
27628 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
27629
27630         * config/pa/pa.c (pa_output_move_double): Don't valididate when
27631         adjusting offsetable addresses.
27632
27633 2014-02-24  Guozhi Wei  <carrot@google.com>
27634
27635         * sparseset.h (sparseset_pop): Fix the wrong index.
27636
27637 2014-02-24  Walter Lee  <walt@tilera.com>
27638
27639         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
27640         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
27641         triplet.
27642         * common/config/tilegx/tilegx-common.c
27643         (TARGET_DEFAULT_TARGET_FLAGS): Define.
27644         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
27645         (LINK_SPEC): Ditto.
27646         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
27647         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
27648         (tilegx_gimplify_va_arg_expr): Handle big endian.
27649         (tilegx_expand_unaligned_load): Ditto.
27650         (tilegx_expand_unaligned_store): Ditto.
27651         (TARGET_RETURN_IN_MSB): New.
27652         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
27653         (TARGET_ENDIAN_DEFAULT): New.
27654         (TARGET_BIG_ENDIAN): Handle big endian.
27655         (BYTES_BIG_ENDIAN): Ditto.
27656         (WORDS_BIG_ENDIAN): Ditto.
27657         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
27658         (ENDIAN_SPEC): New.
27659         (EXTRA_SPECS): New.
27660         * config/tilegx/tilegx.md (extv): Handle big endian.
27661         (extzv): Ditto.
27662         (insn_st<n>): Ditto.
27663         (insn_st<n>_add<bitsuffix>): Ditto.
27664         (insn_stnt<n>): Ditto.
27665         (insn_stnt<n>_add<bitsuffix>):Ditto.
27666         (vec_interleave_highv8qi): Handle big endian.
27667         (vec_interleave_highv8qi_be): New.
27668         (vec_interleave_highv8qi_le): New.
27669         (insn_v1int_h): Handle big endian.
27670         (vec_interleave_lowv8qi): Handle big endian.
27671         (vec_interleave_lowv8qi_be): New.
27672         (vec_interleave_lowv8qi_le): New.
27673         (insn_v1int_l): Handle big endian.
27674         (vec_interleave_highv4hi): Handle big endian.
27675         (vec_interleave_highv4hi_be): New.
27676         (vec_interleave_highv4hi_le): New.
27677         (insn_v2int_h): Handle big endian.
27678         (vec_interleave_lowv4hi): Handle big endian.
27679         (vec_interleave_lowv4hi_be): New.
27680         (vec_interleave_lowv4hi_le): New.
27681         (insn_v2int_l): Handle big endian.
27682         (vec_interleave_highv2si): Handle big endian.
27683         (vec_interleave_highv2si_be): New.
27684         (vec_interleave_highv2si_le): New.
27685         (insn_v4int_h): Handle big endian.
27686         (vec_interleave_lowv2si): Handle big endian.
27687         (vec_interleave_lowv2si_be): New.
27688         (vec_interleave_lowv2si_le): New.
27689         (insn_v4int_l): Handle big endian.
27690         * config/tilegx/tilegx.opt (mbig-endian): New option.
27691         (mlittle-endian): New option.
27692         * doc/install.texi: Document tilegxbe-linux.
27693         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
27694
27695 2014-02-24  Martin Jambor  <mjambor@suse.cz>
27696
27697         PR ipa/60266
27698         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27699         there are no parameter descriptors.
27700
27701 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
27702
27703         PR rtl-optimization/60268
27704         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27705         initialization to ...
27706         (sched_rgn_init): ... here.
27707         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27708
27709 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27710
27711         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27712         names.
27713
27714 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
27715
27716         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27717         definition.
27718
27719 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27720
27721         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27722         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27723
27724 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27725
27726         * config/microblaze/predicates.md: Add cmp_op predicate.
27727         * config/microblaze/microblaze.md: Add branch_compare instruction
27728         which uses cmp_op predicate and emits cmp insn before branch.
27729         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27730         to microblaze_expand_conditional_branch and consolidate logic.
27731         (microblaze_expand_conditional_branch): emit branch_compare
27732         insn instead of handling cmp op separate from branch insn.
27733
27734 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27735
27736         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27737         to permit subregs.
27738
27739 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27740
27741         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27742         define_insn with define_expand and new define_insn
27743         *altivec_lve<VI_char>x_internal.
27744         (altivec_stve<VI_char>x): Replace define_insn with define_expand
27745         and new define_insn *altivec_stve<VI_char>x_internal.
27746         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27747         prototype.
27748         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27749         lve*x built-ins.
27750         (altivec_expand_stvex_be): New function.
27751
27752 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
27753
27754         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27755         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27756         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27757         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27758
27759 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
27760
27761         PR target/60298
27762         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27763         instead of emit_move_insn.
27764
27765 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27766
27767         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27768         vspltw with vsldoi.
27769         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27770         gen_altivec_vsumsws.
27771
27772 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27773
27774         * config/rs6000/altivec.md (altivec_lvxl): Rename as
27775         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27776         (altivec_lvxl_<mode>): New define_expand incorporating
27777         -maltivec=be semantics where needed.
27778         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27779         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27780         semantics where needed.
27781         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27782         (altivec_stvx_<mode>): New define_expand incorporating
27783         -maltivec=be semantics where needed.
27784         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27785         VM2 iterator instead of V4SI.
27786         (altivec_stvxl_<mode>): New define_expand incorporating
27787         -maltivec=be semantics where needed.
27788         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27789         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27790         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27791         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27792         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27793         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27794         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27795         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27796         ALTIVEC_BUILTIN_STVXL.
27797         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27798         (altivec_expand_stvx_be): Likewise.
27799         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27800         (altivec_expand_lvx_be): Likewise.
27801         (altivec_expand_stvx_be): Likewise.
27802         (altivec_expand_builtin): Add cases for
27803         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27804         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27805         (altivec_init_builtins): Add definitions for
27806         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27807         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27808
27809 2014-02-21  Catherine Moore  <clm@codesourcery.com>
27810
27811         * doc/invoke.texi (mvirt, mno-virt): Document.
27812         * config/mips/mips.opt (mvirt): New option.
27813         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27814
27815 2014-02-21  Richard Biener  <rguenther@suse.de>
27816
27817         PR tree-optimization/60276
27818         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27819         (STMT_VINFO_MIN_NEG_DIST): New macro.
27820         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27821         STMT_VINFO_MIN_NEG_DIST.
27822         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27823         made for negative dependence distances still hold.
27824
27825 2014-02-21  Richard Biener  <rguenther@suse.de>
27826
27827         PR middle-end/60291
27828         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27829         DECL_INITIAL for globals not in the current function context.
27830
27831 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27832
27833         PR tree-optimization/56490
27834         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27835         * tree-ssa-uninit.c: Include params.h.
27836         (compute_control_dep_chain): Add num_calls argument, return false
27837         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27838         num_calls to recursive call.
27839         (find_predicates): Change dep_chain into normal array,
27840         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27841         variable and adjust compute_control_dep_chain caller.
27842         (find_def_preds): Likewise.
27843
27844 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
27845
27846         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27847         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27848
27849 2014-02-21  Nick Clifton  <nickc@redhat.com>
27850
27851         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27852         (pushhi1): Likewise.
27853         (popqi1): Add mode to pre_dec.
27854         (pophi1): Likewise.
27855
27856 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27857
27858         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27859         mode for mask of V8SFmode permutation.
27860
27861 2014-02-20  Richard Henderson  <rth@redhat.com>
27862
27863         PR c++/60272
27864         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27865         a new pseudo for OLDVAL.
27866
27867 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
27868
27869         PR target/57896
27870         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27871         gen_reg_rtx if d->testing_p.
27872         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27873         if d->testing_p and we will certainly return true.
27874         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
27875         if d->testing_p.
27876
27877 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
27878
27879         * emit-rtl.c (gen_reg_rtx): Assert that
27880         crtl->emit.regno_pointer_align_length is non-zero.
27881
27882 2014-02-20  Richard Henderson  <rth@redhat.com>
27883
27884         PR c++/60272
27885         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27886         on failure the store back into EXPECT.
27887
27888 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
27889             Sandra Loosemore  <sandra@codesourcery.com>
27890
27891         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27892         * config/nios2/nios2.c (nios2_function_profiler): Add
27893         -fPIC (flag_pic == 2) support.
27894         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27895         (nios2_large_offset_p): New function.
27896         (nios2_unspec_reloc_p): Move up position, update to use
27897         nios2_large_offset_p.
27898         (nios2_unspec_address): Remove function.
27899         (nios2_unspec_offset): New function.
27900         (nios2_large_got_address): New function.
27901         (nios2_got_address): Add large offset support.
27902         (nios2_legitimize_tls_address): Update usage of removed and new
27903         functions.
27904         (nios2_symbol_binds_local_p): New function.
27905         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27906         (nios2_legitimize_address): Update to use nios2_large_offset_p.
27907         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27908         (nios2_print_operand): Merge H/L processing, add hiadj/lo
27909         processing for (const (unspec ...)).
27910         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27911
27912 2014-02-20  Richard Biener  <rguenther@suse.de>
27913
27914         * tree-cfg.c (replace_uses_by): Mark altered BBs before
27915         doing the substitution.
27916         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27917
27918 2014-02-20  Martin Jambor  <mjambor@suse.cz>
27919
27920         PR ipa/55260
27921         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27922         info when checking whether lattices are bottom.
27923
27924 2014-02-20  Richard Biener  <rguenther@suse.de>
27925
27926         PR middle-end/60221
27927         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27928         regions at -O0.
27929
27930 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
27931
27932         PR ipa/58555
27933         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27934         parameter specifying the scaling.
27935         (inline_call): Update.
27936         (want_inline_recursively): Guard division by zero.
27937         (recursive_inlining): Update.
27938         * ipa-inline.h (clone_inlined_nodes): Update.
27939
27940 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27941
27942         PR target/60204
27943         * config/i386/i386.c (classify_argument): Pass structures of size
27944         64 bytes or less in register.
27945
27946 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27947             Kirill Yukhin  <kirill.yukhin@intel.com>
27948
27949         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27950         (_mm_rcp28_round_ss): Ditto.
27951         (_mm_rsqrt28_round_sd): Ditto.
27952         (_mm_rsqrt28_round_ss): Ditto.
27953         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27954         (_mm_rcp14_round_ss): Ditto.
27955         (_mm_rsqrt14_round_sd): Ditto.
27956         (_mm_rsqrt14_round_ss): Ditto.
27957         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27958         the first input operand, get rid of match_dup.
27959         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27960         attribute to sse.
27961         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27962         Ditto.
27963         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27964         operand as the first input operand, set type attribute.
27965         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27966         Set type attribute.
27967         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27968         operand as the first input operand, set type attribute.
27969
27970 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27971
27972         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27973         bit of zero.
27974
27975 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
27976
27977         PR target/60207
27978         * config/i386/i386.c (construct_container): Remove TFmode check
27979         for X86_64_INTEGER_CLASS.
27980
27981 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
27982
27983         PR target/59794
27984         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27985         only when -Wpsabi is enabled.
27986
27987 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
27988
27989          PR target/59799
27990         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27991         passing arrays in registers are the same as for structs, so remove the
27992         special case for them.
27993
27994 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
27995
27996         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27997         destination type, extract only the valid bits if the source type is not
27998         integral and has a different mode.
27999
28000 2014-02-19  Richard Biener  <rguenther@suse.de>
28001
28002         PR ipa/60243
28003         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
28004         for all calls.
28005
28006 2014-02-19  Richard Biener  <rguenther@suse.de>
28007
28008         PR ipa/60243
28009         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
28010         (ipa_modify_call_arguments): Emit an argument load explicitely and
28011         preserve virtual SSA form there and for the replacement call.
28012         Do not update SSA form nor free dominance info.
28013
28014 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
28015
28016         * ipa.c (function_and_variable_visibility): Also clear WEAK
28017         flag when disolving COMDAT_GROUP.
28018
28019 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
28020
28021         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
28022         * ipa-prop.c (ipa_set_jf_known_type): Return early when
28023         not devirtualizing.
28024         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
28025         do more sanity checks.
28026         (detect_type_change): Return true when giving up early.
28027         (compute_complex_assign_jump_func): Fix type parameter of
28028         ipa_set_ancestor_jf.
28029         (compute_complex_ancestor_jump_func): Likewise.
28030         (update_jump_functions_after_inlining): Fix updating of
28031         ancestor function.
28032         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
28033
28034 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
28035
28036         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
28037         inline clones when edge disappears.
28038
28039 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
28040
28041         PR target/60203
28042         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
28043         Split 64-bit moves into 2 patterns.  Do not allow the use of
28044         direct move for TDmode in little endian, since the decimal value
28045         has little endian bytes within a word, but the 64-bit pieces are
28046         ordered in a big endian fashion, and normal subreg's of TDmode are
28047         not allowed.
28048         (mov<mode>_64bit_dm): Likewise.
28049         (movtd_64bit_nodm): Likewise.
28050
28051 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
28052
28053         PR tree-optimization/60174
28054         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
28055         statement of an SSA_NAME that occurs in an abnormal PHI node.
28056
28057 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
28058
28059         PR sanitizer/60142
28060         * final.c (SEEN_BB): Remove.
28061         (SEEN_NOTE, SEEN_EMITTED): Renumber.
28062         (final_scan_insn): Don't force_source_line on second
28063         NOTE_INSN_BASIC_BLOCK.
28064
28065 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
28066
28067         PR target/60205
28068         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
28069         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
28070         (type_natural_mode): Warn ABI change when %zmm register is not
28071         available for AVX512F vector value passing.
28072
28073 2014-02-18  Kai Tietz  <ktietz@redhat.com>
28074
28075         PR target/60193
28076         * config/i386/i386.c (ix86_expand_prologue): Use value in
28077         rax register as displacement when restoring %r10 or %rax.
28078         Fix wrong offset when restoring both registers.
28079
28080 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
28081
28082         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
28083         assertion with conditional return.
28084
28085 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
28086             Uros Bizjak  <ubizjak@gmail.com>
28087
28088         PR driver/60233
28089         * config/i386/driver-i386.c (host_detect_local_cpu): If
28090         YMM state is not saved by the OS, also clear has_f16c.  Move
28091         CPUID 0x80000001 handling before YMM state saving checking.
28092
28093 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
28094
28095         PR rtl-optimization/58960
28096         * haifa-sched.c (alloc_global_sched_pressure_data): New,
28097         factored out from ...
28098         (sched_init): ... here.
28099         (free_global_sched_pressure_data): New, factored out from ...
28100         (sched_finish): ... here.
28101         * sched-int.h (free_global_sched_pressure_data): Declare.
28102         * sched-rgn.c (nr_regions_initial): New static global.
28103         (haifa_find_rgns): Initialize it.
28104         (schedule_region): Disable sched-pressure for the newly
28105         generated regions.
28106
28107 2014-02-17  Richard Biener  <rguenther@suse.de>
28108
28109         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
28110         release SSA defs of pattern stmts.
28111
28112 2014-02-17  Richard Biener  <rguenther@suse.de>
28113
28114         * tree-inline.c (expand_call_inline): Release the virtual
28115         operand defined by the call we are about to inline.
28116
28117 2014-02-17  Richard Biener  <rguenther@suse.de>
28118
28119         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
28120
28121 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
28122             Ilya Tocar  <ilya.tocar@intel.com>
28123
28124         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
28125         arguments order in builtin.
28126         (_mm512_permutexvar_epi64): Ditto.
28127         (_mm512_mask_permutexvar_epi64): Ditto
28128         (_mm512_maskz_permutexvar_epi32): Ditto
28129         (_mm512_permutexvar_epi32): Ditto
28130         (_mm512_mask_permutexvar_epi32): Ditto
28131
28132 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28133
28134         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
28135         (p8_vmrgow): Likewise.
28136
28137 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28138
28139         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
28140         endian targets.
28141
28142 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
28143
28144         PR target/60203
28145         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
28146         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
28147         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
28148         using direct move instructions on ISA 2.07.  Also adjust
28149         instruction length for 64-bit.
28150         (mov<mode>_64bit, TFmode/TDmode): Likewise.
28151         (mov<mode>_32bit, TFmode/TDmode): Likewise.
28152
28153 2014-02-15  Alan Modra  <amodra@gmail.com>
28154
28155         PR target/58675
28156         PR target/57935
28157         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28158         find_replacement on parts of insn rtl that might be reloaded.
28159
28160 2014-02-15  Richard Biener  <rguenther@suse.de>
28161
28162         PR tree-optimization/60183
28163         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
28164         (tree_ssa_phiprop): Calculate and free post-dominators.
28165
28166 2014-02-14  Jeff Law  <law@redhat.com>
28167
28168         PR rtl-optimization/60131
28169         * ree.c (get_extended_src_reg): New function.
28170         (combine_reaching_defs): Use it rather than assuming location of REG.
28171         (find_and_remove_re): Verify first operand of extension is
28172         a REG before adding the insns to the copy list.
28173
28174 2014-02-14  Roland McGrath  <mcgrathr@google.com>
28175
28176         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
28177         * configure: Regenerated.
28178         * config.in: Regenerated.
28179         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
28180         instead of ASM_SHORT.
28181
28182 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
28183             Richard Earnshaw  <rearnsha@arm.com>
28184
28185         PR rtl-optimization/59535
28186         * lra-constraints.c (process_alt_operands): Encourage alternative
28187         when unassigned pseudo class is superset of the alternative class.
28188         (inherit_reload_reg): Don't inherit when optimizing for code size.
28189         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
28190         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
28191         modes not less than 4 for Thumb1.
28192
28193 2014-02-14  Kyle McMartin  <kyle@redhat.com>
28194
28195         PR pch/60010
28196         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
28197
28198 2014-02-14  Richard Biener  <rguenther@suse.de>
28199
28200         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
28201         (get_frame_arg): Drop the assert with langhook types_compatible_p.
28202         Do not strip INDIRECT_REFs.
28203
28204 2014-02-14  Richard Biener  <rguenther@suse.de>
28205
28206         PR lto/60179
28207         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
28208         DECL_FUNCTION_SPECIFIC_TARGET.
28209         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
28210         * tree-streamer-out.c (pack_ts_target_option): Remove.
28211         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
28212         (write_ts_function_decl_tree_pointers): Do not stream
28213         DECL_FUNCTION_SPECIFIC_TARGET.
28214         * tree-streamer-in.c (unpack_ts_target_option): Remove.
28215         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
28216         (lto_input_ts_function_decl_tree_pointers): Do not stream
28217         DECL_FUNCTION_SPECIFIC_TARGET.
28218
28219 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
28220
28221         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
28222         (get_initial_def_for_induction, vectorizable_induction): Ignore
28223         debug stmts when looking for exit_phi.
28224         (vectorizable_live_operation): Fix up condition.
28225
28226 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28227
28228         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
28229         nreverse() because it changes the content of original tree list.
28230
28231 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28232
28233         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
28234         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
28235
28236 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28237
28238         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
28239         GNU coding standards.
28240
28241 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
28242
28243         PR debug/60152
28244         * dwarf2out.c (gen_subprogram_die): Don't call
28245         add_calling_convention_attribute if subr_die is old_die.
28246
28247 2014-02-13  Sharad Singhai  <singhai@google.com>
28248
28249         * doc/optinfo.texi: Fix order of nodes.
28250
28251 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
28252
28253         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
28254         operands[2], not operands[3].
28255
28256 2014-02-13  Richard Biener  <rguenther@suse.de>
28257
28258         PR bootstrap/59878
28259         * doc/install.texi (ISL): Update recommended version to 0.12.2,
28260         mention the possibility of an in-tree build.
28261         (CLooG): Update recommended version to 0.18.1, mention the
28262         possibility of an in-tree build and clarify that the ISL
28263         bundled with CLooG does not work.
28264
28265 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
28266
28267         PR target/43546
28268         * expr.c (compress_float_constant): If x is a hard register,
28269         extend into a pseudo and then move to x.
28270
28271 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28272
28273         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
28274         caused by bad second argument to warning_at() with -mhotpatch and
28275         nested functions (e.g. with gfortran).
28276
28277 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
28278
28279         * opts.c (option_name): Remove "enabled by default" rider.
28280
28281 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
28282
28283         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
28284
28285 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28286             Uros Bizjak  <ubizjak@gmail.com>
28287
28288         PR target/60151
28289         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
28290         * configure: Regenerated.
28291
28292 2014-02-12  Richard Biener  <rguenther@suse.de>
28293
28294         * vec.c (vec_prefix::calculate_allocation): Move as
28295         inline variant to vec.h.
28296         (vec_prefix::calculate_allocation_1): New out-of-line version.
28297         * vec.h (vec_prefix::calculate_allocation_1): Declare.
28298         (vec_prefix::m_has_auto_buf): Rename to ...
28299         (vec_prefix::m_using_auto_storage): ... this.
28300         (vec_prefix::calculate_allocation): Inline the easy cases
28301         and dispatch to calculate_allocation_1 which doesn't need the
28302         prefix address.
28303         (va_heap::reserve): Use gcc_checking_assert.
28304         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
28305         m_using_auto_storage.
28306         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
28307         member and adjust.
28308         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
28309         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
28310         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
28311
28312 2014-02-12  Richard Biener  <rguenther@suse.de>
28313
28314         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
28315         when we found a dependence.
28316
28317 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
28318
28319         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
28320         common code...
28321         (maybe_fold_stmt): ... into this new function.
28322         * omp-low.c (lower_omp): Update comment.
28323
28324         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
28325         last use.
28326
28327         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
28328         dereference.
28329
28330 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
28331
28332         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
28333         identifiers in comments.
28334         (cortexa53_extra_costs): Likewise.
28335         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
28336         (cortexa7_extra_costs): Likewise.
28337         (cortexa12_extra_costs): Likewise.
28338         (cortexa15_extra_costs): Likewise.
28339         (v7m_extra_costs): Likewise.
28340
28341 2014-02-12  Richard Biener  <rguenther@suse.de>
28342
28343         PR middle-end/60092
28344         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
28345         of posix_memalign being successful.
28346         (lower_stmt): Restrict lowering of posix_memalign to when
28347         -ftree-bit-ccp is enabled.
28348
28349 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28350
28351         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
28352         arg_loc.
28353         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
28354
28355 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
28356
28357         PR rtl-optimization/60116
28358         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
28359         other_insn once the combination has been validated.
28360
28361 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
28362
28363         PR lto/59468
28364         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
28365         and wrapper.
28366         * ipa-devirt.c: Include demangle.h
28367         (odr_violation_reported): New static variable.
28368         (add_type_duplicate): Update odr_violations.
28369         (maybe_record_node): Add completep parameter; update it.
28370         (record_target_from_binfo): Add COMPLETEP parameter;
28371         update it as needed.
28372         (possible_polymorphic_call_targets_1): Likewise.
28373         (struct polymorphic_call_target_d): Add nonconstruction_targets;
28374         rename FINAL to COMPLETE.
28375         (record_targets_from_bases): Sanity check we found the binfo;
28376         fix COMPLETEP updating.
28377         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
28378         parameter, fix computing of COMPLETEP.
28379         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
28380         at LTO time do demangling.
28381         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
28382         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
28383         parameter.
28384         (gimple_get_virt_method_for_binfo): Likewise.
28385         * gimple-fold.h (gimple_get_virt_method_for_binfo,
28386         gimple_get_virt_method_for_vtable): Update prototypes.
28387
28388 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
28389
28390         PR target/49008
28391         * genautomata.c (add_presence_absence): Fix typo with
28392         {final_}presence_list.
28393
28394 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
28395
28396         PR target/60137
28397         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
28398         for VSX/Altivec vectors that land in GPR registers.
28399
28400 2014-02-11  Richard Henderson  <rth@redhat.com>
28401             Jakub Jelinek  <jakub@redhat.com>
28402
28403         PR debug/59776
28404         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
28405         around drhs if type conversion to lacc->type is not useless.
28406
28407 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28408
28409         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
28410         tuning struct.
28411         (cortex-a57.cortex-a53): Likewise.
28412         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
28413
28414 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28415
28416         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
28417         arm_restrict_it.
28418
28419 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
28420
28421         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
28422         add_options_for_arm_vfp3.
28423
28424 2014-02-11  Jeff Law  <law@redhat.com>
28425
28426         PR middle-end/54041
28427         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
28428         object with an undesirable mode.
28429
28430 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28431
28432         PR libgomp/60107
28433         * config/i386/sol2-9.h: New file.
28434         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
28435         *-*-solaris2.9*): Use it.
28436
28437 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
28438
28439         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
28440         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
28441
28442 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
28443
28444         * config/microblaze/microblaze.c: Extend mcpu version format
28445
28446 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
28447
28448         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
28449
28450 2014-02-10  Richard Henderson  <rth@redhat.com>
28451
28452         PR target/59927
28453         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
28454         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
28455         ms-abi vs -mno-accumulate-outgoing-args.
28456         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
28457         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
28458         respect to ms-abi.
28459
28460 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28461
28462         PR middle-end/60080
28463         * cfgexpand.c (expand_asm_operands): Attach source location to
28464         ASM_INPUT rtx objects.
28465         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
28466
28467 2014-02-10  Nick Clifton  <nickc@redhat.com>
28468
28469         * config/mn10300/mn10300.c (popcount): New function.
28470         (mn10300_expand_prologue): Include saved registers in stack usage
28471         count.
28472
28473 2014-02-10  Jeff Law  <law@redhat.com>
28474
28475         PR middle-end/52306
28476         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
28477         when changing the SET_DEST of a prior insn to avoid an input reload.
28478
28479 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28480
28481         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
28482         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
28483         -mcall-openbsd, or -mcall-linux.
28484         (CC1_ENDIAN_BIG_SPEC): Remove.
28485         (CC1_ENDIAN_LITTLE_SPEC): Remove.
28486         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28487         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
28488         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
28489         and %cc1_endian_default.
28490         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28491
28492 2014-02-10  Richard Biener  <rguenther@suse.de>
28493
28494         PR tree-optimization/60115
28495         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
28496         MEM_REF handling.  Properly verify that the accesses are not
28497         out of the objects bound.
28498
28499 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28500
28501         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
28502         coretex to cortex.
28503
28504 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28505
28506         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
28507         proper constants and fix formatting.
28508         (possible_polymorphic_call_targets): Fix formatting.
28509
28510 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
28511             Ilya Tocar  <ilya.tocar@intel.com>
28512
28513         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
28514         (_mm512_loadu_epi32): Renamed into...
28515         (_mm512_loadu_si512): This.
28516         (_mm512_storeu_epi32): Renamed into...
28517         (_mm512_storeu_si512): This.
28518         (_mm512_maskz_ceil_ps): Removed.
28519         (_mm512_maskz_ceil_pd): Ditto.
28520         (_mm512_maskz_floor_ps): Ditto.
28521         (_mm512_maskz_floor_pd): Ditto.
28522         (_mm512_floor_round_ps): Ditto.
28523         (_mm512_floor_round_pd): Ditto.
28524         (_mm512_ceil_round_ps): Ditto.
28525         (_mm512_ceil_round_pd): Ditto.
28526         (_mm512_mask_floor_round_ps): Ditto.
28527         (_mm512_mask_floor_round_pd): Ditto.
28528         (_mm512_mask_ceil_round_ps): Ditto.
28529         (_mm512_mask_ceil_round_pd): Ditto.
28530         (_mm512_maskz_floor_round_ps): Ditto.
28531         (_mm512_maskz_floor_round_pd): Ditto.
28532         (_mm512_maskz_ceil_round_ps): Ditto.
28533         (_mm512_maskz_ceil_round_pd): Ditto.
28534         (_mm512_expand_pd): Ditto.
28535         (_mm512_expand_ps): Ditto.
28536         * config/i386/i386.c (ix86_builtins): Remove
28537         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
28538         (bdesc_args): Ditto.
28539         * config/i386/predicates.md (const1256_operand): New.
28540         (const_1_to_2_operand): Ditto.
28541         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28542         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28543         (*avx512pf_gatherpf<mode>sf): Ditto.
28544         (avx512pf_gatherpf<mode>df): Ditto.
28545         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28546         (*avx512pf_gatherpf<mode>df): Ditto.
28547         (avx512pf_scatterpf<mode>sf): Ditto.
28548         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28549         (*avx512pf_scatterpf<mode>sf): Ditto.
28550         (avx512pf_scatterpf<mode>df): Ditto.
28551         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28552         (*avx512pf_scatterpf<mode>df): Ditto.
28553         (avx512f_expand<mode>): Removed.
28554         (<shift_insn><mode>3<mask_name>): Change predicate type.
28555
28556 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
28557
28558         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
28559         not at the end of datarefs vector use ordered_remove to avoid
28560         reordering datarefs vector.
28561
28562         PR c/59984
28563         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
28564         mark local addressable non-static vars as GOVD_PRIVATE
28565         instead of GOVD_LOCAL.
28566         * omp-low.c (lower_omp_for): Move gimple_bind_vars
28567         and BLOCK_VARS of gimple_bind_block to new_stmt rather
28568         than copying them.
28569
28570         PR middle-end/60092
28571         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
28572         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
28573         assume_aligned or alloc_align attributes.
28574         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
28575         arguments.  Handle also assume_aligned and alloc_align attributes.
28576         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
28577         calls to functions with assume_aligned or alloc_align attributes.
28578         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
28579
28580 2014-02-08  Terry Guo  <terry.guo@arm.com>
28581
28582         * doc/invoke.texi: Document ARM -march=armv7e-m.
28583
28584 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
28585
28586         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
28587         flag on __cilkrts_rethrow builtin.
28588
28589         PR ipa/60026
28590         * ipa-cp.c (determine_versionability): Fail at -O0
28591         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
28592         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
28593
28594         Revert:
28595         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
28596
28597         PR ipa/60026
28598         * tree-inline.c (copy_forbidden): Fail for
28599         __attribute__((optimize (0))) functions.
28600
28601 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
28602
28603         * varpool.c: Include pointer-set.h.
28604         (varpool_remove_unreferenced_decls): Variables in other partitions
28605         will not be output; be however careful to not lose information
28606         about partitioning.
28607
28608 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
28609
28610         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
28611         lookup in the vtable constructor.
28612
28613 2014-02-07  Jeff Law  <law@redhat.com>
28614
28615         PR target/40977
28616         * config/m68k/m68k.md (ashldi_extsi): Turn into a
28617         define_insn_and_split.
28618
28619         * ipa-inline.c (inline_small_functions): Fix typos.
28620
28621 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28622
28623         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
28624         (s390_can_use_return_insn): Declare.
28625         * config/s390/s390.h (EPILOGUE_USES): Define.
28626         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
28627         instructions.
28628         (s390_chunkify_start): Handle return JUMP_LABELs.
28629         (s390_early_mach): Emit a main_pool instruction on the entry edge.
28630         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
28631         (s390_can_use_return_insn): New functions.
28632         (s390_fix_long_loop_prediction): Handle conditional returns.
28633         (TARGET_SET_UP_BY_PROLOGUE): Define.
28634         * config/s390/s390.md (ANY_RETURN): New code iterator.
28635         (*creturn, *csimple_return, return, simple_return): New patterns.
28636
28637 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28638
28639         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
28640         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
28641         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
28642         REG_CFA_RESTORE list when deciding not to restore a register.
28643
28644 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28645
28646         * config/s390/s390.c: Include tree-pass.h and context.h.
28647         (s390_early_mach): New function, split out from...
28648         (s390_emit_prologue): ...here.
28649         (pass_data_s390_early_mach): New pass structure.
28650         (pass_s390_early_mach): New class.
28651         (s390_option_override): Create and register early_mach pass.
28652         Move to end of file.
28653
28654 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28655
28656         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
28657         to match for the exit block.
28658
28659 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28660
28661         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
28662         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
28663         Reject misaligned operands.
28664
28665 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28666
28667         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
28668
28669 2014-02-07  Richard Biener  <rguenther@suse.de>
28670
28671         PR middle-end/60092
28672         * gimple-low.c (lower_builtin_posix_memalign): New function.
28673         (lower_stmt): Call it to lower posix_memalign in a way
28674         to make alignment info accessible.
28675
28676 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
28677
28678         PR c++/60082
28679         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
28680         __builtin_setjmp_receiver.
28681
28682 2014-02-07  Richard Biener  <rguenther@suse.de>
28683
28684         PR middle-end/60092
28685         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
28686         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
28687         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28688         Handle BUILT_IN_POSIX_MEMALIGN.
28689         (find_func_clobbers): Likewise.
28690         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28691         (call_may_clobber_ref_p_1): Likewise.
28692
28693 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28694
28695         PR ipa/59918
28696         * ipa-devirt.c (record_target_from_binfo): Remove overactive
28697         sanity check.
28698
28699 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28700
28701         PR ipa/59469
28702         * lto-cgraph.c (lto_output_node): Use
28703         symtab_get_symbol_partitioning_class.
28704         (lto_output_varpool_node): likewise.
28705         (symtab_get_symbol_partitioning_class): Move here from
28706         lto/lto-partition.c
28707         * cgraph.h (symbol_partitioning_class): Likewise.
28708         (symtab_get_symbol_partitioning_class): Declare.
28709
28710 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28711
28712         * ggc.h (ggc_internal_cleared_alloc): New macro.
28713         * vec.h (vec_safe_copy): Handle memory stats.
28714         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28715         * target-globals.c (save_target_globals): Likewise.
28716
28717 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28718
28719         PR target/60077
28720         * expr.c (emit_move_resolve_push): Export; be bit more selective
28721         on when to clear alias set.
28722         * expr.h (emit_move_resolve_push): Declare.
28723         * function.h (struct function): Add tail_call_marked.
28724         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28725         * config/i386/i386-protos.h (ix86_expand_push): Remove.
28726         * config/i386/i386.md (TImode move expander): De not call
28727         ix86_expand_push.
28728         (FP push expanders): Preserve memory attributes.
28729         * config/i386/sse.md (push<mode>1): Remove.
28730         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28731         (ix86_expand_push): Remove.
28732         * config/i386/mmx.md (push<mode>1): Remove.
28733
28734 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28735
28736         PR rtl-optimization/60030
28737         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28738         lopart with paradoxical subreg before shifting it up by hprec.
28739
28740 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28741
28742         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28743         Remove extra newline at end of file.
28744         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28745         (arm_issue_rate): Handle cortexa57.
28746         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28747         (cortex-a57.cortex-a53): Likewise.
28748
28749 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28750
28751         PR target/59575
28752         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28753         don't record in REG_FRAME_RELATED_EXPR registers not set in that
28754         bitmask.
28755         (arm_expand_prologue): Adjust all callers.
28756         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28757         info, registers also at the lowest numbered registers side.  Use
28758         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28759         XEXP.
28760
28761         PR debug/59992
28762         * var-tracking.c (adjust_mems): Before adding a SET to
28763         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28764
28765 2014-02-06  Alan Modra  <amodra@gmail.com>
28766
28767         PR target/60032
28768         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28769         change SDmode to DDmode when lra_in_progress.
28770
28771 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28772
28773         PR middle-end/59150
28774         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28775         free_data_ref on the dr first, and before goto again also set dr
28776         to the next dr.  For simd_lane_access, free old datarefs[i] before
28777         overwriting it.  For get_vectype_for_scalar_type failure, don't
28778         free_data_ref if simd_lane_access.
28779
28780         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28781
28782         PR target/60062
28783         * tree.h (opts_for_fn): New inline function.
28784         (opt_for_fn): Define.
28785         * config/i386/i386.c (ix86_function_regparm): Use
28786         opt_for_fn (decl, optimize) instead of optimize.
28787
28788 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28789
28790         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28791         for SYMBOL_REF in large memory model.
28792
28793 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28794
28795         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28796         and crypto support.
28797         (cortex-a57): Likewise.
28798         (cortex-a57.cortex-a53): Likewise.
28799
28800 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
28801             Kugan Vivekanandarajah  <kuganv@linaro.org>
28802
28803         * config/arm/arm.c (arm_vector_alignment_reachable): Check
28804         unaligned_access.
28805         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28806
28807 2014-02-06  Richard Biener  <rguenther@suse.de>
28808
28809         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28810         set_loop_copy and initialize_original_copy_tables.
28811
28812 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
28813
28814         * config/aarch64/aarch64-simd.md
28815         (aarch64_ashr_simddi): Change QI to SI.
28816
28817 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28818             Jakub Jelinek  <jakub@redhat.com>
28819
28820         PR middle-end/60013
28821         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28822         of the dataflow.
28823
28824 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28825
28826         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28827         CODE_FOR_altivec_vpku[hw]um to
28828         CODE_FOR_altivec_vpku[hw]um_direct.
28829         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28830         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28831         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28832         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28833
28834 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28835
28836         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28837         generation for -maltivec=be.
28838         (altivec_vsumsws): Simplify redundant test.
28839
28840 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28841
28842         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28843         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28844         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28845         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28846         gen_altivec_vpkuwum.
28847         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28848         BYTES_BIG_ENDIAN.
28849         (altivec_vpks<VI_char>ss): Likewise.
28850         (altivec_vpks<VI_char>us): Likewise.
28851         (altivec_vpku<VI_char>us): Likewise.
28852         (altivec_vpku<VI_char>um): Likewise.
28853         (altivec_vpku<VI_char>um_direct): New (copy of
28854         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28855         internal use).
28856         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28857         target is little endian and -maltivec=be is not specified.
28858         (*altivec_vupkhs<VU_char>_direct): New (copy of
28859         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28860         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28861         target is little endian and -maltivec=be is not specified.
28862         (*altivec_vupkls<VU_char>_direct): New (copy of
28863         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28864         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28865         little endian and -maltivec=be is not specified.
28866         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28867         little endian and -maltivec=be is not specified.
28868
28869 2014-02-05  Richard Henderson  <rth@redhat.com>
28870
28871         PR debug/52727
28872         * combine-stack-adj.c: Revert r206943.
28873         * sched-int.h (struct deps_desc): Add last_args_size.
28874         * sched-deps.c (init_deps): Initialize it.
28875         (sched_analyze_insn): Add OUTPUT dependencies between insns that
28876         contain REG_ARGS_SIZE notes.
28877
28878 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28879
28880         * lto-cgraph.c (asm_nodes_output): Make global.
28881         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28882         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28883         (driver_handle_option): Handle OPT_fwpa.
28884
28885 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
28886
28887         PR ipa/59947
28888         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28889         a comment typo and formatting issue.  If odr_hash hasn't been
28890         created, return vNULL and set *completep to false.
28891
28892         PR middle-end/57499
28893         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28894         bb with no successors.
28895
28896 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
28897
28898         PR target/59718
28899         * doc/invoke.texi (-march): Clarify documentation for ARM.
28900         (-mtune): Likewise.
28901         (-mcpu): Likewise.
28902
28903 2014-02-05  Richard Biener  <rguenther@suse.de>
28904
28905         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28906         when not vectorizing because of too many alias checks.
28907         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28908         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28909
28910 2014-02-05  Nick Clifton  <nickc@redhat.com>
28911
28912         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28913         accept extended registers in any mode when compiling for the MN10300.
28914
28915 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
28916
28917         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28918         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28919         sanitization attributes.
28920         (can_inline_edge_p): Likewise.
28921         (sanitize_attrs_match_for_inline_p): New function.
28922
28923 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28924
28925         * ipa-prop.c (detect_type_change): Shor circuit testing of
28926         type changes on THIS pointer.
28927
28928 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
28929
28930         PR target/59777
28931         * config/pa/pa.c (legitimize_tls_address): Return original address
28932         if not passed a SYMBOL_REF rtx.
28933         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28934         addresses.
28935         (pa_emit_move_sequence): Simplify TLS source operands.
28936         (pa_legitimate_constant_p): Reject all TLS constants.
28937         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28938         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28939
28940 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28941
28942         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28943         groups when we know they are controlled by LTO.
28944         * varasm.c (default_binds_local_p_1): If object is in other partition,
28945         it will be resolved locally.
28946
28947 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28948
28949         * config/host-linux.c (linux_gt_pch_use_address): Don't
28950         use SSIZE_MAX because it is not always defined.
28951
28952 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
28953
28954         PR bootstrap/59913
28955         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28956         threshold for pseudo splitting.
28957         (update_ebb_live_info): Process call argument hard registers and
28958         hard registers from insn definition too.
28959         (max_small_class_regs_num): New constant.
28960         (inherit_in_ebb): Update live hard regs through EBBs.  Update
28961         reloads_num only for small register classes.  Don't split for
28962         outputs of jumps.
28963
28964 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
28965
28966         PR ipa/60058
28967         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28968         is non-null.
28969
28970 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28971
28972         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28973         visibility is safe.
28974
28975 2014-02-04  Marek Polacek  <polacek@redhat.com>
28976
28977         * gdbinit.in (pel): Define.
28978
28979 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28980
28981         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28982         behavior.
28983
28984 2014-02-04  Richard Biener  <rguenther@suse.de>
28985
28986         PR lto/59723
28987         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28988         in function context local.
28989         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28990         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28991         similar to LTO_imported_decl_ref.
28992
28993 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
28994
28995         PR tree-optimization/60002
28996         * cgraphclones.c (build_function_decl_skip_args): Clear
28997         DECL_LANG_SPECIFIC.
28998
28999         PR tree-optimization/60023
29000         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
29001         false to gsi_replace.
29002         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
29003         has been in some EH region and vec_stmt could throw, add
29004         vec_stmt into the same EH region.
29005         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
29006         has no lhs, ignore it.
29007         * internal-fn.c (expand_MASK_LOAD): Likewise.
29008
29009         PR ipa/60026
29010         * tree-inline.c (copy_forbidden): Fail for
29011         __attribute__((optimize (0))) functions.
29012
29013         PR other/58712
29014         * omp-low.c (simd_clone_struct_copy): If from->inbranch
29015         is set, copy one less argument.
29016         (expand_simd_clones): Don't subtract clone_info->inbranch
29017         from simd_clone_struct_alloc argument.
29018
29019         PR rtl-optimization/57915
29020         * recog.c (simplify_while_replacing): If all unary/binary/relational
29021         operation arguments are constant, attempt to simplify those.
29022
29023         PR middle-end/59261
29024         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
29025         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
29026
29027 2014-02-04  Richard Biener  <rguenther@suse.de>
29028
29029         PR tree-optimization/60012
29030         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
29031         TBAA disambiguation to all DDRs.
29032
29033 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29034
29035         PR target/59788
29036         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
29037         (LINK_SPEC): Use it for -shared, -shared-libgcc.
29038
29039 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29040
29041         PR ipa/59882
29042         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
29043
29044 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29045
29046         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
29047         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
29048
29049 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29050
29051         PR ipa/59831
29052         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
29053         to figure out targets of polymorphic calls with known decl.
29054         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29055         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
29056         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
29057         (get_polymorphic_call_info): ... here.
29058         (get_polymorphic_call_info_from_invariant): New function.
29059
29060 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29061
29062         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
29063         lookup via vtable pointer; check for type consistency
29064         and turn inconsitent facts into UNREACHABLE.
29065         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29066         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
29067         type inconsistent querries; return UNREACHABLE instead.
29068
29069 2014-02-03  Richard Henderson  <rth@twiddle.net>
29070
29071         PR tree-opt/59924
29072         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
29073         already processed this node.
29074         (normalize_one_pred_1): Pass along mark_set.
29075         (normalize_one_pred): Create and destroy a pointer_set_t.
29076         (normalize_one_pred_chain): Likewise.
29077
29078 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
29079
29080         PR gcov-profile/58602
29081         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
29082
29083 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29084
29085         PR ipa/59831
29086         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
29087         -fno-devirtualize; try to devirtualize by the knowledge of
29088         virtual table pointer given by aggregate propagation.
29089         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29090         (ipa_print_node_jump_functions): Dump also offset that
29091         is relevant for polymorphic calls.
29092         (determine_known_aggregate_parts): Add arg_type parameter; use it
29093         instead of determining the type from pointer type.
29094         (ipa_compute_jump_functions_for_edge): Update call of
29095         determine_known_aggregate_parts.
29096         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
29097         (gimple_get_virt_method_for_binfo): ... here; simplify using
29098         vtable_pointer_value_to_vtable.
29099         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
29100         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
29101         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
29102         (vtable_pointer_value_to_vtable): Break out from ...; handle also
29103         POINTER_PLUS_EXPR.
29104         (vtable_pointer_value_to_binfo): ... here.
29105         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
29106
29107 2014-02-03  Teresa Johnson  <tejohnson@google.com>
29108
29109         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
29110         redef of outer loop index variable.
29111
29112 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
29113
29114         PR c++/53017
29115         PR c++/59211
29116         * doc/extend.texi (Function Attributes): Typo.
29117
29118 2014-02-03  Cong Hou  <congh@google.com>
29119
29120         PR tree-optimization/60000
29121         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
29122         if the vectorized statement is a store.  A store statement can only
29123         appear at the end of pattern statements.
29124
29125 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
29126
29127         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
29128         (ix86_option_override_internal): Default long double to 64-bit for
29129         32-bit Bionic and to 128-bit for 64-bit Bionic.
29130
29131         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
29132         TARGET_LONG_DOUBLE_128 is true.
29133         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
29134
29135         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
29136         (mlong-double-64): Negate -mlong-double-128.
29137         (mlong-double-128): New option.
29138
29139         * config/i386/i386-c.c (ix86_target_macros): Define
29140         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
29141
29142         * doc/invoke.texi: Document -mlong-double-128.
29143
29144 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
29145
29146         PR rtl-optimization/60024
29147         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
29148
29149 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
29150
29151         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
29152
29153 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
29154
29155         PR rtl-optimization/57662
29156         * sel-sched.c (code_motion_path_driver): Do not mark already not
29157         existing blocks in the visiting bitmap.
29158
29159 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
29160
29161         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
29162         on the insn being emitted.
29163
29164 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
29165             Will Deacon  <will.deacon@arm.com>
29166
29167         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
29168
29169 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29170
29171         * config/arm/arm-tables.opt: Regenerate.
29172
29173 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29174
29175         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
29176         for vector types other than V16QImode.
29177         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
29178         define_expand, and call altivec_expand_vec_perm_le when producing
29179         code with little endian element order.
29180         (*altivec_vperm_<mode>_internal): New insn having previous
29181         behavior of altivec_vperm_<mode>.
29182         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
29183         altivec_expand_vec_perm_le when producing code with little endian
29184         element order.
29185         (*altivec_vperm_<mode>_uns_internal): New insn having previous
29186         behavior of altivec_vperm_<mode>_uns.
29187
29188 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29189
29190         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
29191         (altivec_vsumsws): Add handling for -maltivec=be with a little
29192         endian target.
29193         (altivec_vsumsws_direct): New.
29194         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
29195         gen_altivec_vsumsws.
29196
29197 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
29198
29199         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
29200         vtable_pointer_value_to_binfo): New functions.
29201         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
29202         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
29203
29204 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
29205
29206         * config/nios2/nios2.md (load_got_register): Initialize GOT
29207         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
29208         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
29209
29210 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
29211
29212         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
29213         preserverd by passthrough, do not propagate the type.
29214
29215 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29216
29217         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
29218         (mips_atomic_assign_expand_fenv): New function.
29219         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29220
29221 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29222
29223         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
29224         (__builtin_mips_set_fcsr): Likewise.
29225         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
29226         MIPS_USI_FTYPE_VOID.
29227         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
29228         (mips16_expand_set_fcsr): Likewise.
29229         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
29230         (mips16_set_fcsr_stub): Likewise.
29231         (mips16_get_fcsr_one_only_stub): New class.
29232         (mips16_set_fcsr_one_only_stub): Likewise.
29233         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
29234         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
29235         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
29236         (hard_float): New availability predicate.
29237         (mips_builtins): Add get_fcsr and set_fcsr.
29238         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
29239         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
29240         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
29241         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
29242         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
29243         patterns.
29244
29245 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29246
29247         * config/mips/mips.c (mips_one_only_stub): New class.
29248         (mips_need_mips16_rdhwr_p): Replace with...
29249         (mips16_rdhwr_stub): ...this new variable.
29250         (mips16_stub_call_address): New function.
29251         (mips16_rdhwr_one_only_stub): New class.
29252         (mips_expand_thread_pointer): Use mips16_stub_call_address.
29253         (mips_output_mips16_rdhwr): Delete.
29254         (mips_finish_stub): New function.
29255         (mips_code_end): Use it to handle rdhwr stubs.
29256
29257 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
29258
29259         PR target/60017
29260         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
29261         when calculating size of integer atomic types.
29262
29263 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
29264
29265         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
29266
29267 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
29268
29269         PR tree-optimization/60003
29270         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
29271         * profile.c (branch_prob): Use gimple_call_builtin_p
29272         to check for BUILT_IN_SETJMP_RECEIVER.
29273         * tree-inline.c (copy_bb): Call notice_special_calls.
29274
29275 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
29276
29277         PR bootstrap/59985
29278         * lra-constraints.c (process_alt_operands): Update reload_sum only
29279         on the first pass.
29280
29281 2014-01-31  Richard Henderson  <rth@redhat.com>
29282
29283         PR middle-end/60004
29284         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
29285         until after else_eh is processed.
29286
29287 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
29288
29289         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
29290         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
29291         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
29292         in smmintrin.h, remove them.
29293         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
29294         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
29295         * config/i386/i386.md (ROUND_SAE): Fix value.
29296         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
29297         (const48_operand): New.
29298         * config/i386/subst.md (round), (round_expand): Use
29299         const_4_or_8_to_11_operand.
29300         (round_saeonly), (round_saeonly_expand): Use const48_operand.
29301
29302 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
29303
29304         * config/i386/constraints.md (Yk): Swap meaning with k.
29305         * config/i386/i386.md (movhi_internal): Change Yk to k.
29306         (movqi_internal): Ditto.
29307         (*k<logic><mode>): Ditto.
29308         (*andhi_1): Ditto.
29309         (*andqi_1): Ditto.
29310         (kandn<mode>): Ditto.
29311         (*<code>hi_1): Ditto.
29312         (*<code>qi_1): Ditto.
29313         (kxnor<mode>): Ditto.
29314         (kortestzhi): Ditto.
29315         (kortestchi): Ditto.
29316         (kunpckhi): Ditto.
29317         (*one_cmplhi2_1): Ditto.
29318         (*one_cmplqi2_1): Ditto.
29319         * config/i386/sse.md (): Change k to Yk.
29320         (avx512f_load<mode>_mask): Ditto.
29321         (avx512f_blendm<mode>): Ditto.
29322         (avx512f_store<mode>_mask): Ditto.
29323         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
29324         (avx512f_storedqu<mode>_mask): Ditto.
29325         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
29326         Ditto.
29327         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
29328         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
29329         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
29330         (avx512f_maskcmp<mode>3): Ditto.
29331         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
29332         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
29333         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
29334         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
29335         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
29336         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
29337         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
29338         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
29339         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
29340         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
29341         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
29342         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
29343         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
29344         (vec_extract_lo_<mode>_maskm): Ditto.
29345         (vec_extract_hi_<mode>_maskm): Ditto.
29346         (avx512f_vternlog<mode>_mask): Ditto.
29347         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
29348         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
29349         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
29350         (avx512f_<code>v8div16qi2_mask): Ditto.
29351         (avx512f_<code>v8div16qi2_mask_store): Ditto.
29352         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
29353         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
29354         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
29355         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
29356         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29357         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29358         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29359         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29360         (avx512cd_maskb_vec_dupv8di): Ditto.
29361         (avx512cd_maskw_vec_dupv16si): Ditto.
29362         (avx512f_vpermi2var<mode>3_maskz): Ditto.
29363         (avx512f_vpermi2var<mode>3_mask): Ditto.
29364         (avx512f_vpermi2var<mode>3_mask): Ditto.
29365         (avx512f_vpermt2var<mode>3_maskz): Ditto.
29366         (*avx512f_gathersi<mode>): Ditto.
29367         (*avx512f_gathersi<mode>_2): Ditto.
29368         (*avx512f_gatherdi<mode>): Ditto.
29369         (*avx512f_gatherdi<mode>_2): Ditto.
29370         (*avx512f_scattersi<mode>): Ditto.
29371         (*avx512f_scatterdi<mode>): Ditto.
29372         (avx512f_compress<mode>_mask): Ditto.
29373         (avx512f_compressstore<mode>_mask): Ditto.
29374         (avx512f_expand<mode>_mask): Ditto.
29375         * config/i386/subst.md (mask): Change k to Yk.
29376         (mask_scalar_merge): Ditto.
29377         (sd): Ditto.
29378
29379 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
29380
29381         * doc/extend.texi (Vector Extensions): Document ?: in C++.
29382
29383 2014-01-31  Richard Biener  <rguenther@suse.de>
29384
29385         PR middle-end/59990
29386         * builtins.c (fold_builtin_memory_op): Make sure to not
29387         use a floating-point mode or a boolean or enumeral type for
29388         the copy operation.
29389
29390 2014-01-30  DJ Delorie  <dj@redhat.com>
29391
29392         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
29393         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
29394         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
29395         whenever main() has an epilogue.
29396
29397 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29398
29399         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
29400         unused variable "field".
29401         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
29402         (vsx_mergeh_<mode>): Likewise.
29403         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
29404         (altivec_vmrghh): Likewise.
29405         (altivec_vmrghw): Likewise.
29406         (altivec_vmrglb): Likewise.
29407         (altivec_vmrglh): Likewise.
29408         (altivec_vmrglw): Likewise.
29409         (altivec_vspltb): Add missing uses.
29410         (altivec_vsplth): Likewise.
29411         (altivec_vspltw): Likewise.
29412         (altivec_vspltsf): Likewise.
29413
29414 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
29415
29416         PR target/59923
29417         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
29418         frame related instructions.
29419
29420 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29421
29422         PR rtl-optimization/59959
29423         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
29424         any reload of register whose subreg is invalid.
29425
29426 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
29427
29428         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
29429         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
29430         Add missing return type - void.
29431
29432 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29433
29434         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
29435         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
29436         remove element index adjustment for endian (now handled in vsx.md
29437         and altivec.md).
29438         (altivec_expand_vec_perm_const): Use
29439         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
29440         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
29441         (vsx_xxspltw_<mode>): Adjust element index for little endian.
29442         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
29443         define_expand and a new define_insn *altivec_vspltb_internal;
29444         adjust for -maltivec=be on a little endian target.
29445         (altivec_vspltb_direct): New.
29446         (altivec_vsplth): Divide into a define_expand and a new
29447         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
29448         little endian target.
29449         (altivec_vsplth_direct): New.
29450         (altivec_vspltw): Divide into a define_expand and a new
29451         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
29452         little endian target.
29453         (altivec_vspltw_direct): New.
29454         (altivec_vspltsf): Divide into a define_expand and a new
29455         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
29456         a little endian target.
29457
29458 2014-01-30  Richard Biener  <rguenther@suse.de>
29459
29460         PR tree-optimization/59993
29461         * tree-ssa-forwprop.c (associate_pointerplus): Check we
29462         can propagate form the earlier stmt and avoid the transform
29463         when the intermediate result is needed.
29464
29465 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
29466
29467         * README.Portability: Fix typo.
29468
29469 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
29470
29471         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
29472         comparison_operator with ordered_comparison_operator.
29473
29474 2014-01-30  Nick Clifton  <nickc@redhat.com>
29475
29476         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
29477         Rename to mn10300_store_multiple_regs.
29478         * config/mn10300/mn10300.c: Likewise.
29479         * config/mn10300/mn10300.md (store_movm): Fix typo: call
29480         store_multiple_regs.
29481         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
29482         Call mn10300_store_multiple_regs.
29483
29484 2014-01-30  Nick Clifton  <nickc@redhat.com>
29485             DJ Delorie  <dj@redhat.com>
29486
29487         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
29488         %fp 2 to keep registers after it properly word-aligned.
29489         (rl78_alloc_physical_registers_umul): Handle the case where both
29490         input operands are the same.
29491
29492 2014-01-30  Richard Biener  <rguenther@suse.de>
29493
29494         PR tree-optimization/59903
29495         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
29496         check properly.
29497
29498 2014-01-30  Jason Merrill  <jason@redhat.com>
29499
29500         PR c++/59633
29501         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
29502
29503         PR c++/59645
29504         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
29505
29506 2014-01-30  Richard Biener  <rguenther@suse.de>
29507
29508         PR tree-optimization/59951
29509         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
29510
29511 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
29512
29513         PR target/59784
29514         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
29515         SFmode to DFmode case.
29516
29517 2014-01-29  DJ Delorie  <dj@redhat.com>
29518
29519         * config/msp430/msp430.opt (-minrt): New.
29520         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
29521         if -minrt given.
29522         (ENDFILE_SPEC): Likewise.
29523
29524 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
29525
29526         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
29527         (estimate_function_body_sizes): Use it.
29528
29529 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
29530
29531         PR c++/58561
29532         * dwarf2out.c (is_cxx_auto): New.
29533         (is_base_type): Use it.
29534         (gen_type_die_with_usage): Likewise.
29535
29536 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29537
29538         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
29539         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
29540         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
29541         -maltivec=be with LE targets.
29542         (vsx_mergeh_<mode>): Likewise.
29543         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
29544         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
29545         (altivec_vmrghb): Replace with define_expand and new
29546         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
29547         (altivec_vmrghb_direct): New define_insn.
29548         (altivec_vmrghh): Replace with define_expand and new
29549         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
29550         (altivec_vmrghh_direct): New define_insn.
29551         (altivec_vmrghw): Replace with define_expand and new
29552         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
29553         (altivec_vmrghw_direct): New define_insn.
29554         (*altivec_vmrghsf): Adjust for endianness.
29555         (altivec_vmrglb): Replace with define_expand and new
29556         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
29557         (altivec_vmrglb_direct): New define_insn.
29558         (altivec_vmrglh): Replace with define_expand and new
29559         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
29560         (altivec_vmrglh_direct): New define_insn.
29561         (altivec_vmrglw): Replace with define_expand and new
29562         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
29563         (altivec_vmrglw_direct): New define_insn.
29564         (*altivec_vmrglsf): Adjust for endianness.
29565         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29566         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29567         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29568         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29569         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29570         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29571         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29572         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29573
29574 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29575
29576         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
29577         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
29578         whitespace.
29579
29580 2014-01-29  Richard Biener  <rguenther@suse.de>
29581
29582         PR tree-optimization/58742
29583         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
29584         associate_pointerplus_align.
29585         (associate_pointerplus_diff): New function.
29586         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
29587         and associate_pointerplus_diff.
29588
29589 2014-01-29  Richard Biener  <rguenther@suse.de>
29590
29591         * lto-streamer.h (LTO_major_version): Bump to 3.
29592         (LTO_minor_version): Reset to 0.
29593
29594 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
29595
29596         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
29597         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
29598         (arm_file_start): Generate correct asm header for armv7ve.
29599         * config/arm/bpabi.h: Add multilib support for armv7ve.
29600         * config/arm/driver-arm.c: Change the architectures of cortex-a7
29601         and cortex-a15 to armv7ve.
29602         * config/arm/t-aprofile: Add multilib support for armv7ve.
29603         * doc/invoke.texi: Document -march=armv7ve.
29604
29605 2014-01-29  Richard Biener  <rguenther@suse.de>
29606
29607         PR tree-optimization/58742
29608         * tree-ssa-forwprop.c (associate_plusminus): Return true
29609         if we changed sth, defer EH cleanup to ...
29610         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
29611         (simplify_mult): New function.
29612
29613 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
29614
29615         PR middle-end/59917
29616         PR tree-optimization/59920
29617         * tree.c (build_common_builtin_nodes): Remove
29618         __builtin_setjmp_dispatcher initialization.
29619         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
29620         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
29621         instead of gsi_after_labels + manually skipping debug stmts.
29622         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
29623         ignore bbs with IFN_ABNORMAL_DISPATCHER.
29624         * tree-inline.c (copy_edges_for_bb): Remove
29625         can_make_abnormal_goto argument, instead add abnormal_goto_dest
29626         argument.  Ignore computed_goto_p stmts.  Don't call
29627         make_abnormal_goto_edges.  If a call might need abnormal edges
29628         for non-local gotos, see if it already has an edge to
29629         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
29630         with true argument, don't do anything then, otherwise add
29631         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
29632         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
29633         caller.
29634         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
29635         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
29636         (lower_stmt): Don't set data->calls_builtin_setjmp.
29637         (lower_builtin_setjmp): Adjust comment.
29638         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
29639         * tree-cfg.c (found_computed_goto): Remove.
29640         (factor_computed_gotos): Remove.
29641         (make_goto_expr_edges): Return bool, true for computed gotos.
29642         Don't call make_abnormal_goto_edges.
29643         (build_gimple_cfg): Don't set found_computed_goto, don't call
29644         factor_computed_gotos.
29645         (computed_goto_p): No longer static.
29646         (make_blocks): Don't set found_computed_goto.
29647         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
29648         (make_edges): If make_goto_expr_edges returns true, push bb
29649         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
29650         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
29651         vector.  Record mapping between bbs and OpenMP regions if there
29652         are any, adjust make_gimple_omp_edges caller.  Call
29653         handle_abnormal_edges.
29654         (make_abnormal_goto_edges): Remove.
29655         * tree-cfg.h (make_abnormal_goto_edges): Remove.
29656         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
29657         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
29658         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
29659         * internal-fn.def (ABNORMAL_DISPATCHER): New.
29660         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
29661         filling *region also set *region_idx to (*region)->entry->index.
29662
29663         PR other/58712
29664         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
29665         For REGs set ORIGINAL_REGNO.
29666
29667 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
29668
29669         * doc/md.texi: Mention that a target shouldn't implement
29670         vec_widen_(s|u)mul_even/odd pair if it is less efficient
29671         than hi/lo pair.
29672
29673 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
29674
29675         PR tree-optimization/59594
29676         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
29677         a copy of the datarefs vector rather than the vector itself.
29678
29679 2014-01-28  Jason Merrill  <jason@redhat.com>
29680
29681         PR c++/53756
29682         * dwarf2out.c (auto_die): New static.
29683         (gen_type_die_with_usage): Handle C++1y 'auto'.
29684         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
29685         on definition.
29686
29687 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
29688
29689         PR target/59672
29690         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
29691         (SPEC_X32): Likewise.
29692         (SPEC_64): Likewise.
29693         * config/i386/i386.c (ix86_option_override_internal): Turn off
29694         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
29695         for TARGET_16BIT.
29696         (x86_file_start): Output .code16gcc for TARGET_16BIT.
29697         * config/i386/i386.h (TARGET_16BIT): New macro.
29698         (TARGET_16BIT_P): Likewise.
29699         * config/i386/i386.opt: Add m16.
29700         * doc/invoke.texi: Document -m16.
29701
29702 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
29703
29704         PR preprocessor/59935
29705         * input.c (location_get_source_line): Bail out on when line number
29706         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29707
29708 2014-01-28  Richard Biener  <rguenther@suse.de>
29709
29710         PR tree-optimization/58742
29711         * tree-ssa-forwprop.c (associate_plusminus): Handle
29712         pointer subtraction of the form (T)(P + A) - (T)P.
29713
29714 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29715
29716         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29717         at const_int_cost.
29718
29719 2014-01-28  Richard Biener  <rguenther@suse.de>
29720
29721         Revert
29722         2014-01-28  Richard Biener  <rguenther@suse.de>
29723
29724         PR rtl-optimization/45364
29725         PR rtl-optimization/59890
29726         * var-tracking.c (local_get_addr_clear_given_value): Handle
29727         already cleared slot.
29728         (val_reset): Handle not allocated local_get_addr_cache.
29729         (vt_find_locations): Use post-order on the inverted CFG.
29730
29731 2014-01-28  Richard Biener  <rguenther@suse.de>
29732
29733         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29734
29735 2014-01-28  Richard Biener  <rguenther@suse.de>
29736
29737         PR rtl-optimization/45364
29738         PR rtl-optimization/59890
29739         * var-tracking.c (local_get_addr_clear_given_value): Handle
29740         already cleared slot.
29741         (val_reset): Handle not allocated local_get_addr_cache.
29742         (vt_find_locations): Use post-order on the inverted CFG.
29743
29744 2014-01-28  Alan Modra  <amodra@gmail.com>
29745
29746         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29747         * configure.ac <recursive call for build != host>: Define
29748         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29749         and LD_FOR_BUILD too.
29750         * configure: Regenerate.
29751
29752 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
29753
29754         * config/i386/i386.c (get_builtin_code_for_version): Separate
29755         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29756         Broadwell from Haswell.
29757
29758 2014-01-27  Steve Ellcey  <sellcey@mips.com>
29759
29760         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29761         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29762         * config/mips/mips.c (mips_option_override): Change setting
29763         of TARGET_DSP.
29764         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29765         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29766         Change from Mask to Var.
29767
29768 2014-01-27  Jeff Law  <law@redhat.com>
29769
29770         * ipa-inline.c (inline_small_functions): Fix typo.
29771
29772 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
29773
29774         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29775         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29776         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29777         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29778         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29779         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29780         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29781         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29782         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29783         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29784         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29785         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29786         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29787         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29788         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29789         (_mm512_storeu_epi64): Ditto.
29790         (_mm512_cmpge_epi32_mask): Ditto.
29791         (_mm512_cmpge_epu32_mask): Ditto.
29792         (_mm512_cmpge_epi64_mask): Ditto.
29793         (_mm512_cmpge_epu64_mask): Ditto.
29794         (_mm512_cmple_epi32_mask): Ditto.
29795         (_mm512_cmple_epu32_mask): Ditto.
29796         (_mm512_cmple_epi64_mask): Ditto.
29797         (_mm512_cmple_epu64_mask): Ditto.
29798         (_mm512_cmplt_epi32_mask): Ditto.
29799         (_mm512_cmplt_epu32_mask): Ditto.
29800         (_mm512_cmplt_epi64_mask): Ditto.
29801         (_mm512_cmplt_epu64_mask): Ditto.
29802         (_mm512_cmpneq_epi32_mask): Ditto.
29803         (_mm512_cmpneq_epu32_mask): Ditto.
29804         (_mm512_cmpneq_epi64_mask): Ditto.
29805         (_mm512_cmpneq_epu64_mask): Ditto.
29806         (_mm512_expand_pd): Ditto.
29807         (_mm512_expand_ps): Ditto.
29808         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29809         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29810         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29811         * config/i386/i386.c (ix86_builtins): Add
29812         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29813         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29814         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29815         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29816         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29817         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29818         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29819         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29820         IX86_BUILTIN_PMOVUSQW512_MEM.
29821         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29822         __builtin_ia32_pmovsqd512mem_mask,
29823         __builtin_ia32_pmovqd512mem_mask,
29824         __builtin_ia32_pmovusqw512mem_mask,
29825         __builtin_ia32_pmovsqw512mem_mask,
29826         __builtin_ia32_pmovqw512mem_mask,
29827         __builtin_ia32_pmovusdw512mem_mask,
29828         __builtin_ia32_pmovsdw512mem_mask,
29829         __builtin_ia32_pmovdw512mem_mask,
29830         __builtin_ia32_pmovqb512mem_mask,
29831         __builtin_ia32_pmovusqb512mem_mask,
29832         __builtin_ia32_pmovsqb512mem_mask,
29833         __builtin_ia32_pmovusdb512mem_mask,
29834         __builtin_ia32_pmovsdb512mem_mask,
29835         __builtin_ia32_pmovdb512mem_mask.
29836         (bdesc_args): Add __builtin_ia32_expanddf512,
29837         __builtin_ia32_expandsf512.
29838         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29839         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29840         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29841         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29842         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29843         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29844         (avx512f_<code>v8div16qi2_mask_store): This.
29845         (avx512f_expand<mode>): New.
29846
29847 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
29848
29849         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29850         New.
29851         (_mm512_mask_prefetch_i64gather_pd): Ditto.
29852         (_mm512_prefetch_i32scatter_pd): Ditto.
29853         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29854         (_mm512_prefetch_i64scatter_pd): Ditto.
29855         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29856         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29857         (_mm512_mask_prefetch_i64gather_ps): Ditto.
29858         (_mm512_prefetch_i32scatter_ps): Ditto.
29859         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29860         (_mm512_prefetch_i64scatter_ps): Ditto.
29861         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29862         * config/i386/i386-builtin-types.def: Define
29863         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29864         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29865         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29866         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29867         IX86_BUILTIN_SCATTERPFQPD.
29868         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29869         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29870         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29871         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29872         __builtin_ia32_scatterpfqps.
29873         (ix86_expand_builtin): Expand new built-ins.
29874         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29875         fix memory access data type.
29876         (*avx512pf_gatherpf<mode>_mask): Ditto.
29877         (*avx512pf_gatherpf<mode>): Ditto.
29878         (avx512pf_scatterpf<mode>): Ditto.
29879         (*avx512pf_scatterpf<mode>_mask): Ditto.
29880         (*avx512pf_scatterpf<mode>): Ditto.
29881         (GATHER_SCATTER_SF_MEM_MODE): New.
29882         (avx512pf_gatherpf<mode>df): Ditto.
29883         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29884         (*avx512pf_scatterpf<mode>df): Ditto.
29885
29886 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
29887
29888         PR bootstrap/59934
29889         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29890         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29891         reached.
29892
29893 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29894
29895         * common/config/arm/arm-common.c
29896         (arm_rewrite_mcpu): Handle multiple names.
29897         * config/arm/arm.h
29898         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29899
29900 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29901
29902         * gimple-builder.h (create_gimple_tmp): Delete.
29903
29904 2014-01-27  Christian Bruel  <christian.bruel@st.com>
29905
29906         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29907         words comparisons.
29908
29909 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
29910
29911         * config/pa/pa.md (call): Generate indirect long calls to non-local
29912         functions when outputing 32-bit code.
29913         (call_value): Likewise except for special call to buggy powf function.
29914
29915         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29916         portable runtime and PIC indirect calls.
29917         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29918         and PIC call sequences.  Use ldo instead of blr to set return register
29919         in PIC call sequence.
29920
29921 2014-01-25  Walter Lee  <walt@tilera.com>
29922
29923         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29924         avoid clobbering a live register.
29925
29926 2014-01-25  Walter Lee  <walt@tilera.com>
29927
29928         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29929         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29930         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29931         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29932
29933 2014-01-25  Walter Lee  <walt@tilera.com>
29934
29935         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29936         arguments on even registers.
29937         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29938         STACK_BOUNDARY.
29939         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29940         (BIGGEST_ALIGNMENT): Ditto.
29941         (BIGGEST_FIELD_ALIGNMENT): Ditto.
29942
29943 2014-01-25  Walter Lee  <walt@tilera.com>
29944
29945         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29946         insns before bundling.
29947         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29948
29949 2014-01-25  Walter Lee  <walt@tilera.com>
29950
29951         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29952         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29953         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29954
29955 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29956
29957         * config/mips/constraints.md (kl): Delete.
29958         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29959         define expands, using...
29960         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29961         instructions for MIPS16.
29962         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29963         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29964
29965 2014-01-25  Walter Lee  <walt@tilera.com>
29966
29967         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29968         (clzdi2): Ditto.
29969         (ffsdi2): Ditto.
29970
29971 2014-01-25  Walter Lee  <walt@tilera.com>
29972
29973         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29974         (TARGET_EXPAND_TO_RTL_HOOK): Define.
29975
29976 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29977
29978         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29979         Handle XOR.
29980
29981 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
29982
29983         * print-rtl.c (in_call_function_usage): New var.
29984         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29985         EXPR_LIST mode as mode and not as reg note name.
29986
29987         PR middle-end/59561
29988         * cfgloopmanip.c (copy_loop_info): If
29989         loop->warned_aggressive_loop_optimizations, make sure
29990         the flag is set in target loop too.
29991
29992 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
29993
29994         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29995         flag_cilkplus.
29996         * builtins.def: Likewise.
29997         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29998         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29999         * ira.c (ira_setup_eliminable_regset): Likewise.
30000         * omp-low.c (gate_expand_omp): Likewise.
30001         (execute_lower_omp): Likewise.
30002         (diagnose_sb_0): Likewise.
30003         (gate_diagnose_omp_blocks): Likewise.
30004         (simd_clone_clauses_extract): Likewise.
30005         (gate): Likewise.
30006
30007 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30008
30009         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
30010         correction for little endian...
30011         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
30012         here.
30013
30014 2014-01-24  Jeff Law  <law@redhat.com>
30015
30016         PR tree-optimization/59919
30017         * tree-vrp.c (find_assert_locations_1): Do not register asserts
30018         for non-returning calls.
30019
30020 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
30021
30022         * common/config/aarch64/aarch64-common.c
30023         (aarch64_rewrite_mcpu): Handle multiple names.
30024         * config/aarch64/aarch64.h
30025         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
30026
30027 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
30028
30029         * input.c (add_file_to_cache_tab): Handle the case where fopen
30030         returns NULL.
30031
30032 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
30033
30034         PR target/59929
30035         * config/i386/i386.md (pushsf splitter): Get stack adjustment
30036         from push operand if code of push isn't PRE_DEC.
30037
30038 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
30039
30040         PR target/59909
30041         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
30042         -mquad-memory-atomic.  Update -mquad-memory documentation to say
30043         it is only used for non-atomic loads/stores.
30044
30045         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
30046         -mquad-memory or -mquad-memory-atomic switches.
30047
30048         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
30049         -mquad-memory-atomic to ISA 2.07 support.
30050
30051         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
30052         to separate support of normal quad word memory operations (ldq, stq)
30053         from the atomic quad word memory operations.
30054
30055         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
30056         support to separate non-atomic quad word operations from atomic
30057         quad word operations.  Disable non-atomic quad word operations in
30058         little endian mode so that we don't have to swap words after the
30059         load and before the store.
30060         (quad_load_store_p): Add comment about atomic quad word support.
30061         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
30062         options printed with -mdebug=reg.
30063
30064         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
30065         -mquad-memory-atomic as the test for whether we have quad word
30066         atomic instructions.
30067         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
30068         or -mp8-vector are used, allow byte/half-word atomic operations.
30069
30070         * config/rs6000/sync.md (load_lockedti): Insure that the address
30071         is a proper indexed or indirect address for the lqarx instruction.
30072         On little endian systems, swap the hi/lo registers after the lqarx
30073         instruction.
30074         (load_lockedpti): Use indexed_or_indirect_operand predicate to
30075         insure the address is valid for the lqarx instruction.
30076         (store_conditionalti): Insure that the address is a proper indexed
30077         or indirect address for the stqcrx. instruction.  On little endian
30078         systems, swap the hi/lo registers before doing the stqcrx.
30079         instruction.
30080         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
30081         insure the address is valid for the stqcrx. instruction.
30082
30083         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
30084         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
30085         type of quad memory support is available.
30086
30087 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
30088
30089         PR regression/59915
30090         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
30091         there is a danger of looping.
30092
30093 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
30094
30095         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30096         force flag_ira_loop_pressure if set via command line.
30097
30098 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
30099
30100         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
30101         (ashr_simd): New builtin handling DI mode.
30102         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
30103         (aarch64_sshr_simddi): New match pattern.
30104         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
30105         (vshrd_n_s64): Likewise.
30106         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
30107
30108 2014-01-23  Nick Clifton  <nickc@redhat.com>
30109
30110         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
30111         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
30112         favour of mcu specific scripts.
30113         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
30114         430x multilibs.
30115
30116 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
30117             Alex Velenko  <Alex.Velenko@arm.com>
30118
30119         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
30120         (vaddv_s16): Likewise.
30121         (vaddv_s32): Likewise.
30122         (vaddv_u8): Likewise.
30123         (vaddv_u16): Likewise.
30124         (vaddv_u32): Likewise.
30125         (vaddvq_s8): Likewise.
30126         (vaddvq_s16): Likewise.
30127         (vaddvq_s32): Likewise.
30128         (vaddvq_s64): Likewise.
30129         (vaddvq_u8): Likewise.
30130         (vaddvq_u16): Likewise.
30131         (vaddvq_u32): Likewise.
30132         (vaddvq_u64): Likewise.
30133         (vaddv_f32): Likewise.
30134         (vaddvq_f32): Likewise.
30135         (vaddvq_f64): Likewise.
30136         (vmaxv_f32): Likewise.
30137         (vmaxv_s8): Likewise.
30138         (vmaxv_s16): Likewise.
30139         (vmaxv_s32): Likewise.
30140         (vmaxv_u8): Likewise.
30141         (vmaxv_u16): Likewise.
30142         (vmaxv_u32): Likewise.
30143         (vmaxvq_f32): Likewise.
30144         (vmaxvq_f64): Likewise.
30145         (vmaxvq_s8): Likewise.
30146         (vmaxvq_s16): Likewise.
30147         (vmaxvq_s32): Likewise.
30148         (vmaxvq_u8): Likewise.
30149         (vmaxvq_u16): Likewise.
30150         (vmaxvq_u32): Likewise.
30151         (vmaxnmv_f32): Likewise.
30152         (vmaxnmvq_f32): Likewise.
30153         (vmaxnmvq_f64): Likewise.
30154         (vminv_f32): Likewise.
30155         (vminv_s8): Likewise.
30156         (vminv_s16): Likewise.
30157         (vminv_s32): Likewise.
30158         (vminv_u8): Likewise.
30159         (vminv_u16): Likewise.
30160         (vminv_u32): Likewise.
30161         (vminvq_f32): Likewise.
30162         (vminvq_f64): Likewise.
30163         (vminvq_s8): Likewise.
30164         (vminvq_s16): Likewise.
30165         (vminvq_s32): Likewise.
30166         (vminvq_u8): Likewise.
30167         (vminvq_u16): Likewise.
30168         (vminvq_u32): Likewise.
30169         (vminnmv_f32): Likewise.
30170         (vminnmvq_f32): Likewise.
30171         (vminnmvq_f64): Likewise.
30172
30173 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
30174
30175         * config/aarch64/aarch64-simd.md
30176         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
30177         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
30178         (*aarch64_mul3_elt<mode>): Likewise.
30179         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
30180         (*aarch64_mul3_elt_to_64v2df): Likewise.
30181         (*aarch64_mla_elt<mode>): Likewise.
30182         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
30183         (*aarch64_mls_elt<mode>): Likewise.
30184         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
30185         (*aarch64_fma4_elt<mode>): Likewise.
30186         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
30187         (*aarch64_fma4_elt_to_64v2df): Likewise.
30188         (*aarch64_fnma4_elt<mode>): Likewise.
30189         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
30190         (*aarch64_fnma4_elt_to_64v2df): Likewise.
30191         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
30192         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
30193         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
30194         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
30195         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
30196         (aarch64_sqdmull_lane<mode>_internal): Likewise.
30197         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
30198
30199 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
30200
30201         * config/aarch64/aarch64-simd.md
30202         (aarch64_be_checked_get_lane<mode>): New define_expand.
30203         * config/aarch64/aarch64-simd-builtins.def
30204         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
30205         New builtin definition.
30206         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
30207         Use new safe be builtin.
30208
30209 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
30210
30211         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
30212         New define_insn.
30213         (aarch64_be_st1<mode>): Likewise.
30214         (aarch_ld1<VALL:mode>): Define_expand modified.
30215         (aarch_st1<VALL:mode>): Likewise.
30216         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
30217         (UNSPEC_ST1): Likewise.
30218
30219 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
30220
30221         * config/microblaze/microblaze.md: Add trap insn and attribute
30222
30223 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
30224
30225         PR preprocessor/58580
30226         * input.h (location_get_source_line): Take an additional line_size
30227         parameter.
30228         (void diagnostics_file_cache_fini): Declare new function.
30229         * input.c (struct fcache): New type.
30230         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
30231         New static constants.
30232         (diagnostic_file_cache_init, total_lines_num)
30233         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
30234         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
30235         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
30236         (get_next_line, read_next_line, goto_next_line, read_line_num):
30237         New static function definitions.
30238         (diagnostic_file_cache_fini): New function.
30239         (location_get_source_line): Take an additional output line_len
30240         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
30241         read_line_num.
30242         * diagnostic.c (diagnostic_finish): Call
30243         diagnostic_file_cache_fini.
30244         (adjust_line): Take an additional input parameter for the length
30245         of the line, rather than calculating it with strlen.
30246         (diagnostic_show_locus): Adjust the use of
30247         location_get_source_line and adjust_line with respect to their new
30248         signature.  While displaying a line now, do not stop at the first
30249         null byte.  Rather, display the zero byte as a space and keep
30250         going until we reach the size of the line.
30251         * Makefile.in: Add vec.o to OBJS-libcommon
30252
30253 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
30254             Ilya Tocar  <ilya.tocar@intel.com>
30255
30256         * config/i386/avx512fintrin.h (_mm512_kmov): New.
30257         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
30258         (__builtin_ia32_kmov16): Ditto.
30259         * config/i386/i386.md (UNSPEC_KMOV): New.
30260         (kmovw): Ditto.
30261
30262 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
30263
30264         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
30265         (_mm512_storeu_si512): Ditto.
30266
30267 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
30268
30269         PR target/52125
30270         * rtl.h (get_referenced_operands): Declare.
30271         * recog.c (get_referenced_operands): New function.
30272         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
30273         operands have been referenced when recording LO_SUM references.
30274
30275 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
30276
30277         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
30278
30279 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
30280
30281         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
30282         Enable for generic and recent AMD targets.
30283
30284 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
30285
30286         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
30287         ARG_SIZE note when adjustment was eliminated.
30288
30289 2014-01-22  Jeff Law  <law@redhat.com>
30290
30291         PR tree-optimization/59597
30292         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
30293         in file.  Accept new argument REGISTERING and use it to modify
30294         dump output appropriately.
30295         (register_jump_thread): Corresponding changes.
30296         (mark_threaded_blocks): Reinstate code to cancel unprofitable
30297         thread paths involving joiner blocks.  Add code to dump cancelled
30298         jump threading paths.
30299
30300 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
30301
30302         PR rtl-optimization/59477
30303         * lra-constraints.c (inherit_in_ebb): Process call for living hard
30304         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
30305
30306 2014-01-22  Tom Tromey  <tromey@redhat.com>
30307
30308         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
30309         PARAMS.
30310         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
30311
30312 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30313
30314         PR rtl-optimization/59896
30315         * lra-constraints.c (process_alt_operands): Check unused note for
30316         matched operands of insn with no output reloads.
30317
30318 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
30319
30320         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
30321         (mips_move_from_gpr_cost): Likewise.
30322
30323 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30324
30325         PR rtl-optimization/59858
30326         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
30327         ira_class_hard_regs_num.
30328         (process_alt_operands): Increase reject for dying matched operand.
30329
30330 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
30331
30332         PR target/59003
30333         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
30334         smaller than size, perform several stores or loads and stores
30335         at dst + count - size to store or copy all of size bytes, rather
30336         than just last modesize bytes.
30337
30338 2014-01-20  DJ Delorie  <dj@redhat.com>
30339
30340         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
30341         that CLOBBERs are REGs before propogating their values.
30342
30343 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
30344
30345         PR middle-end/59789
30346         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
30347         (cgraph_inline_failed_type): New function.
30348         * cgraph.h (DEFCIFCODE): Add type.
30349         (cgraph_inline_failed_type_t): New enum.
30350         (cgraph_inline_failed_type): New prototype.
30351         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
30352         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30353         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
30354         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
30355         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
30356         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
30357         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
30358         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
30359         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
30360         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
30361         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
30362         OPTIMIZATION_MISMATCH.
30363         * tree-inline.c (expand_call_inline): Emit errors during
30364         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
30365
30366 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
30367
30368         PR target/59685
30369         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
30370         mode attribute in insn output.
30371
30372 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
30373
30374         * output.h (output_constant): Delete.
30375         * varasm.c (output_constant): Make private.
30376
30377 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
30378
30379         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
30380
30381 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
30382
30383         PR middle-end/59860
30384         * tree.h (fold_builtin_strcat): New prototype.
30385         * builtins.c (fold_builtin_strcat): No longer static.  Add len
30386         argument, if non-NULL, don't call c_strlen.  Optimize
30387         directly into __builtin_memcpy instead of __builtin_strcpy.
30388         (fold_builtin_2): Adjust fold_builtin_strcat caller.
30389         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
30390
30391 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
30392
30393         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30394         for SImode_address_operand operands, having only a REG argument.
30395
30396 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30397
30398         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
30399         loader name using mbig-endian.
30400         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
30401
30402 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
30403
30404         * doc/invoke.texi (-march): Clarify documentation for AArch64.
30405         (-mtune): Likewise.
30406         (-mcpu): Likewise.
30407
30408 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
30409
30410         * config/aarch64/aarch64-protos.h
30411         (aarch64_cannot_change_mode_class_ptr): Declare.
30412         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
30413         aarch64_cannot_change_mode_class_ptr): New.
30414         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
30415         backend hook aarch64_cannot_change_mode_class.
30416
30417 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
30418
30419         * common/config/aarch64/aarch64-common.c
30420         (aarch64_handle_option): Don't handle any option order logic here.
30421         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
30422         selected_cpu, warn on architecture version mismatch.
30423         (aarch64_override_options): Fix parsing order for option strings.
30424
30425 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30426             Iain Sandoe  <iain@codesourcery.com>
30427
30428         PR bootstrap/59496
30429         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
30430         warning.  Amend comment to reflect current functionality.
30431
30432 2014-01-20  Richard Biener  <rguenther@suse.de>
30433
30434         PR middle-end/59860
30435         * builtins.c (fold_builtin_strcat): Remove case better handled
30436         by tree-ssa-strlen.c.
30437
30438 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
30439
30440         * config/aarch64/aarch64.opt
30441         (mcpu, march, mtune): Make case-insensitive.
30442
30443 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
30444
30445         PR target/59880
30446         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30447         if operands[1] is a REG or ZERO_EXTEND of a REG.
30448
30449 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
30450
30451         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
30452
30453 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
30454
30455         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
30456         long non-pic millicode calls.
30457
30458 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30459
30460         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
30461
30462 2014-01-19  Kito Cheng  <kito@0xlab.org>
30463
30464         * builtins.c (expand_movstr): Check movstr expand done or fail.
30465
30466 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30467             H.J. Lu  <hongjiu.lu@intel.com>
30468
30469         PR target/59379
30470         * config/i386/i386.md (*lea<mode>): Zero-extend return register
30471         to DImode for zero-extended addresses.
30472
30473 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
30474
30475         PR rtl-optimization/57763
30476         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
30477         on the new indirect jump_insn and increment LABEL_NUSES (label).
30478
30479 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
30480
30481         PR bootstrap/59580
30482         PR bootstrap/59583
30483         * config.gcc (x86_archs): New variable.
30484         (x86_64_archs): Likewise.
30485         (x86_cpus): Likewise.
30486         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
30487         --with-arch/--with-cpu= options.
30488         Support --with-arch=/--with-cpu={nehalem,westmere,
30489         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
30490
30491 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30492
30493         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
30494         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
30495
30496 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30497
30498         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
30499
30500 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
30501
30502         PR target/58944
30503         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
30504         clear cpp_get_options (parse_in)->warn_unused_macros for
30505         ix86_target_macros_internal with cpp_define.
30506
30507 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
30508
30509         * jump.c (delete_related_insns): Keep (use (insn))s.
30510         * reorg.c (redundant_insn): Check for barriers too.
30511
30512 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30513
30514         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
30515
30516 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
30517
30518         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
30519         call to $$dyncall when TARGET_LONG_CALLS is true.
30520
30521 2014-01-17  Jeff Law  <law@redhat.com>
30522
30523         * ree.c (combine_set_extension): Temporarily disable test for
30524         changing number of hard registers.
30525
30526 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
30527
30528         PR middle-end/58125
30529         * ipa-inline-analysis.c (inline_free_summary):
30530         Do not free summary of aliases.
30531
30532 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
30533
30534         PR middle-end/59706
30535         * gimplify.c (gimplify_expr): Use create_tmp_var
30536         instead of create_tmp_var_raw.  If cond doesn't have
30537         integral type, don't add the IFN_ANNOTATE builtin at all.
30538
30539 2014-01-17  Martin Jambor  <mjambor@suse.cz>
30540
30541         PR ipa/59736
30542         * ipa-cp.c (prev_edge_clone): New variable.
30543         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
30544         Also resize prev_edge_clone vector.
30545         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
30546         (ipcp_edge_removal_hook): New function.
30547         (ipcp_driver): Register ipcp_edge_removal_hook.
30548
30549 2014-01-17  Andrew Pinski  <apinski@cavium.com>
30550             Steve Ellcey  <sellcey@mips.com>
30551
30552         PR target/59462
30553         * config/mips/mips.c (mips_print_operand): Check operand mode instead
30554         of operator mode.
30555
30556 2014-01-17  Jeff Law  <law@redhat.com>
30557
30558         PR middle-end/57904
30559         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
30560         so that pass_ccp runs first.
30561
30562 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30563
30564         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
30565         (ix86_adjust_cost): Use !TARGET_XXX.
30566         (do_reorder_for_imul): Likewise.
30567         (swap_top_of_ready_list): Likewise.
30568         (ix86_sched_reorder): Likewise.
30569
30570 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30571
30572         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30573         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
30574         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
30575         (intel_memset): New.  Duplicate slm_memset.
30576         (intel_cost): New.  Duplicate slm_cost.
30577         (m_INTEL): New macro.
30578         (processor_target_table): Add "intel".
30579         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
30580         with PROCESSOR_INTEL for "intel".
30581         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
30582         PROCESSOR_SILVERMONT.
30583         (ix86_issue_rate): Likewise.
30584         (ix86_adjust_cost): Likewise.
30585         (ia32_multipass_dfa_lookahead): Likewise.
30586         (swap_top_of_ready_list): Likewise.
30587         (ix86_sched_reorder): Likewise.
30588         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
30589         instead of TARGET_OPT_AGU.
30590         * config/i386/i386.h (TARGET_INTEL): New.
30591         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
30592         (processor_type): Add PROCESSOR_INTEL.
30593         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
30594         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
30595
30596 2014-01-17  Marek Polacek  <polacek@redhat.com>
30597
30598         PR c/58346
30599         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
30600         size is zero.
30601
30602 2014-01-17  Richard Biener  <rguenther@suse.de>
30603
30604         PR tree-optimization/46590
30605         * opts.c (default_options_table): Add entries for
30606         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
30607         all enabled at -O1 but not for -Og.
30608         * common.opt (fbranch-count-reg): Remove Init(1).
30609         (fmove-loop-invariants): Likewise.
30610         (ftree-pta): Likewise.
30611
30612 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
30613
30614         * config/i386/i386.c (ix86_data_alignment): For compatibility with
30615         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
30616         decls to at least the GCC 4.8 used alignments.
30617
30618         PR fortran/59440
30619         * tree-nested.c (convert_nonlocal_reference_stmt,
30620         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
30621         of GIMPLE_BIND stmts, adjust associated decls.
30622
30623 2014-01-17  Richard Biener  <rguenther@suse.de>
30624
30625         PR tree-optimization/46590
30626         * vec.h (vec<>::bseach): New member function implementing
30627         binary search according to C89 bsearch.
30628         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
30629         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
30630         bitmap pointer again.  Make accesses_in_loop a flat array.
30631         (mem_ref_obstack): New global.
30632         (outermost_indep_loop): Adjust for mem_ref->stored changes.
30633         (mark_ref_stored): Likewise.
30634         (ref_indep_loop_p_2): Likewise.
30635         (set_ref_stored_in_loop): New helper function.
30636         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
30637         (memref_free): Adjust.
30638         (record_mem_ref_loc): Simplify.
30639         (gather_mem_refs_stmt): Adjust.
30640         (sort_locs_in_loop_postorder_cmp): New function.
30641         (analyze_memory_references): Sort accesses_in_loop after
30642         loop postorder number.
30643         (find_ref_loc_in_loop_cmp): New function.
30644         (for_all_locs_in_loop): Find relevant cluster of locs in
30645         accesses_in_loop and iterate without recursion.
30646         (execute_sm): Avoid uninit warning.
30647         (struct ref_always_accessed): Simplify.
30648         (ref_always_accessed::operator ()): Likewise.
30649         (ref_always_accessed_p): Likewise.
30650         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
30651         loop postorder numbers here.
30652         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
30653         numbers.
30654
30655 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
30656
30657         PR c++/57945
30658         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
30659         on decls for which assemble_alias has been called.
30660
30661 2014-01-17  Nick Clifton  <nickc@redhat.com>
30662
30663         * config/msp430/msp430.opt: (mcpu): New option.
30664         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
30665         (msp430_option_override): Parse target_cpu.  If the MCU name
30666         matches a generic string, clear target_mcu.
30667         (msp430_attr): Allow numeric interrupt values up to 63.
30668         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
30669         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
30670         option.
30671         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
30672         Add mcpu matches.
30673         * config/msp430/msp430.md (popm): Use %J rather than %I.
30674         (addsi3): Use msp430_nonimmediate_operand for operand 2.
30675         (addhi_cy_i): Use immediate_operand for operand 2.
30676         * doc/invoke.texi: Document -mcpu option.
30677
30678 2014-01-17  Richard Biener  <rguenther@suse.de>
30679
30680         PR rtl-optimization/38518
30681         * df.h (df_analyze_loop): Declare.
30682         * df-core.c: Include cfgloop.h.
30683         (df_analyze_1): Split out main part of df_analyze.
30684         (df_analyze): Adjust.
30685         (loop_inverted_post_order_compute): New function.
30686         (loop_post_order_compute): Likewise.
30687         (df_analyze_loop): New function avoiding whole-function
30688         postorder computes.
30689         * loop-invariant.c (find_defs): Use df_analyze_loop.
30690         (find_invariants): Adjust.
30691         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
30692
30693 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30694
30695         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
30696         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30697
30698 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
30699
30700         * ipa-ref.c (ipa_remove_stmt_references): Fix references
30701         traversal when removing references.
30702
30703 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
30704
30705         PR ipa/59775
30706         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30707
30708 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
30709
30710         PR middle-end/56791
30711         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30712         pushing a reload for an autoinc when we had previously reloaded an
30713         inner part of the address.
30714
30715 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
30716
30717         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30718         field.
30719         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30720         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30721         when not giving up or versioning for alias only because of
30722         loop->safelen.
30723         (vect_analyze_data_ref_dependences): Set to true.
30724         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30725         is a GIMPLE_PHI.
30726         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30727         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30728         to the condition.
30729
30730         PR middle-end/58344
30731         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30732
30733         PR target/59839
30734         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30735         operand 0 predicate for gathers, use a new pseudo as subtarget.
30736
30737 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
30738
30739         PR middle-end/59609
30740         * lra-constraints.c (process_alt_operands): Add printing debug info.
30741         Check absence of input/output reloads for matched operands too.
30742
30743 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
30744
30745         PR rtl-optimization/59835
30746         * ira.c (ira_init_register_move_cost): Increase cost for
30747         impossible modes.
30748
30749 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
30750
30751         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30752
30753 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
30754
30755         PR target/59780
30756         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30757         non-register objects.  Use gen_(high/low)part more consistently.
30758         Fix assertions.
30759
30760 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
30761
30762         PR target/59844
30763         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30764         endian support, remove tests for WORDS_BIG_ENDIAN.
30765         (p8_mfvsrd_3_<mode>): Likewise.
30766         (reload_gpr_from_vsx<mode>): Likewise.
30767         (reload_gpr_from_vsxsf): Likewise.
30768         (p8_mfvsrd_4_disf): Likewise.
30769
30770 2014-01-16  Richard Biener  <rguenther@suse.de>
30771
30772         PR rtl-optimization/46590
30773         * lcm.c (compute_antinout_edge): Use postorder iteration.
30774         (compute_laterin): Use inverted postorder iteration.
30775
30776 2014-01-16  Nick Clifton  <nickc@redhat.com>
30777
30778         PR middle-end/28865
30779         * varasm.c (output_constant): Return the number of bytes actually
30780         emitted.
30781         (output_constructor_array_range): Update the field size with the
30782         number of bytes emitted by output_constant.
30783         (output_constructor_regular_field): Likewise.  Also do not
30784         complain if the total number of bytes emitted is now greater
30785         than the expected fieldpos.
30786         * output.h (output_constant): Update prototype and descriptive comment.
30787
30788 2014-01-16  Marek Polacek  <polacek@redhat.com>
30789
30790         PR middle-end/59827
30791         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30792         it is error_mark_node.
30793
30794 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
30795
30796         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30797         VALID_AVX256_REG_OR_OI_MODE.
30798
30799 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
30800
30801         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30802         current procedure should be profiled.
30803
30804 2014-01-15  Andrew Pinski  <apinski@cavium.com>
30805
30806         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30807         of moving from/to the STACK_REG register class.
30808
30809 2014-01-15  Richard Henderson  <rth@redhat.com>
30810
30811         PR debug/54694
30812         * reginfo.c (global_regs_decl): Globalize.
30813         * rtl.h (global_regs_decl): Declare.
30814         * ira.c (do_reload): Diagnose frame_pointer_needed and it
30815         reserved via global_regs.
30816
30817 2014-01-15  Teresa Johnson  <tejohnson@google.com>
30818
30819         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30820
30821 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
30822
30823         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30824         and vmulosh rather than call gen_vec_widen_smult_*.
30825         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30826         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30827         (vec_widen_smult_even_v16qi): Likewise.
30828         (vec_widen_umult_even_v8hi): Likewise.
30829         (vec_widen_smult_even_v8hi): Likewise.
30830         (vec_widen_umult_odd_v16qi): Likewise.
30831         (vec_widen_smult_odd_v16qi): Likewise.
30832         (vec_widen_umult_odd_v8hi): Likewise.
30833         (vec_widen_smult_odd_v8hi): Likewise.
30834         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30835         vmuloub rather than call gen_vec_widen_umult_*.
30836         (vec_widen_umult_lo_v16qi): Likewise.
30837         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30838         vmulosb rather than call gen_vec_widen_smult_*.
30839         (vec_widen_smult_lo_v16qi): Likewise.
30840         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30841         rather than call gen_vec_widen_umult_*.
30842         (vec_widen_umult_lo_v8hi): Likewise.
30843         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30844         rather than call gen_vec_widen_smult_*.
30845         (vec_widen_smult_lo_v8hi): Likewise.
30846
30847 2014-01-15  Jeff Law  <law@redhat.com>
30848
30849         PR tree-optimization/59747
30850         * ree.c (find_and_remove_re): Properly handle case where a second
30851         eliminated extension requires widening a copy created for elimination
30852         of a prior extension.
30853         (combine_set_extension): Ensure that the number of hard regs needed
30854         for a destination register does not change when we widen it.
30855
30856 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30857
30858         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30859         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30860         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30861         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30862         (avr-*-rtems*): Likewise.
30863         (bfin*-rtems*): Likewise.
30864         (moxie-*-rtems*): Likewise.
30865         (h8300-*-rtems*): Likewise.
30866         (i[34567]86-*-rtems*): Likewise.
30867         (lm32-*-rtems*): Likewise.
30868         (m32r-*-rtems*): Likewise.
30869         (m68k-*-rtems*): Likewise.
30870         (microblaze*-*-rtems*): Likewise.
30871         (mips*-*-rtems*): Likewise.
30872         (powerpc-*-rtems*): Likewise.
30873         (sh-*-rtems*): Likewise.
30874         (sparc-*-rtems*): Likewise.
30875         (sparc64-*-rtems*): Likewise.
30876         (v850-*-rtems*): Likewise.
30877         (m32c-*-rtems*): Likewise.
30878
30879 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
30880
30881         PR rtl-optimization/59511
30882         * ira.c (ira_init_register_move_cost): Use memory costs for some
30883         cases of register move cost calculations.
30884         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30885         instead of BB frequency.
30886         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30887         * lra-assigns.c (find_hard_regno_for): Ditto.
30888
30889 2014-01-15  Richard Biener  <rguenther@suse.de>
30890
30891         PR tree-optimization/59822
30892         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30893         (vectorizable_load): Use it to hoist defs of uses of invariant
30894         loads out of the loop.
30895
30896 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
30897             Kugan Vivekanandarajah  <kuganv@linaro.org>
30898
30899         PR target/59695
30900         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30901         truncation.
30902
30903 2014-01-15  Richard Biener  <rguenther@suse.de>
30904
30905         PR rtl-optimization/59802
30906         * lcm.c (compute_available): Use inverted postorder to seed
30907         the initial worklist.
30908
30909 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30910
30911         PR target/59803
30912         * config/s390/s390.c (s390_preferred_reload_class): Don't return
30913         ADDR_REGS for invalid symrefs in non-PIC code.
30914
30915 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
30916
30917         PR other/58712
30918         * builtins.c (determine_block_size): Initialize *probable_max_size
30919         even if len_rtx is CONST_INT.
30920
30921 2014-01-14  Andrew Pinski  <apinski@cavium.com>
30922
30923         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30924         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30925         (cortexa53_tunings): Likewise.
30926         (aarch64_sched_issue_rate): New function.
30927         (TARGET_SCHED_ISSUE_RATE): Define.
30928
30929 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30930
30931         * ira-costs.c (find_costs_and_classes): Add missed
30932         ira_init_register_move_cost_if_necessary.
30933
30934 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30935
30936         PR target/59787
30937         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30938
30939 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
30940
30941         PR target/59794
30942         * config/i386/i386.c (type_natural_mode): Add a bool parameter
30943         to indicate if type is used for function return value.  Warn ABI
30944         change if the vector mode isn't available for function return value.
30945         (ix86_function_arg_advance): Pass false to type_natural_mode.
30946         (ix86_function_arg): Likewise.
30947         (ix86_gimplify_va_arg): Likewise.
30948         (function_arg_32): Don't warn ABI change.
30949         (ix86_function_value): Pass true to type_natural_mode.
30950         (ix86_return_in_memory): Likewise.
30951         (ix86_struct_value_rtx): Removed.
30952         (TARGET_STRUCT_VALUE_RTX): Likewise.
30953
30954 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30955
30956         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30957         converting a conditional jump into a conditional return.
30958
30959 2014-01-14  Richard Biener  <rguenther@suse.de>
30960
30961         PR tree-optimization/58921
30962         PR tree-optimization/59006
30963         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30964         hoisting invariant stmts.
30965         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30966         invariant loads on the preheader edge if possible.
30967
30968 2014-01-14  Joey Ye  <joey.ye@arm.com>
30969
30970         * doc/plugin.texi (Building GCC plugins): Update to C++.
30971
30972 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
30973
30974         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30975         (_mm_rcp28_round_ss): Ditto.
30976         (_mm_rsqrt28_round_sd): Ditto.
30977         (_mm_rsqrt28_round_ss): Ditto.
30978         (_mm_rcp28_sd): Ditto.
30979         (_mm_rcp28_ss): Ditto.
30980         (_mm_rsqrt28_sd): Ditto.
30981         (_mm_rsqrt28_ss): Ditto.
30982         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30983         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30984         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30985         (IX86_BUILTIN_RCP28SD): Ditto.
30986         (IX86_BUILTIN_RCP28SS): Ditto.
30987         (IX86_BUILTIN_RSQRT28SD): Ditto.
30988         (IX86_BUILTIN_RSQRT28SS): Ditto.
30989         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30990         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30991         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30992         (ix86_expand_special_args_builtin): Expand new FTYPE.
30993         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30994         (srcp14<mode>): Make insn unary.
30995         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30996         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30997         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30998         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30999         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
31000         Fix rounding: make it SAE only.
31001         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31002         Ditto.
31003         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31004         Ditto.
31005         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
31006         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
31007         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
31008         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
31009         (round_saeonly_mask_scalar_operand4): Ditto.
31010         (round_saeonly_mask_scalar_op3): Ditto.
31011         (round_saeonly_mask_scalar_op4): Ditto.
31012
31013 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31014
31015         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31016         Implement -maltivec=be for vec_insert and vec_extract.
31017
31018 2014-01-10  DJ Delorie  <dj@redhat.com>
31019
31020         * config/msp430/msp430.md (call_internal): Don't allow memory
31021         references with SP as the base register.
31022         (call_value_internal): Likewise.
31023         * config/msp430/constraints.md (Yc): New.  For memory references
31024         that don't use SP as a base register.
31025
31026         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
31027         "an integer without a # prefix"
31028         * config/msp430/msp430.md (epilogue_helper): Use it.
31029
31030 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
31031
31032         PR target/59617
31033         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
31034         AVX512F gather builtins.
31035         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
31036         on gather decls with INTEGER_TYPE masktype.
31037         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
31038         directly into the builtin rather than hoisting it before loop.
31039
31040         PR tree-optimization/59387
31041         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
31042         (scev_const_prop): If folded_casts and type has undefined overflow,
31043         use force_gimple_operand instead of force_gimple_operand_gsi and
31044         for each added stmt if it is assign with
31045         arith_code_with_undefined_signed_overflow, call
31046         rewrite_to_defined_overflow.
31047         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
31048         gimple-fold.h instead.
31049         (arith_code_with_undefined_signed_overflow,
31050         rewrite_to_defined_overflow): Moved to ...
31051         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
31052         rewrite_to_defined_overflow): ... here.  No longer static.
31053         Include gimplify-me.h.
31054         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
31055         rewrite_to_defined_overflow): New prototypes.
31056
31057 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31058
31059         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
31060
31061 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
31062
31063         * builtins.c (get_object_alignment_2): Minor tweak.
31064         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
31065
31066 2014-01-13  Christian Bruel  <christian.bruel@st.com>
31067
31068         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
31069         optimized non constant lengths.
31070
31071 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
31072
31073         PR libgomp/59194
31074         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
31075         load as __atomic_load_N if possible.
31076
31077 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
31078
31079         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
31080         target parameter.
31081         (rs6000_expand_builtin): Adjust call.
31082
31083 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
31084
31085         PR target/58115
31086         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
31087         * config/rs6000/rs6000.c: Include target-globals.h.
31088         (rs6000_set_current_function): Instead of doing target_reinit
31089         unconditionally, use save_target_globals_default_opts and
31090         restore_target_globals.
31091
31092         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
31093         FPSCR.
31094         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
31095         (rs6000_expand_builtin): Handle mffs and mtfsf.
31096         (rs6000_init_builtins): Define mffs and mtfsf.
31097         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
31098         (rs6000_mffs): New pattern.
31099         (rs6000_mtfsf): New pattern.
31100
31101 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
31102
31103         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
31104         Start narrowing with START.  Apply candidate-use pair
31105         and check overall cost in narrowing.
31106         (iv_ca_prune): Pass new argument.
31107
31108 2014-01-10  Jeff Law  <law@redhat.com>
31109
31110         PR middle-end/59743
31111         * ree.c (combine_reaching_defs): Ensure the defining statement
31112         occurs before the extension when optimizing extensions with
31113         different source and destination hard registers.
31114
31115 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
31116
31117         PR ipa/58585
31118         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
31119         vtables into the type inheritance graph.
31120
31121 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31122
31123         PR rtl-optimization/59754
31124         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
31125         modes in the REGNO != REGNO case.
31126
31127 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31128
31129         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
31130
31131 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31132
31133         PR tree-optimization/59745
31134         * tree-predcom.c (tree_predictive_commoning_loop): Call
31135         free_affine_expand_cache if giving up because components is NULL.
31136
31137         * target-globals.c (save_target_globals): Allocate < 4KB structs using
31138         GC in payload of target_globals struct instead of allocating them on
31139         the heap and the larger structs separately using GC.
31140         * target-globals.h (struct target_globals): Make regs, hard_regs,
31141         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
31142         of GTY((skip)) and change type to void *.
31143         (reset_target_globals): Cast loads from those fields to corresponding
31144         types.
31145
31146 2014-01-10  Steve Ellcey  <sellcey@mips.com>
31147
31148         PR plugins/59335
31149         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
31150         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
31151         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
31152
31153 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
31154
31155         PR target/59744
31156         * aarch64-modes.def (CC_Zmode): New flags mode.
31157         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
31158         represents an equality.
31159         (aarch64_get_condition_code): Handle CC_Zmode.
31160         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
31161
31162 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31163
31164         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
31165         extraction in good case.
31166
31167 2014-01-10  Richard Biener  <rguenther@suse.de>
31168
31169         PR tree-optimization/59374
31170         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
31171         checking after SLP discovery.  Mark stmts not participating
31172         in any SLP instance properly.
31173
31174 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31175
31176         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
31177         when handling a SET rtx.
31178
31179 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31180
31181         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
31182         (cortex-a57): Likewise.
31183         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
31184
31185 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31186
31187         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
31188         non-iwmmxt builtins.
31189
31190 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
31191
31192         PR ipa/58252
31193         PR ipa/59226
31194         * ipa-devirt.c record_target_from_binfo): Take as argument
31195         stack of binfos and lookup matching one for virtual inheritance.
31196         (possible_polymorphic_call_targets_1): Update.
31197
31198 2014-01-10  Huacai Chen  <chenhc@lemote.com>
31199
31200         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
31201         kernel strings for Loongson-2E/2F/3A.
31202
31203 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31204
31205         PR middle-end/59670
31206         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
31207         is_gimple_call before calling gimple_call_internal_p.
31208
31209 2014-01-09  Steve Ellcey  <sellcey@mips.com>
31210
31211         * Makefile.in (TREE_FLOW_H): Remove.
31212         (TREE_SSA_H): Add file names from tree-flow.h.
31213         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
31214         * tree.h: Remove tree-flow.h reference.
31215         * hash-table.h: Remove tree-flow.h reference.
31216         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
31217         reference with tree-ssa-loop.h.
31218
31219 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31220
31221         * doc/invoke.texi: Add -maltivec={be,le} options, and document
31222         default element-order behavior for -maltivec.
31223         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
31224         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
31225         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
31226         when targeting big endian, at least for now.
31227         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
31228
31229 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31230
31231         PR middle-end/47735
31232         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
31233         var satisfies use_register_for_decl, just take into account type
31234         alignment, rather than decl alignment.
31235
31236         PR tree-optimization/59622
31237         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
31238         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
31239         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
31240         Don't devirtualize for inplace at all.  For targets.length () == 1,
31241         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
31242
31243 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
31244
31245         * config/i386/i386.md (cpu): Remove the unused btver1.
31246
31247 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
31248
31249         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
31250
31251 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31252
31253         PR target/58115
31254         * tree-core.h (struct target_globals): New forward declaration.
31255         (struct tree_target_option): Add globals field.
31256         * tree.h (TREE_TARGET_GLOBALS): Define.
31257         (prepare_target_option_nodes_for_pch): New prototype.
31258         * target-globals.h (struct target_globals): Define even if
31259         !SWITCHABLE_TARGET.
31260         * tree.c (prepare_target_option_node_for_pch,
31261         prepare_target_option_nodes_for_pch): New functions.
31262         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
31263         * config/i386/i386.c: Include target-globals.h.
31264         (ix86_set_current_function): Instead of doing target_reinit
31265         unconditionally, use save_target_globals_default_opts and
31266         restore_target_globals.
31267
31268 2014-01-09  Richard Biener  <rguenther@suse.de>
31269
31270         PR tree-optimization/59715
31271         * tree-cfg.h (split_critical_edges): Declare.
31272         * tree-cfg.c (split_critical_edges): Export.
31273         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
31274
31275 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31276
31277         * cfgexpand.c (expand_stack_vars): Optionally disable
31278         asan stack protection.
31279         (expand_used_vars): Likewise.
31280         (partition_stack_vars): Likewise.
31281         * asan.c (asan_emit_stack_protection): Optionally disable
31282         after return stack usage.
31283         (instrument_derefs): Optionally disable memory access instrumentation.
31284         (instrument_builtin_call): Likewise.
31285         (instrument_strlen_call): Likewise.
31286         (asan_protect_global): Optionally disable global variables protection.
31287         * doc/invoke.texi: Added doc for new options.
31288         * params.def: Added new options.
31289         * params.h: Likewise.
31290
31291 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31292
31293         PR rtl-optimization/59724
31294         * ifcvt.c (cond_exec_process_if_block): Don't call
31295         flow_find_head_matching_sequence with 0 longest_match.
31296         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
31297         non-active insns if !stop_after.
31298         (try_head_merge_bb): Revert 2014-01-07 changes.
31299
31300 2014-01-08  Jeff Law  <law@redhat.com>
31301
31302         * ree.c (get_sub_rtx): New function, extracted from...
31303         (merge_def_and_ext): Here.
31304         (combine_reaching_defs): Use get_sub_rtx.
31305
31306 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
31307
31308         * cgraph.h (varpool_variable_node): Do not choke on null node.
31309
31310 2014-01-08  Catherine Moore  <clm@codesourcery.com>
31311
31312         * config/mips/mips.md (simple_return): Attempt to use JRC
31313         for microMIPS.
31314         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
31315
31316 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
31317
31318         PR rtl-optimization/59137
31319         * reorg.c (steal_delay_list_from_target): Call update_block for
31320         elided insns.
31321         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
31322
31323 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31324
31325         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
31326         two duplicate entries.
31327
31328 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
31329
31330         Revert:
31331         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
31332
31333         * config/mips/mips.c (mips_truncated_op_cost): New function.
31334         (mips_rtx_costs): Adjust test for BADDU.
31335         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
31336
31337         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
31338
31339         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
31340         (*baddu_si): ...this new pattern.
31341
31342 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
31343
31344         PR ipa/59722
31345         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
31346
31347 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31348
31349         PR middle-end/57748
31350         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
31351         inner_reference_p.
31352         (expand_expr, expand_normal): Adjust.
31353         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
31354         inner_reference_p. Use inner_reference_p to expand inner references.
31355         (store_expr): Adjust.
31356         * cfgexpand.c (expand_call_stmt): Adjust.
31357
31358 2014-01-08  Rong Xu  <xur@google.com>
31359
31360         * gcov-io.c (gcov_var): Move from gcov-io.h.
31361         (gcov_position): Ditto.
31362         (gcov_is_error): Ditto.
31363         (gcov_rewrite): Ditto.
31364         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
31365         only part to libgcc/libgcov.h.
31366
31367 2014-01-08  Marek Polacek  <polacek@redhat.com>
31368
31369         PR middle-end/59669
31370         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
31371
31372 2014-01-08  Marek Polacek  <polacek@redhat.com>
31373
31374         PR sanitizer/59667
31375         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
31376
31377 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
31378
31379         PR rtl-optimization/59649
31380         * stor-layout.c (get_mode_bounds): For BImode return
31381         0 and STORE_FLAG_VALUE.
31382
31383 2014-01-08  Richard Biener  <rguenther@suse.de>
31384
31385         PR middle-end/59630
31386         * gimple.h (is_gimple_builtin_call): Remove.
31387         (gimple_builtin_call_types_compatible_p): New.
31388         (gimple_call_builtin_p): New overload.
31389         * gimple.c (is_gimple_builtin_call): Remove.
31390         (validate_call): Rename to ...
31391         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
31392         check return types.
31393         (validate_type): New static function.
31394         (gimple_call_builtin_p): New overload and adjust.
31395         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
31396         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
31397         (gimple_fold_stmt_to_constant_1): Likewise.
31398         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
31399
31400 2014-01-08  Richard Biener  <rguenther@suse.de>
31401
31402         PR middle-end/59471
31403         * gimplify.c (gimplify_expr): Gimplify register-register type
31404         VIEW_CONVERT_EXPRs to separate stmts.
31405
31406 2014-01-07  Jeff Law  <law@redhat.com>
31407
31408         PR middle-end/53623
31409         * ree.c (combine_set_extension): Handle case where source
31410         and destination registers in an extension insn are different.
31411         (combine_reaching_defs): Allow source and destination registers
31412         in extension to be different under limited circumstances.
31413         (add_removable_extension): Remove restriction that the
31414         source and destination registers in the extension are the same.
31415         (find_and_remove_re): Emit a copy from the extension's
31416         destination to its source after the defining insn if
31417         the source and destination registers are different.
31418
31419         PR middle-end/59285
31420         * ifcvt.c (merge_if_block): If we are merging a block with more than
31421         one successor with a block with no successors, remove any BARRIER
31422         after the second block.
31423
31424 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
31425
31426         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
31427
31428 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
31429
31430         PR target/59652
31431         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
31432         for 14-bit register offsets when INT14_OK_STRICT is false.
31433
31434 2014-01-07  Roland Stigge  <stigge@antcom.de>
31435             Michael Meissner  <meissner@linux.vnet.ibm.com>
31436
31437         PR 57386/target
31438         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
31439         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
31440
31441 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
31442
31443         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
31444         -mcpu.
31445
31446 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
31447
31448         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
31449         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
31450         rtx is const0_rtx or not.
31451
31452 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
31453
31454         PR target/58115
31455         * target-globals.c (save_target_globals): Remove this_fn_optab
31456         handling.
31457         * toplev.c: Include optabs.h.
31458         (target_reinit): Temporarily restore the global options if another
31459         set of options are in force.
31460
31461 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
31462
31463         PR rtl-optimization/58668
31464         * cfgcleanup.c (flow_find_cross_jump): Don't count
31465         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
31466         to determine what is counted.
31467         (flow_find_head_matching_sequence): Use active_insn_p to determine
31468         what is counted.
31469         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
31470         counting change.
31471         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
31472         determine what is counted.
31473
31474         PR tree-optimization/59643
31475         * tree-predcom.c (split_data_refs_to_components): If one dr is
31476         read and one write, determine_offset fails and the write isn't
31477         in the bad component, just put the read into the bad component.
31478
31479 2014-01-07  Mike Stump  <mikestump@comcast.net>
31480             Jakub Jelinek  <jakub@redhat.com>
31481
31482         PR pch/59436
31483         * tree-core.h (struct tree_optimization_option): Change optabs
31484         type from unsigned char * to void *.
31485         * optabs.c (init_tree_optimization_optabs): Adjust
31486         TREE_OPTIMIZATION_OPTABS initialization.
31487
31488 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
31489
31490         PR target/59644
31491         * config/i386/i386.h (struct machine_function): Add
31492         no_drap_save_restore field.
31493         * config/i386/i386.c (ix86_save_reg): Use
31494         !cfun->machine->no_drap_save_restore instead of
31495         crtl->stack_realign_needed.
31496         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
31497         this function clears frame_pointer_needed.  Set
31498         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
31499         and DRAP reg is needed.
31500
31501 2014-01-06  Marek Polacek  <polacek@redhat.com>
31502
31503         PR c/57773
31504         * doc/implement-c.texi: Mention that other integer types are
31505         permitted as bit-field types in strictly conforming mode.
31506
31507 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
31508
31509         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
31510         is newly allocated.
31511
31512 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
31513
31514         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
31515
31516 2014-01-06  Martin Jambor  <mjambor@suse.cz>
31517
31518         PR ipa/59008
31519         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
31520         to int.
31521         * ipa-prop.c (ipa_print_node_params): Fix indentation.
31522
31523 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31524
31525         PR debug/59350
31526         PR debug/59510
31527         * var-tracking.c (add_stores): Preserve the value of the source even if
31528         we don't record the store.
31529
31530 2014-01-06  Terry Guo  <terry.guo@arm.com>
31531
31532         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
31533
31534 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
31535
31536         PR bootstrap/59541
31537         * config/darwin.c (darwin_function_section): Adjust return values to
31538         correspond to optimisation changes made in r206070.
31539
31540 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
31541
31542         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
31543         from prefetch_block tune setting.
31544         (nocona_cost): Correct size of prefetch block to 64.
31545
31546 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31547
31548         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
31549         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
31550         used to save the static chain register in the computation of the offset
31551         from which the FP registers need to be restored.
31552
31553 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
31554
31555         PR tree-optimization/59519
31556         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
31557         ICE if get_current_def (current_new_name) is already non-NULL, as long
31558         as it is a phi result of some other phi in *new_exit_bb that has
31559         the same argument.
31560
31561         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
31562         or vmovdqu* for misaligned_operand.
31563         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
31564         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
31565         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
31566         aligned_mem for AVX512F masked aligned load and store builtins and for
31567         non-temporal moves.
31568
31569 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
31570
31571         PR tree-optimization/59651
31572         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31573         Address range for negative step should be added by TYPE_SIZE_UNIT.
31574
31575 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
31576
31577         * config/m68k/m68k.c (handle_move_double): Handle pushes with
31578         overlapping registers also for registers other than the stack pointer.
31579
31580 2014-01-03  Marek Polacek  <polacek@redhat.com>
31581
31582         PR other/59661
31583         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
31584         __builtin_FILE.
31585
31586 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
31587
31588         PR target/59625
31589         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
31590         asm goto as jump.
31591
31592         * config/i386/i386.md (MODE_SIZE): New mode attribute.
31593         (push splitter): Use <P:MODE_SIZE> instead of
31594         GET_MODE_SIZE (<P:MODE>mode).
31595         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
31596         (mov -1, reg peephole2): Likewise.
31597         * config/i386/sse.md (*mov<mode>_internal,
31598         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
31599         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
31600         *<code><mode>3, *andnot<mode>3<mask_name>,
31601         <mask_codefor><code><mode>3<mask_name>): Likewise.
31602         * config/i386/subst.md (mask_mode512bit_condition,
31603         sd_mask_mode512bit_condition): Likewise.
31604
31605 2014-01-02  Xinliang David Li  <davidxl@google.com>
31606
31607         PR tree-optimization/59303
31608         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
31609         (dump_predicates): Better output format.
31610         (pred_equal_p): New function.
31611         (is_neq_relop_p): Ditto.
31612         (is_neq_zero_form_p): Ditto.
31613         (pred_expr_equal_p): Ditto.
31614         (pred_neg_p): Ditto.
31615         (simplify_pred): Ditto.
31616         (simplify_preds_2): Ditto.
31617         (simplify_preds_3): Ditto.
31618         (simplify_preds_4): Ditto.
31619         (simplify_preds): Ditto.
31620         (push_pred): Ditto.
31621         (push_to_worklist): Ditto.
31622         (get_pred_info_from_cmp): Ditto.
31623         (is_degenerated_phi): Ditto.
31624         (normalize_one_pred_1): Ditto.
31625         (normalize_one_pred): Ditto.
31626         (normalize_one_pred_chain): Ditto.
31627         (normalize_preds): Ditto.
31628         (normalize_cond_1): Remove function.
31629         (normalize_cond): Ditto.
31630         (is_gcond_subset_of): Ditto.
31631         (is_subset_of_any): Ditto.
31632         (is_or_set_subset_of): Ditto.
31633         (is_and_set_subset_of): Ditto.
31634         (is_norm_cond_subset_of): Ditto.
31635         (pred_chain_length_cmp): Ditto.
31636         (convert_control_dep_chain_into_preds): Type change.
31637         (find_predicates): Ditto.
31638         (find_def_preds): Ditto.
31639         (destroy_predicates_vecs): Ditto.
31640         (find_matching_predicates_in_rest_chains): Ditto.
31641         (use_pred_not_overlap_with_undef_path_pred): Ditto.
31642         (is_pred_expr_subset): Ditto.
31643         (is_pred_chain_subset_of): Ditto.
31644         (is_included_in): Ditto.
31645         (is_superset_of): Ditto.
31646
31647 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31648
31649         Update copyright years.
31650
31651 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31652
31653         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
31654         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
31655         config/arc/arc.md, config/arc/arc.opt,
31656         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
31657         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
31658         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
31659         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
31660         config/linux-protos.h, config/linux.c, config/winnt-c.c,
31661         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
31662         vtable-verify.c, vtable-verify.h: Use the standard form for the
31663         copyright notice.
31664
31665 2014-01-02  Tobias Burnus  <burnus@net-b.de>
31666
31667         * gcc.c (process_command): Update copyright notice dates.
31668         * gcov-dump.c: Ditto.
31669         * gcov.c: Ditto.
31670         * doc/cpp.texi: Bump @copying's copyright year.
31671         * doc/cppinternals.texi: Ditto.
31672         * doc/gcc.texi: Ditto.
31673         * doc/gccint.texi: Ditto.
31674         * doc/gcov.texi: Ditto.
31675         * doc/install.texi: Ditto.
31676         * doc/invoke.texi: Ditto.
31677
31678 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31679
31680         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
31681
31682 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
31683
31684         * config/i386/sse.md (*mov<mode>_internal): Guard
31685         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
31686
31687         PR rtl-optimization/59647
31688         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
31689         new_rtx into UNSIGNED_FLOAT rtxes.
31690 \f
31691 Copyright (C) 2014 Free Software Foundation, Inc.
31692
31693 Copying and distribution of this file, with or without modification,
31694 are permitted in any medium without royalty provided the copyright
31695 notice and this notice are preserved.