5d859468d6535f88a94f9a0ef0c8c095102fe498
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2
3         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4         to neon_load1_1reg<q>.
5
6 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
7
8         PR debug/63284
9         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
10         if there are only debug stmts after the noreturn call, instead
11         remove the debug stmts.
12
13 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
14
15         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
16         (odr_types_equivalent_p): Use pair hash.
17         (odr_subtypes_equivalent_p): Likewise, do structural compare
18         on ODR types that may be mismatched.
19         (warn_odr): Support warning when only one field is given.
20         (odr_types_equivalent_p): Strenghten comparsions made;
21         support VOIDtype.
22         (add_type_duplicate): Update VISITED hash set.
23
24 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25
26         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
27         Enable selection of 'posix' or no thread model.
28
29 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
30
31         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
32         when architecture is older than ARMv7.
33
34 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
35
36         PR target/61853
37         * config/pa/pa.c (pa_function_value): Directly handle aggregates
38         that fit exactly in a word or double word.
39
40 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
41
42         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
43         zmm/k regs support.
44
45 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
46             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
47             Anna Tikhonova  <anna.tikhonova@intel.com>
48             Ilya Tocar  <ilya.tocar@intel.com>
49             Andrey Turetskiy  <andrey.turetskiy@intel.com>
50             Ilya Verbin  <ilya.verbin@intel.com>
51             Kirill Yukhin  <kirill.yukhin@intel.com>
52             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
53
54         * config/i386/i386.c
55         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
56         * config/i386/sse.md
57         (define_mode_iterator VI48F_256): New.
58         (define_mode_attr extract_type): Ditto.
59         (define_mode_attr extract_suf): Ditto.
60         (define_mode_iterator AVX512_VEC): Ditto.
61         (define_expand
62         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
63         AVX512_VEC.
64         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
65         (define_insn
66         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
67         Ditto.
68         (define_mode_attr extract_type_2): Ditto.
69         (define_mode_attr extract_suf_2): Ditto.
70         (define_mode_iterator AVX512_VEC_2): Ditto.
71         (define_expand
72         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
73         AVX512_VEC_2 mode iterator.
74         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
75         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
76         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
77         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
78         (define_split for V16FI mode): Ditto.
79         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
80         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
81         (define_split for VI8F_256 mode): Ditto.
82         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
83         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
84         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
85         (define_split for VI4F_256 mode): Ditto.
86         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
87         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
88         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
89         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
90         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
91         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
92         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
93         Update `type' attribute, remove explicit `memory' attribute calculation.
94
95 2014-09-16  Kito Cheng  <kito@0xlab.org>
96
97         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
98         ira_spilled_reg_stack_slots_num if using lra.
99         (do_reload): Remove release ira_spilled_reg_stack_slots part.
100         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
101         make sure not using lra.
102         (ira_reuse_stack_slot): Likewise.
103         (ira_mark_new_stack_slot): Likewise.
104
105 2014-09-15  Andi Kleen  <ak@linux.intel.com>
106
107         * function.c (allocate_struct_function): Force
108         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
109         profiling is disabled.
110
111 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
112     
113         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
114         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
115         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
116         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
117         macro with statically checked member functions.
118         * rtl.h (rtx_insn::deleted): New method.
119         (rtx_insn::set_deleted): Likewise.
120         (rtx_insn::set_undeleted): Likewise.
121         (INSN_DELETED_P): Remove.
122
123 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
124
125         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
126         result of emit_jump_insn_before to a new variable.
127         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
128         (mark_jump_label_1): Likewise.
129         (mark_jump_label_asm): Likewise.
130         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
131         * rtl.h (mark_jump_label): Adjust.
132
133 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
134
135         * Makefile.in (dg_target_exps): Remove.
136         (check_gcc_parallelize): Change to just an upper bound number.
137         (check-%-subtargets): Always print the non-parallelized goals.
138         (check_p_vars, check_p_comma, check_p_subwork): Remove.
139         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
140         check_p_numbers3, check_p_numbers4, check_p_numbers5,
141         check_p_numbers6): New variables.
142         (check_p_numbers): Set to sequence from 1 to 9999.
143         (check_p_subdirs): Set to sequence from 1 to minimum of
144         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
145         or 128.
146         (check-%, check-parallel-%): Rewritten so that for parallelized
147         testing each job runs all the *.exp files, with
148         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
149
150 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
151
152         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
153         rtx to rtx_insn *.
154         (arc_sets_cc_p): Likewise.
155         * config/arc/arc.c (arc_print_operand): Use methods of
156         "final_sequence" for clarity, and to enable strengthening of
157         locals "jump" and "delay" from rtx to rtx_insn *.
158         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
159         rtx_insn *; use method of rtx_sequence for typesafety.
160         (arc_get_insn_variants): Use insn method of rtx_sequence for
161         typesafety.
162         (arc_pad_return): Likewise.
163         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
164         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
165         dyn_cast to rtx_sequence *, using insn method for typesafety.
166         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
167         rtx_sequence * and use insn method when invoking get_attr_length.
168         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
169         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
170         rtx_sequence *, introducing a local "seq", using its insn method
171         from typesafety and clarity.
172         (add_sched_insns_for_speculation): Strengthen local "next" from
173         rtx to rtx_insn *.
174         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
175         (predicate_insn): Likewise.
176         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
177         second param.
178         * config/cris/cris.c (cris_notice_update_cc): Likewise.
179         * config/epiphany/epiphany-protos.h
180         (extern void epiphany_insert_mode_switch_use): Likewise for param
181         "insn".
182         (get_attr_sched_use_fpu): Likewise for param.
183         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
184         Likewise for param "insn".
185         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
186         param "insn" of "target_insert_mode_switch_use" callback.
187         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
188         (frv_issues_to_branch_unit_p): Likewise.
189         (frv_pack_insn_p): Likewise.
190         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
191         const rtx * (i.e. mutable rtx_def * const *) to
192         rtx_insn * const *.
193         * config/i386/i386-protos.h (standard_sse_constant_opcode):
194         Strengthen first param from rtx to rtx_insn *.
195         (output_fix_trunc): Likewise.
196         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
197         (output_fix_trunc): Likewise.
198         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
199         local "insn".
200         (min_insn_size): Likewise for param "insn".
201         (get_mem_group): Likewise.
202         (is_cmp): Likewise.
203         (get_insn_path): Likewise.
204         (get_insn_group): Likewise.
205         (count_num_restricted): Likewise.
206         (fits_dispatch_window): Likewise.
207         (add_insn_window): Likewise.
208         (add_to_dispatch_window): Likewise.
209         (debug_insn_dispatch_info_file): Likewise.
210         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
211         first param.
212         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
213         "cmp" and local "prev".
214         (m32c_output_compare): Likewise for param "insn".
215         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
216         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
217         (define_predicate "large_insn_p"): Likewise.
218         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
219         param from rtx to rtx_insn *.
220         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
221         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
222         (m68k_sched_attr_size): Likewise.
223         (sched_get_opxy_mem_type): Likewise for param "insn".
224         (m68k_sched_attr_op_mem): Likewise.
225         (sched_mem_operand_p): Likewise.
226         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
227         * config/mep/mep.c (mep_multi_slot): Likewise.
228         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
229         first param.
230         (mips_sync_loop_insns): Likewise.
231         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
232         method of "final_sequence" for typesafety.
233         (mips_process_sync_loop): Strengthen param "insn" from rtx to
234         rtx_insn *.
235         (mips_output_sync_loop): Likewise.
236         (mips_sync_loop_insns): Likewise.
237         (mips_74k_agen_init): Likewise.
238         (mips_sched_init): Use NULL rather than NULL_RTX when working with
239         insns.
240         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
241         Strengthen param "insn" from rtx to rtx_insn *.
242         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
243         local "insn".
244         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
245         param.
246         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
247         "insn".  Use method of rtx_sequence for typesafety.
248         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
249         rtx_insn *.
250         (branch_needs_nop_p): Likewise.
251         (use_skip_p): Likewise.
252         (pa_insn_refs_are_delayed): Likewise.
253         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
254         for locals "insn", "ninsn".
255         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
256         "insn".
257         (is_cracked_insn): Likewise.
258         (is_branch_slot_insn): Likewise.
259         (is_nonpipeline_insn): Likewise.
260         (insn_terminates_group_p): Likewise.
261         (insn_must_be_first_in_group): Likewise.
262         (insn_must_be_last_in_group): Likewise.
263         (force_new_group): Likewise for param "next_insn".
264         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
265         "insn".
266         (s390_sched_score): Likewise.
267         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
268         (rtx sfunc_uses_reg): Likewise for sole param.
269         * config/sh/sh.c (sh_print_operand): Use insn method of
270         final_sequence for typesafety.
271         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
272         Use insn method of final_sequence for typesafety.
273         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
274         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
275         for param.
276         (eligible_for_return_delay): Likewise.
277         (eligible_for_sibcall_delay): Likewise.
278         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
279         (eligible_for_return_delay): Likewise.
280         (eligible_for_sibcall_delay): Likewise.
281         * config/stormy16/stormy16-protos.h
282         (xstormy16_output_cbranch_hi): Likewise for final param.
283         (xstormy16_output_cbranch_si): Likewise.
284         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
285         (xstormy16_output_cbranch_si): Likewise.
286         * config/v850/v850-protos.h (notice_update_cc): Likewise.
287         * config/v850/v850.c (notice_update_cc): Likewise.
288
289         * final.c (get_attr_length_1): Strengthen param "insn" and param
290         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
291         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
292         (get_attr_min_length): Likewise.
293         (shorten_branches): Likewise for signature of locals "length_fun"
294         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
295         from a checked cast and use its methods for clarity and to enable
296         strengthening local "inner_insn" from rtx to rtx_insn *.
297         * genattr.c (gen_attr): When writing out the prototypes of the
298         various generated "get_attr_" functions, strengthen the params of
299         the non-const functions from rtx to rtx_insn *.
300         Similarly, strengthen the params of insn_default_length,
301         insn_min_length, insn_variable_length_p, insn_current_length.
302         (main): Similarly, strengthen the param of num_delay_slots,
303         internal_dfa_insn_code, insn_default_latency, bypass_p,
304         insn_latency, min_issue_delay, print_reservation,
305         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
306         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
307         to hook_int_rtx_insn_unreachable.
308         * genattrtab.c (write_attr_get): When writing out the generated
309         "get_attr_" functions, strengthen the param "insn" from rtx to
310         rtx_insn *, eliminating a checked cast.
311         (make_automaton_attrs): When writing out prototypes of
312         "internal_dfa_insn_code_", "insn_default_latency_" functions
313         and the "internal_dfa_insn_code" and "insn_default_latency"
314         callbacks, strengthen their params from rtx to rtx_insn *
315         * genautomata.c (output_internal_insn_code_evaluation): When
316         writing out code, add a checked cast from rtx to rtx_insn * when
317         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
318         (output_dfa_insn_code_func): Strengthen param of generated
319         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
320         (output_trans_func): Likewise for generated function
321         "state_transition".
322         (output_internal_insn_latency_func): When writing out generated
323         function "internal_insn_latency", rename params from "insn" and
324         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
325         locals "insn" and "insn2" as rtx_insn * with checked casts once
326         we've proven that we're not dealing with const0_rtx.
327         (output_insn_latency_func):  Strengthen param of generated
328         function "insn_latency" from rtx to rtx_insn *.
329         (output_print_reservation_func): Likewise for generated function
330         "print_reservation".
331         (output_insn_has_dfa_reservation_p): Likewise for generated
332         function "insn_has_dfa_reservation_p".
333         * hooks.c (hook_int_rtx_unreachable): Rename to...
334         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
335         from rtx to rtx_insn *.
336         * hooks.h (hook_int_rtx_unreachable): Likewise.
337         (extern int hook_int_rtx_insn_unreachable): Likewise.
338         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
339         (get_attr_min_length): Likewise.
340         * recog.c (get_enabled_alternatives): Likewise.
341         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
342         * reorg.c (find_end_label): Introduce local rtx "pat" and
343         strengthen local "insn" from rtx to rtx_insn *.
344         (redundant_insn): Use insn method of "seq" rather than element for
345         typesafety; strengthen local "control" from rtx to rtx_insn *.
346         * resource.c (mark_referenced_resources): Add checked cast to
347         rtx_insn * within INSN/JUMP_INSN case.
348         (mark_set_resources): Likewise.
349         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
350         rtx to rtx_insn *.
351
352 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
353
354         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
355         param "label" from rtx to rtx_insn *.
356         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
357         and local "op".
358         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
359         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
360         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
361         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
362         * final.c (default_label_align_after_barrier_max_skip): Strengthen
363         param from rtx to rtx_insn *.
364         (default_loop_align_max_skip): Likewise.
365         (default_label_align_max_skip): Likewise.
366         (default_jump_align_max_skip): Likewise.
367         * target.def (label_align_after_barrier_max_skip): Likewise.
368         (loop_align_max_skip): Likewise.
369         (label_align_max_skip): Likewise.
370         (jump_align_max_skip): Likewise.
371         * targhooks.h (default_label_align_after_barrier_max_skip):
372         Likewise.
373         (default_loop_align_max_skip): Likewise.
374         (default_label_align_max_skip): Likewise.
375         (default_jump_align_max_skip): Likewise.
376
377 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
378
379         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
380         from const_rtx to const rtx_insn *.  Update union members from rtx
381         to rtx_insn *.
382         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
383         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
384         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
385         strengthen both params from const_rtx to const rtx_insn *.
386         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
387         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
388         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
389         rtx_insn *.
390         * target.def (can_follow_jump): Strengthen both params from
391         const_rtx to const rtx_insn *, and update default implementation
392         from hook_bool_const_rtx_const_rtx_true to
393         hook_bool_const_rtx_insn_const_rtx_insn_true.
394
395 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
396
397         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
398         "insn" from rtx to rtx_insn *.
399         * sched-int.h (deps_start_bb): Likewise for 2nd param.
400
401 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
402             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
403             Anna Tikhonova  <anna.tikhonova@intel.com>
404             Ilya Tocar  <ilya.tocar@intel.com>
405             Andrey Turetskiy  <andrey.turetskiy@intel.com>
406             Ilya Verbin  <ilya.verbin@intel.com>
407             Kirill Yukhin  <kirill.yukhin@intel.com>
408             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
409
410         * config/i386/sse.md
411         (define_insn "vcvtph2ps<mask_name>"): Add masking.
412         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
413         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
414         (define_expand "vcvtps2ph_mask"): New.
415         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
416         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
417         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
418
419 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
420             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
421             Anna Tikhonova  <anna.tikhonova@intel.com>
422             Ilya Tocar  <ilya.tocar@intel.com>
423             Andrey Turetskiy  <andrey.turetskiy@intel.com>
424             Ilya Verbin  <ilya.verbin@intel.com>
425             Kirill Yukhin  <kirill.yukhin@intel.com>
426             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
427
428         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
429         New.
430         (define_mode_iterator VI24_AVX512BW_1): Ditto.
431         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
432         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
433         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
434         also for TARGET_AVX512VL.
435         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
436
437 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
438
439         * doc/install.texi (Options specification): add 
440         --disable-libsanitizer item.
441
442 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
443             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
444
445         PR target/61407
446         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
447         and above.
448         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
449         kernel version check to avoid incrementing it after every major OS X
450         release.
451         (darwin_default_min_version): Avoid static memory buffer.
452
453 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
454
455         * tree.c (need_assembler_name_p): Store C++ type mangling only
456         for aggregates.
457
458 2014-09-13  Marek Polacek  <polacek@redhat.com>
459
460         * tree.c (protected_set_expr_location): Don't check whether T is
461         non-null here.
462
463 2014-09-12  DJ Delorie  <dj@redhat.com>
464
465         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
466         (extend_and_shift1_hipsi2): Likewise.
467         (extend_and_shift2_hipsi2): Likewise.
468
469 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
470
471         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
472         with NULL when dealing with an insn.
473         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
474         from rtx to rtx_insn *.
475         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
476         const_rtx to const rtx_insn *.
477         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
478
479 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
480
481         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
482         assert.
483
484 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
485
486         * target.def (libgcc_floating_mode_supported_p): New hook.
487         * targhooks.c (default_libgcc_floating_mode_supported_p): New
488         function.
489         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
490         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
491         (LIBGCC2_HAS_TF_MODE): Remove.
492         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
493         * doc/tm.texi: Regenerate.
494         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
495         machine mode.
496         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
497         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
498         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
499         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
500         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
501         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
502         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
503         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
504         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
505         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
506         function.
507         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
508         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
509         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
510         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
511         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
512         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
513         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
514         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
515         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
516         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
517         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
518         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
519         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
520         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
521         Remove.
522         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
523         New macro.
524         (ia64_libgcc_floating_mode_supported_p): New function.
525         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
526         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
527         (IA64_NO_LIBGCC_TFMODE): Define.
528         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
529         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
530         macro.
531         (pdp11_scalar_mode_supported_p): New function.
532         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
533         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
534
535 2014-09-12  Richard Biener  <rguenther@suse.de>
536
537         PR middle-end/63237
538         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
539
540 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
541
542         * tree.c (integer_each_onep): New function.
543         * tree.h (integer_each_onep): Declare it.
544         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
545         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
546         (X & 1) == 0 for vector and complex.
547
548 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
549
550         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
551         for A57.
552         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
553         cost to spilling from integer to FP registers.
554
555 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
556
557         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
558         move handling.
559         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
560         are now handled correctly.
561
562 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
563
564         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
565         handling of CALLER_SAVE_REGS and POINTER_REGS.
566
567 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
568
569         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
570         the number of hard registers.
571
572 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
573             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
574             Anna Tikhonova  <anna.tikhonova@intel.com>
575             Ilya Tocar  <ilya.tocar@intel.com>
576             Andrey Turetskiy  <andrey.turetskiy@intel.com>
577             Ilya Verbin  <ilya.verbin@intel.com>
578             Kirill Yukhin  <kirill.yukhin@intel.com>
579             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
580
581         * config/i386/sse.md
582         (define_mode_iterator VI48_AVX512VL): New.
583         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
584         "avx512f_vternlog<mode>_maskz" and update mode iterator.
585         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
586         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
587         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
588         "avx512f_vternlog<mode>_mask" and update mode iterator.
589         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
590         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
591         iterator.
592         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
593         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
594         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
595         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
596         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
597         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
598
599 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
600             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
601             Anna Tikhonova  <anna.tikhonova@intel.com>
602             Ilya Tocar  <ilya.tocar@intel.com>
603             Andrey Turetskiy  <andrey.turetskiy@intel.com>
604             Ilya Verbin  <ilya.verbin@intel.com>
605             Kirill Yukhin  <kirill.yukhin@intel.com>
606             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
607
608         * config/i386/sse.md (VI128_256): Delete.
609         (define_mode_iterator VI124_256): New.
610         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
611         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
612         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
613         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
614         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
615         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
616         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
617         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
618         iterator.
619         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
620         in presence of AVX-512.
621
622 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
623             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
624             Anna Tikhonova  <anna.tikhonova@intel.com>
625             Ilya Tocar  <ilya.tocar@intel.com>
626             Andrey Turetskiy  <andrey.turetskiy@intel.com>
627             Ilya Verbin  <ilya.verbin@intel.com>
628             Kirill Yukhin  <kirill.yukhin@intel.com>
629             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
630
631         * config/i386/sse.md
632         (define_expand "<avx512>_gathersi<mode>"): Rename from
633         "avx512f_gathersi<mode>".
634         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
635         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
636         (define_expand "<avx512>_gatherdi<mode>"): Rename from
637         "avx512f_gatherdi<mode>".
638         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
639         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
640         wide versions.
641         (define_expand "<avx512>_scattersi<mode>"): Rename from
642         "avx512f_scattersi<mode>".
643         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
644         (define_expand "<avx512>_scatterdi<mode>"): Rename from
645         "avx512f_scatterdi<mode>".
646         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
647
648 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
649
650         * ira.h (ira_finish_once): Delete.
651         * ira-int.h (target_ira_int::~target_ira_int): Declare.
652         (target_ira_int::free_ira_costs): Likewise.
653         (target_ira_int::free_register_move_costs): Likewise.
654         (ira_finish_costs_once): Delete.
655         * ira.c (free_register_move_costs): Replace with...
656         (target_ira_int::free_register_move_costs): ...this new function.
657         (target_ira_int::~target_ira_int): Define.
658         (ira_init): Call free_register_move_costs as a member function rather
659         than a global function.
660         (ira_finish_once): Delete.
661         * ira-costs.c (free_ira_costs): Replace with...
662         (target_ira_int::free_ira_costs): ...this new function.
663         (ira_init_costs): Call free_ira_costs as a member function rather
664         than a global function.
665         (ira_finish_costs_once): Delete.
666         * target-globals.c (target_globals::~target_globals): Call the
667         target_ira_int destructor.
668         * toplev.c: Include lra.h.
669         (finalize): Call lra_finish_once rather than ira_finish_once.
670
671 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
672
673         * common.opt (flto-odr-type-merging): New flag.
674         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
675         (types_same_for_odr): Likewise.
676         (odr_subtypes_equivalent_p): Likewise.
677         (add_type_duplicate): Do not walk type variants.
678         (register_odr_type): New function.
679         * ipa-utils.h (register_odr_type): Declare.
680         (odr_type_p): New function.
681         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
682         TYPE_DECLs
683         * doc/invoke.texi (-flto-odr-type-merging): Document.
684         * tree.c (need_assembler_name_p): Compute ODR names when asked
685         for it.
686         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
687
688 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
689
690         PR target/63228
691         * config/i386/i386.c (ix86_option_override_internal): Also turn
692         off OPTION_MASK_ABI_X32 for -m16.
693
694 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
695
696         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
697         GPR instead of P.
698
699 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
700
701         PR target/58757
702         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
703         Directly forward to __*_DENORM_MIN__.
704
705 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
706
707         * rtl.h (LABEL_REF_LABEL): New macro.
708
709         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
710         of XEXP (, 0), where we know that we have a LABEL_REF.
711         * cfgbuild.c (make_edges): Likewise.
712         (purge_dead_tablejump_edges): Likewise.
713         * cfgexpand.c (convert_debug_memory_address): Likewise.
714         * cfgrtl.c (patch_jump_insn): Likewise.
715         * combine.c (distribute_notes): Likewise.
716         * cse.c (hash_rtx_cb): Likewise.
717         (exp_equiv_p): Likewise.
718         (fold_rtx): Likewise.
719         (check_for_label_ref): Likewise.
720         * cselib.c (rtx_equal_for_cselib_1): Likewise.
721         (cselib_hash_rtx): Likewise.
722         * emit-rtl.c (mark_label_nuses): Likewise.
723         * explow.c (convert_memory_address_addr_space): Likewise.
724         * final.c (output_asm_label): Likewise.
725         (output_addr_const): Likewise.
726         * gcse.c (add_label_notes): Likewise.
727         * genconfig.c (walk_insn_part): Likewise.
728         * genrecog.c (validate_pattern): Likewise.
729         * ifcvt.c (cond_exec_get_condition): Likewise.
730         (noce_emit_store_flag): Likewise.
731         (noce_get_alt_condition): Likewise.
732         (noce_get_condition): Likewise.
733         * jump.c (maybe_propagate_label_ref): Likewise.
734         (mark_jump_label_1): Likewise.
735         (redirect_exp_1): Likewise.
736         (rtx_renumbered_equal_p): Likewise.
737         * lra-constraints.c (operands_match_p): Likewise.
738         * reload.c (operands_match_p): Likewise.
739         (find_reloads): Likewise.
740         * reload1.c (set_label_offsets): Likewise.
741         * reorg.c (get_branch_condition): Likewise.
742         * rtl.c (rtx_equal_p_cb): Likewise.
743         (rtx_equal_p): Likewise.
744         * rtlanal.c (reg_mentioned_p): Likewise.
745         (rtx_referenced_p): Likewise.
746         (get_condition): Likewise.
747         * sched-vis.c (print_value): Likewise.
748         * varasm.c (const_hash_1): Likewise.
749         (compare_constant): Likewise.
750         (const_rtx_hash_1): Likewise.
751         (output_constant_pool_1): Likewise.
752
753 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
754
755         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
756         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
757         instead of minus.
758         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
759         cr6_test_for_lt_reverse): Ditto.
760
761 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
762
763         PR c++/61489
764         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
765
766 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
767
768         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
769         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
770         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
771         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
772         Delete.
773
774         (aarch64_fold_builtin): Remove all reinterpret cases.
775
776         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
777
778         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
779
780         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
781         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
782         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
783         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
784         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
785         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
786         aarch64_reinterpretv2df<mode>): Delete.
787
788         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
789
790         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
791         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
792         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
793         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
794         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
795         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
796         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
797         vreinterpret_u32_f64): Use cast.
798
799         * config/aarch64/iterators.md (VD_RE): Delete.
800
801 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
802
803         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
804         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
805         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
806         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
807         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
808         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
809         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
810         Replace inline assembler with __aarch64_vset_lane_any.
811
812 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
813
814         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
815         types.
816         (vmull_high_lane_s32): Likewise.
817         (vmull_high_lane_u16): Likewise.
818         (vmull_high_lane_u32): Likewise.
819
820 2014-09-11  Jason Merrill  <jason@redhat.com>
821
822         PR c++/58678
823         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
824
825 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
826
827         PR target/63223
828         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
829         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
830         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
831
832 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
833             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
834             Anna Tikhonova  <anna.tikhonova@intel.com>
835             Ilya Tocar  <ilya.tocar@intel.com>
836             Andrey Turetskiy  <andrey.turetskiy@intel.com>
837             Ilya Verbin  <ilya.verbin@intel.com>
838             Kirill Yukhin  <kirill.yukhin@intel.com>
839             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
840
841         * config/i386/sse.md
842         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
843         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
844         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
845         New.
846         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
847         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
848         iterator.
849         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
850         New.
851         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
852         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
853         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
854         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
855         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
856         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
857         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
858         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
859         iterator.
860         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
861         New.
862         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
863         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
864         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
865
866 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
867
868         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
869         to access removed nodes.
870
871 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
872
873         PR tree-optimization/63186
874         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
875         (mark_nonssa_use): Likewise.
876         (verify_non_ssa_vars): Verify all header blocks for label
877         definitions.
878
879 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
880             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
881             Anna Tikhonova  <anna.tikhonova@intel.com>
882             Ilya Tocar  <ilya.tocar@intel.com>
883             Andrey Turetskiy  <andrey.turetskiy@intel.com>
884             Ilya Verbin  <ilya.verbin@intel.com>
885             Kirill Yukhin  <kirill.yukhin@intel.com>
886             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
887
888         * config/i386/sse.md
889         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
890         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
891         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
892         "<avx2_avx512f>_permvar<mode><mask_name>".
893         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
894         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
895         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
896         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
897         Ditto.
898         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
899         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
900         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
901         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
902
903 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
904
905         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
906         V2DF, V4SF, DF, and DI modes.
907         (vsx_fmav2df2): Likewise.
908         (vsx_float_fix_<mode>2): Likewise.
909         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
910
911 2014-09-10  Xinliang David Li  <davidxl@google.com>
912
913         PR target/63209
914         * config/arm/arm.md (movcond_addsi): Handle case where source
915         and target operands are the same.
916
917 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
918
919         * final.c (this_is_asm_operands): Strengthen this variable from
920         rtx to const rtx_insn *.
921         * output.h (this_is_asm_operands): Likewise.
922         * rtl-error.c (location_for_asm): Strengthen param "insn" from
923         const_rtx to const rtx_insn *.
924         (diagnostic_for_asm): Likewise.
925         * rtl-error.h (error_for_asm): Likewise.
926         (warning_for_asm): Likewise.
927
928 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
929
930         * genextract.c (print_header): When writing out insn_extract to
931         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
932         * recog.h (insn_extract): Strengthen the param from rtx to
933         rtx_insn *.
934
935 2014-09-10  Mike Stump  <mikestump@comcast.net>
936
937         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
938         8.6.1.
939
940 2014-09-10  Martin Jambor  <mjambor@suse.cz>
941
942         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
943         (analyze): Do not set analyze flag if expand_thunk returns false;.
944         (create_wrapper): Likewise.
945         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
946
947 2014-09-10  Martin Jambor  <mjambor@suse.cz>
948
949         PR ipa/61654
950         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
951         new decl properly.  Analyze the new thunk if it is expanded.
952
953 2014-09-10  Andreas Schwab  <schwab@suse.de>
954
955         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
956         [USED_FOR_TARGET]: Define.
957
958 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
959
960         * config/mips/mips.c (mips_secondary_reload_class): Handle
961         regno < 0 case.
962
963 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
964
965         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
966         assignment.
967
968 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
969
970         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
971         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
972         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
973         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
974         flag_delete_null_pointer_checks for them.
975         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
976         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
977         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
978         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
979         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
980         stmt's iterator.
981         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
982         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
983         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
984         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
985         * doc/invoke.texi (-fsanitize=nonnull-attribute,
986         -fsanitize=returns-nonnull-attribute): Document.
987
988         * ubsan.h (struct ubsan_mismatch_data): Removed.
989         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
990         * ubsan.c (ubsan_source_location): For unknown locations,
991         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
992         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
993         Allow more than one location and arbitrary extra arguments passed
994         in ... instead of through MISMATCH pointer.
995         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
996         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
997         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
998         callers.
999
1000 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1001             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1002             Anna Tikhonova  <anna.tikhonova@intel.com>
1003             Ilya Tocar  <ilya.tocar@intel.com>
1004             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1005             Ilya Verbin  <ilya.verbin@intel.com>
1006             Kirill Yukhin  <kirill.yukhin@intel.com>
1007             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1008
1009         * config/i386/sse.md
1010         (define_mode_iterator VI48F): New.
1011         (define_insn "<avx512>_compress<mode>_mask"): Rename from
1012         "avx512f_compress<mode>_mask" and update mode iterator.
1013         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
1014         "avx512f_compressstore<mode>_mask" and update mode iterator.
1015         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
1016         "avx512f_expand<mode>_maskz" and update mode iterator.
1017         (define_insn "<avx512>_expand<mode>_mask"): Rename from
1018         "avx512f_expand<mode>_mask" and update mode iterator.
1019
1020 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1021             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1022             Anna Tikhonova  <anna.tikhonova@intel.com>
1023             Ilya Tocar  <ilya.tocar@intel.com>
1024             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1025             Ilya Verbin  <ilya.verbin@intel.com>
1026             Kirill Yukhin  <kirill.yukhin@intel.com>
1027             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1028
1029         * config/i386/i386.c
1030         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
1031         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
1032         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
1033         avx512dq_rangepv4sf_mask.
1034         * config/i386/sse.md
1035         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
1036         UNSPEC_RANGE.
1037         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
1038         (define_insn "reduces<mode>"): Ditto.
1039         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1040         Ditto.
1041         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
1042         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
1043         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
1044
1045 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1046             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1047             Anna Tikhonova  <anna.tikhonova@intel.com>
1048             Ilya Tocar  <ilya.tocar@intel.com>
1049             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1050             Ilya Verbin  <ilya.verbin@intel.com>
1051             Kirill Yukhin  <kirill.yukhin@intel.com>
1052             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1053
1054         * config/i386/i386.c
1055         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
1056         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
1057         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
1058         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
1059         avx512vl_getmantv2df_mask.
1060         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
1061         avx512f_vgetmantv4sf_round.
1062         * config/i386/sse.md
1063         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
1064         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
1065         mode iterator.
1066         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
1067         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
1068         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
1069         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
1070         iterator..
1071         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
1072         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
1073         update mode iterator.
1074         (define_expand
1075         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
1076         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
1077         mode iterator.
1078         (define_insn
1079         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
1080         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
1081         update mode iterator.
1082         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
1083         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
1084         iterator..
1085         (define_insn
1086         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
1087         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
1088         mode iterator..
1089         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
1090         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
1091         update mode iterator.
1092         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
1093         "avx512f_getmant<mode><round_saeonly_name>".
1094
1095 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
1096
1097         PR ipa/63166
1098         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
1099
1100 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1101             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1102             Anna Tikhonova  <anna.tikhonova@intel.com>
1103             Ilya Tocar  <ilya.tocar@intel.com>
1104             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1105             Ilya Verbin  <ilya.verbin@intel.com>
1106             Kirill Yukhin  <kirill.yukhin@intel.com>
1107             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1108
1109         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
1110         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
1111         (define_mode_iterator FMAMODE_AVX512): New.
1112         (define_mode_iterator FMAMODE): Remove conditions.
1113         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
1114         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
1115         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
1116         mode iterator.
1117         (define_mode_iterator FMAMODE_NOVF512): Remove.
1118         (define_insn "*fma_fmadd_<mode>"): Rename from
1119         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
1120         FMAMODE mode iterator.
1121         (define_mode_iterator VF_SF_AVX512VL): New.
1122         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
1123         Use VF_SF_AVX512VL mode iterator.
1124         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
1125         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1126         iterator.
1127         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
1128         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1129         iterator.
1130         (define_insn "*fma_fmsub_<mode>"): Rename from
1131         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
1132         FMAMODE mode iterator.
1133         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
1134         Use VF_SF_AVX512VL mode iterator.
1135         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
1136         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1137         iterator.
1138         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
1139         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1140         iterator.
1141         (define_insn "*fma_fnmadd_<mode>"): Rename from
1142         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
1143         use FMAMODE mode iterator.
1144         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
1145         Use VF_SF_AVX512VL mode iterator.
1146         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
1147         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1148         iterator.
1149         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
1150         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1151         iterator.
1152         (define_insn "*fma_fnmsub_<mode>"): Rename from
1153         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
1154         FMAMODE mode iterator.
1155         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
1156         Use VF_SF_AVX512VL mode iterator.
1157         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
1158         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1159         iterator.
1160         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
1161         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1162         iterator.
1163         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
1164         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
1165         use VF_AVX512VL mode iterator.
1166         (define_insn "*fma_fmaddsub_<mode>"): Rename from
1167         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
1168         remove subst usage.
1169         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
1170         Use VF_SF_AVX512VL mode iterator.
1171         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
1172         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1173         iterator.
1174         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
1175         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1176         iterator.
1177         (define_insn "*fma_fmsubadd_<mode>"): Rename from
1178         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
1179         remove usage of subst.
1180         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
1181         Use VF_SF_AVX512VL mode iterator.
1182         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
1183         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1184         iterator.
1185         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
1186         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1187         iterator.
1188
1189 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
1190
1191         Revert r213751:
1192         * calls.c (precompute_arguments): Check
1193          promoted_for_signed_and_unsigned_p and set the promoted mode.
1194         (promoted_for_signed_and_unsigned_p): New function.
1195         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
1196         and set the promoted mode.
1197         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
1198         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
1199         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
1200
1201 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1202
1203         * opth-gen.awk: Generate mapping from cpp message reasons to the
1204         options that enable them.
1205         * doc/options.texi (CppReason): Document.
1206
1207 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1208
1209         * doc/invoke.texi (Wnormalized=): Update.
1210
1211 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
1212
1213         PR target/63195
1214         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
1215         operands.  Split off the constant operand alternative to ...
1216         (*bool<mode>3_imm): New.
1217
1218 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1219
1220         * rtl.h (single_set_2): Strengthen first param from const_rtx to
1221         const rtx_insn *, and move prototype to above...
1222         (single_set): ...this.  Convert this from a macro to an inline
1223         function, enforcing the requirement that the param is a const
1224         rtx_insn *.
1225         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
1226
1227         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
1228         Strengthen both params from rtx to rtx_insn *.
1229         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
1230         Likewise; introduce locals "producer_set", "consumer_set", using
1231         them in place of "producer" and "consumer" when dealing with SET
1232         rather than insn.
1233         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
1234         when invoking single_set in region guarded by INSN_P.
1235         (avr_out_bitop): Likewise.
1236         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
1237         region guarded by GET_CODE check, using methods to strengthen
1238         local "this_insn" from rtx to rtx_insn *, and for clarity.
1239         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
1240         Strengthen local "insn" from rtx to rtx_insn *.
1241         (define_insn_and_split "xload<mode>_A"): Likewise.
1242         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
1243         "insn".
1244         (find_load): Likewise for return type.
1245         (workaround_speculation): Likewise for both locals named
1246         "load_insn".
1247         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
1248         local "cc0_user".
1249         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
1250         for local "prev".
1251         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
1252         param 2.
1253         * config/h8300/h8300.c (notice_update_cc): Likewise.
1254         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
1255         "insn" and "dep_insn".
1256         (exact_store_load_dependency): Likewise for both params.
1257         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
1258         since this now clashes with inline function.  Instead, delay
1259         calling single_set until the point where its needed, and then
1260         assign the result to "compare_set" and rework the conditional that
1261         follows.
1262         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
1263         local "last" from rtx to rtx_insn *.
1264         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
1265         second param.
1266         (mips_store_data_bypass_p): Likewise for both params.
1267         * config/mips/mips.c (mips_load_store_insns): Likewise for second
1268         param.
1269         (mips_store_data_bypass_p): Likewise for both params.
1270         (mips_orphaned_high_part_p): Likewise for param "insn".
1271         * config/mn10300/mn10300.c (extract_bundle): Likewise.
1272         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
1273         Introduce local rtx "insn2_pat".
1274         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
1275         "ninsn".
1276         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
1277         Introduce local rtx "set", using it in place of "insn" for the
1278         result of single_set.  This appears to fix a bug, since the call
1279         to find_regno_note on a SET does nothing.
1280         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
1281         params from rtx to rtx_insn *.
1282         (set_to_load_agen): Likewise.
1283         * config/s390/s390.c (s390_label_align): Likewise for local
1284         "prev_insn".  Introduce new rtx locals "set" and "src", using
1285         them in place of "prev_insn" for the results of single_set
1286         and SET_SRC respectively.
1287         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
1288         Introduce new rtx local "set" using in place of "jump" for the
1289         result of single_set.  Use SET_SRC (set) rather than plain
1290         XEXP (set, 1).
1291         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
1292         rtx to rtx_insn *.
1293         (noncall_uses_reg): Likewise.
1294         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
1295         guarded by GET_CODE check, using its methods for clarity, and to
1296         enable strengthening local "this_insn" from rtx to rtx_insn *.
1297         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
1298         "insn" from rtx to rtx_insn *.
1299         (define_expand "umulhisi3"): Likewise.
1300         (define_expand "smulsi3_highpart"): Likewise.
1301         (define_expand "umulsi3_highpart"): Likewise.
1302         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1303         local "after".  Replace GET_CODE check with a dyn_cast,
1304         introducing new local rtx_sequence * "seq", using insn method for
1305         typesafety.
1306
1307         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
1308         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
1309         place of "insn" once we're dealing with patterns rather than the
1310         input insn.
1311         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
1312         (scan_trace): Likewise for local "elt", updating lookups within
1313         sequence to use insn method rather than element method.
1314         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
1315         to rtx_insn *.
1316         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
1317         * ifcvt.c (noce_try_abs): Likewise for local "insn".
1318         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
1319         invoking single_set.
1320         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
1321         "insn" from rtx to rtx_insn *.
1322         (skip_usage_debug_insns): Likewise for return type, adding a
1323         checked cast.
1324         (check_secondary_memory_needed_p): Likewise for local "insn".
1325         (inherit_reload_reg): Likewise.
1326         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
1327         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
1328         checked casts.
1329         (store_data_bypass_p): Likewise for both params.
1330         (if_test_bypass_p): Likewise.
1331         * recog.h (store_data_bypass_p): Likewise for both params.
1332         (if_test_bypass_p): Likewise.
1333         * reload.c (find_equiv_reg): Likewise for local "where".
1334         * reorg.c (delete_jump): Likewise for param "insn".
1335         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
1336         to const rtx_insn *.
1337         * store-motion.c (replace_store_insn): Likewise for param "del".
1338         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
1339         and use its methods for clarity, and to strengthen local "del"
1340         from rtx to rtx_insn *.
1341         (build_store_vectors): Use insn method of "st" when calling
1342         replace_store_insn for typesafety and clarity.
1343
1344 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1345
1346         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
1347         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
1348         on how to make it legal in future.
1349
1350 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1351
1352         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
1353         to rtx_insn *.
1354         (restinsn): Likewise.
1355         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
1356         Likewise for param.
1357         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
1358         Likewise.
1359         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
1360         first param.
1361         (arc_hazard): Likewise for both params.
1362         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
1363         checked casts to rtx_sequence * and uses of the insn method for
1364         type-safety.
1365         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
1366         (arc_adjust_insn_length): Likewise for param "insn".
1367         (struct insn_length_parameters_s): Likewise for first param of
1368         "get_variants" callback field.
1369         (arc_get_insn_variants): Likewise for first param and local
1370         "inner".  Replace a check of GET_CODE with a dyn_cast to
1371         rtx_sequence *, using methods for type-safety and clarity.
1372         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
1373         rtx_sequence * and uses of the insn method for type-safety when
1374         invoking arc_adjust_insn_length.
1375         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
1376         for param.
1377         (arm_address_offset_is_imm): Likewise.
1378         (struct tune_params): Likewise for params 1 and 3 of the
1379         "sched_adjust_cost" callback field.
1380         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
1381         params 1 and 3 ("insn" and "dep").
1382         (xscale_sched_adjust_cost): Likewise.
1383         (fa726te_sched_adjust_cost): Likewise.
1384         (cortexa7_older_only): Likewise for param "insn".
1385         (cortexa7_younger): Likewise.
1386         (arm_attr_length_move_neon): Likewise.
1387         (arm_address_offset_is_imm): Likewise.
1388         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
1389         * config/avr/avr.c (avr_notice_update_cc): Likewise.
1390         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
1391         (workaround_speculation): Likewise for local "last_condjump".
1392         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
1393         (shadow_or_blockage_p): Likewise.
1394         (get_unit_reqs): Likewise.
1395         (get_unit_operand_masks): Likewise.
1396         (c6x_registers_update): Likewise.
1397         (returning_call_p): Likewise.
1398         (can_use_callp): Likewise.
1399         (convert_to_callp): Likewise.
1400         (find_last_same_clock): Likwise for local "t".
1401         (reorg_split_calls): Likewise for local "shadow".
1402         (hwloop_pattern_reg): Likewise for param "insn".
1403         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
1404         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1405         (frv_extract_membar): Likewise.
1406         (frv_optimize_membar_local): Strengthen param "last_membar" from
1407         rtx * to rtx_insn **.
1408         (frv_optimize_membar_global): Strengthen param "membar" from rtx
1409         to rtx_insn *.
1410         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
1411         to rtx_insn **.
1412         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
1413         both params from rtx to rtx_insn *.
1414         (ia64_ld_address_bypass_p): Likewise.
1415         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
1416         "insn".
1417         (ia64_safe_type): Likewise.
1418         (group_barrier_needed): Likewise.
1419         (safe_group_barrier_needed): Likewise.
1420         (ia64_single_set): Likewise.
1421         (is_load_p): Likewise.
1422         (record_memory_reference): Likewise.
1423         (get_mode_no_for_insn): Likewise.
1424         (important_for_bundling_p): Likewise.
1425         (unknown_for_bundling_p): Likewise.
1426         (ia64_st_address_bypass_p): Likewise for both params.
1427         (ia64_ld_address_bypass_p): Likewise.
1428         (expand_vselect): Introduce new local rtx_insn * "insn", using it
1429         in place of rtx "x" after the emit_insn call.
1430         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
1431         Strengthen param from rtx to rtx_insn *.
1432         (ix86_agi_dependent): Likewise for both params.
1433         (ix86_attr_length_immediate_default): Likewise for param 1.
1434         (ix86_attr_length_address_default): Likewise for param.
1435         (ix86_attr_length_vex_default): Likewise for param 1.
1436         * config/i386/i386.c (ix86_attr_length_immediate_default):
1437         Likewise for param "insn".
1438         (ix86_attr_length_address_default): Likewise.
1439         (ix86_attr_length_vex_default): Likewise.
1440         (ix86_agi_dependent): Likewise for both params.
1441         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
1442         (vselect_insn): Likewise for this variable.
1443         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
1444         for param 1.
1445         (m68k_sched_attr_opy_type): Likewise.
1446         * config/m68k/m68k.c (sched_get_operand): Likewise.
1447         (sched_attr_op_type): Likewise.
1448         (m68k_sched_attr_opx_type): Likewise.
1449         (m68k_sched_attr_opy_type): Likewise.
1450         (sched_get_reg_operand): Likewise.
1451         (sched_get_mem_operand): Likewise.
1452         (m68k_sched_address_bypass_p): Likewise for both params.
1453         (sched_get_indexed_address_scale): Likewise.
1454         (m68k_sched_indexed_address_bypass_p): Likewise.
1455         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
1456         (m68k_sched_indexed_address_bypass_p): Likewise.
1457         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
1458         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
1459         removing another.
1460         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
1461         params from rtx to rtx_insn *.
1462         (mips_fmadd_bypass): Likewise.
1463         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
1464         (mips_linked_madd_p): Likewise.
1465         (mips_macc_chains_last_hilo): Likewise for this variable.
1466         (mips_macc_chains_record): Likewise for param.
1467         (vr4130_last_insn): Likewise for this variable.
1468         (vr4130_swap_insns_p): Likewise for both params.
1469         (mips_ls2_variable_issue): Likewise for param.
1470         (mips_need_noat_wrapper_p): Likewise for param "insn".
1471         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
1472         in place of "x" after the emit_insn.
1473         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
1474         params from rtx to rtx_insn *.
1475         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
1476         (pa_combine_instructions): Introduce local "par" for result of
1477         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1478         to make_insn_raw.
1479         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1480         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1481         (rl78_alloc_physical_registers_op1): Likewise.
1482         (rl78_alloc_physical_registers_op2): Likewise.
1483         (rl78_alloc_physical_registers_ro1): Likewise.
1484         (rl78_alloc_physical_registers_cmp): Likewise.
1485         (rl78_alloc_physical_registers_umul): Likewise.
1486         (rl78_alloc_address_registers_macax): Likewise.
1487         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1488         * config/s390/predicates.md (execute_operation): Likewise for
1489         local "insn".
1490         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1491         params.
1492         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1493         (addr_generation_dependency_p): Likewise for param "insn".
1494         (s390_agen_dep_p): Likewise for both params.
1495         (s390_fpload_toreg): Likewise for param "insn".
1496         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1497         * config/sh/sh.c (sh_loop_align): Likewise for param and local
1498         "next".
1499         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1500         * config/sh/sh_treg_combine.cc
1501         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1502         and local "i".
1503         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1504         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1505         "and_insn", "load", "shift".
1506         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1507         "insn".
1508         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1509         for XEXP (note, 0) of the REG_CC_SETTER note.
1510         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1511         rtx_insn *, eliminating a checked cast made redundant by this.
1512         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1513         to rtx_insn *.
1514         * genattr.c (main): When writing out the prototype to
1515         const_num_delay_slots, strengthen the param from rtx to
1516         rtx_insn *.
1517         * genattrtab.c (write_const_num_delay_slots): Likewise when
1518         writing out the implementation of const_num_delay_slots.
1519         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1520         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1521         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1522         favor of new rtx locals "src" and "set" and new local rtx_insn *
1523         "insn" and "seq".
1524         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1525         to rtx_insn *.
1526         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1527         locals "cond", "if_then_else", "set" and new rtx_insn * locals
1528         "insn" and "seq".
1529         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1530         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
1531         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
1532         the top-level scope, replacing with new more tightly-scoped rtx
1533         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1534         "new_insn", "copy_of_insn_b", and make local rtx "set" more
1535         tightly-scoped.
1536         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1537         rtx_insn *.
1538         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1539         "move_insn".
1540         (ira_setup_alts): Likewise for param "insn".
1541         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1542         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1543         and an rtx_insn *.
1544         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1545         new more-tightly scoped rtx locals "add3_insn", "insn",
1546         "add2_insn" and rtx_insn * "move_insn".
1547         * postreload-gcse.c (eliminate_partially_redundant_load): Add
1548         checked cast on result of gen_move_insn when invoking
1549         extract_insn.
1550         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1551         rtx_insn *.
1552         (verify_changes): Add a checked cast on "object" when invoking
1553         insn_invalid_p.
1554         (extract_insn_cached): Strengthen param "insn" from rtx to
1555         rtx_insn *.
1556         (extract_constrain_insn_cached): Likewise.
1557         (extract_insn): Likewise.
1558         * recog.h (insn_invalid_p): Likewise for param 1.
1559         (recog_memoized): Likewise for param.
1560         (extract_insn): Likewise.
1561         (extract_constrain_insn_cached): Likewise.
1562         (extract_insn_cached): Likewise.
1563         * reload.c (can_reload_into): Likewise for local "test_insn".
1564         * reload.h (cleanup_subreg_operands): Likewise for param.
1565         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1566         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1567         result of emit_insn.  Remove a checked cast made redundant by this
1568         change.
1569         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1570         rtx to rtx_insn *.
1571         * sel-sched.c (get_reg_class): Likewise.
1572
1573 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1574         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1575
1576          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1577          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1578         Define.
1579         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1580
1581 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1582
1583         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1584         const rtx_insn *, and from rtx to rtx_insn * for the other
1585         overloaded variant.
1586         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1587         INSN_LOCATION, since we know INSN_P holds.
1588         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1589         (insn_file): Likewise.
1590         (insn_scope): Likewise.
1591         (insn_location): Likewise.
1592
1593         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1594         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1595         for the result of gen_load_const_gp.
1596         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1597         param from rtx to rtx_insn *.
1598         * config/rs6000/rs6000.c (output_call): Likewise.
1599         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1600         introducing a checked cast to rtx_sequence * and use of the insn
1601         method.
1602         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1603         from rtx to rtx_insn *.
1604         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1605         (insn_line): Likewise.
1606         (insn_file): Likewise.
1607         (insn_location): Likewise.
1608         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1609         from rtx to rtx_insn *.
1610         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1611         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1612         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1613         via a checked cast.
1614         * reorg.c (relax_delay_slots): Strengthen locals named "after"
1615         from rtx to rtx_insn *; use methods of "pat" for type-safety.
1616
1617 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1618
1619         * combine.c (try_combine): Eliminate checked cast on result of
1620         gen_rtx_INSN.
1621         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1622         autogenerated one by strengthening the return type and params 2 and 3
1623         from rtx to rtx_insn *, and by naming the params.
1624         * gengenrtl.c (special_rtx): Add INSN to those that are
1625         special-cased.
1626         * rtl.h (gen_rtx_INSN): New prototype.
1627
1628 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1629
1630         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1631         than NULL_RTX.
1632         (no_equiv): Likewise.
1633         (update_equiv_regs): Likewise.
1634         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
1635         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1636         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
1637         clarity.
1638         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1639         from rtx to rtx_insn_list *.
1640         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1641         rtx_insn_list * and use methods for clarity and typesafety.
1642         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1643         "list".
1644         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
1645         redundant check on INSN_P (insns): this cannot hold, as "insns" is
1646         an INSN_LIST, not an insn.
1647         (reverse_equiv_p): Strengthen local "insns" from rtx to
1648         rtx_insn_list * and use methods for clarity and typesafety.
1649         (contains_reloaded_insn_p): Likewise for local "list".
1650
1651 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
1652
1653         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1654         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1655         (arm_builtin_vectorized_function): Likewise.
1656         * config/arm/arm_neon_builtins.def: New macro for copysignf.
1657         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1658
1659 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
1660
1661         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1662         * builtins.h (default_target_builtins): Likewise.
1663         * gcse.h (default_target_gcse): Likewise.
1664         * target-globals.h (target_globals): Add a destructor.  Convert
1665         void-pointer fields back to their real type and change from
1666         GTY((atomic)) to GTY((skip)).
1667         (restore_target_globals): Remove casts accordingly.
1668         * target-globals.c (save_target_globals): Use XCNEW rather than
1669         ggc_internal_cleared_alloc to allocate non-GC structures.
1670         Use ggc_cleared_alloc to allocate the target_globals structure
1671         itself.
1672         (target_globals::~target_globals): Define.
1673
1674 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1675
1676         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1677         mnemonic instead of fldmfdd.
1678         * config/arm/arm.c (vfp_output_fstmd): Rename to...
1679         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
1680         Output vpush when address register is SP.
1681         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1682         (vfp_output_vstmd): ... This.
1683         * config/arm/vfp.md (push_multi_vfp): Update call to
1684         vfp_output_vstmd.
1685
1686 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1687
1688         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1689
1690 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1691
1692         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1693         (*sqrtdf2_vfp): Likewise.
1694         (*cmpsf_vfp): Likewise.
1695         (*cmpsf_trap_vfp): Likewise.
1696         (*cmpdf_vfp): Likewise.
1697         (*cmpdf_trap_vfp): Likewise.
1698
1699 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1700
1701         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1702         (*truncdfsf2_vfp): Likewise.
1703         (*truncsisf2_vfp): Likewise.
1704         (*truncsidf2_vfp): Likewise.
1705         (fixuns_truncsfsi2): Likewise.
1706         (fixuns_truncdfsi2): Likewise.
1707         (*floatsisf2_vfp): Likewise.
1708         (*floatsidf2_vfp): Likewise.
1709         (floatunssisf2): Likewise.
1710         (floatunssidf2): Likewise.
1711
1712 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1713
1714         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1715         (*muldf3_vfp): Likewise.
1716         (*mulsf3negsf_vfp): Likewise.
1717         (*muldf3negdf_vfp): Likewise.
1718         (*mulsf3addsf_vfp): Likewise.
1719         (*muldf3adddf_vfp): Likewise.
1720         (*mulsf3subsf_vfp): Likewise.
1721         (*muldf3subdf_vfp): Likewise.
1722         (*mulsf3negsfaddsf_vfp): Likewise.
1723         (*fmuldf3negdfadddf_vfp): Likewise.
1724         (*mulsf3negsfsubsf_vfp): Likewise.
1725         (*muldf3negdfsubdf_vfp): Likewise.
1726
1727 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1728
1729         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1730         (*absdf2_vfp): Likewise.
1731         (*negsf2_vfp): Likewise.
1732         (*negdf2_vfp): Likewise.
1733         (*addsf3_vfp): Likewise.
1734         (*adddf3_vfp): Likewise.
1735         (*subsf3_vfp): Likewise.
1736         (*subdf3_vfp): Likewise.
1737         (*divsf3_vfp): Likewise.
1738         (*divdf3_vfp): Likewise.
1739
1740 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1741
1742         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1743         multiple.
1744         (arm_print_operand): Don't convert real values to decimal
1745         representation in default case.
1746         (fp_immediate_constant): Delete.
1747         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1748         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1749         syntax.
1750         (*thumb2_movsi_vfp): Likewise.
1751         (*movdi_vfp): Likewise.
1752         (*movdi_vfp_cortexa8): Likewise.
1753         (*movhf_vfp_neon): Likewise.
1754         (*movhf_vfp): Likewise.
1755         (*movsf_vfp): Likewise.
1756         (*thumb2_movsf_vfp): Likewise.
1757         (*movdf_vfp): Likewise.
1758         (*thumb2_movdf_vfp): Likewise.
1759         (*movsfcc_vfp): Likewise.
1760         (*thumb2_movsfcc_vfp): Likewise.
1761         (*movdfcc_vfp): Likewise.
1762         (*thumb2_movdfcc_vfp): Likewise.
1763
1764 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
1765
1766         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1767         (-mtune): Likewise.
1768         (-mcpu): Likewise.
1769
1770 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1771
1772         PR target/61749
1773         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1774         Use qualifier_immediate for last operand.  Rename to...
1775         (aarch64_types_ternop_lane_qualifiers): ... This.
1776         (TYPES_QUADOP): Rename to...
1777         (TYPES_TERNOP_LANE): ... This.
1778         (aarch64_simd_expand_args): Return const0_rtx when encountering user
1779         error.  Change return of 0 to return of NULL_RTX.
1780         (aarch64_crc32_expand_builtin): Likewise.
1781         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1782         ICE when expanding unknown builtin.
1783         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1784         TERNOP_LANE qualifiers.
1785         (sqdmlsl_lane): Likewise.
1786         (sqdmlal_laneq): Likewise.
1787         (sqdmlsl_laneq): Likewise.
1788         (sqdmlal2_lane): Likewise.
1789         (sqdmlsl2_lane): Likewise.
1790         (sqdmlal2_laneq): Likewise.
1791         (sqdmlsl2_laneq): Likewise.
1792
1793 2014-09-09  Nick Clifton  <nickc@redhat.com>
1794
1795         * doc/invoke.texi (Optimization Options): Add missing @gol to the
1796         end of a line.
1797         (S/390 and zSeries Options): Remove superfluous word from the
1798         description of the -mhotpatch option.
1799
1800 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1801
1802         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1803         * ira.c: #include "shrink-wrap.h"
1804         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1805         * ifcvt.c: #include "shrink-wrap.h"
1806         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1807
1808 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
1809
1810         * common/config/picochip/picochip-common.c: Remove.
1811         * config.gcc: Remove support for picochip.
1812         * config/picochip/constraints.md: Remove.
1813         * config/picochip/dfa_space.md: Remove.
1814         * config/picochip/dfa_speed.md: Remove.
1815         * config/picochip/picochip-protos.h: Remove.
1816         * config/picochip/picochip.c: Remove.
1817         * config/picochip/picochip.h: Remove.
1818         * config/picochip/picochip.md: Remove.
1819         * config/picochip/picochip.opt: Remove.
1820         * config/picochip/predicates.md: Remove.
1821         * config/picochip/t-picochip: Remove.
1822         * doc/md.texi: Don't document picochi.
1823
1824 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1825
1826         * basic-block.h (control_flow_insn_p): Strengthen param from
1827         const_rtx to const rtx_insn *.
1828         * cfgbuild.c (control_flow_insn_p): Likewise.
1829
1830 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1831
1832         * gcse.c (modify_mem_list): Strengthen this variable from
1833         vec<rtx> * to vec<rtx_insn *> *.
1834         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1835         vec<rtx_insn *>.
1836         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1837         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1838         (record_last_mem_set_info): Strengthen param "insn" from rtx to
1839         rtx_insn *.
1840         (record_last_set_info): Likewise for local "last_set_insn".
1841
1842 2014-09-08  DJ Delorie  <dj@redhat.com>
1843
1844         * doc/invoke.texi (MSP430 Options): Add -minrt.
1845
1846 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1847
1848         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
1849         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1850         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1851         handling SH_SPLAT.
1852         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1853         of extracted lane.
1854         (adjust_splat): New function.
1855         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1856         (dump_swap_insn_table): Add case for SH_SPLAT.
1857
1858 2014-09-08  Richard Biener  <rguenther@suse.de>
1859
1860         PR ipa/63196
1861         * tree-inline.c (copy_loops): The source loop header should
1862         always be non-NULL.
1863         (tree_function_versioning): If loops need fixup after removing
1864         unreachable blocks fix them.
1865         * omp-low.c (simd_clone_adjust): Do not add incr block to
1866         loop under construction.
1867
1868 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1869
1870         * config/aarch64/aarch64-builtins.c
1871         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1872
1873 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1874
1875         * config/i386/cygming.h (TF_SIZE): Remove.
1876         * config/i386/darwin.h (TF_SIZE): Remove.
1877         * config/i386/dragonfly.h (TF_SIZE): Remove.
1878         * config/i386/freebsd.h (TF_SIZE): Remove.
1879         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1880         * config/i386/openbsdelf.h (TF_SIZE): Remove.
1881         * config/i386/sol2.h (TF_SIZE): Remove.
1882         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1883         * config/ia64/linux.h (TF_SIZE): Remove.
1884         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1885         * doc/tm.texi: Regenerate.
1886         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1887
1888 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1889
1890         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1891         Remove.
1892         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1893         Remove.
1894         * doc/tm.texi: Regenerate.
1895         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1896         Poison.
1897         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1898         * config/cris/cris.h (__make_dp): Remove.
1899
1900 2014-09-08  Richard Biener  <rguenther@suse.de>
1901
1902         PR bootstrap/63204
1903         * cfgloop.c (mark_loop_for_removal): Track former header
1904         unconditionally.
1905         * cfgloop.h (struct loop): Add former_header member unconditionally.
1906         * loop-init.c (fix_loop_structure): Enable bogus loop removal
1907         diagnostic unconditionally.
1908
1909 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1910
1911         PR target/63190
1912         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1913         constraint for operand0 and remove write only modifier from operand3.
1914
1915 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
1916
1917         PR rtl-optimization/62208
1918         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1919         rather than const0_rtx in eq/ne-xor simplifications.
1920
1921 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
1922
1923         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1924         (arc_output_mi_thunk): Likewise.
1925
1926         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1927         arguments to silence bogus warning.
1928
1929 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
1930
1931         PR middle-end/63171
1932         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1933
1934 2014-09-06  Tom de Vries  <tom@codesourcery.com>
1935
1936         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1937         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1938         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1939
1940 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
1941
1942         PR target/63188
1943         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1944         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1945
1946 2014-09-05  Easwaran Raman  <eraman@google.com>
1947
1948         PR rtl-optimization/62146
1949         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1950         hoisted instruction unconditional.
1951
1952 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
1953
1954         PR target/63187
1955         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1956         Do not allow any_mask_operand for operands[2].
1957         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1958
1959 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1960
1961         * config/arc/arc.c (arc_print_operand): Use insn method of
1962         final_sequence for type-safety.
1963         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1964         "insn" from rtx to rtx_insn *.
1965         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1966         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1967         Likewise for locals "branch", "label".
1968         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1969         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
1970         (same_cmp_following_p): Likewise for locals "i2", "i3".
1971         * config/sh/sh_optimize_sett_clrt.cc
1972         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1973         param "cbranch_insn".
1974         * function.c (convert_jumps_to_returns): Likewis for local "jump".
1975         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1976         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1977         const rtx_insn *.
1978         (condjump_p): Likewise.
1979         (condjump_in_parallel_p): Likewise.
1980         (pc_set): Likewise.
1981         (any_uncondjump_p): Likewise.
1982         (any_condjump_p): Likewise.
1983         (condjump_label): Likewise.
1984         (returnjump_p): Strengthen param "insn" from rtx to
1985         const rtx_insn *.
1986         (onlyjump_p): Strengthen param "insn" from const_rtx to
1987         const rtx_insn *.
1988         (jump_to_label_p): Likewise.
1989         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1990         (invert_jump): Likewise.
1991         * reorg.c (simplejump_or_return_p): Add checked cast when calling
1992         simplejump_p.
1993         (get_jump_flags): Strengthen param "insn" from rtx to
1994         const rtx_insn *.
1995         (get_branch_condition): Likewise.
1996         (condition_dominates_p): Likewise.
1997         (make_return_insns): Move declaration of local "pat" earlier, to
1998         after we've handled NONJUMP_INSN_P and non-sequences, using its
1999         methods to simplify the code and for type-safety.
2000         * rtl.h (find_constant_src): Strengthen param from const_rtx to
2001         const rtx_insn *.
2002         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
2003         (condjump_p): Strengthen param from const_rtx to
2004         const rtx_insn *.
2005         (any_condjump_p): Likewise.
2006         (any_uncondjump_p): Likewise.
2007         (pc_set): Likewise.
2008         (condjump_label): Likewise.
2009         (simplejump_p): Likewise.
2010         (returnjump_p): Likewise.
2011         (onlyjump_p): Likewise.
2012         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
2013         (invert_jump): Likewise.
2014         (condjump_in_parallel_p): Strengthen param from const_rtx to
2015         const rtx_insn *.
2016         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
2017         to const rtx_insn *.
2018         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
2019         to const rtx_insn *.
2020         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
2021
2022 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2023
2024         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
2025         above the conditional, and convert the check on GET_CODE to a
2026         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
2027         the conditional.  Simplify the conditional by using methods of
2028         "trial_seq".
2029
2030 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2031
2032         * haifa-sched.c (check_clobbered_conditions): Strengthen local
2033         "link" from rtx to rtx_insn_list *, and use its methods for
2034         clarity and type-safety.
2035         (toggle_cancelled_flags): Likewise.
2036         (restore_last_backtrack_point): Likewise.
2037         (queue_to_ready): Use insn method of "link" in one place.
2038         (schedule_block): Strengthen local "link" from rtx to
2039         rtx_insn_list *, and use its methods for clarity and type-safety.
2040
2041 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2042
2043         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
2044         param "insn" from const_rtx to const rtx_insn *.
2045         (sched_get_reverse_condition_uncached): Likewise.
2046         (sched_get_condition_with_rev): Likewise.
2047         (sched_has_condition_p): Likewise.
2048         (sched_insns_conditions_mutex_p): Likewise for both params.
2049         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
2050         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
2051         (setup_insn_reg_uses): Move local "list" to be more tightly
2052         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
2053         its methods for clarity and type-safety.
2054         (sched_analyze_1): Strengthen local "pending" from rtx to
2055         rtx_insn_list *, and local "pending_mem" from rtx to
2056         rtx_expr_list *.  Use methods of each for clarity and type-safety.
2057         (sched_analyze_2): Likewise.
2058         (sched_analyze_insn): Likewise.
2059
2060         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
2061         param from const_rtx to const rtx_insn *.
2062         (sched_insns_conditions_mutex_p): Likewise for both params.
2063         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
2064         param.
2065
2066         * system.h (CONST_CAST_RTX_INSN): New macro.
2067
2068 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2069
2070         * recog.c (peep2_attempt): Strengthen return type from rtx to
2071         rtx_insn *.
2072         (peep2_update_life): Likewise for params "last", "prev", removing
2073         a checked cast made redundant by this.
2074         (peephole2_optimize): Likewise for local "last".
2075
2076 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2077
2078         * basic-block.h (set_block_for_insn): Eliminate this macro in
2079         favor of...
2080         * rtl.h (set_block_for_insn): New inline function, imposing the
2081         requirement that the "insn" param is an rtx_insn *.
2082
2083 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2084
2085         * caller-save.c (setup_save_areas): Strengthen local "insn" from
2086         rtx to rtx_insn *.
2087         * final.c (get_call_reg_set_usage): Likewise for first param,
2088         eliminating a checked cast.
2089         * regs.h (get_call_reg_set_usage): Likewise for first param.
2090         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
2091         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
2092         cast, replacing references to "x" with "call_insn" where
2093         appropriate.
2094         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
2095         rtx_insn *, adding a checked cast.
2096
2097 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2098
2099         * output.h (final_scan_insn): Strengthen first param from rtx to
2100         rtx_insn *.
2101
2102         * final.c (final_scan_insn): Likewise, renaming it back from
2103         "uncast_insn" to "insn", eliminating the checked cast.
2104
2105         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
2106         "vec" with an rtx_sequence * "seq", taking a copy of
2107         "final_sequence", and using methods of "seq" for clarity, and for
2108         type-safety in the calls to final_scan_insn.
2109         * config/mips/mips.c (mips_output_conditional_branch): Use methods
2110         of "final_sequence" for clarity, and for type-safety in the call to
2111         final_scan_insn.
2112         * config/sh/sh.c (print_slot): Strengthen param from rtx to
2113         rtx_sequence * and rename from "insn" to "seq".
2114
2115 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2116
2117         * jump.c (delete_related_insns): Introduce a new local "table" by
2118         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
2119         get_labels method of "table" to simplify access to the labels in
2120         the jump table.
2121
2122 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2123
2124         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
2125         f_minmaxs, f_minmaxd types.
2126
2127 2014-09-05  Richard Biener  <rguenther@suse.de>
2128
2129         * cfgloop.c (mark_loop_for_removal): Record former header
2130         when ENABLE_CHECKING.
2131         * cfgloop.h (strut loop): Add former_header member when
2132         ENABLE_CHECKING.
2133         * loop-init.c (fix_loop_structure): Sanity check loops
2134         marked for removal if they re-appeared.
2135
2136 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2137
2138         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
2139         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
2140
2141         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
2142         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
2143         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
2144         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
2145         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
2146         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
2147         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
2148         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
2149         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
2150         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
2151         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
2152         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
2153         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
2154         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
2155         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
2156         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
2157         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
2158         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
2159         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
2160         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
2161         with int{32,16,8}_t.
2162
2163 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2164
2165         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
2166         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
2167         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
2168         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
2169         Remove temporary __asm__ and reimplement.
2170
2171 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2172
2173         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
2174         handling cmge, cmgt, cmeq, cmtst.
2175
2176         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
2177         cmlt, cmgeu, cmgtu, cmtst): Remove.
2178
2179         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
2180         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
2181         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
2182         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
2183
2184 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2185
2186         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
2187         TYPES_TST): Define.
2188         (aarch64_fold_builtin): Update pattern for cmtst.
2189
2190         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
2191         Declare.
2192
2193         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
2194
2195         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
2196         Switch operands, separate out more cases, refactor.
2197
2198         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
2199
2200         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
2201         argument; rename old version to...
2202         (aarch64_const_vec_all_same_in_range_p): ...this.
2203         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
2204
2205         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
2206
2207 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2208
2209         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2210         Remove qualifier_const_pointer, update comment.
2211
2212 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2213
2214         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
2215
2216 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2217
2218         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
2219         varargs with pointer parameter.
2220         (aarch64_simd_expand_builtin): pass pointer into previous.
2221
2222 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2223
2224         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
2225         alus_ext.
2226
2227 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
2228
2229         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
2230         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
2231         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
2232         Replace temporary asm with call to builtin.
2233         (vrbit_p8, vrbitq_p8): New functions.
2234
2235 2014-09-05  Richard Biener  <rguenther@suse.de>
2236
2237         * cfgloop.c (mark_loop_for_removal): New function.
2238         * cfgloop.h (mark_loop_for_removal): Declare.
2239         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
2240         (merge_blocks): Likewise.
2241         (duplicate_block): Likewise.
2242         * except.c (sjlj_emit_dispatch_table): Likewise.
2243         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
2244         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
2245         (thread_through_loop_header): Likewise.
2246
2247 2014-09-05  Richard Biener  <rguenther@suse.de>
2248
2249         PR middle-end/63148
2250         * fold-const.c (try_move_mult_to_index): Remove.
2251         (fold_binary_loc): Do not call it.
2252         * tree-data-ref.c (dr_analyze_indices): Strip conversions
2253         from the base object again.
2254
2255 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
2256
2257         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
2258         DImode.
2259
2260 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2261
2262         PR target/55701
2263         * config/arm/arm.md (setmem): New pattern.
2264         * config/arm/arm-protos.h (struct tune_params): New fields.
2265         (arm_gen_setmem): New prototype.
2266         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
2267         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2268         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2269         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
2270         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
2271         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
2272         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
2273         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2274         (arm_const_inline_cost): New function.
2275         (arm_block_set_max_insns): New function.
2276         (arm_block_set_non_vect_profit_p): New function.
2277         (arm_block_set_vect_profit_p): New function.
2278         (arm_block_set_unaligned_vect): New function.
2279         (arm_block_set_aligned_vect): New function.
2280         (arm_block_set_unaligned_non_vect): New function.
2281         (arm_block_set_aligned_non_vect): New function.
2282         (arm_block_set_vect, arm_gen_setmem): New functions.
2283
2284 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2285
2286         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
2287
2288 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
2289
2290         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
2291
2292 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2293
2294         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
2295         an rtx.
2296         * valtrack.h: Adjust.
2297
2298 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2299
2300         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
2301         an rtx.
2302         (emit_jump_insn_before_noloc): Likewise.
2303         (emit_call_insn_before_noloc): Likewise.
2304         (emit_label_before): Likewise.
2305         (emit_label_after): Likewise.
2306         (emit_insn_before_setloc): Likewise.
2307         (emit_jump_insn_before_setloc): Likewise.
2308         (emit_call_insn_before_setloc): Likewise.
2309         (emit_call_insn_before): Likewise.
2310         * rtl.h: Adjust.
2311
2312 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2313
2314         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
2315         rtx_insn *, eliminating a checked cast.
2316
2317 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2318
2319         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
2320         const_rtx to const rtx_insn *.
2321         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
2322         cast.
2323
2324 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2325
2326         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
2327         fixup_args_size_notes.
2328         * expr.c (fixup_args_size_notes): Strengthen first two params from
2329         rtx to rtx_insn *, eliminating a checked cast.
2330         * rtl.h (fixup_args_size_notes): Strengthen first two params from
2331         rtx to rtx_insn *.
2332
2333 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
2334
2335         * haifa-sched.c (get_ready_element): Strengthen return type from
2336         rtx to rtx_insn *.
2337         * sched-int.h (get_ready_element): Likewise.
2338
2339 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
2340
2341         PR target/63165
2342         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
2343         indexed_or_indirect_operand instead of memory_operand.
2344         (floatsi<mode>2_lfiwzx_mem): Ditto.
2345
2346 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2347
2348         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
2349         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
2350         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
2351
2352 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
2353
2354         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
2355         rtx.
2356         (get_last_nonnote_insn): Likewise.
2357         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
2358         * resource.c (find_basic_block): Likewise.
2359         * rtl.h: Adjust.
2360         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
2361         const_rtx.
2362
2363 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
2364
2365         * genattr.c (main): Within the prototype of insn_latency written
2366         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
2367         * genautomata.c (output_internal_maximal_insn_latency_func):
2368         Within the implementation of insn_latency written out to
2369         insn-automata.c, strengthen both params from rtx to rtx_insn *,
2370         eliminating a pair of checked casts.
2371
2372 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
2373
2374         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
2375         rtx_insn *.
2376
2377         * rtl.h (eh_returnjump_p): Likewise.
2378
2379 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
2380
2381         * Makefile.in (TAGS): Handle constructs in timevar.def.
2382
2383 2014-09-04  Guozhi Wei  <carrot@google.com>
2384
2385         PR target/62040
2386         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
2387         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
2388         it into two patterns.
2389         (move_lo_quad_internal_be_<mode>): Likewise.
2390
2391 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2392
2393         * doc/options.texi: Document that Var and Init are required if CPP
2394         is given.
2395         * optc-gen.awk: Require Var and Init if CPP is given.
2396         * common.opt (Wpedantic): Use Init.
2397
2398 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2399
2400         * config/rs6000/rs6000.c (special_handling_values): Add
2401         SH_EXTRACT.
2402         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
2403         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
2404         as swappable with special handling SH_EXTRACT.  Remove
2405         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
2406         optimization.
2407         (adjust_extract): New function.
2408         (handle_special_swappables): Add default to case statement; add
2409         case for SH_EXTRACT that calls adjust_extract.
2410         (dump_swap_insn_table): Handle SH_EXTRACT.
2411
2412 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2413
2414         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
2415         selection of 0th memory doubleword, regardless of endianness.
2416
2417 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2418
2419         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
2420
2421 2014-09-04  Alan Modra  <amodra@gmail.com>
2422
2423         PR debug/60655
2424         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
2425         can't be output.
2426
2427 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
2428
2429         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
2430         * targhooks.c (default_dwarf_frame_reg_mode): New function.
2431         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
2432         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
2433         * doc/tm.texi: Regenerate.
2434         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
2435         selection logic to default_dwarf_frame_reg_mode.
2436
2437 2014-09-03  Marek Polacek  <polacek@redhat.com>
2438
2439         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
2440         by -Wall.
2441
2442 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
2443
2444         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
2445         the automodified register.
2446
2447 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
2448
2449         * output.h (get_some_local_dynamic_name): Declare.
2450         * final.c (some_local_dynamic_name): New variable.
2451         (get_some_local_dynamic_name): New function.
2452         (final_end_function): Clear some_local_dynamic_name.
2453         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
2454         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2455         (print_operand): Report an error if '%&' is used inappropriately.
2456         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
2457         (get_some_local_dynamic_name_1): Delete.
2458         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
2459         (rs6000_get_some_local_dynamic_name): Delete.
2460         (rs6000_get_some_local_dynamic_name_1): Delete.
2461         (print_operand): Report an error if '%&' is used inappropriately.
2462         * config/s390/s390.c (machine_function): Remove some_ld_name.
2463         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2464         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
2465         * config/sparc/sparc.c: Include rtl-iter.h.
2466         (machine_function): Remove some_ld_name.
2467         (sparc_print_operand): Report an error if '%&' is used inappropriately.
2468         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2469
2470 2014-09-03  Richard Henderson  <rth@redhat.com>
2471
2472         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
2473         (aarch64_popwb_pair_reg): Remove.
2474         (aarch64_set_frame_expr): Remove.
2475         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
2476         the restore ops performed by the insns generated.
2477         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
2478         insn.  Perform the calls_eh_return addition later; do not attempt to
2479         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
2480         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2481         special markup at all.  Load cfun->machine->frame.hard_fp_offset
2482         into a local variable.
2483         (aarch64_frame_pointer_required): Don't check calls_alloca.
2484
2485 2014-09-03  Richard Biener  <rguenther@suse.de>
2486
2487         * opts.c (default_options_optimization): Adjust
2488         max-combine-insns to 2 for -Og.
2489
2490 2014-09-03  Martin Jambor  <mjambor@suse.cz>
2491
2492         PR ipa/62015
2493         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2494         pass-trough jump functions correctly.
2495
2496 2014-09-03  Martin Jambor  <mjambor@suse.cz>
2497
2498         PR ipa/61986
2499         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2500         created replacements in ascending order of offsets.
2501         (known_aggs_to_agg_replacement_list): Likewise.
2502
2503 2014-09-03  Martin Liska  <mliska@suse.cz>
2504
2505         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2506         is set to set uninitialized value for vnresult.
2507
2508 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2509
2510         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2511         for TARGET_MUST_PASS_IN_STACK.
2512
2513 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2514
2515         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2516         for TARGET_ARG_PARTIAL_BYTES.
2517
2518 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2519
2520         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2521         instructions for varargs implementation.
2522         (nds32_expand_epilogue): Emit stack adjustment instructions for
2523         varargs implementation.
2524
2525 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2526
2527         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2528         optimization detection.
2529
2530 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2531
2532         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2533         arguments.
2534         (nds32_function_arg_advance): Deal with nameless arguments.
2535         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2536         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2537         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2538
2539 2014-09-03  Richard Biener  <rguenther@suse.de>
2540
2541         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2542         (struct bb_bitmap_sets): Remove deferred member.
2543         (BB_DEFERRED): Remove.
2544         (defer_or_phi_translate_block): Remove.
2545         (compute_antic_aux): Remove deferring of blocks, assert
2546         proper iteration order.
2547         (compute_antic): Do not set BB_DEFERRED.
2548         (eliminate): Allocate el_avail of proper size initially.
2549
2550 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2551
2552         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2553         according to the value of crtl->args.pretend_args_size.
2554
2555 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2556
2557         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2558         varargs information.
2559
2560 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2561
2562         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2563         implementation for TARGET_SETUP_INCOMING_VARARGS.
2564         (nds32_strict_argument_naming): Refine comment.
2565         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2566         Define for future implementation.
2567
2568 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
2569
2570         * config/i386/adxintrin.h (_subborrow_u32): New.
2571         (_addcarry_u32): Ditto.
2572         (_subborrow_u64): Ditto.
2573         (_addcarry_u64): Ditto.
2574         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2575         IX86_BUILTIN_SBB64.
2576         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2577         __builtin_ia32_sbb_u64
2578
2579 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2580
2581         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2582         GPR-specific stuff.
2583         (nds32_function_arg_advance): Likewise.
2584         (nds32_init_cumulative_args): Likewise.
2585         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2586         (NDS32_FIRST_GPR_REGNUM): Define.
2587         (NDS32_LAST_GPR_REGNUM): Define.
2588         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2589         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2590         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2591         (machine_function): Use GRP-specific stuff.
2592
2593 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2594
2595         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2596         (nds32_expand_epilogue): Likewise.
2597         (nds32_expand_prologue_v3push): Likewise.
2598         (nds32_expand_epilogue_v3pop): Likewise.
2599
2600 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2601
2602         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2603         v3push/v3pop for variadic function.
2604         * config/nds32/nds32.md (prologue, epilogue): Likewise.
2605
2606 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2607
2608         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2609         Check rtx for varargs implementation.
2610         (nds32_output_stack_pop): Likewise.
2611         * config/nds32/nds32-protos.h: Have a rtx argument for
2612         nds32_output_stack_push and nds32_output_stack_pop.
2613         * config/nds32/nds32.md: Likewise.
2614
2615 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2616
2617         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2618         to check if FUNC is an interrupt service routine.
2619         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2620
2621 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2622
2623         * config/nds32/nds32.h (machine_function): Add some fields for variadic
2624         arguments implementation.
2625
2626 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2627
2628         * config/nds32/nds32-predicates.c
2629         (nds32_valid_stack_push_pop): Rename to ...
2630         (nds32_valid_stack_push_pop_p): ... this.
2631         * config/nds32/nds32-protos.h: Likewise.
2632         * config/nds32/predicates.md: Likewise.
2633
2634 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2635
2636         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2637         (nds32_emit_stack_v3push): ... this.
2638         (nds32_gen_stack_v3pop): Rename to ...
2639         (nds32_emit_stack_v3pop): ... this and consider CFA restore
2640         information.
2641
2642 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2643
2644         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2645         (nds32_emit_stack_push_multiple): ... this.
2646         (nds32_gen_stack_pop_multiple): Rename to ...
2647         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2648         information.
2649
2650 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2651
2652         PR target/61078
2653         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2654         and add a second splitter to handle the remaining cases.
2655
2656 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2657
2658         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2659
2660 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2661
2662         * cfgexpand.c (label_rtx_for_bb): Change type to
2663         hash_map<basic_block, rtx_code_label *> *.
2664         (expand_gimple_basic_block): Adjust.
2665         (pass_expand::execute): Likewise.
2666
2667 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2668
2669         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2670         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2671         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2672         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2673         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2674         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2675         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2676         of rtx.
2677
2678 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2679
2680         * alloc-pool.c: Include coretypes.h.
2681         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2682         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2683         hash_set instead of htab.
2684         * ggc-page.c (in_gc): New variable.
2685         (ggc_free): Do nothing if a collection is taking place.
2686         (ggc_collect): Set in_gc appropriately.
2687         * ggc.h (gt_ggc_mx(const char *)): New function.
2688         (gt_pch_nx(const char *)): Likewise.
2689         (gt_ggc_mx(int)): Likewise.
2690         (gt_pch_nx(int)): Likewise.
2691         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2692         (hash_map::hash_entry::pch_nx): Likewise.
2693         (hash_map::hash_entry::pch_nx_helper): Likewise.
2694 (hash_map::hash_map): Adjust.
2695 (hash_map::create_ggc): New function.
2696 (gt_ggc_mx): Likewise.
2697 (gt_pch_nx): Likewise.
2698         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2699 (default_hashset_traits::pch_nx): Likewise.
2700 (hash_set::hash_entry::ggc_mx): Likewise.
2701 (hash_set::hash_entry::pch_nx): Likewise.
2702 (hash_set::hash_entry::pch_nx_helper): Likewise.
2703 (hash_set::hash_set): Adjust.
2704 (hash_set::create_ggc): New function.
2705 (hash_set::elements): Likewise.
2706 (gt_ggc_mx): Likewise.
2707 (gt_pch_nx): Likewise.
2708         * hash-table.h (hash_table::hash_table): Adjust.
2709 (hash_table::m_ggc): New member.
2710         (hash_table::~hash_table): Adjust.
2711         (hash_table::expand): Likewise.
2712         (hash_table::empty): Likewise.
2713 (gt_ggc_mx): New function.
2714         (hashtab_entry_note_pointers): Likewise.
2715 (gt_pch_nx): Likewise.
2716
2717 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2718
2719         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
2720         built-in definition.
2721         (XVCVUXDDP_SCALE): Likewise.
2722         (XVCVDPSXDS_SCALE): Likewise.
2723         (XVCVDPUXDS_SCALE): Likewise.
2724         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
2725         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2726         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2727         VSX_BUILTIN_XVCVDPUXDS_SCALE.
2728         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2729         prototype.
2730         * config/rs6000/rs6000.c (real.h): New include.
2731         (rs6000_scale_v2df): New function.
2732         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2733         (UNSPEC_VSX_XVCVUXDDP): Likewise.
2734         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2735         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2736         (vsx_xvcvsxddp_scale): New define_expand.
2737         (vsx_xvcvsxddp): New define_insn.
2738         (vsx_xvcvuxddp_scale): New define_expand.
2739         (vsx_xvcvuxddp): New define_insn.
2740         (vsx_xvcvdpsxds_scale): New define_expand.
2741         (vsx_xvcvdpsxds): New define_insn.
2742         (vsx_xvcvdpuxds_scale): New define_expand.
2743         (vsx_xvcvdpuxds): New define_insn.
2744         * doc/extend.texi (vec_ctf): Add new prototypes.
2745         (vec_cts): Likewise.
2746         (vec_ctu): Likewise.
2747         (vec_splat): Likewise.
2748         (vec_div): Likewise.
2749         (vec_mul): Likewise.
2750
2751 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2752
2753         PR target/62275
2754         * config/arm/neon.md
2755         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2756         <v_cmp_result>): New pattern.
2757         * config/arm/iterators.md (NEON_VCVT): New int iterator.
2758         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2759         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2760         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2761         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2762         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2763
2764 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2765
2766         PR target/62275
2767         * config/arm/iterators.md (FIXUORS): New code iterator.
2768         (VCVT): New int iterator.
2769         (su_optab): New code attribute.
2770         (su): Likewise.
2771         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2772
2773 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2774
2775         * config/aarch64/predicates.md (aarch64_comparison_operation):
2776         New special predicate.
2777         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2778         aarch64_comparison_operation instead of matching an operator.
2779         Update operand numbers.
2780         (csinc3<mode>_insn): Likewise.
2781         (*csinv3<mode>_insn): Likewise.
2782         (*csneg3<mode>_insn): Likewise.
2783         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2784         * config/aarch64/aarch64.c (aarch64_get_condition_code):
2785         Return -1 instead of aborting on invalid condition codes.
2786         (aarch64_print_operand): Update aarch64_get_condition_code callsites
2787         to assert that the returned condition code is valid.
2788         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2789
2790 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
2791
2792         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2793         tree.def, and gimple.def
2794
2795 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
2796             Balaji V. Iyer  <balaji.v.iyer@intel.com>
2797             Igor Zamyatin  <igor.zamyatin@intel.com>
2798
2799         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2800         (__cilkrts_cilk_for_64): Likewise.
2801         * cilk-common.c (declare_cilk_for_builtin): New function.
2802         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2803         __cilkrts_cilk_for_64 bultins.
2804         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2805         CILK_TI_F_LOOP_64.
2806         (cilk_for_32_fndecl): New define.
2807         (cilk_for_64_fndecl): Likewise.
2808         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2809         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2810         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2811         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2812         GF_OMP_FOR_COMBINED_INTO.
2813         * gimplify.c (gimplify_scan_omp_clauses): Added
2814         OMP_CLAUSE__CILK_FOR_COUNT_ case.
2815         (gimplify_adjust_omp_clauses): Ditto.
2816         (gimplify_omp_for): Added CILK_FOR case.
2817         (gimplify_expr): Ditto.
2818         * omp-low.c: Include cilk.h.
2819         (extract_omp_for_data): Set appropriate kind for
2820         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2821         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2822         (create_omp_child_function_name): Added second argument to handle
2823         cilk_for case.
2824         (cilk_for_check_loop_diff_type): New function.
2825         (expand_cilk_for_call): Likewise.
2826         (expand_cilk_for): Likewise.
2827         (create_omp_child_function): Set cilk_for_count; handle the cases when
2828         it is true; call create_omp_child_function_name with second argument.
2829         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2830         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2831         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2832         * tree-nested.c (convert_nonlocal_omp_clauses): Added
2833         OMP_CLAUSE__CILK_FOR_COUNT_ case.
2834         (convert_local_omp_clauses): Ditto.
2835         * tree-pretty-print.c (dump_omp_clause): Added
2836         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2837         (dump_generic_node): Added CILK_FOR case.
2838         * tree.c (omp_clause_num_ops): New element
2839         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2840         (omp_clause_code_name): New element _Cilk_for_count_.
2841         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2842         * tree.def: Add tree code for CILK_FOR.
2843
2844 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2845
2846         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2847         (ppc403-compare): Add "exts with dot" case.
2848         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2849         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2850         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2851         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2852         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2853         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2854         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2855         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2856         cell-cmp-microcoded): Similarly.
2857         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2858         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2859         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2860         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2861         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2862         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2863         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2864         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2865         (power6-compare): Add "exts with dot" case.
2866         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2867         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2868         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2869
2870         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2871         if avoiding Cell microcode.
2872         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2873         (is_cracked_insn): Ditto.
2874         (insn_must_be_first_in_group): Ditto.
2875         * config/rs6000/rs6000.md (dot): Adjust comment.
2876         (cell_micro): Handle exts+dot.
2877         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2878         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2879         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2880         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2881         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2882         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2883         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2884
2885 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2886
2887         * config/rs6000/rs6000.md (QHSI): Delete.
2888         (EXTQI, EXTHI, EXTSI): New mode iterators.
2889         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2890         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2891         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2892         9 anonymous instructions, and 8 splitters): Delete.
2893         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2894         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2895         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2896         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2897         *zero_extendsi<mode>2_dot2): New.
2898
2899 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2900
2901         * config/rs6000/rs6000.md (any_extend): New code iterator.
2902         (u, su): New code attributes.
2903         (dmode, DMODE): New mode attributes.
2904         (<su>mul<mode>3_highpart): New.
2905         (*<su>mul<mode>3_highpart): New.
2906         (<su>mulsi3_highpart_le): New.
2907         (<su>muldi3_highpart_le): New.
2908         (<su>mulsi3_highpart_64): New.
2909         (<u>mul<mode><dmode>3): New.
2910         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2911         splitters): Delete.
2912         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2913         splitters): Delete.
2914
2915 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2916
2917         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2918         *mulsi3_internal2, and two splitters): Delete.
2919         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2920         Delete.
2921         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2922
2923 2014-09-02  Richard Biener  <rguenther@suse.de>
2924
2925         PR tree-optimization/62695
2926         * tree-ssa-structalias.c (find_func_clobbers): Add missing
2927         vector truncate.
2928
2929 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
2930
2931         PR target/62312
2932         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2933
2934 2014-09-01  Andi Kleen  <ak@linux.intel.com>
2935
2936         * file-find.c (add_prefix_begin): Add.
2937         (do_add_prefix): Rename from add_prefix with first argument.
2938         (add_prefix): Add new wrapper.
2939         * file-find.h (add_prefix_begin): Add.
2940         * gcc-ar.c (main): Support -B option.
2941
2942 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2943
2944         * genemit.c: Include dumpfile.h.
2945         (gen_split): Print name of splitter function to dump file.
2946
2947 2014-09-01  Richard Biener  <rguenther@suse.de>
2948
2949         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2950         Use stack auto_vecs for constraint expressions.
2951         (find_func_aliases_for_call): Likewise.
2952         (find_func_aliases): Likewise.
2953         (find_func_clobbers): Likewise.
2954
2955 2014-09-01  Richard Biener  <rguenther@suse.de>
2956
2957         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2958         operands vector in most cases.  Remove redundant code.
2959
2960 2014-09-01  Olivier Hainque  <hainque@adacore.com>
2961
2962         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2963         $WIND_BASE instead of designating a harcoded arbitrary home dir.
2964         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2965
2966 2014-09-01  Richard Biener  <rguenther@suse.de>
2967
2968         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2969         copy_reference_ops_from_call, vn_nary_op_compute_hash,
2970         vn_reference_compute_hash, vn_reference_insert): Remove.
2971         (vn_reference_lookup_call): New function.
2972         * tree-ssa-sccvn.c (vn_reference_compute_hash,
2973         copy_reference_ops_from_ref, copy_reference_ops_from_call,
2974         vn_reference_insert, vn_nary_op_compute_hash): Make static.
2975         (create_reference_ops_from_call): Remove.
2976         (vn_reference_lookup_3): Properly update shared_lookup_references.
2977         (vn_reference_lookup_pieces): Assert that we updated
2978         shared_lookup_references properly.
2979         (vn_reference_lookup): Likewise.
2980         (vn_reference_lookup_call): New function.
2981         (visit_reference_op_call): Use it.  Avoid re-building the
2982         reference ops.
2983         (visit_reference_op_load): Remove redundant lookup.
2984         (visit_reference_op_store): Perform special tail-merging work
2985         only when possibly doing tail-merging.
2986         (visit_use): Likewise.
2987         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2988
2989 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
2990
2991         PR target/62025
2992         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2993         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2994         (find_inc): Revert 2014-08-13 change.
2995
2996 2014-09-01  Marek Polacek  <polacek@redhat.com>
2997
2998         PR middle-end/61903
2999         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
3000         Change the type of V to unsigned HOST_WIDE_INT.
3001
3002 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3003
3004         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
3005         the size of byte markers.
3006         (do_shift_rotate): Fix confusion between host, target and marker byte
3007         size.
3008         (verify_symbolic_number_p): Likewise.
3009         (find_bswap_or_nop_1): Likewise.
3010         (find_bswap_or_nop): Likewise.
3011
3012 2014-09-01  Olivier Hainque  <hainque@adacore.com>
3013
3014         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
3015         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
3016
3017 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
3018
3019         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
3020         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
3021         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
3022
3023 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
3024
3025         PR sanitizer/61897
3026         PR sanitizer/62140
3027         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
3028         (build_check_stmt): Likewise.
3029         (instrument_strlen_call): Likewise.
3030         (asan_expand_check_ifn): Likewise and fix types.
3031         (maybe_cast_to_ptrmode): New function.
3032
3033 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3034
3035         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
3036
3037 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
3038
3039         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
3040
3041 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
3042
3043         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
3044         prefix to function labels when generating fast indirect calls.
3045
3046 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
3047
3048         PR bootstrap/62304
3049
3050         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
3051         param back from rtx_insn * to rtx.  Rename param from "label" to
3052         "label_or_return", reintroducing "label" as an rtx_insn * after
3053         we've ensured it's not a RETURN.
3054         (first_active_target_insn): Likewise for return type and param;
3055         add a checked cast to rtx_insn * once we've ensured "insn" is not
3056         a RETURN.
3057         (steal_delay_list_from_target): Convert param "pnew_thread" back
3058         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
3059         with JUMP_LABEL.
3060         (own_thread_p): Convert param "thread" back from an rtx_insn * to
3061         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
3062         cast once we've established we're not dealing with a RETURN,
3063         renaming subsequent uses of "thread" to "thread_insn".
3064         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
3065         to JUMP_LABEL.
3066         (follow_jumps): Convert return type and param "label" from
3067         rtx_insn * back to rtx.  Move initialization of "value" to after
3068         the handling for ANY_RETURN_P, adding a checked cast there to
3069         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
3070         rename to "this_label_or_return", reintroducing "this_label" as
3071         an rtx_insn * once we've handled the case where it could be an
3072         ANY_RETURN_P.
3073         (fill_slots_from_thread): Rename param "thread" to
3074         "thread_or_return", converting from an rtx_insn * back to an rtx.
3075         Reintroduce name "thread" as an rtx_insn * local with a checked
3076         cast once we've handled the case of it being an ANY_RETURN_P.
3077         Convert local "new_thread" from an rtx_insn * back to an rtx.
3078         Add a checked cast when assigning to "trial" from "new_thread".
3079         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
3080         checked cast to rtx_insn * from "new_thread" when invoking
3081         get_label_before.
3082         (fill_eager_delay_slots): Convert locals "target_label",
3083         "insn_at_target" from rtx_insn * back to rtx.
3084         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
3085         (relax_delay_slots): Convert locals "trial", "target_label" from
3086         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
3087         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
3088         invoking update_block.
3089         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
3090         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
3091
3092         * resource.h (mark_target_live_regs): Undo erroneous conversion
3093         of second param of r214693, converting it back from rtx_insn * to
3094         rtx, since it could be a RETURN.
3095
3096         * resource.c (find_dead_or_set_registers): Similarly, convert
3097         param "jump_target" back from an rtx_insn ** to an rtx *, as we
3098         could be writing back a RETURN.  Rename local rtx_insn * "next" to
3099         "next_insn", and introduce "lab_or_return" as a local rtx,
3100         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
3101         (mark_target_live_regs): Undo erroneous conversion
3102         of second param of r214693, converting it back from rtx_insn * to
3103         rtx, since it could be a RETURN.  Rename it from "target" to
3104         "target_maybe_return", reintroducing the name "target" as a local
3105         rtx_insn * with a checked cast, after we've handled the case of
3106         ANY_RETURN_P.
3107
3108 2014-08-29  DJ Delorie  <dj@redhat.com>
3109
3110         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
3111         pointer size up to a power of two.
3112         * defaults.h (DWARF2_ADDR_SIZE): Round up.
3113         (POINTER_SIZE_UNITS): New, rounded up value.
3114         * dwarf2asm.c (size_of_encoded_value): Use it.
3115         (dw2_output_indirect_constant_1): Likewise.
3116         * expmed.c (init_expmed_one_conv): We now know the sizes of
3117         partial int modes.
3118         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
3119         * optabs.c (expand_float): Use precision, not size.
3120         (expand_fix): Likewise.
3121         * simplify-rtx (simplify_unary_operation_1): Likewise.
3122         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3123         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
3124         (default_assemble_integer) Likewise.
3125         (dump_tm_clone_pairs): Likewise.
3126         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
3127         * var-tracking.c (adjust_mems): Allow partial-int modes also.
3128         (prepare_call_arguments): Likewise.
3129         * stor-layout.c (finalize_type_size): Preserve precision.
3130         (layout_type): Use precision, not size.
3131
3132         * expr.c (convert_move): If the target has an explicit converter,
3133         use it.
3134
3135 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
3136
3137         * gdbinit.in: Skip various inline functions in rtl.h when
3138         stepping.
3139
3140 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
3141
3142         PR bootstrap/62301
3143         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
3144
3145 2014-08-29  Richard Biener  <rguenther@suse.de>
3146
3147         PR tree-optimization/62291
3148         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
3149         exactly the vector size needed and use quick_push.
3150         (phi_translate_1): Adjust comment.
3151         (valid_in_sets): Remove block argument and remove pointless
3152         checking of NAMEs.
3153         (dependent_clean): Adjust for removal of block argument.
3154         (clean): Likewise.
3155         (compute_antic_aux): Likewise.
3156         (compute_partial_antic_aux): Likewise.
3157
3158 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3159             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3160             Anna Tikhonova  <anna.tikhonova@intel.com>
3161             Ilya Tocar  <ilya.tocar@intel.com>
3162             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3163             Ilya Verbin  <ilya.verbin@intel.com>
3164             Kirill Yukhin  <kirill.yukhin@intel.com>
3165             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3166
3167         * config/i386/sse.md
3168         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
3169         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
3170         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
3171         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
3172
3173 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3174             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3175             Anna Tikhonova  <anna.tikhonova@intel.com>
3176             Ilya Tocar  <ilya.tocar@intel.com>
3177             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3178             Ilya Verbin  <ilya.verbin@intel.com>
3179             Kirill Yukhin  <kirill.yukhin@intel.com>
3180             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3181
3182         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
3183         * config/i386/sse.md
3184         (define_mode_iterator VI4_128_8_256): New.
3185         (define_mode_iterator VI2_128_4_256): Ditto.
3186         (define_mode_iterator PMOV_DST_MODE): Rename into
3187         (define_mode_iterator PMOV_DST_MODE_1): this.
3188         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
3189         Use PMOV_DST_MODE_1 mode iterator.
3190         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3191         Ditto.
3192         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3193         Ditto.
3194         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
3195         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
3196         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
3197         (define_mode_iterator PMOV_DST_MODE_2): New.
3198         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
3199         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
3200         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
3201         Ditto.
3202         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
3203         (define_mode_attr pmov_dst_3): Ditto.
3204         (define_mode_attr pmov_dst_zeroed_3): Ditto.
3205         (define_mode_attr pmov_suff_3): Ditto.
3206         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
3207         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
3208         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
3209         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
3210         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
3211         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
3212         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
3213         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
3214         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
3215         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
3216         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
3217         (define_mode_attr pmov_dst_4): Ditto.
3218         (define_mode_attr pmov_dst_zeroed_4): Ditto.
3219         (define_mode_attr pmov_suff_4): Ditto.
3220         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
3221         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
3222         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
3223         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
3224         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
3225         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
3226         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
3227         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
3228         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
3229         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
3230         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
3231
3232 2014-08-29  Richard Biener  <rguenther@suse.de>
3233
3234         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
3235         NON_LVALUE_EXPR in gimple.
3236
3237 2014-08-29  Richard Biener  <rguenther@suse.de>
3238
3239         PR middle-end/62292
3240         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
3241         from previous refactoring.
3242         (gimple_fold_builtin_strncpy): Likewise.
3243
3244 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
3245
3246         PR bootstrap/62300
3247         * function.c (assign_parm_setup_reg): Remove erroneous checked
3248         cast to rtx_insn * on result of gen_extend_insn in favor of
3249         introducing a new local rtx "pat".
3250
3251 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3252
3253         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
3254         to silence warning.
3255         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
3256
3257 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3258
3259         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
3260         (next_insn): Likewise.
3261         * emit-rtl.c (next_insn): Likewise.
3262         (previous_insn): Likewise.
3263         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
3264         "insn" and "next" from rtx to rtx_insn *.
3265         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
3266         "insn", "insn1", "vliw_start",  "prologue_end_note",
3267         "last_insn_in_packet".
3268
3269 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3270
3271         * shrink-wrap.h (active_insn_between): Strengthen both params from
3272         rtx to rtx_insn *.
3273         * function.c (active_insn_between): Likewise.
3274
3275 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3276
3277         * genattr.c (main): When writing out insn-attr.h, strengthen param
3278         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
3279         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
3280         writing out the definition of dfa_clear_single_insn_cache to the
3281         generated insn-automata.c
3282
3283 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3284
3285         * resource.h (clear_hashed_info_for_insn): Strengthen param from
3286         rtx to rtx_insn *.
3287         (incr_ticks_for_insn): Likewise.
3288         (init_resource_info): Likewise.
3289
3290         * resource.c (init_resource_info): Likewise.
3291         (clear_hashed_info_for_insn): Likewise.
3292         (incr_ticks_for_insn): Likewise.
3293
3294         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
3295         rtx to rtx_insn *.
3296         (steal_delay_list_from_target): Use methods of "seq".
3297         (try_merge_delay_insns): Use methods of "merged_insns".
3298         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
3299         (reorg_redirect_jump): Likewise for param "jump".
3300
3301 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3302
3303         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
3304         rtx to rtx_insn *.
3305         * config/s390/s390.c (s390_split_branches): Eliminate top-level
3306         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
3307         "set_insn".
3308         (s390_mainpool_finish): In three places, split out a local rtx
3309         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
3310         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
3311          and split another local rtx "insn" out into rtx "pat" and
3312         rtx_insn * "insn".
3313         * config/sh/sh.c (output_branchy_insn): Rather than working
3314         directly on operands[9], introduce local rtx_code_label *
3315         variables named "lab" in two places, working on them, and then
3316         assigning them to operands[9], so that the intervening operations
3317         are known by the type system to be on insns.
3318
3319 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3320
3321         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
3322         const rtx_insn *.
3323
3324         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
3325         in invocation of INSN_HAS_LOCATION.
3326
3327 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3328
3329         * config/rs6000/altivec.h (vec_xl): New #define.
3330         (vec_xst): Likewise.
3331         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
3332         (XXSPLTD_V2DI): Likewise.
3333         (DIV_V2DI): Likewise.
3334         (UDIV_V2DI): Likewise.
3335         (MUL_V2DI): Likewise.
3336         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3337         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
3338         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
3339         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
3340         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
3341         (UNSPEC_VSX_DIVSD): Likewise.
3342         (UNSPEC_VSX_DIVUD): Likewise.
3343         (UNSPEC_VSX_MULSD): Likewise.
3344         (vsx_mul_v2di): New insn-and-split.
3345         (vsx_div_v2di): Likewise.
3346         (vsx_udiv_v2di): Likewise.
3347         (vsx_xxspltd_<mode>): New insn.
3348
3349 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3350
3351         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
3352         NEXT_INSN.
3353         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
3354         (NEXT_INSN): Likewise.
3355         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
3356         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
3357         const rtx_insn *.
3358         (no_labels_between_p): Likewise for both params.
3359
3360         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
3361         cast when using NEXT_INSN on operands[2].
3362         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
3363         "insn" from rtx to rtx_insn *, adding a checked cast.
3364         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
3365         rtx_insn *.
3366         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
3367         for third param.
3368         (arc_text_label): Likewise for param "insn".
3369         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
3370         "insn".
3371         (arc_ccfsm_record_condition): Likewise for param "jump".
3372         (arc_text_label): Likewise for local "label".
3373         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
3374         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
3375         a method for typesafety.  Add a checked cast.
3376         * config/arc/constraints.md (Clb): Add a checked cast when getting
3377         the CODE_LABEL from a LABEL_REF.
3378         * config/arm/arm.c (require_pic_register): Strengthen locals
3379         "seq", "insn" from rtx to rtx_insn *.
3380         (create_fix_barrier): Likewise for locals "selected", "next".
3381         (thumb1_reorg): Likewise for locals "prev", "insn".
3382         (arm_expand_prologue): Likewise for local "last".
3383         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
3384         operands[0].
3385         (thumb2_output_casesi): Likewise for operands[2].
3386         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
3387         strengthen local "insn" from rtx to rtx_insn *.
3388         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
3389         type and param "insn".
3390         (find_prev_insn_start): Likewise.
3391         (hwloop_optimize): Likewise for locals "insn", "last_insn",
3392         "prev".
3393         (gen_one_bundle): Likewise for loal "t".
3394         (find_load): Likewise for param "insn".
3395         (workaround_speculation): Likewise for locals "insn", "next",
3396         "target", "next_tgt".
3397         * config/c6x/c6x.c (assign_reservations): Likewise for both params
3398         and for locals "insn", "within", "last".
3399         (count_unit_reqs): Likewise for params "head", "tail" and local
3400         "insn".
3401         (try_rename_operands): Likewise for params "head", "tail".
3402         (reshuffle_units): Likewise for locals "head", "tail", "insn".
3403         (struct c6x_sched_context): Likewise for fields
3404         "last_scheduled_insn", "last_scheduled_iter0".
3405         (init_sched_state): Replace NULL_RTX with NULL.
3406         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
3407         to rtx_insn *.
3408         (undo_split_delayed_nonbranch): Likewise for param and for local
3409         "prev".
3410         (conditionalize_after_sched): Likewise for local "insn".
3411         (bb_earliest_end_cycle): Likewise.
3412         (filter_insns_above): Likewise for locals "insn", "next".
3413         (hwloop_optimize): Remove redundant checked cast.
3414         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
3415         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
3416         NULL_RTX with NULL.
3417         (cris_simple_epilogue): Likewise.
3418         (cris_expand_prologue): Likewise.
3419         (cris_expand_epilogue): Likewise.
3420         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
3421         local "insn" from rtx to rtx_insn *.
3422         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
3423         (struct frv_packet_group): Likewise for the elements within array
3424         fields "insns", "sorted", and for field "nop".
3425         (frv_packet): Likewise for the elements within array field
3426         "insns".
3427         (frv_add_insn_to_packet): Likewise for param "insn".
3428         (frv_insert_nop_in_packet): Likewise for param "insn" and local
3429         "last".
3430         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
3431         (frv_sort_insn_group_1): Likewise for local "insn".
3432         (frv_optimize_membar_local): Likewise.
3433         (frv_align_label): Likewise for locals "x", "last", "barrier",
3434         "label".
3435         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
3436         local.
3437         (ia64_sched_init): Likewise for local "insn".
3438         (scheduled_good_insn): Likewise for param "last".
3439         (struct _ia64_sched_context): Likewise for field
3440         "last_scheduled_insn".
3441         (ia64_init_sched_context): Replace NULL_RTX with NULL.
3442         (struct bundle_state): Likewise for field "insn".
3443         (issue_nops_and_insn): Likewise for param "insn".
3444         (get_next_important_insn): Likewise for return type and both
3445         params.
3446         (ia64_add_bundle_selector_before): Likewise for param "insn".
3447         (bundling): Likewise for params "prev_head_insn", "tail" and
3448         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
3449         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
3450         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
3451         Strengthen final param from rtx to rtx_insn *.
3452         (iq2000_move_1word): Likewise for second param.
3453         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
3454         param "cur_insn" and local "next_insn".
3455         (iq2000_move_1word): Likewise for param "insn".
3456         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
3457         casts when using NEXT_INSN on operands[1].
3458         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
3459         "insn" from rtx to rtx_insn *.
3460         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
3461         "x", introducing local rtx_insn * "insn" for when working with the
3462         CODE_LABEL of the LABEL_REF.
3463         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
3464         rtx_insn *.
3465         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
3466         param.
3467         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
3468         type.
3469         (conditionalize_block): Likewise for return type and param.
3470         (mcore_is_dead): Likewise for param "first" and local "insn".
3471         (emit_new_cond_insn): Likewise for return type.
3472         (conditionalize_block): Likewise for return type, param, and
3473         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
3474         "newinsn".
3475         (conditionalize_optimization): Likewise for local "insn".
3476         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
3477         using NEXT_INSN.
3478         * config/microblaze/microblaze.md: Add checked casts when using
3479         NEXT_INSN.
3480         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3481         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3482         and rtx_insn * "insn".
3483         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3484         checked cast when using NEXT_INSN on operands[2].
3485         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3486         local "insn" from rtx to rtx_insn *.
3487         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3488         Likewise.
3489         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3490         Add a checked cast when using NEXT_INSN on operands[1].
3491         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3492         rtx to rtx_insn *.
3493         (pa_output_cbranch): Likewise for final param.
3494         (pa_output_lbranch): Likewise for second param.
3495         (pa_output_bb): Likewise for third param.
3496         (pa_output_bvb): Likewise.
3497         (pa_output_dbra): Likewise for second param.
3498         (pa_output_movb): Likewise.
3499         (pa_output_parallel_movb): Likewise.
3500         (pa_output_parallel_addb): Likewise.
3501         (pa_output_millicode_call): Likewise for first param.
3502         (pa_output_mul_insn): Likewise for second param.
3503         (pa_output_div_insn): Likewise for third param.
3504         (pa_output_mod_insn): Likewise for second param.
3505         (pa_jump_in_call_delay): Likewise for param.
3506         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3507         (pa_output_div_insn): Likewise.
3508         (pa_output_mod_insn): Likewise.
3509         (pa_output_cbranch): Likewise.
3510         (pa_output_lbranch): Likewise.
3511         (pa_output_bb): Likewise.
3512         (pa_output_bvb): Likewise.
3513         (pa_output_dbra): Likewise.
3514         (pa_output_movb): Likewise.
3515         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3516         to simplify and for typesafety.
3517         (pa_output_call): Use method of rtx_sequence *.
3518         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3519         (pa_jump_in_call_delay): Likewise.
3520         (pa_output_parallel_movb): Likewise.
3521         (pa_output_parallel_addb): Likewise.
3522         (pa_following_call): Likewise.
3523         (pa_combine_instructions): Likewise for locals "anchor",
3524         "floater".
3525         (pa_can_combine_p): Likewise for params "anchor", "floater" and
3526         locals "start", "end".
3527         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3528         param "insn" and local "local_insn".
3529         (picochip_final_prescan_insn): Likewise for local "local_insn".
3530         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3531         local "insn".
3532         (uses_TOC): Likewise.
3533         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3534         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3535         splitting out to more tightly-scoped locals, 3 as rtx and one as
3536         rtx_insn *.
3537         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3538         to rtx_insn *.
3539         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3540         where needed.
3541         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3542         to rtx_insn *.
3543         (fixup_addr_diff_vecs): Likewise.
3544         (reg_unused_after): Likewise for param 2.
3545         (sh_can_redirect_branch): Likewise for both params.
3546         (check_use_sfunc_addr): Likewise for param 1.
3547         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3548         (find_barrier): Likewise for local "last_got".
3549         (gen_block_redirect): Likewise for return type, param "jump" and
3550         locals "prev", "scan", "next", "insn".
3551         (struct far_branch): Likewise for fields "near_label",
3552         "insert_place", "far_label".
3553         (gen_far_branch): Likewise for local "jump".
3554         (fixup_addr_diff_vecs): Likewise for param "first" and locals
3555         "insn", "prev".
3556         (barrier_align): Likewise for param and for locals "prev", "x".
3557         Introduce local rtx_sequence * "prev_seq" and use insn method for
3558         typesafety and clarity.
3559         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3560         (get_dest_uid): Likewise for local "dest".
3561         (split_branches): Likewise for locals "next", "beyond", "label",
3562         "block", "far_label".  Add checked casts when assigning to
3563         bp->far_label and "far_label".
3564         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3565         (sequence_insn_p): Likewise.
3566         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
3567         more loop-scoped rtx "insn" when walking LABEL_REFS.
3568         (sh_can_redirect_branch): Strengthen both params from rtx to
3569         rtx_insn *.
3570         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
3571         new local rtx_sequence * "seq" via a dyn_cast, and use a method
3572         for clarity and typesafety.
3573         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3574         "insn" from rtx to rtx_insn *.
3575         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3576         when using NEXT_INSN on the CODE_LABEL in operands[2].
3577         (define_insn "casesi_worker_2"): Likewise.
3578         (define_insn "casesi_shift_media"): Likewise.
3579         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3580         operands[3].
3581         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3582         Strengthen field "insn" from rtx to rtx_insn *.
3583         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3584         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3585         param "start_insn" and local "start_insn".
3586         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3587         field "insn".
3588         (find_set_of_reg_bb): Likewise for param "insn".
3589         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3590         (trace_reg_uses): Likewise for param "start_insn".
3591         (sh_treg_combine::cbranch_trace): Likewise for field
3592         "cbranch_insn".
3593         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3594         param "insn".
3595         (sh_treg_combine::record_set_of_reg): Likewise for param
3596         "start_insn" and local "i".
3597         (sh_treg_combine::can_remove_cstore): Likewise for local
3598         "prev_insn".
3599         (sh_treg_combine::try_optimize_cbranch): Likewise for param
3600         "insn".
3601         (sh_treg_combine::execute): Likewise for local "i".
3602         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3603         param.
3604         (sparc_check_64): Likewise for second param.
3605         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3606         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
3607         dyn_cast, using its insn method for typesafety and clarity.
3608         (empty_delay_slot): Strengthen param "insn" from rtx to
3609         rtx_insn *.
3610         (set_extends): Likewise.
3611         (sparc_check_64): Likewise.
3612         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3613         for locals "seq", "last_insn".
3614         (combine_bnp): Likewise for param "insn".
3615         (xstormy16_reorg): Likewise for local "insn".
3616         * config/v850/v850.c (substitute_ep_register): Likewise for params
3617         "first_insn", "last_insn" and local "insn".
3618         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3619         elements of "regs" array, and local "insn".
3620         * except.c (emit_note_eh_region_end): Likewise for param "insn".
3621         * final.c (final_sequence): Strengthen this global from rtx to
3622         rtx_sequence *.
3623         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3624         rtx_insn *.
3625         (final_scan_insn): Update assignment to "final_sequence" to be
3626         from "seq", the cast version of "body", for type-safety.
3627         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3628         "insns" from rtx to rtx_insn *.
3629         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3630         * genattr.c (main): When writing out generated insn-attr.h,
3631         strengthen params 1 and 3 of eligible_for_delay,
3632         eligible_for_annul_true, eligible_for_annul_false from rtx to
3633         rtx_insn *.
3634         * genattrtab.c (write_eligible_delay): Likewise when writing out
3635         generated insn-attrtab.c; also local "insn" the generated
3636         functions.
3637         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3638         to rtx_insn *.
3639         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3640         "start_label" from rtx to rtx_insn *.
3641         * ira.c (decrease_live_ranges_number): Likewise for local "p".
3642         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3643         "insns" and local "insn".
3644         (validate_equiv_mem): Likewise for param "start" and local "insn".
3645         (memref_used_between_p): Likewise for params "start", "end" and
3646         local "insn".
3647         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3648         final param.
3649         * loop-doloop.c (doloop_optimize): Within region guarded by
3650         INSN_P (doloop_pat), introduce a new local rtx_insn *
3651         "doloop_insn" via a checked cast, and use it for typesafety,
3652         eventually writing the value back into doloop_pat.
3653         * output.h (final_sequence): Strengthen this global from rtx to
3654         rtx_sequence *.
3655         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3656         reintroducing "insn" as an rtx_insn * via a checked cast.
3657         Strengthen param "attempt" and local "new_insn"from rtx to
3658         rtx_insn *.
3659         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3660         to rtx_insn *.
3661         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3662         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3663         "p" in favor of more tightly-scoped replacements, sometimes rtx
3664         and sometimes rtx_insn *, as appropriate.
3665         (delete_output_reload): Eliminate top-level rtx "i1", splitting
3666         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3667         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
3668         local "trial" from rtx to rtx_insn *.
3669         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3670         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
3671         rtx_sequence * and use methods for clarity and typesafety.
3672         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3673         rtx to rtx_insn *.  Strenghten local "li" from rtx to
3674         rtx_insn_list * and use its methods for clarity and typesafety.
3675         (steal_delay_list_from_target): Strengthen param "insn" from rtx
3676         to rtx_insn *.
3677         (steal_delay_list_from_fallthrough): Likewise.
3678         (try_merge_delay_insns): Likewise for param "thread" and locals
3679         "trial", "next_trial", "delay_insn".
3680         (redundant_insn): Likewise for param "target" and local "trial".
3681         (own_thread_p): Likewise for param "thread" and locals
3682         "active_insn", "insn".
3683         (get_label_before): Likewise for param "insn".
3684         (fill_simple_delay_slots): Likewise for local "new_label"; use
3685         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3686         (label_before_next_insn): Strengthen return type and local "insn"
3687         from rtx to rtx_insn *.
3688         (relax_delay_slots): Likewise for locals "other", "tmp".
3689         (make_return_insns): Likewise for param "first" and locals "insn",
3690         "jump_insn", "prev".  Move declaration of "pat" to its assignment
3691         and strengthen from rtx to rtx_sequence *.  Use its methods for
3692         clarity and typesafety.
3693         * rtlanal.c (no_labels_between_p): Strengthen params from
3694         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
3695         rtx_insn *.
3696         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3697         from const_rtx to const rtx_insn *.
3698         (reg_set_between_p): Rename param "from_insn" to
3699         "uncast_from_insn", and reintroduce "from_insn" as a
3700         const rtx_insn * via a checked cast.
3701         (modified_between_p): Likewise for param "start" as "uncast_start".
3702         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3703         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3704         "tmp", head" from rtx to rtx_insn *.
3705         (recompute_rev_top_order): Likewise for local "insn".
3706         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3707         * store-motion.c (build_store_vectors): Likewise for local "insn".
3708         Strengthen local "st" from rtx to rtx_insn_list * and use methods
3709         for clarity and typesafety.
3710         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3711         rtx to rtx_insn *.
3712         (computation_cost): Likewise for local "seq".
3713         (get_address_cost): Likewise.
3714
3715 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3716
3717         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3718         const rtx_insn *.
3719         (label_is_jump_target_p): Likewise for second param.
3720
3721         * rtlanal.c (tablejump_p): Likewise for param "insn".
3722         (label_is_jump_target_p): Likewise for param "jump_insn".
3723
3724 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3725
3726         * rtl.h (find_first_parameter_load): Strengthen return type and
3727         both params from rtx to rtx_insn *.
3728         * rtlanal.c (find_first_parameter_load): Strengthen return type,
3729         both params and locals "before", "first_set" from rtx to
3730         rtx_insn *.  Remove now-redundant cast.
3731         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3732
3733 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3734
3735         * rtl.h (find_last_value): Delete.
3736         * rtlanal.c (find_last_value): Delete.
3737
3738 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3739
3740         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3741         from rtx to rtx_insn *.
3742         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3743         rtx "note" with new local rtx_insn * "new_head" when calculating
3744         head insn of new basic block.
3745         * combine.c (combine_split_insns): Strengthen return type and local
3746         "ret" from rtx to rtx_insn *.
3747         (likely_spilled_retval_p): Likewise for locals "use" and "p".
3748         (try_combine): Eliminate local "m_split", splitting into new
3749         locals "m_split_insn" and "m_split_pat".
3750         (find_split_point): Strengthen local "seq" from rtx into
3751         rtx_insn *.
3752         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3753         locals "label", "branch".
3754         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3755         for local "insn".
3756         (define_expand "umulsi3_highpart"): Likewise for local "insn".
3757         * dse.c (note_add_store_info): Likewise for fields "first",
3758         "current".
3759         (note_add_store): Likewise for local "insn".
3760         (emit_inc_dec_insn_before): Likewise for locals "insn",
3761         "new_insn", "cur".
3762         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3763         (replace_read): Likewise for locals "insns", "this_insn".
3764         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3765         (notice_eh_throw): Likewise for param "insn".
3766         (before_next_cfi_note): Likewise for return type, param, and local
3767         "prev".
3768         (connect_traces): Likewise for local "note".
3769         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3770         (verify_rtl_sharing): Likewise.
3771         (unshare_all_rtl_in_chain): Likewise for param "insn".
3772         (get_first_nonnote_insn): Likewise for local "insn".
3773         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
3774         "seq" and use its methods to clarify things.
3775         (next_insn): Strengthen return type from rtx to rtx_insn *.
3776         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3777         local rtx_insn * using a checked cast, dropping a checked cast
3778         made redundant by this change.  Use a cast to and method of
3779         rtx_sequence to clarify the code.
3780         (previous_insn): Rename param "insn" to "uncast_insn" and
3781         reintroduce "insn" as a local rtx_insn * using a checked cast,
3782         dropping a checked cast made redundant by this change.  Use a cast
3783         to and method of rtx_sequence to clarify the code.
3784         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3785         reintroduce "insn" as a local rtx_insn * using a checked cast,
3786         dropping a checked cast made redundant by this change.
3787         (next_nonnote_insn_bb): Likewise.
3788         (prev_nonnote_insn): Likewise.
3789         (prev_nonnote_insn_bb): Likewise.
3790         (next_nondebug_insn): Likewise.
3791         (prev_nondebug_insn): Likewise.
3792         (next_nonnote_nondebug_insn): Likewise.
3793         (prev_nonnote_nondebug_insn): Likewise.
3794         (next_real_insn): Likewise.
3795         (prev_real_insn): Likewise.
3796         (next_active_insn): Likewise.
3797         (prev_active_insn): Likewise.
3798         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
3799         clarity.
3800         (prev_cc0_setter): Likewise.
3801         (try_split): Rename param "trial" to "uncast_trial" and
3802         reintroduce "insn" as a local rtx_insn * using a checked cast,
3803         dropping checked casts made redundant by this change.
3804         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3805         rtx to rtx_insn *.
3806         (remove_insn): Rename param "insn" to "uncast_insn" and
3807         reintroduce "insn" as a local rtx_insn * using a checked cast.
3808         (emit_pattern_after_setloc): Likewise for param "after", as
3809         "uncast_after".
3810         (emit_pattern_after): Likewise.  Strengthen local "prev" from
3811         rtx to rtx_insn *.
3812         (emit_pattern_before_setloc): Rename param "before" to
3813         "uncast_before" and reintroduce "before" as a local rtx_insn *
3814         using a checked cast.  Strengthen locals "first", "last" from
3815         rtx to rtx_insn *.
3816         (emit_pattern_before): Likewise rename/cast param "before" to
3817         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3818         * except.c (copy_reg_eh_region_note_forward): Strengthen param
3819         "first" and local "insn" from rtx to rtx_insn *.
3820         (copy_reg_eh_region_note_backward): Likewise for param "last"
3821         and local "insn".
3822         * expr.c (fixup_args_size_notes): Rename param "last" to
3823         "uncast_last" and reintroduce "last" as a local rtx_insn *
3824         using a checked cast.  Strengthen local "insn" from rtx to
3825         rtx_insn *.
3826         * function.c (set_insn_locations): Strengthen param "insn" from
3827         rtx to rtx_insn *.
3828         (record_insns): Likewise for param "insns" and local "tmp".
3829         (active_insn_between): Rename param "tail" to
3830         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3831         using a checked cast.
3832         (thread_prologue_and_epilogue_insns): Split out top-level local
3833         rtx "seq" into three different rtx_insn * locals.  Strengthen
3834         local "prologue_seq" from rtx to rtx_insn *.
3835         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3836         from rtx to rtx_insn *.
3837         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3838         (priority): Likewise for locals "prev_first", "twin".
3839         (setup_insn_max_reg_pressure): Likewise for param "after".
3840         (sched_setup_bb_reg_pressure_info): Likewise.
3841         (no_real_insns_p): Strengthen params from const_rtx to
3842         const rtx_insn *.
3843         (schedule_block): Strengthen local "next_tail" from rtx to
3844         rtx_insn *.
3845         * ifcvt.c (find_active_insn_before): Strengthen return type and
3846         param "insn" from rtx to rtx_insn *.
3847         (find_active_insn_after): Likewise.
3848         (cond_exec_process_insns): Likewise for param "start" and local "insn".
3849         (cond_exec_process_if_block): Likewise for locals "then_start",
3850         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3851         (noce_process_if_block): Likewise for local "jump".
3852         (merge_if_block): Likewise for two locals named "end".
3853         (cond_exec_find_if_block): Likewise for local "last_insn".
3854         * jump.c (delete_related_insns): Rename param "insn" to
3855         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3856         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
3857         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3858         NULL.
3859         (split_reg): Likewise.
3860         * lra.c (lra_process_new_insns): Likewise.
3861         * modulo-sched.c (permute_partial_schedule): Strengthen param
3862         "last" from rtx to rtx_insn *.
3863         * optabs.c (add_equal_note): Likewise for param "insns" and local
3864         "last_insn".
3865         (expand_binop_directly): Add checked casts to rtx_insn * within
3866         NEXT_INSN (pat) uses.
3867         (expand_unop_direct): Likewise.
3868         (maybe_emit_unop_insn): Likewise.
3869         * recog.c (peep2_attempt): Strengthen locals "last",
3870         "before_try", "x" from rtx to rtx_insn *.
3871         * reorg.c (optimize_skip): Strengthen return type and local
3872         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
3873         and locals "trial", "next_trial" from rtx to rtx_insn *.
3874         * resource.c (next_insn_no_annul): Strengthen return type and
3875         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
3876         rtx_sequence to clarify the code.
3877         (mark_referenced_resources): Add a checked cast to rtx_insn *
3878         within PREV_INSN (x).
3879         (find_dead_or_set_registers): Strengthen return type, param
3880         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3881         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
3882         to rtx_insn **.
3883         (mark_target_live_regs): Strengthen params "insns" and "target",
3884         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3885         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
3886         the code.
3887         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3888         from rtx to rtx_insn *.
3889         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3890         from rtx to rtx_insn *.
3891         (copy_reg_eh_region_note_backward): Likewise.
3892         (unshare_all_rtl_in_chain): Likewise for sole param.
3893         (dump_rtl_slim): Strengthen second and third params from const_rtx
3894         to const rtx_insn *.
3895         * sched-deps.c (sched_free_deps): Strengthen params "head" and
3896         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3897         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3898         "next_tail" from rtx to rtx_insn *.
3899         (begin_move_insn): Likewise for local "next".
3900         * sched-int.h (sched_free_deps): Likewise for first and second
3901         params.
3902         (no_real_insns_p): Strengthen both params from const_rtx to
3903         const rtx_insn *.
3904         (sched_setup_bb_reg_pressure_info): Strengthen second params from
3905         rtx to rtx_insn *.
3906         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3907         "next_tail".
3908         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3909         and locals "insn", "tail" from const_rtx to const rtx_insn *.
3910         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3911         rtx_insn *.
3912         (debug_rtl_slim): Strengthen params "first" and "last" from
3913         const_rtx to const rtx_insn *.
3914         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3915         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3916         (convert_to_simple_return): Likewise for param "returnjump".
3917         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3918         "prologue_seq".
3919         (convert_to_simple_return): Likewise for param "returnjump".
3920         * valtrack.c (propagate_for_debug): Likewise for params
3921         "insn", "last".
3922         * valtrack.h (propagate_for_debug): Likewise for second param.
3923
3924 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3925
3926         * output.h (insn_current_reference_address): Strengthen param
3927         from rtx to rtx_insn *.
3928         * final.c (insn_current_reference_address): Likewise.
3929
3930 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3931
3932         * basic-block.h (inside_basic_block_p): Strengthen param from
3933         const_rtx to const rtx_insn *.
3934         * cfgbuild.c (inside_basic_block_p): Likewise.
3935
3936 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3937
3938         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3939         rtx_insn *.
3940         (get_trace_info): Likewise for param "insn".
3941         (save_point_p): Likewise.
3942         (maybe_record_trace_start): Likewise for both params.
3943         (maybe_record_trace_start_abnormal): Likewise.
3944         (create_trace_edges): Likewise for sole param and for three of the
3945         locals named "lab".
3946         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3947         to rtx_insn *, and update a call to pat->element to pat->insn.
3948
3949 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3950
3951         * function.h (struct expr_status): Convert field "x_forced_labels"
3952         from rtx_expr_list * to rtx_insn_list *.
3953
3954         * cfgbuild.c (make_edges): Convert local "x" from an
3955         rtx_expr_list * to an rtx_insn_list *, replacing use of
3956         "element" method with "insn" method.
3957         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3958         * except.c (sjlj_emit_dispatch_table): Replace use of
3959         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3960         forced_labels.
3961         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3962         rtx_expr_list * to an rtx_insn_list *, replacing use of
3963         "element" method with "insn" method.
3964         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3965         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3966         rtx_insn *, adding a checked cast.  Replace use of
3967         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3968         forced_labels.
3969         (expand_label): Likewise for local "label_r".
3970
3971 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3972
3973         * function.h (struct rtl_data): Convert field
3974         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3975         rtx_insn_list *.
3976         * rtl.h (remove_node_from_insn_list): New prototype.
3977
3978         * builtins.c (expand_builtin): When prepending to
3979         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3980         gen_rtx_EXPR_LIST.
3981         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3982         to rtx_insn_list *, and use its "insn" method rather than
3983         "element" method.
3984         * cfgrtl.c (delete_insn): Use new function
3985         remove_node_from_insn_list rather than
3986         remove_node_from_expr_list.
3987         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3988         to rtx_insn_list *, and use its "insn" method rather than
3989         "element" method.
3990         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3991         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3992         * rtlanal.c (remove_node_from_insn_list): New function, adapted
3993         from remove_node_from_expr_list.
3994         * stmt.c (expand_label): When prepending to
3995         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3996         gen_rtx_EXPR_LIST.
3997
3998 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3999
4000         * function.h (struct rtl_data): Strengthen fields "x_return_label"
4001         and "x_naked_return_label" from rtx to rtx_code_label *.
4002
4003 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4004
4005         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
4006         (SET_NEXT_INSN): Likewise.
4007         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
4008
4009         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
4010         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
4011         to split out the SEQUENCE from local "bundle", strengthening the
4012         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
4013         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
4014         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
4015         and the type of the elements of the "slot" array from rtx to
4016         rtx_insn *.
4017         (reorg_split_calls): Likewise for locals "insn" and "next", and
4018         the type of the elements of the "slot" array.
4019
4020         * config/frv/frv.c (frv_nops): Likewise for the elements of this
4021         array.
4022         (frv_function_prologue): Likewise for locals "insn", "next",
4023         "last_call".
4024         (frv_register_nop): Introduce a local "nop_insn" to be the
4025         rtx_insn * containing rtx "nop".
4026
4027         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
4028         used as an insn and sometimes as a pattern, so rename it to
4029         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
4030         using it where dealing with the core insn.
4031
4032         * config/picochip/picochip.c (reorder_var_tracking_notes):
4033         Strengthen locals "insn", "next", "last_insn", "queue",
4034         "next_queue", "prev" from rtx to rtx_insn *.
4035
4036         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
4037         the second param is an rtx_insn ** rather than an rtx **.
4038         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
4039         from rtx to rtx_sequence *, and introduce local named "sequence",
4040         using methods of rtx_sequence to clarify the code.
4041         (remove_insn): Introduce local rtx_sequence * named "sequence" and
4042         use its methods.
4043         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
4044         Rename param "after" to "uncast_after", reintroducing "after" as a
4045         local rtx_insn * with a checked cast.
4046         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
4047         reintroducing "after" as a local rtx_insn * with a checked cast.
4048         Strengthen local "last" from rtx to rtx_insn * and remove the
4049         now-redundant checked casts.
4050         (copy_delay_slot_insn): Strengthen return type and param from rtx
4051         to rtx_insn *.
4052
4053         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
4054         "last" from rtx to rtx_insn *.
4055
4056 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4057
4058         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
4059         param from rtx to rtx_insn *.
4060
4061         * emit-rtl.c (copy_delay_slot_insn): Likewise.
4062
4063         * reorg.c (skip_consecutive_labels): Strengthen return type, param
4064         and local "insn" from rtx to rtx_insn *.
4065         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
4066         (unfilled_slots_next): Likewise.
4067         (function_return_label): Strengthen from rtx to rtx_code_label *.
4068         (function_simple_return_label): Likewise.
4069         (first_active_target_insn): Strengthen return type and param from
4070         rtx to rtx_insn *.
4071         (find_end_label): Strengthen return type from rtx to
4072         rtx_code_label *; strengthen locals as appropriate.
4073         (emit_delay_sequence): Strengthen return type, param "insn" and
4074         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
4075         and local "li" from rtx to rtx_insn_list *, using methods of
4076         rtx_insn_list for clarity and typesafety.
4077         (add_to_delay_list): Strengthen return type and param "insn" from
4078         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
4079         rtx_insn_list * and use methods of rtx_insn_list.
4080         (delete_from_delay_slot): Strengthen return type, param "insn",
4081         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
4082         Strengthen local "seq" from rtx to rtx_sequence *, and local
4083         "delay_list" from rtx to rtx_insn_list *, using methods of
4084         rtx_sequence for clarity and type-safety.
4085         (delete_scheduled_jump): Add checked cast when invoking
4086         delete_from_delay_slot.  Strengthen local "trial" from rtx to
4087         rtx_insn *.
4088         (optimize_skip): Strengthen return type and local "delay_list"
4089         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
4090         rtx_insn *.
4091         (steal_delay_list_from_target): Strengthen return type, param
4092         "delay_list" and local "new_delay_list" from rtx to
4093         rtx_insn_list *.  Strengthen param "seq" from rtx to
4094         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
4095         rtx_insn **.
4096         Split out local "temp" into multiple more-tightly scoped locals:
4097         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
4098         of rtx_insn_list and rtx_sequence for clarity and typesafety.
4099         Strengthen locals named "trial" from rtx to rtx_insn *.
4100         (steal_delay_list_from_fallthrough): Strengthen return type and
4101         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
4102         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
4103         Strengthen local "trial" from rtx to rtx_insn *.
4104         (try_merge_delay_insns): Strength local "merged_insns" from rtx
4105         to rtx_insn_list * and use its methods.  Strengthen local "pat"
4106         from rtx to rtx_sequence * and use its methods.  Strengthen locals
4107         "dtrial" and "new_rtx" from rtx to rtx_insn *.
4108         (get_label_before): Strengthen return type and local "label" from
4109         rtx to rtx_insn *.
4110         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
4111         "next_trial", "next", prev".  Strengthen local "delay_list" from
4112         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
4113         rtx_insn **.
4114         (follow_jumps): Strengthen return type, param "label" and locals
4115         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
4116         (fill_slots_from_thread): Strengthen return type, param
4117         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
4118         "insn", "thread", "opposite_thread" and locals "new_thread",
4119         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
4120         "sequence" from a checked cast to rtx_sequence so that we can call
4121         steal_delay_list_from_target and steal_delay_list_from_fallthrough
4122         with an rtx_sequence *.
4123         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
4124         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
4125         Strengthen local "delay_list" from rtx to rtx_insn_list *.
4126         (relax_delay_slots): Strengthen param "first" and locals "insn",
4127         "next", "trial", "delay_insn", "target_label" from rtx to
4128         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
4129         Introduce a local "trial_seq" for PATTERN (trial) of type
4130         rtx_sequence *, in both cases using methods of rtx_sequence.
4131         (dbr_schedule): Strengthen param "first" and locals "insn",
4132         "next", "epilogue_insn" from rtx to rtx_insn *.
4133
4134 2014-08-28  Richard Biener  <rguenther@suse.de>
4135
4136         PR tree-optimization/62283
4137         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4138         Do not peel loops for alignment where the vector loop likely
4139         doesn't run at least VF times.
4140
4141 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
4142
4143         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
4144         important_candidates.  Consider all important candidates if
4145         IVS doesn't give any result.  Remove check on ivs->upto.
4146         (try_add_cand_for): Call iv_ca_add_use only once.
4147
4148 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4149             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4150             Anna Tikhonova  <anna.tikhonova@intel.com>
4151             Ilya Tocar  <ilya.tocar@intel.com>
4152             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4153             Ilya Verbin  <ilya.verbin@intel.com>
4154             Kirill Yukhin  <kirill.yukhin@intel.com>
4155             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4156
4157         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
4158         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
4159         masking.
4160         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
4161         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4162         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4163         (define_insn "*mul<mode>3"): Add EVEX version.
4164
4165 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4166             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4167             Anna Tikhonova  <anna.tikhonova@intel.com>
4168             Ilya Tocar  <ilya.tocar@intel.com>
4169             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4170             Ilya Verbin  <ilya.verbin@intel.com>
4171             Kirill Yukhin  <kirill.yukhin@intel.com>
4172             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4173
4174         * config/i386/sse.md
4175         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
4176         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
4177         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
4178         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
4179         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
4180         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
4181         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
4182         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
4183         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
4184         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
4185         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
4186         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
4187         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
4188         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
4189         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
4190         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
4191
4192 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4193             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4194             Anna Tikhonova  <anna.tikhonova@intel.com>
4195             Ilya Tocar  <ilya.tocar@intel.com>
4196             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4197             Ilya Verbin  <ilya.verbin@intel.com>
4198             Kirill Yukhin  <kirill.yukhin@intel.com>
4199             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4200
4201         * config/i386/sse.md
4202         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
4203         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
4204         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
4205
4206 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4207             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4208             Anna Tikhonova  <anna.tikhonova@intel.com>
4209             Ilya Tocar  <ilya.tocar@intel.com>
4210             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4211             Ilya Verbin  <ilya.verbin@intel.com>
4212             Kirill Yukhin  <kirill.yukhin@intel.com>
4213             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4214
4215         * config/i386/sse.md
4216         (define_mode_iterator VI128_256): New.
4217         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
4218
4219 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4220             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4221             Anna Tikhonova  <anna.tikhonova@intel.com>
4222             Ilya Tocar  <ilya.tocar@intel.com>
4223             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4224             Ilya Verbin  <ilya.verbin@intel.com>
4225             Kirill Yukhin  <kirill.yukhin@intel.com>
4226             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4227
4228         * config/i386/sse.md
4229         (define_mode_iterator VI8_256_512): New.
4230         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
4231         Ditto.
4232         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4233         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
4234         Ditto.
4235         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
4236
4237 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4238
4239         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
4240         pointer to the cumulative reloc value and return the value for
4241         this reloc instead.
4242         (compute_reloc_for_rtx): Take a const_rtx.  Call
4243         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
4244         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
4245         for_each_rtx for the CONST case.
4246
4247 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4248
4249         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
4250         (mark_constants_in_pattern): ...this new function to iterate over
4251         all the subrtxes.
4252         (mark_constants): Update accordingly.
4253
4254 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4255
4256         * varasm.c: Include rtl-iter.h.
4257         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
4258         Remove the pointer to the cumulative hashval_t and just return
4259         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
4260         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4261         Accumulate the hashval_ts here instead of const_rtx_hash_1.
4262
4263 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4264
4265         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
4266         Give real type of data parameter.  Remove return value.
4267         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
4268         to iterate over subrtxes.
4269
4270 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4271
4272         * var-tracking.c (use_narrower_mode_test): Turn from being a
4273         for_each_rtx callback to being a function that examines each
4274         subrtx itself.
4275         (adjust_mems): Update accordingly.
4276
4277 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4278
4279         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
4280         callback to being a function that examines each subrtx itself.
4281         Remove handling of null rtxes.
4282         (add_uses): Update accordingly.
4283
4284 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4285
4286         * var-tracking.c: Include rtl-iter.h.
4287         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
4288         to being a function that examines each subrtx itself.
4289         (use_type): Update accordingly.
4290
4291 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4292
4293         * store-motion.c: Include rtl-iter.h.
4294         (extract_mentioned_regs_1): Delete.
4295         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
4296         for_each_rtx to iterate over subrtxes.
4297
4298 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4299
4300         * sel-sched.c: Include rtl-iter.h
4301         (count_occurrences_1): Delete.
4302         (count_occurrences_equiv): Turn rtxes into const_rtxes.
4303         Use FOR_EACH_SUBRTX rather than for_each_rtx.
4304
4305 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4306
4307         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
4308         * rtlanal.c (tls_referenced_p_1): Delete.
4309         (tls_referenced_p): Take a const_rtx rather than an rtx.
4310         Use FOR_EACH_SUBRTX rather than for_each_rtx.
4311
4312 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4313
4314         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
4315         (for_each_inc_dec): Take an rtx rather than an rtx *.
4316         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
4317         (cselib_record_sets): Likewise.
4318         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
4319         (check_for_inc_dec): Likewise.
4320         * rtlanal.c (for_each_inc_dec_ops): Delete.
4321         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
4322         rather than a pointer to the memory address.  Replace
4323         for_each_inc_dec_ops argument with separate function and data
4324         arguments.  Abort on non-autoinc addresses.
4325         (for_each_inc_dec_find_mem): Delete.
4326         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
4327         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
4328
4329 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4330
4331         * rtl.h (find_all_hard_regs): Declare.
4332         * rtlanal.c (find_all_hard_regs): New function.
4333         (record_hard_reg_uses_1): Delete.
4334         (record_hard_reg_uses): Use find_all_hard_regs.
4335
4336 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4337
4338         * rtl.h (replace_label_data): Delete.
4339         (replace_label): Take the old label, new label and update-nuses flag
4340         as direct arguments.  Return void.
4341         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
4342         * rtlanal.c (replace_label): Update interface as above.  Handle
4343         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
4344         iterator.  Use FOR_EACH_SUBRTX_PTR.
4345
4346 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4347
4348         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
4349         with const_rtx parameters.
4350         * varasm.c (get_pool_constant): Likewise.
4351         * rtlanal.c (rtx_referenced_p_1): Delete.
4352         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4353         Assert that the rtx we're looking for is nonnull.  Allow searches
4354         for constant pool SYMBOL_REFs.
4355
4356 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4357
4358         * reload1.c: Include rtl-iter.h.
4359         (note_reg_elim_costly): Turn from being a for_each_rtx callback
4360         to being a function that examines each subrtx itself.
4361         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
4362
4363 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4364
4365         * regcprop.c (cprop_find_used_regs_1): Delete.
4366         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4367
4368 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4369
4370         * regcprop.c: Include rtl-iter.h.
4371         (kill_value): Take a const_rtx.
4372         (kill_autoinc_value): Turn from being a for_each_rtx callback
4373         to being a function that examines each subrtx itself.
4374         (copyprop_hardreg_forward_1): Update accordingly.
4375
4376 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4377
4378         * reg-stack.c: Include rtl-iter.h.
4379         (subst_stack_regs_in_debug_insn): Delete.
4380         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
4381         instead of for_each_rtx.
4382
4383 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4384
4385         * lower-subreg.c (find_decomposable_subregs): Turn from being
4386         a for_each_rtx callback to being a function that examines each
4387         subrtx itself.  Remove handling of null rtxes.
4388         (decompose_multiword_subregs): Update accordingly.
4389
4390 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4391
4392         * lower-subreg.c (adjust_decomposed_uses): Delete.
4393         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
4394         Remove handling of null rtxes.
4395
4396 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4397
4398         * lower-subreg.c: Include rtl-iter.h.
4399         (resolve_subreg_use): Turn from being a for_each_rtx callback
4400         to being a function that examines each subrtx itself.  Remove
4401         handling of null rtxes.
4402         (resolve_reg_notes, resolve_simple_move): Update accordingly.
4403         (decompose_multiword_subregs): Likewise.
4404
4405 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4406
4407         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
4408         to being a function that examines each subrtx itself.
4409         (simplify_using_condition, simplify_using_initial_values): Update
4410         accordingly.
4411
4412 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4413
4414         * loop-iv.c: Include rtl-iter.h.
4415         (find_single_def_src): New function.
4416         (replace_single_def_regs): Turn from being a for_each_rtx callback
4417         to being a function that examines each subrtx itself.
4418         (replace_in_expr, simplify_using_initial_values): Update accordingly.
4419
4420 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4421
4422         * jump.c (eh_returnjump_p_1): Delete.
4423         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4424         Remove handling of null rtxes.
4425
4426 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4427
4428         * jump.c: Include rtl-iter.h.
4429         (returnjump_p_1): Delete.
4430         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4431         Remove handling of null rtxes.
4432
4433 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4434
4435         * ira.c: Include rtl-iter.h.
4436         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
4437         to being a function that examines each subrtx itself.  Remove
4438         handling of null rtxes.
4439         (update_equiv_regs): Update call accordingly.
4440
4441 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4442
4443         * fwprop.c: Include rtl-iter.h.
4444         (varying_mem_p): Turn from being a for_each_rtx callback to being
4445         a function that examines each subrtx itself.
4446         (propagate_rtx): Update accordingly.
4447
4448 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4449
4450         * function.c: Include rtl-iter.h
4451         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
4452         callback to being a function that examines each subrtx itself.
4453         Return the changed flag.
4454         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
4455         (instantiate_virtual_regs): Update calls accordingly.
4456
4457 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4458
4459         * final.c: Include rtl-iter.h.
4460         (mark_symbol_ref_as_used): Delete.
4461         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
4462         for_each_rtx.
4463
4464 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4465
4466         * emit-rtl.c: Include rtl-iter.h.
4467         (find_auto_inc): Turn from being a for_each_rtx callback to being
4468         a function that examines each subrtx itself.  Assume the first operand
4469         to an RTX_AUTOINC is the automodified register.
4470         (try_split): Update call accordingly.
4471
4472 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4473
4474         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4475         Return a bool, inverting the result so that 0/false means "not ok".
4476         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
4477         subrtxes of a CONST.
4478         (mem_loc_descriptor, add_const_value_attribute)
4479         (resolve_addr_in_expr): Update calls accordingly.
4480
4481 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4482
4483         * dwarf2out.c: Include rtl-iter.h.
4484         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4485         Remove unused data parameter.  Return a bool, inverting the result
4486         so that 0/false means "not ok".
4487         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
4488         instead of for_each_rtx.
4489
4490 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4491
4492         * dse.c: Include rtl-iter.h.
4493         (check_mem_read_rtx): Change void * parameter to real type.
4494         Remove return value.
4495         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
4496         for_each_rtx.  Don't handle null rtxes.
4497
4498 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4499
4500         * df-problems.c: Include rtl-iter.h.
4501         (find_memory): Turn from being a for_each_rtx callback to being
4502         a function that examines each subrtx itself.  Continue to look for
4503         volatile references even after a nonvolatile one has been found.
4504         (can_move_insns_across): Update calls accordingly.
4505
4506 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4507
4508         * ddg.c (walk_mems_2, walk_mems_1): Delete.
4509         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4510         to iterate over subrtxes.  Return a bool rather than an int.
4511
4512 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4513
4514         * ddg.c: Include rtl-iter.h.
4515         (mark_mem_use_1): Rename to...
4516         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
4517         instead of for_each_rtx.
4518         (mem_read_insn_p): Update accordingly.
4519
4520 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4521
4522         * cse.c (change_cc_mode_args): Delete.
4523         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4524         a function that examines each subrtx itself.  Take the fields of
4525         change_cc_mode_args as argument and return void.
4526         (cse_change_cc_mode_insn): Update calls accordingly.
4527
4528 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4529
4530         * cse.c (is_dead_reg): Change argument to const_rtx.
4531         (dead_debug_insn_data): Delete.
4532         (is_dead_debug_insn): Expand commentary.  Turn from being a
4533         for_each_rtx callback to being a function that examines
4534         each subrtx itself.  Take the fields of dead_debug_insn_data
4535         as argument.
4536         (delete_trivially_dead_insns): Update call accordingly.
4537
4538 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4539
4540         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
4541         being a for_each_rtx callback to being a function that examines
4542         each subrtx itself.
4543         (cse_extended_basic_block): Update call accordingly.
4544
4545 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4546
4547         * cse.c (check_dependence_data): Delete.
4548         (check_dependence): Change from being a for_each_rtx callback to being
4549         a function that examines all subrtxes itself.  Don't handle null rtxes.
4550         (invalidate): Update call accordingly.
4551
4552 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4553
4554         * cse.c: Include rtl-iter.h.
4555         (approx_reg_cost_1): Delete.
4556         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4557         Don't handle null rtxes.
4558
4559 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4560
4561         * cfgcleanup.c: Include rtl-iter.h.
4562         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4563         to being a function that examines each subrtx itself.
4564         (thread_jump): Update accordingly.
4565
4566 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4567
4568         * combine-stack-adj.c: Include rtl-iter.h.
4569         (record_stack_refs_data): Delete.
4570         (record_stack_refs): Turn from being a for_each_rtx callback
4571         to being a function that examines each subrtx itself.
4572         Take a pointer to the reflist.  Invert sense of return value
4573         so that true means success and false means failure.  Don't
4574         handle null rtxes.
4575         (combine_stack_adjustments_for_block): Update accordingly.
4576
4577 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4578
4579         * combine.c (record_truncated_value): Turn from being a for_each_rtx
4580         callback to a function that takes an rtx and returns a bool
4581         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4582         for_each_rtx.
4583
4584 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4585
4586         * combine.c: Include rtl-iter.h.
4587         (unmentioned_reg_p_1): Delete.
4588         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4589         Don't handle null rtxes.
4590
4591 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4592
4593         * calls.c: Include rtl-iter.h.
4594         (internal_arg_pointer_based_exp_1): Delete.
4595         (internal_arg_pointer_based_exp): Take a const_rtx.
4596         Use FOR_EACH_SUBRTX to iterate over subrtxes.
4597
4598 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4599
4600         * caller-save.c: Include rtl-iter.h.
4601         (add_used_regs_1): Delete.
4602         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4603         to iterate over subrtxes.  Assert that any remaining pseudos
4604         have been spilled.
4605
4606 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4607
4608         * bt-load.c: Include rtl-iter.h.
4609         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4610         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
4611         to iterate over subrtxes.
4612         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4613         find_btr_use rather than btr_referenced_p.
4614
4615 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4616
4617         * alias.c: Include rtl-iter.h.
4618         (refs_newer_value_cb): Delete.
4619         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4620
4621 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4622
4623         * rtl-iter.h: New file.
4624         * rtlanal.c: Include it.
4625         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4626         (generic_subrtx_iterator <T>::add_single_to_queue)
4627         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4628         (generic_subrtx_iterator <T>::free_array): New functions.
4629         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4630         (generic_subrtx_iterator <const_rtx_accessor>)
4631         (generic_subrtx_iterator <rtx_var_accessor>
4632         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4633         (setup_reg_subrtx_bounds): New function.
4634         (init_rtlanal): Call it.
4635
4636 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4637
4638         PR target/62261
4639         * config/sh/sh.md (ashlsi3): Handle negative shift count for
4640         TARGET_SHMEDIA.
4641         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4642
4643 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
4644
4645         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4646
4647 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4648
4649         * rtl.h (JUMP_LABEL_AS_INSN): New.
4650
4651 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4652
4653         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4654         rtx_expr_list **.
4655         (alloc_EXPR_LIST): Strengthen return type from rtx to
4656         rtx_expr_list *.
4657         (remove_free_EXPR_LIST_node): Likewise for param.
4658         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4659         from rtx to rtx_expr_list *.
4660         * sched-int.h (struct deps_desc): Strengthen fields
4661         "pending_read_mems" and "pending_write_mems" from rtx to
4662         rtx_expr_list *.
4663
4664         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4665         rtx to rtx_expr_list *.
4666         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4667         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4668         rtx_expr_list **.
4669         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
4670         from rtx to rtx_expr_list *.
4671         * loop-iv.c (simplify_using_initial_values): Strengthen local
4672         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4673         "pnote_next" from rtx * to rtx_expr_list **.
4674         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
4675         param "exprp" from rtx * to rtx_expr_list **.
4676         (add_insn_mem_dependence): Strengthen local "mem_list" from
4677         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
4678         to rtx_expr_list *.
4679         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4680         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
4681         param "old_mems_p" from rtx * to rtx_expr_list **.
4682         * var-tracking.c (struct adjust_mem_data): Strengthen field
4683         "side_effects" from rtx to rtx_expr_list *.
4684         (adjust_insn): Replace NULL_RTX with NULL when assigning to
4685         rtx_expr_list *.
4686         (prepare_call_arguments): Likewise.
4687
4688 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4689
4690         * function.h (struct rtl_data): Strengthen field
4691         "x_stack_slot_list" from rtx to rtx_expr_list *.
4692
4693         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4694         when assigning to stack_slot_list.
4695
4696 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4697
4698         * function.h (struct rtl_data): Strengthen field
4699         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4700         * rtl.h (remove_node_from_expr_list): Strengthen second param from
4701         rtx * to rtx_expr_list **.
4702
4703         * cfgbuild.c (make_edges): In loop over
4704         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4705         rtx_expr_list *, and use methods of the latter class to clarify
4706         the code.
4707         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4708         rtx_expr_list *, and use methods of the latter class to clarify
4709         the code.
4710         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4711         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4712         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4713         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
4714         to rtx_expr_list *.  Use methods of the latter class to clarify
4715         the code.
4716
4717 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4718
4719         * function.h (struct expr_status): Strengthen field
4720         "x_forced_labels" from rtx to rtx_expr_list *.
4721
4722         * cfgbuild.c (make_edges): Split local "x" into two locals,
4723         strengthening one from rtx to rtx_expr_list *, and using methods
4724         of said class.
4725         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4726         loop over forced_labels, introduce strengthen it from rtx to
4727         rtx_expr_list *, using methods to clarify the code.
4728         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4729         to rtx_expr_list *, using methods of said class to clarify the
4730         code.
4731         * reload1.c (set_initial_label_offsets): Split local "x" into two
4732         per-loop variables, strengthening the first from rtx to
4733         rtx_expr_list * and using methods.
4734
4735 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4736
4737         * coretypes.h (class rtx_expr_list): Add forward declaration.
4738         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4739         * gengenrtl.c (special_rtx): Add EXPR_LIST.
4740         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4741         invariant: GET_CODE (X) == EXPR_LIST.
4742         (is_a_helper <rtx_expr_list *>::test): New.
4743         (rtx_expr_list::next): New.
4744         (rtx_expr_list::element): New.
4745         (gen_rtx_EXPR_LIST): New.
4746
4747 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4748
4749         * varasm.c (mark_constants): Convert a GET_CODE check into a
4750         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4751         Use methods of rtx_sequence to clarify the code.
4752
4753 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4754
4755         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4756         local "seq" via a checked cast, and use methods of rtx_sequence
4757         to simplify the code.
4758
4759 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4760
4761         * resource.c (mark_referenced_resources): Strengthen local
4762         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4763         using methods of rtx_sequence to clarify the code.
4764         (find_dead_or_set_registers): Within the switch statement, convert
4765         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
4766         the JUMP_P handling, introduce another local "seq", adding a
4767         checked cast to rtx_sequence *.  In both cases, use methods of
4768         rtx_sequence to clarify the code.
4769         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4770         via a checked cast, and use methods of rtx_sequence to simplify
4771         the code.
4772
4773 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4774
4775         * reorg.c (redundant_insn): In two places in the function, replace
4776         a check of GET_CODE with a dyn_cast, introducing local "seq", and
4777         usings methods of rtx_sequence to clarify the code.
4778
4779 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4780
4781         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4782         local "seq" with a checked cast, and use methods of rtx_sequence
4783         to clarify the code.
4784
4785 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4786
4787         * function.c (contains): Introduce local "seq" for PATTERN (insn),
4788         with a checked cast, in the region for where we know it's a
4789         SEQUENCE.  Use methods of rtx_sequence.
4790
4791 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4792
4793         * final.c (get_attr_length_1): Replace GET_CODE check with a
4794         dyn_cast, introducing local "seq" and the use of methods of
4795         rtx_sequence.
4796         (shorten_branches): Likewise, introducing local "body_seq".
4797         Strengthen local "inner_insn" from rtx to rtx_insn *.
4798         (reemit_insn_block_notes): Replace GET_CODE check with a
4799         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4800         Use methods of rtx_sequence.
4801         (final_scan_insn): Likewise, introducing local "seq" for when
4802         "body" is known to be a SEQUENCE, using its methods.
4803
4804 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4805
4806         * except.c (can_throw_external): Strengthen local "seq" from rtx
4807         to rtx_sequence *.  Use methods of rtx_sequence.
4808         (insn_nothrow_p): Likewise.
4809
4810 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4811
4812         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4813         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4814         Use methods of rtx_sequence.
4815         (scan_trace): Likewise for local "pat".
4816
4817 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4818
4819         * coretypes.h (class rtx_sequence): Add forward declaration.
4820         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4821         invariant: GET_CODE (X) == SEQUENCE.
4822         (is_a_helper <rtx_sequence *>::test): New.
4823         (is_a_helper <const rtx_sequence *>::test): New.
4824         (rtx_sequence::len): New.
4825         (rtx_sequence::element): New.
4826         (rtx_sequence::insn): New.
4827
4828 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4829
4830         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4831         rtx_insn_list **.
4832         (alloc_INSN_LIST): Strengthen return type from rtx to
4833         rtx_insn_list *.
4834         (copy_INSN_LIST): Likewise for return type and param.
4835         (concat_INSN_LIST): Likewise for both params and return type.
4836         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4837         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
4838         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4839         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
4840
4841         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4842         "implicit_sets", "control_uses", "clobbers" from rtx to
4843         rtx_insn_list *.
4844         (struct deps_desc): Likewise for fields "pending_read_insns",
4845         "pending_write_insns", "pending_jump_insns",
4846         "last_pending_memory_flush", "last_function_call",
4847         "last_function_call_may_noreturn", "sched_before_next_call",
4848         "sched_before_next_jump".
4849         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4850         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4851
4852         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4853         from rtx to rtx_insn_list *.
4854         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4855         rtx_insn_list *.
4856
4857         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4858         to rtx_insn_list **.
4859         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4860         rtx_insn_list *.
4861         (queue_insn): Likewise for local "link".
4862         (struct haifa_saved_data): Strengthen field "insn_queue" from
4863         rtx * to rtx_insn_list **.
4864         (save_backtrack_point): Update allocation of save->insn_queue to
4865         reflect the strengthening of elements from rtx to rtx_insn_list *.
4866         (queue_to_ready): Strengthen local "link" from rtx to
4867         rtx_insn_list *; use methods "next" and "insn" when traversing the
4868         list.
4869         (early_queue_to_ready): Likewise for locals "link", "next_link",
4870         "prev_link".
4871         (schedule_block): Update allocation of insn_queue to reflect the
4872         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
4873         local "link" from rtx to rtx_insn_list *, and use methods when
4874         working it.
4875         (add_to_speculative_block): Strengthen locals "twins" and
4876         "next_node" from rtx to rtx_insn_list *, and use methods when
4877         working with them.  Strengthen local "twin" from rtx to
4878         rtx_insn *, eliminating a checked cast.
4879         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4880         from rtx to rtx_insn_list *, and use methods when working with
4881         them.
4882
4883         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4884         from rtx to rtx_insn_list *, adding a checked cast.
4885         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4886         rtx_insn_list **.
4887         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4888         "newlink" from rtx to rtx_insn_list *.  Strengthen local
4889         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
4890         from rtx to rtx_insn *.
4891         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4892         from rtx to rtx_insn_list *.  Use methods of the latter class.
4893         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4894         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4895         (remove_free_INSN_LIST_node): Strengthen return type and local
4896         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
4897         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
4898         rtx_insn_list *, using "insn" method.
4899
4900         * sched-deps.c (add_dependence_list):  Strengthen param "list"
4901         from rtx to rtx_insn_list *, and use methods when working with it.
4902         (add_dependence_list_and_free):  Strengthen param "listp" from
4903         rtx * to rtx_insn_list **.
4904         (remove_from_dependence_list): Strenghten param "listp" from rtx *
4905         to rtx_insn_list **, and use methods when working with *listp.
4906         (remove_from_both_dependence_lists): Strengthen param "listp" from
4907         rtx * to rtx_insn_list **
4908         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4909         to rtx_insn_list **.  Eliminate local "link", in favor of two new
4910         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4911         respectively.
4912         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4913         by introducing local "cond_deps".
4914         (remove_from_deps): Strengthen param "insn" from rtx to
4915         rtx_insn *.
4916
4917         * sched-rgn.c (concat_insn_mem_list): Strengthen param
4918         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4919         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4920         Use methods of rtx_insn_list.
4921
4922         * store-motion.c (struct st_expr): Strengthen fields
4923         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4924         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4925         rtx_insn_list *.
4926         (find_moveable_store): Split out "tmp" into multiple more-tightly
4927         scoped locals.  Use methods of rtx_insn_list *.
4928         (compute_store_table): Strengthen local "tmp" from rtx to
4929         rtx_insn *.  Use methods of rtx_insn_list *.
4930
4931 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4932
4933         * coretypes.h (class rtx_insn_list): Add forward declaration.
4934         * rtl.h (class rtx_insn_list): New subclass of rtx_def
4935         (is_a_helper <rtx_insn_list *>::test): New.
4936         (rtx_insn_list::next): New.
4937         (rtx_insn_list::insn): New.
4938         (gen_rtx_INSN_LIST): Add prototype.
4939         * emit-rtl.c (gen_rtx_INSN_LIST): New.
4940         * gengenrtl.c (special_rtx): Add INSN_LIST.
4941
4942 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4943
4944         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4945         "prev" from rtx to rtx_insn *.
4946
4947 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4948
4949         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4950         functions.  Require merely an rtx for now, not an rtx_insn *.
4951         (BLOCK_FOR_INSN): Likewise.
4952         (INSN_LOCATION): Likewise.
4953         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4954
4955 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4956
4957         * rtl.h (PATTERN): Convert this macro into a pair of inline
4958         functions, for now, requiring const_rtx and rtx.
4959
4960 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4961
4962         * target.def (unwind_emit): Strengthen param "insn" from rtx to
4963         rtx_insn *.
4964         (final_postscan_insn): Likewise.
4965         (adjust_cost): Likewise.
4966         (adjust_priority): Likewise.
4967         (variable_issue): Likewise.
4968         (macro_fusion_pair_p): Likewise.
4969         (dfa_post_cycle_insn): Likewise.
4970         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4971         (first_cycle_multipass_issue): Likewise.
4972         (dfa_new_cycle): Likewise.
4973         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4974         (speculate_insn): Likewise for param "insn".
4975         (gen_spec_check): Likewise for params "insn" and "label".
4976         (get_insn_spec_ds): Likewise for param "insn".
4977         (get_insn_checked_ds): Likewise.
4978         (dispatch_do): Likewise.
4979         (dispatch): Likewise.
4980         (cannot_copy_insn_p): Likewise.
4981         (invalid_within_doloop): Likewise.
4982         (legitimate_combined_insn): Likewise.
4983         (needed): Likewise.
4984         (after): Likewise.
4985
4986         * doc/tm.texi: Automatically updated to reflect changes to
4987         target.def.
4988
4989         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4990         working with insn.
4991         (schedule_block): Likewise.
4992         (sched_init): Likewise.
4993         (sched_speculate_insn): Strengthen param "insn" from rtx to
4994         rtx_insn *.
4995         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4996         working with insn.
4997         * hooks.c (hook_bool_rtx_true): Rename to...
4998         hook_bool_rtx_insn_true): ...this, and strengthen first param from
4999         rtx to rtx_insn *.
5000         (hook_constcharptr_const_rtx_null): Rename to...
5001         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
5002         first param from const_rtx to const rtx_insn *.
5003         (hook_bool_rtx_int_false): Rename to...
5004         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
5005         param from rtx to rtx_insn *.
5006         (hook_void_rtx_int): Rename to...
5007         (hook_void_rtx_insn_int): ...this, and strengthen first param from
5008         rtx to rtx_insn *.
5009
5010         * hooks.h (hook_bool_rtx_true): Rename to...
5011         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
5012         rtx to rtx_insn *.
5013         (hook_bool_rtx_int_false): Rename to...
5014         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
5015         param from rtx to rtx_insn *.
5016         (hook_void_rtx_int): Rename to...
5017         (hook_void_rtx_insn_int): ...this, and strengthen first param from
5018         rtx to rtx_insn *.
5019         (hook_constcharptr_const_rtx_null): Rename to...
5020         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
5021         first param from const_rtx to const rtx_insn *.
5022
5023         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
5024         and local "prev" from rtx to rtx_insn *.
5025
5026         * sched-int.h (sched_speculate_insn): Strengthen first param from
5027         rtx to rtx_insn *.
5028
5029         * sel-sched.c (create_speculation_check): Likewise for local "label".
5030         * targhooks.c (default_invalid_within_doloop): Strengthen param
5031         "insn" from const_rtx to const rtx_insn *.
5032         * targhooks.h (default_invalid_within_doloop): Strengthen param
5033         from const_rtx to const rtx_insn *.
5034
5035         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
5036         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
5037
5038         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
5039         "insn".
5040         (arc_invalid_within_doloop): Likewise, with const.
5041
5042         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
5043         (arm_cannot_copy_insn_p): Likewise for param "insn".
5044         (arm_unwind_emit): Likewise.
5045
5046         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
5047         "dep_insn".
5048
5049         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
5050         (c6x_variable_issue): Likewise.  Removed now-redundant checked
5051         cast.
5052         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
5053
5054         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
5055         Likewise for param "insn".
5056         (epiphany_mode_after): Likewise.
5057         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
5058         params "insn", "dep_insn".
5059         (epiphany_mode_needed): Likewise for param "insn".
5060         (epiphany_mode_after): Likewise.
5061
5062         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
5063         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
5064         (ix86_avx_u128_mode_needed): Likewise.
5065         (ix86_i387_mode_needed): Likewise.
5066         (ix86_mode_needed): Likewise.
5067         (ix86_avx_u128_mode_after): Likewise.
5068         (ix86_mode_after): Likewise.
5069         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
5070         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
5071         (ix86_adjust_priority): Likewise for param "insn".
5072         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
5073         (do_dispatch): Likewise.
5074         (has_dispatch): Likewise.
5075         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
5076
5077         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
5078         reflect renaming of default hook implementation from
5079         hook_constcharptr_const_rtx_null to
5080         hook_constcharptr_const_rtx_insn_null.
5081         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
5082         rtx to rtx_insn *.
5083         (ia64_variable_issue): Likewise for param "insn".
5084         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
5085         (ia64_dfa_new_cycle): Likewise.
5086         (ia64_get_insn_spec_ds): Likewise.
5087         (ia64_get_insn_checked_ds): Likewise.
5088         (ia64_speculate_insn): Likewise.
5089         (ia64_gen_spec_check): Likewise for params "insn", "label".
5090         (ia64_asm_unwind_emit): Likewise for param "insn".
5091
5092         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
5093
5094         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
5095         "insn", "def_insn".
5096         (m68k_sched_variable_issue): Likewise for param "insn".
5097
5098         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
5099         "def_insn".
5100
5101         * config/microblaze/microblaze.c (microblaze_adjust_cost):
5102         Likewise for params "insn", "dep".
5103
5104         * config/mips/mips.c (mips_adjust_cost): Likewise.
5105         (mips_variable_issue): Likewise for param "insn".
5106         (mips_final_postscan_insn): Likewise.
5107
5108         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
5109         for params "insn", "dep".
5110
5111         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
5112         "dep_insn".
5113         (pa_adjust_priority): Likewise for param "insn".
5114
5115         * config/picochip/picochip.c (picochip_sched_adjust_cost):
5116         Likewise for params "insn", "dep_insn".
5117
5118         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
5119         param "insn".
5120         (rs6000_variable_issue): Likewise.
5121         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
5122         (rs6000_debug_adjust_cost): Likewise.
5123         (rs6000_adjust_priority): Likewise for param "insn".
5124         (rs6000_use_sched_lookahead_guard): Likewise.
5125         (get_next_active_insn): Likewise for return type and both params.
5126         (redefine_groups): Likewise for params "prev_head_insn", "tail"
5127         and locals "insn", "next_insn".
5128         (pad_groups): Likewise.
5129
5130         * config/s390/s390.c (s390_adjust_priority): Likewise for param
5131         "insn".
5132         (s390_cannot_copy_insn_p): Likewise.
5133         (s390_sched_variable_issue): Likewise for third param, eliminating
5134         checked cast.
5135         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
5136         default hook implementation from hook_constcharptr_const_rtx_null
5137         to hook_constcharptr_const_rtx_insn_null.
5138
5139         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
5140         from rtx to rtx_insn *.
5141         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
5142         (sh_variable_issue): Likewise for param "insn".
5143         (sh_dfa_new_cycle): Likewise.
5144         (sh_mode_needed): Likewise.
5145         (sh_mode_after): Likewise.
5146
5147         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
5148         params "insn", "dep_insn".
5149         (hypersparc_adjust_cost): Likewise.
5150         (sparc_adjust_cost): Likewise.
5151
5152         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
5153         param, eliminated checked cast.
5154         (spu_sched_adjust_cost): Likewise for first and third params.
5155
5156         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
5157         params "insn" and "dep_insn" from rtx to rtx_insn *.
5158
5159         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
5160
5161 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5162
5163         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
5164         (set_is_load_p): ...this, updating to work on a SET pattern rather
5165         than an insn.
5166         (is_store_insn): Rename to...
5167         (set_is_store_p): ...this, updating to work on a SET pattern
5168         rather than an insn.
5169         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
5170         top of function to where it is needed.  Rewrite the bogus
5171         condition that checks for "insn" and "dep" being PARALLEL to
5172         instead use single_set, introducing locals "insn_set" and
5173         "dep_set".  Given that we only ever returned "cost" for a non-pair
5174         of SETs, bail out early if we don't have a pair of SET.
5175         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
5176         use the new locals "insn_set" and "dep_set", and update calls to
5177         is_load_insn and is_store_insn to be calls to set_is_load_p and
5178         set_is_store_p.
5179
5180 2014-08-27  Guozhi Wei  <carrot@google.com>
5181
5182         PR target/62262
5183         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
5184         amount before using it.
5185
5186 2014-08-27  Richard Biener  <rguenther@suse.de>
5187
5188         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
5189         get_maxval_strlen inside a more useful API.
5190         (gimple_fold_builtin_with_strlen): Remove and fold into ...
5191         (gimple_fold_builtin): ... caller.
5192         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
5193         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
5194         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
5195         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
5196         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
5197         gimple_fold_builtin_sprintf): Adjust to compute maxval
5198         themselves.
5199
5200 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
5201
5202         PR other/62248
5203         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
5204
5205 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5206             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5207             Anna Tikhonova  <anna.tikhonova@intel.com>
5208             Ilya Tocar  <ilya.tocar@intel.com>
5209             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5210             Ilya Verbin  <ilya.verbin@intel.com>
5211             Kirill Yukhin  <kirill.yukhin@intel.com>
5212             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5213
5214         * config/i386/sse.md
5215         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
5216         Use `concat_tg_mode' attribute to determine asm register size.
5217
5218 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5219             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5220             Anna Tikhonova  <anna.tikhonova@intel.com>
5221             Ilya Tocar  <ilya.tocar@intel.com>
5222             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5223             Ilya Verbin  <ilya.verbin@intel.com>
5224             Kirill Yukhin  <kirill.yukhin@intel.com>
5225             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5226
5227         * config/i386/sse.md
5228         (define_mode_iterator VI48_AVX512VL): New.
5229         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
5230         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
5231         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
5232         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5233         with VI1): Change mode iterator.
5234         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5235         with VI_ULOADSTORE_BW_AVX512VL): New.
5236         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5237         with VI_ULOADSTORE_F_AVX512VL): Ditto.
5238         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5239         with VI1): Change mode iterator.
5240         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5241         with VI_ULOADSTORE_BW_AVX512VL): New.
5242         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5243         with VI_ULOADSTORE_F_AVX512VL): Ditto.
5244         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5245         with VI1): Change mode iterator.
5246         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5247         with VI_ULOADSTORE_BW_AVX512VL): New.
5248         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5249         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
5250         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
5251         (define_insn "<avx512>_storedqu<mode>_mask" with
5252         VI48_AVX512VL): New.
5253         (define_insn "<avx512>_storedqu<mode>_mask" with
5254         VI12_AVX512VL): Ditto.
5255
5256 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5257             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5258             Anna Tikhonova  <anna.tikhonova@intel.com>
5259             Ilya Tocar  <ilya.tocar@intel.com>
5260             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5261             Ilya Verbin  <ilya.verbin@intel.com>
5262             Kirill Yukhin  <kirill.yukhin@intel.com>
5263             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5264
5265         * config/i386/sse.md
5266         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
5267         (define_mode_iterator VI48_AVX512BW): New.
5268         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
5269         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5270         with VI48_AVX2_48_AVX512F): New.
5271         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5272         with VI2_AVX512VL): Ditto.
5273
5274 2014-08-27  Richard Biener  <rguenther@suse.de>
5275
5276         PR middle-end/62239
5277         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
5278         (fold_builtin_3): Do not fold strcat_chk here.
5279         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
5280         from builtins.c.
5281         (gimple_fold_builtin): Fold strcat_chk here.
5282
5283 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
5284
5285         * dwarf2out.h (dwarf2out_decl): Remove prototype.
5286         * dwarf2out.c (dwarf2out_decl): Make static.
5287
5288 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
5289
5290         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
5291
5292 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5293
5294         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
5295         from rtx to rtx_insn *.
5296         (cselib_lookup_from_insn): Likewise for final param.
5297         (cselib_subst_to_values_from_insn): Likewise.
5298         (cselib_add_permanent_equiv): Likewise.
5299
5300         * cselib.c (cselib_current_insn): Likewise for this variable.
5301         (cselib_subst_to_values_from_insn): Likewise for param "insn".
5302         (cselib_lookup_from_insn): Likewise.
5303         (cselib_add_permanent_equiv): Likewise for param "insn" and local
5304         "save_cselib_current_insn".
5305         (cselib_process_insn): Replace use of NULL_RTX with NULL.
5306
5307         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
5308         from rtx to rtx_insn *.
5309
5310 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5311
5312         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
5313         rtx_insn *.
5314
5315 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5316
5317         * df.h (df_dump_insn_problem_function): Strengthen first param of
5318         this callback from const_rtx to const rtx_insn *.
5319         (struct df_insn_info): Strengthen field "insn" from rtx to
5320         rtx_insn *.
5321         (DF_REF_INSN): Eliminate this function, reinstating the older
5322         macro definition.
5323         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
5324         (df_reg_defined): Likewise.
5325         (df_find_use): Likewise.
5326         (df_reg_used): Likewise.
5327         (df_dump_insn_top): Strengthen param 1 from const_rtx to
5328         const rtx_insn *.
5329         (df_dump_insn_bottom): Likewise.
5330         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
5331         (df_insn_debug_regno): Likewise.
5332         (debug_df_insn): Likewise.
5333         (df_rd_simulate_one_insn): Likewise for param 2.
5334         (df_word_lr_simulate_defs): Likewise for param 1.
5335         (df_word_lr_simulate_uses): Likewise.
5336         (df_md_simulate_one_insn): Likewise for param 2.
5337         (df_simulate_find_noclobber_defs): Likewise for param 1.
5338         (df_simulate_find_defs): Likewise.
5339         (df_simulate_defs): Likewise.
5340         (df_simulate_uses): Likewise.
5341         (df_simulate_one_insn_backwards): Likewise for param 2.
5342         (df_simulate_one_insn_forwards): Likewise.
5343         (df_uses_create): Likewise for param 2.
5344         (df_insn_create_insn_record): Likewise for param 1.
5345         (df_insn_delete): Likewise.
5346         (df_insn_rescan): Likewise.
5347         (df_insn_rescan_debug_internal): Likewise.
5348         (df_insn_change_bb): Likewise.
5349         (df_notes_rescan): Likewise.
5350         * rtl.h (remove_death): Likewise for param 2.
5351         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
5352         const rtx_insn *.
5353         * sched-int.h (reemit_notes): Strengthen param from rtx to
5354         rtx_insn *.
5355         * valtrack.h (propagate_for_debug): Likewise for param 1.
5356
5357         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
5358         local "tmp_rtx" from const_rtx to const rtx_insn *.
5359         * combine.c (remove_death): Strengthen param "insn" from rtx to
5360         rtx_insn *.
5361         (move_deaths): Likewise for local "where_dead".
5362         * cse.c (delete_trivially_dead_insns): Introduce local
5363         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
5364         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
5365         rtx_insn *.
5366         (df_reg_defined): Likewise.
5367         (df_find_use): Likewise.
5368         (df_reg_used): Likewise.
5369         (df_dump_insn_problem_data): Strengthen param "insn" from
5370         const_rtx to const rtx_insn *.
5371         (df_dump_insn_top): Likewise.
5372         (df_dump_insn_bottom): Likewise.
5373         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
5374         (df_insn_debug_regno): Likewise.
5375         (debug_df_insn): Likewise.
5376         (DF_REF_INSN): Delete.
5377         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
5378         from rtx to rtx_insn *.
5379         (df_chain_insn_top_dump): Strengthen param "insn" from
5380         const_rtx to const rtx_insn *.
5381         (df_chain_insn_bottom_dump): Likewise.
5382         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
5383         rtx_insn *.
5384         (df_word_lr_simulate_uses): Likewise.
5385         (df_print_note): Likewise.
5386         (df_remove_dead_and_unused_notes): Likewise.
5387         (df_set_unused_notes_for_mw): Likewise.
5388         (df_set_dead_notes_for_mw): Likewise.
5389         (df_create_unused_note): Likewise.
5390         (df_simulate_find_defs): Likewise.
5391         (df_simulate_find_uses): Likewise.
5392         (df_simulate_find_noclobber_defs): Likewise.
5393         (df_simulate_defs): Likewise.
5394         (df_simulate_uses): Likewise.
5395         (df_simulate_one_insn_backwards): Likewise.
5396         (df_simulate_one_insn_forwards): Likewise.
5397         (df_md_simulate_one_insn): Likewise.
5398         * df-scan.c (df_uses_create): Likewise.
5399         (df_insn_create_insn_record): Likewise.
5400         (df_insn_delete): Likewise.
5401         (df_insn_rescan): Likewise.
5402         (df_insn_rescan_debug_internal): Likewise.
5403         (df_insn_change_bb): Likewise.
5404         (df_notes_rescan): Likewise.
5405         (df_refs_add_to_chains): Likewise.
5406         (df_insn_refs_verify): Likewise.
5407         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
5408         when invoking df_insn_delete.
5409         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
5410         (set_unique_reg_note): Add checked cast.
5411         * final.c (cleanup_subreg_operands): Likewise.
5412         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
5413         "insn" from rtx to rtx_insn *.
5414         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
5415         "last" from rtx to rtx_insn *.
5416         * ira-emit.c (change_regs_in_insn): New function.
5417         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
5418         Invoke change_regs_in_insn rather than change_regs.
5419         * ira.c (update_equiv_regs): Strengthen locals "insn",
5420         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
5421         for_each_rtx_in_insn rather than for_each_rtx.
5422         * recog.c (confirm_change_group): Add checked casts.
5423         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
5424         Add checked cast.
5425         (peep2_fill_buffer): Add checked cast.
5426         * rtlanal.c (remove_note): Likewise.
5427         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
5428         locals "next" "end" from rtx to rtx_insn *.
5429
5430 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5431
5432         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
5433         to rtx_insn *.
5434         (struct reg_use_data): Likewise for field "insn".
5435         (insn_cost): Likewise for param.
5436         (real_insn_for_shadow): Likewise for return type and param.
5437         (increase_insn_priority): Likewise for param 1.
5438         (debug_dependencies): Likewise for both params.
5439
5440         * haifa-sched.c (insn_delay): Likewise for param "insn".
5441         (real_insn_for_shadow): Likewise for return type and param "insn".
5442         (update_insn_after_change): Likewise for param "insn".
5443         (recompute_todo_spec): Likewise for param "next" and locals "pro",
5444         "other".
5445         (insn_cost): Likewise for param "insn".
5446         (increase_insn_priority): Likewise.
5447         (calculate_reg_deaths): Likewise.
5448         (setup_insn_reg_pressure_info): Likewise.
5449         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
5450         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
5451         (model_recompute): Likewise.
5452         (must_restore_pattern_p): Likewise for param "next".
5453         (model_excess_cost): Likewise for param "insn".
5454         (queue_remove): Likewise.
5455         (adjust_priority): Likewise for param "prev".
5456         (update_register_pressure): Likewise for param "insn".
5457         (setup_insn_max_reg_pressure): Likewise for local "insn".
5458         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
5459         (model_add_to_schedule): Likewise.
5460         (model_reset_queue_indices): Likewise for local "insn".
5461         (unschedule_insns_until): Strengthen local "recompute_vec" from
5462         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
5463         "con" from rtx to rtx_insn *.
5464         (restore_last_backtrack_point): Likewise for both locals "x". Add
5465         checked casts.
5466         (estimate_insn_tick): Likewise for param "insn".
5467         (commit_schedule): Likewise for params "prev_head", "tail" and
5468         local "x".
5469         (verify_shadows): Likewise for locals "i1", "i2".
5470         (dump_insn_stream): Likewise for params "head", "tail" and locals
5471         "next_tail", "insn".
5472         (schedule_block): Likewise for locals "insn", "x".  Add a checked
5473         cast.
5474         (fix_inter_tick): Likewise for params "head", "tail".
5475         (create_check_block_twin): Likewise for local "jump".
5476         (haifa_change_pattern): Likewise for param "insn".
5477         (haifa_speculate_insn): Likewise.
5478         (dump_new_block_header): Likewise for params "head", "tail".
5479         (fix_jump_move): Likewise for param "jump".
5480         (move_block_after_check): Likewise.
5481         (sched_init_insn_luid): Likewise for param "insn".
5482         (sched_init_luids): Likewise for local "insn".
5483         (insn_luid): Likewise for param "insn".
5484         (init_h_i_d): Likewise.
5485         (haifa_init_h_i_d): Likewise for local "insn".
5486         (haifa_init_insn): Likewise for param "insn".
5487         * sched-deps.c (add_dependence): Likewise for local "real_pro",
5488         "other".
5489         (create_insn_reg_use): Likewise for param "insn".
5490         (setup_insn_reg_uses): Likewise.  Add a checked cast.
5491         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5492         "tail" from rtx to rtx_insn *.
5493         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5494         "insn", "next_tail".
5495
5496 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5497
5498         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5499         from rtx to rtx_insn *.
5500         (model_add_to_schedule): Likewise for locals "start", "end",
5501         "iter".
5502
5503 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5504
5505         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5506         rtx_insn *.
5507         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
5508         "to" and locals "insn", "next", "copy".  Remove now-redundant
5509         checked cast.
5510
5511 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5512
5513         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5514         rtx_insn * and param 4 from rtx * to rtx_insn **.
5515         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5516         param 2 from rtx * to rtx_insn **.
5517
5518         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5519         rtx_insn * and final param from rtx * to rtx_insn **.
5520
5521         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5522         from rtx to rtx_insn *.
5523         (try_head_merge_bb): Likewise for both locals named "move_upto".
5524         * df-problems.c (can_move_insns_across): Likewise for params
5525         "from", "to", "across_from", "across_to" and locals "insn",
5526         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
5527         rtx_insn **.
5528         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5529         from rtx to rtx_insn *.
5530         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5531         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
5532         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5533         rtx_insn *.
5534         (noce_try_abs): Likewise.
5535         (noce_get_condition): Likewise for param "jump".  Strengthen param
5536         "earliest" from rtx * to rtx_insn **.
5537         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5538         rtx_insn *.
5539         (find_cond_trap): Likewise.
5540         (dead_or_predicable): Likewise for local "earliest".
5541         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
5542         checked cast.
5543         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5544         and local "prev".  Strengthen param "earliest" from rtx * to
5545         rtx_insn **.
5546         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5547         Strengthen param "earliest" from rtx * to rtx_insn **.
5548
5549 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5550
5551         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5552         "to" and local "insn" from rtx to rtx_insn *.
5553
5554 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5555
5556         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5557         from rtx to rtx_insn *.
5558         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5559         (code_motion_path_driver): Likewise for local "last_insn".
5560         (simplify_changed_insns): Likewise for local "insn".
5561
5562 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5563
5564         * rtl.h (push_to_sequence): Strengthen param from rtx to
5565         rtx_insn *.
5566         (push_to_sequence2): Likewise for both params.
5567         (delete_insns_since): Likewise for param.
5568         (reorder_insns_nobb): Likewise for all three params.
5569         (set_new_first_and_last_insn): Likewise for both params.
5570
5571         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5572         rtx_insn *.  Remove now-redundant cast.
5573         (set_last_insn): Likewise.
5574
5575         * builtins.c (expand_builtin_return): Strengthen local
5576         "call_fusage" from rtx to rtx_insn *.
5577         * cfgrtl.c (create_basic_block_structure): Likewise for local
5578         "after".
5579         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5580         "first", "last" and local "insn".
5581         (delete_insns_since): Likewise for param "from".
5582         (reorder_insns_nobb): Likewise for params "from", "to", "after"
5583         and local "x".
5584         (push_to_sequence): Likewise for param "first" and local "last".
5585         (push_to_sequence2): Likewise for params "first" and "last".
5586         * lra.c (emit_add3_insn): Likewise for local "last".
5587         (lra_emit_add): Likewise.
5588         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5589         "last_insn".
5590         (process_address_1): Likewise for locals "insn", last".
5591         * modulo-sched.c (ps_first_note): Likewise for return type.
5592         * optabs.c (expand_binop_directly): Likewise for param "last".
5593
5594 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5595
5596         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5597         to rtx_insn*.
5598         * emit-rtl.c (get_last_insn_anywhere): Likewise.
5599
5600 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5601
5602         * function.h (struct sequence_stack): Strengthen fields "first"
5603         and "last" from rtx to rtx_insn *.
5604         (struct emit_status): Likewise for fields "x_first_insn" and
5605         "x_last_insn".
5606
5607         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5608         (set_first_insn): Add checked cast.
5609         (get_last_insn): Remove now-redundant checked cast.
5610         (set_last_insn): Add checked cast.
5611
5612         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5613         "saved_first" and "saved_last" from rtx to rtx_insn *.
5614
5615 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5616
5617         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5618         (unlink_insn_chain): Strengthen both params from rtx to
5619         rtx_insn *.
5620
5621         * cfgrtl.c (cfg_layout_function_header): Likewise for this
5622         variable.
5623         (unlink_insn_chain): Likewise for params "first" and "last".
5624         Remove now-redundant checked cast.
5625         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5626         (fixup_reorder_chain): Strengthen local "insn" from rtx to
5627         rtx_insn *.
5628         * emit-rtl.c (link_insn_into_chain): Likewise for all three
5629         params.
5630         (add_insn): Likewise for param "insn" and local "prev".
5631         (add_insn_after_nobb): Likewise for both params and local "next".
5632         (add_insn_before_nobb): Likewise for both params and local "prev".
5633         (add_insn_after): Rename param "after" to "uncast_after",
5634         introducing local "after" with another checked cast.
5635         (add_insn_before): Rename params "insn" and "before", giving them
5636         "uncast_" prefixes, adding the old names back using checked casts.
5637         (emit_note_after): Likewise for param "after".
5638         (emit_note_before): Likewise for param "before".
5639         (emit_label): Add a checked cast.
5640
5641 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5642
5643         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
5644         "insn" from rtx to rtx_insn *.
5645
5646         * cselib.c (cselib_record_sets_hook): Likewise.
5647
5648         * var-tracking.c (add_with_sets): Likewise, renaming back from
5649         "uncast_insn" to "insn" and eliminating the checked cast from rtx
5650         to rtx_insn *.
5651
5652 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5653
5654         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5655         and "header_" from rtx to rtx_insn *.
5656         (struct basic_block_d): Likewise for field "head_" within "x"
5657         field of union basic_block_il_dependent.
5658         (BB_HEAD): Drop function...
5659         (SET_BB_HEAD): ...and this function in favor of...
5660         (BB_HEAD): ...reinstate macro.
5661         (BB_END): Drop function...
5662         (SET_BB_END): ...and this function in favor of...
5663         (BB_END): ...reinstate macro.
5664         (BB_HEADER): Drop function...
5665         (SET_BB_HEADER): ...and this function in favor of...
5666         (BB_HEADER): ...reinstate macro.
5667
5668         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5669         (fix_crossing_unconditional_branches): Likewise.
5670         * caller-save.c (save_call_clobbered_regs): Likewise.
5671         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5672         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5673         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5674         (merge_blocks_move_successor_nojumps): Likewise.
5675         (outgoing_edges_match): Update use of for_each_rtx to
5676         for_each_rtx_in_insn.
5677         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5678         (expand_gimple_cond): Likewise.
5679         (expand_gimple_tailcall): Likewise.
5680         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5681         SET_BB_END.
5682         (construct_exit_block): Drop use of SET_BB_END.
5683         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5684         rtx_insn *.
5685         (delete_insn): Rename param "insn" to "uncast_insn", introducing
5686         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
5687         SET_BB_HEAD and SET_BB_END.
5688         (create_basic_block_structure): Drop use of SET_BB_HEAD and
5689         SET_BB_END.
5690         (rtl_delete_block): Drop use of SET_BB_HEAD.
5691         (rtl_split_block): Drop use of SET_BB_END.
5692         (emit_nop_for_unique_locus_between): Likewise.
5693         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5694         (block_label): Drop use of SET_BB_HEAD.
5695         (fixup_abnormal_edges): Drop use of SET_BB_END.
5696         (record_effective_endpoints): Drop use of SET_BB_HEADER.
5697         (relink_block_chain): Likewise.
5698         (fixup_reorder_chain): Drop use of SET_BB_END.
5699         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5700         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5701         rtx_insn **.  Drop use of SET_BB_HEADER.
5702         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5703         SET_BB_HEAD.
5704         (BB_HEAD): Delete this function.
5705         (SET_BB_HEAD): Likewise.
5706         (BB_END): Likewise.
5707         (SET_BB_END): Likewise.
5708         (BB_HEADER): Likewise.
5709         (SET_BB_HEADER): Likewise.
5710         * emit-rtl.c (add_insn_after):  Rename param "insn" to
5711         "uncast_insn", adding a new local "insn" and a checked cast to
5712         rtx_insn *.  Drop use of SET_BB_END.
5713         (remove_insn): Strengthen locals "next" and "prev" from rtx to
5714         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
5715         (reorder_insns): Drop use of SET_BB_END.
5716         (emit_insn_after_1): Strengthen param "first" and locals "last",
5717         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
5718         (emit_pattern_after_noloc): Add checked cast.
5719         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5720         (restore_other_notes): Likewise.
5721         (move_insn): Likewise.
5722         (sched_extend_bb): Likewise.
5723         (fix_jump_move): Likewise.
5724         * ifcvt.c (noce_process_if_block): Likewise.
5725         (dead_or_predicable): Likewise.
5726         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5727         * reg-stack.c (change_stack): Drop use of SET_BB_END.
5728         * sel-sched-ir.c (sel_move_insn): Likewise.
5729         * sel-sched.c (move_nop_to_previous_block): Likewise.
5730
5731         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5732         SET_BB_END.
5733         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5734
5735 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5736
5737         * basic-block.h (create_basic_block_structure): Strengthen params
5738         1 "head" and 2 "end" from rtx to rtx_insn *.
5739         * cfgrtl.c (create_basic_block_structure): Likewise.
5740         (rtl_create_basic_block): Update casts from void * to rtx to
5741         rtx_insn *, so that we can pass them as rtx_insn * to
5742         create_basic_block_structure.
5743         * sel-sched-ir.c (sel_create_basic_block): Likewise.
5744
5745 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5746
5747         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5748         rtx_insn **.
5749         (check_for_inc_dec): Strengthen param "insn" from rtx to
5750         rtx_insn *.
5751
5752         * cselib.h (cselib_process_insn): Likewise.
5753
5754         * cselib.c (cselib_record_sets): Likewise.
5755         (cselib_process_insn): Likewise.
5756
5757         * dse.c (struct insn_info): Likewise for field "insn".
5758         (check_for_inc_dec_1): Likewise for local "insn".
5759         (check_for_inc_dec): Likewise for param "insn".
5760         (scan_insn): Likewise.
5761         (dse_step1): Likewise for local "insn".
5762
5763         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5764         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
5765
5766 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5767
5768         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5769         from rtx to rtx_insn *.
5770         (DEP_PRO): Delete this function and...
5771         (SET_DEP_PRO): ...this function in favor of...
5772         (DEP_PRO): ...reinstate this macro.
5773         (DEP_CON): Delete this function and...
5774         (SET_DEP_CON): ...this function in favor of...
5775         (DEP_CON): ...reinstate this old macro.
5776         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5777         (init_dep): Likewise.
5778         (set_priorities): Likewise for both params.
5779         (sd_copy_back_deps): Likewise for params 1 and 2.
5780
5781         * haifa-sched.c (priority): Likewise for param "insn" and local
5782         "next".
5783         (set_priorities): Likewise for params "head" and "tail" and local
5784         "insn".
5785         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5786         local "consumer".
5787         (add_to_speculative_block): Add a checked cast.
5788         (create_check_block_twin): Drop use of SET_DEP_CON.
5789         (add_jump_dependencies): Strengthen params "insn" and "jump" from
5790         rtx to rtx_insn *.
5791
5792         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5793         Drop use of SET_DEP_PRO
5794         (init_dep): Strengthen params "pro" and "con" from rtx to
5795         rtx_insn *.
5796         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
5797         use of SET_DEP_CON.
5798         (DEP_PRO): Delete.
5799         (DEP_CON): Delete.
5800         (SET_DEP_PRO): Delete.
5801         (SET_DEP_CON): Delete.
5802
5803 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5804
5805         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5806         from rtx to rtx_insn *.
5807         (VINSN_INSN_RTX): Eliminate rvalue function and...
5808         (SET_VINSN_INSN): ...lvalue function in favor of...
5809         (VINSN_INSN_RTX): reinstate this old macro.
5810
5811         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5812         in favor of VINSN_INSN_RTX.
5813         (VINSN_INSN_RTX): Delete this function.
5814         (SET_VINSN_INSN_RTX): Likewise.
5815
5816 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5817
5818         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5819         (BND_TO): Delete this function and...
5820         (SET_BND_TO): ...this functions in favor of...
5821         (BND_TO): ...reinstating this macro.
5822         (struct _fence): Strengthen field "executing_insns" from
5823         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
5824         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5825         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5826         and param "insn" from rtx to insn_t.
5827         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5828         rtx_insn *.
5829
5830         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5831         vec<rtx_insn *> .
5832         (rtx_vec_t): Likewise.
5833         (struct sched_deps_info_def): Strengthen param of "start_insn"
5834         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
5835         "note_mem_dep" callback and first param of "note_dep" callback.
5836
5837         * haifa-sched.c (add_to_speculative_block): Strengthen param
5838         "insn" from rtx to rtx_insn *.
5839         (clear_priorities): Likewise.
5840         (calc_priorities): Likewise for local "insn".
5841
5842         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5843         Remove redundant checked cast.
5844         (haifa_note_mem_dep): Likewise for param "pending_insn".
5845         (haifa_note_dep): Likewise for param "elem".
5846         (note_mem_dep): Likewise for param "e".
5847         (sched_analyze_1): Add checked casts.
5848         (sched_analyze_2): Likewise.
5849
5850         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5851         from rtx to rtx_insn *.
5852         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5853         from vec<rtx> * to vec<rtx_insn *> *.
5854
5855         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5856         scaffolding.
5857         (flist_add): Strengthen param "executing_insns" from
5858         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5859         (advance_deps_context): Remove now-redundant checked cast.
5860         (init_fences): Replace uses of NULL_RTX with NULL.
5861         (merge_fences): Strengthen params "last_scheduled_insn" and
5862         "sched_next" from rtx to rtx_insn * and "executing_insns" from
5863         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5864         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5865         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5866         an instruction, rather than doing double-duty as a pattern.
5867         (return_nop_to_pool): Update for change of insn_t.
5868         (deps_init_id): Remove now-redundant checked cast.
5869         (struct sched_scan_info_def): Strengthen param of "init_insn"
5870         callback from rtx to insn_t.
5871         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5872         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5873         NULL.
5874         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5875         "end" from rtx to rtx_insn *.
5876         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5877         (rtx insn_rtx, bool force_unique_p)
5878         (BND_TO): Delete function.
5879         (SET_BND_TO): Delete function.
5880
5881         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5882         rtx to rtx_insn *.
5883         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5884         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5885         rtx to rtx_insn *.
5886         (undo_transformations): Likewise for param "insn".
5887         (update_liveness_on_insn): Likewise.
5888         (compute_live_below_insn): Likewise for param "insn" and local
5889         "succ".
5890         (update_data_sets): Likewise for param "insn".
5891         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5892         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5893         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5894         rtx_insn *.
5895         (move_cond_jump): Likewise for param "insn".
5896         (move_cond_jump): Drop use of SET_BND_TO.
5897         (compute_av_set_on_boundaries): Likewise.
5898         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5899         (update_and_record_unavailable_insns): Strengthen local "bb_end"
5900         from rtx to rtx_insn *.
5901         (maybe_emit_renaming_copy): Likewise for param "insn".
5902         (maybe_emit_speculative_check): Likewise.
5903         (handle_emitting_transformations): Likewise.
5904         (remove_insn_from_stream): Likewise.
5905         (code_motion_process_successors): Strengthen local "succ" from rtx
5906         to insn_t.
5907
5908 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5909
5910         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5911         ilist_t, not _xlist_t;
5912         (ILIST_INSN): Define in terms of new union field "insn".
5913         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5914         _XLIST_NEXT.
5915         (struct _list_node): Add new field "insn" to the union, of type
5916         insn_t.
5917         (ilist_add): Replace macro with an inline function, requiring an
5918         insn_t.
5919         (ilist_remove): Define this macro directly in terms of
5920         _list_remove, rather than indirectly via _xlist_remove.
5921         (ilist_clear): Likewise, in terms of _list_clear rather than
5922         _xlist_clear.
5923         (ilist_is_in_p): Replace macro with an inline function, requiring
5924         an insn_t.
5925         (_list_iter_cond_insn): New function.
5926         (ilist_iter_remove): Define this macro directly in terms of
5927         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5928         (ilist_iterator): Define directly in terms of _list_iterator
5929         rather than indirectly through _xlist_iterator.
5930         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5931         than in terms of _FOR_EACH_X.
5932         (FOR_EACH_INSN_1): Likewise.
5933
5934 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
5935
5936         PR target/60606
5937         PR target/61330
5938         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5939         DECL_HARD_REGISTER and return for invalid register specifications.
5940         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5941         DECL_HARD_REGISTER, call expand_one_error_var.
5942         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5943         CC_REGNUM with non-MODE_CC modes.
5944         (arm_regno_class): Return NO_REGS for PC_REGNUM.
5945
5946 2014-08-26  Marek Polacek  <polacek@redhat.com>
5947
5948         PR c/61271
5949         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5950
5951 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
5952
5953         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5954         qi cost; add di cost.
5955         (cortexa57_addrcost_table): Likewise.
5956
5957 2014-08-26  Marek Polacek  <polacek@redhat.com>
5958
5959         PR c/61271
5960         * expr.c (is_aligning_offset): Remove logical not.
5961
5962 2014-08-26  Marek Polacek  <polacek@redhat.com>
5963
5964         PR c/61271
5965         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5966         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5967
5968 2014-08-26  Richard Biener  <rguenther@suse.de>
5969
5970         PR tree-optimization/62175
5971         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5972         expand possibly trapping operations.
5973
5974 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5975
5976         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5977         "insn" from rtx to rtx_insn *.
5978         (permute_load): Likewise for param "insn".
5979         (permute_store): Likewise.
5980         (handle_special_swappables): Likewise for local "insn".
5981         (replace_swap_with_copy): Likewise for locals "insn" and
5982         "new_insn".
5983         (rs6000_analyze_swaps): Likewise for local "insn".
5984
5985 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5986
5987         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5988         to rtx_insn *.
5989
5990 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5991
5992         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5993         "note_list" from rtx to rtx_insn *.
5994         (BB_NOTE_LIST): Replace this function and...
5995         (SET_BB_NOTE_LIST): ...this function with...
5996         (BB_NOTE_LIST): ...the former macro implementation.
5997
5998         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5999         local "from_start" from rtx to rtx_insn *.  Strengthen param
6000         "to_endp" from rtx * to rtx_insn **.
6001
6002         * haifa-sched.c (concat_note_lists): Likewise.
6003         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
6004         BB_NOTE_LIST.
6005         (sel_restore_notes): Likewise.
6006         (move_bb_info): Likewise.
6007         (BB_NOTE_LIST): Delete this function.
6008         (SET_BB_NOTE_LIST): Delete this function.
6009         * sel-sched.c (create_block_for_bookkeeping): Eliminate
6010         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
6011
6012 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6013
6014         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
6015         from rtx * to rtx_insn **.
6016         (reorder2): Likewise.
6017         (dependencies_evaluation_hook): Strengthen params "head", "tail"
6018         from rtx to rtx_insn *.
6019
6020         * doc/tm.texi: Update mechanically for above change to target.def.
6021
6022         * sched-int.h (note_list): Strengthen this variable from rtx to
6023         rtx_insn *.
6024         (remove_notes): Likewise for both params.
6025         (restore_other_notes): Likewise for return type and first param.
6026         (struct ready_list): Strengthen field "vec" from rtx * to
6027         rtx_insn **.
6028         (struct dep_replacement): Strenghten field "insn" from rtx to
6029         rtx_insn *.
6030         (struct deps_desc): Likewise for fields "last_debug_insn",
6031         "last_args_size".
6032         (struct haifa_sched_info): Likewise for callback field
6033         "can_schedule_ready_p"'s param, for first param of "new_ready"
6034         callback field, for both params of "rank" callback field, for
6035         first field of "print_insn" callback field (with a const), for
6036         both params of "contributes_to_priority" callback, for param
6037         of "insn_finishes_block_p" callback, for fields "prev_head",
6038         "next_tail", "head", "tail", for first param of "add_remove_insn"
6039         callback, for first param of "begin_schedule_ready" callback, for
6040         both params of "begin_move_insn" callback, and for second param
6041         of "advance_target_bb" callback.
6042         (add_dependence): Likewise for params 1 and 2.
6043         (sched_analyze): Likewise for params 2 and 3.
6044         (deps_analyze_insn): Likewise for param 2.
6045         (ready_element): Likewise for return type.
6046         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6047         (try_ready): Strenghten param from rtx to rtx_insn *.
6048         (sched_emit_insn): Likewise for return type.
6049         (record_delay_slot_pair): Likewise for params 1 and 2.
6050         (add_delay_dependencies): Likewise for param.
6051         (contributes_to_priority): Likewise for both params.
6052         (find_modifiable_mems): Likewise.
6053
6054         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
6055         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
6056         "first_older_only_insn" from rtx to rtx_insn *.
6057         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
6058         rtx_insn **.
6059
6060         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
6061         "last_scheduled_iter0" from rtx to rtx_insn *.
6062         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
6063         (c6x_sched_reorder_1): Strengthen param "ready" and locals
6064         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
6065         "insn" from rtx to rtx_insn *.
6066         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
6067         rtx_insn **.
6068         (c6x_sched_reorder2): Strengthen param "ready" and locals
6069         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
6070         "insn" from rtx to rtx_insn *.
6071         (c6x_variable_issue):  Add a checked cast when assigning from insn
6072         to ss.last_scheduled_iter0.
6073         (split_delayed_branch): Strengthen param "insn" and local "i1"
6074         from rtx to rtx_insn *.
6075         (split_delayed_nonbranch): Likewise.
6076         (undo_split_delayed_nonbranch): Likewise for local "insn".
6077         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
6078         "entry_after", "end_packet", "head_insn", "tail_insn",
6079         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
6080         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
6081         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
6082         but add a checked cast on loop->start_label.  Consolidate calls to
6083         avoid assigning result of gen_spkernel to "insn", now an
6084         rtx_insn *.
6085
6086         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
6087         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
6088         rtx to rtx_insn *.
6089         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
6090         rtx_insn **.  Strengthen locals "top", "next" from rtx to
6091         rtx_insn *.
6092         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
6093         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
6094         (add_parameter_dependencies): Strengthen params "call", "head" and
6095         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
6096         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
6097         (add_dependee_for_func_arg): Likewise for param "arg" and local
6098         "insn".
6099         (ix86_dependencies_evaluation_hook): Likewise for params "head",
6100         "tail" and locals "insn", "first_arg".
6101
6102         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
6103         for params "head", "tail" and locals "insn", "next", "next_tail".
6104         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
6105         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
6106         "insn", "lowest", "highest" from rtx to rtx_insn *.
6107         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
6108         rtx_insn **.
6109         (ia64_sched_reorder2): Likewise.
6110
6111         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
6112         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
6113         from rtx * to rtx_insn **.
6114         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
6115         rtx_insn **.
6116         (mep_print_sched_insn): Strengthen param "insn" from rtx to
6117         rtx_insn *.
6118         (mep_sched_reorder): Strengthen param "ready" from rtx * to
6119         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
6120         to rtx_insn *.
6121
6122         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
6123         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
6124         to rtx_insn *.
6125         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
6126         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
6127         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
6128         rtx_insn **.
6129         (vr4130_reorder): Likewise.
6130         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
6131         rtx to rtx_insn *.
6132         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
6133         rtx_insn **.
6134         (mips_sched_reorder): Likewise.
6135         (mips_sched_reorder2): Likewise.
6136
6137         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
6138
6139         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
6140         Strengthen local "tmp" from rtx to rtx_insn *.
6141         (rs6000_sched_reorder2): Likewise.
6142
6143         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
6144         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
6145         (s390_sched_reorder): Strengthen param "ready" from rtx * to
6146         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
6147
6148         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
6149         "tmp2" from rtx to rtx_insn *.
6150         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
6151         Strengthen local "insn" from rtx to rtx_insn *.
6152         (ready_reorder): Strengthen param "ready" from rtx * to
6153         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
6154         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
6155         (sh_reorder2): Likewise.
6156
6157         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
6158         local "insn" from rtx to rtx_insn *.
6159
6160         * haifa-sched.c (note_list): Strengthen this variable from rtx to
6161         rtx_insn *.
6162         (scheduled_insns): Strengthen this variable from vec<rtx> to
6163         vec<rtx_insn *>.
6164         (set_modulo_params): Likewise for locals "i1", "i2".
6165         (record_delay_slot_pair): Likewise for params "i1", "i2".
6166         (add_delay_dependencies): Likewise for param "insn".
6167         (cond_clobbered_p): Likewise.
6168         (recompute_todo_spec): Likewise for local "prev".
6169         (last_scheduled_insn): Likewise for this variable.
6170         (nonscheduled_insns_begin): Likewise.
6171         (model_set_excess_costs): Strengthen param "insns" from rtx * to
6172         rtx_insn **.
6173         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
6174         rtx_insn *.
6175         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
6176         Strengthen local "insn" from rtx to rtx_insn *.
6177         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
6178         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6179         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
6180         (ready_remove_first): Likewise for return type and local "t".
6181         (ready_element): Likewise for return type.
6182         (ready_remove): Likewise for return type and local "t".
6183         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
6184         (check_clobbered_conditions): Strengthen local "x" from rtx to
6185         rtx_insn *, adding a checked cast.
6186         (schedule_insn): Likewise for param "insn".
6187         (remove_notes): Likewise for params "head", "tail" and locals
6188         "next_tail", "insn", "next".
6189         (struct haifa_saved_data): Likewise for fields
6190         "last_scheduled_insn", "nonscheduled_insns_begin".
6191         (save_backtrack_point): Update for change to field "vec" of
6192         struct ready_list.
6193         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
6194         rtx_insn **.
6195         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
6196         from rtx to rtx_insn *
6197         (resolve_dependencies): Strengthen param "insn" from rtx to
6198         rtx_insn *
6199         (restore_other_notes): Likewise for return type, for param "head"
6200         and local "note_head".
6201         (undo_all_replacements): Likewise for local "insn".
6202         (first_nonscheduled_insn): Likewise for return type and local "insn".
6203         (queue_to_ready): Likewise for local "insn", adding checked casts.
6204         (early_queue_to_ready): Likewise for local "insn".
6205         (debug_ready_list_1): Strengthen local "p" from rtx * to
6206         rtx_insn **.
6207         (move_insn): Strengthen param "insn" and local "note" from rtx to
6208         rtx_insn *
6209         (insn_finishes_cycle_p): Likewise for param "insn".
6210         (max_issue): Likewise for local "insn".
6211         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
6212         to rtx_insn **.
6213         (commit_schedule): Strengthen param "prev_head" and local "insn"
6214         from rtx to rtx_insn *
6215         (prune_ready_list): Likewise for local "insn".
6216         (schedule_block): Likewise for locals "prev_head", "head", "tail",
6217         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
6218         (set_priorities): Likewise for local "prev_head".
6219         (try_ready): Likewise for param "next".
6220         (fix_tick_ready): Likewise.
6221         (change_queue_index): Likewise.
6222         (sched_extend_ready_list): Update for change to field "vec" of
6223         struct ready_list.
6224         (generate_recovery_code): Strengthen param "insn" from rtx to
6225         rtx_insn *.
6226         (begin_speculative_block): Likewise.
6227         (create_check_block_twin): Likewise for param "insn" and locals
6228         "label", "check", "twin".  Introduce local "check_pat" to avoid
6229         "check" being used as a plain rtx before being used as an insn.
6230         (fix_recovery_deps): Add a checked cast to rtx_insn * when
6231         extracting elements from ready_list.
6232         (sched_remove_insn): Strengthen param "insn" from rtx to
6233         rtx_insn *.
6234         (sched_emit_insn): Likewise for return type.
6235         (ready_remove_first_dispatch): Likewise for return type and local
6236         "insn".
6237
6238         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
6239
6240         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
6241         const rtx_insn *.
6242
6243         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
6244         from rtx to rtx_insn *.
6245         (add_dependence_list): Likewise for param "insn".  Add a checked
6246         cast.
6247         (add_dependence_list_and_free): Strengthen param "insn" from rtx
6248         to rtx_insn *.  Strengthen param "list_p" from rtx * to
6249         rtx_insn **.
6250         (chain_to_prev_insn): Strengthen param "insn" and locals
6251         "prec_nonnote", "i" from rtx to rtx_insn *.
6252         (flush_pending_lists): Likewise for param "insn".
6253         (cur_insn): Likewise for this variable.
6254         (haifa_start_insn): Add a checked cast.
6255         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
6256         (sched_analyze_reg): Likewise for param "insn".
6257         (sched_analyze_1): Likewise.
6258         (sched_analyze_2): Likewise.  Add checked casts.
6259         (sched_analyze_insn): Likewise.  Also for local "prev".
6260         (deps_analyze_insn): Likewise for param "insn".
6261         (sched_analyze): Likewise for params "head", "tail" and local "insn".
6262         (add_dependence_1): Likewise for params "insn", "elem".
6263         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
6264         (parse_add_or_inc): Likewise for param "insn".
6265         (find_inc): Likewise for local "inc_cand".
6266         (find_modifiable_mems): Likewise for params "head", "tail" and
6267         locals "insn", "next_tail".
6268
6269         * sched-ebb.c (init_ready_list): Likewise for local "insn".
6270         (begin_schedule_ready): Likewise for param "insn".
6271         (begin_move_insn): Likewise for params "insn" and "last".
6272         (ebb_print_insn): Strengthen param "insn" from const_rtx to
6273         const rtx_insn *.
6274         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
6275         (ebb_contributes_to_priority): Likewise for params "next", "insn".
6276         (ebb_add_remove_insn): Likewise for param "insn".
6277         (advance_target_bb): Likewise.
6278
6279         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
6280         "insn".
6281         (check_live): Likewise for param "insn".
6282         (init_ready_list): Likewise for local "insn".
6283         (can_schedule_ready_p): Likewise for param "insn".
6284         (begin_schedule_ready): Likewise.
6285         (new_ready): Likewise for param "next".
6286         (rgn_print_insn): Likewise for param "insn".
6287         (rgn_rank): Likewise for params "insn1", "insn2".
6288         (contributes_to_priority): Likewise for params "next", "insn".
6289         (rgn_insn_finishes_block_p): Likewise for param "insn".
6290         (add_branch_dependences): Likewise for params "head", "tail" and
6291         locals "insn", "last".
6292         (rgn_add_remove_insn): Likewise for param "insn".
6293         (advance_target_bb): Likewise.
6294
6295         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
6296         const_rtx to const rtx_insn *.
6297
6298         * sel-sched-dump.h (sel_print_insn): Likewise.
6299
6300         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
6301         (deps_init_id): Likewise.
6302
6303         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
6304         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
6305         rtx_insn **.
6306
6307 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6308
6309         * output.h (final_start_function): Strengthen param 1 from rtx to
6310         rtx_insn *.
6311
6312         * final.c (final_start_function): Likewise, renaming back from
6313         "uncast_first" to "first", and dropping the checked cast from rtx
6314         to rtx_insn *.
6315
6316 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6317
6318         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
6319         * final.c (final): Likewise.  Rename param back from
6320         "uncast_first" to "first" and eliminate the checked cast from rtx
6321         to rtx_insn *.
6322
6323 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6324
6325         * output.h (shorten_branches): Strengthen param from rtx to
6326         rtx_insn *.
6327
6328         * final.c (shorten_branches): Likewise, renaming param back from
6329         "uncast_first" to "first", and dropping the checked cast from rtx
6330         to rtx_insn *.
6331
6332         * genattr.c (gen_attr): Likewise when writing out the prototype of
6333         shorten_branches.
6334
6335 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6336
6337         * sched-int.h (struct haifa_sched_info): Strengthen fields
6338         "prev_head" and "next_tail" from rtx to rtx_insn *.
6339
6340 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6341
6342         * rtl.h (rtx_jump_table_data::get_labels): New method.
6343         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
6344         with use of the new rtx_jump_table_data::get_labels method.
6345         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
6346         to rtx_jump_table_data *.  Simplify by using get_labels method.
6347         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
6348         a dyn_cast, introducing local "table", using it to replace
6349         label-lookup logic with a get_labels method call.
6350         (patch_jump_insn): Simplify using get_labels method.
6351         * dwarf2cfi.c (create_trace_edges): Likewise.
6352         * rtlanal.c (label_is_jump_target_p): Likewise.
6353
6354 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6355
6356         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
6357         to rtx_insn *.
6358
6359         * emit-rtl.c (unshare_all_rtl_1): Likewise.
6360         (unshare_all_rtl_again): Likewise, also for local "p".
6361
6362 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6363
6364         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
6365         to rtx_insn *.
6366         * cfgrtl.c (delete_insn_and_edges): Likewise.
6367
6368 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6369
6370         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
6371         from rtx to rtx_insn *.
6372
6373         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
6374
6375 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6376
6377         * function.c (thread_prologue_and_epilogue_insns): Likewise for
6378         locals "returnjump", "epilogue_end", "insn", "next".
6379
6380         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
6381         "returnjump" from rtx * to rtx_insn **.
6382         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
6383
6384 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6385
6386         * basic-block.h (struct edge_def). Strengthen "r" within
6387         union edge_def_insns from rtx to rtx_insn *.
6388
6389         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
6390         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
6391         rtx_insn *.
6392         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
6393         from rtx to rtx_insn *.
6394         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
6395         rtx_insn *.
6396         * postreload-gcse.c (reg_killed_on_edge): Likewise.
6397         (reg_used_on_edge): Likewise.
6398         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
6399         (gt_pch_nx): New overload for rtx_insn *&.
6400         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
6401         from rtx to rtx_insn *.
6402
6403 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6404
6405         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
6406         from rtx to rtx_insn *.
6407         (BB_FOOTER): Replace function with access macro.
6408         (SET_BB_FOOTER): Delete.
6409
6410         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
6411         with BB_FOOTER.
6412         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6413         (emit_barrier_after_bb): Likewise.
6414         (record_effective_endpoints): Likewise.
6415         (relink_block_chain): Likewise.
6416         (fixup_fallthru_exit_predecessor): Likewise.
6417         (cfg_layout_duplicate_bb): Likewise.
6418         (cfg_layout_split_block): Likewise.
6419         (cfg_layout_delete_block): Likewise.
6420         (cfg_layout_merge_blocks): Likewise.
6421         (BB_FOOTER): Delete function.
6422         (SET_BB_FOOTER): Delete function.
6423         * combine.c (update_cfg_for_uncondjump): Replace uses of
6424         SET_BB_FOOTER with BB_FOOTER.
6425
6426 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6427
6428         * except.h (struct eh_landing_pad_d): Strengthen field
6429         "landing_pad" from rtx to rtx_code_label *.
6430
6431         * except.c (sjlj_emit_dispatch_table): Likewise for param
6432         "dispatch_label"
6433         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
6434
6435 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6436
6437         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
6438         first param from rtx to rtx_insn *.
6439         * config/xtensa/xtensa.c (struct machine_function): Likewise for
6440         field "set_frame_ptr_insn".
6441         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
6442         "csend" from rtx to rtx_code_label *.
6443         (xtensa_expand_atomic): Likewise for local "csloop".
6444         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
6445         rtx_insn *.
6446         (xtensa_call_tls_desc): Likewise for return type and locals
6447         "call_insn", "insns".
6448         (xtensa_legitimize_tls_address): Likewise for local "insns".
6449         (xtensa_expand_prologue): Likewise for locals "insn", "first".
6450
6451 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6452
6453         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
6454         first param from rtx to rtx_insn *.
6455         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
6456         "insn".
6457
6458 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6459
6460         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
6461         Strengthen param 1 from rtx to rtx_insn *.
6462         (tilepro_output_cbranch): Likewise.
6463         (tilepro_adjust_insn_length): Likewise.
6464         (tilepro_final_prescan_insn): Likewise for sole param.
6465
6466         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
6467         Likewise for local "last".
6468         (cbranch_predicted_p): Likewise for param "insn".
6469         (tilepro_output_simple_cbranch_with_opcode): Likewise.
6470         (tilepro_output_cbranch_with_opcode): Likewise.
6471         (tilepro_output_cbranch): Likewise.
6472         (frame_emit_load): Likewise for return type and locals "seq",
6473         "insn".
6474         (emit_sp_adjust): Likewise for return type and local "insn".
6475         (tilepro_expand_epilogue): Likewise for locals "last_insn",
6476         "insn".
6477         (tilepro_adjust_insn_length): Likewise for param "insn".
6478         (next_insn_to_bundle): Likewise for return type and params
6479         "r", "end".
6480         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6481         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6482         local "new_insns".
6483         (match_addli_pcrel): Likewise for param "insn".
6484         (replace_addli_pcrel): Likewise.
6485         (match_auli_pcrel): Likewise.
6486         (replace_auli_pcrel): Likewise.
6487         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6488         "next_insn".
6489         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6490         "queue", "next_queue", "prev".
6491         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6492         (tilepro_final_prescan_insn): Likewise for param "insn".
6493
6494 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6495
6496         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6497         Strengthen param 1 from rtx to rtx_insn *.
6498         (tilegx_output_cbranch): Likewise.
6499         (tilegx_adjust_insn_length): Likewise.
6500         (tilegx_final_prescan_insn): Likewise for sole param.
6501
6502         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6503         or local "last".
6504         (cbranch_predicted_p): Likewise for param "insn".
6505         (tilegx_output_simple_cbranch_with_opcode): Likewise.
6506         (tilegx_output_cbranch_with_opcode): Likewise.
6507         (tilegx_output_cbranch): Likewise.
6508         (frame_emit_load): Likewise for return type.
6509         (set_frame_related_p): Likewise for locals "seq", "insn".
6510         (emit_sp_adjust): Likewise for return type, and for local "insn".
6511         Introduce local "pat" for use in place of "insn" where the latter
6512         isn't an instruction.
6513         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6514         from rtx to rtx_insn *.
6515         (tilegx_adjust_insn_length): Likewise for param "insn".
6516         (next_insn_to_bundle): Likewise for return type and params "r" and
6517         "end".
6518         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6519         "end".
6520         (replace_insns): Likewise for params "old_insn", "new_insns".
6521         (replace_mov_pcrel_step1): Likewise for param "insn" and local
6522         "new_insns".
6523         (replace_mov_pcrel_step2): Likewise.
6524         (replace_mov_pcrel_step3): Likewise.
6525         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6526         "next_insn".
6527         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6528         "queue", "next_queue", "prev".
6529         (tilegx_output_mi_thunk): Likewise for local "insn".
6530         (tilegx_final_prescan_insn): Likewise for param "insn".
6531
6532 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6533
6534         * config/spu/spu.c (frame_emit_store): Strengthen return type from
6535         rtx to rtx_insn *.
6536         (frame_emit_load): Likewise.
6537         (frame_emit_add_imm): Likewise, also for local "insn".
6538         (spu_expand_prologue): Likewise for local "insn".
6539         (struct spu_bb_info): Likewise for field "prop_jump".
6540         (emit_nop_for_insn): Likewise for param "insn" and local
6541         "new_insn".
6542         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6543         "hbr_insn".
6544         (spu_emit_branch_hint): Likewise for params "before", "branch" and
6545         locals "hint", "insn".
6546         (get_branch_target): Likewise for param "branch".
6547         (insn_clobbers_hbr): Likewise for param "insn".
6548         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6549         locals "insn", "before_4", "before_16".
6550         (insert_hbrp): Likewise for local "insn".
6551         (spu_machine_dependent_reorg): Likewise for locals "branch",
6552         "insn", "next", "bbend".
6553         (uses_ls_unit): Likewise for param "insn".
6554         (get_pipe): Likewise.
6555         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6556         introducing a checked cast.
6557         (spu_sched_adjust_cost): Likewise for params "insn" and
6558         "dep_insn".
6559         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6560         (spu_sms_res_mii): Likewise.
6561
6562 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6563
6564         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6565         from rtx to rtx_insn *.
6566         (output_cbranch): Likewise for param 6.
6567         (output_return): Likewise for param 1.
6568         (output_sibcall): Likewise.
6569         (output_v8plus_shift): Likewise.
6570         (output_v8plus_mult): Likewise.
6571         (output_v9branch): Likewise for param 7.
6572         (output_cbcond):  Likewise for param 3.
6573
6574         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6575         for local "insn".
6576         (sparc_legitimize_pic_address): Likewise.
6577         (sparc_emit_call_insn): Likewise.
6578         (emit_save_or_restore_regs): Likewise.
6579         (emit_window_save): Likewise for return type and local "insn".
6580         (sparc_expand_prologue): Likewise for local "insn".
6581         (sparc_flat_expand_prologue): Likewise.
6582         (output_return): Likewise for param "insn".
6583         (output_sibcall): Likewise for param "insn" and local "delay".
6584         (output_ubranch): Likewise for param "insn".
6585         (output_cbranch): Likewise.
6586         (output_cbcond): Likewise.
6587         (output_v9branch): Likewise.
6588         (output_v8plus_shift): Likewise.
6589         (sparc_output_mi_thunk): Likewise for local "insn".
6590         (get_some_local_dynamic_name): Likewise.
6591         (output_v8plus_mult): Likewise for param "insn".
6592
6593 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6594
6595         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6596         from rtx to rtx_insn *.
6597         (output_branchy_insn): Likewise for param 3.
6598         (output_far_jump): Likewise for param 1.
6599         (final_prescan_insn): Likewise.
6600         (sh_insn_length_adjustment): Likewise for sole param.
6601
6602         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6603         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6604         rtx_code_label *.
6605         (sh_emit_compare_and_set): Likewise for local "lab".
6606         (output_far_jump): Strengthen param "insn" and local "prev" from
6607         rtx to rtx_insn *.
6608         (output_branchy_insn): Likewise for param "insn" and local
6609         "next_insn".
6610         (output_ieee_ccmpeq): Likewise for param "insn".
6611         (struct label_ref_list_d): Strengthen field "label" from rtx to
6612         rtx_code_label *.
6613         (pool_node): Likewise.
6614         (pool_window_label): Likewise for this global.
6615         (add_constant): Likewise for return type and locals "lab", "new_rtx".
6616         (dump_table): Strengthen params "start", "barrier" and local
6617         "scan" from rtx to rtx_insn *.
6618         (broken_move): Likewise for param "insn".
6619         (untangle_mova): Likewise for params "first_mova" and "new_mova".
6620         Strengthen param "first_mova" from rtx * to rtx_insn **.
6621         (mova_p): Likewise for param "insn".
6622         (fixup_mova): Likewise for param "mova".
6623         (find_barrier): Likewise for return type, params "mova" and
6624         "from", and locals "barrier_before_mova", "found_barrier",
6625         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
6626         "label" from rtx to rtx_code_label *.
6627         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6628         rtx to rtx_insn *.
6629         (sh_reorg): Likewise for locals "link", "scan", "barrier".
6630         (split_branches): Likewise for param "first" and local "insn".
6631         (final_prescan_insn): Likewise for param "insn".
6632         (sequence_insn_p): Likewise for locals "prev", "next".
6633         (sh_insn_length_adjustment): Likewise for param "insn".
6634         (sh_can_redirect_branch): Likewise for local "insn".
6635         (find_r0_life_regions): Likewise for locals "end", "insn".
6636         (sh_output_mi_thunk): Likewise for local "insns".
6637
6638 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6639
6640         * config/score/score.c (score_output_mi_thunk): Strengthen local
6641         "insn" from rtx to rtx_insn *.
6642         (score_prologue): Likewise.
6643
6644 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6645
6646         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6647         1 from rtx to rtx_insn *.
6648         (s390_emit_jump): Likewise for return type.
6649         (s390_emit_call): Likewise.
6650         (s390_load_got): Likewise.
6651
6652         * config/s390/s390.c (last_scheduled_insn): Likewise for this
6653         variable.
6654         (s390_match_ccmode): Likewise for param "insn".
6655         (s390_emit_jump): Likewise for return type.
6656         (s390_split_branches): Likewise for local "label".
6657         (struct constant): Strengthen field "label" from rtx to
6658         rtx_code_label *.
6659         (struct constant_pool): Likewise for field "label".  Strengthen
6660         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6661         rtx_insn *.
6662         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6663         insns.
6664         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6665         (s390_end_pool): Likewise.
6666         (s390_dump_pool): Likewise for local "insn".
6667         (s390_mainpool_start): Likewise.
6668         (s390_chunkify_start): Likewise.
6669         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6670         with insns.  Strengthen locals "label", "jump", "barrier", "next",
6671         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6672         (s390_chunkify_finish): Strengthen local "insn" from rtx to
6673         rtx_insn *.
6674         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6675         "jump", "label", "next_insn".
6676         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6677         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6678         "tbegin_insn".
6679         (s390_load_got): Likewise for return type and local "insns".
6680         (s390_save_gprs_to_fprs): Likewise for local "insn".
6681         (s390_restore_gprs_from_fprs): Likewise.
6682         (pass_s390_early_mach::execute): Likewise.
6683         (s390_emit_prologue): Likewise for local "insns".
6684         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6685         rtx_code_label *.
6686         (s390_emit_call): Strengthen return type and local "insn" from
6687         rtx to rtx_insn *.
6688         (s390_emit_tpf_eh_return): Likewise for local "insn".
6689         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6690         "next_insn", introducing locals "s_pat", "rpat" to allow this.
6691         (s390_fix_long_loop_prediction): Likewise for param "insn" and
6692         local "cur_insn".
6693         (s390_non_addr_reg_read_p): Likewise for param "insn".
6694         (find_cond_jump): Likewise for return type and param "insn".
6695         (s390_swap_cmp): Likewise for param "insn".
6696         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6697         "prev_insn", "next_insn".
6698         (s390_reorg): Likewise for locals "insn", "target".
6699         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6700         (s390_sched_variable_issue): For now, rename param "insn" to
6701         "uncast_insn", introducing a checked cast.
6702         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6703         insn.
6704         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6705         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
6706
6707 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6708
6709         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6710         param from rtx to rtx_insn *.
6711         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6712
6713 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6714
6715         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6716         4 from rtx to rtx_insn *.
6717         (rs6000_final_prescan_insn): Likewise for first param.
6718         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6719         local "insn".
6720         (rs6000_get_some_local_dynamic_name): Likewise.
6721         (output_cbranch): Likewise for param "insn".
6722         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6723         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6724         (rs6000_emit_allocate_stack): Likewise for local "insn".
6725         (load_cr_save): Likewise.
6726         (restore_saved_cr): Likewise.
6727         (restore_saved_lr): Likewise.
6728         (emit_cfa_restores): Likewise.
6729         (rs6000_output_function_epilogue): Likewise for locals "insn" and
6730         "deleted_debug_label".
6731         (rs6000_output_mi_thunk): Likewise for local "insn".
6732         (rs6000_final_prescan_insn): Likewise for param "insn".
6733
6734 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6735
6736         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6737         Strengthen param "insn" from rtx to rtx_insn *.
6738         * config/picochip/picochip.c (picochip_current_prescan_insn):
6739         Likewise for this variable.
6740         (picochip_final_prescan_insn): Likewise for param "insn".
6741
6742 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6743
6744         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6745         from rtx to rtx_insn *.
6746         (pa_output_indirect_call): Likewise.
6747         (pa_adjust_insn_length): Likewise.
6748         (pa_attr_length_millicode_call): Likewise.
6749         (pa_attr_length_call): Likewise.
6750         (pa_attr_length_indirect_call): Likewise.
6751
6752         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6753         "insn".
6754         (pa_attr_length_millicode_call): Likewise.
6755         (pa_attr_length_call): Likewise.
6756         (pa_output_call): Likewise.
6757         (pa_attr_length_indirect_call): Likewise.
6758         (pa_output_indirect_call): Likewise.
6759
6760 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6761
6762         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6763         Strengthen first param from rtx to rtx_insn *.
6764         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6765         param "insn".
6766
6767 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6768
6769         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6770         type from rtx to rtx_insn *.
6771         (mips_expand_call): Likewise.
6772         (mips_adjust_insn_length): Likewise for first param.
6773         (mips_output_conditional_branch): Likewise.
6774         (mips_output_order_conditional_branch): Likewise.
6775         (mips_final_prescan_insn): Likewise.
6776
6777         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6778         rtx_insn * for the SEQUENCE case.
6779         (SEQ_END): Likewise.
6780         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6781         (mips_emit_call_insn): Likewise, also for local "insn".
6782         (mips16_gp_pseudo_reg): Likewise for local "scan".
6783         (mips16_build_call_stub): Likewise for return type and for local
6784         "insn".  Introduce a new local "pattern" so that "insn" can indeed
6785         be an insn.
6786         (mips_expand_call): Strengthen return type and local "insn" from
6787         rtx to rtx_insn *.
6788         (mips_block_move_loop): Strengthen local "label" from rtx to
6789         rtx_code_label *.
6790         (mips_expand_synci_loop): Likewise for locals "label",
6791         "end_label".
6792         (mips_set_frame_expr): Strengthen local "insn" from rtx to
6793         rtx_insn *.
6794         (mips16e_collect_argument_saves): Likewise for locals "insn",
6795         "next".
6796         (mips_find_gp_ref): Likewise for param of callback for "pred"
6797         param, and for local "insn".
6798         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6799         (mips_insn_has_flexible_gp_ref_p): Likewise.
6800         (mips_epilogue_emit_cfa_restores): Likewise for return type and
6801         local "insn".
6802         (mips_epilogue_set_cfa): Likewise for local "insn".
6803         (mips_expand_epilogue): Likewise.
6804         (mips_adjust_insn_length): Likewise for param "insn".
6805         (mips_output_conditional_branch): Likewise.
6806         (mips_output_order_conditional_branch): Likewise.
6807         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6808         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6809         "falu2_turn_enabled_insn".
6810         (mips_builtin_branch_and_move): Strengthen locals "true_label",
6811         "done_label" from rtx to rtx_code_label *.
6812         (struct mips16_constant): Likewise for field "label".
6813         (mips16_add_constant): Likewise for return type.
6814         (mips16_emit_constants_1): Strengthen return type and param "insn"
6815         from rtx to rtx_insn *.
6816         (mips16_emit_constants): Likewise for param "insn".
6817         (mips16_insn_length): Likewise.
6818         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6819         to rtx_code_label *.
6820         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6821         from rtx to rtx_insn *.
6822         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6823         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
6824         (r10k_simplify_address): Strengthen param "insn" and local
6825         "def_insn" from rtx to rtx_insn *.
6826         (r10k_safe_address_p): Strengthen param "insn" from rtx to
6827         rtx_insn *.
6828         (r10k_needs_protection_p_1): Update target type of cast of data
6829         from to rtx to rtx_insn *.
6830         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6831         rtx * to rtx_insn **.
6832         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6833         rtx_insn *.
6834         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6835         (mips_call_expr_from_insn): Likewise for param "insn".
6836         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6837         (mips_find_pic_call_symbol): Likewise for param "insn".
6838         (mips_annotate_pic_calls): Likewise for local "insn".
6839         (mips_sim_insn): Likewise for this variable.
6840         (struct mips_sim): Likewise for field "insn" within elements of
6841         last_set array.
6842         (mips_sim_wait_reg): Likewise for param "insn".
6843         (mips_sim_wait_regs): Likewise.
6844         (mips_sim_wait_units): Likewise.
6845         (mips_sim_wait_insn): Likewise.
6846         (mips_sim_issue_insn): Likewise.
6847         (mips_sim_finish_insn): Likewise.
6848         (mips_seq_time): Likewise for param "seq" and local "insn".
6849         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6850         locals "first", "second".
6851         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6852         "last", "last2", "next".
6853         (mips_avoid_hazard): Likewise for params "after", "insn".
6854         (mips_reorg_process_insns): Likewise for locals "insn",
6855         "last_insn", "subinsn", "next_insn".
6856         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6857         (mips16_split_long_branches): Likewise for locals "insn" "jump",
6858         "jump_sequence".
6859         (mips_output_mi_thunk): Likewise for local "insn".
6860         (mips_final_prescan_insn): Likewise for param "insn".
6861
6862 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6863
6864         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6865         Strengthen return type and local "insns" from rtx to rtx_insn *.
6866         (microblaze_legitimize_tls_address): Likewise for local "insns".
6867         (microblaze_block_move_loop): Strengthen local "label" from rtx
6868         to rtx_code_label *.
6869         (microblaze_expand_prologue): Strengthen two locals named "insn"
6870         from rtx to rtx_insn *.
6871         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6872         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6873         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
6874         to rtx_code_label *.
6875
6876 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6877
6878         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6879         param from rtx to rtx_insn *.
6880         (mep_reuse_lo): Likewise for third param.
6881         (mep_use_post_modify_p): Likewise for first param.
6882         (mep_core_address_length): Likewise.
6883         (mep_cop_address_length): Likewise.
6884         (mep_final_prescan_insn): Likewise.
6885         (mep_store_data_bypass_p): Likewise for both params.
6886         (mep_mul_hilo_bypass_p): Likewise.
6887         (mep_ipipe_ldc_p): Likewise for param.
6888
6889         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6890         (mep_rewrite_mult): Likewise.
6891         (mep_rewrite_mulsi3): Likewise.
6892         (mep_rewrite_maddsi3): Likewise.
6893         (mep_reuse_lo_p_1): Likewise.
6894         (mep_reuse_lo_p): Likewise.
6895         (mep_frame_expr): Likewise.
6896         (mep_make_parallel): Likewise for both params.
6897         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6898         local "insn".
6899         (mep_use_post_modify_p): Likewise for param "insn".
6900         (mep_core_address_length): Likewise.
6901         (mep_cop_address_length): Likewise.
6902         (mep_reg_set_in_function): Likewise for local "insn".
6903         (mep_asm_without_operands_p): Likewise.
6904         (F): Likewise for return type and param "x".
6905         (add_constant): Likewise for local "insn".
6906         (maybe_dead_move): Likewise for return type and local "insn".
6907         (mep_expand_prologue): Likewise for local "insn".
6908         (mep_final_prescan_insn): Likewise for param "insn".
6909         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6910         "next", "follow", "x".
6911         (mep_insert_repeat_label_last): Likewise for return type, param
6912         "last_insn", and locals "next", "prev".  Strengthen param "label"
6913         from rtx to rtx_code_label *.
6914         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6915         rtx_insn *.
6916         (struct mep_doloop_end): Likewise for fields "insn" and
6917         "fallthrough".
6918         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6919         Strengthen local "repeat_label" from rtx to rtx_code_label *.
6920         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6921         rtx_insn *.
6922         (mep_invert_branch): Likewise for params "insn" and "after".
6923         (mep_reorg_erepeat): Likewise for param "insns" and locals
6924         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
6925         "l" from rtx to rtx_code_label *.
6926         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6927         from rtx to rtx_insn *.
6928         (mep_reorg_addcombine): Likewise for param "insns" and locals
6929         "i", "n".
6930         (add_sp_insn_p): Likewise for param "insn".
6931         (mep_reorg_noframe): Likewise for param "insns" and locals
6932         "start_frame_insn", "end_frame_insn", "next".
6933         (mep_reorg): Likewise for local "insns".
6934         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
6935         cast.
6936         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6937         (mep_mul_hilo_bypass_p): Likewise.
6938         (mep_ipipe_ldc_p): Likewise for param "insn".
6939         (mep_make_bundle): Likewise for return type, param "cop" and local
6940         "insn", splitting out the latter into a new local "seq" for when it
6941         is a SEQUENCE rather than an insn.
6942         (core_insn_p): Likewise for param "insn".
6943         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6944         "last", "first", "note", "prev", "core_insn".
6945
6946 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6947
6948         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6949         rtx to rtx_insn *.
6950         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6951         (m68k_final_prescan_insn): Likewise for first param.
6952
6953         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6954         (m68k_set_frame_related): Likewise for param "insn".
6955         (output_btst): Likewise for param "insn".
6956         (m68k_final_prescan_insn): Likewise.
6957         (m68k_move_to_reg): Likewise for local "insn".
6958         (m68k_call_tls_get_addr): Likewise for local "insns".
6959         (m68k_call_m68k_read_tp): Likewise.
6960         (strict_low_part_peephole_ok): Likewise for param "first_insn".
6961         (m68k_output_mi_thunk): Likewise for local "insn".
6962
6963 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6964
6965         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6966         first param from rtx to rtx_insn *.
6967         (iq2000_adjust_insn_length): Likewise.
6968         (iq2000_output_conditional_branch): Likewise.
6969         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6970         "insn" and local "nop_insn".
6971         (iq2000_annotate_frame_insn): Likewise for param "insn".
6972         (iq2000_expand_prologue): Likewise for both locals "insn".
6973         (iq2000_adjust_insn_length): Likewise for param "insn".
6974         (iq2000_output_conditional_branch): Likewise.
6975
6976 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6977
6978         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6979         "insns" from rtx to rtx_insn *.
6980         (ia64_emit_cond_move): Likewise for locals "insn", "first".
6981         (struct spill_fill_data): Likewise for field "init_after" and for
6982         elements of array field "prev_insn".
6983         (spill_restore_mem): Likewise for locals "insn", "first".
6984         (do_spill): Likewise for local "insn".
6985         (do_restore): Likewise.
6986         (ia64_expand_prologue): Likewise.
6987         (ia64_expand_epilogue): Likewise.
6988         (emit_insn_group_barriers): Likewise for locals "insn",
6989         "last_label".
6990         (emit_all_insn_group_barriers): Likewise for locals "insn",
6991         "last".
6992         (dfa_stop_insn): Likewise for this global.
6993         (dfa_pre_cycle_insn): Likewise.
6994         (ia64_nop): Likewise.
6995         (final_emit_insn_group_barriers): Likewise for locals "insn",
6996         "last".
6997         (emit_predicate_relation_info): Likewise for locals "head", "n",
6998         "insn", "b", "a".
6999         (ia64_reorg): Likewise for local "insn".
7000         (ia64_output_mi_thunk): Likewise.
7001         (expand_vec_perm_interleave_2): Likewise for local "seq".
7002
7003 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7004
7005         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
7006         param 1 "insn" from rtx to rtx_insn *.
7007         (ix86_use_lea_for_mov): Likewise.
7008         (ix86_avoid_lea_for_addr): Likewise.
7009         (ix86_split_lea_for_addr): Likewise.
7010         (ix86_lea_for_add_ok): Likewise.
7011         (ix86_output_call_insn): Likewise.
7012
7013         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
7014         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
7015         (ix86_output_function_epilogue): Likewise for locals "insn",
7016         "deleted_debug_label".
7017         (legitimize_tls_address): Likewise for local "insn".
7018         (get_some_local_dynamic_name): Likewise.
7019         (increase_distance): Likewise for params "prev", "next".
7020         (distance_non_agu_define_in_bb): Likewise for params "insn",
7021         "start" and locals "prev", "next".
7022         (distance_non_agu_define): Likewise for param "insn".
7023         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
7024         locals "next", "prev".
7025         (distance_agu_use): Likewise for param "insn".
7026         (ix86_lea_outperforms): Likewise.
7027         (ix86_ok_to_clobber_flags): Likewise.
7028         (ix86_avoid_lea_for_add): Likewise.
7029         (ix86_use_lea_for_mov): Likewise.
7030         (ix86_avoid_lea_for_addr): Likewise.
7031         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
7032         (ix86_split_lea_for_addr): Likewise for param "insn".
7033         (ix86_lea_for_add_ok): Likewise for param "insn".
7034         (ix86_expand_carry_flag_compare): Likewise for local
7035         "compare_seq".
7036         (ix86_expand_int_movcc): Likewise.
7037         (ix86_output_call_insn): Likewise for param "insn".
7038         (ix86_output_call_insn): Likewise for local "i".
7039         (x86_output_mi_thunk): Introduce local "insn", using it in place
7040         of "tmp" when dealing with insns.
7041         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
7042         "start".
7043         (ix86_pad_returns): Likewise for locals "ret", "prev".
7044         (ix86_count_insn_bb): Likewise for local "insn".
7045         (ix86_pad_short_function): Likewise for locals "ret", "insn".
7046         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
7047         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
7048         (expand_vec_perm_interleave2): Likewise for local "seq".
7049         (expand_vec_perm_vperm2f128_vblend): Likewise.
7050         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
7051         call to for_each_rtx with for_each_rtx_in_insn.
7052
7053 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7054
7055         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
7056         "label" from rtx to rtx_code_label *.
7057         (ix86_expand_prologue): Likewise.
7058         (ix86_expand_split_stack_prologue): Likewise for locals "label",
7059         "varargs_label".
7060         (ix86_split_idivmod): Likewise for locals "end_label" and
7061         "qimode_label".
7062         (ix86_expand_branch): Likewise for local "label2".
7063         (ix86_expand_aligntest): Likewise for return type and local "label".
7064         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
7065         "top_label".
7066         (expand_movmem_epilogue): Likewise for the various locals named
7067         "label".
7068         (expand_setmem_epilogue): Likewise.
7069         (expand_small_movmem_or_setmem): Likewise for local "label".
7070         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7071         Strengthen param "done_label" from rtx * to rtx_code_label **.
7072         Strengthen locals "loop_label" and "label" from rtx to
7073         rtx_code_label *.
7074         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7075         Likewise for locals "loop_label", "label".
7076         (ix86_expand_set_or_movmem): Likewise for locals "label",
7077         "jump_around_label", "hot_label".
7078         (ix86_expand_strlensi_unroll_1): Likewise for locals
7079         "align_2_label", align_3_label", "align_4_label", "end_0_label",
7080         "end_2_label".
7081         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
7082         (void ix86_emit_i387_log1p): Likewise for locals "label1",
7083         "label2", "jump_label".
7084         (ix86_expand_sse_compare_and_jump): Likewise for return type and
7085         local "label".
7086         (ix86_expand_lfloorceil): Likewise for local "label".
7087         (ix86_expand_rint): Likewise.
7088         (ix86_expand_floorceildf_32): Likewise.
7089         (ix86_expand_floorceil): Likewise.
7090         (ix86_expand_rounddf_32): Likewise.
7091         (ix86_expand_trunc): Likewise.
7092         (ix86_expand_truncdf_32): Likewise.
7093         (ix86_expand_round): Likewise.
7094
7095 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7096
7097         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
7098         first param from rtx to rtx_insn *.
7099         (h8300_insn_length_from_table): Likewise.
7100         * config/h8300/h8300.c (F): Likewise for return type and param
7101         "x".
7102         (Fpa): Add a checked cast to rtx_insn *.
7103         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
7104         rtx_insn *.
7105         (final_prescan_insn): Likewise for param "insn".
7106         (h8300_binary_length): Likewise.
7107         (h8300_insn_length_from_table): Likewise.
7108
7109 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7110
7111         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
7112         Strengthen first param "insn" from rtx to rtx_insn *.
7113
7114         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
7115         Likewise.
7116         (frame_insn): Likewise for return type.  Introduce local "insn"
7117         for use in place of local "x" for use as an rtx_insn *.
7118         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
7119         (epiphany_expand_prologue): Likewise for local "insn".
7120         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
7121         * config/epiphany/resolve-sw-modes.c
7122         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
7123         "seq".
7124
7125 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7126
7127         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
7128         param from rtx to rtx_insn *.
7129         (c6x_final_prescan_insn): Likewise for first param.
7130
7131         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
7132         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
7133         (c6x_expand_compare): Strengthen local "insns" from rtx to
7134         rtx_insn *.
7135         (c6x_get_unit_specifier): Likewise for param "insn".
7136         (c6x_print_unit_specifier_field): Likewise.
7137         (c6x_final_prescan_insn): Likewise.
7138         (emit_add_sp_const): Likewise for local "insn".
7139         (c6x_expand_prologue): Likewise.
7140
7141 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7142
7143         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
7144         param 1 from rtx to rtx_insn *.
7145         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
7146         the various locals named "insn".
7147         (expand_epilogue_reg_restore): Likewise.
7148         (frame_related_constant_load): Likewise.
7149         (add_to_reg): Likewise.
7150         (emit_link_insn): Likewise.
7151         (do_link): Likewise.
7152         (expand_interrupt_handler_prologue): Likewise.
7153         (branch_dest): Likewise for param "branch".
7154         (asm_conditional_branch): Likewise for param "insn".
7155         (gen_one_bundle): Likewise for elements of param "slot" and local
7156         "t".
7157         (bfin_gen_bundles): Likewise for locals "insn", "next" and
7158         elements of local "slot".
7159         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7160         "queue", "next_queue", "prev".
7161         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
7162         (add_sched_insns_for_speculation): Likewise for local "insn".
7163
7164 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7165
7166         * config/avr/avr-protos.h (output_movqi): Strengthen first param
7167         from rtx to rtx_insn *.
7168         (output_movhi): Likewise.
7169         (output_movsisf): Likewise.
7170         (avr_out_tstsi): Likewise.
7171         (avr_out_tsthi): Likewise.
7172         (avr_out_tstpsi): Likewise.
7173         (avr_out_compare): Likewise.
7174         (avr_out_compare64): Likewise.
7175         (avr_out_movpsi): Likewise.
7176         (ashlqi3_out): Likewise.
7177         (ashlhi3_out): Likewise.
7178         (ashlsi3_out): Likewise.
7179         (ashrqi3_out): Likewise.
7180         (ashrhi3_out): Likewise.
7181         (ashrsi3_out): Likewise.
7182         (lshrqi3_out): Likewise.
7183         (lshrhi3_out): Likewise.
7184         (lshrsi3_out): Likewise.
7185         (avr_out_ashlpsi3): Likewise.
7186         (avr_out_ashrpsi3): Likewise.
7187         (avr_out_lshrpsi3): Likewise.
7188         (avr_out_fract): Likewise.
7189         (avr_out_sbxx_branch): Likewise.
7190         (avr_out_round): Likewise.
7191         (avr_out_xload): Likewise.
7192         (avr_out_movmem): Likewise.
7193         (adjust_insn_length): Likewise.
7194         (avr_out_lpm): Likewise.
7195         (reg_unused_after): Likewise.
7196         (_reg_unused_after): Likewise.
7197         (avr_jump_mode): Likewise for second param.
7198         (jump_over_one_insn): Likewise for first param.
7199         (avr_final_prescan_insn): Likewise.
7200         (out_shift_with_cnt): Likewise for second param.
7201
7202         * config/avr/avr.c (get_sequence_length): Likewise for param
7203         "insns" and local "insn".
7204         (emit_push_byte): Likewise for local "insn".
7205         (emit_push_sfr): Likewise.
7206         (avr_prologue_setup_frame): Likewise for locals "insn",
7207         "fp_plus_insns", "sp_plus_insns".
7208         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
7209         "sp_plus_insns".
7210         (avr_jump_mode): Likewise for param "insn".
7211         (avr_final_prescan_insn): Likewise.
7212         (avr_find_unused_d_reg): Likewise.
7213         (avr_out_lpm_no_lpmx): Likewise.
7214         (avr_out_lpm): Likewise.
7215         (avr_out_xload): Likewise.
7216         (output_movqi): Likewise.
7217         (output_movhi): Likewise.
7218         (out_movqi_r_mr): Likewise.
7219         (out_movhi_r_mr): Likewise.
7220         (out_movsi_r_mr): Likewise.
7221         (out_movsi_mr_r): Likewise.
7222         (output_movsisf): Likewise.
7223         (avr_out_load_psi): Likewise.
7224         (avr_out_store_psi): Likewise.
7225         (avr_out_movpsi): Likewise.
7226         (out_movqi_mr_r): Likewise.
7227         (avr_out_movhi_mr_r_xmega): Likewise.
7228         (out_movhi_mr_r): Likewise.
7229         (compare_condition): Likewise for param "insn" and local "next".
7230         (compare_sign_p): Likewise for param "insn".
7231         (compare_diff_p): Likewise.
7232         (compare_eq_p): Likewise.
7233         (avr_out_compare): Likewise.
7234         (avr_out_compare64): Likewise.
7235         (avr_out_tsthi): Likewise.
7236         (avr_out_tstpsi): Likewise.
7237         (avr_out_tstsi): Likewise.
7238         (out_shift_with_cnt): Likewise.
7239         (ashlqi3_out): Likewise.
7240         (ashlhi3_out): Likewise.
7241         (avr_out_ashlpsi3): Likewise.
7242         (ashlsi3_out): Likewise.
7243         (ashrqi3_out): Likewise.
7244         (ashrhi3_out): Likewise.
7245         (avr_out_ashrpsi3): Likewise.
7246         (ashrsi3_out): Likewise.
7247         (lshrqi3_out): Likewise.
7248         (lshrhi3_out): Likewise.
7249         (avr_out_lshrpsi3): Likewise.
7250         (lshrsi3_out): Likewise.
7251         (avr_out_fract): Likewise.
7252         (avr_out_round): Likewise.
7253         (avr_adjust_insn_length): Likewise.
7254         (reg_unused_after): Likewise.
7255         (_reg_unused_after): Likewise.
7256         (avr_compare_pattern): Likewise.
7257         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
7258         and locals "branch1", "branch2", "insn2", "jump".
7259         (avr_reorg): Likewise for local "insn".
7260         (avr_2word_insn_p): Likewise for param "insn".
7261         (jump_over_one_insn_p): Likewise.
7262         (avr_out_sbxx_branch): Likewise.
7263         (avr_out_movmem): Likewise.
7264
7265 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7266
7267         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
7268         param from rtx to rtx_insn *.
7269         (thumb1_final_prescan_insn): Likewise.
7270         (thumb2_final_prescan_insn): Likewise.
7271
7272         * config/arm/arm.c (emit_set_insn): Strengthen return type from
7273         rtx to rtx_insn *.
7274         (struct minipool_node): Likewise for field "insn".
7275         (dump_minipool): Likewise for param "scan".
7276         (create_fix_barrier): Likewise for local "from".  Strengthen local
7277         "label" from rtx to rtx_code_label *.
7278         (push_minipool_barrier): Strengthen param "insn" from rtx to
7279         rtx_insn *.
7280         (push_minipool_fix): Likewise.
7281         (note_invalid_constants): Likewise.
7282         (thumb2_reorg): Likewise for local "insn".
7283         (arm_reorg): Likewise.
7284         (thumb2_final_prescan_insn): Likewise for param
7285         "insn" and local "first_insn".
7286         (arm_final_prescan_insn): Likewise for param "insn" and locals
7287         "start_insn", "this_insn".
7288         (arm_debugger_arg_offset): Likewise for param "insn".
7289         (thumb1_emit_multi_reg_push): Likewise for return type and local
7290         "insn".
7291         (thumb1_final_prescan_insn): Likewise for param "insn".
7292         (thumb_far_jump_used_p): Likewise for local "insn".
7293         (thumb1_expand_prologue): Likewise.
7294         (arm_expand_epilogue_apcs_frame): Likewise.
7295         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
7296         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
7297         from rtx to rtx_code_label *.
7298         (arm_split_atomic_op): Likewise for local "label".
7299         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
7300
7301 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7302
7303         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
7304         first param from rtx to rtx_insn *.
7305         (arc_verify_short): Likewise.
7306         (arc_short_long): Likewise.
7307         (arc_need_delay): Likewise.
7308
7309         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
7310         "target_insn".
7311         (arc_ccfsm_advance): Likewise for param "insn" and locals
7312         "start_insn", "this_insn".
7313         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
7314         (arc_ccfsm_post_advance): Likewise for param "insn".
7315         (arc_next_active_insn): Likewise for return type and param "insn".
7316         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
7317         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
7318         (output_short_suffix): Likewise for local "insn".
7319         (arc_final_prescan_insn): Likewise for param "insn".  Remove
7320         now-redundant checked cast.
7321         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
7322         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
7323         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
7324         for use where lc_set became an insn.
7325         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
7326         rtx to rtx_insn *.
7327         (arc_get_insn_variants): Likewise for local "prev".
7328         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
7329         "next".
7330         (arc_predicate_delay_insns): Likewise for local "insn".
7331         (arc_pad_return): Likewise for local "prev".  For now, add a
7332         checked cast when extracting the insn from "final_sequence".
7333         (arc_short_long): Likewise for param "insn".
7334         (arc_need_delay): Likewise for param "insn" and local "next".
7335         (arc_label_align): Likewise for locals "prev", "next".
7336
7337 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7338
7339         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
7340         "insn" from rtx to rtx_insn *.
7341         (alpha_gp_save_rtx): Likewise for local "seq".
7342         (alpha_instantiate_decls): Likewise for local "top".
7343         (get_some_local_dynamic_name): Likewise for local "insn".
7344         (alpha_does_function_need_gp): Likewise.
7345         (set_frame_related_p): Likewise for return type and for locals
7346         "seq" and "insn".
7347         (emit_frame_store_1): Likewise for local "insn".
7348         (alpha_expand_prologue): Likewise for locals "insn", "seq".
7349         (alpha_end_function): Likewise for local "insn".
7350         (alpha_output_mi_thunk_osf): Likewise.
7351         (alphaev4_insn_pipe): Likewise for param "insn".
7352         (alphaev5_insn_pipe): Likewise.
7353         (alphaev4_next_group): Likewise for return type and param 1
7354         "insn".
7355         (alphaev5_next_group): Likewise.
7356         (alpha_align_insns_1): Likewise for return type and param 1 of
7357         callback param "next_group", and for locals "i", "next", "prev",
7358         "where", "where2", "insn".
7359
7360 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
7361
7362         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
7363         rather than modifying the stmt.
7364
7365 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7366
7367         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
7368         cgraph_state conversion.
7369
7370 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7371
7372         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7373         Strengthen local "insns" from rtx to rtx_insn *.
7374         (aarch64_set_frame_expr): Likewise for local "insn".
7375         (aarch64_save_or_restore_fprs): Likewise.
7376         (aarch64_save_or_restore_callee_save_registers): Likewise.
7377         (aarch64_expand_prologue): Likewise.
7378         (aarch64_expand_epilogue): Likewise.
7379         (aarch64_output_mi_thunk): Likewise.
7380         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
7381         "label2" from rtx to rtx_code_label *.
7382         (aarch64_split_atomic_op): Likewise for local "label".
7383
7384 2014-08-25  Martin Liska  <mliska@suse.cz>
7385
7386         * cgraph.h (symtab_node):
7387         (bool needed_p (void)): created from decide_is_symbol_needed
7388         (bool referred_to_p (void)): created from referred_to_p
7389         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
7390         * cgraph.h (cgraph_node):
7391         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
7392         (void expand (void)): created from expand_function
7393         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
7394         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
7395         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
7396         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
7397         * cgraph.h (varpool_node):
7398         (static void add (tree decl): created from varpool_add_new_variable
7399         * cgraph.h (cgraph_edge):
7400         void remove (void);
7401         (void remove_caller (void)): created from cgraph_edge_remove_caller
7402         (void remove_callee (void)): created from cgraph_edge_remove_callee
7403         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
7404           created from cgraph_set_call_stmt
7405         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
7406         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
7407         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
7408           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
7409         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
7410           created from cgraph_speculative_call_info
7411         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
7412           int freq_scale, bool update_original)): created from cgraph_clone_edge
7413         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
7414         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
7415         (bool recursive_p (void)): created from cgraph_edge_recursive_p
7416         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
7417         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
7418         (static void rebuild_references (void)): created from cgraph_rebuild_references
7419         * cgraph.h (symbol_table):
7420         (create_reference): renamed from add_reference
7421         (maybe_create_reference): renamed from maybe_add_reference
7422         (void register_symbol (symtab_node *node)): new function
7423         (void clear_asm_symbols (void)): new function
7424         (void unregister (symtab_node *node)): new function
7425         (void release_symbol (cgraph_node *node, int uid)): new function
7426         (cgraph_node * allocate_cgraph_symbol (void)): new function
7427         (void initialize (void)): created from cgraph_init
7428         (symtab_node *first_symbol (void)):new function
7429         (asm_node *first_asm_symbol (void)):new function
7430         (symtab_node *first_defined_symbol (void)):new function
7431         (varpool_node *first_variable (void)):new function
7432         (varpool_node *next_variable (varpool_node *node)):new function
7433         (varpool_node *first_static_initializer (void)):new function
7434         (varpool_node *next_static_initializer (varpool_node *node)):new function
7435         (varpool_node *first_defined_variable (void)):new function
7436         (varpool_node *next_defined_variable (varpool_node *node)):new function
7437         (cgraph_node *first_defined_function (void)):new function
7438         (cgraph_node *next_defined_function (cgraph_node *node)):new function
7439         (cgraph_node *first_function (void)):new function
7440         (cgraph_node *next_function (cgraph_node *node)):new function
7441         (cgraph_node *first_function_with_gimple_body (void)):new function
7442         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
7443         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
7444           created from symtab_remove_unreachable_nodes
7445         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
7446         (void process_new_functions (void)): created from cgraph_process_new_functions
7447         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
7448         (bool output_variables (void)): created from varpool_node::output_variables
7449         (void output_asm_statements (void)): created from output_asm_statements
7450         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
7451         (void compile (void)): created from compile
7452         (void output_weakrefs (void)): created from output_weakrefs
7453         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
7454         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
7455           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
7456         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
7457         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
7458           created from cgraph_next_function_with_gimple_body
7459         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
7460           created from cgraph_remove_edge_removal_hook
7461         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
7462           created from cgraph_add_node_removal_hook
7463         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
7464           created from cgraph_remove_node_removal_hook
7465         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
7466           created from varpool_add_node_removal_hook
7467         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
7468           created from varpool_remove_node_removal_hook
7469         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
7470           created from cgraph_add_function_insertion_hook
7471         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
7472           created from cgraph_remove_function_insertion_hook
7473         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
7474           created from varpool_add_variable_insertion_hook
7475         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
7476           created from varpool_remove_variable_insertion_hook
7477         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
7478           created from cgraph_add_edge_duplication_hook
7479         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7480           created from cgraph_remove_edge_duplication_hook
7481         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7482           created from cgraph_add_node_duplication_hook
7483         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7484           created from cgraph_remove_node_duplication_hook
7485         (void call_edge_removal_hooks (cgraph_edge *e)):
7486           created from cgraph_call_edge_removal_hooks
7487         (void call_cgraph_insertion_hooks (cgraph_node *node)):
7488           created from call_function_insertion_hooks 
7489         (void call_cgraph_removal_hooks (cgraph_node *node)):
7490           created from cgraph_call_node_removal_hooks 
7491         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7492           created from cgraph_node::call_duplication_hooks 
7493         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7494           created from cgraph_call_edge_duplication_hooks
7495         (void call_varpool_removal_hooks (varpool_node *node)):
7496           created from varpool_call_node_removal_hooks
7497         (void call_varpool_insertion_hooks (varpool_node *node)):
7498           created from varpool_call_variable_insertion_hooks
7499         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7500           created from insert_to_assembler_name_hash
7501         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7502           created from unlink_from_assembler_name_hash
7503         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7504           created from symtab_prevail_in_asm_name_hash
7505         (void symtab_initialize_asm_name_hash (void)):
7506           created from symtab_initialize_asm_name_hash
7507         (void change_decl_assembler_name (tree decl, tree name)):
7508           created from change_decl_assembler_name
7509         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7510         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7511           created from decl_assembler_name_hash
7512         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7513           created from decl_assembler_name_equal
7514         (static hashval_t hash_node_by_assembler_name (const void *p)):
7515           created from hash_node_by_assembler_name
7516         (static int eq_assembler_name (const void *p1, const void *p2)):
7517           created from eq_assembler_name
7518
7519 2014-08-25  Marek Polacek  <polacek@redhat.com>
7520
7521         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7522
7523 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
7524
7525         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7526         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7527         SWI1248_AVX512BW mode iterator.
7528
7529 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
7530
7531         PR target/62111
7532         * config/sh/predicates.md (general_extend_operand): Disable
7533         TRUNCATE before reload completes.
7534
7535 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
7536
7537         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7538
7539 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
7540
7541         PR target/61996
7542         * config/sh/sh.opt (musermode): Allow negative form.
7543         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7544         targets that don't support it.
7545         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7546         Document -mno-usermode option.
7547
7548 2014-08-24  Kito Cheng  <kito@0xlab.org>
7549
7550         * system.h (CALLER_SAVE_PROFITABLE): Poison.
7551         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7552         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7553         * doc/tm.texi: Regenerate.
7554
7555 2014-08-24  Kito Cheng  <kito@0xlab.org>
7556
7557         * ira.c: Fix typo in comment.
7558
7559 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
7560
7561         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7562         Deprecate c++1y. Change language to reflect greater confidence in C++14.
7563
7564 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
7565
7566         PR target/62038
7567         * config/pa/pa.c (pa_output_function_epilogue): Don't set
7568         last_address when the current function is a thunk.
7569         (pa_asm_output_mi_thunk): When we don't have named sections or they
7570         are not being used, check that thunk can reach the stub table with a
7571         short branch.
7572
7573 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7574
7575         * web.c (union_match_dups): Strengthen param "insn" from rtx to
7576         rtx_insn *.
7577         (pass_web::execute): Likewise for local "insn".
7578
7579 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7580
7581         * var-tracking.c (struct micro_operation_def): Strengthen field
7582         "insn" from rtx to rtx_insn *.
7583         (struct emit_note_data_def): Likewise.
7584         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7585         (vt_stack_adjustments): Likewise for local "insn".
7586         (adjust_insn): Likewise for param "insn".
7587         (val_store): Likewise.
7588         (val_resolve): Likewise.
7589         (struct count_use_info): Likewise for field "insn".
7590         (log_op_type): Likewise for param "insn".
7591         (reverse_op): Likewise.
7592         (prepare_call_arguments): Likewise.
7593         (add_with_sets):  The initial param takes an insn, but we can't
7594         yet strengthen it from rtx to rtx_insn * since it's used as a
7595         cselib_record_sets_hook callback.  For now rename initial param
7596         from "insn" to "uncast_insn", and introduce a local "insn" of
7597         the stronger rtx_insn * type, with a checked cast.
7598         (compute_bb_dataflow): Strengthen local "insn" from rtx to
7599         rtx_insn *.
7600         (emit_note_insn_var_location): Likewise.
7601         (emit_notes_for_changes): Likewise.
7602         (emit_notes_for_differences): Likewise.
7603         (next_non_note_insn_var_location): Likewise for return type and
7604         for param "insn".
7605         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7606         (vt_initialize): Likewise for local "insn".
7607         (delete_debug_insns): Likewise for locals "insn" and "next".
7608
7609 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7610
7611         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7612         rtx_insn *.
7613         (mark_constant_pool): Likewise for local "insn".
7614
7615 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7616
7617         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7618         rtx to rtx_insn *.
7619         (dead_debug_promote_uses): Likewise.
7620         (dead_debug_insert_temp): Likewise.
7621
7622 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7623
7624         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7625         from const_rtx to const rtx_insn *.
7626         (store_killed_after): Likewise.  Strengthen locals "last", "act"
7627         from rtx to rtx_insn *.
7628         (store_killed_before): Strengthen param "insn" from const_rtx to
7629         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
7630         (find_moveable_store): Strengthen param "insn" from rtx to
7631         rtx_insn *.
7632         (compute_store_table): Likewise for local "insn".
7633         (insert_insn_start_basic_block): Likewise for param "insn" and
7634         locals "prev", "before", "insn".
7635         (insert_store): For now, add a checked cast to rtx_insn * on the
7636         result of gen_move_insn.
7637         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7638         to rtx_insn *.
7639         (replace_store_insn): Likewise.  For now, add a checked cast to
7640         rtx_insn * on the result of gen_move_insn.
7641
7642 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7643
7644         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7645         rtx_insn *.
7646         (expand_sjlj_dispatch_table): Likewise.
7647
7648 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7649
7650         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7651         "insn" from rtx to rtx_insn *.
7652
7653 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7654
7655         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7656         "insn" from rtx to rtx_insn *.
7657         (dup_block_and_redirect): Likewise for param 3 "before".
7658
7659         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7660         from rtx to rtx_insn *.
7661         (move_insn_for_shrink_wrap): Likewise.
7662         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7663         (dup_block_and_redirect): Likewise for param "before" and local
7664         "insn".
7665         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7666         "end".
7667         (convert_to_simple_return): Likewise for local "start".
7668
7669         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7670         Strengthen local "insn" from rtx to rtx_insn *, for use when
7671         invoking requires_stack_frame_p.
7672
7673 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7674
7675         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7676         rtx_insn *.
7677         (speculate_expr): Likewise for locals "orig_insn_rtx",
7678         "spec_insn_rtx".
7679         (eq_transformed_insns): Likewise for locals "i1", "i2".
7680         (check_for_new_jump): Likewise for return type and local "end".
7681         (find_new_jump): Likewise for return type and local "jump".
7682         (sel_split_edge): Likewise for local "jump".
7683         (sel_create_recovery_block): Likewise.
7684         (sel_redirect_edge_and_branch_force): Likewise.
7685         (sel_redirect_edge_and_branch): Likewise.
7686
7687 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7688
7689         * sel-sched.c (substitute_reg_in_expr): Strengthen local
7690         "new_insn" from rtx to rtx_insn *.
7691         (create_insn_rtx_with_rhs): Likewise for return type and for local
7692         "insn_rtx".
7693         (create_insn_rtx_with_lhs): Likewise.
7694         (create_speculation_check): Likewise for local "insn_rtx".
7695         (implicit_clobber_conflict_p): Likewise for local "insn".
7696         (get_expr_cost): Likewise.
7697         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7698         (move_cond_jump): Likewise for locals "next", "prev", "link",
7699         "head", "from", "to".
7700
7701 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7702
7703         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7704         "next" from rtx to rtx_insn *.
7705         (find_conditional_protection): Likewise for local "next".
7706         (is_conditionally_protected): Likewise for local "insn1".
7707         (is_pfree): Likewise for locals "insn1", "insn2".
7708
7709 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7710
7711         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7712         from rtx to rtx_insn *.
7713
7714         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7715         locals "insn1", "insn2" from rtx to rtx_insn *.
7716         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7717         locals "insn", "prev", "last_jump", "next_tail".
7718         (schedule_ebb): Likewise for params "head", "tail".
7719         (schedule_ebbs): Likewise for locals "tail", "head".
7720
7721         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7722         to rtx_insn on "last_insn" in one of the invocations of
7723         schedule_ebb.
7724
7725 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7726
7727         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7728         "elem", "insn" from rtx to rtx_insn *.
7729         (change_spec_dep_to_hard): Likewise.
7730         (get_back_and_forw_lists): Likewise for local "con".
7731         (sd_add_dep): Likewise for locals "elem", "insn".
7732         (sd_resolve_dep): Likewise for locals "pro", "con".
7733         (sd_unresolve_dep): Likewise.
7734         (sd_delete_dep): Likewise.
7735         (chain_to_prev_insn): Likewise for local "pro".
7736         (find_inc): Likewise for locals "pro", "con".
7737
7738 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7739
7740         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7741         to rtx_insn *.
7742         (reg_set_between_p): Strengthen local "insn" from const_rtx to
7743         const rtx_insn *.
7744         (modified_between_p): Strengthen local "insn" from rtx to
7745         rtx_insn *.
7746         (remove_reg_equal_equiv_notes_for_regno): Likewise.
7747         (keep_with_call_p): Strengthen local "i2" from const_rtx to
7748         const rtx_insn *.
7749
7750 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7751
7752         * resource.c (next_insn_no_annul): Strengthen local "next" from
7753         rtx to rtx_insn *.
7754         (mark_referenced_resources): Likewise for local "insn".
7755
7756 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7757
7758         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7759         to rtx_insn *.
7760         (find_reloads): Likewise for param 1.
7761         (subst_reloads): Likewise for sole param.
7762         (find_equiv_reg): Likwise for param 2.
7763         (regno_clobbered_p): Likwise for param 2.
7764         (reload): Likewise for param 1.
7765
7766         * caller-save.c (save_call_clobbered_regs): Strengthen local
7767         "insn" from rtx to rtx_insn *.
7768         (insert_one_insn): Likewise for local "insn".
7769
7770         * reload.c (this_insn): Likewise for this global.
7771         (find_reloads): Likewise for param "insn".
7772         (find_reloads_toplev): Likewise.
7773         (find_reloads_address): Likewise.
7774         (subst_reg_equivs): Likewise.
7775         (update_auto_inc_notes): Likewise.
7776         (find_reloads_address_1): Likewise.
7777         (find_reloads_subreg_address): Likewise.
7778         (subst_reloads): Likewise.
7779         (find_equiv_reg): Likewise, also for local "p".
7780         (regno_clobbered_p): Likewise for param "insn".
7781
7782         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7783         array.
7784         (spill_reg_store): Likewise for the elements of this array.
7785         (remove_init_insns): Likewise for local "equiv_insn".
7786         (will_delete_init_insn_p): Likewise for param "insn".
7787         (reload): Likewise for param ""first" and local "insn".
7788         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7789         rtx_insn *.
7790         (calculate_elim_costs_all_insns): Likewise.
7791         (delete_caller_save_insns): Likewise.
7792         (spill_failure): Likewise for param "insn".
7793         (delete_dead_insn): Likewise.
7794         (set_label_offsets): Likewise.
7795         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7796         "prev_insn".
7797         (elimination_costs_in_insn): Likewise for param "insn".
7798         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7799         when referring to an insn.
7800         (set_initial_label_offsets): Likewise.
7801         (set_offsets_for_label): Strengthen param "insn" from rtx to
7802         rtx_insn *.
7803         (init_eliminable_invariants): Likewise for param "first" and local
7804         "insn".
7805         (fixup_eh_region_note): Likewise for param "insn".
7806         (reload_as_needed): Likewise for locals "prev", "insn",
7807         "old_next", "old_prev", "next".
7808         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7809         "last".
7810         (reload_inheritance_insn): Strengthen elements of this array from
7811         rtx to rtx_insn *.
7812         (failed_reload): Likewise for param "insn".
7813         (choose_reload_regs): Likewise for local "insn".  Replace use of
7814         NULL_RTX with NULL when referring to an insn.
7815         (input_reload_insns): Strengthen elements of this array from rtx
7816         to rtx_insn *.
7817         (other_input_address_reload_insns): Likewise for this global.
7818         (other_input_reload_insns): Likewise for this global.
7819         (input_address_reload_insns): Likwise for the elements of this
7820         array.
7821         (inpaddr_address_reload_insns): Likwise for the elements of this
7822         array.
7823         (output_reload_insns): Likewise for the elements of this array.
7824         (output_address_reload_insns): Likewise for the elements of this
7825         array.
7826         (outaddr_address_reload_insns): Likewise for the elements of this
7827         array.
7828         (operand_reload_insns): Likewise for this global.
7829         (other_operand_reload_insns): Likewise for this global.
7830         (other_output_reload_insns): Likewise for the elements of this
7831         array.
7832         (new_spill_reg_store): Likewise for the elements of this
7833         array.
7834         (emit_input_reload_insns): Likewise for locals "insn", "temp".
7835         Strengthen local "where" from rtx * to rtx_insn **.
7836         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7837         from rtx to rtx_insn *.
7838         (do_input_reload): Likewise for local "insn".
7839         (do_output_reload): Likewise for local "insn".
7840         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7841         (emit_insn_if_valid_for_reload): Likewise for return type and local
7842         "last".  Add checked cast to rtx_insn when returning "insn" since
7843         this has been through emit_insn.
7844         (gen_reload): Strengthen return type and locals "last", "insn", "set"
7845         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
7846         returning "insn" since it's been through
7847         emit_insn_if_valid_for_reload at this point.
7848         (delete_output_reload): Strengthen param "insn" and locals
7849         "output_reload_insn", "i2" from rtx to rtx_insn *.
7850         (delete_address_reloads): Likewise for params "dead_insn",
7851         "current_insn" and locals "prev", "next".
7852         (delete_address_reloads_1): Likewise for params "dead_insn",
7853         "current_insn" and locals "prev", "i2".
7854         (inc_for_reload): Likewise for locals "last", "add_insn".
7855         (add_auto_inc_notes): Strengthen param "insn" from rtx to
7856         rtx_insn *.
7857
7858         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7859         param of this duplicate of the prototype from reload.h
7860
7861 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7862
7863         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7864         rtx to rtx_insn *.
7865         (regstat_bb_compute_calls_crossed): Likewise.
7866
7867 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7868
7869         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7870         to rtx_insn *.
7871         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7872         with an insn.
7873         (regrename_analyze): Strengthen local "insn" from rtx to
7874         rtx_insn *.
7875         (scan_rtx_reg): Likewise for param "insn".
7876         (scan_rtx_address): Likewise.
7877         (scan_rtx): Likewise.
7878         (restore_operands): Likewise.
7879         (record_out_operands): Likewise.
7880         (build_def_use): Likewise for local "insn".  Replace use of
7881         NULL_RTX with NULL when dealing with an insn.
7882
7883 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7884
7885         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7886         * reginfo.c (reg_scan): Likewise, also for local "insn".
7887         (reg_scan_mark_refs): Likewise for param "insn".
7888         (init_subregs_of_mode): Likewise for local "insn".
7889
7890 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7891
7892         * regcprop.c (struct queued_debug_insn_change): Strengthen field
7893         "insn" from rtx to rtx_insn *.
7894         (replace_oldest_value_reg): Likewise for param "insn".
7895         (replace_oldest_value_addr): Likewise.
7896         (replace_oldest_value_mem): Likewise.
7897         (apply_debug_insn_changes): Likewise for local "last_insn".
7898         (copyprop_hardreg_forward_1): Likewise for local "insn".
7899
7900 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7901
7902         * reg-stack.c (next_flags_user): Strengthen return type and param
7903         "insn" from rtx to rtx_insn *.
7904         (straighten_stack): Likewise for param "insn".
7905         (check_asm_stack_operands): Likewise.
7906         (remove_regno_note): Likewise.
7907         (emit_pop_insn): Likewise for return type, param "insn", local
7908         "pop_insn".
7909         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
7910         "limit" from rtx to rtx_insn *.
7911         (swap_to_top): Likewise for param "insn".
7912         (move_for_stack_reg): Likewise.
7913         (move_nan_for_stack_reg): Likewise.
7914         (swap_rtx_condition): Likewise.
7915         (compare_for_stack_reg): Likewise.
7916         (subst_all_stack_regs_in_debug_insn): Likewise.
7917         (subst_stack_regs_pat): Likewise, and local "insn2".
7918         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7919         rtx_insn *.
7920         (subst_stack_regs): Likewise.
7921         (change_stack): Likewise.
7922         (convert_regs_1): Likewise for locals "insn", "next".
7923
7924 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7925
7926         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7927         rtx_insn *.
7928         (combine_set_extension): Likewise for param "curr_insn".
7929         (transform_ifelse): Likewise for param "def_insn".
7930         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
7931         from vec<rtx> * to vec<rtx_insn *> *.
7932         (is_cond_copy_insn): Likewise for param "insn".
7933         (struct ext_state): Strengthen the four vec fields from vec<rtx>
7934         to vec<rtx_insn *>.
7935         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7936         local "def_insn" from rtx to rtx_insn *.
7937         (get_sub_rtx): Likewise for param "def_insn".
7938         (merge_def_and_ext): Likewise.
7939         (combine_reaching_defs): Likewise.
7940         (add_removable_extension): Likewise for param "insn".
7941         (find_removable_extensions): Likewise for local "insn".
7942         (find_and_remove_re): Likewise for locals "curr_insn" and
7943         "def_insn".  Strengthen locals "reinsn_del_list" and
7944         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7945
7946 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7947
7948         * recog.c (split_insn): Strengthen param "insn" and locals
7949         "first", "last" from rtx to rtx_insn *.
7950         (split_all_insns): Likewise for locals "insn", "next".
7951         (split_all_insns_noflow): Likewise.
7952
7953 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7954
7955         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7956         const rtx_insn *.
7957         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7958         (debug_rtx_find): Likewise for param 1 "x".
7959
7960         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7961         const_rtx to const rtx_insn *.  Likewise for local "insn".
7962         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7963         (debug_rtx_find): Likewise for param 1 "x".
7964         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7965         from const_rtx to const rtx_insn * within the appropriate cases of
7966         the switch statement.
7967
7968         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7969         Strengthen local "insns" from rtx to rtx_insn * since this is
7970         passed to a call to debug_rtx_list.
7971
7972 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7973
7974         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7975         to rtx_insn *.
7976
7977         * function.c (stack_protect_epilogue): Add checked cast to
7978         rtx_insn for now when invoking predict_insn_def.
7979
7980         * predict.c (predict_insn): Strengthen param "insn" from rtx to
7981         rtx_insn *.
7982         (predict_insn_def): Likewise.
7983         (rtl_predict_edge): Likewise for local "last_insn".
7984         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7985         const rtx_insn *.
7986         (combine_predictions_for_insn): Strengthen param "insn" from rtx
7987         to rtx_insn *.
7988         (bb_estimate_probability_locally): Likewise for local "last_insn".
7989         (expensive_function_p): Likewise for local "insn".
7990
7991         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7992         local "jmp", since this is used when invoking predict_insn_def.
7993
7994 2014-08-22  Marek Polacek  <polacek@redhat.com>
7995
7996         PR c++/62199
7997         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7998
7999 2014-08-22  Marek Polacek  <polacek@redhat.com>
8000
8001         PR c/61271
8002         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
8003         a comparison in parens.
8004         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
8005         in parens.
8006
8007 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8008
8009         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
8010         rtx_insn *.
8011
8012         * cprop.c (fis_get_condition): Likewise.
8013
8014         * postreload.c (reload_cse_regs): Likewise for param "first".
8015         (reload_cse_simplify): Likewise for param "insn".
8016         (reload_cse_regs_1): Likewise for local "insn".
8017         (reload_cse_simplify_set): Likewise for param "insn".
8018         (reload_cse_simplify_operands): Likewise.
8019         (struct reg_use): Likewise for field "insn".
8020         (reload_combine_purge_insn_uses): Likewise for param "insn".
8021         (fixup_debug_insns): Likewise for params "from", "to" and local
8022         "insn".
8023         (try_replace_in_use): Likewise for local "use_insn".
8024         (reload_combine_recognize_const_pattern): Likewise for param
8025         "insn" and locals "add_moved_after_insn", "use_insn".
8026         (reload_combine_recognize_pattern): Likewise for param "insn" and
8027         local "prev".
8028         (reload_combine): Likewise for locals "insn", "prev".
8029         (reload_combine_note_use): Likewise for param "insn".
8030         (move2add_use_add2_insn): Likewise.
8031         (move2add_use_add3_insn): Likewise.
8032         (reload_cse_move2add): Likewise, also for local "next".
8033         (move2add_note_store): Likewise for local "insn".
8034
8035 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8036
8037         * postreload-gcse.c (struct occr): Strengthen field "insn" from
8038         rtx to rtx_insn *.
8039         (struct unoccr): Likewise.
8040         (struct modifies_mem): Likewise.
8041         (alloc_mem): Likewise for local "insn".
8042         (insert_expr_in_table): Likewise for param "insn".
8043         (dump_expr_hash_table_entry): Likewise for local "insn".
8044         (oprs_unchanged_p): Likewise for param "insn".
8045         (load_killed_in_block_p): Likewise for local "setter".
8046         (record_last_reg_set_info): Likewise for param "insn".
8047         (record_last_reg_set_info_regno): Likewise.
8048         (record_last_mem_set_info): Likewise.
8049         (record_last_set_info): Likewise for local "last_set_insn".
8050         (record_opr_changes): Likewise for param "insn".
8051         (hash_scan_set): Likewise.
8052         (compute_hash_table): Likewise for local "insn".
8053         (get_avail_load_store_reg): Likewise for param "insn".
8054         (eliminate_partially_redundant_load): Likewise, also for locals
8055         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
8056         RTX for insns.
8057         (eliminate_partially_redundant_loads): Likewise for local "insn".
8058
8059 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8060
8061         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
8062         rtx to rtx_insn *.
8063         (expand_binop): Likewise for locals "entry_last", "last", "insns"
8064         (expand_twoval_unop): Likewise for locals entry_last", "last".
8065         (expand_twoval_binop): Likewise.
8066         (expand_twoval_binop_libfunc): Likewise for local "insns".
8067         (widen_leading): Likewise for local "last".
8068         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
8069         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
8070         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
8071         (expand_parity): Likewise for locals "last" and "seq".
8072         (expand_ffs): Likewise for local "seq".  Strengthen local
8073         "nonzero_label" from rtx to rtx_code_label *.
8074         (expand_absneg_bit): Strengthen local "insns" from rtx to
8075         rtx_insn *.
8076         (expand_unop_direct): Likewise for local "last".
8077         (expand_unop): Likewise for locals "last", "insns".
8078         (expand_abs_nojump): Likewise for local "last".
8079         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
8080         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
8081         rtx_insn *.
8082         (expand_copysign_absneg): Strengthen local "label" from rtx to
8083         rtx_code_label *.
8084         (expand_copysign_bit): Strengthen local "insns" from rtx to
8085         rtx_insn *.
8086         (struct no_conflict_data): Likewise for fields "first", "insn".
8087         (emit_libcall_block_1): Likewise for param "insns" and locals
8088         "next", "last", "insn".
8089         (emit_libcall_block): For now, add a checked cast to rtx_insn *
8090         on "insns" when invoking emit_libcall_block_1.  Ultimately we
8091         want to strengthen insns itself.
8092         (prepare_cmp_insn): Strengthen local "last" from rtx to
8093         rtx_insn *.
8094         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
8095         (prepare_float_lib_cmp): Likewise for local "insns".
8096         (emit_conditional_move): Likewise for local "last".
8097         (emit_conditional_add): Likewise.
8098         (have_sub2_insn): Likewise for local "seq".
8099         (expand_float): Likewise for local "insns".  Strengthen locals
8100         "label", "neglabel" from rtx to rtx_code_label *.
8101         (expand_fix): Likewise for locals "last", "insn", "insns" (to
8102         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
8103         (expand_fixed_convert): Likewise for local "insns" (to
8104         rtx_insn *).
8105         (expand_sfix_optab): Likewise for local "last".
8106         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
8107         to rtx_code_label *.
8108         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
8109         from rtx to rtx_insn *.
8110         (expand_atomic_fetch_op): Likewise for local "insn".
8111         (maybe_legitimize_operand_same_code): Likewise for local "last".
8112         (maybe_legitimize_operands): Likewise.
8113
8114 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8115
8116         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
8117         "insn" from rtx to rtx_insn *.
8118         (ps_rtl_insn): Likewise for return type.
8119         (doloop_register_get): Likewise for params "head", "tail" and
8120         locals "insn", "first_insn_not_to_check".
8121         (schedule_reg_move): Likewise for local "this_insn".
8122         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
8123         of gen_move_insn for now.
8124         (reset_sched_times): Strengthen local "insn" from rtx to
8125         rtx_insn *.
8126         (permute_partial_schedule): Likewise.
8127         (duplicate_insns_of_cycles): Likewise for local "u_insn".
8128         (dump_insn_location): Likewise for param "insn".
8129         (loop_canon_p): Likewise for local "insn".
8130         (sms_schedule): Likewise.
8131         (print_partial_schedule): Likewise.
8132         (ps_has_conflicts): Likewise.
8133
8134 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8135
8136         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
8137         "tailp" from rtx * to rtx_insn **.
8138
8139         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
8140         from rtx to rtx_insn *.
8141         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
8142         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
8143         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
8144         rtx to rtx_insn *.
8145         * modulo-sched.c (const_iteration_count): Strengthen return type
8146         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
8147         use of NULL_RTX with NULL when working with insns.
8148         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
8149         to rtx_insn *.
8150         (sms_schedule): Likewise.
8151         * sched-rgn.c (init_ready_list): Likewise, also for locals
8152         "src_head" and "src_next_tail".
8153         (compute_block_dependences): Likewise.
8154         (free_block_dependencies): Likewise.
8155         (debug_rgn_dependencies): Likewise.
8156         (free_rgn_deps): Likewise.
8157         (compute_priorities): Likewise.
8158         (schedule_region): Likewise.
8159         * sel-sched.c (find_ebb_boundaries): Likewise.
8160
8161         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
8162         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
8163
8164 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8165
8166         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
8167         from rtx to rtx_insn *.
8168         (new_seginfo): Likewise for param "insn".
8169         (create_pre_exit): Likewise for locals "last_insn",
8170         "before_return_copy", "return_copy".
8171         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
8172         "mode_set".
8173
8174 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8175
8176         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
8177         from rtx to rtx_insn *.
8178         (lra_push_insn): Likewise for 1st param.
8179         (lra_push_insn_and_update_insn_regno_info): Likewise.
8180         (lra_pop_insn): Likewise for return type.
8181         (lra_invalidate_insn_data): Likewise for 1st param.
8182         (lra_set_insn_deleted): Likewise.
8183         (lra_delete_dead_insn): Likewise.
8184         (lra_process_new_insns): Likewise for first 3 params.
8185         (lra_set_insn_recog_data): Likewise for 1st param.
8186         (lra_update_insn_recog_data): Likewise.
8187         (lra_set_used_insn_alternative): Likewise.
8188         (lra_invalidate_insn_regno_info): Likewise.
8189         (lra_update_insn_regno_info): Likewise.
8190         (lra_former_scratch_operand_p): Likewise.
8191         (lra_eliminate_regs_1): Likewise.
8192         (lra_get_insn_recog_data): Likewise.
8193
8194         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
8195         rtx to rtx_insn *.
8196
8197         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
8198         "mv1" and "mv2".
8199         (substitute_within_insn): New.
8200         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
8201         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
8202         Replace call to "substitute" with call to substitute_within_insn.
8203
8204         * lra-constraints.c (curr_insn): Strengthen from rtx to
8205         rtx_insn *.
8206         (get_equiv_with_elimination): Likewise for param "insn".
8207         (match_reload): Strengthen params "before" and "after" from rtx *
8208         to rtx_insn **.
8209         (emit_spill_move): Likewise for return type.  Add a checked cast
8210         to rtx_insn * on result of gen_move_insn for now.
8211         (check_and_process_move): Likewise for local "before".  Replace
8212         NULL_RTX with NULL when referring to insns.
8213         (process_addr_reg): Strengthen params "before" and "after" from
8214         rtx * to rtx_insn **.
8215         (insert_move_for_subreg): Likewise.
8216         (simplify_operand_subreg): Strengthen locals "before" and "after"
8217         from rtx to rtx_insn *.
8218         (process_address_1): Strengthen params "before" and "after" from
8219         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
8220         rtx to rtx_insn *.
8221         (process_address): Strengthen params "before" and "after" from
8222         rtx * to rtx_insn **.
8223         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
8224         (curr_insn_transform): Strengthen locals "before" and "after"
8225         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
8226         to insns.
8227         (loc_equivalence_callback): Update cast of "data", changing
8228         resulting type from rtx to rtx_insn *.
8229         (substitute_pseudo_within_insn): New.
8230         (inherit_reload_reg): Strengthen param "insn" from rtx to
8231         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
8232         NULL when referring to insns.  Add a checked cast to rtx_insn *
8233         when using usage_insn to invoke lra_update_insn_regno_info.
8234         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
8235         likewise for locals "restore", "save".  Add checked casts to
8236         rtx_insn * when using usage_insn to invoke
8237         lra_update_insn_regno_info and lra_process_new_insns.  Replace
8238         NULL_RTX with NULL when referring to insns.
8239         (split_if_necessary): Strengthen param "insn" from rtx to
8240         rtx_insn *.
8241         (update_ebb_live_info): Likewise for params "head", "tail" and local
8242         "prev_insn".
8243         (get_last_insertion_point): Likewise for return type and local "insn".
8244         (get_live_on_other_edges): Likewise for local "last".
8245         (inherit_in_ebb): Likewise for params "head", "tail" and locals
8246         "prev_insn", "next_insn", "restore".
8247         (remove_inheritance_pseudos): Likewise for local "prev_insn".
8248         (undo_optional_reloads): Likewise for local "insn".
8249
8250         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
8251         "insn".
8252         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
8253         insns.
8254         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
8255         rtx_insn *.
8256         (spill_pseudos): Likewise for local "insn".
8257         (init_elimination): Likewise.
8258         (process_insn_for_elimination): Likewise for param "insn".
8259
8260         * lra-lives.c (curr_insn): Likewise.;
8261
8262         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
8263         (remove_pseudos): Likewise for param "insn".
8264         (spill_pseudos): Likewise for local "insn".
8265         (lra_final_code_change): Likewise for locals "insn", "curr".
8266
8267         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
8268         (lra_set_insn_deleted): Likewise.
8269         (lra_delete_dead_insn): Likewise, and for local "prev".
8270         (new_insn_reg): Likewise for param "insn".
8271         (lra_set_insn_recog_data): Likewise.
8272         (lra_update_insn_recog_data): Likewise.
8273         (lra_set_used_insn_alternative): Likewise.
8274         (get_insn_freq): Likewise.
8275         (invalidate_insn_data_regno_info): Likewise.
8276         (lra_invalidate_insn_regno_info): Likewise.
8277         (lra_update_insn_regno_info): Likewise.
8278         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
8279         vec<rtx_insn *>.
8280         (lra_push_insn_1): Strengthen param "insn" from rtx to
8281         rtx_insn *.
8282         (lra_push_insn): Likewise.
8283         (lra_push_insn_and_update_insn_regno_info): Likewise.
8284         (lra_pop_insn): Likewise for return type and local "insn".
8285         (push_insns): Likewise for params "from", "to", and local "insn".
8286         (setup_sp_offset): Likewise for params "from", "last" and locals
8287         "before", "insn".
8288         (lra_process_new_insns): Likewise for params "insn", "before",
8289         "after" and local "last".
8290         (struct sloc): Likewise for field "insn".
8291         (lra_former_scratch_operand_p): Likewise for param "insn".
8292         (remove_scratches): Likewise for locals "insn", "last".
8293         (check_rtl): Likewise for local "insn".
8294         (add_auto_inc_notes): Likewise for param "insn".
8295         (update_inc_notes): Likewise for local "insn".
8296         (lra): Replace NULL_RTX with NULL when referring to insn.
8297
8298 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8299
8300         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
8301         to rtx_insn *.
8302         (resolve_reg_notes): Likewise.
8303         (resolve_simple_move): Likewise for return type, param "insn", and
8304         locals "insns", "minsn".
8305         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
8306         (resolve_use): Likewise.
8307         (resolve_debug): Likewise.
8308         (find_decomposable_shift_zext): Likewise.
8309         (resolve_shift_zext): Likewise for return type, param "insn", and
8310         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
8311         (decompose_multiword_subregs): Likewise for local "insn",
8312         "orig_insn", "decomposed_shift", "end".
8313
8314 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8315
8316         * basic-block.h (basic_block split_edge_and_insert): Strengthen
8317         param "insns" from rtx to rtx_insn *.
8318
8319         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
8320         rtx to rtx_insn *.
8321         (struct iv_to_split): Likewise.
8322         (loop_exit_at_end_p): Likewise for local "insn".
8323         (split_edge_and_insert): Likewise for param "insns".
8324         (compare_and_jump_seq): Likewise for return type, param "cinsn",
8325         and locals "seq", "jump".
8326         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
8327         "branch_code"; update invocations of compare_and_jump_seq to
8328         eliminate NULL_RTX in favor of NULL.
8329         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
8330         rtx to rtx_insn *.
8331         (reset_debug_uses_in_loop): Likewise.
8332         (analyze_insn_to_expand_var): Likewise for param "insn".
8333         (analyze_iv_to_split_insn): Likewise.
8334         (analyze_insns_in_loop): Likewise for local "insn".
8335         (insert_base_initialization): Likewise for param
8336         "insn" and local "seq".
8337         (split_iv): Likewise for param "insn" and local "seq".
8338         (expand_var_during_unrolling): Likewise for param "insn".
8339         (insert_var_expansion_initialization): Likewise for local "seq".
8340         (combine_var_copies_in_loop_exit): Likewise.
8341         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
8342         "insn".
8343         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
8344         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
8345         "next".
8346
8347 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8348
8349         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
8350         rtx_insn *.
8351         (iv_analyze_result): Likewise.
8352         (iv_analyze_expr): Likewise.
8353         (biv_p): Likewise.
8354
8355         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
8356         local "def_insn" from rtx to rtx_insn *.
8357         (get_biv_step_1): Likewise for local "insn".
8358         (iv_analyze_expr): Likewise for param "insn".
8359         (iv_analyze_def): Likewise for local "insn".
8360         (iv_analyze_op): Likewise for param "insn".
8361         (iv_analyze): Likewise.
8362         (iv_analyze_result): Likewise.
8363         (biv_p): Likewise.
8364         (suitable_set_for_replacement): Likewise.
8365         (simplify_using_initial_values): Likewise for local "insn".
8366         (iv_number_of_iterations): Likewise for param "insn".
8367         (check_simple_exit): Add checked cast to rtx_insn when invoking
8368         iv_number_of_iterations for now (until get_condition is
8369         strengthened).
8370
8371         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
8372         "insn" from rtx to rtx_insn *.
8373         (analyze_insns_in_loop): Likewise for local "insn".
8374
8375 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8376
8377         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
8378         to rtx_insn *.
8379         (struct invariant): Likewise.
8380         (hash_invariant_expr_1): Likewise for param "insn".
8381         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
8382         (find_exits): Likewise for local "insn".
8383         (create_new_invariant): Likewise for param "insn".
8384         (check_dependencies): Likewise.
8385         (find_invariant_insn): Likewise.
8386         (record_uses): Likewise.
8387         (find_invariants_insn): Likewise.
8388         (find_invariants_bb): Likewise for local "insn".
8389         (get_pressure_class_and_nregs): Likewise for param "insn".
8390         (calculate_loop_reg_pressure): Likewise for local "insn".
8391
8392 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8393
8394         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
8395         to rtx_insn *.
8396         (add_test): Likewise for locals "seq", "jump".
8397         (doloop_modify): Likewise for locals "sequence", "jump_insn".
8398
8399 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8400
8401         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
8402         rtx_insn *.
8403         (rebuild_jump_labels_chain): Likewise for param "chain".
8404
8405         * cfgexpand.c (pass_expand::execute): Add checked cast to
8406         rtx_insn * when calling rebuild_jump_labels_chain in region where
8407         we know e->insns.r is non-NULL.
8408
8409         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
8410         rtx_insn *.
8411         (rebuild_jump_labels): Likewise.
8412         (rebuild_jump_labels_chain): Likewise for param "chain".
8413         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
8414         (init_label_info): Likewise for param "f".
8415         (maybe_propagate_label_ref): Likewise for params "jump_insn",
8416         "prev_nonjump_insn".
8417         (mark_all_labels): Likewise for param "f" and locals "insn",
8418         "prev_nonjump_insn".
8419
8420 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8421
8422         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
8423         from rtx to rtx_insn *insn.
8424         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
8425         (ira_add_allocno_copy): Likewise.
8426         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
8427         rtx to rtx_insn *.
8428         (ira_create_copy): Likewise.
8429         (ira_add_allocno_copy): Likewise.
8430         (create_bb_allocnos): Likewise for local "insn".
8431         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
8432         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
8433         process_regs_for_copy for rtx_insn * param.
8434         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
8435         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
8436         process_regs_for_copy for rtx_insn * param.
8437         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
8438         * ira-costs.c (record_reg_classes): Likewise for param "insn".
8439         (record_operand_costs): Likewise.
8440         (scan_one_insn): Likewise for return type, and for param "insn".
8441         (process_bb_for_costs): Likewise for local "insn".
8442         (process_bb_node_for_hard_reg_moves): Likewise.
8443         * ira-emit.c (struct move): Likewise for field "insn".
8444         (create_move): Eliminate use of NULL_RTX when dealing with an
8445         rtx_insn *.
8446         (emit_move_list): Strengthen return type and locals "result",
8447         "insn" from rtx to rtx_insn *insn.
8448         (emit_moves): Likewise for locals "insns", "tmp".
8449         (ira_emit): Likewise for local "insn".
8450         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
8451         "insn".
8452         (find_call_crossed_cheap_reg): Likewise.
8453         (process_bb_node_lives): Likewise for local "insn".
8454         * ira.c (decrease_live_ranges_number): Likewise.
8455         (compute_regs_asm_clobbered): Likewise.
8456         (build_insn_chain): Likewise.
8457         (find_moveable_pseudos): Likewise, also locals "def_insn",
8458         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
8459         to rtx_insn **.  Add a checked cast when assigning from
8460         "closest_use" into closest_uses array in a region where we know
8461         it's a non-NULL insn.
8462         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
8463         to rtx_insn *.
8464         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
8465         "last_interesting_insn", "uin".
8466         (move_unallocated_pseudos): Likewise for locals "def_insn",
8467         "move_insn", "newinsn".
8468
8469 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8470
8471         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
8472         Strengthen locals "done_label", "do_error" from rtx to
8473         rtx_code_label *.
8474         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
8475         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
8476         rtx_code_label *.
8477         (ubsan_expand_si_overflow_neg_check): Likewise for locals
8478         "done_label", "do_error" to rtx_code_label * and local  "last" to
8479         rtx_insn *.
8480         (ubsan_expand_si_overflow_mul_check): Likewise for locals
8481         "done_label", "do_error", "large_op0", "small_op0_large_op1",
8482         "one_small_one_large", "both_ops_large", "after_hipart_neg",
8483         "after_lopart_neg", "do_overflow", "hipart_different"  to
8484         rtx_code_label * and local  "last" to rtx_insn *.
8485
8486 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8487
8488         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8489         "insn" and "move_insn" from rtx to rtx_insn *.
8490
8491 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8492
8493         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8494         rtx_insn *.
8495         (cheap_bb_rtx_cost_p): Likewise.
8496         (first_active_insn): Likewise for return type and local "insn".
8497         (last_active_insn):  Likewise for return type and locals "insn",
8498         "head".
8499         (struct noce_if_info): Likewise for fields "jump", "insn_a",
8500         "insn_b".
8501         (end_ifcvt_sequence): Likewise for return type and locals "insn",
8502         "seq".
8503         (noce_try_move): Likewise for local "seq".
8504         (noce_try_store_flag): Likewise.
8505         (noce_try_store_flag_constants): Likewise.
8506         (noce_try_addcc): Likewise.
8507         (noce_try_store_flag_mask): Likewise.
8508         (noce_try_cmove): Likewise.
8509         (noce_try_minmax): Likewise.
8510         (noce_try_abs): Likewise.
8511         (noce_try_sign_mask): Likewise.
8512         (noce_try_bitop): Likewise.
8513         (noce_can_store_speculate_p): Likewise for local "insn".
8514         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8515         seq".
8516         (check_cond_move_block): Likewise for local "insn".
8517         (cond_move_convert_if_block): Likewise.
8518         (cond_move_process_if_block): Likewise for locals "seq",
8519         "loc_insn".
8520         (noce_find_if_block): Likewise for local "jump".
8521         (merge_if_block): Likewise for local "last".
8522         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8523         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8524         (block_has_only_trap): Likewise for return type and local "trap".
8525         (find_if_case_1): Likewise for local "jump".
8526         (dead_or_predicable): Likewise for locals "head", "end", "jump",
8527         "insn".
8528
8529 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8530
8531         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8532         "last_insn", "loop_end" from rtx to rtx_insn *.
8533
8534         * hw-doloop.c (scan_loop): Likewise for local "insn".
8535         (discover_loop): Likewise for param "tail_insn".
8536         (discover_loops): Likewise for local "tail".
8537
8538         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8539         cast to rtx_insn * when assigning from an rtx local to a
8540         hwloop_info's "last_insn" field.
8541
8542 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8543
8544         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8545         (add_delay_dependencies): Strengthen local "pro" from rtx to
8546         rtx_insn *.
8547         (recompute_todo_spec): Likewise.
8548         (dep_cost_1): Likewise for locals "insn", "used".
8549         (schedule_insn): Likewise for local "dbg".
8550         (schedule_insn): Likewise for locals "pro", "next".
8551         (unschedule_insns_until): Likewise for local "con".
8552         (restore_pattern): Likewise for local "next".
8553         (estimate_insn_tick): Likewise for local "pro".
8554         (resolve_dependencies): Likewise for local "next".
8555         (fix_inter_tick): Likewise.
8556         (fix_tick_ready): Likewise for local "pro".
8557         (add_to_speculative_block): Likewise for locals "check", "twin",
8558         "pro".
8559         (sched_extend_bb): Likewise for locals "end", "insn".
8560         (init_before_recovery): Likewise for local "x".
8561         (sched_create_recovery_block): Likewise for local "barrier".
8562         (create_check_block_twin): Likewise for local "pro".
8563         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8564         "consumer".
8565         (unlink_bb_notes): Update for change to type of bb_header.
8566         Strengthen locals "prev", "label", "note", "next" from rtx to
8567         rtx_insn *.
8568         (clear_priorities): Likewise for local "pro".
8569
8570 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8571
8572         * gcse.c (struct occr): Strengthen field "insn" from rtx to
8573         rtx_insn *.
8574         (test_insn): Likewise for this global.
8575         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8576         const rtx_insn *.
8577         (oprs_anticipatable_p): Likewise.
8578         (oprs_available_p): Likewise.
8579         (insert_expr_in_table): Strengthen param "insn" from  rtx to
8580         rtx_insn *.
8581         (hash_scan_set): Likewise.
8582         (hash_scan_clobber): Likewise.
8583         (hash_scan_call): Likewise.
8584         (hash_scan_insn): Likewise.
8585         (compute_hash_table_work): Likewise for local "insn".
8586         (process_insert_insn): Likewise for return type and local "pat".
8587         (insert_insn_end_basic_block): Likewise for locals "new_insn",
8588         "pat", "pat_end", "maybe_cc0_setter".
8589         (pre_edge_insert): Likewise for local "insn".
8590         (pre_insert_copy_insn): Likewise for param "insn".
8591         (pre_insert_copies): Likewise for local "insn".
8592         (struct set_data): Likewise for field "insn".
8593         (single_set_gcse): Likewise for param "insn".
8594         (gcse_emit_move_after): Likewise.
8595         (pre_delete): Likewise for local "insn".
8596         (update_bb_reg_pressure): Likewise for param "from" and local
8597         "insn".
8598         (should_hoist_expr_to_dom): Likewise for param "from".
8599         (hoist_code): Likewise for local "insn".
8600         (get_pressure_class_and_nregs): Likewise for param "insn".
8601         (calculate_bb_reg_pressure): Likewise for local "insn".
8602         (compute_ld_motion_mems): Likewise.
8603
8604 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8605
8606         * genpeep.c (main): Rename param back from "uncast_ins1" to
8607         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
8608         checked cast.
8609
8610         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8611
8612 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8613
8614         PR target/62195
8615         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8616         documentation to state it is only for VSX operations.
8617
8618         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8619         constraint only active if VSX.
8620
8621         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8622         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8623         (lfiwzx): Likewise.
8624
8625 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8626
8627         * fwprop.c (single_def_use_dom_walker::before_dom_children):
8628         Strengthen local "insn" from rtx to rtx_insn *.
8629         (use_killed_between): Likewise for param "target_insn".
8630         (all_uses_available_at): Likewise for param "target_insn" and
8631         local "next".
8632         (update_df_init): Likewise for params "def_insn", "insn".
8633         (update_df): Likewise for param "insn".
8634         (try_fwprop_subst): Likewise for param "def_insn" and local
8635         "insn".
8636         (free_load_extend): Likewise for param "insn".
8637         (forward_propagate_subreg): Likewise for param "def_insn" and
8638         local "use_insn".
8639         (forward_propagate_asm): Likewise for param "def_insn" and local
8640         "use_insn".
8641         (forward_propagate_and_simplify): Likewise for param "def_insn"
8642         and local "use_insn".
8643         (forward_propagate_into): Likewise for locals "def_insn" and
8644         "use_insn".
8645
8646 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8647
8648         * function.c (emit_initial_value_sets): Strengthen local "seq"
8649         from rtx to rtx_insn *.
8650         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8651         local "seq".
8652         (instantiate_virtual_regs): Likewise for local "insn".
8653         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8654         (reorder_blocks_1): Likewise for param "insns" and local "insn".
8655         (expand_function_end): Likewise for locals "insn" and "seq".
8656         (epilogue_done): Likewise for local "insn".
8657         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8658         "last", "trial".
8659         (reposition_prologue_and_epilogue_notes): Likewise for locals
8660         "insn", "last", "note", "first".
8661         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8662         (pass_match_asm_constraints::execute): Likewise for local "insn".
8663
8664 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8665
8666         * output.h (final_scan_insn): Strengthen return type from rtx to
8667         rtx_insn *.
8668         (final_forward_branch_p): Likewise for param.
8669         (current_output_insn): Likewise for this global.
8670
8671         * final.c (rtx debug_insn): Likewise for this variable.
8672         (current_output_insn): Likewise.
8673         (get_attr_length_1): Rename param "insn" to "uncast_insn",
8674         adding "insn" back in as an rtx_insn * with a checked cast, so
8675         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8676         first param.
8677         (compute_alignments): Strengthen local "label" from rtx to
8678         rtx_insn *.
8679         (shorten_branches): Rename param from "first" to "uncast_first",
8680         introducing a new local rtx_insn * "first" using a checked cast to
8681         effectively strengthen "first" from rtx to rtx_insn * without
8682         affecting the type signature.  Strengthen locals "insn", "seq",
8683         "next", "label" from rtx to rtx_insn *.
8684         (change_scope): Strengthen param "orig_insn" and local "insn" from
8685         rtx to rtx_insn *.
8686         (final_start_function): Rename param from "first" to "uncast_first",
8687         introducing a new local rtx_insn * "first" using a checked cast to
8688         effectively strengthen "first" from rtx to rtx_insn * without
8689         affecting the type signature.  Strengthen local "insn" from rtx to
8690         rtx_insn *.
8691         (dump_basic_block_info): Strengthen param "insn" from rtx to
8692         rtx_insn *.
8693         (final): Rename param from "first" to "uncast_first",
8694         introducing a new local rtx_insn * "first" using a checked cast to
8695         effectively strengthen "first" from rtx to rtx_insn * without
8696         affecting the type signature.  Strengthen locals "insn", "next"
8697         from rtx to rtx_insn *.
8698         (output_alternate_entry_point): Strengthen param "insn" from rtx to
8699         rtx_insn *.
8700         (call_from_call_insn): Strengthen param "insn" from rtx to
8701         rtx_call_insn *.
8702         (final_scan_insn): Rename param from "insn" to "uncast_insn",
8703         introducing a new local rtx_insn * "insn" using a checked cast to
8704         effectively strengthen "insn" from rtx to rtx_insn * without
8705         affecting the type signature.  Strengthen return type and locals
8706         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
8707         now-redundant checked cast to rtx_insn * from both invocations of
8708         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
8709         introducing a local "call_insn" for use when invoking
8710         call_from_call_insn.
8711         (notice_source_line): Strengthen param "insn" from rtx to
8712         rtx_insn *.
8713         (leaf_function_p): Likewise for local "insn".
8714         (final_forward_branch_p): Likewise.
8715         (leaf_renumber_regs): Likewise for param "first".
8716         (rest_of_clean_state): Likewise for locals "insn" and "next".
8717         (self_recursive_call_p): Likewise for param "insn".
8718         (collect_fn_hard_reg_usage): Likewise for local "insn".
8719         (get_call_fndecl): Likewise for param "insn".
8720         (get_call_cgraph_rtl_info): Likewise.
8721         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8722         introducing a new local rtx_insn * "insn" using a checked cast to
8723         effectively strengthen "insn" from rtx to rtx_insn * without
8724         affecting the type signature.
8725
8726         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8727         cast when assigning from param "insn" to current_output_insn.
8728         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8729         so that we can assign it back to current_output_insn.
8730
8731 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8732
8733         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8734         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8735         atmxt540s and atmxt540sreva devices.
8736         * config/avr/avr-tables.opt: Regenerate.
8737         * config/avr/t-multilib: Regenerate.
8738         * doc/avr-mmcu.texi: Regenerate.
8739
8740 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8741
8742         * expr.c (convert_move): Strengthen local "insns" from rtx to
8743         rtx_insn *.
8744         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8745         "top_label" from rtx to rtx_code_label *.
8746         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8747         rtx_insn *.
8748         (emit_single_push_insn): Likewise for locals "prev", "last".
8749         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8750         to rtx_code_label *.
8751         (store_constructor): Likewise for locals "loop_start", "loop_end".
8752         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8753         rtx_insn *.
8754         (expand_expr_real_2): Likewise.
8755         (expand_expr_real_1): Strengthen local "label" from rtx to
8756         rtx_code_label *.
8757
8758 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8759
8760         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8761         from rtx to rtx_insn *.
8762         (store_bit_field_1): Likewise.
8763         (extract_bit_field_1): Likewise.
8764         (expand_mult_const): Likewise for local "insns".
8765         (expmed_mult_highpart): Strengthen local "label" from rtx to
8766         rtx_code_label *.
8767         (expand_smod_pow2): Likewise.
8768         (expand_sdiv_pow2): Likewise.
8769         (expand_divmod): Strengthen locals "last", "insn" from rtx to
8770         rtx_insn *.  Strengthen locals "label", "label1", "label2",
8771         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8772         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8773         (emit_store_flag): Likewise.
8774         (emit_store_flag_force): Strengthen local "label" from rtx to
8775         rtx_code_label *.
8776         (do_cmp_and_jump): Likewise for param "label".
8777
8778 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8779
8780         * explow.c (force_reg): Strengthen local "insn" from rtx to
8781         rtx_insn *.
8782         (adjust_stack_1): Likewise.
8783         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
8784         "final_label", "available_label", "space_available" from rtx to
8785         rtx_code_label *.
8786         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8787         (anti_adjust_stack_and_probe): Likewise.
8788
8789 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8790
8791         * except.h (sjlj_emit_function_exit_after): Strengthen param
8792         "after" from rtx to rtx_insn *.  This is only called with
8793         result of get_last_insn (in function.c) so type-change should be
8794         self-contained.
8795
8796         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8797         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8798         to rtx_insn *.  These fields are only used from except.c so this
8799         type-change should be self-contained to this patch.
8800
8801         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8802         local "last" from rtx to rtx_insn *.
8803         (dw2_build_landing_pads): Likewise for local "seq".
8804         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8805         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8806         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
8807         rtx to rtx_insn *.
8808         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8809         to rtx_insn *.
8810         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8811         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8812         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8813         referring to an insn.  Strengthen local "dispatch_label" from
8814         rtx to rtx_code_label *.
8815         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8816         rtx_insn *.
8817         (expand_eh_return): Strengthen local "around_label" from
8818         rtx to rtx_code_label *.
8819         (convert_to_eh_region_ranges): Strengthen locals "iter",
8820         "last_action_insn", "first_no_action_insn",
8821         "first_no_action_insn_before_switch",
8822         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8823
8824 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8825
8826         * dwarf2out.c (last_var_location_insn): Strengthen this variable
8827         from rtx to rtx_insn *.
8828         (cached_next_real_insn): Likewise.
8829         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8830         working with insns.
8831         (dwarf2out_var_location): Strengthen locals "next_real",
8832         "next_note", "expected_next_loc_note", "last_start", "insn" from
8833         rtx to rtx_insn *.
8834
8835 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8836
8837         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8838         from rtx to rtx_insn *.
8839         (create_pseudo_cfg): Likewise for local "insn".
8840
8841 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8842
8843         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8844         from rtx to rtx_insn *.
8845         (df_bb_regno_last_def_find): Likewise.
8846
8847         * df-problems.c (df_rd_bb_local_compute): Likewise.
8848         (df_lr_bb_local_compute): Likewise.
8849         (df_live_bb_local_compute): Likewise.
8850         (df_chain_remove_problem): Likewise.
8851         (df_chain_create_bb): Likewise.
8852         (df_word_lr_bb_local_compute): Likewise.
8853         (df_remove_dead_eq_notes): Likewise for param "insn".
8854         (df_note_bb_compute): Likewise for local "insn".
8855         (simulate_backwards_to_point): Likewise.
8856         (df_md_bb_local_compute): Likewise.
8857
8858         * df-scan.c (df_scan_free_bb_info): Likewise.
8859         (df_scan_start_dump): Likewise.
8860         (df_scan_start_block): Likewise.
8861         (df_install_ref_incremental): Likewise for local "insn".
8862         (df_insn_rescan_all): Likewise.
8863         (df_reorganize_refs_by_reg_by_insn): Likewise.
8864         (df_reorganize_refs_by_insn_bb): Likewise.
8865         (df_recompute_luids): Likewise.
8866         (df_bb_refs_record): Likewise.
8867         (df_update_entry_exit_and_calls): Likewise.
8868         (df_bb_verify): Likewise.
8869
8870 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8871
8872         * ddg.h (struct ddg_node): Strengthen fields "insn" and
8873         "first_note" from rtx to rtx_insn *.
8874         (get_node_of_insn): Likewise for param 2 "insn".
8875         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8876
8877         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8878         rtx_insn *.
8879         (mem_write_insn_p): Likewise.
8880         (mem_access_insn_p): Likewise.
8881         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8882         (def_has_ccmode_p): Likewise for param "insn".
8883         (add_cross_iteration_register_deps): Likewise for locals
8884         "def_insn" and "use_insn".
8885         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8886         (build_intra_loop_deps): Likewise for local "src_insn".
8887         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8888         to rtx_insn *.
8889         (get_node_of_insn): Likewise for param "insn".
8890
8891 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8892
8893         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8894         (deletable_insn_p): Strengthen param "insn" from rtx to
8895         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
8896         find_call_stack_args, since this is guarded by CALL_P (insn).
8897         (marked_insn_p): Strengthen param "insn" from rtx to
8898         rtx_insn *.
8899         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
8900         invoking find_call_stack_args, since this is guarded by
8901         CALL_P (insn).
8902         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8903         rtx_insn *; we know this is an insn since this was called by
8904         mark_nonreg_stores.
8905         (mark_nonreg_stores_2): Likewise.
8906         (mark_nonreg_stores): Strengthen param "insn" from rtx to
8907         rtx_insn *.
8908         (find_call_stack_args): Strengthen param "call_insn" from rtx to
8909         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8910         to rtx_insn *.
8911         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8912         from rtx to rtx_insn *.
8913         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8914         "next", "ref_insn".
8915         (delete_unmarked_insns): Likewise for locals "insn", "next".
8916         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8917         (mark_reg_dependencies): Likewise for param "insn".
8918         (rest_of_handle_ud_dce): Likewise for local "insn".
8919         (word_dce_process_block): Likewise.
8920         (dce_process_block): Likewise.
8921
8922 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8923
8924         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8925         from rtx to rtx_insn *.
8926         (struct change_cc_mode_args): Likewise for field "insn".
8927         (this_insn): Strengthen from rtx to rtx_insn *.
8928         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8929         with insn.
8930         (validate_canon_reg): Strengthen param "insn" from rtx to
8931         rtx_insn *.
8932         (canon_reg): Likewise.
8933         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
8934         dealing with insn.
8935         (record_jump_equiv): Strengthen param "insn" from rtx to
8936         rtx_insn *.
8937         (try_back_substitute_reg): Likewise, also for locals "prev",
8938         "bb_head".
8939         (find_sets_in_insn): Likewise for param "insn".
8940         (canonicalize_insn): Likewise.
8941         (cse_insn): Likewise.  Add a checked cast.
8942         (invalidate_from_clobbers): Likewise for param "insn".
8943         (invalidate_from_sets_and_clobbers): Likewise.
8944         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8945         dealing with insn.
8946         (cse_prescan_path): Strengthen local "insn" from rtx to
8947         rtx_insn *.
8948         (cse_extended_basic_block): Likewise for locals "insn" and
8949         "prev_insn".
8950         (cse_main): Likewise for param "f".
8951         (check_for_label_ref): Likewise for local "insn".
8952         (set_live_p): Likewise for second param ("insn").
8953         (insn_live_p): Likewise for first param ("insn") and for local
8954         "next".
8955         (cse_change_cc_mode_insn): Likewise for first param "insn".
8956         (cse_change_cc_mode_insns): Likewise for first and second params
8957         "start" and "end".
8958         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8959         and "end".
8960         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8961         "cc_src_insn".
8962
8963 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8964             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8965             Anna Tikhonova  <anna.tikhonova@intel.com>
8966             Ilya Tocar  <ilya.tocar@intel.com>
8967             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8968             Ilya Verbin  <ilya.verbin@intel.com>
8969             Kirill Yukhin  <kirill.yukhin@intel.com>
8970             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8971
8972         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8973         New.
8974         * config/i386/sse.md
8975         (define_mode_iterator VI248_AVX2): Delete.
8976         (define_mode_iterator VI2_AVX2_AVX512BW): New.
8977         (define_mode_iterator VI48_AVX2): Ditto.
8978         (define_insn <shift_insn><mode>3): Delete.
8979         (define_insn "<shift_insn><mode>3<mask_name>" with
8980         VI2_AVX2_AVX512BW): New.
8981         (define_insn "<shift_insn><mode>3<mask_name>" with
8982         VI48_AVX2): Ditto.
8983
8984 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8985             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8986             Anna Tikhonova  <anna.tikhonova@intel.com>
8987             Ilya Tocar  <ilya.tocar@intel.com>
8988             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8989             Ilya Verbin  <ilya.verbin@intel.com>
8990             Kirill Yukhin  <kirill.yukhin@intel.com>
8991             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8992
8993         * config/i386/sse.md
8994         (define_mode_iterator VI4F_BRCST32x2): New.
8995         (define_mode_attr 64x2_mode): Ditto.
8996         (define_mode_attr 32x2mode): Ditto.
8997         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8998         with VI4F_BRCST32x2): Ditto.
8999         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
9000         with V16FI mode iterator): Ditto.
9001         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
9002         with V16FI): Ditto.
9003         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
9004         with VI8F_BRCST64x2): Ditto.
9005
9006 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9007             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9008             Anna Tikhonova  <anna.tikhonova@intel.com>
9009             Ilya Tocar  <ilya.tocar@intel.com>
9010             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9011             Ilya Verbin  <ilya.verbin@intel.com>
9012             Kirill Yukhin  <kirill.yukhin@intel.com>
9013             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9014
9015         * config/i386/sse.md
9016         (define_mode_iterator VI8_AVX512VL): New.
9017         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
9018
9019 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9020
9021         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
9022         (define_mode_iterator V48_AVX512VL): New.
9023         (define_mode_iterator V12_AVX512VL): Ditto.
9024         (define_insn <avx512>_load<mode>_mask): Split into two similar
9025         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
9026         Refactor output template.
9027         (define_insn "<avx512>_store<mode>_mask"): Ditto.
9028
9029 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9030
9031         * cprop.c (struct occr): Strengthen field "insn" from rtx to
9032         rtx_insn *.
9033         (reg_available_p): Likewise for param "insn".
9034         (insert_set_in_table): Likewise.
9035         (hash_scan_set): Likewise.
9036         (hash_scan_insn): Likewise.
9037         (make_set_regs_unavailable): Likewise.
9038         (compute_hash_table_work): Likewise for local "insn".
9039         (reg_not_set_p): Strengthen param "insn" from const_rtx to
9040         const rtx_insn *.
9041         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
9042         (try_replace_reg): Likewise.
9043         (find_avail_set): Likewise.
9044         (cprop_jump): Likewise for params "setcc", "jump".
9045         (constprop_register): Likewise for param "insn".
9046         (cprop_insn): Likewise.
9047         (do_local_cprop): Likewise.
9048         (local_cprop_pass): Likewise for local "insn".
9049         (bypass_block): Likewise for params "setcc" and "jump".
9050         (bypass_conditional_jumps): Likewise for locals "setcc" and
9051         "insn".
9052         (one_cprop_pass): Likewise for local "insn".
9053
9054 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9055
9056         * compare-elim.c (struct comparison_use): Strengthen field "insn"
9057         from rtx to rtx_insn *.
9058         (struct comparison): Likewise, also for field "prev_clobber".
9059         (conforming_compare): Likewise for param "insn".
9060         (arithmetic_flags_clobber_p): Likewise.
9061         (find_flags_uses_in_insn): Likewise.
9062         (find_comparison_dom_walker::before_dom_children): Likewise for
9063         locals "insn", "next", "last_clobber".
9064         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
9065
9066 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9067
9068         * combine-stack-adj.c (struct csa_reflist): Strengthen field
9069         "insn" from rtx to rtx_insn *.
9070         (single_set_for_csa): Likewise for param "insn".
9071         (record_one_stack_ref): Likewise.
9072         (try_apply_stack_adjustment): Likewise.
9073         (struct record_stack_refs_data): Likewise for field "insn".
9074         (maybe_move_args_size_note): Likewise for params "last" and "insn".
9075         (prev_active_insn_bb): Likewise for return type and param "insn".
9076         (next_active_insn_bb): Likewise.
9077         (force_move_args_size_note): Likewise for params "prev" and "last"
9078         and locals "test", "next_candidate", "prev_candidate".
9079         (combine_stack_adjustments_for_block): Strengthen locals
9080         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
9081         rtx_insn *.
9082
9083 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9084
9085         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
9086         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
9087         (subst_insn): Likewise for this variable.
9088         (added_links_insn): Likewise.
9089         (struct insn_link): Likewise for field "insn".
9090         (alloc_insn_link): Likewise for param "insn".
9091         (struct undobuf): Likewise for field "other_insn".
9092         (find_single_use): Likewise for param "insn" and local "next".
9093         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
9094         (delete_noop_moves): Likewise for locals "insn", "next".
9095         (create_log_links): Likewise for locals "insn", "use_insn".
9096         Strengthen local "next_use" from rtx * to rtx_insn **.
9097         (insn_a_feeds_b): Likewise for params "a", "b".
9098         (combine_instructions): Likewise for param "f" and locals "insn",
9099         "next", "prev", "first", "last_combined_insn", "link", "link1",
9100         "temp".  Replace use of NULL_RTX with NULL when referring to
9101         insns.
9102         (setup_incoming_promotions): Likewise for param "first"
9103         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
9104         (can_combine_p): Likewise for params "insn", "i3", "pred",
9105         "pred2", "succ", "succ2" and for local "p".
9106         (combinable_i3pat): Likewise for param "i3".
9107         (cant_combine_insn_p): Likewise for param "insn".
9108         (likely_spilled_retval_p): Likewise.
9109         (adjust_for_new_dest): Likewise.
9110         (update_cfg_for_uncondjump): Likewise, also for local "insn".
9111         (try_combine): Likewise for return type and for params "i3", "i2",
9112         "i1", "i0", "last_combined_insn", and for locals "insn",
9113         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
9114         "i0_insn".  Eliminate local "tem" in favor of new locals
9115         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
9116         checked cast for now to rtx_insn * on the return type of
9117         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
9118         insns.
9119         (find_split_point): Strengthen param "insn" from rtx to
9120         rtx_insn *.
9121         (simplify_set): Likewise for local "other_insn".
9122         (recog_for_combine): Likewise for param "insn".
9123         (record_value_for_reg): Likewise.
9124         (record_dead_and_set_regs_1): Likewise for local
9125         "record_dead_insn".
9126         (record_dead_and_set_regs): Likewise for param "insn".
9127         (record_promoted_value): Likewise.
9128         (check_promoted_subreg): Likewise.
9129         (get_last_value_validate): Likewise.
9130         (reg_dead_at_p): Likewise.
9131         (move_deaths): Likewise for param "to_insn".
9132         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
9133         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
9134         in favor of new locals "tem_note" and "tem_insn", the latter being
9135         an rtx_insn *.
9136         (distribute_links): Strengthen locals "place", "insn" from rtx to
9137         rtx_insn *.
9138
9139 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9140
9141         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
9142         than a const_rtx.
9143         (can_delete_label_p): Require a const rtx_code_label * rather than
9144         a const_rtx.
9145         (delete_insn): Add checked cast to rtx_code_label * when we know
9146         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
9147         rtx to rtx_insn *.
9148         (delete_insn_chain): Strengthen locals "prev" and "current" from
9149         rtx to rtx_insn *.  Add a checked cast when assigning from
9150         "finish" (strengthening the params will come later).  Add a
9151         checked cast to rtx_note * in region where we know
9152         NOTE_P (current).
9153         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
9154         rtx_insn *.
9155         (compute_bb_for_insn): Likewise.
9156         (free_bb_for_insn): Likewise for local "insn".
9157         (compute_bb_for_insn): Likewise.
9158         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
9159         local "insn" from rtx to rtx_insn *
9160         (flow_active_insn_p): Require a const rtx_insn * rather than a
9161         const_rtx.
9162         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
9163         rtx_insn *.
9164         (can_fallthru): Likewise for locals "insn" and "insn2".
9165         (bb_note): Likewise for local "note".
9166         (first_insn_after_basic_block_note): Likewise for local "note" and
9167         for return type.
9168         (rtl_split_block): Likewise for locals "insn" and "next".
9169         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
9170         "end".
9171         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
9172         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
9173         "prev", "tmp".
9174         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
9175         them), "kill_from", "barrier", "new_insn".
9176         (patch_jump_insn): Likewise for params "insn", "old_label".
9177         (redirect_branch_edge): Likewise for locals "old_label", "insn".
9178         (force_nonfallthru_and_redirect): Likewise for locals "insn",
9179         "old_label", "new_label".
9180         (rtl_tidy_fallthru_edge): Likewise for local "q".
9181         (rtl_split_edge): Likewise for locals "before", "last".
9182         (commit_one_edge_insertion): Likewise for locals "before",
9183         "after", "insns", "tmp", "last", adding a checked cast where
9184         currently necessary.
9185         (commit_edge_insertions): Likewise.
9186         (rtl_dump_bb): Likewise for locals "insn", "last".
9187         (print_rtl_with_bb): Likewise for local "x".
9188         (rtl_verify_bb_insns): Likewise for local "x".
9189         (rtl_verify_bb_pointers): Likewise for local "insn".
9190         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
9191         "head", "end".
9192         (rtl_verify_fallthru): Likewise for local "insn".
9193         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
9194         (purge_dead_edges): Likewise for local "insn".
9195         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
9196         (skip_insns_after_block): Likewise for return type and for locals
9197         "insn", "last_insn", "next_head", "prev".
9198         (record_effective_endpoints): Likewise for locals "next_insn",
9199         "insn", "end".
9200         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
9201         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
9202         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
9203         (duplicate_insn_chain): For now, add checked cast from rtx to
9204         rtx_insn * when returning insn.
9205         (cfg_layout_duplicate_bb): Likewise for local "insn".
9206         (cfg_layout_delete_block): Likewise for locals "insn", "next",
9207         "prev", "remaints".
9208         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
9209         (rtl_block_empty_p): Likewise.
9210         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
9211         "split_point", "last".
9212         (rtl_block_ends_with_call_p): Likewise for local "insn".
9213         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
9214         const rtx_insn *.
9215         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
9216         "split_at_insn" from rtx to rtx_insn *.
9217         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
9218         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
9219         to const rtx_insn *.
9220         (rtl_account_profile_record): Likewise.
9221
9222 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9223
9224         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
9225         rtx to rtx_insn *.
9226         (average_num_loop_insns): Likewise.
9227         (init_set_costs): Likewise for local "seq".
9228         (seq_cost): Likewise for param "seq", from const_rtx to const
9229         rtx_insn *.
9230
9231 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9232
9233         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
9234         rtx to rtx_insn *.
9235
9236 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9237
9238         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
9239         "f1" and "f2" from rtx * to rtx_insn **.
9240         (flow_find_head_matching_sequence): Likewise.
9241
9242         * cfgcleanup.c (try_simplify_condjump): Strengthen local
9243         "cbranch_insn" from rtx to rtx_insn *.
9244         (thread_jump): Likewise for local "insn".
9245         (try_forward_edges): Likewise for local "last".
9246         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
9247         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
9248         "real_b_end".
9249         (can_replace_by): Likewise for params "i1", "i2".
9250         (old_insns_match_p): Likewise.
9251         (merge_notes): Likewise.
9252         (walk_to_nondebug_insn): Likewise for param "i1".
9253         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
9254         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
9255         "afterlast1", "afterlast2" from rtx to rtx_insn *.
9256         (flow_find_head_matching_sequence): Strengthen params "f1" and
9257         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
9258         "last1", "last2", "beforelast1", "beforelast2" from rtx to
9259         rtx_insn *.
9260         (outgoing_edges_match): Likewise for locals "last1", "last2".
9261         (try_crossjump_to_edge): Likewise for local "insn".
9262         Replace call to for_each_rtx with for_each_rtx_in_insn.
9263
9264         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
9265         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
9266         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
9267         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
9268         (try_optimize_cfg): Strengthen local "last" from rtx to
9269         rtx_insn *.
9270         (delete_dead_jumptables): Likewise for locals "insn", "next",
9271         "label".
9272
9273         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
9274         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
9275         "rtx else_first_tail", to reflect the basic-block.h changes above.
9276
9277 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9278
9279         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
9280         rtx_insn *.
9281         (purge_dead_tablejump_edges): Likewise.
9282         (find_bb_boundaries): Likewise for locals "insn", "end",
9283         "flow_transfer_insn".
9284
9285 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9286
9287         * caller-save.c (save_call_clobbered_regs): Strengthen locals
9288         "ins" and "prev" from rtx to rtx_insn *.
9289
9290 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9291
9292         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
9293         rtx_insn *.
9294         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
9295         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
9296         "scan_start".
9297         (load_register_parameters): Likewise for local "before_arg".
9298         (check_sibcall_argument_overlap): Likewise for param "insn".
9299         (expand_call): Likewise for locals "normal_call_insns",
9300         "tail_call_insns", "insns", "before_call", "after_args",
9301         "before_arg", "last", "prev".  Strengthen one of the "last" from
9302         rtx to rtx_call_insn *.
9303         (fixup_tail_calls): Strengthen local "insn" from rtx to
9304         rtx_insn *.
9305         (emit_library_call_value_1): Likewise for locals "before_call" and
9306         "last".
9307
9308 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9309
9310         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
9311         and "last" from rtx to rtx_insn *.
9312         (expand_builtin_nonlocal_goto): Likewise for local "insn".
9313         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
9314         rtx_call_insn *.
9315         (expand_errno_check): Strengthen local "lab" from rtx to
9316         rtx_code_label *.
9317         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
9318         rtx_insn *.
9319         (expand_builtin_mathfn_2): Likewise.
9320         (expand_builtin_mathfn_ternary): Likewise.
9321         (expand_builtin_mathfn_3): Likewise.
9322         (expand_builtin_interclass_mathfn): Likewise for local "last".
9323         (expand_builtin_int_roundingfn): Likewise for local "insns".
9324         (expand_builtin_int_roundingfn_2): Likewise.
9325         (expand_builtin_strlen): Likewise for local "before_strlen".
9326         (expand_builtin_strncmp): Likewise for local "seq".
9327         (expand_builtin_signbit): Likewise for local "last".
9328         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
9329         from rtx to rtx_code_label *.
9330         (expand_stack_restore):  Strengthen local "prev" from rtx to
9331         rtx_insn *.
9332
9333 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9334
9335         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
9336         to rtx_insn *.
9337         (struct btr_def_s): Likewise.
9338         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
9339         const rtx_insn *.
9340         (add_btr_def): Likewise.
9341         (new_btr_user): Likewise.
9342         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
9343         rtx to rtx_insn *.
9344         (link_btr_uses): Likewise.
9345         (move_btr_def): Likewise for locals "insp", "old_insn",
9346         "new_insn".  Add checked cast to rtx_insn * for now on result of
9347         gen_move_insn.
9348         (can_move_up): Strengthen param "insn" from const_rtx to
9349         const rtx_insn *.
9350
9351 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9352
9353         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
9354         rtx_insn *.
9355         (get_uncond_jump_length): Likewise for locals "label", "jump".
9356         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
9357         "jump", "insn".
9358         (add_labels_and_missing_jumps): Likewise for local "new_jump".
9359         (fix_up_fall_thru_edges): Likewise for local "old_jump".
9360         (find_jump_block): Likewise for local "insn".
9361         (fix_crossing_conditional_branches): Likewise for locals
9362         "old_jump", "new_jump".
9363         (fix_crossing_unconditional_branches): Likewise for locals
9364         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
9365         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
9366
9367 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9368
9369         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
9370         rtx to rtx_insn *.
9371         (struct mem_insn): Likewise for field "insn".
9372         (reg_next_use): Strengthen from rtx * to rtx_insn **.
9373         (reg_next_inc_use): Likewise.
9374         (reg_next_def): Likewise.
9375         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
9376         from rtx to rtx_insn *.
9377         (move_insn_before): Likewise for param "next_insn" and local "insns".
9378         (attempt_change): Likewise for local "mov_insn".
9379         (try_merge): Likewise for param "last_insn".
9380         (get_next_ref): Likewise for return type and local "insn".
9381         Strengthen param "next_array" from rtx * to rtx_insn **.
9382         (parse_add_or_inc): Strengthen param "insn" from rtx to
9383         rtx_insn *.
9384         (find_inc): Likewise for locals "insn" and "other_insn" (three of
9385         the latter).
9386         (merge_in_block): Likewise for locals "insn", "curr",
9387         "other_insn".
9388         (pass_inc_dec::execute): Update allocations of the arrays to
9389         reflect the stronger types.
9390
9391 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9392
9393         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
9394         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
9395         from rtx to rtx_code_label *.
9396
9397 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9398
9399         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
9400         to rtx_insn *.
9401
9402 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9403
9404         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
9405         generated a warning and prevented bootstrapping the compiler.
9406
9407 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9408
9409         * rtl.h (delete_related_insns): Strengthen return type from rtx to
9410         rtx_insn *.
9411
9412         * jump.c (delete_related_insns): Likewise, also for locals "next"
9413         and "prev".
9414
9415 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9416
9417         * genautomata.c (output_internal_insn_latency_func): When writing
9418         the function "internal_insn_latency" to insn-automata.c,
9419         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
9420         allowing the optional guard function of (define_bypass) clauses to
9421         expect a pair of rtx_insn *, rather than a pair of rtx.
9422         (output_insn_latency_func): When writing the function
9423         "insn_latency", add an "uncast_" prefix to params "insn" and
9424         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
9425         using checked casts from the params, thus enabling the above
9426         change to the generated "internal_insn_latency" function.
9427
9428 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
9429
9430         PR tree-optimization/62091
9431         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
9432         handle correctly arrays.
9433         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
9434         inheritance binfos.
9435         (record_known_type): Walk into inner type.
9436         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
9437         condition on no type changes.
9438
9439 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9440
9441         * genattrtab.c (write_attr_get): Within the generated get_attr_
9442         functions, rename param "insn" to "uncast_insn" and reintroduce
9443         "insn" as an local rtx_insn * using a checked cast, so that "insn"
9444         is an rtx_insn * within insn-attrtab.c
9445
9446 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9447
9448         * output.h (peephole): Strengthen return type from rtx to
9449         rtx_insn *.
9450         * rtl.h (delete_for_peephole): Likewise for both params.
9451         * genpeep.c (main): In generated "peephole" function, strengthen
9452         return type and local "insn" from rtx to rtx_insn *.  For now,
9453         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
9454         rtx_insn *, with a checked cast.
9455         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
9456         locals "insn", "next", "prev" from rtx to rtx_insn *.
9457
9458 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
9459
9460         PR tree-optimization/62112
9461         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
9462         * gimple-iterator.h (gsi_replace): Return bool.
9463         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
9464         moved from ref_may_alias_global_p.
9465         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
9466         New overloads.
9467         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
9468         (stmt_kills_ref_p_1): Rename...
9469         (stmt_kills_ref_p): ... to this.
9470         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
9471         stmt_kills_ref_p): Declare.
9472         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
9473         Move the self-assignment case...
9474         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
9475
9476 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9477
9478         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9479
9480         * emit-rtl.c (try_split): Likewise, also for locals "before" and
9481         "after".  For now, don't strengthen param "trial", which requires
9482         adding checked casts when returning it.
9483
9484 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9485
9486         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9487         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
9488         "var_location" hook from rtx to rtx_insn *.
9489         (debug_nothing_rtx): Delete in favor of...
9490         (debug_nothing_rtx_code_label): New prototype.
9491         (debug_nothing_rtx_rtx): Delete unused prototype.
9492         (debug_nothing_rtx_insn): New prototype.
9493
9494         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9495         invoking debug_hooks->var_location (in two places, one in a NOTE
9496         case of a switch statement, the other guarded by a CALL_P
9497         conditional.  Add checked cast to rtx_code_label * when invoking
9498         debug_hooks->label (within CODE_LABEL case of switch statement).
9499
9500         * dbxout.c (dbx_debug_hooks): Update "label" hook from
9501         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
9502         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9503         (xcoff_debug_hooks): Likewise.
9504         * debug.c (do_nothing_debug_hooks): Likewise.
9505         (debug_nothing_rtx): Delete in favor of...
9506         (debug_nothing_rtx_insn): New function.
9507         (debug_nothing_rtx_rtx): Delete unused function.
9508         (debug_nothing_rtx_code_label): New function.
9509         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9510         debug_nothing_rtx to debug_nothing_rtx_code_label.
9511         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9512         to rtx_insn *.
9513         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9514         debug_nothing_rtx to debug_nothing_rtx_insn.
9515         (sdbout_label): Strengthen param "insn" from rtx to
9516         rtx_code_label *.
9517         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9518         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
9519         "var_location" hook from debug_nothing_rtx to
9520         debug_nothing_rtx_insn.
9521
9522 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9523
9524         * recog.h (insn_output_fn): Update this function typedef to match
9525         the changes below to the generated output functions, strengthening
9526         the 2nd param from rtx to rtx_insn *.
9527
9528         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9529         insn when invoking an output function, to match the new signature
9530         of insn_output_fn with a stronger second param.
9531
9532         * genconditions.c (write_header): In the generated code for
9533         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9534         to match the other changes in this patch.
9535
9536         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9537         the generated "gen_" functions from rtx to rtx_insn * within their
9538         implementations.
9539
9540         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9541         the subfunctions within the generated "recog_", "split", "peephole2"
9542         function trees from rtx to rtx_insn *.  For now, the top-level
9543         generated functions ("recog", "split", "peephole2") continue to
9544         take a plain rtx for "insn", to avoid introducing dependencies on
9545         other patches.  Rename this 2nd param from "insn" to
9546         "uncast_insn", and reintroduce "insn" as a local variable of type
9547         rtx_insn *, initialized at the top of the generated function with
9548         a checked cast on "uncast_insn".
9549         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9550         the generated "gen_" functions from rtx to rtx_insn * within their
9551         prototypes.
9552
9553         * genoutput.c (process_template): Strengthen the 2nd param within
9554         the generated "output_" functions "insn" from rtx to rtx_insn *.
9555
9556 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9557
9558         * tree-profile.c (tree_profiling): Skip external functions
9559         when doing coverage instrumentation.
9560         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9561
9562 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9563
9564         * config/rs6000/altivec.h (vec_cpsgn): New #define.
9565         (vec_mergee): Likewise.
9566         (vec_mergeo): Likewise.
9567         (vec_cntlz): Likewise.
9568         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9569         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9570         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9571         VMRGEW, and VMRGOW.
9572         * doc/extend.texi: Document various forms of vec_cpsgn,
9573         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9574         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9575         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9576         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9577         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9578
9579 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9580
9581         * config/rs6000/rs6000.c (context.h): New include.
9582         (tree-pass.h): Likewise.
9583         (make_pass_analyze_swaps): New decl.
9584         (rs6000_option_override): Register pass_analyze_swaps.
9585         (swap_web_entry): New subsclass of web_entry_base (df.h).
9586         (special_handling_values): New enum.
9587         (union_defs): New function.
9588         (union_uses): Likewise.
9589         (insn_is_load_p): Likewise.
9590         (insn_is_store_p): Likewise.
9591         (insn_is_swap_p): Likewise.
9592         (rtx_is_swappable_p): Likewise.
9593         (insn_is_swappable_p): Likewise.
9594         (chain_purpose): New enum.
9595         (chain_contains_only_swaps): New function.
9596         (mark_swaps_for_removal): Likewise.
9597         (swap_const_vector_halves): Likewise.
9598         (adjust_subreg_index): Likewise.
9599         (permute_load): Likewise.
9600         (permute_store): Likewise.
9601         (handle_special_swappables): Likewise.
9602         (replace_swap_with_copy): Likewise.
9603         (dump_swap_insn_table): Likewise.
9604         (rs6000_analyze_swaps): Likewise.
9605         (pass_data_analyze_swaps): New pass_data.
9606         (pass_analyze_swaps): New rtl_opt_pass.
9607         (make_pass_analyze_swaps): New function.
9608         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9609
9610 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9611
9612         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9613         type from rtx to rtx_insn *.
9614         (create_copy_of_insn_rtx): Likewise.
9615         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9616         (create_copy_of_insn_rtx): Likewise, also for local "res".
9617
9618 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9619
9620         * rtl.h (find_first_parameter_load): Strengthen return type from
9621         rtx to rtx_insn *.
9622         * rtlanal.c (find_first_parameter_load): Strengthen return type
9623         from rtx to rtx_insn *.  Add checked cast for now, to postpone
9624         strengthening the params.
9625
9626 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9627
9628         PR fortran/44054
9629         * diagnostic.c: Set default caret.
9630         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9631         line is needed.
9632         * diagnostic.h (struct diagnostic_context):
9633
9634 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9635
9636         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9637         (sel_bb_head): Strengthen return type insn_t (currently just an
9638         rtx) to rtx_insn *.
9639         (sel_bb_end): Likewise.
9640
9641         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9642         (sel_bb_head): Strengthen return type and local "head" from
9643         insn_t (currently just an rtx) to rtx_insn *.
9644         (sel_bb_end): Likewise for return type.
9645         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9646         working with insn.
9647
9648 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9649
9650         * basic-block.h (get_last_bb_insn): Strengthen return type from
9651         rtx to rtx_insn *.
9652         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9653         end".
9654
9655 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9656
9657         PR fortran/44054
9658         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9659          to here ...
9660         (diagnostic_report_diagnostic): ... from here.
9661         * toplev.c (general_init): Move code to c-family.
9662
9663 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9664
9665         * df.h (web_entry_base): Replace existing struct web_entry with a
9666         new class web_entry_base with only the predecessor member.
9667         (unionfind_root): Remove declaration and move to class member.
9668         (unionfind_union): Remove declaration and move to friend
9669         function.
9670         (union_defs): Remove declaration.
9671         * web.c (web_entry_base::unionfind_root): Modify to be member
9672         function and adjust accessors.
9673         (unionfind_union): Modify to be friend function and adjust
9674         accessors.
9675         (web_entry): New subclass of web_entry_base containing the reg
9676         member.
9677         (union_match_dups): Modify for struct -> class changes.
9678         (union_defs): Likewise.
9679         (entry_register): Likewise.
9680         (pass_web::execute): Likewise.
9681
9682 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
9683
9684         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9685         builtin define __VEC_ELEMENT_REG_ORDER__.
9686
9687 2014-08-20  Martin Jambor  <mjambor@suse.cz>
9688             Wei Mi  <wmi@google.com>
9689
9690         PR ipa/60449
9691         PR middle-end/61776
9692         * tree-ssa-operands.c (update_stmt_operands): Remove
9693         MODIFIED_NORETURN_CALLS.
9694         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9695         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9696         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9697         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9698         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9699         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9700         (gimple_call_set_ctrl_altering): New func.
9701         (gimple_call_ctrl_altering_p): Ditto.
9702         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9703         (make_blocks): Use gimple_call_initialize_ctrl_altering.
9704         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9705         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9706         remove MODIFIED_NORETURN_CALLS.
9707
9708 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9709
9710         * coverage.c (coverage_compute_profile_id): Return non-0;
9711         also handle symbols with unique name.
9712         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9713
9714 2014-08-20  Steve Ellcey  <sellcey@mips.com>
9715
9716         PR middle-end/49191
9717         * doc/sourcebuild.texi (non_strict_align): New.
9718
9719 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9720
9721         * cgraphunit.c (ipa_passes, compile): Reshedule
9722         symtab_remove_unreachable_nodes passes; update comments.
9723         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9724         TODO_remove_functions before the pass; the functions ought to be
9725         already removed.
9726         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9727         TODO_remove_functions.
9728         * passes.c (pass_data_early_local_passes): Do not schedule function
9729         removal.
9730         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9731
9732 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9733
9734         PR c/59304
9735         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9736         before setting the option.
9737         * diagnostic.c (diagnostic_classify_diagnostic): Record
9738         command-line status.
9739
9740 2014-08-20  Richard Biener  <rguenther@suse.de>
9741
9742         PR lto/62190
9743         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9744         to build uint{16,32,64}_type_node.
9745
9746 2014-08-20  Terry Guo  <terry.guo@arm.com>
9747
9748         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9749         with immediate_operand.
9750
9751 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
9752
9753         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9754         "insn" from an as_a to a safe_as_a, for the case when "insn" is
9755         NULL.
9756
9757 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9758
9759         PR preprocessor/51303
9760         * incpath.c (remove_duplicates): Use cpp_warning.
9761
9762 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9763
9764         PR c/60975
9765         PR c/53063
9766         * doc/options.texi (CPP): Document it.
9767         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9768         * optc-gen.awk: Handle CPP.
9769         * opth-gen.awk: Likewise.
9770
9771 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9772
9773         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9774         rtx_insn *.
9775         (duplicate_insn_chain): Likewise.
9776         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9777         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
9778         checked cast for now (until we can strengthen the params in the
9779         same way).
9780         (duplicate_insn_chain): Likewise.
9781
9782 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9783
9784         * rtl.h (next_cc0_user): Strengthen return type from rtx to
9785         rtx_insn *.
9786         (prev_cc0_setter): Likewise.
9787
9788         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9789         rtx_insn *, adding checked casts for now as necessary.
9790         (prev_cc0_setter): Likewise.
9791
9792 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9793
9794         * expr.h (emit_move_insn): Strengthen return type from rtx to
9795         rtx_insn *.
9796         (emit_move_insn_1): Likewise.
9797         (emit_move_complex_push): Likewise.
9798         (emit_move_complex_parts): Likewise.
9799
9800         * expr.c (emit_move_via_integer): Strengthen return type from rtx
9801         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
9802         with insns.
9803         (emit_move_complex_push): Strengthen return type from rtx to
9804         rtx_insn *.
9805         (emit_move_complex): Likewise, also for local "ret".
9806         (emit_move_ccmode): Likewise.
9807         (emit_move_multi_word): Likewise for return type and locals
9808         "last_insn", "seq".
9809         (emit_move_insn_1): Likewise for return type and locals "result",
9810         "ret".
9811         (emit_move_insn): Likewise for return type and local "last_insn".
9812         (compress_float_constant): Likewise.
9813
9814 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9815
9816         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9817         from rtx to rtx_insn *.
9818
9819         * rtl.h (emit_insn_before): Likewise.
9820         (emit_insn_before_noloc): Likewise.
9821         (emit_insn_before_setloc): Likewise.
9822         (emit_jump_insn_before): Likewise.
9823         (emit_jump_insn_before_noloc): Likewise.
9824         (emit_jump_insn_before_setloc): Likewise.
9825         (emit_call_insn_before): Likewise.
9826         (emit_call_insn_before_noloc): Likewise.
9827         (emit_call_insn_before_setloc): Likewise.
9828         (emit_debug_insn_before): Likewise.
9829         (emit_debug_insn_before_noloc): Likewise.
9830         (emit_debug_insn_before_setloc): Likewise.
9831         (emit_label_before): Likewise.
9832         (emit_insn_after): Likewise.
9833         (emit_insn_after_noloc): Likewise.
9834         (emit_insn_after_setloc): Likewise.
9835         (emit_jump_insn_after): Likewise.
9836         (emit_jump_insn_after_noloc): Likewise.
9837         (emit_jump_insn_after_setloc): Likewise.
9838         (emit_call_insn_after): Likewise.
9839         (emit_call_insn_after_noloc): Likewise.
9840         (emit_call_insn_after_setloc): Likewise.
9841         (emit_debug_insn_after): Likewise.
9842         (emit_debug_insn_after_noloc): Likewise.
9843         (emit_debug_insn_after_setloc): Likewise.
9844         (emit_label_after): Likewise.
9845         (emit_insn): Likewise.
9846         (emit_debug_insn): Likewise.
9847         (emit_jump_insn): Likewise.
9848         (emit_call_insn): Likewise.
9849         (emit_label): Likewise.
9850         (gen_clobber): Likewise.
9851         (emit_clobber): Likewise.
9852         (gen_use): Likewise.
9853         (emit_use): Likewise.
9854         (emit): Likewise.
9855
9856         (emit_barrier_before): Strengthen return type from rtx to
9857         rtx_barrier *.
9858         (emit_barrier_after): Likewise.
9859         (emit_barrier): Likewise.
9860
9861         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
9862         from rtx to rtx_insn *.  Add checked casts for now when converting
9863         "last" from rtx to rtx_insn *.
9864         (emit_insn_before_noloc): Likewise for return type.
9865         (emit_jump_insn_before_noloc): Likewise.
9866         (emit_call_insn_before_noloc): Likewise.
9867         (emit_debug_insn_before_noloc): Likewise.
9868         (emit_barrier_before): Strengthen return type and local "insn"
9869         from rtx to rtx_barrier *.
9870         (emit_label_before): Strengthen return type from rtx to
9871         rtx_insn *.  Add checked cast for now when returning param
9872         (emit_pattern_after_noloc): Strengthen return type from rtx to
9873         rtx_insn *.  Add checked casts for now when converting "last" from
9874         rtx to rtx_insn *.
9875         (emit_insn_after_noloc): Strengthen return type from rtx to
9876         rtx_insn *.
9877         (emit_jump_insn_after_noloc): Likewise.
9878         (emit_call_insn_after_noloc): Likewise.
9879         (emit_debug_insn_after_noloc): Likewise.
9880         (emit_barrier_after): Strengthen return type from rtx to
9881         rtx_barrier *.
9882         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9883         Add checked cast for now when converting "label" from rtx to
9884         rtx_insn *.
9885         (emit_pattern_after_setloc): Strengthen return type from rtx to
9886         rtx_insn *.  Add checked casts for now when converting "last" from
9887         rtx to rtx_insn *.
9888         (emit_pattern_after): Strengthen return type from rtx to
9889         rtx_insn *.
9890         (emit_insn_after_setloc): Likewise.
9891         (emit_insn_after): Likewise.
9892         (emit_jump_insn_after_setloc): Likewise.
9893         (emit_jump_insn_after): Likewise.
9894         (emit_call_insn_after_setloc): Likewise.
9895         (emit_call_insn_after): Likewise.
9896         (emit_debug_insn_after_setloc): Likewise.
9897         (emit_debug_insn_after): Likewise.
9898         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
9899         when converting "last" from rtx to rtx_insn *.
9900         (emit_pattern_before): Strengthen return type from rtx to
9901         rtx_insn *.
9902         (emit_insn_before_setloc): Likewise.
9903         (emit_insn_before): Likewise.
9904         (emit_jump_insn_before_setloc): Likewise.
9905         (emit_jump_insn_before): Likewise.
9906         (emit_call_insn_before_setloc): Likewise.
9907         (emit_call_insn_before): Likewise.
9908         (emit_debug_insn_before_setloc): Likewise.
9909         (emit_debug_insn_before): Likewise.
9910         (emit_insn): Strengthen return type and locals "last", "insn",
9911         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
9912         within cases where we know we have an insn.
9913         (emit_debug_insn): Likewise.
9914         (emit_jump_insn): Likewise.
9915         (emit_call_insn): Strengthen return type and local "insn" from rtx
9916         to rtx_insn *.
9917         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
9918         a checked cast to rtx_insn * for now on "label".
9919         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9920         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9921         (emit_use): Likewise.
9922         (gen_use): Likewise, also for local "seq".
9923         (emit): Likewise for return type and local "insn".
9924         (rtx_insn): Likewise for return type and local "new_rtx".
9925
9926         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9927         from rtx to rtx_barrier *.
9928
9929         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9930         changed return type from rtx to rtx_insn *, we must update
9931         "emit_fn" type, and this in turn means updating...
9932         (frame_insn): ...this.  Strengthen return type from rtx to
9933         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
9934
9935 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9936
9937         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9938         rtx to rtx_jump_table_data *.  Also for local.
9939         * rtl.h (emit_jump_table_data): Likewise.
9940
9941 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9942
9943         * basic-block.h (create_basic_block_structure): Strengthen third
9944         param "bb_note" from rtx to rtx_note *.
9945         * rtl.h (emit_note_before): Strengthen return type from rtx to
9946         rtx_note *.
9947         (emit_note_after): Likewise.
9948         (emit_note): Likewise.
9949         (emit_note_copy): Likewise.  Also, strengthen param similarly.
9950         * function.h (struct rtl_data): Strengthen field
9951         "x_stack_check_probe_note" from rtx to rtx_note *.
9952
9953         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9954         from rtx to rtx_note *.
9955         * cfgrtl.c (create_basic_block_structure): Strengthen third param
9956         "bb_note" from rtx to rtx_note *.
9957         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
9958         when calling emit_note_copy.
9959         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9960         rtx_note *.
9961         (emit_note_after): Likewise.
9962         (emit_note_before): Likewise.
9963         (emit_note_copy): Likewise.  Also, strengthen param similarly.
9964         (emit_note): Likewise.
9965         * except.c (emit_note_eh_region_end): Likewise for return type.
9966         Strengthen local "next" from rtx to rtx_insn *.
9967         (convert_to_eh_region_ranges): Strengthen local "note"
9968         from rtx to rtx_note *.
9969         * final.c (change_scope): Likewise.
9970         (reemit_insn_block_notes): Likewise, for both locals named "note".
9971         Also, strengthen local "insn" from rtx to rtx_insn *.
9972         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9973         rtx to rtx_note *.
9974         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9975         strengthen local "seq" from rtx to rtx_insn *.
9976         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9977         to rtx_note *.
9978         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9979         vec<rtx_note *>.
9980         (get_bb_note_from_pool): Strengthen return type from rtx to
9981         rtx_note *.
9982         (sel_create_basic_block): Strengthen local "new_bb_note" from
9983         insn_t to rtx_note *.
9984         * var-tracking.c (emit_note_insn_var_location): Strengthen local
9985         "note" from rtx to rtx_note *.
9986         (emit_notes_in_bb): Likewise.
9987
9988 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9989
9990         * function.h (struct rtl_data): Strengthen field
9991         "x_parm_birth_insn" from rtx to rtx_insn *.
9992         * function.c (struct assign_parm_data_all): Strengthen fields
9993         "first_conversion_insn" and "last_conversion_insn" from rtx to
9994         rtx_insn *.
9995
9996 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9997
9998         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9999         to rtx_insn *; also for local "var_end_seq".
10000         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
10001         (maybe_cleanup_end_of_block): Likewise for param "last" and local
10002         "insn".
10003         (expand_gimple_cond): Likewise for locals "last2" and "last".
10004         (mark_transaction_restart_calls): Likewise for local "insn".
10005         (expand_gimple_stmt): Likewise for return type and locals "last"
10006         and "insn".
10007         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
10008         (avoid_complex_debug_insns): Likewise for param "insn".
10009         (expand_debug_locations): Likewise for locals "insn", "last",
10010         "prev_insn" and "insn2".
10011         (expand_gimple_basic_block): Likewise for local "last".
10012         (construct_exit_block): Likewise for locals "head", "end",
10013         "orig_end".
10014         (pass_expand::execute): Likewise for locals "var_seq",
10015         "var_ret_seq", "next".
10016
10017 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10018
10019         * asan.h (asan_emit_stack_protection): Strengthen return type from
10020         rtx to rtx_insn *.
10021         * asan.c (asan_emit_stack_protection): Likewise.  Add local
10022         "insns" to hold the return value.
10023
10024 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10025
10026         * basic-block.h (bb_note): Strengthen return type from rtx to
10027         rtx_note *.
10028         * sched-int.h (bb_note): Likewise.
10029         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
10030
10031 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10032
10033         * rtl.h (make_insn_raw): Strengthen return type from rtx to
10034         rtx_insn *.
10035
10036         * emit-rtl.c (make_insn_raw): Strengthen return type and local
10037         "insn" from rtx to rtx_insn *.
10038         (make_debug_insn_raw): Strengthen return type from rtx to
10039         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
10040         (make_jump_insn_raw):  Strengthen return type from rtx to
10041         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
10042         (make_call_insn_raw):  Strengthen return type from rtx to
10043         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
10044         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
10045         callback from rtx to rtx_insn *; likewise for local "insn" and
10046         "next", adding a checked cast to rtx_insn in the relevant cases of
10047         the switch statement.
10048         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
10049         callback from rtx to rtx_insn *.
10050         (emit_pattern_after_setloc): Likewise.
10051         (emit_pattern_after): Likewise.
10052         (emit_pattern_before_setloc): Likewise.
10053         (emit_pattern_before): Likewise.
10054
10055 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10056
10057         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
10058         rtx_call_insn *.
10059         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
10060         accepting an rtx_insn *.
10061         (last_call_insn): Strengthen return type from rtx to
10062         rtx_call_insn *.
10063
10064 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10065
10066         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
10067         "insns" from rtx to rtx_insn *.
10068         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
10069         locals "insn" and "prev".
10070
10071 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10072
10073         * rtl.h (tablejump_p): Strengthen third param from rtx * to
10074         rtx_jump_table_data **.
10075
10076         * cfgbuild.c (make_edges): Introduce local "table", using it in
10077         place of "tmp" for jump table data.
10078         (find_bb_boundaries): Strengthen local "table" from rtx to
10079         rtx_jump_table_data *.
10080         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10081         (outgoing_edges_match): Likewise for locals "table1" and "table2".
10082         (try_crossjump_to_edge): Likewise.
10083         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
10084         "table".
10085         (patch_jump_insn): Introduce local "table", using it in place of
10086         "tmp" for jump table data.
10087         (force_nonfallthru_and_redirect): Introduce local "table", so that
10088         call to tablejump_p can receive an rtx_jump_table_data **.  Update
10089         logic around the call to overwrite "note" appropriately if
10090         tablejump_p returns non-zero.
10091         (get_last_bb_insn): Introduce local "table", using it in place of
10092         "tmp" for jump table data.
10093         * dwarf2cfi.c (create_trace_edges): Likewise.
10094
10095         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
10096         from rtx to rtx_jump_table_data *.
10097         (create_fix_barrier): Strengthen local "tmp" from rtx to
10098         rtx_jump_table_data *.
10099         (arm_reorg): Likewise for local "table".
10100
10101         * config/s390/s390.c (s390_chunkify_start): Likewise.
10102
10103         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
10104
10105         * jump.c (delete_related_insns): Strengthen local "lab_next" from
10106         rtx to rtx_jump_table_data *.
10107
10108         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
10109         rtx_jump_table_data **.  Add a checked cast when writing through
10110         the pointer: we know there that local "table" is non-NULL and that
10111         JUMP_TABLE_DATA_P (table) holds.
10112         (label_is_jump_target_p): Introduce local "table", using it in
10113         place of "tmp" for jump table data.
10114
10115 2014-08-19  Marek Polacek  <polacek@redhat.com>
10116
10117         PR c++/62153
10118         * doc/invoke.texi: Document -Wbool-compare.
10119
10120 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10121
10122         * rtl.h (entry_of_function): Strengthen return type from rtx to
10123         rtx_insn *.
10124         * cfgrtl.c (entry_of_function): Likewise.
10125
10126 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10127
10128         * emit-rtl.h (get_insns): Strengthen return type from rtx to
10129         rtx_insn *, adding a checked cast for now.
10130         (get_last_insn): Likewise.
10131
10132 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10133
10134         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
10135         rtx_code_label *.
10136
10137         * emit-rtl.c (gen_label_rtx): Likewise.
10138
10139 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10140
10141         * rtl.h (previous_insn): Strengthen return type from rtx to
10142         rtx_insn *.
10143         (next_insn): Likewise.
10144         (prev_nonnote_insn): Likewise.
10145         (prev_nonnote_insn_bb): Likewise.
10146         (next_nonnote_insn): Likewise.
10147         (next_nonnote_insn_bb): Likewise.
10148         (prev_nondebug_insn): Likewise.
10149         (next_nondebug_insn): Likewise.
10150         (prev_nonnote_nondebug_insn): Likewise.
10151         (next_nonnote_nondebug_insn): Likewise.
10152         (prev_real_insn): Likewise.
10153         (next_real_insn): Likewise.
10154         (prev_active_insn): Likewise.
10155         (next_active_insn): Likewise.
10156
10157         * emit-rtl.c (next_insn): Strengthen return type from rtx to
10158         rtx_insn *, adding a checked cast.
10159         (previous_insn): Likewise.
10160         (next_nonnote_insn): Likewise.
10161         (next_nonnote_insn_bb): Likewise.
10162         (prev_nonnote_insn): Likewise.
10163         (prev_nonnote_insn_bb): Likewise.
10164         (next_nondebug_insn): Likewise.
10165         (prev_nondebug_insn): Likewise.
10166         (next_nonnote_nondebug_insn): Likewise.
10167         (prev_nonnote_nondebug_insn): Likewise.
10168         (next_real_insn): Likewise.
10169         (prev_real_insn): Likewise.
10170         (next_active_insn): Likewise.
10171         (prev_active_insn): Likewise.
10172
10173         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
10174         param "stepfunc" so that it returns an rtx_insn * rather than an
10175         rtx, to track the change to prev_nonnote_insn_bb, which is the
10176         only function this is called with.
10177         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
10178
10179 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
10180
10181         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
10182         assert.
10183
10184 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10185
10186         * coretypes.h (class rtx_debug_insn): Add forward declaration.
10187         (class rtx_nonjump_insn): Likewise.
10188         (class rtx_jump_insn): Likewise.
10189         (class rtx_call_insn): Likewise.
10190         (class rtx_jump_table_data): Likewise.
10191         (class rtx_barrier): Likewise.
10192         (class rtx_code_label): Likewise.
10193         (class rtx_note): Likewise.
10194
10195         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
10196         adding the invariant DEBUG_INSN_P (X).
10197         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
10198         the invariant NONJUMP_INSN_P (X).
10199         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
10200         the invariant JUMP_P (X).
10201         (class rtx_call_insn): New, a subclass of rtx_insn, adding
10202         the invariant CALL_P (X).
10203         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
10204         invariant JUMP_TABLE_DATA_P (X).
10205         (class rtx_barrier): New, a subclass of rtx_insn, adding the
10206         invariant BARRIER_P (X).
10207         (class rtx_code_label): New, a subclass of rtx_insn, adding
10208         the invariant LABEL_P (X).
10209         (class rtx_note): New, a subclass of rtx_insn, adding
10210         the invariant NOTE_P(X).
10211         (is_a_helper <rtx_debug_insn *>::test): New.
10212         (is_a_helper <rtx_nonjump_insn *>::test): New.
10213         (is_a_helper <rtx_jump_insn *>::test): New.
10214         (is_a_helper <rtx_call_insn *>::test): New.
10215         (is_a_helper <rtx_jump_table_data *>::test): New functions,
10216         overloaded for both rtx and rtx_insn *.
10217         (is_a_helper <rtx_barrier *>::test): New.
10218         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
10219         for both rtx and rtx_insn *.
10220         (is_a_helper <rtx_note *>::test): New.
10221
10222 2014-08-19  Marek Polacek  <polacek@redhat.com>
10223
10224         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
10225         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10226         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
10227         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10228
10229 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10230
10231         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
10232         rtx_insn *.  To help with transition, for now, convert from an
10233         access macro into a pair of functions: BND_TO, returning an
10234         rtx_insn *, and...
10235         (SET_BND_TO): New function, for use where BND_TO is used as an
10236         lvalue.
10237
10238         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
10239         SET_BND_TO.
10240         (BND_TO): New function, adding a checked cast.
10241         (SET_BND_TO): New function.
10242
10243         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
10244         SET_BND_TO.
10245         (compute_av_set_on_boundaries): Likewise.
10246
10247 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
10248
10249         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
10250         destination if it is used in source.
10251         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
10252         (*popcount<mode>2_falsedep_1): Likewise.
10253
10254 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
10255
10256         PR other/62168
10257         * configure.ac: Set install_gold_as_default to no first.
10258         * configure: Regenerated.
10259
10260 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10261
10262         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
10263         "note_list" field will eventually be an rtx_insn *.  To help with
10264         transition, for now, convert from an access macro into a pair of
10265         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
10266         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
10267         used as an lvalue.
10268
10269         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
10270         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
10271
10272         * sel-sched-ir.c (init_bb): Likewise.
10273         (sel_restore_notes): Likewise.
10274         (move_bb_info): Likewise.
10275         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
10276         (SET_BB_NOTE_LIST): New function.
10277
10278 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10279
10280         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
10281         field will eventually be an rtx_insn *.  To help with transition,
10282         for now, convert from an access macro into a pair of functions:
10283         VINSN_INSN_RTX, returning an rtx_insn *, and...
10284         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
10285         is used as an lvalue.
10286
10287         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
10288         SET_VINSN_INSN_RTX where it's used as an lvalue.
10289         (VINSN_INSN_RTX): New function.
10290         (SET_VINSN_INSN_RTX): New function.
10291
10292 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10293
10294         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
10295         eventually be rtx_insn *, but to help with transition, for now,
10296         convert from an access macro into a pair of functions: DEP_PRO
10297         returning an rtx_insn * and...
10298         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
10299         lvalue, returning an rtx&.
10300         (DEP_CON): Analogous changes to DEP_PRO above.
10301         (SET_DEP_CON): Likewise.
10302
10303         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
10304         an lvalue to SET_DEP_CON.
10305         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
10306         (sd_copy_back_deps): Likewise for DEP_CON.
10307         (DEP_PRO): New function, adding a checked cast for now.
10308         (DEP_CON): Likewise.
10309         (SET_DEP_PRO): New function.
10310         (SET_DEP_CON): Likewise.
10311
10312 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
10313
10314         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
10315         (extra_options): Add i386/cygwin.opt.
10316         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
10317         (CPP_SPEC): Accept -pthread.
10318         (LINK_SPEC): Ditto.
10319         (GOMP_SELF_SPECS): Update comment.
10320         * config/i386/cygwin.opt: New file for -pthread flag.
10321
10322 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10323
10324         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
10325         * df.h (DF_REF_INSN): Convert from a macro to a function, so
10326         that we can return an rtx_insn *.
10327
10328 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
10329
10330         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
10331         when building executables, not DLLs.  Add --large-address-aware
10332         under the same conditions.
10333         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
10334         when building executables, not DLLs.  Add --large-address-aware
10335         under the same conditions when using -m32.
10336
10337         * config/i386/cygwin-stdint.h: Throughout, make type
10338         definitions dependent on target architecture, not host.
10339
10340 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10341
10342         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
10343         the return type from rtx to rtx_insn *,  which will enable various
10344         conversions in followup patches.  For now this is is done by a
10345         checked cast.
10346         (NEXT_INSN): Likewise.
10347         (SET_PREV_INSN): Convert to an inline function.  This is intended
10348         for use as an lvalue, and so returns an rtx& to allow in-place
10349         modification.
10350         (SET_NEXT_INSN): Likewise.
10351
10352 2014-07-08  Mark Wielaard  <mjw@redhat.com>
10353
10354         PR debug/59051
10355         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
10356
10357 2014-08-19  Marek Polacek  <polacek@redhat.com>
10358
10359         PR c/61271
10360         * cgraphunit.c (handle_alias_pairs): Fix condition.
10361
10362 2014-08-19  Richard Biener  <rguenther@suse.de>
10363
10364         * gimple-fold.c (fold_gimple_assign): Properly build a
10365         null-pointer constant when devirtualizing addresses.
10366
10367 2014-07-07  Mark Wielaard  <mjw@redhat.com>
10368
10369         * dwarf2out.c (decl_quals): New function.
10370         (modified_type_die): Take one cv_quals argument instead of two,
10371         one for const and one for volatile.
10372         (add_type_attribute): Likewise.
10373         (generic_parameter_die): Call add_type_attribute with one modifier
10374         argument.
10375         (base_type_for_mode): Likewise.
10376         (add_bounds_info): Likewise.
10377         (add_subscript_info): Likewise.
10378         (gen_array_type_die): Likewise.
10379         (gen_descr_array_type_die): Likewise.
10380         (gen_entry_point_die): Likewise.
10381         (gen_enumeration_type_die): Likewise.
10382         (gen_formal_parameter_die): Likewise.
10383         (gen_subprogram_die): Likewise.
10384         (gen_variable_die): Likewise.
10385         (gen_const_die): Likewise.
10386         (gen_field_die): Likewise.
10387         (gen_pointer_type_die): Likewise.
10388         (gen_reference_type_die): Likewise.
10389         (gen_ptr_to_mbr_type_die): Likewise.
10390         (gen_inheritance_die): Likewise.
10391         (gen_subroutine_type_die): Likewise.
10392         (gen_typedef_die): Likewise.
10393         (force_type_die): Likewise.
10394
10395 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10396
10397         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
10398         if unset.
10399         * configure: Regenerate.
10400
10401 2014-08-19  Richard Biener  <rguenther@suse.de>
10402
10403         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
10404         DECL_EXTERNALs in BLOCKs as non-references.
10405         * tree-streamer-out.c (streamer_write_chain): Likewise.
10406
10407 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10408             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10409             Anna Tikhonova  <anna.tikhonova@intel.com>
10410             Ilya Tocar  <ilya.tocar@intel.com>
10411             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10412             Ilya Verbin  <ilya.verbin@intel.com>
10413             Kirill Yukhin  <kirill.yukhin@intel.com>
10414             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10415
10416         * config/i386/sse.md
10417         (define_mode_iterator VI48_AVX512F): Delete.
10418         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
10419         (define_mode_iterator VI2_AVX512VL): Ditto.
10420         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
10421         Delete.
10422         (define_insn
10423         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
10424         New.
10425         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
10426         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
10427         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10428         with VI48_AVX512F_AVX512VL): New.
10429         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10430         with VI2_AVX512VL): Ditto.
10431
10432 2014-08-19  Marek Polacek  <polacek@redhat.com>
10433
10434         * doc/invoke.texi: Document -Wc99-c11-compat.
10435
10436 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10437
10438         * rtl.h (PREV_INSN): Split macro in two: the existing one,
10439         for rvalues, and...
10440         (SET_PREV_INSN): New macro, for use as an lvalue.
10441         (NEXT_INSN, SET_NEXT_INSN): Likewise.
10442
10443         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
10444         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
10445         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10446         (fixup_abnormal_edges): Likewise.
10447         (unlink_insn_chain): Likewise.
10448         (fixup_reorder_chain): Likewise.
10449         (cfg_layout_delete_block): Likewise.
10450         (cfg_layout_merge_blocks): Likewise.
10451         * combine.c (update_cfg_for_uncondjump): Likewise.
10452         * emit-rtl.c (link_insn_into_chain): Likewise.
10453         (remove_insn): Likewise.
10454         (delete_insns_since): Likewise.
10455         (reorder_insns_nobb): Likewise.
10456         (emit_insn_after_1): Likewise.
10457         * final.c (rest_of_clean_state): Likewise.
10458         (final_scan_insn): Likewise.
10459         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
10460         * haifa-sched.c (concat_note_lists): Likewise.
10461         (remove_notes): Likewise.
10462         (restore_other_notes): Likewise.
10463         (move_insn): Likewise.
10464         (unlink_bb_notes): Likewise.
10465         (restore_bb_notes): Likewise.
10466         * jump.c (delete_for_peephole): Likewise.
10467         * optabs.c (emit_libcall_block_1): Likewise.
10468         * reorg.c (emit_delay_sequence): Likewise.
10469         (fill_simple_delay_slots): Likewise.
10470         * sel-sched-ir.c (sel_move_insn): Likewise.
10471         (sel_remove_insn): Likewise.
10472         (get_bb_note_from_pool): Likewise.
10473         * sel-sched.c (move_nop_to_previous_block): Likewise.
10474
10475         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
10476         * config/c6x/c6x.c (gen_one_bundle): Likewise.
10477         (c6x_gen_bundles): Likewise.
10478         (hwloop_optimize): Likewise.
10479         * config/frv/frv.c (frv_function_prologue): Likewise.
10480         (frv_register_nop): Likewise.
10481         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10482         (ia64_reorg): Likewise.
10483         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10484         (mep_make_bundle): Likewise.
10485         (mep_bundle_insns): Likewise.
10486         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10487         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10488         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10489
10490 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10491
10492         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
10493         return type from rtx to rtx_insn *.
10494         (BB_END): Likewise.
10495         (BB_HEADER): Likewise.
10496         (BB_FOOTER): Likewise.
10497         (SET_BB_HEAD): Convert to a function.
10498         (SET_BB_END): Likewise.
10499         (SET_BB_HEADER): Likewise.
10500         (SET_BB_FOOTER): Likewise.
10501
10502         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10503         Strengthen the return type from rtx to rtx_insn *.  For now, this
10504         is done by adding a checked cast, but this will eventually
10505         become a field lookup.
10506         (BB_END): Likewise.
10507         (BB_HEADER): Likewise.
10508         (BB_FOOTER): Likewise.
10509         (SET_BB_HEAD): New function, from macro of same name.  This is
10510         intended for use as an lvalue, and so returns an rtx& to allow
10511         in-place modification.
10512         (SET_BB_END): Likewise.
10513         (SET_BB_HEADER): Likewise.
10514         (SET_BB_FOOTER): Likewise.
10515
10516 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10517
10518         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10519         for rvalues, and...
10520         (SET_BB_HEAD): New macro, for use as a lvalue.
10521         (BB_END, SET_BB_END): Likewise.
10522         (BB_HEADER, SET_BB_HEADER): Likewise.
10523         (BB_FOOTER, SET_BB_FOOTER): Likewise.
10524
10525         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10526         of BB_* macros into SET_BB_* macros.
10527         (fix_crossing_unconditional_branches): Likewise.
10528         * caller-save.c (save_call_clobbered_regs): Likewise.
10529         (insert_one_insn): Likewise.
10530         * cfgbuild.c (find_bb_boundaries): Likewise.
10531         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10532         (outgoing_edges_match): Likewise.
10533         (try_optimize_cfg): Likewise.
10534         * cfgexpand.c (expand_gimple_cond): Likewise.
10535         (expand_gimple_tailcall): Likewise.
10536         (expand_gimple_basic_block): Likewise.
10537         (construct_exit_block): Likewise.
10538         * cfgrtl.c (delete_insn): Likewise.
10539         (create_basic_block_structure): Likewise.
10540         (rtl_delete_block): Likewise.
10541         (rtl_split_block): Likewise.
10542         (emit_nop_for_unique_locus_between): Likewise.
10543         (rtl_merge_blocks): Likewise.
10544         (block_label): Likewise.
10545         (try_redirect_by_replacing_jump): Likewise.
10546         (emit_barrier_after_bb): Likewise.
10547         (fixup_abnormal_edges): Likewise.
10548         (record_effective_endpoints): Likewise.
10549         (relink_block_chain): Likewise.
10550         (fixup_reorder_chain): Likewise.
10551         (fixup_fallthru_exit_predecessor): Likewise.
10552         (cfg_layout_duplicate_bb): Likewise.
10553         (cfg_layout_split_block): Likewise.
10554         (cfg_layout_delete_block): Likewise.
10555         (cfg_layout_merge_blocks): Likewise.
10556         * combine.c (update_cfg_for_uncondjump): Likewise.
10557         * emit-rtl.c (add_insn_after): Likewise.
10558         (remove_insn): Likewise.
10559         (reorder_insns): Likewise.
10560         (emit_insn_after_1): Likewise.
10561         * haifa-sched.c (get_ebb_head_tail): Likewise.
10562         (restore_other_notes): Likewise.
10563         (move_insn): Likewise.
10564         (sched_extend_bb): Likewise.
10565         (fix_jump_move): Likewise.
10566         * ifcvt.c (noce_process_if_block): Likewise.
10567         (dead_or_predicable): Likewise.
10568         * ira.c (update_equiv_regs): Likewise.
10569         * reg-stack.c (change_stack): Likewise.
10570         * sel-sched-ir.c (sel_move_insn): Likewise.
10571         * sel-sched.c (move_nop_to_previous_block): Likewise.
10572
10573         * config/c6x/c6x.c (hwloop_optimize): Likewise.
10574         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10575
10576 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10577
10578         * rtl.h (for_each_rtx_in_insn): New function.
10579         * rtlanal.c (for_each_rtx_in_insn): Likewise.
10580
10581 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10582
10583         * coretypes.h (class rtx_insn): Add forward declaration.
10584
10585         * rtl.h: Include is-a.h.
10586         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10587         workaround to ensure gengtype knows inheritance is occurring,
10588         whilst continuing to use the pre-existing special-casing for
10589         rtx_def.
10590         (class rtx_insn): New subclass of rtx_def, adding the
10591         invariant that we're dealing with something we can sanely use
10592         INSN_UID, NEXT_INSN, PREV_INSN on.
10593         (is_a_helper <rtx_insn *>::test): New.
10594         (is_a_helper <const rtx_insn *>::test): New.
10595
10596 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
10597
10598         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10599
10600 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10601
10602         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10603         comdats as extern.
10604
10605 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10606
10607         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10608         to BUILT_IN_UNREACHABLE.
10609
10610 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
10611
10612         PR target/62011
10613         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10614         New tune flag.
10615         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10616         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10617         (ffs<mode>2): Do not expand with tzcnt for
10618         TARGET_AVOID_FALSE_DEP_FOR_BMI.
10619         (ffssi2_no_cmove): Ditto.
10620         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10621         (ctz<mode>2): New expander.
10622         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10623         (*ctz<mode>2_falsedep): New insn.
10624         (*ctz<mode>2): Rename from ctz<mode>2.
10625         (clz<mode>2_lzcnt): New expander.
10626         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10627         (*clz<mode>2_lzcnt_falsedep): New insn.
10628         (*clz<mode>2): Rename from ctz<mode>2.
10629         (popcount<mode>2): New expander.
10630         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10631         (*popcount<mode>2_falsedep): New insn.
10632         (*popcount<mode>2): Rename from ctz<mode>2.
10633         (*popcount<mode>2_cmp): Remove.
10634         (*popcountsi2_cmp_zext): Ditto.
10635
10636 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
10637
10638         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10639         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10640         * config/microblaze/microblaze.h
10641         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10642
10643 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
10644
10645         PR other/62168
10646         * configure.ac: Set install_gold_as_default to no for
10647          --enable-gold=no.
10648          * configure: Regenerated.
10649
10650 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
10651
10652         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10653         * config.in: Add undef of HAVE_isl.
10654         * configure: Regenerate.
10655         * configure.ac: Add definition of HAVE_isl.
10656         * graphite-blocking.c: Add checking of HAVE_isl.
10657         * graphite-dependences.c: Likewise.
10658         * graphite-interchange.c: Likewise.
10659         * graphite-isl-ast-to-gimple.c: Likewise.
10660         * graphite-optimize-isl.c: Likewise.
10661         * graphite-poly.c: Likewise.
10662         * graphite-scop-detection.c: Likewise.
10663         * graphite-sese-to-poly.c: Likewise.
10664         * graphite.c: Likewise.
10665         * toplev.c: Replace the checking of HAVE_cloog with the checking
10666         of HAVE_isl.
10667
10668 2014-08-18  Richard Biener  <rguenther@suse.de>
10669
10670         PR tree-optimization/62090
10671         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10672         (fold_builtin_3): Do not fold snprintf.
10673         (fold_builtin_4): Likewise.
10674         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10675         moved from builtins.c.
10676         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10677         (gimple_fold_builtin): Do not fold sprintf here.
10678
10679 2014-08-18  Richard Biener  <rguenther@suse.de>
10680
10681         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10682         code to ...
10683         (maybe_canonicalize_mem_ref_addr): ... this function.
10684         (fold_stmt_1): Apply it here before all simplification.
10685
10686 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
10687
10688         PR ipa/61800
10689         * cgraph.h (cgraph_node::create_indirect_edge): Add
10690         compute_indirect_info param.
10691         * cgraph.c (cgraph_node::create_indirect_edge): Compute
10692         indirect_info only when it is required.
10693         * cgraphclones.c (cgraph_clone_edge): Do not recompute
10694         indirect_info fore cloned indirect edge.
10695
10696 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10697             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10698             Anna Tikhonova  <anna.tikhonova@intel.com>
10699             Ilya Tocar  <ilya.tocar@intel.com>
10700             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10701             Ilya Verbin  <ilya.verbin@intel.com>
10702             Kirill Yukhin  <kirill.yukhin@intel.com>
10703             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10704
10705         * config/i386/sse.md
10706         (define_mode_iterator VI8_AVX2_AVX512BW): New.
10707         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10708
10709 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10710             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10711             Anna Tikhonova  <anna.tikhonova@intel.com>
10712             Ilya Tocar  <ilya.tocar@intel.com>
10713             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10714             Ilya Verbin  <ilya.verbin@intel.com>
10715             Kirill Yukhin  <kirill.yukhin@intel.com>
10716             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10717
10718         * config/i386/sse.md
10719         (define_mode_iterator VF1_AVX512VL): New.
10720         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10721         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10722         New.
10723
10724 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10725             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10726             Anna Tikhonova  <anna.tikhonova@intel.com>
10727             Ilya Tocar  <ilya.tocar@intel.com>
10728             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10729             Ilya Verbin  <ilya.verbin@intel.com>
10730             Kirill Yukhin  <kirill.yukhin@intel.com>
10731             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10732
10733         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10734         * config/i386/i386.md
10735         (define_code_iterator any_float): New.
10736         (define_code_attr floatsuffix): New.
10737         * config/i386/sse.md
10738         (define_mode_iterator VF1_128_256VL): New.
10739         (define_mode_iterator VF2_512_256VL): New.
10740         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10741         TARGET check.
10742         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10743         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10744         New.
10745         (define_mode_attr qq2pssuff): New.
10746         (define_mode_attr sselongvecmode): New.
10747         (define_mode_attr sselongvecmodelower): New.
10748         (define_mode_attr sseintvecmode3): New.
10749         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10750         New.
10751         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10752         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10753         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10754         (define_insn "ufloatv2siv2df2<mask_name>"): New.
10755
10756 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10757             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10758             Anna Tikhonova  <anna.tikhonova@intel.com>
10759             Ilya Tocar  <ilya.tocar@intel.com>
10760             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10761             Ilya Verbin  <ilya.verbin@intel.com>
10762             Kirill Yukhin  <kirill.yukhin@intel.com>
10763             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10764
10765         * config/i386/sse.md
10766         (define_mode_iterator VF2_AVX512VL): New.
10767         (define_mode_attr sseintvecmode2): New.
10768         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10769         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10770         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10771         (define_insn
10772         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10773         Ditto.
10774         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10775         Ditto.
10776         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10777         Ditto.
10778
10779 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10780             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10781             Anna Tikhonova  <anna.tikhonova@intel.com>
10782             Ilya Tocar  <ilya.tocar@intel.com>
10783             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10784             Ilya Verbin  <ilya.verbin@intel.com>
10785             Kirill Yukhin  <kirill.yukhin@intel.com>
10786             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10787
10788         * config/i386/i386.md
10789         (define_insn "*movoi_internal_avx"): Add evex version.
10790         (define_insn "*movti_internal"): Ditto.
10791
10792 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10793             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10794             Anna Tikhonova  <anna.tikhonova@intel.com>
10795             Ilya Tocar  <ilya.tocar@intel.com>
10796             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10797             Ilya Verbin  <ilya.verbin@intel.com>
10798             Kirill Yukhin  <kirill.yukhin@intel.com>
10799             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10800
10801         * config/i386/i386.md
10802         (define_attr "isa"): Add avx512dq, noavx512dq.
10803         (define_attr "enabled"): Ditto.
10804         * config/i386/sse.md
10805         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10806
10807 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10808             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10809             Anna Tikhonova  <anna.tikhonova@intel.com>
10810             Ilya Tocar  <ilya.tocar@intel.com>
10811             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10812             Ilya Verbin  <ilya.verbin@intel.com>
10813             Kirill Yukhin  <kirill.yukhin@intel.com>
10814             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10815
10816         * config/i386/i386.c
10817         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10818         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10819         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10820         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10821         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10822         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10823         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10824         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10825         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10826         * config/i386/sse.md
10827         (define_mode_iterator VMOVE): Allow V4TI mode.
10828         (define_mode_iterator V_AVX512VL): New.
10829         (define_mode_iterator V): New handling for AVX512VL.
10830         (define_insn "avx512f_load<mode>_mask"): Delete.
10831         (define_insn "<avx512>_load<mode>_mask"): New.
10832         (define_insn "avx512f_store<mode>_mask"): Delete.
10833         (define_insn "<avx512>_store<mode>_mask"): New.
10834
10835
10836 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
10837
10838         PR sanitizer/62089
10839         * asan.c (instrument_derefs): Fix bitfield check.
10840
10841 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10842
10843         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10844         * config/rs6000/htm.md (ttest): Remove clobber.
10845         * config/rs6000/predicates.md (any_mask_operand): New predicate.
10846         (and_operand): Reformat.
10847         (and_2rld_operand): New predicate.
10848         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10849         parameter.
10850         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10851         parameter.  Handle AND directly.
10852         (rs6000_split_logical_di): Remove last parameter.
10853         (rs6000_split_logical): Remove last parameter.  Remove obsolete
10854         comment.
10855         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10856         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10857         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
10858         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10859         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10860         and 5 anonymous splitters):  Delete.
10861         (and<mode>3): New expander.
10862         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10863         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10864         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10865         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10866         (floatdisf2_internal1): Remove clobbers.
10867         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10868         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10869         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10870         (and<mode>3 for BOOL_128): Remove clobber.
10871         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
10872         rs6000_split_logical.
10873         (*bool<mode>3_internal for BOOL_128): Adjust call of
10874         rs6000_split_logical.
10875         (*boolc<mode>3_internal1 for BOOL_128,
10876         *boolc<mode>3_internal2 for BOOL_128,
10877         *boolcc<mode>3_internal1 for BOOL_128,
10878         *boolcc<mode>3_internal2 for BOOL_128,
10879         *eqv<mode>3_internal1 for BOOL_128,
10880         *eqv<mode>3_internal2 for BOOL_128,
10881         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10882         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10883         clobber.
10884         (*vec_reload_and_reg_<mptrsize>): Delete.
10885
10886 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10887
10888         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10889         and split, *boolccsi3_internal3 and split): Delete.
10890         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10891         *boolccdi3_internal3 and split): Delete.
10892         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10893         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
10894
10895 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10896
10897         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10898         and split, *boolcsi3_internal3 and split): Delete.
10899         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10900         *boolcdi3_internal3 and split): Delete.
10901         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10902
10903 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10904
10905         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10906         <'u'>: Also support printing the low-order 16 bits.
10907         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10908         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10909         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10910         *booldi3_internal3 and split): Delete.
10911         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10912         *bool<mode>3_dot2): New.
10913         (two anonymous define_splits for non_logical_cint_operand): Merge.
10914
10915 2014-08-17  Marek Polacek  <polacek@redhat.com>
10916             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10917
10918         PR c/62059
10919         * diagnostic.c (adjust_line): Add gcc_checking_assert.
10920         (diagnostic_show_locus): Don't print caret diagnostic
10921         if a column is larger than the line_width.
10922
10923 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
10924
10925         * common.opt: Make the ISL AST generator to be the main code generator
10926         of Graphite.
10927
10928 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
10929
10930         * wide-int.h (generic_wide_int): Declare as class instead of struct.
10931
10932 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
10933
10934         PR target/61641
10935         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10936         Declare.
10937         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10938         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10939         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10940         Define.
10941         * config/pa/pa.md (begin_brtab): Delete insn.
10942         (end_brtab): Likewise.
10943
10944 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10945
10946         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10947
10948 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
10949
10950         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10951         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10952         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10953         (get_dynamic_type): Remove.
10954         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10955         (clear_speculation): Bring to ipa-deivrt.h
10956         (get_class_context): Rename to ...
10957         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10958         (contains_type_p): Update.
10959         (get_dynamic_type): Rename to ...
10960         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10961         (possible_polymorphic_call_targets): UPdate.
10962         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10963         * ipa-prop.c (ipa_analyze_call_uses): Update.
10964
10965 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
10966
10967         * doc/invoke.texi (SH options): Document missing processor variant
10968         options.  Remove references to Hitachi.  Undocument deprecated mspace
10969         option.
10970
10971 2014-08-15  Jason Merrill  <jason@redhat.com>
10972
10973         * tree.c (type_hash_canon): Uncomment assert.
10974
10975 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10976
10977         * input.h (in_system_header_at): Add comment.
10978
10979 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10980
10981         PR fortran/44054
10982         * diagnostic.c (build_message_string): Make it extern.
10983         * diagnostic.h (build_message_string): Make it extern.
10984
10985 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
10986
10987         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10988         load/store from/to non-floating class pseudo.
10989
10990 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10991
10992         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10993
10994 2014-08-15  Richard Biener  <rguenther@suse.de>
10995
10996         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10997         (get_constraint_for_ssa_var): Remove dead code.
10998         (get_constraint_for_1): Adjust.
10999         (find_what_var_points_to): Likewise.
11000         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
11001
11002 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
11003
11004         PR target/61878
11005         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
11006         (_mm512_mask_cmpge_epu32_mask): Ditto.
11007         (_mm512_cmpge_epu32_mask): Ditto.
11008         (_mm512_mask_cmpge_epi64_mask): Ditto.
11009         (_mm512_cmpge_epi64_mask): Ditto.
11010         (_mm512_mask_cmpge_epu64_mask): Ditto.
11011         (_mm512_cmpge_epu64_mask): Ditto.
11012         (_mm512_mask_cmple_epi32_mask): Ditto.
11013         (_mm512_cmple_epi32_mask): Ditto.
11014         (_mm512_mask_cmple_epu32_mask): Ditto.
11015         (_mm512_cmple_epu32_mask): Ditto.
11016         (_mm512_mask_cmple_epi64_mask): Ditto.
11017         (_mm512_cmple_epi64_mask): Ditto.
11018         (_mm512_mask_cmple_epu64_mask): Ditto.
11019         (_mm512_cmple_epu64_mask): Ditto.
11020         (_mm512_mask_cmplt_epi32_mask): Ditto.
11021         (_mm512_cmplt_epi32_mask): Ditto.
11022         (_mm512_mask_cmplt_epu32_mask): Ditto.
11023         (_mm512_cmplt_epu32_mask): Ditto.
11024         (_mm512_mask_cmplt_epi64_mask): Ditto.
11025         (_mm512_cmplt_epi64_mask): Ditto.
11026         (_mm512_mask_cmplt_epu64_mask): Ditto.
11027         (_mm512_cmplt_epu64_mask): Ditto.
11028         (_mm512_mask_cmpneq_epi32_mask): Ditto.
11029         (_mm512_mask_cmpneq_epu32_mask): Ditto.
11030         (_mm512_cmpneq_epu32_mask): Ditto.
11031         (_mm512_mask_cmpneq_epi64_mask): Ditto.
11032         (_mm512_cmpneq_epi64_mask): Ditto.
11033         (_mm512_mask_cmpneq_epu64_mask): Ditto.
11034         (_mm512_cmpneq_epu64_mask): Ditto.
11035         (_mm512_castpd_ps): Ditto.
11036         (_mm512_castpd_si512): Ditto.
11037         (_mm512_castps_pd): Ditto.
11038         (_mm512_castps_si512): Ditto.
11039         (_mm512_castsi512_ps): Ditto.
11040         (_mm512_castsi512_pd): Ditto.
11041         (_mm512_castpd512_pd128): Ditto.
11042         (_mm512_castps512_ps128): Ditto.
11043         (_mm512_castsi512_si128): Ditto.
11044         (_mm512_castpd512_pd256): Ditto.
11045         (_mm512_castps512_ps256): Ditto.
11046         (_mm512_castsi512_si256): Ditto.
11047         (_mm512_castpd128_pd512): Ditto.
11048         (_mm512_castps128_ps512): Ditto.
11049         (_mm512_castsi128_si512): Ditto.
11050         (_mm512_castpd256_pd512): Ditto.
11051         (_mm512_castps256_ps512): Ditto.
11052         (_mm512_castsi256_si512): Ditto.
11053         (_mm512_cmpeq_epu32_mask): Ditto.
11054         (_mm512_mask_cmpeq_epu32_mask): Ditto.
11055         (_mm512_mask_cmpeq_epu64_mask): Ditto.
11056         (_mm512_cmpeq_epu64_mask): Ditto.
11057         (_mm512_cmpgt_epu32_mask): Ditto.
11058         (_mm512_mask_cmpgt_epu32_mask): Ditto.
11059         (_mm512_mask_cmpgt_epu64_mask): Ditto.
11060         (_mm512_cmpgt_epu64_mask): Ditto.
11061         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
11062         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
11063         * config/i386/i386.c (enum ix86_builtins): Add
11064         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
11065         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
11066         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
11067         (bdesc_args): Add __builtin_ia32_si512_256si,
11068         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
11069         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
11070         __builtin_ia32_pd512_pd.
11071         (ix86_expand_args_builtin): Handle new FTYPEs.
11072         * config/i386/sse.md (castmode): Add 512-bit modes.
11073         (AVX512MODE2P): New.
11074         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
11075         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
11076
11077 2014-08-15  Richard Biener  <rguenther@suse.de>
11078
11079         * fold-const.c (tree_swap_operands_p): Put all constants
11080         last, also strip sign-changing NOPs when considering further
11081         canonicalization.  Canonicalize also when optimizing for size.
11082
11083 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11084
11085         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
11086         one_match > zero_match case to just before simple_sequence.
11087
11088 2014-08-15  Richard Biener  <rguenther@suse.de>
11089
11090         * data-streamer.h (streamer_string_index, string_for_index):
11091         Remove.
11092         * data-streamer-out.c (streamer_string_index): Make static.
11093         * data-streamer-in.c (string_for_index): Likewise.
11094         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
11095         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
11096
11097 2014-08-15  Richard Biener  <rguenther@suse.de>
11098
11099         PR tree-optimization/62031
11100         * tree-data-ref.c (dr_analyze_indices): Do not set
11101         DR_UNCONSTRAINED_BASE.
11102         (dr_may_alias_p): All indirect accesses have to go the
11103         formerly DR_UNCONSTRAINED_BASE path.
11104         * tree-data-ref.h (struct indices): Remove
11105         unconstrained_base member.
11106         (DR_UNCONSTRAINED_BASE): Remove.
11107
11108 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
11109
11110         PR middle-end/62092
11111         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
11112         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
11113         in OMP_CLAUSE_MAP in some outer target region.
11114
11115 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
11116
11117         * tree-ssa-loop-ivopts.c (ivopts_data): New field
11118         name_expansion_cache.
11119         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
11120         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
11121         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
11122         (difference_cannot_overflow_p): New parameter.  Use affine
11123         expansion for equality check.
11124         (iv_elimination_compare_lt): Pass new argument.
11125
11126 2014-08-14  DJ Delorie  <dj@redhat.com>
11127
11128         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
11129         variables to the accumulator.
11130
11131         * config/rl78/predicates.md (rl78_near_mem_operand): New.
11132         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
11133         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
11134         with far-far moves.
11135
11136         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
11137         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
11138         (umulqihi3_virt): Likewise.
11139         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
11140         (umulqihi3_real): Likewise.
11141
11142         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
11143
11144 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
11145
11146         PR tree-optimization/62091
11147         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
11148         function_entry_reached.
11149         (walk_aliased_vdefs): Clear it here.
11150         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
11151
11152 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
11153
11154         * ipa-utils.h (compare_virtual_tables): Declare.
11155         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
11156
11157 2014-08-14  Marek Polacek  <polacek@redhat.com>
11158
11159         DR 458
11160         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
11161         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
11162
11163 2014-08-14  Tom de Vries  <tom@codesourcery.com>
11164
11165         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
11166
11167 2014-08-14  Tom de Vries  <tom@codesourcery.com>
11168
11169         PR rtl-optimization/62004
11170         PR rtl-optimization/62030
11171         * ifcvt.c (rtx_interchangeable_p): New function.
11172         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
11173         * emit-rtl.h (mem_attrs_eq_p): Declare.
11174
11175 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
11176
11177         * graphite-scop-detection.c:
11178         Add inclusion of cp-tree.h.
11179         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
11180         in case they are pointers to object types
11181
11182 2014-08-14  Richard Biener  <rguenther@suse.de>
11183
11184         * BASE-VER: Change to 5.0.0
11185
11186 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11187             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11188             Anna Tikhonova  <anna.tikhonova@intel.com>
11189             Ilya Tocar  <ilya.tocar@intel.com>
11190             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11191             Ilya Verbin  <ilya.verbin@intel.com>
11192             Kirill Yukhin  <kirill.yukhin@intel.com>
11193             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11194
11195         * config/i386/sse.md (define_mode_attr avx512): New.
11196         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
11197         V4DI modes.
11198         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
11199         (define_mode_attr ssse3_avx2): Ditto.
11200         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
11201         (define_mode_attr avx2_avx512bw): New.
11202         (define_mode_attr ssedoublemodelower): New.
11203         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
11204         V32HI, V64QI modes.
11205         (define_mode_attr ssebytemode): Allow V8DI modes.
11206         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
11207         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
11208         (define_mode_attr ssePSmode2): New.
11209         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
11210         V16HI, V32HI modes.
11211         (define_mode_attr dbpsadbwmode): New.
11212         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
11213         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
11214         (vi8_sse4_1_avx2_avx512): New.
11215         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
11216         mode attribute.
11217         (define_mode_attr blendbits): Move before its immediate use.
11218
11219 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11220             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11221             Anna Tikhonova  <anna.tikhonova@intel.com>
11222             Ilya Tocar  <ilya.tocar@intel.com>
11223             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11224             Ilya Verbin  <ilya.verbin@intel.com>
11225             Kirill Yukhin  <kirill.yukhin@intel.com>
11226             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11227
11228         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
11229         * config/i386/subst.md
11230         (define_mode_iterator SUBST_V): Update.
11231         (define_mode_iterator SUBST_A): Ditto.
11232         (define_subst_attr "mask_operand7"): New.
11233         (define_subst_attr "mask_operand10"): New.
11234         (define_subst_attr "mask_operand_arg34") : New.
11235         (define_subst_attr "mask_expand_op3"): New.
11236         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
11237         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
11238         (define_subst_attr "mask_avx512vl_condition"): New.
11239         (define_subst_attr "round_mask_operand4"): Ditto.
11240         (define_subst_attr "round_mask_scalar_op3"): Delete.
11241         (define_subst_attr "round_mask_op4"): New.
11242         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
11243         V16SImode.
11244         (define_subst_attr "round_modev8sf_condition"): New.
11245         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
11246         <MODE>mode.
11247         (define_subst_attr "round_saeonly_mask_operand4"): New.
11248         (define_subst_attr "round_saeonly_mask_op4"): New.
11249         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
11250         V8DImode, V16SImode.
11251         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
11252         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
11253         (define_subst_attr "mask_expand4_args"): New.
11254         (define_subst "mask_expand4"): New.
11255
11256 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11257             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11258             Anna Tikhonova  <anna.tikhonova@intel.com>
11259             Ilya Tocar  <ilya.tocar@intel.com>
11260             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11261             Ilya Verbin  <ilya.verbin@intel.com>
11262             Kirill Yukhin  <kirill.yukhin@intel.com>
11263             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11264
11265         * config/i386/i386.md
11266         (define_attr "isa"): Add avx512bw,noavx512bw.
11267         (define_attr "enabled"): Ditto.
11268         (define_split): Add 32/64-bit mask logic.
11269         (define_insn "*k<logic>qi"): New.
11270         (define_insn "*k<logic>hi"): New.
11271         (define_insn "*anddi_1"): Add mask version.
11272         (define_insn "*andsi_1"): Ditto.
11273         (define_insn "*<code><mode>_1"): Ditto.
11274         (define_insn "*<code>hi_1"): Ditto.
11275         (define_insn "kxnor<mode>"): New.
11276         (define_insn "kunpcksi"): New.
11277         (define_insn "kunpckdi"): New.
11278         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
11279         (define_insn "*one_cmplhi2_1"): Ditto.
11280
11281 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11282             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11283             Anna Tikhonova  <anna.tikhonova@intel.com>
11284             Ilya Tocar  <ilya.tocar@intel.com>
11285             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11286             Ilya Verbin  <ilya.verbin@intel.com>
11287             Kirill Yukhin  <kirill.yukhin@intel.com>
11288             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11289
11290         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
11291         V32HImode.
11292
11293 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11294             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11295             Anna Tikhonova  <anna.tikhonova@intel.com>
11296             Ilya Tocar  <ilya.tocar@intel.com>
11297             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11298             Ilya Verbin  <ilya.verbin@intel.com>
11299             Kirill Yukhin  <kirill.yukhin@intel.com>
11300             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11301
11302         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
11303         registers.
11304         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
11305         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
11306         xmm/ymm16+ when availble.
11307         * config/i386/i386.h
11308         (HARD_REGNO_NREGS): Add mask regs.
11309         (VALID_AVX512F_REG_MODE): Ditto.
11310         (VALID_AVX512F_REG_MODE) : Define.
11311         (VALID_MASK_AVX512BW_MODE): Ditto.
11312         (reg_class) (MASK_REG_P(X)): Define.
11313         * config/i386/i386.md: Do not split long moves with mask register,
11314         use kmovb if avx512bw is availible.
11315         (movdi_internal): Handle mask registers.
11316
11317 2014-08-14  Richard Biener  <rguenther@suse.de>
11318
11319         PR tree-optimization/62081
11320         * tree-ssa-loop.c (pass_fix_loops): New pass.
11321         (pass_tree_loop::gate):  Do not fixup loops here.
11322         * tree-pass.h (make_pass_fix_loops): Declare.
11323         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
11324
11325 2014-08-14  Richard Biener  <rguenther@suse.de>
11326
11327         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
11328         (type_hash_canon): ... this and avoid 2nd lookup for the add.
11329
11330 2014-08-14  Richard Biener  <rguenther@suse.de>
11331
11332         PR tree-optimization/62090
11333         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
11334         (fold_builtin_2): Do not fold sprintf.
11335         (fold_builtin_3): Likewise.
11336         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
11337         moved from builtins.c.
11338         (gimple_fold_builtin): Fold sprintf.
11339
11340 2014-08-14  Richard Biener  <rguenther@suse.de>
11341
11342         PR rtl-optimization/62079
11343         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
11344         run cleanup_cfg.
11345
11346 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
11347
11348         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
11349         current_function_decl.
11350
11351 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
11352
11353         * cgraph.c (cgraph_node::function_symbol): Fix wrong
11354         cgraph_function_node to cgraph_node::function_symbol
11355         refactoring.
11356
11357 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11358
11359         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
11360         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
11361
11362 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
11363
11364         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
11365         warning.
11366
11367 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
11368
11369         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
11370         generator.
11371
11372 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
11373
11374         PR target/62025
11375         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
11376         any registers that are used in mem_insn.
11377
11378 2014-08-12  Steve Ellcey  <sellcey@mips.com>
11379
11380         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
11381
11382 2014-08-12  Steve Ellcey  <sellcey@mips.com>
11383
11384         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
11385         (MULTILIB_DIRNAMES): Ditto.
11386         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
11387         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
11388         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
11389         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
11390         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
11391         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
11392
11393 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11394
11395         PR target/61413
11396         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
11397         of __ARM_SIZEOF_WCHAR_T.
11398
11399 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11400
11401         PR target/62098
11402         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
11403         Remove unnecessary attributes.
11404
11405 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
11406
11407         * internal-fn.c (init_internal_fns): Fix off-by-one.
11408
11409 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11410             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11411             Anna Tikhonova  <anna.tikhonova@intel.com>
11412             Ilya Tocar  <ilya.tocar@intel.com>
11413             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11414             Ilya Verbin  <ilya.verbin@intel.com>
11415             Kirill Yukhin  <kirill.yukhin@intel.com>
11416             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11417
11418         * config/i386/i386.c (standard_sse_constant_opcode): Use
11419         vpxord/vpternlog if avx512 is availible.
11420
11421 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11422
11423         PR middle-end/62103
11424         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
11425         bitfields, that is when size doesn't match the size of type or the
11426         size of the constructor.
11427
11428 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11429
11430         * config/rs6000/constraints.md (wh constraint): New constraint,
11431         for FP registers if direct move is available.
11432         (wi constraint): New constraint, for VSX/FP registers that can
11433         handle 64-bit integers.
11434         (wj constraint): New constraint for VSX/FP registers that can
11435         handle 64-bit integers for direct moves.
11436         (wk constraint): New constraint for VSX/FP registers that can
11437         handle 64-bit doubles for direct moves.
11438         (wy constraint): Make documentation match implementation.
11439
11440         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
11441         scalar_in_vmx_p field to simplify tests of whether SFmode or
11442         DFmode can go in the Altivec registers.
11443         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
11444         (rs6000_setup_reg_addr_masks): Likewise.
11445         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
11446         field, and wh/wi/wj/wk constraints.
11447         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
11448         the wh/wi/wj/wk constraints.
11449         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
11450         upper registers, prefer VSX registers unless the operation is a
11451         memory operation with REG+OFFSET addressing.
11452
11453         * config/rs6000/vsx.md (VSr mode attribute): Add support for
11454         DImode.  Change SFmode to use ww constraint instead of d to allow
11455         SF registers in the upper registers.
11456         (VSr2): Likewise.
11457         (VSr3): Likewise.
11458         (VSr5): Fix thinko in comment.
11459         (VSa): New mode attribute that is an alternative to wa, that
11460         returns the VSX register class that a mode can go in, but may not
11461         be the preferred register class.
11462         (VS_64dm): New mode attribute for appropriate register classes for
11463         referencing 64-bit elements of vectors for direct moves and normal
11464         moves.
11465         (VS_64reg): Likewise.
11466         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
11467         register allocator to only registers the data type can handle.
11468         (vsx_le_perm_load_<mode>): Likewise.
11469         (vsx_le_perm_store_<mode>): Likewise.
11470         (vsx_xxpermdi2_le_<mode>): Likewise.
11471         (vsx_xxpermdi4_le_<mode>): Likewise.
11472         (vsx_lxvd2x2_le_<mode>): Likewise.
11473         (vsx_lxvd2x4_le_<mode>): Likewise.
11474         (vsx_stxvd2x2_le_<mode>): Likewise.
11475         (vsx_add<mode>3): Likewise.
11476         (vsx_sub<mode>3): Likewise.
11477         (vsx_mul<mode>3): Likewise.
11478         (vsx_div<mode>3): Likewise.
11479         (vsx_tdiv<mode>3_internal): Likewise.
11480         (vsx_fre<mode>2): Likewise.
11481         (vsx_neg<mode>2): Likewise.
11482         (vsx_abs<mode>2): Likewise.
11483         (vsx_nabs<mode>2): Likewise.
11484         (vsx_smax<mode>3): Likewise.
11485         (vsx_smin<mode>3): Likewise.
11486         (vsx_sqrt<mode>2): Likewise.
11487         (vsx_rsqrte<mode>2): Likewise.
11488         (vsx_tsqrt<mode>2_internal): Likewise.
11489         (vsx_fms<mode>4): Likewise.
11490         (vsx_nfma<mode>4): Likewise.
11491         (vsx_eq<mode>): Likewise.
11492         (vsx_gt<mode>): Likewise.
11493         (vsx_ge<mode>): Likewise.
11494         (vsx_eq<mode>_p): Likewise.
11495         (vsx_gt<mode>_p): Likewise.
11496         (vsx_ge<mode>_p): Likewise.
11497         (vsx_xxsel<mode>): Likewise.
11498         (vsx_xxsel<mode>_uns): Likewise.
11499         (vsx_copysign<mode>3): Likewise.
11500         (vsx_float<VSi><mode>2): Likewise.
11501         (vsx_floatuns<VSi><mode>2): Likewise.
11502         (vsx_fix_trunc<mode><VSi>2): Likewise.
11503         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11504         (vsx_x<VSv>r<VSs>i): Likewise.
11505         (vsx_x<VSv>r<VSs>ic): Likewise.
11506         (vsx_btrunc<mode>2): Likewise.
11507         (vsx_b2trunc<mode>2): Likewise.
11508         (vsx_floor<mode>2): Likewise.
11509         (vsx_ceil<mode>2): Likewise.
11510         (vsx_<VS_spdp_insn>): Likewise.
11511         (vsx_xscvspdp): Likewise.
11512         (vsx_xvcvspuxds): Likewise.
11513         (vsx_float_fix_<mode>2): Likewise.
11514         (vsx_set_<mode>): Likewise.
11515         (vsx_extract_<mode>_internal1): Likewise.
11516         (vsx_extract_<mode>_internal2): Likewise.
11517         (vsx_extract_<mode>_load): Likewise.
11518         (vsx_extract_<mode>_store): Likewise.
11519         (vsx_splat_<mode>): Likewise.
11520         (vsx_xxspltw_<mode>): Likewise.
11521         (vsx_xxspltw_<mode>_direct): Likewise.
11522         (vsx_xxmrghw_<mode>): Likewise.
11523         (vsx_xxmrglw_<mode>): Likewise.
11524         (vsx_xxsldwi_<mode>): Likewise.
11525         (vsx_xscvdpspn): Tighten constraints to only use register classes
11526         the types use.
11527         (vsx_xscvspdpn): Likewise.
11528         (vsx_xscvdpspn_scalar): Likewise.
11529
11530         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11531         wj, and wk constraints.
11532         (GPR_REG_CLASS_P): New helper macro for register classes targeting
11533         general purpose registers.
11534
11535         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11536         direct moves.
11537         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11538         DImode instead of wm.  Use wk constraint for direct move of DFmode
11539         instead of wm.
11540         (extendsidi2_lfiwax): Likewise.
11541         (lfiwax): Likewise.
11542         (lfiwzx): Likewise.
11543         (movdi_internal64): Likewise.
11544
11545         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11546         wk constraints. Make the wy constraint documentation match them
11547         implementation.
11548
11549 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
11550
11551         Replacement of isl_int by isl_val
11552         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11553         (compute_bounds_for_param): use isl_val instead of isl_int
11554         (compute_bounds_for_loop): likewise
11555         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11556         (build_linearized_memory_access): use isl_val instead of isl_int
11557         (pdr_stride_in_loop): likewise
11558         * graphite-optimize-isl.c:
11559         (getPrevectorMap): use isl_val instead of isl_int
11560         * graphite-poly.c:
11561         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11562         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11563         (extern the_isl_ctx): declare
11564         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11565         (extract_affine_gmp): likewise
11566         (wrap): likewise
11567         (build_loop_iteration_domains): likewise
11568         (add_param_constraints): likewise
11569
11570 2014-08-11  Richard Biener  <rguenther@suse.de>
11571
11572         PR tree-optimization/62075
11573         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11574         handle uses in patterns.
11575
11576 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11577             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11578             Anna Tikhonova  <anna.tikhonova@intel.com>
11579             Ilya Tocar  <ilya.tocar@intel.com>
11580             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11581             Ilya Verbin  <ilya.verbin@intel.com>
11582             Kirill Yukhin  <kirill.yukhin@intel.com>
11583             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11584
11585         * common/config/i386/i386-common.c
11586         (OPTION_MASK_ISA_AVX512VL_SET): Define.
11587         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11588         (ix86_handle_option): Handle OPT_mavx512vl.
11589         * config/i386/cpuid.h (bit_AVX512VL): Define.
11590         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11591         set -mavx512vl accordingly.
11592         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11593         OPTION_MASK_ISA_AVX512VL.
11594         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11595         (ix86_option_override_internal): Define PTA_AVX512VL, handle
11596         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11597         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11598         * config/i386/i386.h (TARGET_AVX512VL): Define.
11599         (TARGET_AVX512VL_P(x)): Ditto.
11600         * config/i386/i386.opt: Add mavx512vl.
11601
11602 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
11603
11604         PR tree-optimization/62073
11605         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11606         a basic block.
11607
11608 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11609             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11610             Anna Tikhonova  <anna.tikhonova@intel.com>
11611             Ilya Tocar  <ilya.tocar@intel.com>
11612             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11613             Ilya Verbin  <ilya.verbin@intel.com>
11614             Kirill Yukhin  <kirill.yukhin@intel.com>
11615             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11616
11617         * common/config/i386/i386-common.c
11618         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11619         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11620         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11621         (ix86_handle_option): Handle OPT_mavx512bw.
11622         * config/i386/cpuid.h (bit_AVX512BW): Define.
11623         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11624         set -mavx512bw accordingly.
11625         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11626         OPTION_MASK_ISA_AVX512BW.
11627         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11628         (ix86_option_override_internal): Define PTA_AVX512BW, handle
11629         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11630         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11631         * config/i386/i386.h (TARGET_AVX512BW): Define.
11632         (TARGET_AVX512BW_P(x)): Ditto.
11633         * config/i386/i386.opt: Add mavx512bw.
11634
11635 2014-08-11  Richard Biener  <rguenther@suse.de>
11636
11637         PR tree-optimization/62070
11638         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11639         Remove SSA checking.
11640
11641 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11642
11643         * asan.c (asan_check_flags): New enum.
11644         (build_check_stmt_with_calls): Removed function.
11645         (build_check_stmt): Split inlining logic to
11646         asan_expand_check_ifn.
11647         (instrument_derefs): Rename parameter.
11648         (instrument_mem_region_access): Rename parameter.
11649         (instrument_strlen_call): Likewise.
11650         (asan_expand_check_ifn): New function.
11651         (asan_instrument): Remove old code.
11652         (pass_sanopt::execute): Change handling of
11653         asan-instrumentation-with-call-threshold.
11654         (asan_clear_shadow): Fix formatting.
11655         (asan_function_start): Likewise.
11656         (asan_emit_stack_protection): Likewise.
11657         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11658         Update description.
11659         * internal-fn.c (expand_ASAN_CHECK): New function.
11660         * internal-fn.def (ASAN_CHECK): New internal function.
11661         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11662         Update description.
11663         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11664         * tree.c: Small comment fix.
11665
11666 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11667
11668         * gimple.c (gimple_call_fnspec): Support internal functions.
11669         (gimple_call_return_flags): Use const.
11670         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11671         * internal-fn.def: Add fnspec information.
11672         * internal-fn.h (internal_fn_fnspec): New function.
11673         (init_internal_fns): Declare new function.
11674         * internal-fn.c (internal_fn_fnspec_array): New global variable.
11675         (init_internal_fns): New function.
11676         * tree-core.h: Update macro call.
11677         * tree.c (build_common_builtin_nodes): Initialize internal fns.
11678
11679 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
11680
11681         * lto-streamer.h (struct output_block::symbol): Change from
11682         struct symtab_node to plain symtab_node.
11683         (referenced_from_this_partition_p): Change first parameter
11684         from struct symtab_node to plain symtab_node.
11685
11686 2014-08-10  Marek Polacek  <polacek@redhat.com>
11687
11688         PR c/51849
11689         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11690
11691 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
11692
11693         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11694         DECL correctly; do not give up on types in static storage.
11695
11696 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
11697
11698         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11699
11700 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
11701
11702         * graphite-isl-ast-to-gimple.c:
11703         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11704
11705         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11706
11707 2014-08-08  Guozhi Wei  <carrot@google.com>
11708
11709         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11710
11711 2014-08-08  Cary Coutant  <ccoutant@google.com>
11712
11713         * dwarf2out.c (get_skeleton_type_unit): Remove.
11714         (output_skeleton_debug_sections): Remove skeleton type units.
11715         (output_comdat_type_unit): Likewise.
11716         (dwarf2out_finish): Likewise.
11717
11718 2014-08-07  Yi Yang  <ahyangyi@google.com>
11719
11720         * predict.c (expr_expected_value_1): Remove the redundant assignment.
11721
11722 2014-08-08  Richard Biener  <rguenther@suse.de>
11723
11724         * lto-streamer.h (struct lto_input_block): Make it a class
11725         with a constructor.
11726         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11727         (struct lto_function_header, struct lto_simple_header,
11728         struct lto_simple_header_with_strings,
11729         struct lto_decl_header, struct lto_function_header): Make
11730         a simple inheritance hieararchy.  Remove unused fields.
11731         (struct lto_asm_header): Remove.
11732         * lto-streamer-out.c (produce_asm): Adjust.
11733         (lto_output_toplevel_asms): Likewise.
11734         (produce_asm_for_decls): Likewise.
11735         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11736         * data-streamer-in.c (string_for_index): Likewise.
11737         * ipa-inline-analysis.c (inline_read_section): Likewise.
11738         * ipa-prop.c (ipa_prop_read_section): Likewise.
11739         (read_replacements_section): Likewise.
11740         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11741         * lto-section-in.c (lto_create_simple_input_block): Likewise.
11742         (lto_destroy_simple_input_block): Likewise.
11743         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11744         (lto_input_toplevel_asms): Likewise.
11745
11746 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11747             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11748             Anna Tikhonova  <anna.tikhonova@intel.com>
11749             Ilya Tocar  <ilya.tocar@intel.com>
11750             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11751             Ilya Verbin  <ilya.verbin@intel.com>
11752             Kirill Yukhin  <kirill.yukhin@intel.com>
11753             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11754
11755         * common/config/i386/i386-common.c
11756         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11757         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11758         (ix86_handle_option): Handle OPT_mavx512dq.
11759         * config/i386/cpuid.h (bit_AVX512DQ): Define.
11760         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11761         set -mavx512dq accordingly.
11762         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11763         OPTION_MASK_ISA_AVX512DQ.
11764         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11765         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11766         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11767         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11768         * config/i386/i386.h (TARGET_AVX512DQ): Define.
11769         (TARGET_AVX512DQ_P(x)): Ditto.
11770         * config/i386/i386.opt: Add mavx512dq.
11771
11772 2014-08-08  Richard Biener  <rguenther@suse.de>
11773
11774         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11775         target_percent, target_percent_s): Export.
11776         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11777         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11778         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11779         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11780         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11781         Move to gimple-fold.c.
11782         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11783         strcat and strcpy.
11784         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11785         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11786         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11787         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11788         (rewrite_call_expr_array): Remove.
11789         (fold_builtin_sprintf_chk): Likewise.
11790         (fold_builtin_snprintf_chk): Likewise.
11791         (fold_builtin_varargs): Remove handling of sprintf_chk,
11792         vsprintf_chk, snprintf_chk and vsnprintf_chk.
11793         (gimple_fold_builtin_sprintf_chk): Remove.
11794         (gimple_fold_builtin_snprintf_chk): Likewise.
11795         (gimple_fold_builtin_varargs): Likewise.
11796         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11797         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11798         * gimple.c (gimple_seq_add_seq_without_update): New function.
11799         * gimple.h (gimple_seq_add_seq_without_update): Declare.
11800         * gimple-fold.c: Include output.h.
11801         (gsi_replace_with_seq_vops): New function, split out from ...
11802         (gimplify_and_update_call_from_tree): ... here.
11803         (replace_call_with_value): New function.
11804         (replace_call_with_call_and_fold): Likewise.
11805         (var_decl_component_p): Moved from builtins.c.
11806         (gimple_fold_builtin_memory_op): Moved from builtins.c
11807         fold_builtin_memory_op and rewritten to GIMPLE.
11808         (gimple_fold_builtin_memset): Likewise.
11809         (gimple_fold_builtin_strcpy): Likewise.
11810         (gimple_fold_builtin_strncpy): Likewise.
11811         (gimple_fold_builtin_strcat): Likewise.
11812         (gimple_fold_builtin_fputs): Likewise.
11813         (gimple_fold_builtin_memory_chk): Likewise.
11814         (gimple_fold_builtin_stxcpy_chk): Likewise.
11815         (gimple_fold_builtin_stxncpy_chk): Likewise.
11816         (gimple_fold_builtin_snprintf_chk): Likewise.
11817         (gimple_fold_builtin_sprintf_chk): Likewise.
11818         (gimple_fold_builtin_strlen): New function.
11819         (gimple_fold_builtin_with_strlen): New function split out from
11820         gimple_fold_builtin.
11821         (gimple_fold_builtin): Change signature and handle
11822         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11823         here.  Call gimple_fold_builtin_with_strlen.
11824         (gimple_fold_call): Adjust.
11825
11826 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11827
11828         * calls.c (precompute_arguments): Check
11829          promoted_for_signed_and_unsigned_p and set the promoted mode.
11830         (promoted_for_signed_and_unsigned_p): New function.
11831         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11832         and set the promoted mode.
11833         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11834         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11835         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11836
11837
11838 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11839
11840         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11841         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11842         (expand_call): Likewise.
11843         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11844         to get promoted mode.
11845         * combine.c (record_promoted_value): Skip > 0 comparison with
11846         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11847         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11848         of SUBREG_PROMOTED_UNSIGNED_P.
11849         (convert_modes): Likewise.
11850         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11851         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11852         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11853         SUBREG_PROMOTED_UNSIGNED_SET.
11854         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11855         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11856         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11857         SUBREG_PROMOTED_SET.
11858         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11859         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11860         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11861         of SUBREG_PROMOTED_UNSIGNED_P.
11862         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11863         (SUBREG_PROMOTED_SET): New define.
11864         (SUBREG_PROMOTED_GET): Likewise.
11865         (SUBREG_PROMOTED_SIGN): Likewise.
11866         (SUBREG_PROMOTED_SIGNED_P): Likewise.
11867         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11868         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11869         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11870         instead of SUBREG_PROMOTED_UNSIGNED_GET.
11871         (nonzero_bits1): Skip > 0 comparison with the results as
11872         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11873         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11874         of !SUBREG_PROMOTED_UNSIGNED_P.
11875         * simplify-rtx.c (simplify_unary_operation_1): Use new
11876         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11877         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11878         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11879         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11880
11881 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
11882
11883         * ipa-devirt.c: Include gimple-pretty-print.h
11884         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11885         further tests.
11886         (decl_maybe_in_construction_p): Fix conditional on cdtor check
11887         (get_polymorphic_call_info): Fix return value
11888         (type_change_info): New sturcture based on ipa-prop
11889         variant.
11890         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11891         based on ipa-prop variant.
11892         (extr_type_from_vtbl_ptr_store): New function
11893         based on ipa-prop variant.
11894         (record_known_type): New function.
11895         (check_stmt_for_type_change): New function.
11896         (get_dynamic_type): New function.
11897         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11898         * tree-ssa-pre.c: ipa-utils.h
11899         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11900         machinery; sanity check with ipa-prop devirtualization.
11901         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11902         polymorphic flag.
11903
11904 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
11905
11906         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11907         * alias.c, cfgexpand.c, cgraphbuild.c,
11908         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11909         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11910         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11911         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11912         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11913         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11914         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11915         dse.c, except.c, gengtype.c, gimple-expr.c,
11916         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11917         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11918         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11919         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11920         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11921         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11922         pointer-set.h.
11923         * pointer-set.c: Remove file.
11924         * pointer-set.h: Remove file.
11925
11926 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11927
11928         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11929         * config/arm/types.md (f_sels, f_seld): Delete.
11930
11931 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11932
11933         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11934         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11935         (aarch64_movdi_<mode>high): Likewise.
11936         (aarch64_mov<mode>high_di): Likewise.
11937         (aarch64_movdi_<mode>low): Likewise.
11938         (aarch64_mov<mode>low_di): Likewise.
11939         (aarch64_movtilow_tilow): Likewise.
11940         Add comment explaining usage of fp,simd attributes and of
11941         TARGET_FLOAT and TARGET_SIMD.
11942
11943 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
11944             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11945
11946         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11947         Use MOVN when one of the half-words is 0xffff.
11948
11949 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
11950
11951         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11952
11953 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11954
11955         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
11956         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11957         (rfs_str): String corresponding to RFS_* constants.
11958         (rank_for_schedule_stats_t): New typedef.
11959         (rank_for_schedule_stats): New static variable.
11960         (rfs_result): New static function.
11961         (rank_for_schedule): Track statistics for deciding heuristics.
11962         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11963         static functions.
11964         (ready_sort): Use them for debug printouts.
11965         (schedule_block): Init statistics state.  Print statistics on
11966         rank_for_schedule decisions.
11967
11968 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11969
11970         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11971
11972 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
11973
11974         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11975         constraint.
11976
11977 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
11978
11979         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11980         function to not conflict.
11981         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11982         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11983         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11984         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11985         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11986         of pointer_map.
11987
11988 2014-08-07  Marek Polacek  <polacek@redhat.com>
11989
11990         * fold-const.c (fold_binary_loc): Add folding of
11991         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11992
11993 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
11994
11995         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11996         instead of type size.
11997         (ASM_FINISH_DECLARE_OBJECT): Likewise.
11998
11999 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
12000
12001         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
12002         (*thumb1_movqi_insn): Likewise.
12003         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
12004
12005 2014-08-07  Tom de Vries  <tom@codesourcery.com>
12006
12007         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12008         (glibc_2_11_or_earlier): Remove effective-target keywords.
12009
12010 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12011
12012         * config/arm/arm.c (bdesc_2arg): Fix typo.
12013         (arm_atomic_assign_expand_fenv): Remove The default implementation.
12014
12015 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12016
12017         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
12018
12019 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
12020
12021         PR debug/61923
12022         * haifa-sched.c (advance_one_cycle): Fix dump.
12023         (schedule_block): Don't advance cycle if we are already at the
12024         beginning of the cycle.
12025
12026 2014-08-06  Martin Jambor  <mjambor@suse.cz>
12027
12028         PR ipa/61393
12029         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
12030
12031 2014-08-06  Richard Biener  <rguenther@suse.de>
12032
12033         PR lto/62034
12034         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
12035         SCCs here.
12036         (lto_input_tree): Pop SCCs here.
12037
12038 2014-08-06  Richard Biener  <rguenther@suse.de>
12039
12040         PR tree-optimization/61320
12041         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
12042         handle misaligned loads.
12043
12044 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
12045
12046         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
12047         (aarch64_expand_vec_perm_const): Check for dup before zip.
12048
12049 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12050
12051         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
12052         CONST_INT_P instead of GET_CODE and compare.
12053         (aarch64_select_cc_mode): Likewise.
12054         (aarch64_print_operand): Likewise.
12055         (aarch64_rtx_costs): Likewise.
12056         (aarch64_simd_valid_immediate): Likewise.
12057         (aarch64_simd_check_vect_par_cnst_half): Likewise.
12058         (aarch64_simd_emit_pair_result_insn): Likewise.
12059
12060 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
12061
12062         * gdbhooks.py (find_gcc_source_dir): New helper function.
12063         (class PassNames): New class, locating and parsing passes.def.
12064         (class BreakOnPass): New command "break-on-pass".
12065
12066 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
12067
12068         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
12069         getting olde.
12070
12071 2014-08-05  Richard Biener  <rguenther@suse.de>
12072
12073         PR rtl-optimization/61672
12074         * emit-rtl.h (mem_attrs_eq_p): Declare.
12075         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
12076         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
12077         * cfgcleanup.c (merge_memattrs): Likewise.
12078         Include emit-rtl.h.
12079
12080 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12081
12082         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
12083         rather than singleton vectors.
12084         (vqdmlsls_lane_s32): Likewise.
12085
12086 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12087
12088         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
12089         Use VSDQ_HSI mode iterator.
12090         (aarch64_sqrdmulh_laneq<mode>): Likewise.
12091         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
12092         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
12093         Use BUILTIN_VDQHS macro.
12094         (sqrdmulh_laneq): Likewise.
12095         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
12096         (vqdmlals_laneq_s32): Likewise.
12097         (vqdmlslh_laneq_s16): Likewise.
12098         (vqdmlsls_laneq_s32): Likewise.
12099         (vqdmulhh_laneq_s16): Likewise.
12100         (vqdmulhs_laneq_s32): Likewise.
12101         (vqrdmulhh_laneq_s16): Likewise.
12102         (vqrdmulhs_laneq_s32): Likewise.
12103
12104 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12105
12106         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
12107         (vmuld_laneq_f64): Likewise.
12108         (vmuls_laneq_f32): Likewise.
12109         (vmul_n_f64): Likewise.
12110         (vmuld_lane_f64): Reimplement in C.
12111         (vmuls_lane_f32): Likewise.
12112
12113 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12114
12115         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
12116         to reservation.
12117         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
12118
12119 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12120
12121         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
12122         (rbitsi2): Likewise.
12123         (*arm_rev): Set predicable and predicable_short_it attributes.
12124
12125 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12126
12127         * convert.c (convert_to_integer): Guard transformation to lrint by
12128         -fno-math-errno.
12129
12130 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
12131
12132         * config/aarch64/aarch64-builtins.c
12133         (aarch64_simd_builtin_type_mode): Delete.
12134         (v8qi_UP): Remap to V8QImode.
12135         (v4hi_UP): Remap to V4HImode.
12136         (v2si_UP): Remap to V2SImode.
12137         (v2sf_UP): Remap to V2SFmode.
12138         (v1df_UP): Remap to V1DFmode.
12139         (di_UP): Remap to DImode.
12140         (df_UP): Remap to DFmode.
12141         (v16qi_UP):V16QImode.
12142         (v8hi_UP): Remap to V8HImode.
12143         (v4si_UP): Remap to V4SImode.
12144         (v4sf_UP): Remap to V4SFmode.
12145         (v2di_UP): Remap to V2DImode.
12146         (v2df_UP): Remap to V2DFmode.
12147         (ti_UP): Remap to TImode.
12148         (ei_UP): Remap to EImode.
12149         (oi_UP): Remap to OImode.
12150         (ci_UP): Map to CImode.
12151         (xi_UP): Remap to XImode.
12152         (si_UP): Remap to SImode.
12153         (sf_UP): Remap to SFmode.
12154         (hi_UP): Remap to HImode.
12155         (qi_UP): Remap to QImode.
12156         (aarch64_simd_builtin_datum): Make mode a machine_mode.
12157         (VAR1): Build builtin name.
12158         (aarch64_init_simd_builtins): Remove dead code.
12159
12160 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
12161
12162         * graphite-isl-ast-to-gimple.c:
12163         (set_options): New function.
12164         (scop_to_isl_ast): Add calling of set_options.
12165
12166 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
12167
12168         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
12169         (analyze_iv_to_split_insn): Don't initialize them.
12170         (get_ivts_expr): Removed.
12171         (allocate_basic_variable, insert_base_initialization): Use
12172         SET_SRC instead of *get_ivts_expr.
12173         (split_iv): Use &SET_SRC instead of get_ivts_expr.
12174
12175 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
12176
12177         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
12178         (translate_isl_ast_for_loop): Add checking of the
12179         flag_loop_parallelize_all.
12180         (ast_build_before_for): New function.
12181         (scop_to_isl_ast): Add checking of the
12182         flag_loop_parallelize_all.
12183         * graphite-dependences.c: Move the defenition of the
12184         scop_get_dependences from graphite-optimize-isl.c to this file.
12185         (apply_schedule_on_deps): Add checking of the ux's emptiness.
12186         (carries_deps): Add checking of the x's value.
12187         * graphite-optimize-isl.c: Move the defenition of the
12188         scop_get_dependences to graphite-dependences.c.
12189         * graphite-poly.h: Add declarations of scop_get_dependences
12190         and carries_deps.
12191
12192 2014-08-04  Rohit  <rohitarulraj@freescale.com>
12193
12194         PR target/60102
12195         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
12196         names.
12197         (alt_reg_names): Likewise.
12198         (rs6000_dwarf_register_span): For SPE high registers, replace
12199         dwarf register numbers with GCC hard register numbers.
12200         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
12201         (rs6000_dbx_register_number): For SPE high registers, return dwarf
12202         register number for the corresponding GCC hard register number.
12203         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
12204         newly added GCC hard register numbers for SPE high registers.
12205         (DWARF_FRAME_REGISTERS):  Likewise.
12206         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
12207         (DWARF_FRAME_REGNUM): Likewise.
12208         (FIXED_REGISTERS): Likewise.
12209         (CALL_USED_REGISTERS): Likewise.
12210         (CALL_REALLY_USED_REGISTERS): Likewise.
12211         (REG_ALLOC_ORDER): Likewise.
12212         (enum reg_class): Likewise.
12213         (REG_CLASS_NAMES): Likewise.
12214         (REG_CLASS_CONTENTS): Likewise.
12215         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
12216
12217 2014-08-04  Richard Biener  <rguenther@suse.de>
12218
12219         * gimple-fold.h (gimple_fold_builtin): Remove.
12220         * gimple-fold.c (gimple_fold_builtin): Make static.
12221         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
12222         fold_stmt, not gimple_fold_builtin.
12223
12224 2014-08-04  Martin Liska <mliska@suse.cz>
12225
12226         * cgraph.h (csi_end_p): Removed.
12227         (csi_next): Likewise.
12228         (csi_node): Likewise.
12229         (csi_start): Likewise.
12230         (cgraph_node_in_set_p): Likewise.
12231         (cgraph_node_set_size): Likewise.
12232         (vsi_end_p): Likewise.
12233         (vsi_next): Likewise.
12234         (vsi_node): Likewise.
12235         (vsi_start): Likewise.
12236         (varpool_node_set_size): Likewise.
12237         (cgraph_node_set_nonempty_p): Likewise.
12238         (varpool_node_set_nonempty_p): Likewise.
12239         * cgraphunit.c (cgraph_process_new_functions): vec replaces
12240         cgraph_node_set.
12241         * ipa-inline-transform.c: Likewise.
12242         * ipa-utils.c (cgraph_node_set_new): Removed.
12243         (cgraph_node_set_add): Likewise.
12244         (cgraph_node_set_remove): Likewise.
12245         (cgraph_node_set_find): Likewise.
12246         (dump_cgraph_node_set): Likewise.
12247         (debug_cgraph_node_set): Likewise.
12248         (free_cgraph_node_set): Likewise.
12249         (varpool_node_set_new): Likewise.
12250         (varpool_node_set_add): Likewise.
12251         (varpool_node_set_remove): Likewise.
12252         (varpool_node_set_find): Likewise.
12253         (dump_varpool_node_set): Likewise.
12254         (free_varpool_node_set): Likewise.
12255         (debug_varpool_node_set): Likewise.
12256         * tree-emutls.c (struct tls_var_data):
12257         (emutls_index): Removed.
12258         (emutls_decl): Likewise.
12259         (gen_emutls_addr): Function implementation uses newly added
12260         hash_map<varpool_node *, tls_var_data>.
12261         (clear_access_vars): Likewise.
12262         (create_emultls_var): Likewise.
12263         (ipa_lower_emutls): Likewise.
12264         (reset_access): New function.
12265
12266 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12267
12268         * config/i386/i386.c (ix86_option_override_internal): Add
12269         PTA_RDRND and PTA_MOVBE for bdver4.
12270
12271 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12272             James Greenhalgh  <james.greenhalgh@arm.com>
12273
12274         * doc/md.texi (clrsb): Document.
12275         (clz): Change reference to x into operand 1.
12276         (ctz): Likewise.
12277         (popcount): Likewise.
12278
12279 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12280
12281         PR target/61713
12282         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
12283         move to subtarget in serial version if result is ignored.
12284
12285 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12286             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12287
12288         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
12289         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
12290         (sched_analyze_insn): Update use of try_group_insn to
12291         sched_macro_fuse_insns.
12292         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
12293         arguments that are not conditional jumps.
12294
12295 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12296
12297         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
12298         family information. Handle BTVER2 cpu with cpuid family value.
12299
12300 2014-08-04  Tom de Vries  <tom@codesourcery.com>
12301
12302         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12303         (glibc_2_11_or_earlier): Document effective-target keywords.
12304
12305 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
12306
12307         * ipa-devirt.c (odr_type_warn_count): Add type.
12308         (possible_polymorphic_call_targets): Set it.
12309         (ipa_devirt): Use it.
12310
12311 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
12312
12313         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
12314         Document.
12315         * ipa-devirt.c: Include hash-map.h
12316         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
12317         (clear_speculation): Break out of ...
12318         (get_class_context): ... here; speed up handling obviously useless
12319         speculations.
12320         (odr_type_warn_count, decl_warn_count): New structures.
12321         (final_warning_record): New structure.
12322         (final_warning_records): New static variable.
12323         (possible_polymorphic_call_targets): Cleanup handling of
12324         speculative info; do not build speculation when user do not care;
12325         record info about warnings when asked for.
12326         (add_decl_warning): New function.
12327         (type_warning_cmp): New function.
12328         (decl_warning_cmp): New function.
12329         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
12330         (gate): Enable pass when warnings are requested.
12331         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
12332         options.
12333
12334 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
12335
12336         * hash-map.h (default_hashmap_traits::mark_key_deleted):
12337         Fix cast.
12338         (hash_map::remove): New method.
12339         (hash_map::traverse): New method.
12340         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
12341         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
12342         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
12343         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
12344         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
12345         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
12346         pointer_map.
12347
12348 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
12349
12350         * hash-set.h: new File.
12351         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
12352         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
12353         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
12354         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
12355         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
12356         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
12357         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
12358         varpool.c: Use hash_set instead of pointer_set.
12359
12360 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
12361
12362         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
12363
12364 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12365
12366         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
12367         for frame access when strict_p is false.
12368
12369 2014-08-01  Renlin Li <renlin.li@arm.com>
12370 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12371
12372         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
12373         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
12374         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
12375         Declaration.
12376         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
12377         predicate.
12378         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
12379         aarch64_mem_pair_offset.
12380
12381 2014-08-01  Jiong Wang <jiong.wang@arm.com>
12382
12383         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
12384         offset.
12385         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
12386         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
12387
12388 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
12389
12390         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
12391
12392 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
12393
12394         PR regression/61510
12395         * cgraphunit.c (analyze_functions): Use get_create rather than get
12396         for decls which are clones of abstract functions.
12397
12398 2014-08-01  Martin Liska  <mliska@suse.cz>
12399
12400         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
12401         * ipa-prop.h (count_formal_params): Global function created from static.
12402         * ipa-prop.c (count_formal_params): Likewise.
12403         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
12404         profiles for semantically equivalent functions.
12405         * passes.c (do_per_function): If we load body of a function
12406         during WPA, this condition should behave same.
12407         * varpool.c (ctor_for_folding): More tolerant assert for variable
12408         aliases created during WPA.
12409
12410 2014-08-01  Martin Liska  <mliska@suse.cz>
12411
12412         * doc/invoke.texi (Options That Control Optimization): Documentation
12413         for -foptimize-strlen introduced. Optimization levels default options
12414         fixed.
12415
12416 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
12417
12418         * opts.c (common_handle_option): Handle -fsanitize=alignment.
12419         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
12420         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
12421         type to bool.
12422         * stor-layout.h (min_align_of_type): New prototype.
12423         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
12424         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
12425         check.
12426         * ubsan.c: Include builtins.h.
12427         (ubsan_expand_bounds_ifn): Change return type to bool,
12428         always return true.
12429         (ubsan_expand_null_ifn): Change return type to bool, change
12430         argument to gimple_stmt_iterator *.  Handle both null and alignment
12431         sanitization, take type from ckind argument's type rather than
12432         first argument.
12433         (instrument_member_call): Removed.
12434         (instrument_mem_ref): Remove t argument, add mem and base arguments.
12435         Handle both null and alignment sanitization, don't say whole
12436         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
12437         call instead of 2 argument.
12438         (instrument_null): Adjust instrument_mem_ref caller.  Don't
12439         instrument calls here.
12440         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
12441         like SANITIZE_NULL.
12442         * stor-layout.c (min_align_of_type): New function.
12443         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
12444         Or it into SANITIZE_UNDEFINED.
12445         * doc/invoke.texi (-fsanitize=alignment): Document.
12446
12447 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12448
12449         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
12450
12451 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12452
12453         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
12454         inchash.
12455         (vn_reference_compute_hash): Dito.
12456         (vn_nary_op_compute_hash): Dito.
12457         (vn_phi_compute_hash): Dito.
12458         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
12459
12460 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12461
12462         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
12463         Rename to inchash:add_expr_commutative. Convert to inchash.
12464         (iterative_hash_hashable_expr): Rename to
12465         inchash:add_hashable_expr. Convert to inchash.
12466         (avail_expr_hash): Dito.
12467
12468 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12469
12470         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
12471         Convert to inchash.
12472
12473 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12474
12475         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
12476
12477 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12478
12479         * Makefile.in (OBJS): Add rtlhash.o
12480         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12481         (loc_checksum): Dito.
12482         (loc_checksum_ordered): Dito.
12483         (hash_loc_operands): Dito.
12484         (hash_locs): Dito.
12485         (hash_loc_list): Dito.
12486         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12487         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12488         * rtlhash.c: New file.
12489         * rtlhash.h: New file.
12490
12491 2014-07-31  Andi Kleen  <ak@linux.intel.com>
12492
12493         * inchash.h (inchash): Change inchash class to namespace.
12494         (class hash): ... Rename from inchash.
12495         (add_object): Move from macro to class template.
12496         * lto-streamer-out.c (hash_tree): Change inchash
12497         to inchash::hash.
12498         * tree.c (build_type_attribute_qual_variant): Dito.
12499         (type_hash_list): Dito.
12500         (attribute_hash_list): Dito.
12501         (iterative_hstate_expr): Rename to inchash::add_expr
12502         (build_range_type_1): Change inchash to inchash::hash
12503         and use hash::add_expr.
12504         (build_array_type_1): Dito.
12505         (build_function_type): Dito
12506         (build_method_type_directly): Dito.
12507         (build_offset_type): Dito.
12508         (build_complex_type): Dito.
12509         (make_vector_type): Dito.
12510         * tree.h (iterative_hash_expr): Dito.
12511
12512 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
12513
12514         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12515
12516 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12517
12518         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12519         correct alphabetical position.
12520         (vpaddd_f64): Rewrite using builtins.
12521         (vpaddd_s64): Move to correct alphabetical position.
12522         (vpaddd_u64): New.
12523
12524 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
12525
12526         PR target/61844
12527         * config/sh/sh.c (sh_legitimate_address_p,
12528         sh_legitimize_reload_address): Handle reg+reg address modes when
12529         ALLOW_INDEXED_ADDRESS is false.
12530         * config/sh/predicates.md (general_movsrc_operand,
12531         general_movdst_operand): Likewise.
12532
12533 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12534
12535         * config/aarch64/aarch64-builtins.c
12536         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12537         BYTES_BIG_ENDIAN.
12538
12539 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
12540
12541         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12542         the generated mask based on BYTES_BIG_ENDIAN.
12543         (aarch64_simd_check_vect_par_cnst_half): New.
12544         * config/aarch64/aarch64-protos.h
12545         (aarch64_simd_check_vect_par_cnst_half): New.
12546         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12547         the check out to aarch64_simd_check_vect_par_cnst_half.
12548         (vect_par_cnst_lo_half): Likewise.
12549         * config/aarch64/aarch64-simd.md
12550         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12551         (move_hi_quad_<mode>): Always generate a low mask.
12552
12553 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12554
12555         * doc/invoke.texi (AVR Options): Add documentation about
12556         __AVR_DEVICE_NAME__ built-in macro.
12557
12558 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
12559
12560         PR target/61948
12561         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12562         constraints are satisfied.
12563         (<shift>di3_neon): Likewise.
12564
12565 2014-07-31  Richard Biener  <rguenther@suse.de>
12566
12567         PR tree-optimization/61964
12568         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12569         by structural equality.
12570
12571 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
12572
12573         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12574         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12575         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12576         New enums.
12577         * gcc.c (sanitize_spec_function): Support new option.
12578         (SANITIZER_SPEC): Remove now redundant check.
12579         * opts.c (common_handle_option): Support new option.
12580         (finish_options): Check for incompatibilities.
12581         * toplev.c (process_options): Split userspace-specific checks.
12582
12583 2014-07-31  Richard Biener  <rguenther@suse.de>
12584
12585         * lto-streamer.h (struct output_block): Remove global.
12586         (struct data_in): Remove labels, num_named_labels and
12587         num_unnamed_labels.
12588         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12589         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12590
12591 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
12592
12593         PR c++/60517
12594         * common.opt (-Wreturn-local-addr): Moved from c.opt.
12595         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12596         (isolate_path): New argument to avoid inserting a trap.
12597         (find_implicit_erroneous_behaviour): Handle returning the address
12598         of a local variable.
12599         (find_explicit_erroneous_behaviour): Likewise.
12600
12601 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
12602
12603         PR lto/61868
12604         * toplev.c (init_random_seed): Move piece of code never called to
12605         set_random_seed.
12606         (set_random_seed): see above.
12607
12608 2014-07-31  Tom de Vries  <tom@codesourcery.com>
12609
12610         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12611
12612 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
12613
12614         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12615         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12616
12617 2014-07-31  Richard Biener  <rguenther@suse.de>
12618
12619         * data-streamer.h (streamer_write_data_stream): Declare here,
12620         renamed from ...
12621         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
12622         * lto-cgraph.c (lto_output_node): Adjust.
12623         (lto_output_varpool_node): Likewise.
12624         * data-streamer-out.c (streamer_string_index): Likewise.
12625         (streamer_write_data_stream, lto_append_block): Move from ...
12626         * lto-section-out.c (lto_output_data_stream,
12627         lto_append_block): ... here.
12628
12629 2014-07-30  Mike Stump  <mikestump@comcast.net>
12630
12631         * configure.ac: Also check for popen.
12632         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12633         * configure: Regenerate.
12634         * config.in:  Regenerate.
12635
12636 2014-07-30  Martin Jambor  <mjambor@suse.cz>
12637
12638         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12639         parameter to gimple.
12640
12641 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12642
12643         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12644         address as second parameter to __tpf_eh_return routine.
12645
12646 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
12647
12648         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12649         Thumb2.
12650
12651 2014-07-30  Tom Tromey  <tromey@redhat.com>
12652
12653         PR c/59855
12654         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12655         * doc/extend.texi (Type Attributes): Document designated_init
12656         attribute.
12657
12658 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
12659
12660         * graphite-isl-ast-to-gimple.c:
12661         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12662         (gcc_expression_from_isl_expression): Pass type to
12663         gcc_expression_from_isl_ast_expr_id.
12664
12665 2014-07-30  Richard Biener  <rguenther@suse.de>
12666
12667         * lto-streamer.h (lto_write_data): New function.
12668         * langhooks.c (lhd_append_data): Do not free block.
12669         * lto-section-out.c (lto_write_data): New function writing
12670         raw data to the current section.
12671         (lto_write_stream): Adjust for langhook semantic change.
12672         (lto_destroy_simple_output_block): Write header directly.
12673         * lto-opts.c (lto_write_options): Write options directly.
12674         * lto-streamer-out.c (produce_asm): Write heaeder directly.
12675         (lto_output_toplevel_asms): Likewise.
12676         (copy_function_or_variable): Copy data directly.
12677         (write_global_references): Output index table directly.
12678         (lto_output_decl_state_refs): Likewise.
12679         (write_symbol): Write data directly.
12680         (produce_symtab): Adjust.
12681         (produce_asm_for_decls): Output header and refs directly.
12682
12683 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12684
12685         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12686         to speculative_targets
12687         (get_class_context): Fix handling of contextes without outer type;
12688         avoid matching non-polymorphic types in LTO.
12689         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12690         parameter to speculative_targetsp; handle speculation.
12691         (dump_possible_polymorphic_call_targets): Update dumping.
12692
12693 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12694
12695         * common.opt (Wodr): Enable by default.
12696
12697 2014-07-29  Olivier Hainque  <hainque@adacore.com>
12698
12699         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12700
12701 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
12702
12703         PR bootstrap/61914
12704         * gengtype.c (strtoken): New function.
12705         (create_user_defined_type): Replace strtok with strtoken.
12706
12707 2014-07-29  Nathan Sidwell  <nathan@acm.org>
12708
12709         * gcov-io.c (gcov_var): Make hidden.
12710         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12711         (gcov_do_dump): Declare.
12712         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12713
12714 2014-07-29  Martin Jambor  <mjambor@suse.cz>
12715
12716         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12717         parameter to gimple.
12718         (sra_modify_assign): Likewise.
12719
12720 2014-07-29  Richard Biener  <rguenther@suse.de>
12721
12722         PR middle-end/52478
12723         * expr.c (expand_expr_real_2): Revert last change.
12724
12725 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12726
12727         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12728         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12729         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12730         call.
12731         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12732         (contains_type_p): Forward declare.
12733         (polymorphic_call_target_hasher::hash): Hash speculative info.
12734         (polymorphic_call_target_hasher::equal): Compare speculative info.
12735         (get_class_context): Handle speuclation.
12736         (contains_type_p): Update.
12737         (get_polymorphic_call_info_for_decl): Update.
12738         (walk_ssa_copies): Break out from ...
12739         (get_polymorphic_call_info): ... here; set speculative context
12740         before giving up.
12741         * ipa-prop.c (ipa_write_indirect_edge_info,
12742         ipa_read_indirect_edge_info): Stream speculative context.
12743         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12744         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12745         SPECULATIVE_MAYBE_DERIVED_TYPE).
12746         (possible_polymorphic_call_targets overriders): Update.
12747         (dump_possible_polymorphic_call_targets overriders): Update.
12748         (dump_possible_polymorphic_call_target_p overriders): Update.
12749
12750 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12751
12752         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12753         ipa-devirt path; fix thinko there.
12754
12755 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
12756
12757         * config/i386/i386.c (ix86_return_in_memory): Replace one
12758         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12759
12760 2014-07-28  Marek Polacek  <polacek@redhat.com>
12761
12762         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
12763
12764 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
12765
12766         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12767         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12768         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12769         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12770         (USE_LD_AS_NEEDED): Likewise.
12771         (ASM_APP_ON): Likewise.
12772         (ASM_APP_OFF): Likewise.
12773         (TARGET_POSIX_IO): Likewise.
12774         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12775         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12776         (USE_LD_AS_NEEDED): Likewise.
12777         (ASM_APP_ON): Likewise.
12778         (ASM_APP_OFF): Likewise.
12779         (TARGET_POSIX_IO): Likewise.
12780
12781 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
12782
12783         PR middle-end/61734
12784         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12785         operators other than the equality operators.
12786
12787 2014-07-28  Richard Biener  <rguenther@suse.de>
12788
12789         PR middle-end/52478
12790         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12791         sure to register SImode ones, not only >= word_mode ones.
12792         * expr.c (expand_expr_real_2): When expanding -ftrapv
12793         binops do not use OPTAB_LIB_WIDEN.
12794
12795 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
12796
12797         PR middle-end/61919
12798         * tree-outof-ssa.c (insert_partition_copy_on_edge)
12799         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12800         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12801         inserting them in the insn stream.
12802
12803 2014-07-28  Marek Polacek  <polacek@redhat.com>
12804
12805         PR middle-end/61913
12806         * common.opt (Wodr): Add Var.
12807
12808 2014-07-28  Richard Biener  <rguenther@suse.de>
12809
12810         PR tree-optimization/61921
12811         * tree-ssa-structalias.c (create_variable_info_for_1): Check
12812         if there is a varpool node before dereferencing it.
12813
12814 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
12815
12816         * graphite-sese-to-poly.c:
12817         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12818         id of the pbb), which contains pointer to the pbb1.
12819
12820         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12821
12822 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
12823
12824         * graphite-isl-ast-to-gimple.c:
12825         (graphite_create_new_guard): New function.
12826         (translate_isl_ast_node_if): New function.
12827         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12828
12829         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12830
12831 2014-07-27  Anthony Green  <green@moxielogic.com>
12832
12833         * config.gcc: Add moxie-*-moxiebox* configuration.
12834         * config/moxie/moxiebox.h: New file.
12835
12836 2014-07-26  Andrew Pinski  <apinski@cavium.com>
12837
12838         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12839         from the read only register.
12840
12841 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12842
12843         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12844         as the allocation class if it isn't likely to be spilled.
12845
12846 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12847
12848         * rtl.h (tls_referenced_p): Declare.
12849         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12850         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12851         (mips_cannot_force_const_mem): Use tls_referenced_p.
12852         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12853         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12854         instead of pa_tls_referenced_p.
12855         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12856         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12857         (pa_legitimate_constant_p): Likewise.
12858         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12859         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12860         (rs6000_cannot_force_const_mem, rs6000_emit_move)
12861         (rs6000_address_for_altivec): Use tls_referenced_p instead of
12862         rs6000_tls_referenced_p.
12863         (rs6000_tls_symbol_ref_1): Delete.
12864
12865 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
12866
12867         PR target/44551
12868         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12869         Optimize inverse of a VEC_CONCAT.
12870
12871 2014-07-25  Xinliang David Li  <davidxl@google.com>
12872
12873         * params.def: New parameter.
12874         * coverage.c (get_coverage_counts): Check new flag.
12875         (coverage_compute_profile_id): Check new flag.
12876         (coverage_begin_function): Check new flag.
12877         (coverage_end_function): Check new flag.
12878         * value-prof.c (coverage_node_map_initialized_p): New function.
12879         (init_node_map): Populate map with all functions.
12880         * doc/invoke.texi: Document new parameter.
12881
12882 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
12883             Richard Biener <rguenther@suse.de>
12884
12885         * lto-streamer-out.c (struct sccs): Turn to ...
12886         (class DFS): ... this one; refactor the DFS walk so it can
12887         be re-done on per-SCC basis.
12888         (DFS::DFS): New constructor.
12889         (DFS::~DFS): New destructor.
12890         (hash_tree): Add new MAP argument holding in-SCC hash values;
12891         remove POINTER_TYPE hashing hack.
12892         (scc_entry_compare): Rename to ...
12893         (DFS::scc_entry_compare): ... this one.
12894         (hash_scc): Rename to ...
12895         (DFS::hash_scc): ... this one; pass output_block instead
12896         of streamer_cache; work harder to get unique and stable SCC
12897         hashes.
12898         (DFS_write_tree): Rename to ...
12899         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12900         (lto_output_tree): Update.
12901
12902 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12903
12904         * lto-streamer-out.c (hash_tree): Convert to inchash.
12905
12906 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12907
12908         * tree.c (build_type_attribute_qual_variant): Use inchash.
12909         (type_hash_list): Dito.
12910         (attribute_hash_list): Dito
12911         (iterative_hstate_expr): Dito.
12912         (iterative_hash_expr): Dito.
12913         (build_range_type_1): Dito.
12914         (build_array_type_1): Dito.
12915         (build_function_type): Dito.
12916         (build_method_type_directly): Dito.
12917         (build_offset_type): Dito.
12918         (build_complex_type): Dito.
12919         (make_vector_type): Dito.
12920         * tree.h (iterative_hash_expr): Add compat wrapper.
12921         (iterative_hstate_expr): Add.
12922
12923 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12924
12925         * Makefile.in (OBJS): Add inchash.o.
12926         (PLUGIN_HEADERS): Add inchash.h.
12927         * ipa-devirt.c: Include inchash.h.
12928         * lto-streamer-out.c: Dito.
12929         * tree-ssa-dom.c: Dito.
12930         * tree-ssa-pre.c: Dito.
12931         * tree-ssa-sccvn.c: Dito.
12932         * tree-ssa-tail-merge.c: Dito.
12933         * asan.c: Dito.
12934         * tree.c (iterative_hash_hashval_t): Move to ...
12935         (iterative_hash_host_wide_int): Move to ...
12936         * inchash.c: Here. New file.
12937         * tree.h (iterative_hash_hashval_t): Move to ...
12938         (iterative_hash_host_wide_int): Move to ...
12939         * inchash.h: Here. New file.
12940
12941 2014-07-25  Richard Biener  <rguenther@suse.de>
12942
12943         PR middle-end/61762
12944         PR middle-end/61894
12945         * fold-const.c (native_encode_int): Add and handle offset
12946         parameter to do partial encodings of expr.
12947         (native_encode_fixed): Likewise.
12948         (native_encode_real): Likewise.
12949         (native_encode_complex): Likewise.
12950         (native_encode_vector): Likewise.
12951         (native_encode_string): Likewise.
12952         (native_encode_expr): Likewise.
12953         * fold-const.c (native_encode_expr): Add offset parameter
12954         defaulting to -1.
12955         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12956         (fold_ctor_reference): Handle all reads from tcc_constant
12957         ctors.
12958
12959 2014-07-25  Richard Biener  <rguenther@suse.de>
12960
12961         * tree-inline.c (estimate_move_cost): Mark speed_p argument
12962         as possibly unused.
12963
12964 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12965
12966         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12967
12968 2014-07-24  Kyle McMartin  <kyle@redhat.com>
12969
12970         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12971
12972 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12973
12974         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12975         Add prototype.
12976         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12977         function.
12978         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12979         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12980         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12981
12982 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12983
12984         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12985         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12986         aggregate types.  Instead, *all* aggregate types, except for single-
12987         element or homogeneous float/vector aggregates, are quadword-aligned
12988         if required by their type alignment.  Issue -Wpsabi note when a type
12989         is now treated differently than before.
12990
12991 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12992
12993         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12994         does not fit fully into floating-point registers, and there is still
12995         space in the register parameter area, use GPRs to pass those parts
12996         of the argument.  Issue -Wpsabi note if any parameter is now treated
12997         differently than before.
12998         (rs6000_arg_partial_bytes): Update.
12999
13000 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
13001
13002         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
13003
13004 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13005
13006         * rtl.h (target_rtl): Remove lang_dependent_initialized.
13007         * toplev.c (initialize_rtl): Don't use it.  Move previously
13008         "language-dependent" calls to...
13009         (backend_init): ...here.
13010         (lang_dependent_init_target): Don't set lang_dependent_initialized.
13011         Assert that RTL initialization hasn't happend yet.
13012
13013 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13014
13015         PR rtl-optimization/61629
13016         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
13017         they have already been initialized.
13018
13019 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
13020
13021         PR middle-end/61268
13022         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
13023         DECL_INCOMING_RTL and entry_parm.
13024         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
13025         * calls.c (load_register_parameters): Likewise argument values.
13026         (emit_library_call_value_1, store_one_arg): Likewise argument
13027         save areas.
13028         * config/i386/i386.c (assign_386_stack_local): Likewise the local
13029         stack slot.
13030         * explow.c (validize_mem): Modify the argument in-place.
13031
13032 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13033
13034         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
13035         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
13036
13037 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13038
13039         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
13040         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
13041
13042 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13043
13044         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
13045         (aarch64_save_callee_saves): New parameter "skip_wb".
13046         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
13047
13048 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13049
13050         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
13051         "wb_candidate2".
13052         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
13053
13054 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
13055
13056         * graphite-isl-ast-to-gimple.c:
13057         (graphite_create_new_loop): Add calling of isl_id_free to properly
13058         decrement reference counts.
13059
13060         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
13061
13062 2014-07-24  Martin Liska  <mliska@suse.cz>
13063         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
13064         function used.
13065         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
13066         (rs6000_code_end): Likewise.
13067
13068 2014-07-24  Martin Liska  <mliska@suse.cz>
13069
13070         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
13071         symtab_node funtion used.
13072         (rs6000_xcoff_declare_object_name): Likewise.
13073
13074 2014-07-24  Martin Liska  <mliska@suse.cz>
13075
13076         * cgraphunit.c (compile): Correct function used.
13077
13078 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
13079
13080         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
13081         as non-indexable.
13082
13083 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
13084
13085         PR lto/61802
13086         * varasm.c (bss_initializer_p): Handle offlined ctors.
13087         (align_variable, get_variable_align): Likewise.
13088         (make_decl_one_only): Likewise.
13089         (default_binds_local_p_1): Likewise.
13090         (decl_binds_to_current_def_p): Likewise.
13091         (get_variable_section): Get constructor if it is offlined.
13092         (assemble_variable_contents): Sanity check that the caller
13093         streamed in the ctor in LTO.
13094
13095 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
13096
13097         * graphite-isl-ast-to-gimple.c:
13098         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
13099         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
13100         isl_ast_op_pdiv_r to the different case.
13101
13102         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
13103
13104 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13105
13106         PR middle-end/61876
13107         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
13108         when flag_errno_math is on.
13109
13110 2014-07-24  Martin Liska  <mliska@suse.cz>
13111
13112         * cgraph.h (varpool_node):
13113         (availability get_availability (void)):
13114         created from cgraph_variable_initializer_availability
13115         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
13116         created from: cgraph_variable_initializer_availability
13117         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
13118         (void finalize_named_section_flags (void)):
13119         created from varpool_finalize_named_section_flags
13120         (bool assemble_decl (void)): created from varpool_assemble_decl
13121         (void analyze (void)): created from varpool_analyze_node
13122         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
13123         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
13124         (void remove_initializer (void)): created from varpool_remove_initializer
13125         (tree get_constructor (void)): created from varpool_get_constructor
13126         (bool externally_visible_p (void)): created from varpool_externally_visible_p
13127         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
13128         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
13129         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
13130         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
13131         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
13132         (static bool output_variables (void)): created from varpool_output_variables
13133         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
13134         created from varpool_extra_name_alias
13135         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
13136         (static void dump_varpool (FILE *f)): created from dump_varpool
13137         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
13138         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
13139         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
13140         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
13141         (void assemble_aliases (void)): created from assemble_aliases
13142
13143 2014-07-24  Martin Liska  <mliska@suse.cz>
13144
13145         * cgraph.h (symtab_node):
13146         (void register_symbol (void)): created from symtab_register_node
13147         (void remove (void)): created from symtab_remove_node
13148         (void dump (FILE *f)): created from dump_symtab_node
13149         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
13150         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
13151         (struct ipa_ref *add_reference (symtab_node *referred_node,
13152         enum ipa_ref_use use_type)): created from add_reference 
13153         (struct ipa_ref *add_reference (symtab_node *referred_node,
13154         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
13155         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
13156         gimple stmt)): created from maybe_add_reference
13157         (bool semantically_equivalent_p (symtab_node *target)): created from
13158         symtab_semantically_equivalent_p
13159         (void remove_from_same_comdat_group (void)): created from
13160         remove_from_same_comdat_group
13161         (void add_to_same_comdat_group (symtab_node *old_node)): created from
13162         symtab_add_to_same_comdat_group
13163         (void dissolve_same_comdat_group_list (void)): created from
13164         symtab_dissolve_same_comdat_group_list
13165         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
13166         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
13167         created from symtab_alias_ultimate_target
13168         (inline symtab_node *next_defined_symbol (void)): created from
13169         symtab_next_defined_symbol
13170         (bool resolve_alias (symtab_node *target)): created from
13171         symtab_resolve_alias
13172         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
13173         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
13174         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
13175         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
13176         (void set_section (const char *section)): created from set_section_1 
13177         (enum availability get_availability (void)): created from symtab_node_availability
13178         (void make_decl_local (void)): created from symtab_make_decl_local
13179         (bool real_symbol_p (void)): created from symtab_read_node
13180         (can_be_discarded_p (void)): created from symtab_can_be_discarded
13181         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
13182         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
13183         symtab_in_same_comdat_p;
13184         (bool address_taken_from_non_vtable_p (void)): created from
13185         address_taken_from_non_vtable_p
13186         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
13187         (static void dump_table (FILE *)): created from dump_symtab
13188         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
13189         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
13190         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
13191         symtab_used_from_object_file_p 
13192         (void dump_base (FILE *)): created from dump_symtab_base
13193         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
13194         (void unregister (void)): created from symtab_unregister_node
13195         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
13196         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
13197         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
13198         symtab_nonoverwritable_alias_1
13199         * cgraph.h (cgraph_node):
13200         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
13201         created from cgraph_remove_node_and_inline_clones
13202         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
13203         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
13204         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
13205         (cgraph_node *function_symbol (enum availability *avail = NULL)):
13206         created from cgraph_function_node
13207         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
13208         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
13209         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
13210         created from cgraph_create_clone 
13211         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
13212         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
13213         created from cgraph_create_virtual_clone
13214         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
13215         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
13216         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
13217         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
13218         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
13219         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
13220         created from cgraph_function_version_info
13221         (struct cgraph_function_version_info *insert_new_function_version (void)):
13222         created from insert_new_cgraph_node_version
13223         (struct cgraph_function_version_info *function_version (void)): created from
13224         get_cgraph_node_version
13225         (void analyze (void)): created from analyze_function
13226         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
13227         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
13228         tree real_alias) cgraph_add_thunk
13229         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
13230         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
13231         created from cgraph_function_or_thunk_node
13232         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
13233         created from expand_thunk
13234         (void reset (void)): created from cgraph_reset_node
13235         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
13236         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
13237         (void remove (void)): created from cgraph_remove_node
13238         (void dump (FILE *f)): created from dump_cgraph_node
13239         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
13240         (bool get_body (void)): created from cgraph_get_body
13241         (void release_body (void)): created from cgraph_release_function_body
13242         (void unnest (void)): created from cgraph_unnest_node
13243         (void make_local (void)): created from cgraph_make_node_local
13244         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
13245         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
13246         gcov_type count, int freq)): created from cgraph_create_edge
13247         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
13248         gcov_type count, int freq)): created from cgraph_create_indirect_edge
13249         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
13250         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
13251         created from cgraph_create_edge_including_clones
13252         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
13253         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
13254         (void remove_callers (void)): created from cgraph_node_remove_callers
13255         (void remove_callees (void)): created from cgraph_node_remove_callees
13256         (enum availability get_availability (void)): created from cgraph_function_body_availability
13257         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
13258         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
13259         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
13260         (void call_duplication_hooks (cgraph_node *node2)): created from
13261         cgraph_call_node_duplication_hooks
13262         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
13263         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
13264         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
13265         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
13266         (void call_function_insertion_hooks (void)):
13267         created from cgraph_call_function_insertion_hooks
13268         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
13269         (bool local_p (void)): created from cgraph_local_node
13270         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
13271         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
13272         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
13273         (inline bool only_called_directly_or_aliased_p (void)):
13274         created from cgraph_only_called_directly_or_aliased_p
13275         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
13276         created from cgraph_will_be_removed_from_program_if_no_direct_calls
13277         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
13278         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
13279         (bool can_remove_if_no_direct_calls_p (void)):
13280         created from cgraph_can_remove_if_no_direct_calls_p
13281         (inline bool has_gimple_body_p (void)):
13282         created from cgraph_function_with_gimple_body_p
13283         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
13284         (static void dump_cgraph (FILE *f)): created from dump_cgraph
13285         (static inline void debug_cgraph (void)): created from debug_cgraph
13286         (static void record_function_versions (tree decl1, tree decl2)):
13287         created from record_function_versions
13288         (static void delete_function_version (tree decl)):
13289         created from delete_function_version
13290         (static void add_new_function (tree fndecl, bool lowered)):
13291         created from cgraph_add_new_function
13292         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
13293         (static cgraph_node * create (tree decl)): created from cgraph_create_node
13294         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
13295         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
13296         (static cgraph_node *get_for_asmname (tree asmname)):
13297         created from cgraph_node_for_asm
13298         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
13299         created from cgraph_same_body_alias 
13300         (static bool used_from_object_file_p_worker (cgraph_node *node,
13301         void *): new function
13302         (static bool non_local_p (cgraph_node *node, void *)):
13303         created from cgraph_non_local_node_p_1
13304         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
13305         created from verify_cgraph
13306         (static bool make_local (cgraph_node *node, void *)):
13307         created from cgraph_make_node_local
13308         (static cgraph_node *create_alias (tree alias, tree target)):
13309         created from cgraph_create_function_alias
13310         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
13311         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
13312         created from cgraph_create_edge_1
13313         * cgraph.h (varpool_node):
13314         (void remove (void)): created from varpool_remove_node
13315         (void dump (FILE *f)): created from dump_varpool_node
13316
13317 2014-07-24  Richard Biener  <rguenther@suse.de>
13318
13319         PR ipa/61823
13320         * tree-ssa-structalias.c (create_variable_info_for_1):
13321         Use varpool_get_constructor.
13322         (create_variable_info_for): Likewise.
13323
13324 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
13325
13326         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
13327         subtract outgoing area size when restoring stack_pointer_rtx.
13328
13329 2014-07-24  Nick Clifton  <nickc@redhat.com>
13330
13331         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
13332         that operations are taking place in parallel.
13333         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
13334
13335 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
13336
13337         * omp-low.c (extract_omp_for_data): Add missing break statement.
13338
13339 2014-07-24  Richard Biener  <rguenther@suse.de>
13340
13341         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
13342         * tree-inline.c (estimate_move_cost): Add speed_p parameter
13343         and adjust MOVE_RATIO query accordingly.
13344         (estimate_num_insns): Adjust callers.
13345         * ipa-prop.c (ipa_populate_param_decls): Likewise.
13346         * ipa-cp.c (gather_context_independent_values,
13347         estimate_local_effects): Likewise.
13348         * ipa-split.c (consider_split): Likewise.
13349
13350 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
13351
13352         * config/i386/driver-i386.c: Remove names of unused arguments and
13353         unnecessary unused attributes.
13354         * config/i386/host-mingw32.c: Likewise.
13355         * config/i386/i386.c: Likewise.
13356         * config/i386/winnt-stubs.c: Likewise.
13357         * config/i386/winnt.c: Likewise.
13358
13359 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13360
13361         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
13362         (aarch64_gen_loadwb_pair): New helper function.
13363         (aarch64_expand_epilogue): Simplify code using new helper functions.
13364         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
13365
13366 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13367
13368         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
13369         (aarch64_gen_storewb_pair): New helper function.
13370         (aarch64_expand_prologue): Simplify code using new helper functions.
13371         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
13372
13373 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13374
13375         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
13376         Rename to aarch64_save_callee_saves, remove restore code.
13377         (aarch64_restore_callee_saves): New function.
13378
13379 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13380
13381         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
13382         (aarch64_save_callee_saves): New function to handle reg save
13383         for both core and vectore regs.
13384
13385 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13386
13387         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
13388         (aarch64_gen_store_pair): New helper function.
13389         (aarch64_save_or_restore_callee_save_registers)
13390         (aarch64_save_or_restore_fprs): Use new helper functions.
13391
13392 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13393
13394         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
13395         (aarch64_save_or_restore_callee_save_registers)
13396         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
13397
13398 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13399
13400         * config/aarch64/aarch64.c
13401         (aarch64_save_or_restore_callee_save_registers)
13402         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
13403
13404 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13405
13406         * config/aarch64/aarch64.c
13407         (aarch64_save_or_restore_callee_save_registers)
13408         (aarch64_save_or_restore_fprs): Remove 'increment'.
13409
13410 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13411
13412         * config/aarch64/aarch64.c
13413         (aarch64_save_or_restore_callee_save_registers)
13414         (aarch64_save_or_restore_fprs): Use register offset in
13415         cfun->machine->frame.reg_offset.
13416
13417 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13418
13419         * config/aarch64/aarch64.c
13420         (aarch64_save_or_restore_callee_save_registers)
13421         (aarch64_save_or_restore_fprs): Remove base_rtx.
13422
13423 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13424
13425         * config/aarch64/aarch64.c
13426         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
13427         to 'start_offset'.  Remove local variable 'start_offset'.
13428
13429 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13430
13431         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
13432         type to HOST_WIDE_INT.
13433
13434 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13435
13436         * config/aarch64/aarch64.c (aarch64_expand_prologue)
13437         (aarch64_save_or_restore_fprs)
13438         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
13439
13440 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13441
13442         * config/arm/t-rtems-eabi: Add
13443         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
13444         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
13445         mbig-endian/mthumb/march=armv7-r, and
13446         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
13447         multilibs.
13448
13449 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13450             Chris Johns <chrisj@rtems.org>
13451             Joel Sherrill <joel.sherrill@oarcorp.com>
13452
13453         * config.gcc: Add nios2-*-rtems*.
13454         * config/nios2/rtems.h: New file.
13455         * gcc/config/nios2/t-rtems: New file.
13456
13457 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
13458
13459         PR target/61396
13460         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
13461         constant numbers, not general constants.
13462         (rs6000_expand_vector_init): Ditto.
13463
13464 2014-07-23  Nathan Sidwell  <nathan@acm.org>
13465
13466         * gcov-tool.c (gcov_list): Declare here.
13467         (set_gcov_list): Remove.
13468         (gcov_output_files): Set gcov_list directly.
13469
13470 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
13471
13472         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
13473
13474 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
13475
13476         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
13477         callee-saved registers are available for padding purpose
13478         and r3 is not mandatory, then prefer use those callee-saved
13479         instead of r3.
13480
13481 2014-07-23  Richard Biener  <rguenther@suse.de>
13482
13483         * params.def (PARAM_MAX_COMBINE_INSNS): New.
13484         * combine.c: Include statistics.h and params.h.
13485         (combine_instructions): Guard three and four insn combines
13486         with max-combine-insns value.  Record statistics for combines
13487         performed.
13488         * doc/invoke.texi (max-combine-insns): Document new param.
13489
13490 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
13491
13492         * graphite-isl-ast-to-gimple.c:
13493         (translate_isl_ast_node_block): New function.
13494         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13495
13496         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13497         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13498
13499 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
13500
13501         * graphite-isl-ast-to-gimple.c:
13502         (get_max_schedule_dimensions): New function.
13503         (extend_schedule): Likewise.
13504         (generate_isl_schedule): Add calling of extend_schedule and
13505         get_max_schedule_dimensions.
13506
13507 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13508
13509         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13510         (case UNSPEC): Handle UNSPEC_RBIT.
13511
13512 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13513
13514         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13515         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13516
13517 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13518
13519         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13520
13521 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
13522
13523         * graphite-isl-ast-to-gimple.c:
13524         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13525         (ivs_params_clear):
13526         (build_iv_mapping): New function.
13527         (translate_isl_ast_node_user): Likewise.
13528         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13529
13530         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13531         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13532         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13533
13534 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
13535
13536         PR target/55701
13537         * config/arm/arm.md (setmem): New pattern.
13538         * config/arm/arm-protos.h (struct tune_params): New fields.
13539         (arm_gen_setmem): New prototype.
13540         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13541         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13542         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13543         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13544         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13545         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13546         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13547         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13548         (arm_const_inline_cost): New function.
13549         (arm_block_set_max_insns): New function.
13550         (arm_block_set_non_vect_profit_p): New function.
13551         (arm_block_set_vect_profit_p): New function.
13552         (arm_block_set_unaligned_vect): New function.
13553         (arm_block_set_aligned_vect): New function.
13554         (arm_block_set_unaligned_non_vect): New function.
13555         (arm_block_set_aligned_non_vect): New function.
13556         (arm_block_set_vect, arm_gen_setmem): New functions.
13557
13558 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
13559
13560         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13561
13562 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
13563
13564         PR target/61855
13565         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13566         out of #ifdef __OPTIMIZE__.
13567
13568 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
13569
13570         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13571         different trapping status if -fnon-call-exceptions is enabled.
13572
13573 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
13574
13575         * expr.c (store_field): Handle VOIDmode for calls that return values
13576         in multiple locations.
13577
13578 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13579
13580         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
13581         (altivec_vsldoi_<mode>): Likewise.
13582
13583 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
13584
13585         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13586         to the number of characters in the line.
13587
13588 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
13589
13590         * graphite-isl-ast-to-gimple.c: Add using of
13591         build_nonstandard_integer_type instead of int128_integer_type_node.
13592
13593 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
13594
13595         * toplev.c (output_stack_usage): Adjust the location of the warning.
13596
13597 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
13598
13599         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13600         (*membar_storeload): Disable for LEON3.
13601
13602 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13603
13604         PR rtl-optimization/61461
13605         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13606
13607 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
13608
13609         PR target/61794
13610         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13611         Fix instruction constraint.
13612         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13613
13614 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
13615
13616         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13617
13618 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
13619
13620         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13621         GNU coding standards.
13622         (nds32_register_move_cost): Likewise.
13623         (nds32_memory_move_cost): Likewise.
13624         (nds32_address_cost): Likewise.
13625
13626 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13627
13628         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13629
13630 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
13631
13632         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13633         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13634         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13635         (HAVE_sync_compare_and_swapqi): Define.
13636         (HAVE_sync_compare_and_swaphi): Likewise.
13637         (HAVE_sync_compare_and_swapsi): Likewise.
13638
13639 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
13640
13641         * config/mips/p5600.md: Add missing cpu tests.
13642
13643 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13644
13645         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13646         (vmla_f64): Likewise.
13647         (vfms_f64): Likewise.
13648         (vmls_f64): Likewise.
13649
13650 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13651
13652         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13653         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13654
13655 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13656
13657         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13658         (vmlal_high_lane_s32): Likewise.
13659         (vmlal_high_lane_u16): Likewise.
13660         (vmlal_high_lane_u32): Likewise.
13661         (vmlsl_high_lane_s16): Likewise.
13662         (vmlsl_high_lane_s32): Likewise.
13663         (vmlsl_high_lane_u16): Likewise.
13664         (vmlsl_high_lane_u32): Likewise.
13665
13666 2014-07-17  Terry Guo  <terry.guo@arm.com>
13667
13668         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13669         (alus_reg): Renamed to alus_sreg.
13670         * config/arm/arm-fixed.md: Change type of non-dsp instructions
13671         from alu_reg to alu_sreg.  Change type of dsp instructions from
13672         alu_reg to alu_dsp_reg.
13673         * config/arm/thumb1.md: Likewise.
13674         * config/arm/thumb2.md: Likewise.
13675         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13676         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13677         with alu_sreg and alus_sreg.
13678         * config/arm/arm1026ejs.md (alu_op): Likewise.
13679         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13680         * config/arm/arm926ejs.md (9_alu_op): Likewise.
13681         * config/arm/fa526.md (526_alu_op): Likewise.
13682         * config/arm/fa606te.md (606te_alu_op): Likewise.
13683         * config/arm/fa626te.md (626te_alu_op): Likewise.
13684         * config/arm/fa726te.md (726te_alu_op): Likewise.
13685         * config/arm/fmp626.md (mp626_alu_op): Likewise.
13686         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13687         alu_sreg, alu_dsp_reg and alus_sreg.
13688         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13689         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13690         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13691         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13692         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13693         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13694         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13695         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13696         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13697         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13698         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13699         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13700         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13701         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13702         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13703         alus_reg to alus_sreg.
13704
13705 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
13706
13707         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13708         infinity format.
13709
13710 2014-07-17  Richard Biener  <rguenther@suse.de>
13711
13712         PR rtl-optimization/61801
13713         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13714         don't set reg_pending_barrier if it appears in a debug-insn.
13715
13716 2014-07-16  DJ Delorie  <dj@redhat.com>
13717
13718         * config/rx/rx.c (rx_option_override): Fix alignment values.
13719         (rx_align_for_label): Likewise.
13720
13721 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
13722
13723         PR target/61737.
13724         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13725         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13726         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13727         functions.
13728         (cris_print_index, cris_print_operand, cris_constant_index_p)
13729         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13730         (cris_address_cost): Ditto last CONSTANT_P.
13731         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
13732         callers changed.  Yield cris_offsettable_symbol for non-PIC
13733         constant symbolic expressions including labels.  Yield cris_unspec
13734         for all unspecs.
13735         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
13736         target to pic_offset_table_rtx for calls that will likely go
13737         through PLT, const0_rtx when they can't.  All callers changed.
13738         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13739         symbolic expressions to be PICified.  Remove second, redundant,
13740         assert on can_create_pseudo_p returning non-zero.  Use
13741         replace_equiv_address_nv, not replace_equiv_address, for final
13742         operand update.
13743         * config/cris/cris.md ("movsi"): Move variable t to pattern
13744         toplevel. Adjust assert for new cris_symbol_type member.  Use
13745         CONSTANT_P instead of CONSTANT_ADDRESS_P.
13746         ("*movsi_internal") <case 9>: Make check for valid unspec operands
13747         for lapc stricter.
13748         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13749         ("call", "call_value"): Use second incoming operand as a marker
13750         for pic-offset-table-register being used.
13751         ("*expanded_call_non_v32", "*expanded_call_v32")
13752         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13753         second incoming operand to CALL, match cris_call_type_marker.
13754         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
13755         ("*expanded_call_side"): Ditto.  Fix typo in comment.
13756         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13757         CONSTANT_P.
13758         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13759         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13760         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
13761         users changed.  Add members cris_offsettable_symbol and cris_unspec.
13762         (cris_symbol_type): Rename from cris_pic_symbol_type.
13763         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13764         just CONSTANT_P.
13765         * config/cris/cris-protos.h (cris_symbol_type_of,
13766         cris_expand_pic_call_address): Adjust prototypes.
13767         (cris_legitimate_constant_p): New prototype.
13768
13769         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13770         an existing tmake_file.  Don't add t-slibgcc and t-linux.
13771
13772 2014-07-17  Jason Merrill  <jason@redhat.com>
13773
13774         PR c++/61623
13775         * symtab.c (symtab_remove_from_same_comdat_group): Also
13776         set_comdat_group to NULL_TREE.
13777         (verify_symtab): Fix diagnostic.
13778
13779 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
13780
13781         PR target/61662
13782         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13783
13784 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
13785
13786         Support location tracking for built-in macro tokens
13787         * input.h (is_location_from_builtin_token): New function declaration.
13788         * input.c (is_location_from_builtin_token): New function definition.
13789         * toplev.c (general_init): Tell libcpp what the pre-defined
13790         spelling location for built-in tokens is.
13791
13792 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
13793
13794         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13795         on the FUNCTION_DECL.
13796
13797 2014-07-16  Richard Biener  <rguenther@suse.de>
13798
13799         PR other/61782
13800         * doc/extend.texi (always_inline): Clarify.
13801
13802 2014-07-15  Eric Christopher  <echristo@gmail.com>
13803
13804         * doc/invoke.texi (Link Options): Document -z option.
13805
13806 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
13807
13808         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13809         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13810
13811 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
13812
13813         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13814
13815 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
13816
13817         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13818         varpool_assemble_decl.
13819         * varpool.c (varpool_assemble_decl): Assert that node->definition is
13820         true.
13821
13822 2014-07-15  Michael Matz  <matz@suse.de>
13823
13824         PR rtl-optimization/61772
13825         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13826
13827 2014-07-15  Richard Biener  <rguenther@suse.de>
13828
13829         * opts.c (default_options_table): Disable bit-ccp at -Og.
13830
13831 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13832
13833         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13834
13835 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13836
13837         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13838         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13839         call langhook for unknown declaration.
13840         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13841         * tree.h (DECL_ARGUMENTS): Update.
13842         * print-tree.c (print_node): Update.
13843         * tree-core.h (tree_decl_non_common): Remove arguments.
13844         (tree_function_decl): Add arguments.
13845
13846 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
13847
13848         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13849
13850 2014-07-14  Richard Biener  <rguenther@suse.de>
13851
13852         PR tree-optimization/61779
13853         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13854         simplifying a condition.
13855
13856 2014-07-14  Richard Biener  <rguenther@suse.de>
13857
13858         * builtins.c (c_strlen): Make only_value == 2 really only
13859         affect warning generation.
13860
13861 2014-07-14  Richard Biener  <rguenther@suse.de>
13862
13863         PR tree-optimization/61757
13864         PR tree-optimization/61783
13865         PR tree-optimization/61787
13866         * tree-ssa-dom.c (record_equality): Revert canonicalization
13867         change and add comment.
13868         (propagate_rhs_into_lhs): Revert previous fix, removing
13869         loop depth restriction again.
13870
13871 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13872
13873         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13874         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13875         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13876         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13877         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13878         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13879         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13880
13881 2014-07-14  Richard Biener  <rguenther@suse.de>
13882
13883         * cgraph.h (decl_in_symtab_p): Make inline.
13884
13885 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
13886
13887         PR middle-end/61294
13888         * doc/invoke.texi (-Wmemset-transposed-args): Document.
13889
13890         PR target/61656
13891         * config/i386/i386.c (classify_argument): Don't merge classes above
13892         number of words.
13893
13894 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
13895
13896         * cgraph.h (symtab_node): Add nonzero_address.
13897         (decl_in_symtab_p): Break out from ...
13898         (symtab_get_node): ... here.
13899         * fold-const.c: Include cgraph.h
13900         (tree_single_nonzero_warnv_p): Use symtab to determine
13901         if symbol is non-zero.
13902         * symtab.c (symtab_node::nonzero_address): New method.
13903
13904 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13905
13906         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13907         forgotten in previous commit.
13908
13909 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13910
13911         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13912         on builtin types.
13913         * ipa-devirt.c: Include stor-layout.h and intl.h
13914         (odr_subtypes_equivalent_p): New function.
13915         (warn_odr): New function.
13916         (warn_type_mismatch): New function.
13917         (odr_types_equivalent_p): New function.
13918         (add_type_duplicate): Use it.
13919         * common.opt (Wodr): New flag.
13920         * doc/invoke.texi (Wodr): Document new warning.
13921
13922 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13923
13924         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13925         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13926         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13927         (varpool_get_constructor): Push CTORS_IN timevar.
13928         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13929
13930 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
13931
13932         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13933         Remove VOID_FTYPE_PUSHORT.
13934         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13935         Change code to USHORT_FTYPE_VOID.
13936         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13937         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13938         (ix86_atomic_assign_expand_fenv): Update for
13939         __builtin_ia32_fnstsw changes.
13940         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13941         (fnstsw): Change operand 0 to nonimmediate operand.
13942
13943 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13944
13945         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13946         (varpool_get_constructor): New function.
13947         (varpool_ctor_useable_for_folding_p): Break out from ...
13948         (ctor_for_folding): ... here; use varpool_get_constructor.
13949         (varpool_assemble_decl): Likewise.
13950         * lto-streamer.h (struct output_block): Turn cgraph_node
13951         to symbol filed.
13952         (lto_input_variable_constructor): Declare.
13953         * ipa-visibility.c (function_and_variable_visibility): Use
13954         varpool_get_constructor.
13955         * cgraph.h (varpool_get_constructor): Declare.
13956         (varpool_ctor_useable_for_folding_p): New function.
13957         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13958         parameter; return error_mark_node for non-trivial constructors.
13959         (lto_write_tree_1, DFS_write_tree): Update use of
13960         get_symbol_initial_value.
13961         (output_function): Update initialization of symbol.
13962         (output_constructor): New function.
13963         (copy_function): Rename to ..
13964         (copy_function_or_variable): ... this one; handle vars too.
13965         (lto_output): Output variable sections.
13966         * lto-streamer-in.c (input_constructor): New function.
13967         (lto_read_body): Rename from ...
13968         (lto_read_body_or_constructor): ... this one; handle vars too.
13969         (lto_input_variable_constructor): New function.
13970         * ipa-prop.c (ipa_prop_write_jump_functions,
13971         ipa_prop_write_all_agg_replacement): Update.
13972         * lto-cgraph.c (compute_ltrans_boundary): Use it.
13973         (output_cgraph_opt_summary): Set symbol to NULL.
13974
13975 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13976
13977         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13978         non-polymorphic types.
13979         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13980         * ipa-devirt.c (types_same_for_odr): Do not explode when one
13981         of types is not polymorphic.
13982
13983 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
13984
13985         * lra-constraints.c (remove_inheritance_pseudos): Process
13986         destination pseudo too.
13987
13988 2014-07-11  Rong Xu  <xur@google.com>
13989
13990         * gcov-tool.c (gcov_output_files): Fix build error introduced in
13991         commit r212448.
13992
13993 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13994
13995         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13996         * config/avr/avr-devices.c (AVR_MCU): Same.
13997         (avr_mcu_types): add text start value to end of device list.
13998         * config/avr/avr-mcus.def: Add text section start for all devices.
13999         (ata5782): Add new avr5 device.
14000         (ata5831): Same.
14001         * config/avr/avr-tables.opt: Regenerate.
14002         * config/avr/avr.h: Add declaration for text section start handler.
14003         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
14004         SPEC functions.
14005         (LINK_SPEC): Include text section start handler to linker spec.
14006         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
14007         pass -Ttext option to linker if the text section start for the device
14008         is not zero.
14009         * config/avr/t-multilib: Regenerate.
14010         * doc/avr-mmcu.texi: Regenerate.
14011
14012 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
14013
14014         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
14015         * config/rs6000/aix52.h (LINK_SPEC): Same.
14016         * config/rs6000/aix53.h (LINK_SPEC): Same.
14017         * config/rs6000/aix61.h (LINK_SPEC): Same.
14018         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
14019
14020 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
14021
14022         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
14023         (graphite_verify): New function.
14024         (ivs_params_clear): New function.
14025         (gcc_expression_from_isl_ast_expr_id): New function.
14026         (gcc_expression_from_isl_expr_int): New function.
14027         (binary_op_to_tree): New function.
14028         (ternary_op_to_tree): New function.
14029         (unary_op_to_tree): New function.
14030         (nary_op_to_tree): New function.
14031         (gcc_expression_from_isl_expr_op): New function.
14032         (gcc_expression_from_isl_expression): New function.
14033         (graphite_create_new_loop): New function.
14034         (translate_isl_ast_for_loop): New function.
14035         (get_upper_bound): New function.
14036         (graphite_create_new_loop_guard): New function.
14037         (translate_isl_ast_node_for): New function.
14038         (translate_isl_ast): New function.
14039         (add_parameters_to_ivs_params): New function.
14040         (scop_to_isl_ast): New parameter ip.
14041         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
14042
14043 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
14044
14045         * config/xtensa/predicates.md (call expander): Update for
14046         DECL_SECTION_NAME being string.
14047
14048 2014-07-11  Richard Biener  <rguenther@suse.de>
14049
14050         PR middle-end/61473
14051         * builtins.c (fold_builtin_memory_op): Inline memory moves that
14052         can be implemented with a single load followed by a single store.
14053         (c_strlen): Only warn when only_value is not 2.
14054
14055 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
14056
14057         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
14058
14059 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
14060
14061         PR target/61561
14062         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
14063         (*movhi_bytes): Likewise.
14064         (*arm_movqi_insn): Likewise.
14065
14066 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
14067
14068         PR target/56858
14069         * config/alpha/alpha.c: Include tree-pass.h, context.h
14070         and pass_manager.h.
14071         (pass_data_handle_trap_shadows): New pass.
14072         (pass_handle_trap_shadows::gate): New pass gate function.
14073         (make_pass_handle_trap_shadows): New function.
14074         (rest_of_handle_trap_shadows): Ditto.
14075
14076         (alpha_align_insns_1): Rename from alpha_align_insns.
14077         (pass_data_align_insns): New pass.
14078         (pass_align_insns::gate): New pass gate function.
14079         (make_pass_aling_insns): New function.
14080         (rest_of_align_insns): Ditto.
14081         (alpha_align_insns): Ditto.
14082
14083         (alpha_option_override): Declare handle_trap_shadows info
14084         and align_insns_info.  Register handle_trap_shadows and align_insns
14085         passes here.
14086         (alpha_reorg): Do not call alpha_trap_shadows and
14087         alpha_align_insn from here.
14088
14089         (alpha_pad_function_end): Do not skip BARRIERs.
14090
14091 2014-07-10  Rong Xu  <xur@google.com>
14092
14093         Add gcov-tool: an offline gcda profile processing tool support.
14094         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
14095         (gcov_is_error): Ditto.
14096         (gcov_read_string): Ditto.
14097         (gcov_read_sync): Ditto.
14098         * gcov-io.h: Move counter defines to gcov-counter.def.
14099         * gcov-dump.c (tag_counters): Use gcov-counter.def.
14100         * coverage.c: Ditto.
14101         * gcov-tool.c: Offline gcda profile processing tool.
14102         (unlink_gcda_file): Remove one gcda file.
14103         (unlink_profile_dir): Remove gcda files from the profile path.
14104         (gcov_output_files): Output gcda files to an output dir.
14105         (profile_merge): Merge two profiles in directory.
14106         (print_merge_usage_message): Print merge usage.
14107         (merge_usage): Print merge usage and exit.
14108         (do_merge): Driver for profile merge sub-command.
14109         (profile_rewrite): Rewrite profile.
14110         (print_rewrite_usage_message): Print rewrite usage.
14111         (rewrite_usage): Print rewrite usage and exit.
14112         (do_rewrite): Driver for profile rewrite sub-command.
14113         (print_usage): Print gcov-info usage and exit.
14114         (print_version): Print gcov-info version.
14115         (process_args): Process arguments.
14116         (main): Main routine for gcov-tool.
14117         * Makefile.in: Build and install gcov-tool.
14118         * gcov-counter.def: New file split from gcov-io.h.
14119         * doc/gcc.texi: Include gcov-tool.texi.
14120         * doc/gcov-tool.texi: Document for gcov-tool.
14121
14122 2014-07-10  Richard Biener  <rguenther@suse.de>
14123
14124         PR tree-optimization/61757
14125         * tree-ssa-dom.c (loop_depth_of_name): Restore.
14126         (propagate_rhs_into_lhs): Revert part of last change.
14127
14128 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
14129
14130         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
14131         FUNCTION_DECLs.
14132
14133 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
14134
14135         PR middle-end/53590
14136         * function.c (allocate_struct_function): Revert r188667 change.
14137
14138         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
14139
14140 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
14141
14142         * doc/install.texi: Remove links to defunct package providers for
14143         Solaris.
14144
14145 2014-07-09  Tom de Vries  <tom@codesourcery.com>
14146
14147         * final.c (get_call_fndecl): Declare.
14148         (self_recursive_call_p): New function.
14149         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
14150
14151 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14152
14153         * ipa-devirt.c (record_node): Walk through aliases.
14154
14155 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14156
14157         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
14158
14159 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14160
14161         Revert:
14162         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14163
14164 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14165
14166         * ipa-visibility.c (function_and_variable_visibility): Remove
14167         temporary hack disabling local aliases on AIX.
14168
14169 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14170
14171         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
14172         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
14173
14174 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14175
14176         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
14177         * rs6000/rs6000.c: Inline output of .set instruction.
14178         (declare_alias_data): New struct.
14179         (rs6000_declare_alias): New function.
14180         (rs6000_xcoff_declare_function_name): Use it.
14181         (rs6000_xcoff_declare_object_name): New function.
14182         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
14183         (ASM_OUTPUT_DEF): Turn to empty definition.
14184
14185 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14186
14187         PR bootstrap/61679
14188         * hash-table.h: use hash_table::value_type instead of
14189         Descriptor::value_type in the return types of several methods.
14190
14191 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14192
14193         * tree-pass.h (pass_data): Remove has_execute member.
14194         * passes.c (execute_one_pass): Don't check pass->has_execute.
14195         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
14196         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
14197         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
14198         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
14199         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
14200         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
14201         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
14202         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
14203         gimple-low.c, gimple-ssa-isolate-paths.c,
14204         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
14205         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
14206         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
14207         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
14208         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
14209         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
14210         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
14211         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
14212         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
14213         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
14214         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
14215         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14216         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14217         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14218         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14219         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
14220         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
14221         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14222         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14223         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
14224         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
14225         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
14226         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
14227         web.c: Remove initializer for pass_data::has_execute.
14228
14229 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
14230
14231         * graphite-htab.h: Use hash_map instead of hash_table.
14232         * graphite-clast-to-gimple.c: Adjust.
14233         * passes.c: Use hash_map instead of hash_table.
14234         * sese.c: Likewise.
14235         * sese.h: Remove now unused code.
14236
14237 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
14238
14239         PR target/61599
14240         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
14241         than zero.
14242
14243 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
14244
14245         PR rtl-optimization/61673
14246         * combine.c (simplify_comparison): Test just mode's sign bit
14247         in tmode rather than the sign bit and any bits above it.
14248
14249 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
14250
14251         * graphite-isl-ast-to-gimple.c (generate_isl_context):
14252         Add __isl_give to the declaration.
14253         (generate_isl_schedule): Likewise.
14254         (scop_to_isl_ast): Likewise.
14255
14256 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14257
14258         * config/arm/arm.c (cortexa5_extra_costs): New table.
14259         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
14260
14261 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
14262
14263         PR tree-optimization/61725
14264         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
14265         range, use range_includes_zerop_p instead of integer_zerop on
14266         vr0->min, only use log2 of max if min is not negative.
14267
14268 2014-07-08  Richard Biener  <rguenther@suse.de>
14269
14270         * tree-ssa-dom.h (loop_depth_of_name): Remove.
14271         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
14272         restriction on loop depth difference.
14273         (record_equality): Likewise.
14274         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
14275         (loop_depth_of_name): Remove.
14276         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
14277         restriction on loop depth difference.
14278         (init_copy_prop): Likewise.
14279
14280 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
14281
14282         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
14283         parameter.
14284         (walk_aliased_vdefs): Likewise.
14285         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
14286         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
14287         (detect_type_change_from_memory_writes): Check if entry was reached.
14288
14289 2014-07-08  Richard Biener  <rguenther@suse.de>
14290
14291         PR tree-optimization/61681
14292         * tree-ssa-structalias.c (find_what_var_points_to): Expand
14293         NONLOCAL inside ESCAPED.
14294
14295 2014-07-08  Richard Biener  <rguenther@suse.de>
14296
14297         PR tree-optimization/61680
14298         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14299         Handle properly all read-write dependences with group accesses.
14300
14301 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
14302
14303         PR tree-optimization/61576
14304         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
14305         block containing reduction statement is predecessor of phi basi block.
14306
14307 2014-07-08  Marek Polacek  <polacek@redhat.com>
14308
14309         PR c/60226
14310         * fold-const.c (round_up_loc): Change the parameter type.
14311         Remove assert.
14312         * fold-const.h (round_up_loc): Adjust declaration.
14313         * stor-layout.c (finalize_record_size): Check for too large types.
14314
14315 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
14316
14317         * symtab.c: Include calls.h.
14318         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
14319
14320 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
14321
14322         * config/rs6000/rs6000.c (output_vec_const_move): Handle
14323         little-endian code generation.
14324         * config/rs6000/spe.md (spe_evmergehi): Rename to...
14325         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
14326         (spe_evmergehilo): Rename to...
14327         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
14328         (spe_evmergelo): Rename to...
14329         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
14330         (spe_evmergelohi): Rename to...
14331         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
14332         (spe_evmergehi, spe_evmergehilo): New expanders.
14333         (spe_evmergelo, spe_evmergelohi): Likewise.
14334         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
14335         (*frob_tf_ti): Likewise.
14336         (*frob_<mode>_di_2): Likewise.
14337         (*frob_tf_di_8_2): Likewise.
14338         (*frob_di_<mode>): Likewise.
14339         (*frob_ti_tf): Likewise.
14340         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
14341         (*frob_ti_<mode>_8_2): Likewise.
14342         (*frob_ti_tf_2): Likewise.
14343         (mov_si<mode>_e500_subreg0): Rename to...
14344         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
14345         endianness only.
14346         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
14347         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
14348         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
14349         the big endianness only.
14350         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
14351         (*mov_si<mode>_e500_subreg0_2): Rename to...
14352         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
14353         big big endianness only.
14354         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
14355         (*mov_si<mode>_e500_subreg4): Rename to...
14356         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
14357         endianness only.
14358         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
14359         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
14360         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
14361         the big endianness only.
14362         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
14363         pattern.
14364         (*mov_si<mode>_e500_subreg4_2): Rename to...
14365         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
14366         endianness only.
14367         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
14368         (*mov_sitf_e500_subreg8): Rename to...
14369         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
14370         endianness only.
14371         (*mov_sitf_e500_subreg8_le): New instruction pattern.
14372         (*mov_sitf_e500_subreg8_2): Rename to...
14373         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
14374         endianness only.
14375         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
14376         (*mov_sitf_e500_subreg12): Rename to...
14377         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
14378         endianness only.
14379         (*mov_sitf_e500_subreg12_le): New instruction pattern.
14380         (*mov_sitf_e500_subreg12_2): Rename to...
14381         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
14382         endianness only.
14383         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
14384
14385 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
14386
14387         * asan.c (instrument_strlen_call): Do not instrument first byte
14388         in strlen if already instrumented.
14389
14390 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14391
14392         * config/arm/arm.opt (mwords-little-endian): Delete.
14393         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
14394         of TARGET_LITTLE_WORDS.
14395         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
14396         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
14397         warning.
14398         * doc/invoke.texi: Remove references to -mwords-little-endian.
14399
14400 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
14401
14402         * expmed.c (struct init_expmed_rtl): Change all fields but
14403         pow2 and cint from struct rtx_def to rtx.
14404         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
14405         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
14406         at the end again.
14407
14408 2014-07-06  Marek Polacek  <polacek@redhat.com>
14409
14410         PR c/6940
14411         * doc/invoke.texi: Document -Wsizeof-array-argument.
14412
14413 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14414
14415         * wide-int.h (wide_int_storage): Change declaration from struct
14416         to class.
14417
14418 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
14419
14420         * cgraph.c (cgraph_create_indirect_edge): Update call of
14421         get_polymorphic_call_info.
14422         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
14423         (possible_polymorphic_call_targets): Add parameter call.
14424         (decl_maybe_in_construction_p): New predicate.
14425         (get_polymorphic_call_info): Add parameter call;
14426         use decl_maybe_in_construction_p.
14427         * gimple-fold.c (fold_gimple_assign): Update use of
14428         possible_polymorphic_call_targets.
14429         (gimple_fold_call): Likewise.
14430         * ipa-prop.c: Inlcude calls.h
14431         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
14432         (param_type_may_change_p): New predicate.
14433         (detect_type_change_from_memory_writes): Break out from ...
14434         (detect_type_change): ... this one; use param_type_may_change_p.
14435         (detect_type_change_ssa): Use param_type_may_change_p.
14436         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
14437
14438 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
14439
14440         PR target/49423
14441         * config/arm/arm-protos.h (arm_legitimate_address_p,
14442         arm_is_constant_pool_ref): Add prototypes.
14443         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
14444         (arm_is_constant_pool_ref) New function.
14445         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
14446         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
14447         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
14448         operand. Remove pool_range and neg_pool_range attributes.
14449         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
14450         pool_range and neg_pool_range attributes.
14451         * config/arm/constraints.md (Uh): New constraint.
14452         (Uq): Don't allow constant pool references.
14453
14454 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
14455
14456         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
14457         (move_lo_quad_internal_be_<mode>): Likewise.
14458         (move_lo_quad_<mode>): Convert to define_expand.
14459         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
14460         (aarch64_simd_move_hi_quad_be_<mode>): New.
14461         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
14462         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
14463         (aarch64_combinez_be<mode>): New.
14464         (aarch64_combine<mode>): Convert to define_expand.
14465         (aarch64_combine_internal<mode>): New.
14466         (aarch64_simd_combine<mode>): Remove bogus RTL description.
14467
14468 2014-07-04  Tom de Vries  <tom@codesourcery.com>
14469
14470         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
14471         combination of earlyclobber and read/write modifiers.
14472
14473 2014-07-04  Tom de Vries  <tom@codesourcery.com>
14474
14475         * config/aarch64/aarch64-simd.md
14476         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
14477
14478 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
14479
14480         PR target/61714
14481         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14482
14483 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
14484
14485         PR middle-end/61654
14486         * cgraphunit.c (expand_thunk): Call free_dominance_info.
14487
14488         PR tree-optimization/61684
14489         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14490         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14491
14492 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14493             Kito Cheng  <kito@0xlab.org>
14494             Monk Chiang  <sh.chiang04@gmail.com>
14495
14496         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14497         (nds32_symbol_load_store_p): Move to ...
14498         (nds32_fp_as_gp_check_available): Move to ...
14499         * config/nds32/nds32-fp-as-gp.c: ... here.
14500         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14501         extern declaration.
14502
14503 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14504             Kito Cheng  <kito@0xlab.org>
14505             Monk Chiang  <sh.chiang04@gmail.com>
14506
14507         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14508         (nds32_expand_store_multiple): Move to ...
14509         (nds32_expand_movmemqi): Move to ...
14510         * config/nds32/nds32-memory-manipulation.c: ... here.
14511
14512 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14513             Kito Cheng  <kito@0xlab.org>
14514             Monk Chiang  <sh.chiang04@gmail.com>
14515
14516         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14517         (nds32_output_casesi_pc_relative): Move to ...
14518         (nds32_output_casesi): Move to ...
14519         (nds32_mem_format): Move to ...
14520         (nds32_output_16bit_store): Move to ...
14521         (nds32_output_16bit_load): Move to ...
14522         (nds32_output_32bit_store): Move to ...
14523         (nds32_output_32bit_load): Move to ...
14524         (nds32_output_32bit_load_s): Move to ...
14525         (nds32_output_stack_push): Move to ...
14526         (nds32_output_stack_pop): Move to ...
14527         * config/nds32/nds32-md-auxiliary.c: ... here.
14528
14529 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14530             Ling-Hua Tseng  <uranus@tinlans.org>
14531
14532         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14533         the purpose of this file.
14534
14535 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14536             Kito Cheng  <kito@0xlab.org>
14537             Monk Chiang  <sh.chiang04@gmail.com>
14538
14539         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14540         (nds32_address_cost): Move implementation to ...
14541         * config/nds32/nds32-cost.c: ... here.
14542         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14543         (nds32_address_cost_impl): Declare.
14544
14545 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14546             Kito Cheng  <kito@0xlab.org>
14547             Monk Chiang  <sh.chiang04@gmail.com>
14548
14549         * config/nds32/nds32.c
14550         (nds32_consecutive_registers_load_store_p): Move to ...
14551         (nds32_valid_multiple_load_store): Move to ...
14552         (nds32_valid_stack_push_pop): Move to ...
14553         (nds32_can_use_bclr_p): Move to ...
14554         (nds32_can_use_bset_p): Move to ...
14555         (nds32_can_use_btgl_p): Move to ...
14556         (nds32_can_use_bitci_p): Move to ...
14557         * config/nds32/nds32-predicates.c: ... here.
14558
14559 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14560             Kito Cheng  <kito@0xlab.org>
14561             Monk Chiang  <sh.chiang04@gmail.com>
14562
14563         * config/nds32/nds32.c
14564         (nds32_expand_builtin_null_ftype_reg): Move to ...
14565         (nds32_expand_builtin_reg_ftype_imm): Move to ...
14566         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14567         (nds32_init_builtins): Move implementation to ...
14568         (nds32_expand_builtin): Move implementation to ...
14569         * config/nds32/nds32-intrinsic.c: ... here.
14570         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14571         (nds32_expand_builtin_impl): Declare.
14572
14573 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14574             Kito Cheng  <kito@0xlab.org>
14575             Monk Chiang  <sh.chiang04@gmail.com>
14576
14577         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14578         (nds32_emit_section_tail_template): Move to ...
14579         (nds32_emit_isr_jmptbl_section): Move to ...
14580         (nds32_emit_isr_vector_section): Move to ...
14581         (nds32_emit_isr_reset_conten): Move to ...
14582         (nds32_check_isr_attrs_conflict): Move to ...
14583         (nds32_construct_isr_vectors_information): Move to ...
14584         (nds32_asm_file_start): Move implementation to ...
14585         (nds32_asm_file_end): Move implementation to ...
14586         * config/nds32/nds32-isr.c: ... here.
14587         * config/nds32/nds32-protos.h
14588         (nds32_check_isr_attrs_conflict): Declare.
14589         (nds32_construct_isr_vectors_information): Declare.
14590         (nds32_asm_file_start_for_isr): Declare.
14591         (nds32_asm_file_end_for_isr): Declare.
14592
14593 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
14594             Kito Cheng  <kito@0xlab.org>
14595             Monk Chiang  <sh.chiang04@gmail.com>
14596
14597         * config.gcc (nds32*): Add new modules to extra_objs.
14598         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14599         (nds32be-*-*): Likewise.
14600         * config/nds32/nds32-cost.c: New file.
14601         * config/nds32/nds32-fp-as-gp.c: New file.
14602         * config/nds32/nds32-intrinsic.c: New file.
14603         * config/nds32/nds32-isr.c: New file.
14604         * config/nds32/nds32-md-auxiliary.c: New file.
14605         * config/nds32/nds32-memory-manipulation.c: New file.
14606         * config/nds32/nds32-pipelines-auxiliary.c: New file.
14607         * config/nds32/nds32-predicates.c: New file.
14608         * config/nds32/t-nds32: New file.
14609
14610 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14611
14612         PR tree-optimization/61682
14613         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14614         using cases and when one of the operands is equal to 1.
14615
14616 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
14617
14618         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14619         ashr<mode>3): Correct mode of operands[2].
14620         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14621         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14622         Correct mode of operands[2].  Fix split condition.
14623
14624 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
14625
14626         * arm.md (arch): Add armv6_or_vfpv3.
14627         (arch_enabled): Add test for the above.
14628         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14629         on VFP9.
14630         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14631
14632 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14633
14634         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14635         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14636         HWI 1 and negate the unsigned value.
14637         * expmed.c (expand_sdiv_pow2): For modes wider than word always
14638         use AND instead of shift.
14639         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14640
14641 2014-07-03  Marek Polacek  <polacek@redhat.com>
14642
14643         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14644         (-fsanitize=float-divide-by-zero): Move to the table with
14645         -fsanitize=undefined suboptions.
14646         (-fsanitize=float-cast-overflow): Likewise.
14647
14648 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
14649
14650         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14651         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14652         endianness.
14653
14654 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14655
14656         * loop-invariant.c (struct invariant): Add a new member: eqno;
14657         (find_identical_invariants): Update eqno;
14658         (create_new_invariant): Init eqno;
14659         (get_inv_cost): Compute comp_cost with eqno;
14660
14661 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14662
14663         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14664         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14665         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14666         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14667         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14668
14669 2014-07-02  Christian Bruel  <christian.bruel@st.com>
14670
14671         PR target/29349
14672         PR target/53513
14673         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14674         (make_preds_opaque): Delete.
14675         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14676         (commit_mode_sets): New function.
14677         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14678         Process all modes at once.
14679         * basic-block.h (pre_edge_lcm_avs): Declare.
14680         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14681         Call clear_aux_for_edges. Fix comments.
14682         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14683         (pre_edge_rev_lcm): Idem.
14684         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14685         parameter.
14686         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14687         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14688         Idem.
14689         * config/i386/i386.c (x96_emit_mode_set): Idem.
14690         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14691         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
14692         (fpscr_toggle) Disallow from delay slot.
14693         * target.def (emit_mode_set): Add prev_mode parameter.
14694         * doc/tm.texi: Regenerate.
14695
14696 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14697
14698         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14699         variable i.
14700
14701 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14702
14703         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14704         vtable_pointer_value_to_vtable): Constify.
14705         (contains_polymorphic_type_p): Declare.
14706         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14707         vtable_pointer_value_to_vtable): Constify.
14708         (contains_polymorphic_type_p): New predicate.
14709         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14710         polymorphic types.
14711         (ipa_set_ancestor_jf): Likewise.
14712         (detect_type_change): Return false in easy cases.
14713         (compute_complex_assign_jump_func): Require type to contain
14714         polymorphic type.
14715         (compute_known_type_jump_func): Likewise.
14716
14717 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14718
14719         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14720         Remove.
14721         (type_in_anonymous_namespace_p): Constify argument.
14722         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14723         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14724         (main_odr_variant): New function.
14725         (hash_type_name): Make static; update assert; do not ICE on
14726         non-records.
14727         (types_same_for_odr): Bring here from tree.c; simplify and remove
14728         old structural comparing code that doesn't work for templates.
14729         (odr_hasher::equal): Update assert.
14730         (add_type_duplicate): Return true when bases should be computed;
14731         replace incomplete loader by complete; do not output duplicated
14732         warnings; do not ICE on non-records; set odr_violated flag.
14733         (get_odr_type): Be ready to replace incomplete type by complete
14734         one; work on ODR variants instead of main variants; reorder item
14735         in array so bases have still smaller indexes.
14736         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14737         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14738
14739 2014-07-01  Cary Coutant  <ccoutant@google.com>
14740
14741         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14742         lookup.
14743         (resolve_addr_in_expr): When replacing the rtx in a location list
14744         entry, get a new address table entry.
14745         (dwarf2out_finish): Call index_location_lists even if there are no
14746         addr_index_table entries yet.
14747
14748 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14749
14750         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14751         change for not being obvious.
14752
14753 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14754
14755         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14756         unused argument.
14757
14758 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14759
14760         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14761         (vcagt_f64): Likewise.
14762         (vcale_f64): Likewise.
14763         (vcaled_f64): Likewise.
14764         (vcales_f32): Likewise.
14765         (vcalt_f64): Likewise.
14766         (vcaltd_f64): Likewise.
14767         (vcalts_f32): Likewise.
14768
14769 2014-07-01  Marek Polacek  <polacek@redhat.com>
14770
14771         * doc/invoke.texi: Document -Wint-conversion.
14772
14773 2014-07-01  Marek Polacek  <polacek@redhat.com>
14774
14775         PR c/58286
14776         * doc/invoke.texi: Document -Wincompatible-pointer-types.
14777
14778 2014-07-01  Martin Liska  <mliska@suse.cz>
14779
14780         IPA REF alias refactoring
14781         * cgraph.h (iterate_direct_aliases): New function.
14782         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14783         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14784         FOR_EACH_ALIAS added.
14785         (cgraph_for_node_and_aliases): Likewise.
14786         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14787         * ipa-inline.c (reset_edge_caches): Likewise.
14788         (update_caller_keys): Likewise.
14789         * trans-mem.c (ipa_tm_execute): Likewise.
14790         *varpool.c (varpool_analyze_node): Likewise.
14791         (varpool_for_node_and_aliases): Likewise.
14792         * ipa-ref.h (first_alias): New function.
14793         (last_alias): Likewise.
14794         (has_aliases_p): Likewise.
14795         * ipa-ref.c (ipa_ref::remove_reference): Removal function
14796         is sensitive to IPA_REF_ALIASes.
14797         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14798         are put at the beginning of the list.
14799         (symtab_node::iterate_direct_aliases): New function.
14800
14801 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14802
14803         Revert:
14804         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14805         type is complete.
14806         (write_ts_type_common_tree_pointers): Do not stream fields not set
14807         for incomplete types; do not stream duplicated fields for variants;
14808         sanity check that variant and type match.
14809         (write_ts_type_non_common_tree_pointers): Likewise.
14810         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14811         TYPE_SIZE whether type is complete.
14812         (lto_input_ts_type_common_tree_pointers): Do same changes as in
14813         write_ts_type_common_tree_pointers
14814         (lto_input_ts_type_non_common_tree_pointers): Likewise.
14815
14816 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
14817
14818         * var-tracking.c (add_stores): Return instead of asserting if old
14819         and new values for conditional store are the same.
14820
14821 2014-06-30  Richard Henderson  <rth@redhat.com>
14822
14823         PR rtl-opt/61608
14824         PR target/39284
14825         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14826         the cfg if there were any changes.
14827         * passes.def: Revert move of peephole2 after reorder_blocks;
14828         move duplicate_computed_gotos before peephole2.
14829
14830 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
14831
14832         * except.c (emit_note_eh_region_end): New helper function.
14833         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14834         emit EH_REGION_END note.
14835         * jump.c (cleanup_barriers): Do not split a call and its
14836         corresponding CALL_ARG_LOCATION note.
14837
14838 2014-06-30  Jeff Law  <law@redhat.com>
14839
14840         PR tree-optimization/61607
14841         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14842         deeper into the SSA_NAME_VALUE chain.
14843
14844 2014-06-30  Marek Polacek  <polacek@redhat.com>
14845
14846         * convert.c (convert_to_integer): Don't instrument conversions if the
14847         function has no_sanitize_undefined attribute.
14848         * ubsan.c: Don't run the ubsan pass if the function has
14849         no_sanitize_undefined attribute.
14850
14851 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14852
14853         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14854         -fsanitize=undefined suboptions.
14855
14856 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
14857
14858         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14859         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14860         against bigendian and adjust indices.
14861
14862 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14863
14864         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
14865
14866 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14867
14868         PR target/61633
14869         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14870         Add alternative; make early clobber.  Adjust both split patterns
14871         to use operand 0 as the working register.
14872
14873 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14874
14875         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14876         as ira_object_id_map might be NULL, or 1.
14877
14878 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14879
14880         * loop-invariant.c (get_inv_cost): Handle register class.
14881         (gain_for_invariant): Check the register pressure of the inv
14882         and its overlapped register class, other than all.
14883
14884 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14885
14886         * doc/invoke.texi (Optimize Options): Fix descriptions of
14887         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14888
14889 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
14890
14891         * doc/extend.texi (Function Attributes): Update 'naked' attribute
14892         documentation.
14893
14894 2014-06-29  Tobias Grosser <tobias@grosser.es>
14895
14896         PR bootstrap/61650
14897         * graphite-isl-ast-to-gimple.c: Add missing guards.
14898
14899 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14900
14901         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14902         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14903         * flag-types.h: Add new enum fgraphite_generator.
14904         * graphite-isl-ast-to-gimple.c: New.
14905         * graphite-isl-ast-to-gimple.h: New.
14906         * graphite.c (graphite_transform_loops): Add choice of Graphite
14907         code generator, which depends on flag_graphite_code_gen.
14908
14909 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14910
14911         * graphite-dependences.c (subtract_commutative_associative_deps):
14912         Add NULL checking of the following variables: must_raw_no_source,
14913         may_raw_no_source, must_war_no_source, may_war_no_source,
14914         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14915         must_war, may_war, must_waw, may_waw.
14916
14917 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14918
14919         * graphite-clast-to-gimple.c: gloog is renamed to
14920         graphite_regenerate_ast_cloog.  gloog_error is renamed to
14921         graphite_regenerate_error.
14922         * graphite-clast-to-gimple.h: The definition of the struct
14923         bb_pbb_def is moved to graphite-htab.h.
14924         Add inclusion of the hash-table.h.
14925         * graphite-htab.h: The declaration of the function gloog is moved
14926         to graphite-clast-to-gimple.h and renamed to
14927         graphite_regenerate_ast_cloog.
14928         * graphite.c (graphite_transform_loops): gloog is renamed
14929         to graphite_regenerate_ast_cloog.
14930
14931 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14932
14933         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14934         type is complete.
14935         (write_ts_type_common_tree_pointers): Do not stream fields not set
14936         for incomplete types; do not stream duplicated fields for variants;
14937         sanity check that variant and type match.
14938         (write_ts_type_non_common_tree_pointers): Likewise.
14939         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14940         TYPE_SIZE whether type is complete.
14941         (lto_input_ts_type_common_tree_pointers): Do same changes as in
14942         write_ts_type_common_tree_pointers
14943         (lto_input_ts_type_non_common_tree_pointers): Likewise.
14944
14945 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14946
14947         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14948
14949 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14950
14951         * tree-inline.c (remap_type_1): Do not duplicate fields
14952         that are shared in between type and its main variant.
14953
14954 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14955
14956         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14957         of the type.
14958         (ipa_set_ancestor_jf) Likewise.
14959         (check_stmt_for_type_change): Check that we work on main variant.
14960         (detect_type_change): Look into main variant.
14961         (compute_known_type_jump_func): Check that main variant has BINFO.
14962
14963 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14964
14965         * ipa-devirt.c (set_type_binfo): New function.
14966         (add_type_duplicate): Use it.
14967         (get_odr_type): Sanity check that binfos points to main variants.
14968         (get_class_context): Be sure the context's outer_type is main variant.
14969         (contains_type_p): Walk main variant.
14970         (get_polymorphic_call_info_for_decl): Set outer_type to be
14971         main variant.
14972         (get_polymorphic_call_info): Likewise.
14973         (possible_polymorphic_call_targets): Sanity check that we operate
14974         on main variant.
14975
14976 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14977
14978         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14979
14980 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14981
14982         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14983         accidental change due to wide-int branch merge.
14984
14985 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14986
14987         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14988         compressed debug support.
14989         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14990         * configure: Regenerate.
14991         * config.in: Regenerate.
14992         * common.opt (compressed_debug_sections): New enum.
14993         (gz, gz=): New options.
14994         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14995         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14996         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14997         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14998         LINK_COMPRESS_DEBUG_SPEC.
14999         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
15000         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
15001         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
15002         (Debugging Options): Document -gz[=type].
15003
15004 2014-06-27  Martin Jambor  <mjambor@suse.cz>
15005
15006         PR ipa/61160
15007         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
15008         args_to_skip, use those from node instead.  Copy args_to_skip and
15009         combined_args_to_skip from node to the new thunk.
15010         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
15011         (cgraph_create_virtual_clone): Moved computation of
15012         combined_args_to_skip...
15013         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
15014
15015 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
15016
15017         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
15018         redundant diagnostic machinary.
15019
15020 2014-06-27  Richard Biener  <rguenther@suse.de>
15021
15022         * tree-ssa-math-opts.c (bswap_replace): Fix
15023         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
15024
15025 2014-06-27  Martin Liska  <mliska@suse.cz>
15026
15027         * gimple.h (gimple_location_safe): New function introduced.
15028         * cgraphunit.c (walk_polymorphic_call_targets): Usage
15029         of gimple_location_safe replaces gimple_location.
15030         (gimple_fold_call): Likewise.
15031         * ipa-devirt.c (ipa_devirt): Likewise.
15032         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
15033         * ipa.c (walk_polymorphic_call_targets): Likewise.
15034         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15035
15036 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
15037
15038         PR tree-optimization/57233
15039         PR tree-optimization/61299
15040         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
15041         functions.
15042         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
15043         would be lowered to scalar shifts, check if corresponding
15044         shifts and vector BIT_IOR_EXPR are supported and don't lower
15045         or lower just to narrower vector type in that case.
15046         * expmed.c (expand_shift_1): Fix up handling of vector
15047         shifts and rotates.
15048
15049 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
15050
15051         PR target/61586
15052         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
15053
15054 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
15055
15056         * doc/invoke.texi (-fsemantic-interposition): Document.
15057         * common.opt (fsemantic-interposition): New flag.
15058         * varasm.c (decl_replaceable_p): Use it.
15059
15060 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15061
15062         PR target/61542
15063         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
15064         extraction other than index 3.
15065
15066 2014-06-26  Teresa Johnson  <tejohnson@google.com>
15067
15068         * doc/invoke.texi: Fix typo.
15069         * dumpfile.c: Add support for documented -fdump-* options
15070         optimized/missed/note/optall.
15071
15072 2014-06-26  Martin Jambor  <mjambor@suse.cz>
15073
15074         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
15075         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
15076         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
15077         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
15078         * opts.c (default_options_optimization): Set
15079         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
15080         * doc/invoke.texi (allow-load-data-races)
15081         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
15082         (allow-store-data-races): Document the new default.
15083
15084 2014-06-26  Martin Jambor  <mjambor@suse.cz>
15085
15086         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
15087         renamed to ipa_impossible_devirt_target.  Fix typo.
15088         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
15089         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
15090         ipa_impossible_devirt_target.
15091
15092 2014-06-26  Richard Biener  <rguenther@suse.de>
15093
15094         PR tree-optimization/61607
15095         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
15096         explaining why we restrict copies on loop depth.
15097         * tree-ssa-dom.c (cprop_operand): Remove restriction on
15098         on loop depth.
15099         (record_equivalences_from_phis): Instead add it here.
15100
15101 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
15102
15103         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
15104         (LTO_WRAPPER_OBJS): New variable.
15105         (lto-wrapper$(exeext)): Use it.
15106         * collect2.c: Include "collect-utils.h".
15107         (verbose, debug): Remove variables.
15108         (at_file_supplied): No longer static.
15109         (tool_name): New variable.
15110         (do_wait, fork_execute, maybe_unlink): Don't declare.
15111         (tool_cleanup): No longer static.
15112         (notice): Remove function.
15113         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
15114         fork_execute calls.
15115         (collect_wait, do_wait, collect_execute): Remove functions.
15116         (maybe_unlink): No longer static.
15117         * collect2.h (verbose, debug): Don't declare.
15118         (at_file_supplied): Declare.
15119         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
15120         changed.
15121         (collect_execute): Replace with implementation from collect2, plus a
15122         new arg use_atfile.  All callers changed.
15123         (collect_wait): Replace with implementation from collect2.
15124         (maybe_unlink_file): Remove function.
15125         (fork_execute): Replace with implementation from collect2, plus a
15126         new arg use_atfile.  All callers changed.
15127         (do_wait): Add call to utils_cleanup to the error path.
15128         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
15129         (tool_cleanup): Adjust declarations.
15130         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
15131         * tlink.c: Include "collect-utils.h".
15132         (tlink_execute): New arg use_atfile.  All callers changed.
15133         (tlink_init, tlink_execute): Remove declarations.
15134
15135         * collect-utils.c (save_temps): New variable.
15136         (do_wait): Use it instead of debug.  Use fatal_error.
15137         * collect-utils.h (save_temps): Declare.
15138         * collect2.c (verbose): Rename from vflag.  All uses changed.
15139         (tool_cleanup): New function, copied from collect_atexit.
15140         (collect_atexit, handler): Just call it.
15141         * collect2.h (verbose): Declaration renamed from vflag.
15142         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
15143         debug.
15144
15145         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
15146         (lto-wrapper$(exeext)): Link with collect-utils.o.
15147         * collect-utils.c: New file.
15148         * collect-utils.h: New file.
15149         * lto-wrapper.c: Include "collect-utils.h".
15150         (args_name): Delete variable.
15151         (tool_name): New variable.
15152         (tool_cleanup): New function.
15153         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
15154         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
15155         (fork_execute): Remove functions.
15156
15157 2014-06-26  Nick Clifton  <nickc@redhat.com>
15158
15159         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
15160
15161         * doc/extend.texi (Function Attributes): Fix typo in description
15162         of RX vector attribute.
15163
15164 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15165
15166         * config.gcc (supported_defaults): Error when passing either
15167         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
15168
15169 2014-06-26  Richard Biener  <rguenther@suse.de>
15170
15171         * tree-ssa-dom.c (cprop_operand): Remove restriction on
15172         propagating volatile pointers.
15173
15174 2014-06-26  Richard Biener  <rguenther@suse.de>
15175
15176         PR tree-optimization/61607
15177         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
15178         loop if we redirected its latch edge.
15179         (thread_block_1): Do not cancel loops prematurely.
15180
15181 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
15182
15183         * toplev.c (backend_init_target): Move init_emit_regs and
15184         init_regs to...
15185         (backend_init) ... here; skip ira_init_once and backend_init_target.
15186         (target_reinit) ... and here; clear
15187         this_target_rtl->lang_dependent_initialized.
15188         (lang_dependent_init_target): Clear
15189         this_target_rtl->lang_dependent_initialized;
15190         break out rtl initialization to ...
15191         (initialize_rtl): ... here; call also backend_init_target
15192         and ira_init_once.
15193         * toplev.h (initialize_rtl): New function.
15194         * function.c: Include toplev.h
15195         (init_function_start): Call initialize_rtl.
15196         * rtl.h (target_rtl): Add target_specific_initialized,
15197         lang_dependent_initialized.
15198
15199 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
15200             Jakub Jelinek  <jakub@redhat.com>
15201
15202         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
15203
15204 2014-06-25  Tom de Vries  <tom@codesourcery.com>
15205
15206         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
15207
15208 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15209
15210         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
15211         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
15212         Issue a strict overflow warning if appropriate.
15213
15214 2014-06-25  Martin Liska  <mliska@suse.cz>
15215
15216         IPA REF refactoring
15217         * Makefile.in: Removed header file (ipa-ref-inline.h).
15218         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
15219         called.
15220         (cgraph_speculative_call_info): Likewise.
15221         (cgraph_for_node_thunks_and_aliases): Likewise.
15222         (cgraph_for_node_and_aliases): Likewise.
15223         (verify_cgraph_node): Likewise.
15224         * cgraph.h: Batch of IPA REF functions become member functions of
15225         symtab_node: add_reference, maybe_add_reference, clone_references,
15226         clone_referring, clone_reference, find_reference,
15227         remove_stmt_references, remove_all_references,
15228         remove_all_referring, dump_references, dump_referring,
15229         has_alias_p, iterate_reference, iterate_referring.
15230         * cgraphbuild.c (record_reference): New IPA REF function used.
15231         (record_type_list): Likewise.
15232         (record_eh_tables): Likewise.
15233         (mark_address): Likewise.
15234         (mark_load): Likewise.
15235         (mark_store): Likewise.
15236         (pass_build_cgraph_edges): Likewise.
15237         (rebuild_cgraph_edge): Likewise.
15238         (cgraph_rebuild_references): Likewise.
15239         (pass_remove_cgraph_callee_edges): Likewise.
15240         * cgraphclones.c (cgraph_clone_node): Likewise.
15241         (cgraph_create_virtual_clone): Likewise.
15242         (cgraph_materialize_clone): Likewise.
15243         (cgraph_materialize_all_clones): Likewise.
15244         * cgraphunit.c (cgraph_reset_node): Likewise.
15245         (cgraph_reset_node): Likewise.
15246         (analyze_function): Likewise.
15247         (assemble_thunks_and_aliases): Likewise.
15248         (expand_function): Likewise.
15249         * ipa-comdats.c (propagate_comdat_group): Likewise.
15250         (enqueue_references): Likewise.
15251         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
15252         (create_specialized_node): Likewise.
15253         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
15254         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
15255         * ipa-inline.c (reset_edge_caches): Likewise.
15256         (update_caller_keys): Likewise.
15257         (execute): Likewise.
15258         * ipa-prop.c (remove_described_reference): Likewise.
15259         (propagate_controlled_uses): Likewise.
15260         (ipa_edge_duplication_hook): Likewise.
15261         (ipa_modify_call_arguments): Likewise.
15262         * ipa-pure-const.c (propagate_pure_const): Likewise.
15263         * ipa-ref-inline.h: Header file removed, functions moved
15264         to symtab_node class.
15265         * ipa-ref.c (remove_reference): New class member function.
15266         (cannot_lead_to_return): New class member function.
15267         (referring_ref_list): Likewise.
15268         (referred_ref_list): Likewise.
15269         Rest of functions moved to symtab_node class.
15270         * ipa-ref.h: New member functions remove_reference,
15271         cannot_lead_to_return, referring_ref_list, referred_ref_list added
15272         to ipa_ref class.
15273         ipa_ref_list class has new member functions: first_reference,
15274         first_referring, clear, nreferences.
15275         * ipa-reference.c (analyze_function): New IPA REF function used.
15276         (write_node_summary_p): Likewise.
15277         (ipa_reference_write_optimization_summary): Likewise.
15278         * ipa-split.c (split_function): Likewise.
15279         * ipa-utils.c (ipa_reverse_postorder): Likewise.
15280         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
15281         (function_and_variable_visibility): Likewise.
15282         * ipa.c (has_addr_references_p): Likewise.
15283         (process_references): Argument type changed.
15284         (symtab_remove_unreachable_nodes): New IPA REF function used.
15285         (process_references): Likewise.
15286         (set_writeonly_bit): Likewise.
15287         * lto-cgraph.c: Implementation of new symtab_node member functions
15288         that uses new IPA REF functions.
15289         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
15290         function used.
15291         * lto-streamer-out.c (output_symbol_p): Likewise.
15292         * lto-streamer.h (referenced_from_this_partition_p): Argument type
15293         changed.
15294         * symtab.c: Implementation of new IPA REF API.
15295         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
15296         (ipa_tm_create_version): Likewise.
15297         (ipa_tm_execute): Likewise.
15298         * tree-emutls.c (gen_emutls_addr): Likewise.
15299         * tree-inline.c (copy_bb): Likewise.
15300         (delete_unreachable_blocks_update_callgraph): Likewise.
15301         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
15302         (varpool_for_node_and_aliases): Likewise.
15303
15304 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
15305
15306         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
15307
15308 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
15309
15310         PR bootstrap/61598
15311         * fold-const.c (fold_checksum_tree): Use a hash_table of const
15312         tree_node * instead of tree_node *.
15313         (fold): Adjust.
15314         (print_fold_checksum): Likewise.
15315         (fold_check_failed): Likewise.
15316         (debug_fold_checksum): Likewise.
15317         (fold_build1_stat_loc): Likewise.
15318         (fold_build2_stat_loc): Likewise.
15319         (fold_build3_stat_loc): Likewise.
15320         (fold_build_call_array_loc): Likewise.
15321
15322 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
15323
15324         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
15325         implementation with call to...
15326         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
15327         function.
15328         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
15329         Declare.
15330
15331 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
15332
15333         PR tree-optimization/57742
15334         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
15335         after replacing the statement.
15336
15337 2014-06-25  Nick Clifton  <nickc@redhat.com>
15338
15339         * config/v850/v850.c (GHS_default_section_names): Change to const
15340         char * type.
15341         (GHS_current_section_names): Likewise.
15342         (v850_insert_attributes): Do not build strings, just assign the
15343         names directly.  Change the type of 'chosen_section' to const
15344         char*.
15345         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
15346         directly to the array entry.
15347         * config/v850/v850.h (GHS_default_section_names): Change to const
15348         char * type.
15349         (GHS_current_section_names): Likewise.
15350
15351 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
15352
15353         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
15354         (LANG_HOOKS_DECLS): Add it.
15355         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
15356         has correct type.
15357         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
15358         * langhooks.h (struct lang_hooks_for_decls): Add
15359         omp_clause_linear_ctor hook.
15360         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
15361         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
15362         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
15363         combined simd loop use omp_clause_linear_ctor hook.
15364
15365 2014-06-24  Cong Hou  <congh@google.com>
15366
15367         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
15368         pattern recognition.
15369         (type_conversion_p): PROMOTION is true if it's a type promotion
15370         conversion, and false otherwise.  Return true if the given expression
15371         is a type conversion one.
15372         * tree-vectorizer.h: Adjust the number of patterns.
15373         * tree.def: Add SAD_EXPR.
15374         * optabs.def: Add sad_optab.
15375         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
15376         * expr.c (expand_expr_real_2): Likewise.
15377         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
15378         * gimple.c (get_gimple_rhs_num_ops): Likewise.
15379         * optabs.c (optab_for_tree_code): Likewise.
15380         * tree-cfg.c (estimate_operator_cost): Likewise.
15381         * tree-ssa-operands.c (get_expr_operands): Likewise.
15382         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
15383         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
15384         * doc/generic.texi: Add document for SAD_EXPR.
15385         * doc/md.texi: Add document for ssad and usad.
15386
15387 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15388
15389         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
15390         qualification in cast.
15391
15392 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
15393
15394         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
15395         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
15396         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
15397         (tree_function_decl): ... here.
15398         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
15399         streaming of vindex to ...
15400         (write_ts_function_decl_tree_pointers): ... here.
15401         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
15402         Do not stream DECL_VINDEX.
15403         (lto_input_ts_function_decl_tree_pointers): Stream it here.
15404
15405 2014-06-24  Catherine Moore  <clm@codesourcery.com>
15406             Sandra Loosemore  <sandra@codesourcery.com>
15407
15408         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
15409         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
15410         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
15411
15412 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
15413
15414         * doc/invoke.texi (Warning Options): Remove duplicated
15415         -Wmaybe-uninitialized.
15416
15417 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
15418
15419         PR tree-optimization/57742
15420         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
15421         (handle_builtin_malloc, handle_builtin_memset): New functions.
15422         (strlen_optimize_stmt): Call them.
15423         * passes.def: Move strlen after loop+dom but before vrp.
15424
15425 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15426
15427         PR target/61570
15428         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
15429         model family 6 CPU with has_longmode never use a CPU without
15430         64-bit support.
15431
15432 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15433
15434         PR target/61570
15435         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
15436         the last change.
15437
15438 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15439
15440         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
15441         * dominance.c (iterate_fix_dominators): Use hash_map instead of
15442         pointer_map.
15443         * hash-map.h: New file.
15444         * ipa-comdats.c: Use hash_map instead of pointer_map.
15445         * ipa.c: Likewise.
15446         * lto-section-out.c: Adjust.
15447         * lto-streamer.h: Replace pointer_map with hash_map.
15448         * symtab.c (verify_symtab): Likewise.
15449         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
15450         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
15451         * tree-streamer.h: Likewise.
15452         * tree-streamer.c: Adjust.
15453         * pointer-set.h: Remove pointer_map.
15454
15455 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15456
15457         * hash-table.h: Add a template arg to choose between storing values
15458         and storing pointers to values, and then provide partial
15459         specializations for both.
15460         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
15461         should store, not the type values should point to.
15462         * tree-into-ssa.c (var_info_hasher): Likewise.
15463         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15464         * tree-complex.c: Adjust.
15465         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
15466         table instead of int_tree_map *.
15467         * tree-parloops.c: Adjust.
15468         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
15469         type is being stored.
15470         * tree-vectorizer.c: Adjust.
15471
15472 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
15473
15474         * hash-table.h: Remove a layer of indirection from hash_table so that
15475         it contains the hash table's data instead of a pointer to the data.
15476         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
15477         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
15478         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15479         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15480         fold-const.c, gcse.c, ggc-common.c,
15481         gimple-ssa-strength-reduction.c, gimplify.c,
15482         graphite-clast-to-gimple.c, graphite-dependences.c,
15483         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15484         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15485         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15486         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15487         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15488         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15489         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15490         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15491         tree-ssa-live.c, tree-ssa-loop-im.c,
15492         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15493         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15494         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15495         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15496         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15497         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15498         vtable-verify.c, vtable-verify.h: Adjust.
15499
15500 2014-06-24  Richard Biener  <rguenther@suse.de>
15501
15502         PR tree-optimization/61572
15503         * tree-ssa-sink.c (statement_sink_location): Do not sink
15504         loads from hard registers.
15505
15506 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15507
15508         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15509         not mentioned in clauses use private clause if the iterator is
15510         declared in #pragma omp for simd, and when adding lastprivate
15511         instead, add it to the outer #pragma omp for too.  Diagnose
15512         if the variable is private in outer context.  For simd collapse > 1
15513         loops, replace all iterators with temporaries.
15514         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15515         same even in collapse > 1 loops.
15516
15517         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15518         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15519         non-NULL.
15520         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15521         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15522         non-NULL.
15523         (gimplify_adjust_omp_clauses): Likewise.
15524         * omp-low.c (lower_rec_simd_input_clauses,
15525         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15526         safelen the same as safelen(1).
15527         * tree-nested.c (convert_nonlocal_omp_clauses,
15528         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
15529         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15530         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15531         Fixup handling of GIMPLE_OMP_TARGET.
15532         (convert_tramp_reference_stmt, convert_gimple_call): Handle
15533         GIMPLE_OMP_TARGET.
15534
15535 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
15536
15537         PR tree-optimization/61554
15538         * tree-ssa-propagate.c: Include "bitmap.h".
15539         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15540         properly update constructor/destructor.
15541         (substitute_and_fold_dom_walker::before_dom_children):
15542         Remove call to gimple_purge_dead_eh_edges, add bb->index to
15543         need_eh_cleaup instead.
15544         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15545         need_eh_cleanup.
15546
15547 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
15548
15549         * varpool.c (dump_varpool_node): Dump used_by_single_function.
15550         * tree-pass.h (make_pass_ipa_single_use): New pass.
15551         * cgraph.h (used_by_single_function): New flag.
15552         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15553         Stream it.
15554         * passes.def (pass_ipa_single_use): Scedule.
15555         * ipa.c (BOTTOM): New macro.
15556         (meet): New function
15557         (propagate_single_user): New function.
15558         (ipa_single_use): New function.
15559         (pass_data_ipa_single_use): New pass.
15560         (pass_ipa_single_use): New pass.
15561         (pass_ipa_single_use::gate): New gate.
15562         (make_pass_ipa_single_use): New function.
15563
15564 2014-06-23  Kai Tietz  <ktietz@redhat.com>
15565
15566         PR target/39284
15567         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15568         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15569
15570 2014-06-23  Richard Biener  <rguenther@suse.de>
15571
15572         * tree-ssa-loop.c (gate_loop): New function.
15573         (pass_tree_loop::gate): Call it.
15574         (pass_data_tree_no_loop, pass_tree_no_loop,
15575         make_pass_tree_no_loop): New.
15576         * tree-vectorizer.c: Include tree-scalar-evolution.c
15577         (pass_slp_vectorize::execute): Initialize loops and SCEV if
15578         required.
15579         (pass_slp_vectorize::clone): New method.
15580         * timevar.def (TV_TREE_NOLOOP): New.
15581         * tree-pass.h (make_pass_tree_no_loop): Declare.
15582         * passes.def (pass_tree_no_loop): New pass group with
15583         SLP vectorizer.
15584
15585 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15586
15587         PR target/61570
15588         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15589         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15590
15591 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
15592
15593         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15594         "yes" where needed.
15595
15596 2014-06-23  Alan Modra  <amodra@gmail.com>
15597
15598         PR bootstrap/61583
15599         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15600         to zero on debug statements.
15601
15602 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15603
15604         PR target/60825
15605         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15606         Ignore third operand if present by marking qualifier_internal.
15607
15608         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15609
15610         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15611         vector extension.
15612         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15613         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15614         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15615         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15616         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15617         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15618         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15619         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15620         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15621         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15622         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15623         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15624         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15625         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15626         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15627         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15628         logic in GCC vector extensions
15629
15630         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15631         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15632         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15633         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15634         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15635         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15636         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15637         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15638         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15639         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15640
15641         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15642
15643         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15644         extensions.
15645
15646         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15647         (vget_low_s64): Use __GET_LOW macro.
15648         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15649         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15650         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15651         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15652         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15653
15654         (vcombine_s64): Use GCC vector extensions; remove cast.
15655         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15656         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15657         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15658         Fix type signature; remove cast.
15659
15660 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15661
15662         PR target/60825
15663         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15664         V1DFmode.
15665         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15666         add V1DFmode
15667         (BUILTIN_VD1): New.
15668         (BUILTIN_VD_RE): Remove.
15669         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15670         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15671         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15672         variant but not df.
15673         (vreinterpretv1df*, vreinterpret*v1df): New.
15674         (vreinterpretdf*, vreinterpret*df): Remove.
15675         * config/aarch64/aarch64-simd.md (aarch64_create,
15676         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15677         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15678         (VD1): New.
15679         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15680         (vcreate_f64): Remove cast, use v1df builtin.
15681         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15682         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15683         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15684         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15685         vmov_n_f64, vst1_f64): Use gcc vector extensions.
15686         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15687         add range check using __builtin_aarch64_im_lane_boundsi.
15688         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15689         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15690         type signature, use gcc vector extensions.
15691         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15692         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15693         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15694         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15695         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15696         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15697         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15698         vreinterpret_u64_f64): Use v1df builtin not df.
15699
15700 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
15701
15702         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15703         vector registers.
15704
15705 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
15706
15707         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15708         priority directly.
15709
15710 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15711
15712         * loop-invariant.c (pre_check_invariant_p): New function.
15713         (find_invariant_insn): Call pre_check_invariant_p.
15714
15715 2014-06-22  Richard Henderson  <rth@redhat.com>
15716
15717         PR target/61565
15718         * compare-elim.c (struct comparison): Add eh_note.
15719         (find_comparison_dom_walker::before_dom_children): Don't eliminate
15720         a redundant comparison in a different EH region.  Purge EH edges if
15721         necessary.
15722
15723 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15724
15725         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15726         (var_shift): Use it.
15727         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15728         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15729         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15730         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15731         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15732         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15733         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15734         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15735         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15736         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15737         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15738         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15739         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15740         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15741         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15742         *rotldi3_internal15be): Use the new attribute.  Merge register and
15743         integer alternatives.
15744
15745 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15746
15747         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15748         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15749         split, *ashrdi3_internal3 and split): Delete, merge into...
15750         (ashr<mode>3): New expander.
15751         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15752         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
15753
15754 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15755
15756         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15757         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15758         *rotldi3_internal3 and split): Delete, merge into...
15759         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15760         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
15761         Use "rotlw" extended mnemonic.
15762
15763 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15764
15765         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15766         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15767         and split, *ashldi3_internal3 and split): Delete, merge into...
15768         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15769         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
15770
15771 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15772
15773         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15774         (lshrsi3, two anonymous define_insns and define_splits,
15775         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15776         *lshrdi3_internal3 and split): Delete, merge into...
15777         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15778         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
15779
15780 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15781
15782         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15783         Remove "O" alternative.
15784
15785 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
15786
15787         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15788         (mips_move_from_gpr_cost): Likewise.
15789         (mips_register_move_cost): Update accordingly.
15790         (mips_secondary_reload_class): Remove name of in_p.
15791
15792 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
15793
15794         PR target/61503
15795         * config/i386/i386.md (x86_64_shrd, x86_shrd,
15796         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15797
15798 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15799
15800         * config/nios2/nios2.c: Include "builtins.h".
15801
15802 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15803
15804         * cgraph.h (tls_model_names): New variable.
15805         * print-tree.c (print_node): Simplify.
15806         * varpool.c (tls_model_names): New variable.
15807         (dump_varpool_node): Output tls model.
15808
15809 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15810
15811         * ipa-visibility.c (function_and_variable_visibility): Disable
15812         temporarily local aliases for some targets.
15813
15814 2014-06-20  Marek Polacek  <polacek@redhat.com>
15815
15816         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15817         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15818         into SANITIZE_UNDEFINED.
15819         * doc/invoke.texi: Describe -fsanitize=bounds.
15820         * gimplify.c (gimplify_call_expr): Add gimplification of internal
15821         functions created in the FEs.
15822         * internal-fn.c: Move "internal-fn.h" after "tree.h".
15823         (expand_UBSAN_BOUNDS): New function.
15824         * internal-fn.def (UBSAN_BOUNDS): New internal function.
15825         * internal-fn.h: Don't define internal functions here.
15826         * opts.c (common_handle_option): Add -fsanitize=bounds.
15827         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15828         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15829         * tree-core.h: Define internal functions here.
15830         (struct tree_base): Add ifn field.
15831         * tree-pretty-print.c: Include "internal-fn.h".
15832         (dump_generic_node): Handle functions without CALL_EXPR_FN.
15833         * tree.c (get_callee_fndecl): Likewise.
15834         (build_call_expr_internal_loc): New function.
15835         * tree.def (CALL_EXPR): Update description.
15836         * tree.h (CALL_EXPR_IFN): Define.
15837         (build_call_expr_internal_loc): Declare.
15838         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15839         types.
15840         (ubsan_type_descriptor): Change bool parameter to enum
15841         ubsan_print_style.  Adjust the code.  Add handling of
15842         UBSAN_PRINT_ARRAY.
15843         (ubsan_expand_bounds_ifn): New function.
15844         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15845         (ubsan_build_overflow_builtin): Likewise.
15846         (instrument_bool_enum_load): Likewise.
15847         (ubsan_instrument_float_cast): Likewise.
15848         * ubsan.h (enum ubsan_print_style): New enum.
15849         (ubsan_expand_bounds_ifn): Declare.
15850         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
15851
15852 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
15853
15854         * config/rs6000/rs6000.md: Append `DONE' to preparation
15855         statements of `bswap' pattern splitters.
15856
15857 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15858
15859         * target.def (call_fusage_contains_non_callee_clobbers): Update
15860         definition.
15861         * doc/tm.texi: Regenerate.
15862
15863 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15864             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15865
15866         PR sanitizer/61547
15867         * asan.c (instrument_strlen_call): Fixed instrumentation of
15868         trailing byte.
15869
15870 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15871
15872         PR ipa/61540
15873         * ipa-prop.c (impossible_devirt_target): New function.
15874         (try_make_edge_direct_virtual_call): Use it, also instead of
15875         asserting.
15876
15877 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15878             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15879
15880         PR sanitizer/61530
15881         * asan.c (build_check_stmt): Add condition.
15882
15883 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15884
15885         PR ipa/61211
15886         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15887         expanded clones.
15888
15889 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15890
15891         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15892         Update comments.
15893         (VCONQ): Make comment more helpful.
15894         (VCON): Delete.
15895         * config/aarch64/aarch64-simd.md
15896         (aarch64_sqdmulh_lane<mode>):
15897         Use VCOND for operands 2.  Update lane checking and flipping logic.
15898         (aarch64_sqrdmulh_lane<mode>): Likewise.
15899         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15900         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15901         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15902         attribute of operand 3 to VCOND.
15903         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15904         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15905         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15906         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15907         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15908         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15909         define_insn.
15910         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15911         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15912         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15913         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15914         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15915         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15916         operand to VCOND.  Update lane flipping and bounds checking logic.
15917         (aarch64_sqdmlal2_lane<mode>): Likewise.
15918         (aarch64_sqdmlsl_lane<mode>): Likewise.
15919         (aarch64_sqdmull_lane<mode>): Likewise.
15920         (aarch64_sqdmull2_lane<mode>): Likewise.
15921         (aarch64_sqdmlal_laneq<mode>):
15922         Replace VCON usage with VCONQ.
15923         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15924         (aarch64_sqdmlal2_laneq<mode>): Emit
15925         aarch64_sqdmlal2_laneq<mode>_internal insn.
15926         Replace VCON with VCONQ.
15927         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15928         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15929         (aarch64_sqdmull_laneq<mode>): Emit
15930         aarch64_sqdmull_laneq<mode>_internal insn.
15931         Replace VCON with VCONQ.
15932         (aarch64_sqdmull2_laneq<mode>): Emit
15933         aarch64_sqdmull2_laneq<mode>_internal insn.
15934         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15935         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15936         of 3rd argument to int16x4_t.
15937         (vqdmlalh_lane_s16): Likewise.
15938         (vqdmlslh_lane_s16): Likewise.
15939         (vqdmull_high_lane_s16): Likewise.
15940         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15941         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15942         (vqdmlsl_lane_s16): Likewise.
15943         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15944         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15945         (vqdmlals_lane_s32): Likewise.
15946         (vqdmlsls_lane_s32): Likewise.
15947         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15948         (vqdmulls_lane_s32): Likewise.
15949         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15950         (vqdmlsl_lane_s32): Likewise.
15951         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15952         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15953         (vqrdmulhh_lane_s16): Likewise.
15954         (vqdmlsl_high_lane_s16): Likewise.
15955         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15956         (vqdmlsl_high_lane_s32): Likewise.
15957         (vqrdmulhs_lane_s32): Likewise.
15958
15959 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15960
15961         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15962         get_call_reg_set_usage.
15963
15964 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15965
15966         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15967         it contains all call_used_regs.
15968
15969 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15970
15971         * final.c (collect_fn_hard_reg_usage): Add and use variable
15972         function_used_regs.
15973
15974 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15975
15976         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15977         (set_init_priority, get_init_priority, set_fini_priority,
15978         get_fini_priority): New methods.
15979         * tree.c (init_priority_for_decl): Remove.
15980         (init_ttree): Do not initialize init priority.
15981         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15982         (decl_priority_info): Remove.
15983         (decl_init_priority_insert): Rewrite.
15984         (decl_fini_priority_insert): Rewrite.
15985         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15986         tree_priority_map_marked_p): Remove.
15987         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15988         * lto-streamer-out.c (hash_tree): Do not hash priorities.
15989         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15990         not output priorities.
15991         (pack_ts_function_decl_value_fields): Likewise.
15992         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15993         not input priorities.
15994         (unpack_ts_function_decl_value_fields): Likewise.
15995         * symtab.c (symbol_priority_map): Declare.
15996         (init_priority_hash): Declare.
15997         (symtab_unregister_node): Unregister from priority hash, too.
15998         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15999         New methods.
16000         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
16001         (symbol_priority_info): New function.
16002         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
16003         New methods.
16004         * tree-core.h (tree_priority_map): Remove.
16005
16006 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
16007
16008         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
16009         0xff to uint64_t before shifting it up.
16010
16011 2014-06-20  Julian Brown  <julian@codesourcery.com>
16012             Chung-Lin Tang  <cltang@codesourcery.com>
16013
16014         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
16015         TARGET_THUMB1_ONLY. Add comments.
16016
16017 2014-06-19  Tom de Vries  <tom@codesourcery.com>
16018
16019         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
16020         return type to void.
16021         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
16022
16023 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16024
16025         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
16026         as "move", from depends_on.
16027
16028 2014-06-19  Terry Guo  <terry.guo@arm.com>
16029
16030         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
16031         stage.
16032
16033 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16034
16035         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
16036         Remove cr5.
16037         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
16038
16039 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16040
16041         PR target/61550
16042         * config/sh/sh.c (prepare_move_operands): Don't process TLS
16043         addresses here if reload in progress or completed.
16044
16045 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16046
16047         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
16048         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
16049         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
16050         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
16051         (mips_register_priority): New function that implements the target
16052         hook TARGET_REGISTER_PRIORITY.
16053         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
16054         (mips_lra_p): Likewise for TARGET_LRA_P.
16055         (TARGET_REGISTER_PRIORITY): Define macro.
16056         (TARGET_SPILL_CLASS): Likewise.
16057         (TARGET_LRA_P): Likewise.
16058         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
16059         classes.
16060         (REG_CLASS_NAMES): Likewise.
16061         (REG_CLASS_CONTENTS): Likewise.
16062         (BASE_REG_CLASS): Use M16_SP_REGS.
16063         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
16064         New set attribute to enable alternatives depending on the register
16065         allocator used.
16066         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
16067         (*lea64): Disable pattern for MIPS16.
16068         * config/mips/mips.opt (mlra): New option.
16069
16070 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16071
16072         * lra-constraints.c (base_to_reg): New function.
16073         (process_address): Use new function.
16074
16075 2014-06-18  Tom de Vries  <tom@codesourcery.com>
16076
16077         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
16078         * config/aarch64/aarch64.c
16079         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
16080         (aarch64_emit_call_insn): New function.
16081         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
16082         of emit_call_insn.
16083         * config/aarch64/aarch64.md (define_expand "call_internal")
16084         (define_expand "call_value_internal", define_expand "sibcall_internal")
16085         (define_expand "sibcall_value_internal"): New.
16086         (define_expand "call", define_expand "call_value")
16087         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
16088         expand variant and aarch64_emit_call_insn.
16089
16090 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
16091             Tom de Vries  <tom@codesourcery.com>
16092
16093         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
16094         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16095         Redefine to true.
16096         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
16097         clobbers to CALL_INSN_FUNCTION_USAGE.
16098         (define_expand "sibcall_internal")
16099         (define_expand "sibcall_value_internal"): New.
16100         (define_expand "call", define_expand "call_value"): Add argument to
16101         arm_emit_call_insn.
16102         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
16103         (define_expand "sibcall_value"): Use sibcall_value_internal and
16104         arm_emit_call_insn.
16105
16106 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16107
16108         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
16109
16110 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16111
16112         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
16113         __udivmoddi4.
16114
16115 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16116
16117         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
16118         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
16119         annotations. Fix DWARF information.
16120
16121 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16122
16123         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
16124         __udivmoddi4, and fixups for negative operands.
16125
16126 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16127
16128         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
16129
16130 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16131
16132         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
16133         to __udivmoddi4.
16134
16135 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16136
16137         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
16138         manipulation.
16139
16140 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16141
16142         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
16143         describing register usage on function entry and exit.
16144
16145 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16146
16147         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
16148         (__aeabi_ldivmod): Fix whitespace.
16149
16150 2014-06-18  Andreas Schwab  <schwab@suse.de>
16151
16152         * doc/md.texi (Standard Names): Use @itemx for grouped items.
16153         Remove blank line after @item.
16154
16155 2014-06-18  Richard Henderson  <rth@redhat.com>
16156
16157         PR target/61545
16158         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
16159
16160 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
16161
16162         * config/arm/arm.c (neon_vector_mem_operand): Allow register
16163         POST_MODIFY for neon loads and stores.
16164         (arm_print_operand): Output post-index register for neon loads and
16165         stores.
16166
16167 2014-06-18  Richard Biener  <rguenther@suse.de>
16168
16169         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
16170
16171 2014-06-18  Richard Biener  <rguenther@suse.de>
16172
16173         * tree-pass.h (make_pass_dce_loop): Remove.
16174         * passes.def: Replace pass_dce_loop with pass_dce.
16175         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
16176         changed free niter estimates and reset the scev cache.
16177         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
16178         make_pass_dce_loop): Remove.
16179         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
16180         (fini_copy_prop): Return whether something changed.  Always
16181         let substitute_and_fold perform DCE and free niter estimates
16182         and reset the scev cache if so.
16183         (execute_copy_prop): If sth changed schedule cleanup-cfg.
16184         (pass_data_copy_prop): Do not unconditionally schedule
16185         cleanup-cfg or update-ssa.
16186
16187 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
16188
16189         PR tree-optimization/61518
16190         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16191         reduction var is used in reduction stmt or phi-function only.
16192
16193 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16194
16195         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
16196
16197 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16198
16199         PR tree-optimization/61517
16200         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
16201         whose rhs's first tree is the source expression instead of the
16202         expression itself.
16203         (find_bswap_or_nop): Likewise.
16204         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
16205         gimple stmt whose rhs's first tree is the source. In the memory source
16206         case, move the stmt to be replaced close to one of the original load to
16207         avoid the problem of a store between the load and the stmt's original
16208         location.
16209         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
16210         signature.
16211
16212 2014-06-18  Andreas Schwab  <schwab@suse.de>
16213
16214         PR rtl-optimization/54555
16215         * postreload.c (move2add_use_add2_insn): Substitute
16216         STRICT_LOW_PART only if it is cheaper.
16217
16218 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
16219
16220         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
16221         Do not use unspec as call operand.  Use memory_operand instead of
16222         memory_nox32_operand and add "m" operand constraint.  Disable
16223         pattern for TARGET_X32.
16224         (*sibcall_pop_memory): Ditto.
16225         (*sibcall_value_memory): Ditto.
16226         (*sibcall_value_pop_memory): Ditto.
16227         (sibcall peepholes): Merge SImode and DImode patterns using
16228         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
16229         Disable pattern for TARGET_X32.  Check if eliminated register is
16230         really dead after call insn.  Generate call RTX without unspec operand.
16231         (sibcall_value peepholes): Ditto.
16232         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
16233         instead of memory_nox32_operand.  Check if eliminated register is
16234         really dead after call insn. Generate call RTX without unspec operand.
16235         (sibcall_value_pop peepholes): Ditto.
16236         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
16237
16238 2014-06-18  Terry Guo  <terry.guo@arm.com>
16239
16240         PR target/61544
16241         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
16242         reach the head.
16243
16244 2014-06-18  Olivier Hainque  <hainque@adacore.com>
16245
16246         * tree-core.h (tree_block): Add an "end_locus" field, allowing
16247         memorization of the end of block source location.
16248         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
16249         * gimplify.c (gimplify_bind_expr): Propagate the block start and
16250         end source location info we have on the block entry/exit code we
16251         generate.
16252
16253 2014-06-18  Richard Biener  <rguenther@suse.de>
16254
16255         * common.opt (fssa-phiopt): New option.
16256         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
16257         but not with -Og.
16258         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
16259         * doc/invoke.texi (-fssa-phiopt): Document.
16260
16261 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16262
16263         * genattrtab.c (n_bypassed): New variable.
16264         (process_bypasses): Initialise n_bypassed.
16265         Count number of bypassed reservations.
16266         (make_automaton_attrs): Allocate space for bypassed reservations
16267         rather than number of bypasses.
16268
16269 2014-06-18  Richard Biener  <rguenther@suse.de>
16270
16271         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
16272         we propagated anything.
16273         (substitute_and_fold_dom_walker::before_dom_children): Something
16274         changed if we propagated into PHI arguments.
16275         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
16276         we removed a stmt.
16277
16278 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
16279
16280         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
16281         vector case.
16282         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
16283         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
16284         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
16285         Introduces alternative way of loads group permutaions.
16286         (vect_transform_grouped_load): Try alternative way of permutations.
16287
16288 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16289
16290         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
16291         changed in ORT_TARGET region, don't jump to do_outer.
16292         (struct gimplify_adjust_omp_clauses_data): New type.
16293         (gimplify_adjust_omp_clauses_1): Adjust for data being
16294         a struct gimplify_adjust_omp_clauses_data pointer instead
16295         of tree *.  Pass pre_p as a new argument to
16296         lang_hooks.decls.omp_finish_clause hook.
16297         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
16298         splay_tree_foreach to pass both list_p and pre_p.
16299         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
16300         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
16301         gimplify_adjust_omp_clauses callers.
16302         * langhooks.c (lhd_omp_finish_clause): New function.
16303         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
16304         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
16305         * langhooks.h (struct lang_hooks_for_decls): Add a new
16306         gimple_seq * argument to omp_finish_clause hook.
16307         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
16308         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
16309         (scan_omp_parallel, lower_omp_for): When adding
16310         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
16311         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
16312         * tree-nested.c (convert_nonlocal_omp_clauses,
16313         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
16314         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
16315
16316 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
16317
16318         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
16319         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
16320
16321 2014-06-17  Xinliang David Li  <davidxl@google.com>
16322
16323         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
16324         * passes.c (pass_init_dump_file): Do not set initialize
16325         flag to false unconditionally.
16326
16327 2014-06-17  Richard Biener  <rguenther@suse.de>
16328
16329         * genopinit.c (main): Use vec<>::qsort method.
16330         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16331         Likewise.
16332         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
16333
16334 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
16335
16336         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
16337         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
16338         (mips_move_to_gpr_cost): Remove ST_REGS case.
16339         (mips_move_from_gpr_cost): Likewise.
16340         (mips_register_move_cost): Likewise.
16341         (mips_secondary_reload_class): Likewise.
16342
16343 2014-06-17  Richard Biener  <rguenther@suse.de>
16344
16345         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
16346         (pass_all_optimizations): Move 3rd copy-prop pass from after
16347         fre to before ifcombine/phiopt.
16348
16349 2014-06-17  Richard Biener  <rguenther@suse.de>
16350
16351         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
16352         and allow all blocks to be forwarders.
16353
16354 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
16355
16356         PR target/61483
16357         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
16358         variable 'size'; calculate 'size' right in the front; use
16359         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
16360         pcum->aapcs_stack_words.
16361
16362 2014-06-17  Nick Clifton  <nickc@redhat.com>
16363
16364         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
16365         (umulhi3, mulsidi3, umulsidi3): Likewise.
16366
16367 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
16368
16369         PR middle-end/61508
16370         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
16371         check for section name.
16372
16373 2014-06-17  Richard Biener  <rguenther@suse.de>
16374
16375         * tree-ssa-propagate.c: Include domwalk.h.
16376         (substitute_and_fold): Outline main worker into a domwalker ...
16377         (substitute_and_fold_dom_walker::before_dom_children): ... here.
16378         Schedule stmts we can fully propagate for removal.  Remove
16379         poor-mans DCE.
16380         (substitute_and_fold): Apply a dominator walk to perform
16381         substitution.  Process stmts scheduled for removal here.
16382
16383 2014-06-17  Richard Biener  <rguenther@suse.de>
16384
16385         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
16386         of PHI node moving.
16387
16388 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
16389
16390         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
16391         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
16392         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16393         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
16394         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
16395         TARGET_HARD_FLOAT.
16396         (get_fpscr) : Likewise.
16397
16398 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
16399
16400         PR rtl-optimization/61325
16401         * lra-constraints.c (valid_address_p): Add forward declaration.
16402         (simplify_operand_subreg): Check address validity before and after
16403         alter_reg of memory subreg.
16404
16405 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
16406
16407         * config/i386/i386.c (decide_alg): Correctly handle
16408         maximum size of stringop algorithm.
16409
16410 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
16411
16412         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
16413
16414 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
16415
16416         PR rtl-optimization/61522
16417         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
16418
16419 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
16420
16421         Revert:
16422         * symtab.c (symtab_node::reset_section): New method.
16423         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16424         for localization.
16425         * cgraph.h (reset_section): Declare.
16426         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16427         do not consider comdat locals.
16428         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16429         for new symbol.
16430         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16431         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16432         reset sections of symbols dragged out of the comdats.
16433         (function_and_variable_visibility): Reset sections of
16434         localized symbols.
16435
16436 2014-06-16  Richard Biener  <rguenther@suse.de>
16437
16438         PR tree-optimization/61482
16439         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
16440         [-INF(OVF), +INF(OVF)] range.
16441
16442 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16443
16444         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
16445         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
16446         handling 32-bit multiplication.
16447
16448 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
16449
16450         PR middle-end/61430
16451         * lra-lives.c (process_bb_lives): Skip creating copy during
16452         insn scan when src/dest has constrained to same regno.
16453
16454 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
16455
16456         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
16457         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
16458
16459 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
16460
16461         * asan.c (check_func): New function.
16462         (maybe_create_ssa_name): Likewise.
16463         (build_check_stmt_with_calls): Likewise.
16464         (use_calls_p): Likewise.
16465         (report_error_func): Change interface.
16466         (build_check_stmt): Allow non-integer lengths; add support
16467         for new parameter.
16468         (asan_instrument): Likewise.
16469         (instrument_mem_region_access): Moved code to build_check_stmt.
16470         (instrument_derefs): Likewise.
16471         (instrument_strlen_call): Likewise.
16472         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
16473         * doc/invoke.texi: Describe new parameter.
16474         * params.def: Define new parameter.
16475         * params.h: Likewise.
16476         * sanitizer.def: Describe new builtins.
16477
16478 2014-06-16  Richard Biener  <rguenther@suse.de>
16479
16480         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16481         Make all defs available at the end.
16482         (eliminate): If we remove a PHI node schedule cfg-cleanup.
16483
16484 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16485
16486         PR plugins/45078
16487         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16488
16489 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
16490
16491         PR bootstrap/61516
16492         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16493         initialization.  Replace remaining use of uid.
16494
16495 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
16496
16497         * c-family/c-common.c (handle_tls_model_attribute): Use
16498         set_decl_tls_model.
16499         * c-family/c-common.c (handle_tls_model_attribute): Use
16500         set_decl_tls_model.
16501         * cgraph.h (struct varpool_node): Add tls_model.
16502         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16503         * tree.h (DECL_TLS_MODEL): Update.
16504         (DECL_THREAD_LOCAL_P): Check that variable is static.
16505         (decl_tls_model): Declare.
16506         (set_decl_tls_model): Declare.
16507         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16508         set symbol prorperties.
16509         (get_emutls_init_templ_addr): Cleanup.
16510         (new_emutls_decl): Update.
16511         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16512         (lto_input_varpool_node): Likewise.
16513         * lto-streamer-out.c (hash_tree): Likewise.
16514         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16515         not stream DECL_TLS_MODEL.
16516         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16517         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16518
16519 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16520
16521         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16522
16523 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16524
16525         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16526         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16527         lists.
16528         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16529         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16530         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16531         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16532         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16533         (df_get_artificial_defs, df_get_artificial_uses)
16534         (df_single_def, df_single_use): Update accordingly.
16535         (df_refs_chain_dump): Take the first element in a linked list as
16536         parameter, rather than a pointer to an array of pointers.
16537         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16538         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16539         (df_chain_create_bb_process_use): Likewise.
16540         (df_md_bb_local_compute_process_def): Likewise.
16541         * fwprop.c (process_defs, process_uses): Likewise.
16542         (register_active_defs, update_uses): Likewise.
16543         (forward_propagate_asm): Update for new df_ref linking.
16544         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16545         (df_null_ref_rec, df_null_mw_rec): Likewise.
16546         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16547         explicitly.
16548         (df_scan_free_bb_info): Remove check for null artificial_defs.
16549         (df_install_ref_incremental): Adjust for new df_ref linking.
16550         Use a single-element insertion rather than a full sort.
16551         (df_ref_chain_delete_du_chain): Take the first element
16552         in a linked list as parameter, rather than a pointer to an array of
16553         pointers.
16554         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16555         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16556         (df_insn_info_delete): Remove check for null defs and call to
16557         df_scan_free_mws_vec.
16558         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16559         null rather than df_null_*_rec.
16560         (df_insn_rescan_debug_internal): Likewise, and update null
16561         checks in the same way.  Remove check for null defs.
16562         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16563         Move a single element rather doing a full sort.
16564         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16565         linking.
16566         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
16567         Initialize df_ref and df_mw_hardreg lists to null rather than
16568         df_null_*_rec.
16569         (df_ref_compare): Take df_refs as parameter, transferring the
16570         old interface to...
16571         (df_ref_ptr_compare): ...this new function.
16572         (df_sort_and_compress_refs): Update accordingly.
16573         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16574         old interface to...
16575         (df_mw_ptr_compare): ...this new function.
16576         (df_sort_and_compress_mws): Update accordingly.
16577         (df_install_refs, df_install_mws): Return a linked list rather than
16578         an array of pointers.
16579         (df_refs_add_to_chains): Assert that old lists are empty rather
16580         than freeing them.
16581         (df_insn_refs_verify): Don't handle null defs speciailly.
16582         * web.c (union_match_dups): Update for new df_ref linking.
16583
16584 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16585
16586         * df.h (df_ref_create, df_ref_remove): Delete.
16587         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16588         (df_ref_remove): Likewise.
16589
16590 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16591
16592         * df.h (df_single_def, df_single_use): New functions.
16593         * ira.c (find_moveable_pseudos): Use them.
16594
16595 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16596
16597         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16598         * df-problems.c (df_note_bb_compute): Use it.
16599         * regstat.c (regstat_bb_compute_ri): Likewise.
16600
16601 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16602
16603         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16604         * cse.c (cse_extended_basic_block): Use them.
16605         * dce.c (mark_artificial_use): Likewise.
16606         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16607         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16608         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16609         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16610         (df_simulate_initialize_backwards): Likewise.
16611         (df_simulate_finalize_backwards): Likewise.
16612         (df_simulate_initialize_forwards): Likewise.
16613         (df_md_simulate_artificial_defs_at_top): Likewise.
16614         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16615         * regrename.c (init_rename_info): Likewise.
16616         * regstat.c (regstat_bb_compute_ri): Likewise.
16617         (regstat_bb_compute_calls_crossed): Likewise.
16618
16619 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16620
16621         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16622         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16623         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16624         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16625         * combine.c (create_log_links): Likewise.
16626         * compare-elim.c (find_flags_uses_in_insn): Likewise.
16627         (try_eliminate_compare): Likewise.
16628         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16629         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16630         (remove_reg_equal_equiv_notes_for_defs): Likewise.
16631         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16632         (word_dce_process_block, dce_process_block): Likewise.
16633         * ddg.c (def_has_ccmode_p): Likewise.
16634         * df-core.c (df_bb_regno_first_def_find): Likewise.
16635         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16636         * df-problems.c (df_rd_simulate_one_insn): Likewise.
16637         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16638         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16639         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16640         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16641         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16642         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16643         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16644         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16645         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16646         * fwprop.c (local_ref_killed_between_p): Likewise.
16647         (all_uses_available_at, free_load_extend): Likewise.
16648         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16649         * hw-doloop.c (scan_loop): Likewise.
16650         * ifcvt.c (dead_or_predicable): Likewise.
16651         * init-regs.c (initialize_uninitialized_regs): Likewise.
16652         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16653         (process_bb_node_lives): Likewise.
16654         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16655         (find_moveable_pseudos): Likewise.
16656         * loop-invariant.c (check_dependencies, record_uses): Likewise.
16657         * recog.c (peep2_find_free_register): Likewise.
16658         * ree.c (get_defs): Likewise.
16659         * regstat.c (regstat_bb_compute_ri): Likewise.
16660         (regstat_bb_compute_calls_crossed): Likewise.
16661         * sched-deps.c (find_inc, find_mem): Likewise.
16662         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16663         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16664         * shrink-wrap.c (requires_stack_frame_p): Likewise.
16665         (prepare_shrink_wrap): Likewise.
16666         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16667         * web.c (union_defs, pass_web::execute): Likewise.
16668         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16669         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16670
16671 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
16672
16673         * lra-assign.c (assign_by_spills): Add code to assign vector regs
16674         to inheritance pseudos.
16675         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16676
16677 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
16678
16679         PR target/61415
16680         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16681         (BU_MISC_2): Rename to ...
16682         (BU_LDBL128_2): ... this.
16683         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16684         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16685         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16686         RS6000_BTM_LDBL128.
16687         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16688         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16689         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16690         (unpacktf_1): Likewise.
16691         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16692         (__builtin_longdouble_dw1): Likewise.
16693         * doc/sourcebuild.texi (longdouble128): Document.
16694
16695 2014-06-13  Jeff Law  <law@redhat.com>
16696
16697         PR rtl-optimization/61094
16698         PR rtl-optimization/61446
16699         * ree.c (combine_reaching_defs): Get the mode for the copy from
16700         the extension insn rather than the defining insn.
16701
16702 2014-06-13  Dehao Chen  <dehao@google.com>
16703
16704         * dwarf2out.c (add_linkage_name): Emit more linkage name.
16705
16706 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
16707
16708         * doc/install.texi (--enable-linker-plugin-configure-flags)
16709         (--enable-linker-plugin-flags): Document new flags.
16710
16711 2014-06-13  Martin Jambor  <mjambor@suse.cz>
16712
16713         PR ipa/61186
16714         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16715         cache_token if returning early.
16716
16717 2014-06-13  Nick Clifton  <nickc@redhat.com>
16718
16719         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16720         requested alignment is active.
16721         (LABEL_ALIGN): Likewise.
16722         (LOOP_ALIGN): Likewise.
16723
16724 2014-06-13  Richard Biener  <rguenther@suse.de>
16725
16726         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16727         Rewrite to propagate the VN result into all uses where
16728         possible and to remove stmts becoming dead because of that.
16729         (eliminate): Generalize stmt removal handling, remove in
16730         reverse dominator order to support proper debug stmt
16731         generation.  Update stmts before removing stmts.
16732         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16733
16734 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16735
16736         PR tree-optimization/61375
16737         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16738         symbolic number cannot be represented in an uint64_t.
16739         (find_bswap_or_nop_1): Likewise.
16740
16741 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16742
16743         * symtab.c (symtab_node::reset_section): New method.
16744         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16745         for localization.
16746         * cgraph.h (reset_section): Declare.
16747         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16748         do not consider comdat locals.
16749         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16750         for new symbol.
16751         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16752         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16753         reset sections of symbols dragged out of the comdats.
16754         (function_and_variable_visibility): Reset sections of
16755         localized symbols.
16756
16757 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16758
16759         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16760         to use symtab and decl_binds_to_current_def_p
16761         * tree-vectorizer.c (increase_alignment): Increase alignment
16762         of alias target, too.
16763
16764 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
16765
16766         PR middle-end/61486
16767         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16768         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16769         if outer combined construct is distribute.
16770         (gimplify_omp_for): For OMP_DISTRIBUTE set
16771         gimplify_omp_ctxp->distribute.
16772         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16773         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16774         mapping into decl map.
16775
16776 2014-06-12  Jason Merrill  <jason@redhat.com>
16777
16778         * common.opt (fabi-version): Change default to 0.
16779
16780 2014-06-12  Jason Merrill  <jason@redhat.com>
16781
16782         * toplev.c (process_options): Reject -fabi-version=1.
16783
16784 2014-06-12  Jeff Law  <law@redhat.com>
16785
16786         PR tree-optimization/61009
16787         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16788         value when we stop processing a block due to problematic PHIs.
16789
16790 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
16791
16792         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16793         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16794         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16795         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16796         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16797         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16798         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16799         are not in the spec.
16800
16801 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
16802
16803         PR target/59843
16804         * config/aarch64/aarch64-modes.def: Add V1DFmode.
16805         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16806         Support V1DFmode.
16807
16808 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
16809
16810         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16811
16812 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
16813
16814         PR target/61443
16815         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16816         loading from address spaces.
16817
16818 2014-06-12  Martin Liska  <mliska@suse.cz>
16819
16820         PR ipa/61462
16821         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16822         statement is reachable.
16823
16824 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
16825
16826         * symtab.c (section_hash): New hash.
16827         (symtab_unregister_node): Clear section before freeing.
16828         (hash_section_hash_entry): New haser.
16829         (eq_sections): New function.
16830         (symtab_node::set_section_for_node): New method.
16831         (set_section_1): Update.
16832         (symtab_node::set_section): Take string instead of tree as parameter.
16833         (symtab_resolve_alias): Update.
16834         * cgraph.h (section_hash_entry_d): New structure.
16835         (section_hash_entry): New typedef.
16836         (cgraph_node): Change comdat_group_ to x_comdat_group,
16837         change section_ to x_section and turn into section_hash_entry;
16838         update accestors; put set_section_for_node offline.
16839         * tree.c (decl_section_name): Turn into string.
16840         (set_decl_section_name): Change parameter to be string.
16841         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16842         * sdbout.c (sdbout_one_type): Update.
16843         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16844         * varasm.c (IN_NAMED_SECTION, get_named_section,
16845         resolve_unique_section, hot_function_section, get_named_text_section,
16846         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16847         make_decl_rtl, default_unique_section): Update.
16848         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16849         (c6x_elf_unique_section): Update.
16850         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16851         * config/pa/pa.c (pa_function_section): Update.
16852         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16853         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16854         * config/arc/arc.c (arc_in_small_data_p): Update.
16855         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16856         * config/mcore/mcore.c (mcore_unique_section): Update.
16857         * config/mips/mips.c (mips16_build_function_stub): Update.
16858         (mips16_build_call_stub): Update.
16859         (mips_function_rodata_section): Update.
16860         (mips_in_small_data_p): Update.
16861         * config/score/score.c (score_in_small_data_p): Update.
16862         * config/rx/rx.c (rx_in_small_data): Update.
16863         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16864         (rs6000_xcoff_asm_named_section): Update.
16865         (rs6000_xcoff_unique_section): Update.
16866         * config/frv/frv.c (frv_string_begins_with): Update.
16867         (frv_in_small_data_p): Update.
16868         * config/v850/v850.c (v850_encode_data_area): Update.
16869         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16870         (bfin_handle_l1_data_attribute): Update.
16871         (bfin_handle_l2_attribute): Update.
16872         * config/mep/mep.c (mep_unique_section): Update.
16873         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16874         Update.
16875         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16876         (h8300_handle_tiny_data_attribute): Update.
16877         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16878         (m32r_in_small_data_p): Update.
16879         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16880         * config/i386/i386.c (ix86_in_large_data_p): Update.
16881         * config/i386/winnt.c (i386_pe_unique_section): Update.
16882         * config/darwin.c (darwin_function_section): Update.
16883         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16884         * tree-emutls.c (get_emutls_init_templ_addr): Update.
16885         (new_emutls_decl): Update.
16886         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16887         input_varpool_node): Update.
16888         (ead_string_cst): Turn to ...
16889         (read_string): ... this one.
16890         * dwarf2out.c (secname_for_decl): Update.
16891         * asan.c (asan_protect_global): Update.
16892
16893 2014-06-11  DJ Delorie  <dj@redhat.com>
16894
16895         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16896         cache lines.
16897         * config/rx/rx.c (rx_option_override): Likewise.
16898         (rx_align_for_label): Likewise.
16899
16900         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16901
16902 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
16903
16904         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16905         prototype.
16906
16907 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16908
16909         * common.md: New file.
16910         * doc/md.texi: Update description of generic, machine-independent
16911         constraints.
16912         * config/s390/constraints.md (e): Delete.
16913         * Makefile.in (md_file): Include common.md.
16914         * config/m32c/t-m32c (md_file): Likewise.
16915         * genpreds.c (general_mem): New array.
16916         (generic_constraint_letters): Remove constraints now defined by
16917         common.md.
16918         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16919         Allow the first character to be '<' or '>' as well.
16920         * genoutput.c (general_mem): New array.
16921         (indep_constraints): Remove constraints now defined by common.md.
16922         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16923         Remove special handling of 'm'.
16924         * ira-costs.c (record_reg_classes): Remove special handling of
16925         constraints now defined by common.md.
16926         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16927         * ira-lives.c (single_reg_class): Likewise.
16928         (ira_implicitly_set_insn_hard_regs): Likewise.
16929         * lra-constraints.c (reg_class_from_constraints): Likewise.
16930         (process_alt_operands, process_address, curr_insn_transform): Likewise.
16931         * postreload.c (reload_cse_simplify_operands): Likewise.
16932         * reload.c (push_secondary_reload, scratch_reload_class)
16933         (find_reloads, alternative_allows_const_pool_ref): Likewise.
16934         * reload1.c (maybe_fix_stack_asms): Likewise.
16935         * targhooks.c (default_secondary_reload): Likewise.
16936         * stmt.c (parse_output_constraint): Likewise.
16937         * recog.c (preprocess_constraints): Likewise.
16938         (constrain_operands, peep2_find_free_register): Likewise.
16939         (asm_operand_ok): Likewise, but add a comment saying why 'o'
16940         must be handled specially.
16941
16942 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16943
16944         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16945         * genpreds.c (have_const_dbl_constraints): Delete.
16946         (add_constraint): Don't set it.
16947         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16948         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16949         constraints using the lookup_constraint logic.
16950         * ira-lives.c (single_reg_class): Likewise.
16951         * ira.c (ira_setup_alts): Likewise.
16952         * lra-constraints.c (process_alt_operands): Likewise.
16953         * recog.c (asm_operand_ok, constrain_operands): Likewise.
16954         * reload.c (find_reloads): Likewise.
16955
16956 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16957
16958         * genpreds.c (const_int_start, const_int_end): New variables.
16959         (choose_enum_order): Output CONST_INT constraints before memory
16960         constraints.
16961         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16962         Add CT_CONST_INT.
16963         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16964         * ira.c (ira_setup_alts): Likewise.
16965         * lra-constraints.c (process_alt_operands): Likewise.
16966         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16967         * reload.c (find_reloads): Likewise.
16968
16969 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16970
16971         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16972         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
16973         * recog.c (preprocess_constraints): Update accordingly.
16974
16975 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16976
16977         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16978         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16979         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16980         * genpreds.c (print_type_tree): New function.
16981         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16982         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16983         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16984         Write out enum constraint_type and get_constraint_type.
16985         * lra-constraints.c (satisfies_memory_constraint_p): Take a
16986         constraint_num rather than a constraint string.
16987         (satisfies_address_constraint_p): Likewise.
16988         (reg_class_from_constraints): Avoid old constraint macros.
16989         (process_alt_operands, process_address_1): Likewise.
16990         (curr_insn_transform): Likewise.
16991         * ira-costs.c (record_reg_classes): Likewise.
16992         (record_operand_costs): Likewise.
16993         * ira-lives.c (single_reg_class): Likewise.
16994         (ira_implicitly_set_insn_hard_regs): Likewise.
16995         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16996         * postreload.c (reload_cse_simplify_operands): Likewise.
16997         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16998         (constrain_operands, peep2_find_free_register): Likewise.
16999         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
17000         (find_reloads, alternative_allows_const_pool_ref): Likewise.
17001         * reload1.c (maybe_fix_stack_asms): Likewise.
17002         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17003         * targhooks.c (default_secondary_reload): Likewise.
17004         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
17005         to EXTRA_CONSTRAINT_STR.
17006         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
17007
17008 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17009
17010         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
17011         (write_constraint_satisfied_p_array): ...this new function.
17012         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
17013         an array.
17014         (write_insn_preds_c): Update accordingly.
17015
17016 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17017
17018         * genpreds.c (write_lookup_constraint): Rename to...
17019         (write_lookup_constraint_1): ...this.
17020         (write_lookup_constraint_array): New function.
17021         (write_tm_preds_h): Define lookup_constraint as an inline function
17022         that uses write_lookup_constraint_array where possible.
17023         (write_insn_preds_c): Update for the changes above.
17024
17025 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17026
17027         * doc/md.texi (regclass_for_constraint): Rename to...
17028         (reg_class_for_constraint): ...this.
17029         * genpreds.c (num_constraints, enum_order, register_start)
17030         (register_end, satisfied_start, memory_start, memory_end)
17031         (address_start, address_end): New variables.
17032         (add_constraint): Count the number of constraints.
17033         (choose_enum_order): New function.
17034         (write_enum_constraint_num): Iterate over enum_order.
17035         (write_regclass_for_constraint): Rename to...
17036         (write_reg_class_for_constraint_1): ...this and update output
17037         accordingly.
17038         (write_constraint_satisfied_p): Rename to...
17039         (write_constraint_satisfied_p_1): ...this and update output
17040         accordingly.  Do nothing if all extra constraints are register
17041         constraints.
17042         (write_insn_extra_memory_constraint): Delete.
17043         (write_insn_extra_address_constraint): Delete.
17044         (write_range_function): New function.
17045         (write_tm_preds_h): Define constraint_satisfied_p and
17046         reg_class_for_constraint as inline functions that do a range check
17047         before calling the out-of-line function.  Use write_range_function
17048         to implement insn_extra_{register,memory,address}_constraint,
17049         the first of which is new.
17050         (write_insn_preds_c): Update after above changes to write_* functions.
17051         (main): Call choose_enum_order.
17052
17053 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17054
17055         PR tree-optimization/61306
17056         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
17057         expression instead of its size.
17058         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
17059         false to prevent optimization when the result is unpredictable due to
17060         arithmetic right shift of signed type with highest byte is set.
17061         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
17062         (init_symbolic_number): Likewise.
17063         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
17064         when the result is unpredictable due to sign extension.
17065
17066 2014-06-11  Terry Guo  <terry.guo@arm.com>
17067
17068         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
17069         (*thumb1_addsi3): Ditto.
17070         (*thumb_subdi3): Ditto.
17071         (thumb1_subsi3_insn): Ditto.
17072         (*thumb_mulsi3): Ditto.
17073         (*thumb_mulsi3_v6): Ditto.
17074         (*thumb1_andsi3_insn): Ditto.
17075         (thumb1_bicsi3): Ditto.
17076         (*thumb1_iorsi3_insn): Ditto.
17077         (*thumb1_xorsi3_insn): Ditto.
17078         (*thumb1_ashlsi3): Ditto.
17079         (*thumb1_ashrsi3): Ditto.
17080         (*thumb1_lshrsi3): Ditto.
17081         (*thumb1_rotrsi3): Ditto.
17082         (*thumb1_negdi2): Ditto.
17083         (*thumb1_negsi2): Ditto.
17084         (*thumb1_abssi2): Ditto.
17085         (*thumb1_neg_abssi2): Ditto.
17086         (*thumb1_one_cmplsi2): Ditto.
17087         (*thumb1_zero_extendhisi2): Ditto.
17088         (*thumb1_zero_extendqisi2): Ditto.
17089         (*thumb1_zero_extendqisi2_v6): Ditto.
17090         (thumb1_extendhisi2): Ditto.
17091         (thumb1_extendqisi2): Ditto.
17092         (*thumb1_movdi_insn): Ditto.
17093         (*thumb1_movsi_insn): Ditto.
17094         (*thumb1_movhi_insn): Ditto.
17095         (thumb_movhi_clobber): Ditto.
17096         (*thumb1_movqi_insn): Ditto.
17097         (*thumb1_movhf): Ditto.
17098         (*thumb1_movsf_insn): Ditto.
17099         (*thumb_movdf_insn): Ditto.
17100         (movmem12b): Ditto.
17101         (movmem8b): Ditto.
17102         (cbranchqi4): Ditto.
17103         (cbranchsi4_insn): Ditto.
17104         (cbranchsi4_scratch): Ditto.
17105         (*negated_cbranchsi4): Ditto.
17106         (*tbit_cbranch): Ditto.
17107         (*tlobits_cbranch): Ditto.
17108         (*tstsi3_cbranch): Ditto.
17109         (*cbranchne_decr1): Ditto.
17110         (*addsi3_cbranch): Ditto.
17111         (*addsi3_cbranch_scratch): Ditto.
17112         (*thumb_cmpdi_zero): Ditto.
17113         (cstoresi_eq0_thumb1): Ditto.
17114         (cstoresi_ne0_thumb1): Ditto.
17115         (*cstoresi_eq0_thumb1_insn): Ditto.
17116         (*cstoresi_ne0_thumb1_insn): Ditto.
17117         (cstoresi_nltu_thumb1): Ditto.
17118         (cstoresi_ltu_thumb1): Ditto.
17119         (thumb1_addsi3_addgeu): Ditto.
17120         (*thumb_jump): Ditto.
17121         (*call_reg_thumb1_v5): Ditto.
17122         (*call_reg_thumb1): Ditto.
17123         (*call_value_reg_thumb1_v5): Ditto.
17124         (*call_value_reg_thumb1): Ditto.
17125         (*call_insn): Ditto.
17126         (*call_value_insn): Ditto.
17127         (thumb1_casesi_internal_pic): Ditto.
17128         (thumb1_casesi_dispatch): Ditto.
17129         (*thumb1_indirect_jump): Ditto.
17130         (prologue_thumb1_interwork): Ditto.
17131         (*epilogue_insns): Ditto.
17132         (consttable_1): Ditto.
17133         (consttable_2): Ditto.
17134         (tablejump): Ditto.
17135         (*thumb1_tablejump): Ditto.
17136         (thumb_eh_return): Ditto.
17137         (define_peephole2): Two of them are thumb1 only and got moved into
17138         new file thumb1.md.
17139         (define_split): Six of them are thumb1 only and got moved into new
17140         file thumb1.md.
17141         * config/arm/thumb1.md: New file comprised of above thumb1 only
17142         patterns.
17143
17144 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17145
17146         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
17147         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
17148         dependencies.
17149         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
17150         (aarch64_crc_builtin_datum): New struct.
17151         (aarch64_crc_builtin_data): New.
17152         (aarch64_init_crc32_builtins): New function.
17153         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
17154         (aarch64_crc32_expand_builtin): New.
17155         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
17156         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17157         __ARM_FEATURE_CRC32 when appropriate.
17158         (TARGET_CRC32): Define.
17159         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
17160         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
17161         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
17162         (aarch64_<crc_variant>): New pattern.
17163         * config/aarch64/arm_acle.h: New file.
17164         * config/aarch64/iterators.md (CRC): New int iterator.
17165         (crc_variant, crc_mode): New int attributes.
17166         * doc/aarch64-acle-intrinsics.texi: New file.
17167         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
17168         Include aarch64-acle-intrinsics.texi.
17169
17170 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
17171
17172         * tree-vect-data-refs.c (vect_grouped_store_supported): New
17173         check for stores group of length 3.
17174         (vect_permute_store_chain): New permutations for stores group of
17175         length 3.
17176         * tree-vect-stmts.c (vect_model_store_cost): Change cost
17177         of vec_perm_shuffle for the new permutations.
17178
17179 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
17180
17181         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
17182         table rewriting temporarily on targets not supporting ONE_ONLY.
17183
17184 2014-06-11  Richard Biener  <rguenther@suse.de>
17185
17186         PR middle-end/61437
17187         Revert
17188         2014-06-04  Richard Biener  <rguenther@suse.de>
17189
17190         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17191         TREE_PUBLIC and DECL_EXTERNAL decls.
17192
17193 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
17194
17195         * varasm.c (set_implicit_section): New function.
17196         (resolve_unique_section): Use it to set implicit section
17197         for aliases, too.
17198         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
17199         (default_function_section): Likewise.
17200         (decl_binds_to_current_def_p): Constify argument.
17201         * varasm.h (decl_binds_to_current_def_p): Update prototype.
17202         * asan.c (asan_protect_global): Use
17203         symtab_get_node (decl)->implicit_section.
17204         * symtab.c (dump_symtab_base): Dump implicit sections.
17205         (verify_symtab_base): Verify sanity of sectoins and comdats.
17206         (symtab_resolve_alias): Alias share the section of its target.
17207         (set_section_1): New function.
17208         (symtab_node::set_section): Move here, recurse to aliases.
17209         (verify_symtab): Check for duplicated symtab lists.
17210         * tree-core.h (implicit_section_name_p): Remove.
17211         * tree-vect-data-refs.c: Include varasm.h.
17212         (vect_can_force_dr_alignment_p): Fix conditional on when
17213         decl bints to current definition; use
17214         symtab_get_node (decl)->implicit_section.
17215         * cgraph.c (cgraph_make_node_local_1): Fix section set.
17216         * cgraph.h (struct symtab_node): Add implicit_section.
17217         (set_section): Rename to ...
17218         (set_section_for_node): ... this one.
17219         (set_section): Declare.
17220         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
17221         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17222         input_overwrite_node, input_varpool_node): Stream implicit_section.
17223         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
17224         removal; it will fail in LTO.
17225
17226 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17227
17228         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
17229         Change second alternative type to f_mcr.
17230         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
17231         and 12th alternatives' types to f_mcr and f_mrc.
17232         (*movdi_aarch64): Same for 12th and 13th alternatives.
17233         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
17234         (aarch64_movtilow_tilow): Change type to fmov.
17235
17236 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
17237
17238         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
17239         (aarch64_save_or_restore_callee_save_registers): Fix layout.
17240
17241 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17242
17243         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
17244         New expander.
17245         (aarch64_sqrdmulh_lane<mode>): Likewise.
17246         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17247         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17248         (aarch64_sqdmulh_laneq<mode>): New expander.
17249         (aarch64_sqrdmulh_laneq<mode>): Likewise.
17250         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
17251         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
17252         (aarch64_sqdmulh_lane<mode>): New expander.
17253         (aarch64_sqrdmulh_lane<mode>): Likewise.
17254         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17255         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17256         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
17257         (aarch64_sqdmlal_laneq<mode>): Likewise.
17258         (aarch64_sqdmlsl_lane<mode>): Likewise.
17259         (aarch64_sqdmlsl_laneq<mode>): Likewise.
17260         (aarch64_sqdmlal2_lane<mode>): Likewise.
17261         (aarch64_sqdmlal2_laneq<mode>): Likewise.
17262         (aarch64_sqdmlsl2_lane<mode>): Likewise.
17263         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17264         (aarch64_sqdmull_lane<mode>): Likewise.
17265         (aarch64_sqdmull_laneq<mode>): Likewise.
17266         (aarch64_sqdmull2_lane<mode>): Likewise.
17267         (aarch64_sqdmull2_laneq<mode>): Likewise.
17268
17269 2014-06-10  Richard Biener  <rguenther@suse.de>
17270
17271         PR tree-optimization/61438
17272         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
17273         (eliminate_dom_walker::before_dom_children): Only try to inhibit
17274         insertion of IVs if running PRE.
17275         (eliminate): Adjust.
17276         (pass_pre::execute): Likewise.
17277         (pass_fre::execute): Likewise.
17278
17279 2014-06-10  Richard Biener  <rguenther@suse.de>
17280
17281         PR middle-end/61456
17282         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17283         Do not use the main variant for the type comparison.
17284         (ncr_compar): Likewise.
17285         (nonoverlapping_component_refs_p): Likewise.
17286
17287 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17288
17289         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
17290         REG_CFA_RESTORE mode.
17291
17292 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
17293
17294         * config/i386/i386.c (expand_vec_perm_pblendv): New.
17295         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
17296         expand_vec_perm_pblendv.
17297
17298 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17299
17300         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
17301         available.
17302         Simplify description of __crc32d and __crc32cd intrinsics.
17303         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
17304         availability.
17305
17306 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17307
17308         PR lto/61334
17309         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
17310         * config.in: Regenerate.
17311         * configure: Likewise.
17312
17313 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
17314
17315         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
17316         and public vars.
17317         (intersect_static_var_sets): Remove.
17318         (propagate): Do not prune local statics.
17319
17320 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
17321
17322         PR fortran/60928
17323         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
17324         Set lastprivate_firstprivate even if omp_private_outer_ref
17325         langhook returns true.
17326         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
17327         langhook, call unshare_expr on new_var and call
17328         build_outer_var_ref to get the last argument.
17329
17330 2014-06-10  Marek Polacek  <polacek@redhat.com>
17331
17332         PR c/60988
17333         * doc/extend.texi: Add cindex for transparent_union.
17334
17335 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17336
17337         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
17338         init_symbolic_number ().
17339
17340 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
17341
17342         PR middle-end/61141
17343         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
17344         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
17345         (verify_rtl_sharing): Likewise.
17346
17347 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
17348
17349         PR c++/54442
17350         * tree.c (build_qualified_type): Use a canonical type for
17351         TYPE_CANONICAL.
17352
17353 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17354
17355         * config/arm/arm-modes.def: Remove XFmode.
17356
17357 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
17358
17359         PR target/61062
17360         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
17361         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
17362         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
17363         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
17364         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
17365         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
17366         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
17367         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
17368         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
17369
17370 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
17371
17372         * tree-core.h (tree_decl_with_vis): Remove section_name.
17373
17374 2014-06-09  Kito Cheng  <kito@0xlab.org>
17375
17376         * ira.c (ira): Don't call init_caller_save if LRA enabled
17377         since LRA use its own infrastructure to handle that.
17378
17379 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17380
17381         * symtab.c (dump_symtab_base): Update dumping.
17382         (symtab_make_decl_local): Clear only DECL_COMDAT.
17383         * tree-vect-data-refs.c (Check that variable is static before
17384         tampering with sections.
17385         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
17386         (cgraph_create_virtual_clone): Likewise.
17387         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
17388         (decl_section_name, set_decl_section_name): New accessors.
17389         (find_decls_types_r): Do not walk section name
17390         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
17391         (decl_comdat_group, decl_comdat_group_id): Constify.
17392         (decl_section_name, set_decl_section_name): Update.
17393         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
17394         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
17395         (cgraph_make_node_local_1): Clear section and comdat group.
17396         * cgraph.h (set_comdat_group): Sanity check.
17397         (get_section, set_section): New.
17398         * ipa-comdats.c (ipa_comdats): Use get_section.
17399         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
17400         * lto-streamer-out.c: Do not follow section names.
17401         * c-family/c-common.c (handle_section_attribute): Update.
17402         * lto-cgraph.c (lto_output_node): Output section.
17403         (lto_output_varpool_node): Likewise.
17404         (read_comdat_group): Rename to ...
17405         (read_identifier): ... this one.
17406         (read_string_cst): New function.
17407         (input_node, input_varpool_node): Input section names.
17408         * tree-emutls.c (get_emutls_init_templ_addr): Update.
17409         (new_emutls_decl): Update.
17410         (secname_for_decl): Check section names only of static vars.
17411         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
17412         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
17413         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17414         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17415         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
17416         * config/mcore/mcore.c (mcore_unique_section): Likewise.
17417         * config/mips/mips.c (mips16_build_function_stub): Likewise.
17418         * config/v850/v850.c (v850_insert_attributes): Likewise.
17419         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
17420         Likewise.
17421         (h8300_handle_tiny_data_attribute): Likewise.
17422         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
17423         (bfin_handle_l2_attribute): Likewise.
17424
17425 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17426
17427         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
17428         remove static initializer.
17429
17430 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17431
17432         * varasm.c (use_blocks_for_decl_p): Check symbol table
17433         instead of alias attribute.
17434         (place_block_symbol): Recurse on aliases.
17435
17436 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17437
17438         * ipa-visibility.c: Include varasm.h
17439         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
17440
17441 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
17442
17443         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
17444         outputting aliases.
17445
17446 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
17447
17448         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
17449         from test_insn into GGC space escape via SET_SRC.
17450
17451 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
17452
17453         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
17454         call statement, if any.
17455         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
17456         statements, if any.  Tidy up.
17457
17458 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17459
17460         PR target/61431
17461         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
17462         iterators, VSX_D that handles 64-bit types, and VSX_LE that
17463         handles swapping the two 64-bit double words on little endian
17464         systems.  Include V1TImode and optionally TImode in VSX_LE so that
17465         these types are properly swapped.  Change all of the insns and
17466         splits that do the 64-bit swaps to use VSX_LE.
17467         (vsx_le_perm_load_<mode>): Likewise.
17468         (vsx_le_perm_store_<mode>): Likewise.
17469         (splitters for little endian memory operations): Likewise.
17470         (vsx_xxpermdi2_le_<mode>): Likewise.
17471         (vsx_lxvd2x2_le_<mode>): Likewise.
17472         (vsx_stxvd2x2_le_<mode>): Likewise.
17473
17474 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
17475
17476         PR target/61423
17477         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
17478         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17479         and corresponding splitters.  Zero extend general register
17480         or memory input operand to XMM temporary.  Enable for
17481         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17482         (floatunssi<mode>2): Update expander predicate.
17483
17484 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
17485
17486         PR rtl-optimization/61325
17487         * lra-constraints.c (process_address_1): Check scale equal to one
17488         to prevent transformation: base + scale * index => base + new_reg.
17489
17490 2014-06-06  Richard Biener  <rguenther@suse.de>
17491
17492         PR tree-optimization/59299
17493         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17494         a def operand.
17495         (nearest_common_dominator_of_uses): Likewise.
17496         (statement_sink_location): Adjust.  Support sinking loads.
17497
17498 2014-06-06  Martin Jambor  <mjambor@suse.cz>
17499
17500         * ipa-prop.c (get_place_in_agg_contents_list): New function.
17501         (build_agg_jump_func_from_list): Likewise.
17502         (determine_known_aggregate_parts): Renamed to
17503         determine_locally_known_aggregate_parts.  Moved some functionality
17504         to the two functions above, removed bound checks.
17505
17506 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
17507
17508         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17509         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17510         (aarch64_progress_pointer): Likewise.
17511         (aarch64_copy_one_part_and_move_pointers): Likewise.
17512         (aarch64_expand_movmen): Likewise.
17513         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17514         * config/aarch64/aarch64.md (movmem<mode>): New.
17515
17516 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
17517
17518         * targhooks.c (default_add_stmt_cost): Call target specific
17519         hook instead of default one.
17520
17521 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17522
17523         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17524         endianness instead of host endianness.
17525         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17526         comments.
17527
17528 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17529
17530         PR debug/53927
17531         * function.c (instantiate_decls): Process the saved static chain.
17532         (expand_function_start): If not optimizing, save the static chain
17533         onto the stack.
17534         * tree-nested.c (convert_all_function_calls): Always create the static
17535         chain for nested functions if not optimizing.
17536
17537 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17538
17539         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17540
17541 2014-06-06  Richard Biener  <rguenther@suse.de>
17542
17543         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17544         (construct_init_block): Likewise.
17545         (construct_exit_block): Likewise.
17546         (pass_expand::execute): Likewise.
17547         * graphite.c (graphite_transforms): Replace check for current_loops
17548         with a check for > 1 loops.
17549         (pass_graphite_transforms::execute): Adjust.
17550         * ipa-split.c (split_function): Remove check for current_loops.
17551         * omp-low.c (expand_parallel_call): Likewise.
17552         (expand_omp_for_init_counts): Likewise.
17553         (extract_omp_for_update_vars): Likewise.
17554         (expand_omp_for_generic): Likewise.
17555         (expand_omp_sections): Likewise.
17556         (expand_omp_target): Likewise.
17557         * tracer.c (tail_duplicate): Likewise.
17558         (pass_tracer::execute): Likewise.
17559         * trans-mem.c (expand_transaction): Likewise.
17560         * tree-complex.c (expand_complex_div_wide): Likewise.
17561         * tree-eh.c (lower_resx): Likewise.
17562         (cleanup_empty_eh_merge_phis): Likewise.
17563         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17564         current_loops with a check for > 1 loops.
17565         (pass_predcom::execute): Adjust.
17566         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17567         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17568         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17569         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17570         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17571         * tree-switch-conversion.c (process_switch): Likewise.
17572         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17573         * tree-vrp.c (vrp_visit_phi_node): Likewise.
17574         (execute_vrp): Likewise.
17575         * ubsan.c (ubsan_expand_null_ifn): Likewise.
17576
17577 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17578
17579         * rtl.h (insn_location): Declare.
17580         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17581         with UNKNOWN_LOCATION.
17582         * emit-rtl.c (insn_location): New function.
17583         * final.c (notice_source_line): Check that the instruction has a
17584         location before retrieving it and use insn_location.
17585         * modulo-sched.c (loop_single_full_bb_p): Likewise.
17586         * print-rtl.c (print_rtx): Likewise.
17587
17588 2014-06-06  Richard Biener  <rguenther@suse.de>
17589
17590         * passes.def: Move 2nd VRP pass before phi-only-cprop.
17591
17592 2014-06-06  Christian Bruel  <christian.bruel@st.com>
17593
17594         PR tree-optimization/43934
17595         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17596         cost.
17597
17598 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
17599
17600         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
17601         return NO_REGS for extra address and memory constraints.  Handle
17602         operands that match (or are equivalent to something that matches)
17603         extra constant constraints.  Ignore other non-register operands.
17604
17605 2014-06-06  Alan Modra  <amodra@gmail.com>
17606
17607         PR target/61300
17608         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17609         * doc/tm.texi: Regenerate.
17610         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17611         Use throughout in place of REG_PARM_STACK_SPACE.
17612         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17613         "incoming" param.  Pass to rs6000_function_parms_need_stack.
17614         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17615         prototype_p when incoming.  Use function decl when incoming
17616         to handle K&R style functions.
17617         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17618         (INCOMING_REG_PARM_STACK_SPACE): Define.
17619
17620 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17621
17622         PR target/52472
17623         * cfgexpand.c (expand_debug_expr): Use address space of nested
17624         TREE_TYPE for ADDR_EXPR and MEM_REF.
17625
17626 2014-06-05  Jeff Law  <law@redhat.com>
17627
17628         PR tree-optimization/61289
17629         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17630         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
17631         looking for those which match LHS.  All callers changed.
17632         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17633         parameters and code which manipulated them.  All callers changed.
17634         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17635         and DST_MAP parameters.  Simplify invalidation code by just calling
17636         invalidate_equivalences.  All callers changed.
17637         (thread_across_edge): Simplify now that we don't need to maintain
17638         the map of equivalences to invalidate.
17639
17640 2014-06-05  Kai Tietz  <ktietz@redhat.com>
17641             Richard Henderson  <rth@redhat.com>
17642
17643         PR target/46219
17644         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17645         checking for !TARGET_X32.
17646         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17647         (sibcall_intern): New define_insn, plus required peepholes.
17648         (sibcall_pop_intern): Likewise.
17649         (sibcall_value_intern): Likewise.
17650         (sibcall_value_pop_intern): Likewise.
17651
17652 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
17653
17654         * tree-inline.c (tree_function_versioning): Check DF info existence
17655         before accessing it.
17656
17657 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17658
17659         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17660         frame_size.
17661         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17662         aarch64_frame hard_fp_offset and frame_size.
17663         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17664         frame_size; remove original_frame_size.
17665         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17666         (aarch64_initial_elimination_offset): Remove frame_size and
17667         offset.  Use aarch64_frame frame_size.
17668
17669 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17670             Jiong Wang  <jiong.wang@arm.com>
17671             Renlin  <renlin.li@arm.com>
17672
17673         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17674         initialization of R30 offset.  Update offset.  Iterate core
17675         regisers upto X30.  Remove X29, X30 specific code.
17676
17677 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17678             Jiong Wang  <jiong.wang@arm.com>
17679
17680         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17681         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17682         (aarch64_register_saved_on_entry): Adjust test.
17683
17684 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17685
17686         * config/aarch64/aarch64.h (machine_function): Move
17687         saved_varargs_size from here...
17688         (aarch64_frame): ... to here.
17689
17690         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17691         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17692         (aarch64_initial_elimination_offset)
17693         (aarch64_setup_incoming_varargs): Adjust location of
17694         saved_varargs_size.
17695
17696 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17697
17698         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17699         layout comment.
17700
17701 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
17702             Prachi Godbole  <Prachi.Godbole@imgtec.com>
17703
17704         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
17705         mips32r5 entry to use PROCESSOR_P5600.
17706         * config/mips/mips-tables.opt: Regenerate.
17707         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17708         * config/mips/mips.c (mips_fmadd_bypass): New function.
17709         (mips_rtx_cost_data): Add costs for p5600.
17710         (mips_issue_rate): Add support for p5600.
17711         (mips_multipass_dfa_lookahead): Likewise.
17712         * config/mips/mips.h (TUNE_P5600): New define.
17713         (TUNE_MACC_CHAINS): Add TUNE_P5600.
17714         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17715         * config/mips/mips.md: Include p5600.md.
17716         (processor): Add p5600.
17717         * config/mips/p5600.md: New file.
17718
17719 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
17720
17721         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17722         * config/i386/predicates.md (palignr_operand): New.
17723         Indicates if permutation is suitable for palignr instruction.
17724
17725 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
17726
17727         PR tree-optimization/61319
17728         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17729         stmt belongs to loop.
17730
17731 2014-06-05  Richard Biener  <rguenther@suse.de>
17732
17733         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17734         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17735         (lookup_tmp_var): Adjust.
17736         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17737
17738 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17739
17740         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17741
17742 2014-06-05  Marek Polacek  <polacek@redhat.com>
17743
17744         PR c/49706
17745         * doc/invoke.texi: Document -Wlogical-not-parentheses.
17746
17747 2014-06-04  Tom de Vries  <tom@codesourcery.com>
17748
17749         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17750         CONST_INT.
17751
17752 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
17753
17754         PR tree-optimization/61385
17755         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17756
17757 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
17758
17759         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
17760         changed to use fatal_error.
17761         (main): Ensure lto_wrapper_cleanup is run atexit.
17762
17763 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17764
17765         * lra-constraints.c (valid_address_p): Move earlier in file.
17766         (address_eliminator): New structure.
17767         (satisfies_memory_constraint_p): New function.
17768         (satisfies_address_constraint_p): Likewise.
17769         (process_alt_operands, process_address, curr_insn_transform): Use them.
17770
17771 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17772
17773         * lra-int.h (lra_static_insn_data): Make operand_alternative a
17774         const pointer.
17775         (target_lra_int, default_target_lra_int, this_target_lra_int)
17776         (op_alt_data): Delete.
17777         * lra.h (lra_init): Delete.
17778         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17779         (init_insn_code_data_once): Remove op_alt_data handling.
17780         (finish_insn_code_data_once): Likewise.
17781         (init_op_alt_data): Delete.
17782         (get_static_insn_data): Initialize operand_alternative to null.
17783         (free_insn_recog_data): Cast operand_alternative before freeing it.
17784         (setup_operand_alternative): Take the operand_alternative as
17785         parameter and assume it isn't already cached in the static
17786         insn data.
17787         (lra_set_insn_recog_data): Update accordingly.
17788         (lra_init): Delete.
17789         * ira.c (ira_init): Don't call lra_init.
17790         * target-globals.h (this_target_lra_int): Declare.
17791         (target_globals): Remove lra_int.
17792         (restore_target_globals): Update accordingly.
17793         * target-globals.c: Don't include lra-int.h.
17794         (default_target_globals, save_target_globals): Remove lra_int.
17795
17796 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17797
17798         * recog.h (operand_alternative): Convert reg_class, reject,
17799         matched and matches into bitfields.
17800         (preprocess_constraints): New overload.
17801         (preprocess_insn_constraints): New function.
17802         (preprocess_constraints): Take the insn as parameter.
17803         (recog_op_alt): Change into a pointer.
17804         (target_recog): Add x_op_alt.
17805         * recog.c (asm_op_alt): New variable.
17806         (recog_op_alt): Change into a pointer.
17807         (preprocess_constraints): New overload, replacing the old function
17808         definition with one that doesn't use global state.
17809         (preprocess_insn_constraints): New function.
17810         (preprocess_constraints): Use them.  Take the insn as parameter.
17811         Use asm_op_alt for asms.
17812         (recog_init): Free existing x_op_alt entries.
17813         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17814         pointer const.
17815         (make_early_clobber_and_input_conflicts): Likewise.
17816         (process_bb_node_lives): Pass the insn to process_constraints.
17817         * reg-stack.c (check_asm_stack_operands): Likewise.
17818         (subst_asm_stack_regs): Likewise.
17819         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17820         * regrename.c (build_def_use): Likewise.
17821         * sched-deps.c (sched_analyze_insn): Likewise.
17822         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17823         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17824         (note_invalid_constants): Likewise.
17825         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17826         (ix86_legitimate_combined_insn): Make operand_alternative pointer
17827         const.
17828
17829 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17830
17831         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17832         * ira-lives.c (check_and_make_def_conflict): Check for disabled
17833         alternatives.
17834         (make_early_clobber_and_input_conflicts): Likewise.
17835         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17836
17837 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17838
17839         * recog.h (alternative_class): New function.
17840         (which_op_alt): Return a const recog_op_alt.
17841         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17842         (subst_asm_stack_regs): Likewise.
17843         * config/arm/arm.c (note_invalid_constants): Likewise.
17844         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
17845         the operand_alternative; use alternative class instead.
17846         * sel-sched.c (get_reg_class): Likewise.
17847         * regrename.c (build_def_use): Likewise.
17848         (hide_operands, restore_operands, record_out_operands): Update type
17849         accordingly.
17850
17851 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17852
17853         * recog.h (recog_op_alt): Convert to a flat array.
17854         (which_op_alt): New function.
17855         * recog.c (recog_op_alt): Convert to a flat array.
17856         (preprocess_constraints): Update accordingly, grouping all
17857         operands of the same alternative together, rather than the
17858         other way around.
17859         * ira-lives.c (check_and_make_def_conflict): Likewise.
17860         (make_early_clobber_and_input_conflicts): Likewise.
17861         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17862         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17863         (subst_asm_stack_regs): Likewise.
17864         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17865         * regrename.c (hide_operands, record_out_operands): Likewise.
17866         (build_def_use): Likewise.
17867         * sel-sched.c (get_reg_class): Likewise.
17868         * config/arm/arm.c (note_invalid_constants): Likewise.
17869
17870 2014-06-04  Jason Merrill  <jason@redhat.com>
17871
17872         PR c++/51253
17873         PR c++/61382
17874         * gimplify.c (gimplify_arg): Non-static.
17875         * gimplify.h: Declare it.
17876
17877 2014-06-04  Richard Biener  <rguenther@suse.de>
17878
17879         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17880         TREE_PUBLIC and DECL_EXTERNAL decls.
17881
17882 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
17883
17884         * regcprop.c (copyprop_hardreg_forward_1): Account for
17885         HARD_REGNO_CALL_PART_CLOBBERED.
17886
17887 2014-06-04  Richard Biener  <rguenther@suse.de>
17888
17889         * configure.ac: Check whether the underlying type of int64_t
17890         is long or long long.
17891         * configure: Regenerate.
17892         * config.in: Likewise.
17893         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17894         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17895
17896 2014-06-04  Richard Biener  <rguenther@suse.de>
17897
17898         PR tree-optimization/60098
17899         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17900         we hit a kill.
17901         (dse_optimize_stmt): Simplify, now that we found a kill
17902         earlier.
17903
17904 2014-06-04  Richard Biener  <rguenther@suse.de>
17905
17906         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17907         of accesses with non-invariant address.
17908
17909 2014-06-04  Martin Liska  <mliska@suse.cz>
17910
17911         * cgraph.h (cgraph_make_wrapper): New function introduced.
17912         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17913         * ipa-inline.h (inline_analyze_function): The function is global.
17914         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17915
17916 2014-06-04  Martin Liska  <mliska@suse.cz>
17917
17918         * tree.h (private_lookup_attribute_starting): New function.
17919         (lookup_attribute_starting): Likewise.
17920         * tree.c (private_lookup_attribute_starting): Likewise.
17921
17922 2014-06-04  Martin Liska  <mliska@suse.cz>
17923
17924         * cgraph.h (expand_thunk): New argument added.
17925         (address_taken_from_non_vtable_p): New global function.
17926         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17927         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17928         * cgraphunit.c (analyze_function): Likewise.
17929         (assemble_thunks_and_aliases): Argument added to call.
17930         (expand_thunk): New argument forces to produce GIMPLE thunk.
17931
17932 2014-06-04  Martin Liska  <mliska@suse.cz>
17933
17934         * coverage.h (coverage_compute_cfg_checksum): Argument added.
17935         * coverage.c (coverage_compute_cfg_checksum): Likewise.
17936         * profile.c (branch_prob): Likewise.
17937
17938 2014-06-04  Martin Jambor  <mjambor@suse.cz>
17939
17940         PR ipa/61340
17941         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17942         handler for switch on an ipa_ref_use enum.
17943         * ipa-reference.c (analyze_function): Likewise.
17944
17945 2014-06-04  Kai Tietz  <ktietz@redhat.com>
17946
17947         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17948         from old call-instruction.
17949
17950 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
17951
17952         * config/aarch64/aarch64.c (aarch64_classify_address)
17953         (aarch64_legitimize_reload_address): Support full addressing modes
17954         for vector modes.
17955         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17956         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17957
17958 2014-06-03  Andrew Pinski  <apinski@cavium.com>
17959
17960         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17961         for OP0.
17962
17963 2014-06-03  Andrew Pinski  <apinski@cavium.com>
17964
17965         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17966         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17967
17968 2014-06-03  Kai Tietz  <ktietz@redhat.com>
17969
17970         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17971         for 64-bit ms-abi.
17972
17973 2014-06-03  Dehao Chen  <dehao@google.com>
17974
17975         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17976         the same loop.
17977
17978 2014-06-03  Marek Polacek  <polacek@redhat.com>
17979
17980         PR c/60439
17981         * doc/invoke.texi: Document -Wswitch-bool.
17982         * function.c (stack_protect_epilogue): Cast controlling expression of
17983         the switch to int.
17984         * gengtype.c (walk_type): Generate switch expression with its
17985         controlling expression cast to int.
17986
17987 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
17988
17989         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17990         and attiny841.
17991         * config/avr/avr-tables.opt: Regenerate.
17992         * config/avr/t-multilib: Regenerate.
17993         * doc/avr-mmcu.texi: Regenerate.
17994
17995 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
17996             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
17997
17998         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17999         (ata6617c, ata664251): Add new avr35 devices.
18000         (ata6612c): Add new avr4 device.
18001         (ata6613c, ata6614q): Add new avr5 devices.
18002         * config/avr/avr-tables.opt: Regenerate.
18003         * config/avr/t-multilib: Regenerate.
18004         * doc/avr-mmcu.texi: Regenerate.
18005
18006 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18007
18008         * gcc/config/aarch64/aarch64-builtins.c
18009         (aarch64_types_binop_ssu_qualifiers): New static data.
18010         (TYPES_BINOP_SSU): Define.
18011         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
18012         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
18013         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
18014         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
18015         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
18016         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
18017         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
18018         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
18019         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
18020         suffix to builtin function name, remove cast.
18021         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
18022         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
18023         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
18024
18025 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18026
18027         * gcc/config/aarch64/aarch64-builtins.c
18028         (aarch64_types_binop_uus_qualifiers,
18029         aarch64_types_shift_to_unsigned_qualifiers,
18030         aarch64_types_unsigned_shiftacc_qualifiers): Define.
18031         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
18032         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
18033         sqshlu_n, uqshl_n): Update qualifiers.
18034         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
18035         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
18036         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
18037         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
18038         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
18039         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
18040         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
18041         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
18042         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
18043         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
18044         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
18045         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
18046         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
18047         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
18048         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
18049         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
18050         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
18051         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
18052         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
18053         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
18054         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
18055         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
18056         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
18057         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
18058         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
18059         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
18060         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
18061
18062 2014-06-03  Teresa Johnson  <tejohnson@google.com>
18063
18064         * tree-sra.c (modify_function): Record caller nodes after rebuild.
18065
18066 2014-06-02  Jason Merrill  <jason@redhat.com>
18067
18068         PR c++/61020
18069         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
18070
18071 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18072
18073         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
18074         location == 0.
18075
18076 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
18077
18078         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
18079         New pattern.
18080         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
18081         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
18082         * config/aarch64/iterators.md (REVERSE): New iterator.
18083         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
18084         (rev_op): New int_attribute.
18085         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
18086         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
18087         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
18088         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
18089         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
18090         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
18091         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
18092         Replace temporary __asm__ with __builtin_shuffle.
18093
18094 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18095
18096         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
18097         mips64r5.
18098         * config/mips/mips-tables.opt: Regenerate.
18099         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
18100         to use mips_isa_rev rather than ISA_MIPS32R2.
18101         * config/mips/mips.h (ISA_MIPS32R3): New define.
18102         (ISA_MIPS32R5): New define.
18103         (ISA_MIPS64R3): New define.
18104         (ISA_MIPS64R5): New define.
18105         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
18106         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
18107         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
18108         and mips64r5.
18109         (MIPS_ISA_SYNCI_SPEC): Likewise.
18110         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
18111         (LINK_SPEC): Added mips32r3 and mips32r5.
18112         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
18113         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
18114         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
18115         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
18116         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
18117         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
18118         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
18119
18120 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18121
18122         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
18123         options.
18124         * config/mips/mips.opt (mxpa): New option.
18125         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
18126         assembler.
18127
18128 2014-06-03  Martin Jambor  <mjambor@suse.cz>
18129
18130         PR ipa/61160
18131         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
18132         thunks.
18133
18134 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18135
18136         PR tree-optimization/61328
18137         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
18138         initialization from find_bswap_or_nop_1.
18139         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
18140         in source_expr2 before using the size value the function sets. Also
18141         make use of init_symbolic_number () in both the old place and
18142         find_bswap_or_nop_load () to avoid reading uninitialized memory when
18143         doing recursion in the GIMPLE_BINARY_RHS case.
18144
18145 2014-06-03  Richard Biener  <rguenther@suse.de>
18146
18147         PR tree-optimization/61383
18148         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
18149         stmts can't trap.
18150
18151 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
18152
18153         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
18154         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
18155         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
18156         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
18157         in this file.
18158         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
18159         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
18160         * system.h: ...here and make it unconditional.
18161         * target.def (conditional_register_usage): Mention
18162         define_register_constraint instead of old-style constraint macros.
18163         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
18164         * doc/tm.texi: Regenerate.
18165         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
18166         protected by !USE_MD_CONSTRAINTS.
18167         * config/frv/frv.md: Remove quote from old version of documentation.
18168         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
18169         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
18170         CONST_DOUBLE_OK_FOR_LETTER.
18171         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
18172
18173 2014-06-02  Andrew Pinski  <apinski@cavium.com>
18174
18175         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
18176         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
18177         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
18178         file whose name depends on -mabi= and -mbig-endian.
18179         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
18180         Handle LP64 better and handle ilp32 too.
18181         (MULTILIB_OPTIONS): Delete.
18182         (MULTILIB_DIRNAMES): Delete.
18183
18184 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
18185
18186         * expr.h: Remove prototypes of functions defined in builtins.c.
18187         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
18188         Remove prototypes of functions defined in builtins.c.
18189         * builtins.h: Update prototype list to include all exported functions.
18190         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
18191         no_c99_libc_has_function): Move to targhooks.c
18192         (build_string_literal, build_call_expr_loc_array,
18193         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
18194         to tree.c.
18195         (expand_builtin_object_size, fold_builtin_object_size): Make static.
18196         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
18197         no_c99_libc_has_function): Relocate from builtins.c.
18198         * tree.c: Include builtins.h.
18199         (build_call_expr_loc_array, build_call_expr_loc_vec,
18200         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
18201         from builtins.c.
18202         * fold-const.h (fold_fma): Move prototype to builtins.h.
18203         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
18204         * asan.c: Include builtins.h.
18205         * cfgexpand.c: Likewise.
18206         * convert.c: Likewise.
18207         * emit-rtl.c: Likewise.
18208         * except.c: Likewise.
18209         * expr.c: Likewise.
18210         * fold-const.c: Likewise.
18211         * gimple-fold.c: Likewise.
18212         * gimple-ssa-strength-reduction.c: Likewise.
18213         * gimplify.c: Likewise.
18214         * ipa-inline.c: Likewise.
18215         * ipa-prop.c: Likewise.
18216         * lto-streamer-out.c: Likewise.
18217         * stmt.c: Likewise.
18218         * tree-inline.c: Likewise.
18219         * tree-object-size.c: Likewise.
18220         * tree-sra.c: Likewise.
18221         * tree-ssa-ccp.c: Likewise.
18222         * tree-ssa-forwprop.c: Likewise.
18223         * tree-ssa-loop-ivcanon.c: Likewise.
18224         * tree-ssa-loop-ivopts.c: Likewise.
18225         * tree-ssa-math-opts.c: Likewise.
18226         * tree-ssa-reassoc.c: Likewise.
18227         * tree-ssa-threadedge.c: Likewise.
18228         * tree-streamer-in.c: Likewise.
18229         * tree-vect-data-refs.c: Likewise.
18230         * tree-vect-patterns.c: Likewise.
18231         * tree-vect-stmts.c: Likewise.
18232         * config/aarch64/aarch64.c: Likewise.
18233         * config/alpha/alpha.c: Likewise.
18234         * config/arc/arc.c: Likewise.
18235         * config/arm/arm.c: Likewise.
18236         * config/avr/avr.c: Likewise.
18237         * config/bfin/bfin.c: Likewise.
18238         * config/c6x/c6x.c: Likewise.
18239         * config/cr16/cr16.c: Likewise.
18240         * config/cris/cris.c: Likewise.
18241         * config/epiphany/epiphany.c: Likewise.
18242         * config/fr30/fr30.c: Likewise.
18243         * config/frv/frv.c: Likewise.
18244         * config/h8300/h8300.c: Likewise.
18245         * config/i386/i386.c: Likewise.
18246         * config/i386/winnt.c: Likewise.
18247         * config/ia64/ia64.c: Likewise.
18248         * config/iq2000/iq2000.c: Likewise.
18249         * config/lm32/lm32.c: Likewise.
18250         * config/m32c/m32c.c: Likewise.
18251         * config/m32r/m32r.c: Likewise.
18252         * config/m68k/m68k.c: Likewise.
18253         * config/mcore/mcore.c: Likewise.
18254         * config/mep/mep.c: Likewise.
18255         * config/microblaze/microblaze.c: Likewise.
18256         * config/mips/mips.c: Likewise.
18257         * config/mmix/mmix.c: Likewise.
18258         * config/mn10300/mn10300.c: Likewise.
18259         * config/moxie/moxie.c: Likewise.
18260         * config/msp430/msp430.c: Likewise.
18261         * config/nds32/nds32.c: Likewise.
18262         * config/pa/pa.c: Likewise.
18263         * config/pdp11/pdp11.c: Likewise.
18264         * config/picochip/picochip.c: Likewise.
18265         * config/rl78/rl78.c: Likewise.
18266         * config/rs6000/rs6000.c: Likewise.
18267         * config/rx/rx.c: Likewise.
18268         * config/s390/s390.c: Likewise.
18269         * config/score/score.c: Likewise.
18270         * config/sh/sh.c: Likewise.
18271         * config/sparc/sparc.c: Likewise.
18272         * config/spu/spu.c: Likewise.
18273         * config/stormy16/stormy16.c: Likewise.
18274         * config/tilegx/tilegx.c: Likewise.
18275         * config/tilepro/tilepro.c: Likewise.
18276         * config/v850/v850.c: Likewise.
18277         * config/vax/vax.c: Likewise.
18278         * config/xtensa/xtensa.c: Likewise.
18279
18280 2014-06-02  Jeff Law  <law@redhat.com>
18281
18282         PR rtl-optimization/61094
18283         * ree.c (combine_reaching_defs): Do not reextend an insn if it
18284         was marked as do_no_reextend.  If a copy is needed to eliminate
18285         an extension, then mark it as do_not_reextend.
18286
18287 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18288
18289         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
18290
18291 2014-06-02  Richard Henderson  <rth@redhat.com>
18292
18293         PR target/61336
18294         * config/alpha/alpha.c (print_operand_address): Allow symbolic
18295         addresses inside asms.  Use output_operand_lossage instead of
18296         gcc_unreachable.
18297
18298 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
18299
18300         PR target/61239
18301         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
18302         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
18303
18304 2014-06-02  Tom de Vries  <tom@codesourcery.com>
18305
18306         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
18307         case that x has VOIDmode.
18308
18309 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
18310
18311         * varasm.c (copy_constant): Delete function.
18312         (build_constant_desc): Don't call it.
18313
18314 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18315
18316         PR target/61154
18317         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
18318         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
18319         with immediate_operand.
18320
18321 2014-06-02  Andreas Schwab  <schwab@suse.de>
18322
18323         * config/ia64/ia64.c
18324         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
18325         pending_data_specs first.
18326
18327 2014-06-02  Richard Biener  <rguenther@suse.de>
18328
18329         PR tree-optimization/61378
18330         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
18331         valueized_anything.
18332
18333 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
18334
18335         * config/i386/constraints.md (Bw): Rename from 'w'.
18336         (Bz): Rename from 'z'.
18337         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
18338
18339 2014-06-01  Kai Tietz  <ktietz@redhat.com>
18340
18341         PR target/61377
18342         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
18343         * config/i386/i386.md (sibcall_insn_operand): Use Bs
18344         instead of m constraint.
18345
18346 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
18347
18348         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
18349         a separate alternative where the scratch operand 2 is marked as
18350         early clobber.
18351
18352 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
18353
18354         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18355         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
18356         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
18357         and __builtins_arm_get_fpscr.
18358         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18359         __builtins_arm_get_fpscr.
18360         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
18361         __builtins_arm_ldfpscr.
18362         (arm_atomic_assign_expand_fenv): New function.
18363         * config/arm/vfp.md (set_fpscr): New pattern.
18364         (get_fpscr) : Likewise.
18365         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
18366         VUNSPEC_SET_FPSCR.
18367         * doc/extend.texi (AARCH64 Built-in Functions) : Document
18368         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
18369
18370 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
18371
18372         * asan.c (report_error_func): Add SLOW_P argument, use
18373         BUILT_IN_ASAN_*_N if set.
18374         (build_check_stmt): Likewise.
18375         (instrument_derefs): If T has insufficient alignment,
18376         force same handling as for odd sizes.
18377
18378         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
18379         BUILT_IN_ASAN_REPORT_STORE_N): New.
18380         * asan.c (struct asan_mem_ref): Change access_size type to
18381         HOST_WIDE_INT.
18382         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
18383         update_mem_ref_hash_table): Likewise.
18384         (asan_mem_ref_hasher::hash): Hash in a HWI.
18385         (report_error_func): Change size_in_bytes argument to HWI.
18386         Use *_N builtins if size_in_bytes is larger than 16 or not power of
18387         two.
18388         (build_shadow_mem_access): New function.
18389         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
18390         Handle size_in_bytes not power of two or larger than 16.
18391         (instrument_derefs): Don't give up if size_in_bytes is not
18392         power of two or is larger than 16.
18393
18394 2014-05-30  Kai Tietz  <ktietz@redhat.com>
18395
18396         PR target/60104
18397         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
18398         for sibling-tail-calls.
18399         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
18400         to its use.
18401         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
18402         (sibcall_insn_operand): Add check for sibcall_memory_operand.
18403
18404 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18405
18406         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
18407         * config/avr/avr-tables.opt: Regenerate.
18408         * config/avr/t-multilib: Regenerate.
18409         * doc/avr-mmcu.texi: Regenerate.
18410
18411 2014-05-30  Ian Lance Taylor  <iant@google.com>
18412
18413         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
18414         target("sse").
18415
18416 2014-05-30  Tom de Vries  <tom@codesourcery.com>
18417
18418         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18419         Redefine as true.
18420
18421 2014-05-30  Tom de Vries  <tom@codesourcery.com>
18422
18423         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18424         * lra.c (initialize_lra_reg_info_element): Add init of
18425         actual_call_used_reg_set field.
18426         (lra): Call lra_create_live_ranges before lra_inheritance for
18427         -fuse-caller-save.
18428         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18429         -fuse-caller-save.
18430         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
18431         instead of call_used_reg_set for -fuse-caller-save.
18432         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18433
18434 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18435
18436         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
18437         to mov_imm.
18438         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
18439
18440 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
18441
18442         * ira.c (ira_get_dup_out_num): Check for output operands at
18443         the start of the loop.  Handle cases where an included alternative
18444         follows an excluded one.
18445
18446 2014-05-29  Mike Stump  <mikestump@comcast.net>
18447
18448         PR debug/61352
18449         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
18450         post ld passes when lto is used.
18451
18452 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
18453
18454         PR rtl-optimization/61325
18455         * lra-constraints.c (process_address): Rename to process_address_1.
18456         (process_address): New function.
18457
18458 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
18459
18460         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
18461         TYPES_BINOPV): New static data.
18462         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
18463         New builtin.
18464         * config/aarch64/aarch64-simd.md (aarch64_ext,
18465         aarch64_im_lane_boundsi): New patterns.
18466         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
18467         patterns for EXT.
18468         (aarch64_evpc_ext): New function.
18469
18470         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
18471
18472         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
18473         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
18474         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
18475         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
18476         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
18477
18478 2014-05-29  Tom de Vries  <tom@codesourcery.com>
18479
18480         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18481
18482 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
18483             Richard Sandiford  <rdsandiford@googlemail.com>
18484
18485         * arm/iterators.md (shiftable_ops): New code iterator.
18486         (t2_binop0, arith_shift_insn): New code attributes.
18487         * arm/predicates.md (shift_nomul_operator): New predicate.
18488         * arm/arm.md (insn_enabled): Delete.
18489         (enabled): Remove insn_enabled test.
18490         (*arith_shiftsi): Delete.  Replace with ...
18491         (*<arith_shift_insn>_multsi): ... new pattern.
18492         (*<arith_shift_insn>_shiftsi): ... new pattern.
18493         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18494
18495 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
18496             Tom de Vries  <tom@codesourcery.com>
18497
18498         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18499         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18500         clobber.
18501         (mips_split_call): Use POST_CALL_TMP_REG.
18502         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18503
18504 2014-05-29  Tom de Vries  <tom@codesourcery.com>
18505
18506         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18507         with #ifdef STACK_REGS.
18508
18509 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
18510
18511         * varasm.c (get_variable_section): Walk aliases.
18512         (place_block_symbol): Walk aliases.
18513
18514 2014-05-28  Tom de Vries  <tom@codesourcery.com>
18515
18516         Revert:
18517         2014-05-28  Tom de Vries  <tom@codesourcery.com>
18518
18519         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18520         * lra.c (initialize_lra_reg_info_element): Add init of
18521         actual_call_used_reg_set field.
18522         (lra): Call lra_create_live_ranges before lra_inheritance for
18523         -fuse-caller-save.
18524         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18525         -fuse-caller-save.
18526         * lra-constraints.c (need_for_call_save_p): Use
18527         actual_call_used_reg_set instead of call_used_reg_set for
18528         -fuse-caller-save.
18529         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18530
18531 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18532
18533         * doc/md.texi: Document that the % constraint character must
18534         be at the beginning of the string.
18535         * genoutput.c (validate_insn_alternatives): Check that '=',
18536         '+' and '%' only appear at the beginning of a constraint.
18537         * ira.c (commutative_constraint_p): Delete.
18538         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18539         at the start of the string.
18540         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18541         duplicate '='s.
18542         * config/arm/neon.md (bicdi3_neon): Likewise.
18543         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18544         (slt_si, sltu_si): Likewise.
18545         * config/vax/vax.md (sbcdi3): Likewise.
18546         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18547         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18548         (mul64): Move '%' to beginning of constraint.
18549         * config/arm/arm.md (*xordi3_insn): Likewise.
18550         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18551         (xorsi3): Likewise.
18552
18553 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18554
18555         * doc/md.texi: Document the restrictions on the "enabled" attribute.
18556
18557 2014-05-28  Jason Merrill  <jason@redhat.com>
18558
18559         PR c++/47202
18560         * cgraph.h (symtab_node::get_comdat_group_id): New.
18561         * cgraphunit.c (analyze_functions): Call it.
18562         * symtab.c (dump_symtab_node): Likewise.
18563         * tree.c (decl_comdat_group_id): New.
18564         * tree.h: Declare it.
18565         * lto-streamer-out.c (write_symbol): Use it.
18566         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18567
18568 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18569
18570         PR bootstrap/PR61146
18571         * wide-int.cc: Do not include longlong.h when compiling with clang.
18572
18573 2014-05-28  Richard Biener  <rguenther@suse.de>
18574
18575         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18576         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18577         (vrp_visit_assignment_or_call): Print less vertical space.
18578         (vrp_visit_stmt): Likewise.
18579         (vrp_visit_phi_node): Likewise.  For a PHI argument with
18580         VR_VARYING range consider recording it as copy.
18581
18582 2014-05-28  Richard Biener  <rguenther@suse.de>
18583
18584         Revert
18585         2014-05-28  Richard Biener  <rguenther@suse.de>
18586
18587         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18588
18589 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18590
18591         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18592         sufficiently aligned and an offset is used at the same time.
18593         (expand_expr_real_1): Likewise.
18594
18595 2014-05-28  Richard Biener  <rguenther@suse.de>
18596
18597         PR middle-end/61045
18598         * fold-const.c (fold_comparison): When folding
18599         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18600         the sign of the remaining constant operand stays the same.
18601
18602 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
18603
18604         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18605         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18606         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18607         to the assembler.
18608         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18609         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18610         (m32bit-doubles) Likewise.
18611         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18612         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18613         option for RL78.
18614
18615 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18616
18617         * configure.ac ($gcc_cv_ld_clearcap): New test.
18618         * configure: Regenerate.
18619         * config.in: Regenerate.
18620         * config/sol2.opt (mclear-hwcap): New option.
18621         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18622         * config/sol2-clearcap.map: Moved here from
18623         testsuite/gcc.target/i386/clearcap.map.
18624         * config/sol2-clearcapv2.map: Move here from
18625         gcc.target/i386/clearcapv2.map.
18626         * config/t-sol2 (install): Depend on install-clearcap-map.
18627         (install-clearcap-map): New target.
18628         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18629         -mclear-hwcap.
18630
18631 2014-05-28  Richard Biener  <rguenther@suse.de>
18632
18633         * hwint.h (*_HALF_WIDE_INT*): Move to ...
18634         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18635         ... here and remove the rest.
18636         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18637
18638 2014-05-28  Richard Biener  <rguenther@suse.de>
18639
18640         PR tree-optimization/61335
18641         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18642         new range fails, drop to varying.
18643
18644 2014-05-28  Olivier Hainque  <hainque@adacore.com>
18645
18646         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18647         (CPP_SPEC): Add entry for -mcpu=8548.
18648         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18649         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18650
18651 2014-05-28  Tom de Vries  <tom@codesourcery.com>
18652
18653         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18654         * lra.c (initialize_lra_reg_info_element): Add init of
18655         actual_call_used_reg_set field.
18656         (lra): Call lra_create_live_ranges before lra_inheritance for
18657         -fuse-caller-save.
18658         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18659         -fuse-caller-save.
18660         * lra-constraints.c (need_for_call_save_p): Use
18661         actual_call_used_reg_set instead of call_used_reg_set for
18662         -fuse-caller-save.
18663         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18664
18665 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18666             Tom de Vries  <tom@codesourcery.com>
18667
18668         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18669         to gccoptlist.
18670         (@item -fuse-caller-save): New item.
18671
18672 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18673             Tom de Vries  <tom@codesourcery.com>
18674
18675         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18676         OPT_fuse_caller_save.
18677
18678 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18679             Tom de Vries  <tom@codesourcery.com>
18680
18681         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18682         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18683         get_call_reg_set_usage.
18684         * resource.c (mark_set_resources, mark_target_live_regs): Use
18685         get_call_reg_set_usage.
18686         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18687         field.
18688         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18689         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18690         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18691         * ira-build.c (ira_create_allocno): Init
18692         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18693         (create_cap_allocno, propagate_allocno_info)
18694         (propagate_some_info_from_allocno)
18695         (copy_info_to_removed_store_destinations): Handle
18696         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18697         * ira-costs.c (ira_tune_allocno_costs): Use
18698         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18699
18700 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18701             Tom de Vries  <tom@codesourcery.com>
18702
18703         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18704         and function_used_regs_valid fields.
18705         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18706         find_all_hard_reg_sets.
18707         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18708         (get_call_reg_set_usage): New function.
18709         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18710         * regs.h (get_call_reg_set_usage): Declare.
18711
18712 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18713
18714         PR libgcc/61152
18715         * config/dbx.h (License): Add Runtime Library Exception.
18716         * config/newlib-stdint.h (License): Same.
18717         * config/rtems.h (License): Same
18718         * config/initfini-array.h (License): Same
18719         * config/v850/v850.h (License): Same.
18720         * config/v850/v850-opts.h (License): Same
18721         * config/v850/rtems.h (License): Same.
18722
18723 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18724
18725         PR target/61044
18726         * doc/extend.texi (Local Labels): Note that label differences are
18727         not supported for AVR.
18728
18729 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18730             Olivier Hainque  <hainque@adacore.com>
18731
18732         * rtl.h (set_for_reg_notes): Declare.
18733         * emit-rtl.c (set_for_reg_notes): New function.
18734         (set_unique_reg_note): Use it.
18735         * optabs.c (add_equal_note): Likewise
18736
18737 2014-05-27  Andrew Pinski  <apinski@cavium.com>
18738
18739         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18740         Use <w> for the register in assembly template.
18741         (stack_protect_test): Use the mode of operands[0] for the result.
18742         (stack_protect_test_<mode>): Use <w> for the register
18743         in assembly template.
18744
18745 2014-05-27  DJ Delorie  <dj@redhat.com>
18746
18747         * config/rx/rx.c (add_vector_labels): New.
18748         (rx_output_function_prologue): Call it.
18749         (rx_handle_func_attribute): Don't require empty arguments.
18750         (rx_handle_vector_attribute): New.
18751         (rx_attribute_table): Add "vector" attribute.
18752         * doc/extend.texi (interrupt, vector): Document new/changed
18753         RX-specific attributes.
18754
18755         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18756
18757 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18758
18759         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18760         predicate to detect a negative quotient.
18761
18762 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18763
18764         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18765         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18766         Add X - Y CMP 0 to X CMP Y transformation.
18767         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18768
18769 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
18770
18771         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18772         before printing.
18773
18774 2014-05-27  Steve Ellcey  <sellcey@mips.com>
18775
18776         * config/mips/mips.c: Add include of cgraph.h.
18777
18778 2014-05-27  Richard Biener  <rguenther@suse.de>
18779
18780         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18781
18782 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
18783
18784         PR libgcc/61152
18785         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18786         * config/arm/arm-cores.def (License): Same.
18787         * config/arm/arm-opts.h (License): Same.
18788         * config/arm/aout.h (License): Same.
18789         * config/arm/bpabi.h (License): Same.
18790         * config/arm/elf.h (License): Same.
18791         * config/arm/linux-elf.h (License): Same.
18792         * config/arm/linux-gas.h (License): Same.
18793         * config/arm/netbsd-elf.h (License): Same.
18794         * config/arm/uclinux-eabi.h (License): Same.
18795         * config/arm/uclinux-elf.h (License): Same.
18796         * config/arm/vxworks.h (License): Same.
18797
18798 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18799
18800         * config/arm/neon.md (neon_bswap<mode>): New pattern.
18801         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18802         (arm_init_neon_builtins): Handle NEON_BSWAP.
18803         Define required type nodes.
18804         (arm_expand_neon_builtin): Handle NEON_BSWAP.
18805         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18806         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18807         * config/arm/iterators.md (VDQHSD): New mode iterator.
18808
18809 2014-05-27  Richard Biener  <rguenther@suse.de>
18810
18811         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18812         Try using literal operands when comparing value-ranges failed.
18813
18814 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18815
18816         * ira.c (commutative_operand): Adjust for change to recog_data.
18817         [Missing from previous commit.]
18818
18819 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18820
18821         * system.h (TEST_BIT): New macro.
18822         * recog.h (alternative_mask): New type.
18823         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18824         (recog_data_d): Replace alternative_enabled_p array with
18825         enabled_alternatives.
18826         (target_recog): New structure.
18827         (default_target_recog, this_target_recog): Declare.
18828         (get_enabled_alternatives, recog_init): Likewise.
18829         * recog.c (default_target_recog, this_target_recog): New variables.
18830         (get_enabled_alternatives): New function.
18831         (extract_insn): Use it.
18832         (recog_init): New function.
18833         (preprocess_constraints, constrain_operands): Adjust for change to
18834         recog_data.
18835         * postreload.c (reload_cse_simplify_operands): Likewise.
18836         * reload.c (find_reloads): Likewise.
18837         * ira-costs.c (record_reg_classes): Likewise.
18838         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
18839         all alternatives after a disabled one would be skipped.
18840         (ira_implicitly_set_insn_hard_regs): Likewise.
18841         * ira.c (ira_setup_alts): Adjust for change to recog_data.
18842         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18843         with enabled_alternatives.
18844         * lra.c (free_insn_recog_data): Update accordingly.
18845         (lra_update_insn_recog_data): Likewise.
18846         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
18847         * lra-constraints.c (process_alt_operands): Likewise.  Handle
18848         only_alternative as part of the enabled mask.
18849         * target-globals.h (this_target_recog): Declare.
18850         (target_globals): Add a recog field.
18851         (restore_target_globals): Restore this_target_recog.
18852         * target-globals.c: Include recog.h.
18853         (default_target_globals): Initialize recog field.
18854         (save_target_globals): Likewise.
18855         * reginfo.c (reinit_regs): Call recog_init.
18856         * toplev.c (backend_init_target): Likewise.
18857
18858 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18859
18860         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18861         rather than any named insn's code.
18862
18863 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
18864
18865         PR libgcc/61152
18866         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18867         * config/arm/arm-cores.def (License): Same.
18868
18869 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
18870
18871         * tree.h (decl_comdat_group): Declare.
18872         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18873         * tree.c (decl_comdat_group): Here.
18874
18875 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
18876
18877         PR rtl-optimization/61222
18878         * combine.c (simplify_shift_const_1): When moving a PLUS outside
18879         the shift, truncate the PLUS operand to the result mode.
18880
18881 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
18882
18883         PR target/61271
18884         * config/i386/i386.c (ix86_rtx_costs)
18885         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18886         Fix condition.
18887
18888 2014-05-26  Martin Jambor  <mjambor@suse.cz>
18889
18890         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18891         subreg uses.
18892
18893 2014-05-26  Richard Biener  <rguenther@suse.de>
18894
18895         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18896         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18897         Provide specializations.
18898         (wi::int_traits <HOST_WIDE_INT>,
18899         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18900
18901 2014-05-26  Alan Modra  <amodra@gmail.com>
18902
18903         PR target/61098
18904         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18905         params and return a bool.  Remove dead code.  Update comment.
18906         Assert we have a const_int source.  Remove bogus code from
18907         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
18908         handling of constants > 2G and reg_equal note, from..
18909         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
18910         return value.  Update comment.  If we can, use a new pseudo
18911         for intermediate calculations.
18912         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18913         prototype.
18914         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18915         call to rs6000_emit_set_const in splitter.
18916         (movdi_internal64+2, +3): Likewise.
18917
18918 2014-05-26  Richard Biener  <rguenther@suse.de>
18919
18920         * system.h: Define __STDC_FORMAT_MACROS before
18921         including inttypes.h.
18922         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18923         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18924         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18925         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18926         HOST_WIDEST_INT_C): Remove.
18927         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18928         if C99 inttypes.h is not available.
18929         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18930         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18931         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18932         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18933         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18934         (struct output_info): Likewise.
18935         (print_statistics): Adjust.
18936         (dump_bitmap_statistics): Likewise.
18937         * bt-load.c (migrate_btr_defs): Print with PRId64.
18938         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18939         (MAX_SAFE_MULTIPLIER): Adjust.
18940         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18941         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18942         dump_cgraph_node): Likewise.
18943         * final.c (dump_basic_block_info): Likewise.
18944         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18945         * gcov.c (format_gcov): Likewise.
18946         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
18947         for calculation.
18948         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18949         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18950         (inline_small_functions, dump_overall_stats, dump_inline_stats):
18951         Use PRId64 for dumping.
18952         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18953         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18954         (add_allocno_hard_regs): Adjust.
18955         * loop-doloop.c (doloop_modify): Print using PRId64.
18956         * loop-iv.c (inverse): Compute in uint64_t.
18957         (determine_max_iter, iv_number_of_iterations): Likewise.
18958         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18959         Print using PRId64.
18960         * lto-streamer-out.c (write_symbol): Use uint64_t.
18961         * mcf.c (CAP_INFINITY): Use int64_t maximum.
18962         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18963         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18964         * modulo-sched.c (const_iteration_count): Use int64_t.
18965         (sms_schedule): Dump using PRId64.
18966         * predict.c (dump_prediction): Likewise.
18967         * pretty-print.h (pp_widest_integer): Remove.
18968         * profile.c (get_working_sets, is_edge_inconsistent,
18969         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18970         * tree-pretty-print.c (pp_double_int): Remove case handling
18971         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18972         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18973         and adjust users.
18974         (pass_optimize_bswap::execute): Remove restriction on hosts.
18975         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18976         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18977         * tree.c (widest_int_cst_value): Remove.
18978         * tree.h (widest_int_cst_value): Likewise.
18979         * value-prof.c (dump_histogram_value): Print using PRId64.
18980         * gengtype.c (main): Also inject int64_t.
18981         * ggc-page.c (struct max_alignment): Use int64_t.
18982         * alloc-pool.c (struct allocation_object_def): Likewise.
18983         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18984         for computation.
18985         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18986         * doc/tm.texi: Regenerated.
18987         * gengtype-lex.l (IWORD): Handle [u]int64_t.
18988         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18989         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18990         mmix_output_register_setting): Use [u]int64_t in prototypes.
18991         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18992         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18993         mmix_output_octa, mmix_output_shifted_value): Adjust.
18994         (mmix_intval): Adjust.  Remove unreachable case.
18995         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18996
18997 2014-05-26  Richard Biener  <rguenther@suse.de>
18998
18999         * configure.ac: Drop __int64 type check.  Insist that we
19000         found uint64_t and int64_t.
19001         * hwint.h (HOST_BITS_PER___INT64): Remove.
19002         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
19003         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
19004         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
19005         (HOST_WIDEST_FAST_INT): Remove __int64 case.
19006         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
19007         for dst_q_src_df_rms_cdt.
19008         * configure: Regenerate.
19009         * config.in: Likewise.
19010
19011 2014-05-26  Michael Tautschnig  <mt@debian.org>
19012
19013         PR target/61249
19014         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
19015         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
19016
19017 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19018
19019         PR rtl-optimization/61278
19020         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
19021
19022 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19023
19024         PR rtl-optimization/61220
19025         Part of PR rtl-optimization/61225
19026         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
19027         insn; skip split_edge for a block with only one successor.
19028
19029 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19030
19031         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
19032         for variables.
19033
19034 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19035
19036         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
19037         (update_vtable_references): New function.
19038         (function_and_variable_visibility): Rewrite also vtable initializers.
19039         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
19040
19041 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19042
19043         * ggc.h (ggc_grow): New function.
19044         * ggc-none.c (ggc_grow): New function.
19045         * ggc-page.c (ggc_grow): Likewise.
19046
19047 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19048
19049         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
19050         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
19051         comdat_can_be_unshared_p, cgraph_externally_visible_p,
19052         varpool_externally_visible_p, can_replace_by_local_alias,
19053         update_visibility_by_resolution_info, function_and_variable_visibility,
19054         pass_data_ipa_function_and_variable_visibility,
19055         make_pass_ipa_function_and_variable_visibility,
19056         whole_program_function_and_variable_visibility,
19057         pass_data_ipa_whole_program_visibility,
19058         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
19059         * cgraph.h (cgraph_local_node_p): Declare.
19060         * ipa-visibility.c: New file.
19061         * Makefile.in (OBJS): Add ipa-visiblity.o
19062
19063 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19064
19065         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
19066         that var decl is available.
19067
19068 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19069
19070         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
19071         symtab_node pointer.
19072         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
19073         (find_decls_types_r): Do not walk COMDAT_GROUP.
19074         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
19075         * varasm.c (make_decl_one_only): Use set_comdat_group;
19076         create node if needed.
19077         * ipa-inline-transform.c (save_inline_function_body): Update
19078         way we decl->symtab mapping.
19079         * symtab.c (symtab_hash, hash_node, eq_node
19080         symtab_insert_node_to_hashtable): Remove.
19081         (symtab_register_node): Update.
19082         (symtab_unregister_node): Update.
19083         (symtab_get_node): Reimplement as inline function.
19084         (symtab_add_to_same_comdat_group): Update.
19085         (symtab_dissolve_same_comdat_group_list): Update.
19086         (dump_symtab_base): Update.
19087         (verify_symtab_base): Update.
19088         (symtab_make_decl_local): Update.
19089         (fixup_same_cpp_alias_visibility): Update.
19090         (symtab_nonoverwritable_alias): Update.
19091         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
19092         * ipa.c (update_visibility_by_resolution_info): UPdate.
19093         * bb-reorder.c: Include cgraph.h
19094         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
19095         with comdat groups.
19096         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
19097         * cgraph.c (cgraph_get_create_node): Update.
19098         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
19099         and comdat_group_.
19100         (symtab_get_node): Make inline.
19101         (symtab_insert_node_to_hashtable): Remove.
19102         (symtab_can_be_discarded): Update.
19103         (decl_comdat_group): New function.
19104         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
19105         Update.
19106         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
19107         comdat group name.
19108         (read_comdat_group): New function.
19109         (input_node, input_varpool_node): Use it.
19110         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
19111         comdat groups.
19112         * mips.c (mips_start_unique_function): Likewise.
19113         (ix86_code_end): Likewise.
19114         (rs6000_code_end): Likweise.
19115         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
19116
19117 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19118
19119         * gengtype-state.c (fatal_reading_state): Bring offline.
19120         * optabs.c (widening_optab_handler): Bring offline.
19121         * optabs.h (widening_optab_handler): Likewise.
19122         * final.c (get_attr_length_1): Likewise.
19123
19124 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
19125
19126         * sched-int.h (sd_iterator_cond): Manually tail recurse.
19127
19128 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19129
19130         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
19131         (ppc440-compare): Include shift with dot.
19132         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
19133         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
19134         without dot.
19135         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
19136         without dot.
19137         (e6500_sfx2): Include it.
19138         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
19139         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
19140         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
19141         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
19142         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
19143         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
19144         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
19145         *lshiftrt_internal1le, *lshiftrt_internal1be,
19146         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
19147         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
19148         *rotldi3_internal10le, *rotldi3_internal10be,
19149         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
19150         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
19151         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
19152         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
19153         define_insns): Use type "shift" in the appropriate alternatives.
19154
19155 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19156
19157         * config/rs6000/rs6000.md (type): Add "logical".  Delete
19158         "fast_compare".
19159         (dot): Adjust comment.
19160         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
19161         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
19162         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
19163         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
19164         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
19165         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
19166         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
19167         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19168
19169         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19170         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19171         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19172         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19173         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19174         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19175         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19176         * config/rs6000/8540.md (ppc8540_su): Adjust.
19177         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19178         cell-cmp-microcoded): Adjust.
19179         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19180         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19181         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19182         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19183         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19184         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19185         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19186         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19187         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19188         Adjust.
19189         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19190         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
19191         Adjust.  Adjust comment.
19192         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19193         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19194
19195 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19196
19197         * config/rs6000/rs6000.md (type): Add "add".
19198         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
19199         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
19200         define_insns): Use it.
19201         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19202
19203         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19204         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19205         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19206         * config/rs6000/601.md (ppc601-integer): Adjust.
19207         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19208         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19209         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19210         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19211         * config/rs6000/8540.md (ppc8540_su): Adjust.
19212         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19213         cell-cmp-microcoded): Adjust.
19214         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19215         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19216         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19217         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19218         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19219         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19220         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19221         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19222         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19223         Adjust.
19224         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19225         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
19226         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19227         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19228
19229 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19230
19231         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
19232         "delayed_compare", "var_delayed_compare".
19233         (var_shift): New attribute.
19234         (cell_micro): Adjust.
19235         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
19236         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
19237         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
19238         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19239         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19240         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19241         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19242         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
19243         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
19244         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
19245         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
19246         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
19247         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
19248         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
19249         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
19250         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
19251         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
19252         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
19253         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
19254         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
19255         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
19256         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
19257         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
19258         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19259         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19260
19261         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19262         * config/rs6000/440.md (ppc440-integer): Adjust.
19263         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19264         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
19265         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19266         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19267         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19268         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19269         * config/rs6000/8540.md (ppc8540_su): Adjust.
19270         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19271         cell-cmp-microcoded): Adjust.
19272         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
19273         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19274         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
19275         e500mc64_delayed): Adjust.
19276         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
19277         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
19278         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19279         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
19280         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
19281         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
19282         power6-delayed-compare, power6-var-delayed-compare): Adjust.
19283         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
19284         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
19285         Adjust comment.
19286         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19287         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19288
19289 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19290
19291         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
19292         (bits): New mode_attr.
19293         (idiv_ldiv): Delete mode_attr.
19294         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
19295         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19296         rs6000_adjust_priority, is_nonpipeline_insn,
19297         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19298
19299         * config/rs6000/40x.md (ppc403-idiv): Adjust.
19300         * config/rs6000/440.md (ppc440-idiv): Adjust.
19301         * config/rs6000/476.md (ppc476-idiv): Adjust.
19302         * config/rs6000/601.md (ppc601-idiv): Adjust.
19303         * config/rs6000/603.md (ppc603-idiv): Adjust.
19304         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
19305         ppc620-ldiv): Adjust.
19306         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
19307         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
19308         * config/rs6000/8540.md (ppc8540_divide): Adjust.
19309         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
19310         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
19311         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
19312         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
19313         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
19314         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
19315         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
19316         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
19317         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
19318         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
19319         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
19320         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
19321         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
19322         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
19323         * config/rs6000/titan.md (titan_fxu_div): Adjust.
19324
19325 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19326
19327         * config/rs6000/rs6000.md (type): Delete "insert_word",
19328         "insert_dword".  Add "insert".
19329         (size): Update comment.
19330         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19331         insn_must_be_first_in_group): Adjust.
19332         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19333         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19334         *insvsi_internal6, insvdi_internal): Adjust.
19335
19336         * config/rs6000/40x.md (ppc403-integer): Adjust.
19337         * config/rs6000/440.md (ppc440-integer): Adjust.
19338         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
19339         * config/rs6000/601.md (ppc601-integer): Adjust.
19340         * config/rs6000/603.md (ppc603-integer): Adjust.
19341         * config/rs6000/6xx.md (ppc604-integer): Adjust.
19342         * config/rs6000/7450.md (ppc7450-integer): Adjust.
19343         * config/rs6000/7xx.md (ppc750-integer): Adjust.
19344         * config/rs6000/8540.md (ppc8540_su): Adjust.
19345         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
19346         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
19347         * config/rs6000/e500mc.md (e500mc_su): Adjust.
19348         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
19349         * config/rs6000/e5500.md (e5500_sfx): Adjust.
19350         * config/rs6000/e6500.md (e6500_sfx): Adjust.
19351         * config/rs6000/mpc.md (mpccore-integer): Adjust.
19352         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
19353         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
19354         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
19355         * config/rs6000/power7.md (power7-integer): Adjust.
19356         * config/rs6000/power8.md (power8-1cyc): Adjust.
19357         * config/rs6000/rs64.md (rs64a-integer): Adjust.
19358         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19359
19360 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19361
19362         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
19363         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
19364         (size): New attribute.
19365         (dot): New attribute.
19366         (cell_micro): Adjust.
19367         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
19368         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
19369         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
19370         umuldi3_highpart): Adjust.
19371         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19372         rs6000_adjust_priority, is_nonpipeline_insn,
19373         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19374
19375         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
19376         ppc405-imul3): Adjust.
19377         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
19378         * config/rs6000/476.md (ppc476-imul): Adjust.
19379         * config/rs6000/601.md (ppc601-imul): Adjust.
19380         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
19381         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
19382         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
19383         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
19384         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
19385         Adjust.
19386         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
19387         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
19388         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
19389         cell-imul): Adjust.
19390         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
19391         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
19392         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
19393         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
19394         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
19395         * config/rs6000/mpc.md (mpccore-imul): Adjust.
19396         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
19397         power4-lmul, power4-imul, power4-imul3): Adjust.
19398         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
19399         power5-lmul, power5-imul, power5-imul3): Adjust.
19400         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
19401         power6-lmul, power6-imul, power6-imul3): Adjust.
19402         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
19403         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
19404
19405         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
19406         rs64a-lmul): Adjust.
19407         * config/rs6000/titan.md (titan_imul): Adjust.
19408
19409 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19410
19411         * config/rs6000/rs6000.md (type): Add new value "halfmul".
19412         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
19413         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
19414         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
19415         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
19416         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
19417         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
19418         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
19419         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
19420         * config/rs6000/titan.md: Delete nonsensical comment.
19421         (titan_imul): Add type imul3.
19422         (titan_mulhw): Remove type imul3; add type halfmul.
19423
19424 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
19425
19426         * config/rs6000/rs6000.md (type): Reorder, reformat.
19427
19428 2014-05-23  Martin Jambor  <mjambor@suse.cz>
19429
19430         PR tree-optimization/53787
19431         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
19432         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
19433         analysis_done, update all uses.
19434         * ipa-prop.c: Include domwalk.h
19435         (param_analysis_info): Removed.
19436         (param_aa_status): New type.
19437         (ipa_bb_info): Likewise.
19438         (func_body_info): Likewise.
19439         (ipa_get_bb_info): New function.
19440         (aa_overwalked): Likewise.
19441         (find_dominating_aa_status): Likewise.
19442         (parm_bb_aa_status_for_bb): Likewise.
19443         (parm_preserved_before_stmt_p): Changed to use new param AA info.
19444         (load_from_unmodified_param): Accept func_body_info as a parameter
19445         instead of parms_ainfo.
19446         (parm_ref_data_preserved_p): Changed to use new param AA info.
19447         (parm_ref_data_pass_through_p): Likewise.
19448         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
19449         (compute_complex_assign_jump_func): Changed to use new param AA info.
19450         (compute_complex_ancestor_jump_func): Likewise.
19451         (ipa_compute_jump_functions_for_edge): Likewise.
19452         (ipa_compute_jump_functions): Removed.
19453         (ipa_compute_jump_functions_for_bb): New function.
19454         (ipa_analyze_indirect_call_uses): Likewise, moved variable
19455         declarations down.
19456         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
19457         and info, moved variable declarations down.
19458         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
19459         node and info.
19460         (ipa_analyze_stmt_uses): Likewise.
19461         (ipa_analyze_params_uses): Removed.
19462         (ipa_analyze_params_uses_in_bb): New function.
19463         (ipa_analyze_controlled_uses): Likewise.
19464         (free_ipa_bb_info): Likewise.
19465         (analysis_dom_walker): New class.
19466         (ipa_analyze_node): Handle node-specific forbidden analysis,
19467         initialize and free func_body_info, use dominator walker.
19468         (ipcp_modif_dom_walker): New class.
19469         (ipcp_transform_function): Create and free func_body_info, use
19470         ipcp_modif_dom_walker, moved a lot of functionality there.
19471
19472 2014-05-23  Marek Polacek  <polacek@redhat.com>
19473             Jakub Jelinek  <jakub@redhat.com>
19474
19475         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
19476         * gcc.c (sanitize_spec_function): Likewise.
19477         * convert.c (convert_to_integer): Include "ubsan.h".  Add
19478         floating-point to integer instrumentation.
19479         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19480         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19481         SANITIZE_NONDEFAULT.
19482         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19483         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19484         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19485         * ubsan.c: Include "realmpfr.h" and "dfp.h".
19486         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19487         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19488         float/double/long double.
19489         (ubsan_instrument_float_cast): New function.
19490         * ubsan.h (ubsan_instrument_float_cast): Declare.
19491
19492 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
19493
19494         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19495         predicate.
19496         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
19497         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19498         Adjust for tailcalling through registers.
19499         * config/aarch64/aarch64.h (enum reg_class): New caller save
19500         register class.
19501         (REG_CLASS_NAMES): Likewise.
19502         (REG_CLASS_CONTENTS): Likewise.
19503         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19504         Allow tailcalling without decls.
19505
19506 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
19507
19508         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19509         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19510
19511         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19512         gsi, and variables v_* to v*.
19513
19514 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
19515
19516         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19517
19518 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
19519
19520         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19521         * omp-low.c: Update accordingly.
19522
19523         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19524         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19525         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19526         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19527         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19528         GF_OMP_TARGET_KIND_UPDATE.
19529
19530         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19531         Explicitly enumerate the expected region types.
19532
19533 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19534
19535         PR other/56955
19536         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
19537         documentation; the old documentation didn't clearly state the
19538         constraints on the contents of the pointed-to storage.
19539
19540 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19541
19542         Fix bootstrap error on ia64
19543         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19544         Return default value.
19545
19546 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19547
19548         PR tree-optimization/54733
19549         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19550         (CMPNOP): Define.
19551         (find_bswap_or_nop_load): New.
19552         (find_bswap_1): Renamed to ...
19553         (find_bswap_or_nop_1): This. Also add support for memory source.
19554         (find_bswap): Renamed to ...
19555         (find_bswap_or_nop): This. Also add support for memory source and
19556         detection of bitwise operations equivalent to load in target
19557         endianness.
19558         (execute_optimize_bswap): Likewise. Also move its leading comment back
19559         in place and split statement transformation into ...
19560         (bswap_replace): This.
19561
19562 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
19563
19564         PR rtl-optimization/61215
19565         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19566         simplify_gen_subreg until final substitution.
19567
19568 2014-05-23  Alan Modra  <amodra@gmail.com>
19569
19570         PR target/61231
19571         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19572         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19573         Use "Y" constraint rather than "m".
19574
19575 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19576
19577         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19578         define.
19579         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19580         New function declaration.
19581         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19582         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19583         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19584         (aarch64_init_builtins) : Initialize builtins
19585         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19586         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19587         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19588         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19589         and __builtins_aarch64_set_fpsr.
19590         (aarch64_atomic_assign_expand_fenv): New function.
19591         * config/aarch64/aarch64.md (set_fpcr): New pattern.
19592         (get_fpcr) : Likewise.
19593         (set_fpsr) : Likewise.
19594         (get_fpsr) : Likewise.
19595         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19596          and UNSPECV_SET_FPSR.
19597         * doc/extend.texi (AARCH64 Built-in Functions) : Document
19598         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19599         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19600
19601 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
19602
19603         PR rtl-optimization/60969
19604         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19605         constraints.  Set up mem cost for NO_REGS case.
19606
19607 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
19608
19609         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19610
19611 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
19612
19613         * config/darwin.c: Include "lto-section-names.h".
19614         (LTO_SEGMENT_NAME): Don't define.
19615         * config/i386/winnt.c: Include "lto-section-names.h".
19616         * lto-streamer.c: Include "lto-section-names.h".
19617         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19618         * lto-wrapper.c: Include "lto-section-names.h".
19619         (LTO_SECTION_NAME_PREFIX): Don't define.
19620         * lto-section-names.h: New file.
19621         * cgraphunit.c: Include "lto-section-names.h".
19622
19623 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
19624
19625         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19626
19627 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
19628
19629         PR target/61208
19630         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19631
19632 2014-05-22  Nick Clifton  <nickc@redhat.com>
19633
19634         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19635
19636 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
19637
19638         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19639         -> (T)A transformation to integer types.
19640
19641 2014-05-22  Teresa Johnson  <tejohnson@google.com>
19642
19643         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19644         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19645         (gcov_rewrite): Use gcov_nonruntime_assert.
19646         (gcov_open): Ditto.
19647         (gcov_write_words): Ditto.
19648         (gcov_write_length): Ditto.
19649         (gcov_read_words): Use gcov_nonruntime_assert, and remove
19650         gcc_assert from IN_LIBGCOV code.
19651         (gcov_read_summary): Use gcov_error to flag profile corruption.
19652         (gcov_sync): Use gcov_nonruntime_assert.
19653         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19654         (gcov_histo_index): Use gcov_nonruntime_assert.
19655         (static void gcov_histogram_merge): Ditto.
19656         (compute_working_sets): Ditto.
19657         * gcov-io.h (gcov_nonruntime_assert): Define.
19658         (gcov_error): Define for !IN_LIBGCOV
19659
19660 2014-05-22  Richard Biener  <rguenther@suse.de>
19661
19662         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19663         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19664         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19665         and deallocation site.
19666         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19667         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19668         passing through the incoming points-to set.
19669         (handle_lhs_call): Use flags argument instead of recomputing it.
19670         (find_func_aliases_for_call): Call handle_lhs_call with proper
19671         call return flags.
19672
19673 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
19674
19675         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19676         all padding bits in REAL_VALUE_TYPE are cleared.
19677
19678 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19679
19680         Cleanup and improve multipass_dfa_lookahead_guard
19681         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19682         (core2i7_first_cycle_multipass_begin,)
19683         (core2i7_first_cycle_multipass_issue,)
19684         (core2i7_first_cycle_multipass_backtrack): Update signature.
19685         * config/ia64/ia64.c
19686         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19687         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19688         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19689         hook definition.
19690         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19691         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
19692         values.
19693         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19694         return values.
19695         * doc/tm.texi: Regenerate.
19696         * doc/tm.texi.in
19697         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19698         * haifa-sched.c (ready_try): Make signed to allow negative values.
19699         (rebug_ready_list_1): Update.
19700         (choose_ready): Simplify.
19701         (sched_extend_ready_list): Update.
19702
19703 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19704
19705         Remove IA64 speculation tweaking flags
19706         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19707         speculation tuning flags.
19708         (msched-prefer-non-data-spec-insns,)
19709         (msched-prefer-non-control-spec-insns): Obsolete options.
19710         * haifa-sched.c (choose_ready): Remove handling of
19711         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19712         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19713         and PREFER_NON_DATA_SPEC.
19714         * sel-sched.c (process_spec_exprs): Remove handling of
19715         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19716
19717 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19718
19719         Improve scheduling debug output
19720         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19721         (advance_one_cycle): Update.
19722         (schedule_insn, queue_to_ready): Add debug printouts.
19723         (debug_ready_list_1): New static function.
19724         (debug_ready_list): Update.
19725         (max_issue): Add debug printouts.
19726         (dump_insn_stream): New static function.
19727         (schedule_block): Use it.  Also better indent printouts.
19728
19729 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19730
19731         Fix sched_insn debug counter
19732         * haifa-sched.c (schedule_insn): Update.
19733         (struct haifa_saved_data): Add nonscheduled_insns_begin.
19734         (save_backtrack_point, restore_backtrack_point): Update.
19735         (first_nonscheduled_insn): New static function.
19736         (queue_to_ready, choose_ready): Use it.
19737         (schedule_block): Init nonscheduled_insns_begin.
19738         (sched_emit_insn): Update.
19739
19740
19741 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
19742
19743         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19744         to GENERAL_REGS.
19745         (aarch64_secondary_reload) : LikeWise.
19746         (aarch64_class_max_nregs) : Remove CORE_REGS.
19747         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19748         (REG_CLASS_NAMES) : Likewise.
19749         (REG_CLASS_CONTENTS) : LikeWise.
19750         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19751
19752 2014-05-21  Guozhi Wei  <carrot@google.com>
19753
19754         PR target/61202
19755         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19756         constraint.
19757         (vqdmulhq_n_s16): Likewise.
19758
19759 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
19760
19761         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19762
19763 2014-05-21  Marek Polacek  <polacek@redhat.com>
19764
19765         PR sanitizer/61272
19766         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19767
19768 2014-05-21  Martin Jambor  <mjambor@suse.cz>
19769
19770         * doc/invoke.texi (Optimize Options): Document parameters
19771         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19772         ipa-cp-array-index-hint-bonus.
19773
19774 2014-05-21  Mark Wielaard  <mjw@redhat.com>
19775
19776         PR debug/16063
19777         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19778         version >= 3 or not strict DWARF.
19779         * langhooks.h (struct lang_hooks_for_types): Add
19780         enum_underlying_base_type.
19781         * langhooks.c (lhd_enum_underlying_base_type): New function.
19782         * gcc/langhooks.h (struct lang_hooks_for_types): Add
19783         enum_underlying_base_type.
19784         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19785         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19786         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19787
19788 2014-05-21  Richard Biener  <rguenther@suse.de>
19789
19790         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19791
19792 2014-05-21  John Marino  <gnugcc@marino.st>
19793
19794         * config.gcc (*-*-dragonfly*): New target.
19795         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19796         * configure: Regenerate.
19797         * config/dragonfly-stdint.h: New.
19798         * config/dragonfly.h: New.
19799         * config/dragonfly.opt: New.
19800         * config/i386/dragonfly.h: New.
19801         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19802
19803 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19804
19805         * tree.def (VOID_CST): New.
19806         * tree-core.h (TI_VOID): New.
19807         * tree.h (void_node): New.
19808         * tree.c (tree_node_structure_for_code, tree_code_size)
19809         (iterative_hash_expr): Handle VOID_CST.
19810         (build_common_tree_nodes): Initialize void_node.
19811
19812 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
19813
19814         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19815         functions.
19816         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19817
19818         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19819         more places.
19820
19821         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19822         flag_reorder_blocks_and_partition.
19823         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19824
19825 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
19826
19827         PR target/54236
19828         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
19829         constraints.
19830         (*addc_r_t): Add new insn_and_split.
19831
19832 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
19833
19834         PR middle-end/61252
19835         * omp-low.c (handle_simd_reference): New function.
19836         (lower_rec_input_clauses): Use it.  Defer adding reference
19837         initialization even for reduction without placeholder if in simd,
19838         handle it properly later on.
19839
19840 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19841
19842         PR tree-optimization/60899
19843         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19844         assume all static symbols will have definition wile parsing and
19845         check the do have definition later in compilation; check that
19846         variable referring symbol will be output before concluding that
19847         reference is safe; be conservative for referring local statics;
19848         be more precise about when comdat is output in other partition.
19849
19850 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19851
19852         PR bootstrap/60984
19853         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19854         parameter.
19855         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19856         (ipa_inline): Loop inline_to_all_callers until no more aliases
19857         are removed.
19858
19859 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19860
19861         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19862         set writeonly flag only for vars actually written to.
19863
19864 2014-05-20  Dehao Chen  <dehao@google.com>
19865
19866         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19867         and callee count to get clone count.
19868         * tree-inline.c (expand_call_inline): Use callee count instead of bb
19869         count in copy_body.
19870
19871 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19872
19873         PR rtl-optimization/61243
19874         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19875
19876 2014-05-20  Xinliang David Li  <davidxl@google.com>
19877
19878         * cgraphunit.c (walk_polymorphic_call_targets): Add
19879         dbgcnt and fopt-info support.
19880         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19881         * ipa-devirt.c (ipa_devirt): Ditto.
19882         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19883         * ipa.c (walk_polymorphic_call_targets): Ditto.
19884         * gimple-fold.c (fold_gimple_assign): Ditto.
19885         (gimple_fold_call): Ditto.
19886         * dbgcnt.def: New counter.
19887
19888 2014-05-20  DJ Delorie  <dj@redhat.com>
19889
19890         * config/msp430/msp430.md (split): Don't allow subregs when
19891         splitting SImode adds.
19892         (andneghi): Fix subtraction logic.
19893         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19894
19895 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19896
19897         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19898         symbols.
19899         * except.c (switch_to_exception_section, resolve_unique_section,
19900         get_named_text_section, default_function_rodata_section,
19901         align_variable, get_block_for_decl, default_section_type_flags):
19902         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19903         * symtab.c (symtab_add_to_same_comdat_group,
19904         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19905         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19906         Likewise.
19907         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19908         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19909         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19910         (c6x_function_in_section_p): Likewise.
19911         * config/darwin.c (machopic_select_section): Likewise.
19912         * config/arm/arm.c (arm_function_in_section_p): Likewise.
19913         * config/mips/mips.c (mips_function_rodata_section): Likewise.
19914         * config/mep/mep.c (mep_select_section): LIkewise.
19915         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19916
19917 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
19918
19919         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19920         EH region of calls to pure functions that can throw an exception.
19921         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19922         (copy_reference_ops_from_call): Also copy the EH region of the call if
19923         it can throw an exception.
19924
19925 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19926
19927         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19928         nested VEC_SELECTs that are inverses of each other.
19929
19930 2014-05-20  Richard Biener  <rguenther@suse.de>
19931
19932         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19933         (extract_and_process_scc_for_name): not here.
19934         (cond_dom_walker::before_dom_children): Only process
19935         stmts that end the BB in interesting ways.
19936         (run_scc_vn): Mark param uses as visited.
19937
19938 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19939
19940         * config/arm/arm.md (arith_shiftsi): Do not predicate for
19941         arm_restrict_it.
19942
19943 2014-05-20  Nick Clifton  <nickc@redhat.com>
19944
19945         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19946         (msp430_gimplify_va_arg_expr): New function.
19947         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19948
19949         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19950         operand 0 in order to prevent confusion about the number of
19951         registers involved.
19952
19953 2014-05-20  Richard Biener  <rguenther@suse.de>
19954
19955         PR tree-optimization/61221
19956         * tree-ssa-pre.c (el_to_update): Remove.
19957         (eliminate_dom_walker::before_dom_children): Handle released
19958         VDEFs by value-numbering them to the associated VUSE.  Update
19959         stmt immediately for substituted call address.
19960         (eliminate): Remove delayed stmt updating code.
19961         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19962         possibly late re-numbered vuses.
19963         (vn_reference_lookup_2): Adjust.
19964         (vn_reference_lookup_pieces): Likewise.
19965         (vn_reference_lookup): Likewise.
19966
19967 2014-05-20  Richard Biener  <rguenther@suse.de>
19968
19969         * config.gcc: Remove need_64bit_hwint.
19970         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19971         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19972         it to be true.
19973         * config.in: Regenerate.
19974         * configure: Likewise.
19975
19976 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
19977
19978         * doc/extend.texi: Create Label Attributes section,
19979         move all label attributes into it and reference it.
19980
19981 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
19982
19983         * arm.c (thumb1_reorg): When scanning backwards skip anything
19984         that's not a proper insn.
19985
19986 2014-05-19  Richard Biener  <rguenther@suse.de>
19987
19988         PR tree-optimization/61221
19989         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19990         Do nothing for unreachable blocks.
19991         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19992         Improve unreachability detection.
19993
19994 2014-05-19  Richard Biener  <rguenther@suse.de>
19995
19996         PR tree-optimization/61209
19997         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19998
19999 2014-05-19  Nick Clifton  <nickc@redhat.com>
20000
20001         * except.c (init_eh): Fix computation of builtin setjmp buffer
20002         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
20003
20004 2014-05-19  Richard Biener  <rguenther@suse.de>
20005
20006         PR tree-optimization/61184
20007         * tree-vrp.c (is_negative_overflow_infinity): Use
20008         TREE_OVERFLOW_P and do that check first.
20009         (is_positive_overflow_infinity): Likewise.
20010         (is_overflow_infinity): Likewise.
20011         (vrp_operand_equal_p): Properly treat operands with
20012         differing overflow as not equal.
20013
20014 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
20015
20016         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
20017         shift simplification where it was intended.
20018
20019 2014-05-19  Christian Bruel  <christian.bruel@st.com>
20020
20021         PR target/61195
20022         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
20023
20024 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
20025
20026         PR target/61084
20027         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
20028         than wide_int.
20029
20030 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20031
20032         * reg-notes.def (CROSSING_JUMP): Likewise.
20033         * rtl.h (rtx_def): Update comment for jump flag.
20034         (CROSSING_JUMP_P): Define.
20035         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
20036         of a REG_CROSSING_JUMP note.
20037         * cfghooks.c (tidy_fallthru_edges): Likewise.
20038         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
20039         * emit-rtl.c (try_split): Likewise.
20040         * haifa-sched.c (sched_create_recovery_edges): Likewise.
20041         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
20042         * jump.c (redirect_jump_2): Likewise.
20043         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
20044         (relax_delay_slots): Likewise.
20045         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
20046         (bbit_di): Likewise.
20047         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
20048         * config/sh/sh.md (jump_compact): Likewise.
20049         * bb-reorder.c (rotate_loop): Likewise.
20050         (pass_duplicate_computed_gotos::execute): Likewise.
20051         (add_reg_crossing_jump_notes): Rename to...
20052         (update_crossing_jump_flags): ...this.
20053         (pass_partition_blocks::execute): Update accordingly.
20054
20055 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20056
20057         * tree.h: Remove extraneous template <>.
20058
20059 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20060
20061         * ipa.c (symtab_remove_unreachable_nodes): Remove
20062         symbol from comdat group if its body was eliminated.
20063         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
20064         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
20065         (symtab_unregister_node): ... this one.
20066         (verify_symtab_base): More strict checking of comdats.
20067         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
20068
20069 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20070
20071         * tree-pass.h (make_pass_ipa_comdats): New pass.
20072         * timevar.def (TV_IPA_COMDATS): New timevar.
20073         * passes.def (pass_ipa_comdats): Add.
20074         * Makefile.in (OBJS): Add ipa-comdats.o
20075         * ipa-comdats.c: New file.
20076
20077 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20078
20079         * ipa.c (update_visibility_by_resolution_info): New function.
20080         (function_and_variable_visibility): Use it.
20081
20082 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
20083
20084         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
20085         New functions.
20086         (FOR_EACH_DEFINED_SYMBOL): New macro.
20087         (varpool_first_static_initializer, varpool_next_static_initializer,
20088         varpool_first_defined_variable, varpool_next_defined_variable):
20089         Fix comments.
20090         (symtab_in_same_comdat_p): Correctly deal with inline functions.
20091
20092 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20093
20094         * ggc-page.c (ggc_handle_finalizers): Add comment.
20095
20096 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20097
20098         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
20099         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
20100         (ggc_internal_cleared_alloc): Likewise.
20101         * ggc-page.c (finalizer): New class.
20102         (vec_finalizer): Likewise.
20103         (globals::finalizers): New member.
20104         (globals::vec_finalizers): Likewise.
20105         (ggc_internal_alloc): Record the finalizer if any for the block being
20106         allocated.
20107         (ggc_handle_finalizers): New function.
20108         (ggc_collect): Call ggc_handle_finalizers.
20109         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
20110         finalizer.
20111         (ggc_internal_cleared_alloc): Likewise.
20112         (finalize): New function.
20113         (need_finalization_p): Likewise.
20114         (ggc_alloc): Install the type's destructor as the finalizer if it
20115         might do something.
20116         (ggc_cleared_alloc): Likewise.
20117         (ggc_vec_alloc): Likewise.
20118         (ggc_cleared_vec_alloc): Likewise.
20119
20120 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20121
20122         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
20123
20124 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20125
20126         * alias.c (record_alias_subset): Adjust.
20127         * bitmap.c (bitmap_element_allocate): Likewise.
20128         (bitmap_gc_alloc_stat): Likewise.
20129         * cfg.c (init_flow): Likewise.
20130         (alloc_block): Likewise.
20131         (unchecked_make_edge): Likewise.
20132         * cfgloop.c (alloc_loop): Likewise.
20133         (flow_loops_find): Likewise.
20134         (rescan_loop_exit): Likewise.
20135         * cfgrtl.c (init_rtl_bb_info): Likewise.
20136         * cgraph.c (insert_new_cgraph_node_version): Likewise.
20137         (cgraph_allocate_node): Likewise.
20138         (cgraph_create_edge_1): Likewise.
20139         (cgraph_allocate_init_indirect_info): Likewise.
20140         * cgraphclones.c (cgraph_clone_edge): Likewise.
20141         * cgraphunit.c (add_asm_node): Likewise.
20142         (init_lowered_empty_function): Likewise.
20143         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
20144         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20145         (alpha_use_linkage): Likewise.
20146         * config/arc/arc.c (arc_init_machine_status): Likewise.
20147         * config/arm/arm.c (arm_init_machine_status): Likewise.
20148         * config/avr/avr.c (avr_init_machine_status): Likewise.
20149         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20150         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
20151         * config/cris/cris.c (cris_init_machine_status): Likewise.
20152         * config/darwin.c (machopic_indirection_name): Likewise.
20153         (darwin_build_constant_cfstring): Likewise.
20154         (darwin_enter_string_into_cfstring_table): Likewise.
20155         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
20156         * config/frv/frv.c (frv_init_machine_status): Likewise.
20157         * config/i386/i386.c (get_dllimport_decl): Likewise.
20158         (ix86_init_machine_status): Likewise.
20159         (assign_386_stack_local): Likewise.
20160         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20161         (i386_pe_maybe_record_exported_symbol): Likewise.
20162         (i386_pe_record_stub): Likewise.
20163         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20164         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20165         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20166         (m32c_note_pragma_address): Likewise.
20167         * config/mep/mep.c (mep_init_machine_status): Likewise.
20168         (mep_note_pragma_flag): Likewise.
20169         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20170         (mips16_local_alias): Likewise.
20171         (mips_init_machine_status): Likewise.
20172         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20173         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20174         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
20175         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
20176         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
20177         * config/pa/pa.c (pa_init_machine_status): Likewise.
20178         (pa_get_deferred_plabel): Likewise.
20179         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
20180         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20181         (rs6000_init_machine_status): Likewise.
20182         (output_toc): Likewise.
20183         * config/s390/s390.c (s390_init_machine_status): Likewise.
20184         * config/score/score.c (score_output_external): Likewise.
20185         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20186         * config/spu/spu.c (spu_init_machine_status): Likewise.
20187         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
20188         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
20189         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20190         * coverage.c (coverage_end_function): Likewise.
20191         * dbxout.c (dbxout_init): Likewise.
20192         * doc/gty.texi: Don't mention variable_size attribute.
20193         * dwarf2cfi.c (new_cfi): Adjust.
20194         (new_cfi_row): Likewise.
20195         (copy_cfi_row): Likewise.
20196         (create_cie_data): Likewise.
20197         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
20198         (new_loc_descr): Likewise.
20199         (find_AT_string_in_table): Likewise.
20200         (add_addr_table_entry): Likewise.
20201         (new_die): Likewise.
20202         (add_var_loc_to_decl): Likewise.
20203         (clone_die): Likewise.
20204         (clone_as_declaration): Likewise.
20205         (break_out_comdat_types): Likewise.
20206         (new_loc_list): Likewise.
20207         (add_loc_descr_to_each): Likewise.
20208         (add_location_or_const_value_attribute): Likewise.
20209         (add_linkage_name): Likewise.
20210         (lookup_filename): Likewise.
20211         (dwarf2out_var_location): Likewise.
20212         (new_line_info_table): Likewise.
20213         (dwarf2out_init): Likewise.
20214         (mem_loc_descriptor): Likewise.
20215         (loc_descriptor): Likewise.
20216         (add_const_value_attribute): Likewise.
20217         (tree_add_const_value_attribute): Likewise.
20218         (comp_dir_string): Likewise.
20219         (dwarf2out_vms_debug_main_pointer): Likewise.
20220         (string_cst_pool_decl): Likewise.
20221         * emit-rtl.c (set_mem_attrs): Likewise.
20222         (get_reg_attrs): Likewise.
20223         (start_sequence): Likewise.
20224         (init_emit): Likewise.
20225         (init_emit_regs): Likewise.
20226         * except.c (init_eh_for_function): Likewise.
20227         (gen_eh_region): Likewise.
20228         (gen_eh_region_catch): Likewise.
20229         (gen_eh_landing_pad): Likewise.
20230         (add_call_site): Likewise.
20231         * function.c (add_frame_space): Likewise.
20232         (insert_temp_slot_address): Likewise.
20233         (assign_stack_temp_for_type): Likewise.
20234         (get_hard_reg_initial_val): Likewise.
20235         (allocate_struct_function): Likewise.
20236         (prepare_function_start): Likewise.
20237         (types_used_by_var_decl_insert): Likewise.
20238         * gengtype.c (variable_size_p): Remove function.
20239         (enum alloc_quantity): Remove enum.
20240         (write_typed_alloc_def): Remove function.
20241         (write_typed_struct_alloc_def): Likewise.
20242         (write_typed_typedef_alloc_def): Likewise.
20243         (write_typed_alloc_defns): Likewise.
20244         (main): Adjust.
20245         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
20246         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
20247         * ggc.h (ggc_alloc): new function.
20248         (ggc_cleared_alloc): Likewise.
20249         (ggc_vec_alloc): Template on type of vector element, and remove
20250         element size argument.
20251         (ggc_cleared_vec_alloc): Likewise.
20252         * gimple.c (gimple_build_omp_for): Adjust.
20253         (gimple_copy): Likewise.
20254         * ipa-cp.c (get_replacement_map): Likewise.
20255         (find_aggregate_values_for_callers_subset): Likewise.
20256         (known_aggs_to_agg_replacement_list): Likewise.
20257         * ipa-devirt.c (get_odr_type): Likewise.
20258         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
20259         (read_agg_replacement_chain): Likewise.
20260         * loop-iv.c (get_simple_loop_desc): Likewise.
20261         * lto-cgraph.c (input_node_opt_summary): Likewise.
20262         * lto-section-in.c (lto_new_in_decl_state): Likewise.
20263         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20264         (input_eh_region): Likewise.
20265         (input_eh_lp): Likewise.
20266         (input_cfg): Likewise.
20267         * optabs.c (set_optab_libfunc): Likewise.
20268         (init_tree_optimization_optabs): Likewise.
20269         (set_conv_libfunc): Likewise.
20270         * passes.c (do_per_function_toporder): Likewise.
20271         * rtl.h: Don't use variable_size gty attribute.
20272         * sese.c (if_region_set_false_region): Adjust.
20273         * stringpool.c (gt_pch_save_stringpool): Likewise.
20274         * target-globals.c (save_target_globals): Likewise.
20275         * toplev.c (general_init): Likewise.
20276         * trans-mem.c (record_tm_replacement): Likewise.
20277         (split_bb_make_tm_edge): Likewise.
20278         * tree-cfg.c (move_sese_region_to_fn): Likewise.
20279         * tree-data-ref.h (lambda_vector_new): Likewise.
20280         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20281         * tree-iterator.c (tsi_link_before): Likewise.
20282         (tsi_link_after): Likewise.
20283         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20284         * tree-ssa-loop-niter.c (record_estimate): Likewise.
20285         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20286         * tree-ssa-operands.h: Don't use variable_size gty attribute.
20287         * tree-ssa.c (init_tree_ssa): Adjust.
20288         * tree-ssanames.c (set_range_info): Likewise.
20289         (get_ptr_info): Likewise.
20290         (duplicate_ssa_name_ptr_info): Likewise.
20291         (duplicate_ssa_name_range_info): Likewise.
20292         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
20293         (unpack_ts_fixed_cst_value_fields): Likewise.
20294         * tree.c (build_fixed): Likewise.
20295         (build_real): Likewise.
20296         (build_string): Likewise.
20297         (decl_priority_info): Likewise.
20298         (decl_debug_expr_insert): Likewise.
20299         (decl_value_expr_insert): Likewise.
20300         (decl_debug_args_insert): Likewise.
20301         (type_hash_add): Likewise.
20302         (build_omp_clause): Likewise.
20303         * ubsan.c (decl_for_type_insert): Likewise.
20304         * varasm.c (get_unnamed_section): Likewise.
20305         (get_noswitch_section): Likewise.
20306         (get_section): Likewise.
20307         (get_block_for_section): Likewise.
20308         (create_block_symbol): Likewise.
20309         (build_constant_desc): Likewise.
20310         (create_constant_pool): Likewise.
20311         (force_const_mem): Likewise.
20312         (record_tm_clone_pair): Likewise.
20313         * varpool.c (varpool_create_empty_node): Likewise.
20314
20315 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
20316
20317         * dwarf2out.c (tree_add_const_value_attribute): Call
20318         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
20319         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
20320         instead of ggc_internal_<x>alloc_stat.
20321         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
20322         (ggc_realloc): Likewise.
20323         * ggc-none.c (ggc_internal_alloc): Likewise.
20324         (ggc_internal_cleared_alloc): Likewise.
20325         * ggc-page.c: Likewise.
20326         * ggc.h (ggc_internal_alloc_stat): Likewise.
20327         (ggc_internal_alloc): Remove macro.
20328         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
20329         (ggc_internal_cleared_alloc): Remove macro.
20330         (GGC_RESIZEVEC): Adjust.
20331         (ggc_resizevar): Remove macro.
20332         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
20333         (ggc_internal_cleared_vec_alloc_stat): Likewise.
20334         (ggc_internal_vec_cleared_alloc): Remove macro.
20335         (ggc_alloc_atomic_stat): Drop _stat suffix.
20336         (ggc_alloc_atomic): Remove macro.
20337         (ggc_alloc_cleared_atomic): Remove macro.
20338         (ggc_alloc_string_stat): Drop _stat suffix.
20339         (ggc_alloc_string): Remove macro.
20340         (ggc_alloc_rtx_def_stat): Adjust.
20341         (ggc_alloc_tree_node_stat): Likewise.
20342         (ggc_alloc_cleared_tree_node_stat): Likewise.
20343         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
20344         (ggc_alloc_cleared_simd_clone_stat): Likewise.
20345         * gimple.c (gimple_build_omp_for): Likewise.
20346         (gimple_copy): Likewise.
20347         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
20348         * toplev.c (realloc_for_line_map): Adjust.
20349         * tree-data-ref.h (lambda_vector_new): Likewise.
20350         * tree-phinodes.c (allocate_phi_node): Likewise.
20351         * tree.c (grow_tree_vec_stat): Likewise.
20352         * vec.h (va_gc::reserve): Adjust.
20353
20354 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
20355
20356         * config/microblaze/microblaze.c (break_handler): New Declaration.
20357         (microblaze_break_function_p,microblaze_is_break_handler): New.
20358         (compute_frame_size): Use microblaze_break_function_p.
20359         Add the test of break_handler.
20360         (microblaze_function_prologue) : Add the test of variable
20361         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
20362         (microblaze_function_epilogue) : Add the test of break_handler.
20363         (microblaze_globalize_label) : Add the test of break_handler.
20364         Check the name by BREAK_HANDLER_NAME.
20365
20366         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
20367
20368         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
20369         microblaze_is_break_handler test.
20370         (call_internal1,call_value_intern): Use microblaze_break_function_p.
20371         Use SYMBOL_REF_DECL.
20372
20373         * config/microblaze/microblaze-protos.h
20374         (microblaze_break_function_p,microblaze_is_break_handler):
20375         New Declaration.
20376
20377         * doc/extend.texi (MicroBlaze break_handler Functions): Document
20378         new MicroBlaze break_handler functions.
20379
20380 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
20381
20382         * doc/extend.texi (Size of an asm): Move node text according
20383         to its @menu entry position.
20384
20385 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
20386
20387         PR tree-optimization/61140
20388         PR tree-optimization/61150
20389         PR tree-optimization/61197
20390         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
20391
20392 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
20393
20394         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
20395
20396 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
20397
20398         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
20399         __SIZEOF_INT128__ is defined.
20400
20401 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20402
20403         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
20404         (rs6000_delegitimize_address): Use it.
20405
20406 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
20407
20408         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
20409         inplace argument.  Store the new address in the original MEM when true.
20410         * emit-rtl.c (change_address_1): Likewise.
20411         (adjust_address_1, adjust_automodify_address_1, offset_address):
20412         Update accordingly.
20413         * rtl.h (plus_constant): Add an inplace argument.
20414         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
20415         when true.  Avoid generating (plus X (const_int 0)).
20416         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
20417         in-place.  Pass true to plus_constant.
20418         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
20419
20420 2014-05-16  Dehao Chen  <dehao@google.com>
20421
20422         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
20423
20424 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20425
20426         PR target/54089
20427         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
20428         patterns.
20429         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
20430
20431 2014-05-16  Dehao Chen  <dehao@google.com>
20432
20433         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
20434         optimize_function_for_size_p.
20435         * regs.h (REG_FREQ_FROM_BB): Likewise.
20436
20437 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20438
20439         PR target/51244
20440         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
20441         negt_reg_operand cases.
20442         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
20443         predicate.
20444         * config/sh/predicates.md (cbranch_treg_value): Simplify.
20445
20446 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
20447
20448         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
20449         target variants.
20450
20451 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
20452
20453         Revert:
20454         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
20455
20456         * tree-cfg.c (dump_function_to_file): Dump the return type of
20457         functions, in a line to itself before the function body, mimicking
20458         the layout of a C function.
20459
20460 2014-05-16  Dehao Chen  <dehao@google.com>
20461
20462         * cfghooks.c (make_forwarder_block): Use direct computation to
20463         get fall-through edge's count and frequency.
20464
20465 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
20466
20467         * config/arc/arc.c (arc_init): Fix typo in error message.
20468         * config/i386/i386.c (ix86_expand_builtin): Likewise.
20469         (split_stack_prologue_scratch_regno): Likewise.
20470         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
20471         word from error message.
20472
20473 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20474
20475         * ira-costs.c: Fix typo in comment.
20476
20477 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
20478
20479         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20480
20481 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
20482
20483         * varpool.c (dump_varpool_node): Dump write-only flag.
20484         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20485         write-only flag.
20486         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20487         write-only variables.
20488         * ipa.c (process_references): New function.
20489         (set_readonly_bit): New function.
20490         (set_writeonly_bit): New function.
20491         (clear_addressable_bit): New function.
20492         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20493         fix handling of aliases.
20494         * cgraph.h (struct varpool_node): Add writeonly flag.
20495
20496 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
20497
20498         PR rtl-optimization/60969
20499         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20500         Calculate costs for this case.
20501
20502 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
20503
20504         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20505         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20506
20507 2014-05-16  Richard Biener  <rguenther@suse.de>
20508
20509         PR tree-optimization/61194
20510         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20511         bool patterns ending in a COND_EXPR.
20512
20513 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20514
20515         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20516
20517 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20518
20519         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20520         where we were unable to cost an RTX.
20521
20522 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20523
20524         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20525         HIGH, LO_SUM.
20526
20527 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20528             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20529
20530         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
20531
20532 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20533             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20534
20535         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20536         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20537
20538 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20539             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20540
20541         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20542         operators.
20543
20544 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20545             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20546
20547         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20548         DIV/MOD.
20549
20550 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20551             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20552
20553         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20554         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20555
20556 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20557             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20558
20559         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20560         rotates and shifts.
20561
20562 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20563             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20564
20565         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20566         ZERO_EXTEND and SIGN_EXTEND better.
20567
20568 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20569             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20570
20571         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20572         logical operations.
20573
20574 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20575             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20576
20577         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20578         costs when costing loads and stores to memory.
20579
20580 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20581             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
20582
20583         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20584         for SET RTX.
20585
20586 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20587
20588         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20589
20590 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20591             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20592
20593         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20594         to...
20595         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20596         well formed.
20597         (aarch64_rtx_mult_cost): New.
20598         (aarch64_rtx_costs): Use it, refactor as appropriate.
20599
20600 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20601             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20602
20603         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20604         emit instructions, return number of instructions which would
20605         be emitted.
20606         (aarch64_add_constant): Update call to aarch64_build_constant.
20607         (aarch64_output_mi_thunk): Likewise.
20608         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20609         a CONST_DOUBLE.
20610
20611 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20612
20613         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20614         (TARGET_RTX_COSTS): Call it.
20615
20616 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20617
20618         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20619         (cortexa57_vector_cost): Likewise.
20620         (cortexa57_tunings): Use them.
20621
20622 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20623
20624         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20625         (cpu_addrcost_table): Use it.
20626         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20627         (aarch64_address_cost): Rewrite using aarch64_classify_address,
20628         move it.
20629
20630 2014-05-16  Richard Biener  <rguenther@suse.de>
20631
20632         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20633         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20634         (visit_phi): Ignore edges marked as not executable.
20635         (class cond_dom_walker): New.
20636         (cond_dom_walker::before_dom_children): Value-number
20637         control statements and mark successor edges as not
20638         executable if possible.
20639         (run_scc_vn): First walk all control statements in
20640         dominator order, marking edges as not executable.
20641         * tree-inline.c (copy_edges_for_bb): Be not confused
20642         about random edge flags.
20643
20644 2014-05-16  Richard Biener  <rguenther@suse.de>
20645
20646         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20647
20648 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
20649
20650         PR target/61193
20651         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20652         (__TM_simple_begin): Use it.
20653         (__TM_begin): Likewise.
20654
20655 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20656
20657         PR ipa/61085
20658         * ipa-prop.c (update_indirect_edges_after_inlining): Check
20659         type_preserved flag when the indirect edge is polymorphic.
20660
20661 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20662
20663         PR tree-optimization/61090
20664         * tree-sra.c (sra_modify_expr): Pass the current gsi to
20665         build_ref_for_model.
20666
20667 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20668
20669         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20670         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20671
20672 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
20673
20674         PR tree-optimization/61158
20675         * fold-const.c (fold_binary_loc): If X is zero-extended and
20676         shiftc >= prec, make sure zerobits is all ones instead of
20677         invoking undefined behavior.
20678
20679 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20680
20681         * regcprop.h: New file.
20682         * regcprop.c (skip_debug_insn_p): New decl.
20683         (replace_oldest_value_reg): Check skip_debug_insn_p.
20684         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20685         * shrink-wrap.c: Include regcprop.h.
20686         (prepare_shrink_wrap): Call
20687         copyprop_hardreg_forward_bb_without_debug_insn.
20688
20689 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20690
20691         * shrink-wrap.h: Update comment.
20692         * shrink-wrap.c: Update comment.
20693         (next_block_for_reg): Rename to live_edge_for_reg.
20694         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20695         (move_insn_for_shrink_wrap): Split live_edge.
20696         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20697
20698 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20699
20700         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20701         Delete.
20702         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20703         * config/sparc/sparc.md (fptype_ut699): New attribute.
20704         (in_branch_delay): Return false if -mfix-ut699 is specified and
20705         fptype_ut699 is set to single.
20706         (truncdfsf2): Add fptype_ut699 attribute.
20707         (fix_truncdfsi2): Likewise.
20708         (floatsisf2): Change fptype attribute.
20709         (fix_truncsfsi2): Likewise.
20710         (negtf2_notv9): Delete.
20711         (negtf2_v9): Likewise.
20712         (negtf2_hq): New instruction.
20713         (negtf2): New instruction and splitter.
20714         (negdf2_notv9): Rewrite.
20715         (abstf2_notv9): Delete.
20716         (abstf2_hq_v9): Likewise.
20717         (abstf2_v9): Likewise.
20718         (abstf2_hq): New instruction.
20719         (abstf2): New instruction and splitter.
20720         (absdf2_notv9): Rewrite.
20721
20722 2014-05-14  Cary Coutant  <ccoutant@google.com>
20723
20724         PR debug/61013
20725         * opts.c (common_handle_option): Don't special-case "-g".
20726         (set_debug_level): Default to at least level 2 with "-g".
20727
20728 2014-05-14  DJ Delorie  <dj@redhat.com>
20729
20730         * config/msp430/msp430.c (msp430_builtin): Add
20731         MSP430_BUILTIN_DELAY_CYCLES.
20732         (msp430_init_builtins): Register void __delay_cycles(long long).
20733         (msp430_builtin_decl): Add it.
20734         (cg_magic_constant): New.
20735         (msp430_expand_delay_cycles): New.
20736         (msp430_expand_builtin): Call it.
20737         (msp430_print_operand_raw): Change integer printing from "int" to
20738         HOST_WIDE_INT.
20739         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20740         (delay_cycles_start): New.
20741         (delay_cycles_end): New.
20742         (delay_cycles_32): New.
20743         (delay_cycles_32x): New.
20744         (delay_cycles_16): New.
20745         (delay_cycles_16x): New.
20746         (delay_cycles_2): New.
20747         (delay_cycles_1): New.
20748         * doc/extend.texi: Document __delay_cycles().
20749
20750 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
20751
20752         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20753         length attribute computation.
20754
20755 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
20756
20757         PR debug/61188
20758         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20759
20760 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
20761
20762         PR target/61084
20763         * config/sparc/sparc.md: Fix types of low and high in DI constant
20764         splitter.  Use gen_int_mode in some other splitters.
20765
20766 2014-05-14  Martin Jambor  <mjambor@suse.cz>
20767
20768         PR ipa/60897
20769         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20770
20771 2014-05-14  James Norris  <jnorris@codesourcery.com>
20772
20773         * omp-low.c (expand_parallel_call): Remove shadow variable.
20774         (expand_omp_taskreg): Likewise.
20775
20776 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
20777
20778         * common/config/i386/i386-common.c
20779         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20780         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20781         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20782         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20783         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20784         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20785         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20786         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20787         xsavecintrin.h, xsavesintrin.h.
20788         (x86_64-*-*): Ditto.
20789         * config/i386/clflushoptintrin.h: New.
20790         * config/i386/xsavecintrin.h: Ditto.
20791         * config/i386/xsavesintrin.h: Ditto.
20792         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20793         (bit_XSAVES): Ditto.
20794         (bit_XSAVES): Ditto.
20795         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20796         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20797         -mno-clflushopt.
20798         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20799         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20800         OPTION_MASK_ISA_XSAVES.
20801         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20802         -mxsavec, -mxsaves.
20803         (PTA_CLFLUSHOPT) Define.
20804         (PTA_XSAVEC): Ditto.
20805         (PTA_XSAVES): Ditto.
20806         (ix86_option_override_internal): Handle new options.
20807         (ix86_valid_target_attribute_inner_p): Ditto.
20808         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20809         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20810         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20811         (bdesc_special_args): Add __builtin_ia32_xsaves,
20812         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20813         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20814         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20815         (ix86_expand_builtin): Handle new builtins.
20816         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20817         (TARGET_CLFLUSHOPT_P): Ditto.
20818         (TARGET_XSAVEC): Ditto.
20819         (TARGET_XSAVEC_P): Ditto.
20820         (TARGET_XSAVES): Ditto.
20821         (TARGET_XSAVES_P): Ditto.
20822         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20823         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20824         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20825         (ANY_XRSTOR): New.
20826         (ANY_XRSTOR64): Ditto.
20827         (xrstor): Ditto.
20828         (xrstor): Change into <xrstor>.
20829         (xrstor_rex64): Change into <xrstor>_rex64.
20830         (xrstor64): Change into <xrstor>64
20831         (clflushopt): New.
20832         * config/i386/i386.opt (mclflushopt): New.
20833         (mxsavec): Ditto.
20834         (mxsaves): Ditto.
20835         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20836         xsavecintrin.h.
20837         * doc/invoke.texi: Document new options.
20838
20839 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20840
20841         PR rtl-optimization/60866
20842         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20843         Default it to -1.  Pass it down to init_simplejump_data.
20844         (init_simplejump_data): New parameter old_seqno.  Pass it down
20845         to get_seqno_for_a_jump.
20846         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
20847         initializing new jump seqno as a last resort.  Add comment.
20848         (sel_redirect_edge_and_branch): Save old seqno of the conditional
20849         jump and pass it down to sel_init_new_insn.
20850         (sel_redirect_edge_and_branch_force): Likewise.
20851
20852 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
20853
20854         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20855         shifted values to avoid build warning.
20856
20857 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20858
20859         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20860         * cfgrtl.c (rtl_merge_blocks): Fix comment.
20861         (cfg_layout_merge_blocks): Likewise.
20862         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20863
20864 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20865
20866         PR rtl-optimization/60901
20867         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20868         bb predecessor belongs to the same scheduling region.  Adjust comment.
20869
20870 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
20871
20872         * doc/sourcebuild.texi: (dfp_hw): Document.
20873         (p8vector_hw): Likewise.
20874         (powerpc_eabi_ok): Likewise.
20875         (powerpc_elfv2): Likewise.
20876         (powerpc_htm_ok): Likewise.
20877         (ppc_recip_hw): Likewise.
20878         (vsx_hw): Likewise.
20879
20880 2014-05-13  Cary Coutant  <ccoutant@google.com>
20881
20882         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20883
20884 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
20885
20886         * gengtype-parse.c (require3): Eliminate in favor of...
20887         (require4): New.
20888         (require_template_declaration): Update to support optional single *
20889         on a type.
20890
20891         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20892         (create_user_defined_type): Handle a single level of explicit
20893         pointerness within template arguments.
20894         (struct write_types_data): Add field "kind".
20895         (filter_type_name): Handle "*" character.
20896         (write_user_func_for_structure_ptr): Require a write_types_data
20897         rather than just a prefix string, so that we can look up the kind
20898         of the wtd and use it as an index into wrote_user_func_for_ptr,
20899         ensuring that such functions are written at most once.  Support
20900         subclasses by invoking the marking function of the ultimate base class.
20901         (write_user_func_for_structure_body): Require a write_types_data
20902         rather than just a prefix string, so that we can pass this to
20903         write_user_func_for_structure_ptr.
20904         (write_func_for_structure): Likewise.
20905         (ggc_wtd): Add initializer of new "kind" field.
20906         (pch_wtd): Likewise.
20907
20908         * gengtype.h (enum write_types_kinds): New.
20909         (struct type): Add field wrote_user_func_for_ptr to the "s"
20910         union member.
20911
20912 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
20913
20914         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20915         instead of const_binop.
20916         (fold_binary_loc): Likewise.
20917
20918 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
20919
20920         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20921         calculation to match get_ref_base_and_extent.
20922
20923 2014-05-13  Catherine Moore  <clm@codesourcery.com>
20924             Sandra Loosemore  <sandra@codesourcery.com>
20925
20926         * configure.ac: Fix assembly for explicit JALR relocation check.
20927         * configure: Regenerate.
20928
20929 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20930
20931         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20932         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20933         Remove associated type declarations and initialisations.
20934         (arm_expand_neon_builtin): Likewise.
20935         (neon_emit_pair_result_insn): Delete.
20936         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20937         * config/arm/neon.md (neon_vtrn<mode>): Delete.
20938         (neon_vzip<mode>): Likewise.
20939         (neon_vuzp<mode>): Likewise.
20940
20941 2014-05-13  Richard Biener  <rguenther@suse.de>
20942
20943         PR ipa/60973
20944         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20945         it needs revisiting whether the call still may be tail-called.
20946
20947 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20948
20949         * rtl.def (SYMBOL_REF): Remove middle "0" field.
20950         * rtl.h (block_symbol): Reduce number of fields to 2.
20951         (rtx_def): Add u2.symbol_ref_flags.
20952         (SYMBOL_REF_FLAGS): Use it.
20953         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20954         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20955         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20956         Lower index of SYMBOL_REF_DATA.
20957         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20958         Print SYMBOL_REF_FLAGS at the same time.
20959         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20960
20961 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20962
20963         * rtl.def (VAR_LOCATION): Remove "i" field.
20964         * rtl.h (rtx_def): Add u2.var_location_status.
20965         (PAT_VAR_LOCATION_STATUS): Use it.
20966         (gen_rtx_VAR_LOCATION): Declare.
20967         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20968         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20969         * var-tracking.c (emit_note_insn_var_location): Remove casts.
20970
20971 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20972
20973         * rtl.def (scratch): Fix outdated comment and remove "0" field.
20974         * gengtype.c (adjust_field_rtx_def): Update accordingly.
20975
20976 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20977
20978         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20979         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20980         * rtl.h (rtx_def): Add insn_uid to u2 field.
20981         (RTX_FLAG_CHECK8): Delete in favor of...
20982         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20983         (INSN_DELETED_P): Update accordingly.
20984         (INSN_UID): Use u2.insn_uid.
20985         (INSN_CHAIN_CODE_P): Define.
20986         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20987         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20988         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20989         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20990         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20991         indices accordingly.
20992         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20993         Update indices for insn-chain rtxes.
20994         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20995         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20996         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20997         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20998         * combine.c (try_combine): Likewise.
20999         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21000
21001 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21002
21003         * rtl.def (REG): Remove middle field.
21004         * rtl.h (rtx_def): Add orignal_regno to u2.
21005         (ORIGINAL_REGNO): Use it instead of field 1.
21006         (REG_ATTRS): Lower field index accordingly.
21007         * gengtype.c (adjust_field_rtx_def): Remove handling of
21008         ORIGINAL_REGNO.  Move REG_ATTRS index down.
21009         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
21010         code that prints the REGNO.
21011
21012 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21013
21014         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
21015         GENERATOR_FILE.
21016
21017 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
21018
21019         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
21020
21021 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
21022
21023         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
21024         (alloc_iv): Lower base expressions containing ADDR_EXPR.
21025
21026 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
21027
21028         * config/aarch64/aarch64-protos.h
21029         (aarch64_hard_regno_caller_save_mode): New prototype.
21030         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
21031         New function.
21032         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
21033
21034 2014-05-13  Christian Bruel  <christian.bruel@st.com>
21035
21036         * target.def (mode_switching): New hook vector.
21037         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
21038         (mode_exit, modepriority_to_mode): Likewise.
21039         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
21040         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21041         * target.h: Include tm.h and hard-reg-set.h.
21042         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
21043         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
21044         * doc/tm.texi Regenerate.
21045         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21046         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21047         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
21048         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
21049         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21050         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21051         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
21052         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
21053         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
21054         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
21055         (ix86_emit_mode_set): Hookify.
21056         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
21057         Delete.
21058         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21059         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
21060         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
21061         (epiphany_mode_priority_to_mode): Remove declaration.
21062         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
21063         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
21064         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
21065         Likewise.
21066         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
21067         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
21068         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
21069
21070 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
21071
21072         PR target/61060
21073         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
21074         is const0_rtx, return immediately.  Don't test count == 0 when
21075         it is always true.
21076
21077 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21078
21079         * Makefile.in: add shrink-wrap.o.
21080         * config/i386/i386.c: include "shrink-wrap.h"
21081         * function.c: Likewise.
21082         (requires_stack_frame_p, next_block_for_reg,
21083         move_insn_for_shrink_wrap, prepare_shrink_wrap,
21084         dup_block_and_redirect): Move to shrink-wrap.c
21085         (thread_prologue_and_epilogue_insns): Extract three code segments
21086         as functions in shrink-wrap.c
21087         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
21088         shrink-wrap.h
21089         * shrink-wrap.c: New file.
21090         * shrink-wrap.h: New file.
21091
21092 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
21093
21094         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
21095         reference to Solaris.
21096
21097 2014-05-12  Mike Stump  <mikestump@comcast.net>
21098
21099         PR other/31778
21100         * genattrtab.c (filename): Add.
21101         (convert_set_attr_alternative): Improve error message.
21102         (check_defs): Restore read_md_filename for error messages.
21103         (gen_insn): Save filename.
21104
21105 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
21106
21107         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
21108         -fno-local-ivars and -fivar-visibility.
21109         * c-family/c.opt: Make -Wshadow also implicitly enable
21110         -Wshadow-ivar.
21111
21112 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
21113
21114         * doc/tm.texi: Remove reference to deleted macro.
21115         * doc/tm.texi.in: Likewise.
21116
21117 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21118
21119         PR target/60991
21120         * config/avr/avr.c (avr_out_store_psi): Use correct constant
21121         to restore Y.
21122
21123 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
21124
21125         PR libgcc/61152
21126         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
21127         * config/arm/aout.h (License): Same.
21128         * config/arm/bpabi.h (License): Same.
21129         * config/arm/elf.h (License): Same.
21130         * config/arm/linux-elf.h (License): Same.
21131         * config/arm/linux-gas.h (License): Same.
21132         * config/arm/netbsd-elf.h (License): Same.
21133         * config/arm/uclinux-eabi.h (License): Same.
21134         * config/arm/uclinux-elf.h (License): Same.
21135         * config/arm/vxworks.h (License): Same.
21136
21137 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
21138
21139         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
21140         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
21141         number of operands to 3.
21142         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
21143         * tree-nested.c (convert_nonlocal_omp_clauses,
21144         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
21145         * gimplify.c (gimplify_scan_omp_clauses): Handle
21146         OMP_CLAUSE_LINEAR_STMT.
21147         * omp-low.c (lower_rec_input_clauses): Fix typo.
21148         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
21149         cast between Fortran boolean_type_node and C _Bool if
21150         needed.
21151
21152 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
21153
21154         PR tree-optimization/61136
21155         * wide-int.h (multiple_of_p): Define a version that doesn't return
21156         the quotient.
21157         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
21158         integer_zerop/const_binop pair.
21159         (multiple_of_p): Likewise, converting both operands to widest_int
21160         precision.
21161
21162 2014-05-09  Teresa Johnson  <tejohnson@google.com>
21163
21164         * cgraphunit.c (analyze_functions): Use correct dump file.
21165
21166 2014-05-09  Florian Weimer  <fweimer@redhat.com>
21167
21168         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
21169         expand_used_vars.
21170         (stack_protect_return_slot_p): New function.
21171         (expand_used_vars): Call stack_protect_decl_p and
21172         stack_protect_return_slot_p for -fstack-protector-strong.
21173
21174 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
21175         Andrew Haley <aph@redhat.com>
21176         Richard Sandiford <rdsandiford@googlemail.com>
21177
21178         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
21179         pages.
21180
21181 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
21182
21183         PR middle-end/61111
21184         * fold-const.c (fold_binary_loc): Changed width of mask.
21185
21186 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
21187
21188         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
21189         unsigned int initializers for regno_in, regno_out.
21190
21191 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
21192
21193         PR target/61055
21194         * config/avr/avr.md (cc): Add new attribute set_vzn.
21195         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
21196         Set cc insn attribute to set_vzn instead of set_zn for alternatives
21197         with INC, DEC or NEG.
21198         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
21199         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
21200         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
21201
21202 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21203
21204         Revert:
21205         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21206
21207         * wide-int.cc (UTItype): Define.
21208         (UDWtype): Define for appropriate W_TYPE_SIZE.
21209
21210 2014-05-09  Richard Biener  <rguenther@suse.de>
21211
21212         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
21213         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
21214         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
21215         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
21216         ssa_propagate): Adjust.
21217
21218 2014-05-08  Jeff Law  <law@redhat.com>
21219
21220         PR tree-optimization/61009
21221         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
21222         tri-state rather than a boolean.  When a block is too big to
21223         thread through, inform caller via negative return value.
21224         (thread_across_edge): If a block was too big for normal threading,
21225         then it's too big for a joiner too, so remove temporary equivalences
21226         and return immediately.
21227
21228 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21229             Matthias Klose  <doko@ubuntu.com>
21230
21231         PR driver/61106
21232         * optc-gen.awk: Fix option handling for -Wunused-parameter.
21233
21234 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
21235
21236         PR target/59952
21237         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
21238
21239 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
21240
21241         PR target/61092
21242         * config/alpha/alpha.c: Include gimple-iterator.h.
21243         (alpha_gimple_fold_builtin): New function.  Move
21244         ALPHA_BUILTIN_UMULH folding from ...
21245         (alpha_fold_builtin): ... here.
21246         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
21247
21248 2014-05-08  Wei Mi  <wmi@google.com>
21249
21250         PR target/58066
21251         * config/i386/i386.c (ix86_compute_frame_layout): Update
21252         preferred_stack_boundary for call, expanded from tls descriptor.
21253         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
21254         to depend on SP register.
21255         (*tls_local_dynamic_base_32_gnu): Ditto.
21256         (*tls_local_dynamic_32_once): Ditto.
21257         (tls_global_dynamic_64_<mode>): Set
21258         ix86_tls_descriptor_calls_expanded_in_cfun.
21259         (tls_local_dynamic_base_64_<mode>): Ditto.
21260         (tls_global_dynamic_32): Set
21261         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
21262         to depend on SP register.
21263         (tls_local_dynamic_base_32): Ditto.
21264
21265 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21266
21267         * config/arm/arm_neon.h: Update comment.
21268         * config/arm/neon-docgen.ml: Delete.
21269         * config/arm/neon-gen.ml: Delete.
21270         * doc/arm-neon-intrinsics.texi: Update comment.
21271
21272 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21273
21274         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
21275         and v4sf versions.
21276         (vand, vorr, veor, vorn, vbic): Remove.
21277         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
21278         iterator.
21279         (neon_vsub_unspec): Likewise.
21280         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
21281
21282 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21283
21284         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
21285         (vadd_s16): Likewise.
21286         (vadd_s32): Likewise.
21287         (vadd_f32): Likewise.
21288         (vadd_u8): Likewise.
21289         (vadd_u16): Likewise.
21290         (vadd_u32): Likewise.
21291         (vadd_s64): Likewise.
21292         (vadd_u64): Likewise.
21293         (vaddq_s8): Likewise.
21294         (vaddq_s16): Likewise.
21295         (vaddq_s32): Likewise.
21296         (vaddq_s64): Likewise.
21297         (vaddq_f32): Likewise.
21298         (vaddq_u8): Likewise.
21299         (vaddq_u16): Likewise.
21300         (vaddq_u32): Likewise.
21301         (vaddq_u64): Likewise.
21302         (vmul_s8): Likewise.
21303         (vmul_s16): Likewise.
21304         (vmul_s32): Likewise.
21305         (vmul_f32): Likewise.
21306         (vmul_u8): Likewise.
21307         (vmul_u16): Likewise.
21308         (vmul_u32): Likewise.
21309         (vmul_p8): Likewise.
21310         (vmulq_s8): Likewise.
21311         (vmulq_s16): Likewise.
21312         (vmulq_s32): Likewise.
21313         (vmulq_f32): Likewise.
21314         (vmulq_u8): Likewise.
21315         (vmulq_u16): Likewise.
21316         (vmulq_u32): Likewise.
21317         (vsub_s8): Likewise.
21318         (vsub_s16): Likewise.
21319         (vsub_s32): Likewise.
21320         (vsub_f32): Likewise.
21321         (vsub_u8): Likewise.
21322         (vsub_u16): Likewise.
21323         (vsub_u32): Likewise.
21324         (vsub_s64): Likewise.
21325         (vsub_u64): Likewise.
21326         (vsubq_s8): Likewise.
21327         (vsubq_s16): Likewise.
21328         (vsubq_s32): Likewise.
21329         (vsubq_s64): Likewise.
21330         (vsubq_f32): Likewise.
21331         (vsubq_u8): Likewise.
21332         (vsubq_u16): Likewise.
21333         (vsubq_u32): Likewise.
21334         (vsubq_u64): Likewise.
21335         (vand_s8): Likewise.
21336         (vand_s16): Likewise.
21337         (vand_s32): Likewise.
21338         (vand_u8): Likewise.
21339         (vand_u16): Likewise.
21340         (vand_u32): Likewise.
21341         (vand_s64): Likewise.
21342         (vand_u64): Likewise.
21343         (vandq_s8): Likewise.
21344         (vandq_s16): Likewise.
21345         (vandq_s32): Likewise.
21346         (vandq_s64): Likewise.
21347         (vandq_u8): Likewise.
21348         (vandq_u16): Likewise.
21349         (vandq_u32): Likewise.
21350         (vandq_u64): Likewise.
21351         (vorr_s8): Likewise.
21352         (vorr_s16): Likewise.
21353         (vorr_s32): Likewise.
21354         (vorr_u8): Likewise.
21355         (vorr_u16): Likewise.
21356         (vorr_u32): Likewise.
21357         (vorr_s64): Likewise.
21358         (vorr_u64): Likewise.
21359         (vorrq_s8): Likewise.
21360         (vorrq_s16): Likewise.
21361         (vorrq_s32): Likewise.
21362         (vorrq_s64): Likewise.
21363         (vorrq_u8): Likewise.
21364         (vorrq_u16): Likewise.
21365         (vorrq_u32): Likewise.
21366         (vorrq_u64): Likewise.
21367         (veor_s8): Likewise.
21368         (veor_s16): Likewise.
21369         (veor_s32): Likewise.
21370         (veor_u8): Likewise.
21371         (veor_u16): Likewise.
21372         (veor_u32): Likewise.
21373         (veor_s64): Likewise.
21374         (veor_u64): Likewise.
21375         (veorq_s8): Likewise.
21376         (veorq_s16): Likewise.
21377         (veorq_s32): Likewise.
21378         (veorq_s64): Likewise.
21379         (veorq_u8): Likewise.
21380         (veorq_u16): Likewise.
21381         (veorq_u32): Likewise.
21382         (veorq_u64): Likewise.
21383         (vbic_s8): Likewise.
21384         (vbic_s16): Likewise.
21385         (vbic_s32): Likewise.
21386         (vbic_u8): Likewise.
21387         (vbic_u16): Likewise.
21388         (vbic_u32): Likewise.
21389         (vbic_s64): Likewise.
21390         (vbic_u64): Likewise.
21391         (vbicq_s8): Likewise.
21392         (vbicq_s16): Likewise.
21393         (vbicq_s32): Likewise.
21394         (vbicq_s64): Likewise.
21395         (vbicq_u8): Likewise.
21396         (vbicq_u16): Likewise.
21397         (vbicq_u32): Likewise.
21398         (vbicq_u64): Likewise.
21399         (vorn_s8): Likewise.
21400         (vorn_s16): Likewise.
21401         (vorn_s32): Likewise.
21402         (vorn_u8): Likewise.
21403         (vorn_u16): Likewise.
21404         (vorn_u32): Likewise.
21405         (vorn_s64): Likewise.
21406         (vorn_u64): Likewise.
21407         (vornq_s8): Likewise.
21408         (vornq_s16): Likewise.
21409         (vornq_s32): Likewise.
21410         (vornq_s64): Likewise.
21411         (vornq_u8): Likewise.
21412         (vornq_u16): Likewise.
21413         (vornq_u32): Likewise.
21414         (vornq_u64): Likewise.
21415
21416 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21417
21418         * wide-int.cc (UTItype): Define.
21419         (UDWtype): Define for appropriate W_TYPE_SIZE.
21420
21421 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
21422
21423         PR tree-optimization/59100
21424         * tree-ssa-phiopt.c: Include tree-inline.h.
21425         (neutral_element_p, absorbing_element_p): New functions.
21426         (value_replacement): Handle conditional binary operations with a
21427         neutral or absorbing element.
21428
21429 2014-05-08  Richard Biener  <rguenther@suse.de>
21430
21431         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
21432         folding the expression.
21433         (valueize_expr): Remove.
21434         (visit_reference_op_load): Do not valueize the result of
21435         vn_get_expr_for.
21436         (simplify_binary_expression): Likewise.
21437         (simplify_unary_expression): Likewise.
21438
21439 2014-05-08  Richard Biener  <rguenther@suse.de>
21440
21441         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
21442         looking at TYPE_ARG_TYPES.
21443
21444 2014-05-08  Richard Biener  <rguenther@suse.de>
21445
21446         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
21447         pointer propagation special-case.
21448
21449 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
21450
21451         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
21452         core part of address expressions.
21453
21454 2014-05-08  Alan Modra  <amodra@gmail.com>
21455
21456         PR target/60737
21457         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
21458         loads and stores when -mno-strict-align at any alignment.
21459         (expand_block_clear): Similarly.  Also correct calculation of
21460         instruction count.
21461
21462 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21463
21464         PR middle-end/39246
21465         * tree-complex.c (expand_complex_move): Keep line info when expanding
21466         complex move.
21467         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
21468         of complex expression. Use new argument to display correct location
21469         for values coming from phi statement.
21470         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
21471         (warn_uninitialized_phi): Pass location of phi argument to
21472         warn_uninit.
21473         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
21474         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
21475
21476 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
21477
21478         * config/rs6000/predicates.md (indexed_address_mem): New.
21479         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21480         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21481         fpstore_ux, fpstore_u.
21482         (sign_extend, indexed, update): New.
21483         (cell_micro): Adjust.
21484         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21485         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21486         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21487         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21488         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21489         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21490         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21491         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21492         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21493         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21494         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21495         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21496         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21497         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21498         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21499
21500         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21501         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21502         *vsx_extract_<mode>_store): Adjust.
21503         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21504         is_cracked_insn, insn_must_be_first_in_group,
21505         insn_must_be_last_in_group): Adjust.
21506
21507         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21508         Adjust.
21509         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21510         ppc440-fpstore): Adjust.
21511         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21512         ppc476-fpstore): Adjust.
21513         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21514         ppc601-fpstore): Adjust.
21515         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21516         Adjust.
21517         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21518         Adjust.
21519         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21520         ppc7450-fpstore): Adjust.
21521         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21522         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21523         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21524         Adjust.
21525         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21526         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21527         cell-fpstore, cell-fpstore-update): Adjust.
21528         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21529         ppce300c3_store, ppce300c3_fpstore): Adjust.
21530         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21531         e500mc_fpstore): Adjust.
21532         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21533         e500mc64_store, e500mc64_fpstore): Adjust.
21534         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21535         e5500_fpstore): Adjust.
21536         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21537         e6500_fpstore): Adjust.
21538         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21539         Adjust.
21540         * config/rs6000/power4.md (power4-load, power4-load-ext,
21541         power4-load-ext-update, power4-load-ext-update-indexed,
21542         power4-load-update-indexed, power4-load-update, power4-fpload,
21543         power4-fpload-update, power4-store, power4-store-update,
21544         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21545         Adjust.
21546         * config/rs6000/power5.md (power5-load, power5-load-ext,
21547         power5-load-ext-update, power5-load-ext-update-indexed,
21548         power5-load-update-indexed, power5-load-update, power5-fpload,
21549         power5-fpload-update, power5-store, power5-store-update,
21550         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21551         Adjust.
21552         * config/rs6000/power6.md (power6-load, power6-load-ext,
21553         power6-load-update, power6-load-update-indexed,
21554         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21555         power6-fpload-update, power6-store, power6-store-update,
21556         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21557         Adjust.
21558         * config/rs6000/power7.md (power7-load, power7-load-ext,
21559         power7-load-update, power7-load-update-indexed,
21560         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21561         power7-fpload-update, power7-store, power7-store-update,
21562         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21563         Adjust.
21564         * config/rs6000/power8.md (power8-load, power8-load-update,
21565         power8-load-ext, power8-load-ext-update, power8-fpload,
21566         power8-fpload-update, power8-store, power8-store-update-indexed,
21567         power8-fpstore, power8-fpstore-update): Adjust.
21568         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21569         Adjust.
21570         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21571         titan_lsu_store, titan_lsu_fpstore): Adjust.
21572         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21573
21574 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
21575
21576         PR target/60884
21577         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21578         unrolled byte insns.  Emit address increments after move insns.
21579
21580 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
21581
21582         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21583         const_gimple, rather than a gimple.
21584         (gimple_call_builtin_p): Likewise, for the three variants.
21585
21586         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21587         (gimple_call_builtin_p): Likewise, for the three variants.
21588
21589 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21590
21591         PR tree-optimization/61095
21592         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21593
21594 2014-05-07  Richard Biener  <rguenther@suse.de>
21595
21596         PR tree-optimization/61034
21597         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21598         (maybe_skip_until): Use translate to take into account
21599         lattices when trying to do disambiguations.
21600         (get_continuation_for_phi_1): Likewise.
21601         (get_continuation_for_phi): Adjust for added translate arguments.
21602         (walk_non_aliased_vuses): Likewise.
21603         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21604         (walk_non_aliased_vuses): Likewise.
21605         (call_may_clobber_ref_p_1): Declare.
21606         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21607         calls.  Stop early if we are only supposed to disambiguate.
21608         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21609
21610 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
21611
21612         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21613         Emit an error when the function has arguments.
21614
21615 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21616
21617         * cfgloop.h (unswitch_loops): Remove.
21618         * doc/passes.texi: Remove references to loop-unswitch.c
21619         * timevar.def (TV_LOOP_UNSWITCH): Remove.
21620
21621 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
21622
21623         * tree-vect-data-refs.c (vect_grouped_load_supported): New
21624         check for loads group of length 3.
21625         (vect_permute_load_chain): New permutations for loads group of
21626         length 3.
21627         * tree-vect-stmts.c (vect_model_load_cost): Change cost
21628         of vec_perm_shuffle for the new permutations.
21629
21630 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
21631
21632         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21633         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21634         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21635         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21636         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21637         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21638         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21639         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21640
21641 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21642
21643         * loop-unswitch.c: Delete.
21644
21645 2014-05-07  Richard Biener  <rguenther@suse.de>
21646
21647         * config.gcc: Always set need_64bit_hwint to yes.
21648
21649 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
21650
21651         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21652         of using optimize_size.
21653
21654 2014-05-06  Mike Stump  <mikestump@comcast.net>
21655
21656         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21657
21658 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
21659
21660         * config/i386/sse.md (*mov<mode>_internal)
21661         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21662         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21663         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21664         (*<code><mode>3, *andnot<mode>3<mask_name>)
21665         (<mask_codefor><code><mode>3<mask_name>): Only consider
21666         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21667
21668 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21669
21670         Revert:
21671         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
21672
21673         * lra-constraints.c (valid_address_p): Move earlier in file.
21674         Add a constraint argument to the address_info version.
21675         (satisfies_memory_constraint_p): New function.
21676         (satisfies_address_constraint_p): Likewise.
21677         (process_alt_operands, curr_insn_transform): Use them.
21678         (process_address): Pass the constraint to valid_address_p when
21679         checking address operands.
21680
21681 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
21682
21683         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21684         to their respective blocks.  Fix inadvertent use of "node".
21685
21686 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21687
21688         * emit-rtl.c (init_derived_machine_modes): New functionm, split
21689         out from...
21690         (init_emit_once): ...here.
21691         * rtl.h (init_derived_machine_modes): Declare.
21692         * toplev.c (do_compile): Call it even if no_backend.
21693
21694 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
21695             Mike Stump  <mikestump@comcast.net>
21696             Richard Sandiford  <rdsandiford@googlemail.com>
21697             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21698
21699         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21700         (rtx_equal_for_memref_p): Update comment.
21701         (adjust_offset_for_component_ref): Use wide-int interfaces.
21702         * builtins.c (get_object_alignment_2): Likewise.
21703         (c_readstr): Likewise.
21704         (target_char_cast): Add comment.
21705         (determine_block_size): Use wide-int interfaces.
21706         (expand_builtin_signbit): Likewise.
21707         (fold_builtin_int_roundingfn): Likewise.
21708         (fold_builtin_bitop): Likewise.
21709         (fold_builtin_bswap): Likewise.
21710         (fold_builtin_logarithm): Use signop.
21711         (fold_builtin_pow): Likewise.
21712         (fold_builtin_memory_op): Use wide-int interfaces.
21713         (fold_builtin_object_size): Likewise.
21714         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21715         nb_iterations_estimate.
21716         (record_niter_bound): Use wide-int interfaces.
21717         (get_estimated_loop_iterations_int): Likewise.
21718         (get_estimated_loop_iterations): Likewise.
21719         (get_max_loop_iterations): Likewise.
21720         * cfgloop.h: Include wide-int.h.
21721         (struct nb_iter_bound): Change bound to widest_int.
21722         (struct loop): Change nb_iterations_upper_bound and
21723         nb_iterations_estimate to widest_int.
21724         (record_niter_bound): Switch to use widest_int.
21725         (get_estimated_loop_iterations): Likewise.
21726         (get_max_loop_iterations): Likewise.
21727         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21728         update for wide-int.
21729         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21730         * combine.c (try_combine): Likewise.
21731         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21732         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21733         interfaces.
21734         (aarch64_float_const_representable_p): Likewise.
21735         * config/arc/arc.c: Include wide-int.h.
21736         (arc_can_use_doloop_p): Use wide-int interfaces.
21737         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21738         (vfp3_const_double_index): Likewise.
21739         * config/avr/avr.c (avr_out_round): Likewise.
21740         (avr_fold_builtin): Likewise.
21741         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21742         (bfin_can_use_doloop_p): Likewise.
21743         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21744         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21745         * config/i386/i386.c: Include wide-int.h.
21746         (ix86_data_alignment): Use wide-int interfaces.
21747         (ix86_local_alignment): Likewise.
21748         (ix86_emit_swsqrtsf): Update real_from_integer.
21749         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21750         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21751         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21752         (zero_constant): Likewise.
21753         (input_operand): Likewise.
21754         (splat_input_operand): Likewise.
21755         (non_logical_cint_operand): Change const_double to const_wide_int.
21756         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21757         (easy_altivec_constant): Remove comment.
21758         (paired_expand_vector_init): Use CONSTANT_P.
21759         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21760         (rs6000_emit_move): Update checks.
21761         (rs6000_aggregate_candidate): Use wide-int interfaces.
21762         (rs6000_expand_ternop_builtin): Likewise.
21763         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21764         (rs6000_assemble_integer): Likewise.
21765         (rs6000_hash_constant): Likewise.
21766         (output_toc): Likewise.
21767         (rs6000_rtx_costs): Likewise.
21768         (rs6000_emit_swrsqrt); Update call to real_from_integer.
21769         * config/rs6000/rs6000-c.c: Include wide-int.h.
21770         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21771         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21772         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21773         Handle CONST_WIDE_INT.
21774         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21775         Use tree_fits_uhwi_p.
21776         * config/sparc/sparc.c: Include wide-int.h.
21777         (sparc_fold_builtin): Use wide-int interfaces.
21778         * config/vax/vax.c: Include wide-int.h.
21779         (vax_float_literal): Use real_from_integer.
21780         * coretypes.h (struct hwivec_def): New.
21781         (hwivec): New.
21782         (const_hwivec): New.
21783         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21784         (equiv_constant): Handle CONST_WIDE_INT.
21785         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21786         (cselib_hash_rtx): Handle CONST_WIDE_INT.
21787         * dbxout.c (stabstr_U): Use wide-int interfaces.
21788         (dbxout_type): Update to use cst_fits_shwi_p.
21789         * defaults.h (LOG2_BITS_PER_UNIT): Define.
21790         (TARGET_SUPPORTS_WIDE_INT): Add default.
21791         * dfp.c: Include wide-int.h.
21792         (decimal_real_to_integer2): Use wide-int interfaces and rename to
21793         decimal_real_to_integer.
21794         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21795         decimal_real_to_integer.
21796         * doc/generic.texi (Constant expressions): Update for wide_int.
21797         * doc/rtl.texi (const_double): Likewise.
21798         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21799         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21800         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21801         (REAL_VALUE_FROM_INT): Remove.
21802         (TARGET_SUPPORTS_WIDE_INT): New.
21803         * doc/tm.texi: Regenerate.
21804         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21805         * double-int.h: Include wide-int.h.
21806         (struct wi::int_traits): New.
21807         * dwarf2out.c (get_full_len): New.
21808         (dw_val_equal_p): Add case dw_val_class_wide_int.
21809         (size_of_loc_descr): Likewise.
21810         (output_loc_operands): Likewise.
21811         (insert_double): Remove.
21812         (insert_wide_int): New.
21813         (add_AT_wide): New.
21814         (print_die): Add case dw_val_class_wide_int.
21815         (attr_checksum): Likewise.
21816         (attr_checksum_ordered): Likewise.
21817         (same_dw_val_p): Likewise.
21818         (size_of_die): Likewise.
21819         (value_format): Likewise.
21820         (output_die): Likewise.
21821         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21822         Use wide-int.
21823         (clz_loc_descriptor): Use wide-int interfaces.
21824         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
21825         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
21826         (round_up_to_align): Use wide-int interfaces.
21827         (field_byte_offset): Likewise.
21828         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
21829         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
21830         CONST_DOUBLE handling.  Use wide-int interfaces.
21831         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
21832         (gen_enumeration_type_die): Use add_AT_wide.
21833         (hash_loc_operands): Add case dw_val_class_wide_int.
21834         (compare_loc_operands): Likewise.
21835         * dwarf2out.h: Include wide-int.h.
21836         (wide_int_ptr): New.
21837         (enum dw_val_class): Add dw_val_class_wide_int.
21838         (struct dw_val_struct): Add val_wide.
21839         * emit-rtl.c (const_wide_int_htab): New.
21840         (const_wide_int_htab_hash): New.
21841         (const_wide_int_htab_eq): New.
21842         (lookup_const_wide_int): New.
21843         (const_double_htab_hash): Use wide-int interfaces.
21844         (const_double_htab_eq): Likewise.
21845         (rtx_to_double_int): Conditionally compile for wide-int.
21846         (immed_double_int_const): Rename to immed_wide_int_const and
21847         update for wide-int.
21848         (immed_double_const): Conditionally compile for wide-int.
21849         (init_emit_once): Use wide-int interfaces.
21850         * explow.c (plus_constant): Likewise.
21851         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
21852         (lshift_value): Use wide-int interfaces.
21853         (expand_mult): Likewise.
21854         (choose_multiplier): Likewise.
21855         (expand_smod_pow2): Likewise.
21856         (make_tree): Likewise.
21857         * expr.c (convert_modes): Consolidate handling of constants.
21858         Use wide-int interfaces.
21859         (emit_group_load_1): Add note.
21860         (store_expr): Update comment.
21861         (get_inner_reference): Use wide-int interfaces.
21862         (expand_constructor): Update comment.
21863         (expand_expr_real_2): Use wide-int interfaces.
21864         (expand_expr_real_1): Likewise.
21865         (reduce_to_bit_field_precision): Likewise.
21866         (const_vector_from_tree): Likewise.
21867         * final.c: Include wide-int-print.h.
21868         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
21869         * fixed-value.c: Include wide-int.h.
21870         (fixed_from_string): Use wide-int interfaces.
21871         (fixed_to_decimal): Likewise.
21872         (fixed_convert_from_real): Likewise.
21873         (real_convert_from_fixed): Likewise.
21874         * fold-const.h (mem_ref_offset): Return an offset_int.
21875         (div_if_zero_remainder): Remove code parameter.
21876         * fold-const.c (div_if_zero_remainder): Remove code parameter.
21877         Use wide-int interfaces.
21878         (may_negate_without_overflow_p): Use wide-int interfaces.
21879         (negate_expr_p): Likewise.
21880         (fold_negate_expr): Likewise.
21881         (int_const_binop_1): Likewise.
21882         (const_binop): Likewise.
21883         (fold_convert_const_int_from_int): Likewise.
21884         (fold_convert_const_int_from_real): Likewise.
21885         (fold_convert_const_int_from_fixed): Likewise.
21886         (fold_convert_const_fixed_from_int): Likewise.
21887         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
21888         (sign_bit_p): Use wide-int interfaces.
21889         (make_range_step): Likewise.
21890         (build_range_check): Likewise.  Pass an integer of the correct type
21891         instead of using integer_one_node.
21892         (range_predecessor): Pass an integer of the correct type instead
21893         of using integer_one_node.
21894         (range_successor): Likewise.
21895         (merge_ranges): Likewise.
21896         (unextend): Use wide-int interfaces.
21897         (extract_muldiv_1): Likewise.
21898         (fold_div_compare): Likewise.
21899         (fold_single_bit_test): Likewise.
21900         (fold_sign_changed_comparison): Likewise.
21901         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21902         (fold_plusminus_mult_expr): Use wide-int interfaces.
21903         (native_encode_int): Likewise.
21904         (native_interpret_int): Likewise.
21905         (fold_unary_loc): Likewise.
21906         (pointer_may_wrap_p): Likewise.
21907         (size_low_cst): Likewise.
21908         (mask_with_tz): Likewise.
21909         (fold_binary_loc): Likewise.
21910         (fold_ternary_loc): Likewise.
21911         (multiple_of_p): Likewise.
21912         (tree_call_nonnegative_warnv_p): Update calls to
21913         tree_int_cst_min_precision and real_from_integer.
21914         (fold_negate_const): Use wide-int interfaces.
21915         (fold_abs_const): Likewise.
21916         (fold_relational_const): Use tree_int_cst_lt.
21917         (round_up_loc): Use wide-int interfaces.
21918         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21919         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21920         * gengtype.c: Remove include of double-int.h.
21921         (do_typedef): Use wide-int interfaces.
21922         (open_base_files): Add wide-int.h.
21923         (main): Add offset_int and widest_int typedefs.
21924         * gengtype-lex.l: Handle "^".
21925         (CXX_KEYWORD): Add "static".
21926         * gengtype-parse.c (require3): New.
21927         (require_template_declaration): Handle constant template arguments
21928         and nested templates.
21929         * gengtype-state.c: Don't include "double-int.h".
21930         * genpreds.c (write_one_predicate_function): Update comment.
21931         (write_tm_constrs_h): Add check for hval and lval use in
21932         CONST_WIDE_INT.
21933         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21934         (add_to_sequence): Likewise.
21935         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21936         and const_double_operand.
21937         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21938         interfaces.
21939         * gimple-fold.c (get_base_constructor): Likewise.
21940         (fold_array_ctor_reference): Likewise.
21941         (fold_nonarray_ctor_reference): Likewise.
21942         (fold_const_aggregate_ref_1): Likewise.
21943         (gimple_val_nonnegative_real_p): Likewise.
21944         (gimple_fold_indirect_ref): Likewise.
21945         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21946         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21947         (struct slsr_cand_d): Change index to be widest_int.
21948         (struct incr_info_d): Change incr to be widest_int.
21949         (alloc_cand_and_find_basis): Use wide-int interfaces.
21950         (slsr_process_phi): Likewise.
21951         (backtrace_base_for_ref): Likewise.  Return a widest_int.
21952         (restructure_reference): Take a widest_int instead of a double_int.
21953         (slsr_process_ref): Use wide-int interfaces.
21954         (create_mul_ssa_cand): Likewise.
21955         (create_mul_imm_cand): Likewise.
21956         (create_add_ssa_cand): Likewise.
21957         (create_add_imm_cand): Take a widest_int instead of a double_int.
21958         (slsr_process_add): Use wide-int interfaces.
21959         (slsr_process_cast): Likewise.
21960         (slsr_process_copy): Likewise.
21961         (dump_candidate): Likewise.
21962         (dump_incr_vec): Likewise.
21963         (replace_ref): Likewise.
21964         (cand_increment): Likewise.  Return a widest_int.
21965         (cand_abs_increment): Likewise.
21966         (replace_mult_candidate): Take a widest_int instead of a double_int.
21967         (replace_unconditional_candidate): Use wide-int interfaces.
21968         (incr_vec_index): Take a widest_int instead of a double_int.
21969         (create_add_on_incoming_edge): Likewise.
21970         (create_phi_basis): Use wide-int interfaces.
21971         (replace_conditional_candidate): Likewise.
21972         (record_increment): Take a widest_int instead of a double_int.
21973         (record_phi_increments): Use wide-int interfaces.
21974         (phi_incr_cost): Take a widest_int instead of a double_int.
21975         (lowest_cost_path): Likewise.
21976         (total_savings): Likewise.
21977         (analyze_increments): Use wide-int interfaces.
21978         (ncd_with_phi): Take a widest_int instead of a double_int.
21979         (ncd_of_cand_and_phis): Likewise.
21980         (nearest_common_dominator_for_cands): Likewise.
21981         (insert_initializers): Use wide-int interfaces.
21982         (all_phi_incrs_profitable): Likewise.
21983         (replace_one_candidate): Likewise.
21984         (replace_profitable_candidates): Likewise.
21985         * godump.c: Include wide-int-print.h.
21986         (go_output_typedef): Use wide-int interfaces.
21987         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21988         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21989         (build_loop_iteration_domains): Likewise.
21990         * hooks.h: Include wide-int.h rather than double-int.h.
21991         (hook_bool_dint_dint_uint_bool_true): Delete.
21992         (hook_bool_wint_wint_uint_bool_true): Declare.
21993         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21994         (hook_bool_wint_wint_uint_bool_true): New.
21995         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21996         interfaces.
21997         (ubsan_expand_si_overflow_mul_check): Likewise.
21998         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21999         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
22000         (get_ancestor_addr_info): Likewise.
22001         (ipa_modify_call_arguments): Likewise.
22002         * loop-doloop.c (doloop_modify): Likewise.
22003         (doloop_optimize): Likewise.
22004         * loop-iv.c (iv_number_of_iterations): Likewise.
22005         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
22006         (unroll_loop_constant_iterations): Likewise.
22007         (decide_unroll_runtime_iterations): Likewise.
22008         (unroll_loop_runtime_iterations): Likewise.
22009         (decide_peel_simple): Likewise.
22010         (decide_unroll_stupid): Likewise.
22011         * lto-streamer-in.c (streamer_read_wi): Add.
22012         (input_cfg): Use wide-int interfaces.
22013         (lto_input_tree_1): Likewise.
22014         * lto-streamer-out.c (streamer_write_wi): Add.
22015         (hash_tree): Use wide-int interfaces.
22016         (output_cfg): Likewise.
22017         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
22018         (GTFILES): Add wide-int.h and signop.h.
22019         (TAGS): Look for .cc files too.
22020         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
22021         * optabs.c (expand_subword_shift): Likewise.
22022         (expand_doubleword_shift): Likewise.
22023         (expand_absneg_bit): Likewise.
22024         (expand_copysign_absneg): Likewise.
22025         (expand_copysign_bit): Likewise.
22026         * postreload.c (reload_cse_simplify_set): Likewise.
22027         * predict.c (predict_iv_comparison): Likewise.
22028         * pretty-print.h: Include wide-int-print.h.
22029         (pp_wide_int) New.
22030         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
22031         * print-tree.c: Include wide-int-print.h.
22032         (print_node_brief): Use wide-int interfaces.
22033         (print_node): Likewise.
22034         * read-rtl.c (validate_const_wide_int): New.
22035         (read_rtx_code): Add CONST_WIDE_INT case.
22036         * real.c: Include wide-int.h.
22037         (real_to_integer2): Delete.
22038         (real_to_integer): New function, returning a wide_int.
22039         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22040         (ten_to_ptwo): Update call to real_from_integer.
22041         (real_digit): Likewise.
22042         * real.h: Include signop.h, wide-int.h and insn-modes.h.
22043         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
22044         (REAL_VALUE_TO_INT): Delete.
22045         (real_to_integer): Declare a wide-int form.
22046         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22047         * recog.c (const_int_operand): Improve comment.
22048         (const_scalar_int_operand): New.
22049         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
22050         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
22051         (split_double): Likewise.
22052         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
22053         (rtx_size): Likewise.
22054         (rtx_alloc_stat_v): New.
22055         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
22056         (cwi_output_hex): New.
22057         (iterative_hash_rtx): Handle CONST_WIDE_INT.
22058         (cwi_check_failed_bounds): New.
22059         * rtl.def (CONST_WIDE_INT): New.
22060         * rtl.h: Include <utility> and wide-int.h.
22061         (struct hwivec_def): New.
22062         (CWI_GET_NUM_ELEM): New.
22063         (CWI_PUT_NUM_ELEM): New.
22064         (struct rtx_def): Add num_elem and hwiv.
22065         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
22066         (CASE_CONST_UNIQUE): Likewise.
22067         (CASE_CONST_ANY): Likewise.
22068         (CONST_SCALAR_INT_P): Likewise.
22069         (CONST_WIDE_INT_P): New.
22070         (CWI_ELT): New.
22071         (HWIVEC_CHECK): New.
22072         (cwi_check_failed_bounds): New.
22073         (CWI_ELT): New.
22074         (HWIVEC_CHECK): New.
22075         (CONST_WIDE_INT_VEC) New.
22076         (CONST_WIDE_INT_NUNITS) New.
22077         (CONST_WIDE_INT_ELT) New.
22078         (rtx_mode_t): New type.
22079         (wi::int_traits <rtx_mode_t>): New.
22080         (wi::shwi): New.
22081         (wi::min_value): New.
22082         (wi::max_value): New.
22083         (rtx_alloc_v) New.
22084         (const_wide_int_alloc): New.
22085         (immed_wide_int_const): New.
22086         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
22087         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
22088         * signop.h: New file.
22089         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
22090         (simplify_const_unary_operation): Use wide-int interfaces.
22091         (simplify_binary_operation_1): Likewise.
22092         (simplify_const_binary_operation): Likewise.
22093         (simplify_const_relational_operation): Likewise.
22094         (simplify_immed_subreg): Likewise.
22095         * stmt.c (expand_case): Likewise.
22096         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
22097         signop rather than a bool.
22098         * stor-layout.c (layout_type): Use wide-int interfaces.
22099         (initialize_sizetypes): Update calls to
22100         set_min_and_max_values_for_integral_type.
22101         (set_min_and_max_values_for_integral_type): Take a signop rather
22102         than a bool.  Use wide-int interfaces.
22103         (fixup_signed_type): Update accordingly.  Remove
22104         HOST_BITS_PER_DOUBLE_INT limit.
22105         (fixup_unsigned_type): Likewise.
22106         * system.h (STATIC_CONSTANT_P): New.
22107         (STATIC_ASSERT): New.
22108         * target.def (can_use_doloop_p): Take widest_ints rather than
22109         double_ints.
22110         * target.h: Include wide-int.h rather than double-int.h.
22111         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
22112         than double_ints.
22113         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
22114         rather than INT_CST_LT_UNSIGNED.
22115         (can_use_doloop_if_innermost): Take widest_ints rather than
22116         double_ints.
22117         * tree-affine.c: Include wide-int-print.h.
22118         (double_int_ext_for_comb): Delete.
22119         (wide_int_ext_for_comb): New.
22120         (aff_combination_zero): Use wide-int interfaces.
22121         (aff_combination_const): Take a widest_int instead of a double_int.
22122         (aff_combination_elt): Use wide-int interfaces.
22123         (aff_combination_scale): Take a widest_int instead of a double_int.
22124         (aff_combination_add_elt): Likewise.
22125         (aff_combination_add_cst): Likewise.
22126         (aff_combination_add): Use wide-int interfaces.
22127         (aff_combination_convert): Likewise.
22128         (tree_to_aff_combination): Likewise.
22129         (add_elt_to_tree): Take a widest_int instead of a double_int.
22130         (aff_combination_to_tree): Use wide-int interfaces.
22131         (aff_combination_remove_elt): Likewise.
22132         (aff_combination_add_product): Take a widest_int instead of
22133         a double_int.
22134         (aff_combination_mult): Use wide-int interfaces.
22135         (aff_combination_expand): Likewise.
22136         (double_int_constant_multiple_p): Delete.
22137         (wide_int_constant_multiple_p): New.
22138         (aff_combination_constant_multiple_p): Take a widest_int pointer
22139         instead of a double_int pointer.
22140         (print_aff): Use wide-int interfaces.
22141         (get_inner_reference_aff): Take a widest_int pointer
22142         instead of a double_int pointer.
22143         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
22144         * tree-affine.h: Include wide-int.h.
22145         (struct aff_comb_elt): Change type of coef to widest_int.
22146         (struct affine_tree_combination): Change type of offset to widest_int.
22147         (double_int_ext_for_comb): Delete.
22148         (wide_int_ext_for_comb): New.
22149         (aff_combination_const): Use widest_int instead of double_int.
22150         (aff_combination_scale): Likewise.
22151         (aff_combination_add_elt): Likewise.
22152         (aff_combination_constant_multiple_p): Likewise.
22153         (get_inner_reference_aff): Likewise.
22154         (aff_comb_cannot_overlap_p): Likewise.
22155         (aff_combination_zero_p): Use wide-int interfaces.
22156         * tree.c: Include tree.h.
22157         (init_ttree): Use make_int_cst.
22158         (tree_code_size): Removed code for INTEGER_CST case.
22159         (tree_size): Add INTEGER_CST case.
22160         (make_node_stat): Update comment.
22161         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
22162         (build_int_cst_type): Use wide-int interfaces.
22163         (double_int_to_tree): Likewise.
22164         (double_int_fits_to_tree_p): Delete.
22165         (force_fit_type_double): Delete.
22166         (force_fit_type): New.
22167         (int_cst_hash_hash): Use wide-int interfaces.
22168         (int_cst_hash_eq): Likewise.
22169         (build_int_cst_wide): Delete.
22170         (wide_int_to_tree): New.
22171         (cache_integer_cst): Use wide-int interfaces.
22172         (build_low_bits_mask): Likewise.
22173         (cst_and_fits_in_hwi): Likewise.
22174         (real_value_from_int_cst): Likewise.
22175         (make_int_cst_stat): New.
22176         (integer_zerop): Use wide_int interfaces.
22177         (integer_onep): Likewise.
22178         (integer_all_onesp): Likewise.
22179         (integer_pow2p): Likewise.
22180         (integer_nonzerop): Likewise.
22181         (tree_log2): Likewise.
22182         (tree_floor_log2): Likewise.
22183         (tree_ctz): Likewise.
22184         (int_size_in_bytes): Likewise.
22185         (mem_ref_offset): Return an offset_int rather than a double_int.
22186         (build_type_attribute_qual_variant): Use wide_int interfaces.
22187         (type_hash_eq): Likewise
22188         (tree_int_cst_equal): Likewise.
22189         (tree_int_cst_lt): Delete.
22190         (tree_int_cst_compare): Likewise.
22191         (tree_fits_shwi_p): Use wide_int interfaces.
22192         (tree_fits_uhwi_p): Likewise.
22193         (tree_int_cst_sign_bit): Likewise.
22194         (tree_int_cst_sgn): Likewise.
22195         (tree_int_cst_min_precision): Take a signop rather than a bool.
22196         (simple_cst_equal): Use wide_int interfaces.
22197         (compare_tree_int): Likewise.
22198         (iterative_hash_expr): Likewise.
22199         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
22200         INT_CST_LT.
22201         (get_type_static_bounds): Use wide_int interfaces.
22202         (tree_int_cst_elt_check_failed): New.
22203         (build_common_tree_nodes): Reordered to set prec before filling in
22204         value.
22205         (int_cst_value): Check cst_and_fits_in_hwi.
22206         (widest_int_cst_value): Use wide_int interfaces.
22207         (upper_bound_in_type): Likewise.
22208         (lower_bound_in_type): Likewise.
22209         (num_ending_zeros): Likewise.
22210         (drop_tree_overflow): Likewise.
22211         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
22212         (gen_conditions_for_pow_cst_base): Likewise.
22213         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
22214         (group_case_labels_stmt): Use wide-int interfaces.
22215         (verify_gimple_assign_binary): Likewise.
22216         (print_loop): Likewise.
22217         * tree-chrec.c (tree_fold_binomial): Likewise.
22218         * tree-core.h (struct tree_base): Add int_length.
22219         (struct tree_int_cst): Change rep of value.
22220         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
22221         (dr_may_alias_p): Likewise.
22222         (max_stmt_executions_tree): Likewise.
22223         * tree.def (INTEGER_CST): Update comment.
22224         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
22225         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
22226         * tree-dump.c: Include wide-int.h and wide-int-print.h.
22227         (dequeue_and_dump): Use wide-int interfaces.
22228         * tree.h: Include wide-int.h.
22229         (NULL_TREE): Moved to earlier loc in file.
22230         (TREE_INT_CST_ELT_CHECK): New.
22231         (tree_int_cst_elt_check_failed): New.
22232         (TYPE_SIGN): New.
22233         (TREE_INT_CST): Delete.
22234         (TREE_INT_CST_LOW): Use wide-int interfaces.
22235         (TREE_INT_CST_HIGH): Delete.
22236         (TREE_INT_CST_NUNITS): New.
22237         (TREE_INT_CST_EXT_NUNITS): Likewise.
22238         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
22239         (TREE_INT_CST_ELT): Likewise.
22240         (INT_CST_LT): Delete.
22241         (tree_int_cst_elt_check): New (two forms).
22242         (type_code_size): Update comment.
22243         (make_int_cst_stat, make_int_cst): New.
22244         (tree_to_double_int): Delete.
22245         (double_int_fits_to_tree_p): Delete.
22246         (force_fit_type_double): Delete.
22247         (build_int_cstu): Replace with out-of-line function.
22248         (build_int_cst_wide): Delete.
22249         (tree_int_cst_lt): Define inline.
22250         (tree_int_cst_le): New.
22251         (tree_int_cst_compare): Define inline.
22252         (tree_int_cst_min_precision): Take a signop rather than a bool.
22253         (wi::int_traits <const_tree>): New.
22254         (wi::int_traits <tree>): New.
22255         (wi::extended_tree): New.
22256         (wi::int_traits <wi::extended_tree>): New.
22257         (wi::to_widest): New.
22258         (wi::to_offset): New.
22259         (wi::fits_to_tree_p): New.
22260         (wi::min_value): New.
22261         (wi::max_value): New.
22262         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
22263         (copy_tree_body_r): Likewise.
22264         * tree-object-size.c (compute_object_offset): Likewise.
22265         (addr_object_size): Likewise.
22266         * tree-predcom.c: Include wide-int-print.h.
22267         (struct dref_d): Change type of offset to widest_int.
22268         (dump_dref): Call wide-int printer.
22269         (aff_combination_dr_offset): Use wide-int interfaces.
22270         (determine_offset): Take a widest_int pointer rather than a
22271         double_int pointer.
22272         (split_data_refs_to_components): Use wide-int interfaces.
22273         (suitable_component_p): Likewise.
22274         (order_drefs): Likewise.
22275         (add_ref_to_chain): Likewise.
22276         (valid_initializer_p): Likewise.
22277         (determine_roots_comp): Likewise.
22278         * tree-pretty-print.c: Include wide-int-print.h.
22279         (dump_generic_node): Use wide-int interfaces.
22280         * tree-sra.c (sra_ipa_modify_expr): Likewise.
22281         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
22282         (move_fixed_address_to_symbol): Likewise.
22283         (move_hint_to_base): Likewise.
22284         (move_pointer_to_base): Likewise.
22285         (move_variant_to_index): Likewise.
22286         (most_expensive_mult_to_index): Likewise.
22287         (addr_to_parts): Likewise.
22288         (copy_ref_info): Likewise.
22289         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22290         (indirect_refs_may_alias_p): Likewise.
22291         (stmt_kills_ref_p_1): Likewise.
22292         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
22293         * tree-ssa-ccp.c: Update comment at top of file.  Include
22294         wide-int-print.h.
22295         (struct prop_value_d): Change type of mask to widest_int.
22296         (extend_mask): New function.
22297         (dump_lattice_value): Use wide-int interfaces.
22298         (get_default_value): Likewise.
22299         (set_constant_value): Likewise.
22300         (set_value_varying): Likewise.
22301         (valid_lattice_transition): Likewise.
22302         (set_lattice_value): Likewise.
22303         (value_to_double_int): Delete.
22304         (value_to_wide_int): New.
22305         (get_value_from_alignment): Use wide-int interfaces.
22306         (get_value_for_expr): Likewise.
22307         (do_dbg_cnt): Likewise.
22308         (ccp_finalize): Likewise.
22309         (ccp_lattice_meet): Likewise.
22310         (bit_value_unop_1): Use widest_ints rather than double_ints.
22311         (bit_value_binop_1): Likewise.
22312         (bit_value_unop): Use wide-int interfaces.
22313         (bit_value_binop): Likewise.
22314         (bit_value_assume_aligned): Likewise.
22315         (evaluate_stmt): Likewise.
22316         (ccp_fold_stmt): Likewise.
22317         (visit_cond_stmt): Likewise.
22318         (ccp_visit_stmt): Likewise.
22319         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22320         (constant_pointer_difference): Likewise.
22321         (associate_pointerplus): Likewise.
22322         (combine_conversions): Likewise.
22323         * tree-ssa-loop.h: Include wide-int.h.
22324         (struct tree_niter_desc): Change type of max to widest_int.
22325         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
22326         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
22327         (remove_redundant_iv_tests): Likewise.
22328         (canonicalize_loop_induction_variables): Likewise.
22329         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
22330         (constant_multiple_of): Take a widest_int pointer instead of
22331         a double_int pointer.
22332         (get_computation_aff): Use wide-int interfaces.
22333         (ptr_difference_cost): Likewise.
22334         (difference_cost): Likewise.
22335         (get_loop_invariant_expr_id): Likewise.
22336         (get_computation_cost_at): Likewise.
22337         (iv_elimination_compare_lt): Likewise.
22338         (may_eliminate_iv): Likewise.
22339         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
22340         instead of double_int.
22341         (max_loop_iterations): Likewise.
22342         (max_stmt_executions): Likewise.
22343         (estimated_stmt_executions): Likewise.
22344         * tree-ssa-loop-niter.c: Include wide-int-print.h.
22345         (split_to_var_and_offset): Use wide-int interfaces.
22346         (determine_value_range): Likewise.
22347         (bound_difference_of_offsetted_base): Likewise.
22348         (bounds_add): Take a widest_int instead of a double_int.
22349         (number_of_iterations_ne_max): Use wide-int interfaces.
22350         (number_of_iterations_ne): Likewise.
22351         (number_of_iterations_lt_to_ne): Likewise.
22352         (assert_loop_rolls_lt): Likewise.
22353         (number_of_iterations_lt): Likewise.
22354         (number_of_iterations_le): Likewise.
22355         (number_of_iterations_cond): Likewise.
22356         (number_of_iterations_exit): Likewise.
22357         (finite_loop_p): Likewise.
22358         (derive_constant_upper_bound_assign): Likewise.
22359         (derive_constant_upper_bound): Return a widest_int.
22360         (derive_constant_upper_bound_ops): Likewise.
22361         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
22362         (record_estimate): Take a widest_int rather than a double_int.
22363         (record_nonwrapping_iv): Use wide-int interfaces.
22364         (double_int_cmp): Delete.
22365         (wide_int_cmp): New.
22366         (bound_index): Take a widest_int rather than a double_int.
22367         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
22368         (maybe_lower_iteration_bound): Likewise.
22369         (estimate_numbers_of_iterations_loop): Likewise.
22370         (estimated_loop_iterations): Take a widest_int pointer than than
22371         a double_int pointer.
22372         (estimated_loop_iterations_int): Use wide-int interfaces.
22373         (max_loop_iterations): Take a widest_int pointer than than
22374         a double_int pointer.
22375         (max_loop_iterations_int): Use wide-int interfaces.
22376         (max_stmt_executions): Take a widest_int pointer than than
22377         a double_int pointer.
22378         (estimated_stmt_executions): Likewise.
22379         (n_of_executions_at_most): Use wide-int interfaces.
22380         (scev_probably_wraps_p): Likewise.
22381         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
22382         to real_to_integer.
22383         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
22384         interfaces.
22385         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
22386         double_ints.  Adjust for trailing_wide_ints <3> representation.
22387         (set_nonzero_bits): Likewise.
22388         (get_range_info): Return wide_ints rather than double_ints.
22389         Adjust for trailing_wide_ints <3> representation.
22390         (get_nonzero_bits): Likewise.
22391         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
22392         representation.
22393         * tree-ssanames.h (struct range_info_def): Replace min, max and
22394         nonzero_bits with a trailing_wide_ints <3>.
22395         (set_range_info): Use wide_int_refs rather than double_ints.
22396         (set_nonzero_bits): Likewise.
22397         (get_range_info): Return wide_ints rather than double_ints.
22398         (get_nonzero_bits): Likewise.
22399         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
22400         * tree-ssa-pre.c (phi_translate_1): Likewise.
22401         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
22402         (acceptable_pow_call): Likewise.
22403         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
22404         interfaces.
22405         (vn_reference_fold_indirect): Likewise.
22406         (vn_reference_maybe_forwprop_address): Likewise.
22407         (valueize_refs_1): Likewise.
22408         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
22409         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
22410         tree_int_cst_lt and tree_int_cst_le.
22411         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
22412         interfaces.
22413         (streamer_alloc_tree): Likewise.
22414         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
22415         (streamer_write_tree_header): Likewise.
22416         (streamer_write_integer_cst): Likewise.
22417         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22418         (build_constructors): Likewise.
22419         (array_value_type): Likewise.
22420         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
22421         (vect_check_gather): Likewise.
22422         * tree-vect-generic.c (build_replicated_const): Likewise.
22423         (expand_vector_divmod): Likewise.
22424         * tree-vect-loop.c (vect_transform_loop): Likewise.
22425         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
22426         (vect_do_peeling_for_alignment): Likewise.
22427         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
22428         * tree-vrp.c: Include wide-int.h.
22429         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
22430         (extract_range_from_assert): Use wide-int interfaces.
22431         (vrp_int_const_binop): Likewise.
22432         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
22433         double_int pointers.
22434         (ranges_from_anti_range): Use wide-int interfaces.
22435         (quad_int_cmp): Delete.
22436         (quad_int_pair_sort): Likewise.
22437         (extract_range_from_binary_expr_1): Use wide-int interfaces.
22438         (extract_range_from_unary_expr_1): Likewise.
22439         (adjust_range_with_scev): Likewise.
22440         (masked_increment): Take and return wide_ints rather than double_ints.
22441         (register_edge_assert_for_2): Use wide-int interfaces.
22442         (check_array_ref): Likewise.
22443         (search_for_addr_array): Likewise.
22444         (maybe_set_nonzero_bits): Likewise.
22445         (union_ranges): Pass an integer of the correct type instead of
22446         using integer_one_node.
22447         (intersect_ranges): Likewise.
22448         (simplify_truth_ops_using_ranges): Likewise.
22449         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
22450         (range_fits_type_p): Likewise.
22451         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
22452         a bool.
22453         (simplify_conversion_using_ranges): Use wide-int interfaces.
22454         (simplify_float_conversion_using_ranges): Likewise.
22455         (vrp_finalize): Likewise.
22456         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
22457         (gimple_stringops_transform): Likewise.
22458         * varasm.c (decode_addr_const): Likewise.
22459         (const_hash_1): Likewise.
22460         (const_rtx_hash_1): Likewise
22461         (output_constant): Likewise.
22462         (array_size_for_constructor): Likewise.
22463         (output_constructor_regular_field): Likewise.
22464         (output_constructor_bitfield): Likewise.
22465         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
22466         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
22467         GENERATOR_FILEs.
22468         * gencheck.c: Define BITS_PER_UNIT.
22469         * wide-int.cc: New.
22470         * wide-int.h: New.
22471         * wide-int-print.cc: New.
22472         * wide-int-print.h: New.
22473
22474 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22475
22476         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
22477
22478 2014-05-06  Richard Biener  <rguenther@suse.de>
22479
22480         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22481         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22482         (TODO_verify_all): Adjust.
22483         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22484         TODO_verify_stmts and TODO_verify_rtl_sharing.
22485         * bb-reorder.c: Likewise.
22486         * cfgexpand.c: Likewise.
22487         * cprop.c: Likewise.
22488         * cse.c: Likewise.
22489         * function.c: Likewise.
22490         * fwprop.c: Likewise.
22491         * gcse.c: Likewise.
22492         * gimple-ssa-isolate-paths.c: Likewise.
22493         * gimple-ssa-strength-reduction.c: Likewise.
22494         * ipa-split.c: Likewise.
22495         * loop-init.c: Likewise.
22496         * loop-unroll.c: Likewise.
22497         * lower-subreg.c: Likewise.
22498         * modulo-sched.c: Likewise.
22499         * postreload-gcse.c: Likewise.
22500         * predict.c: Likewise.
22501         * recog.c: Likewise.
22502         * sched-rgn.c: Likewise.
22503         * store-motion.c: Likewise.
22504         * tracer.c: Likewise.
22505         * trans-mem.c: Likewise.
22506         * tree-call-cdce.c: Likewise.
22507         * tree-cfg.c: Likewise.
22508         * tree-cfgcleanup.c: Likewise.
22509         * tree-complex.c: Likewise.
22510         * tree-eh.c: Likewise.
22511         * tree-emutls.c: Likewise.
22512         * tree-if-conv.c: Likewise.
22513         * tree-into-ssa.c: Likewise.
22514         * tree-loop-distribution.c: Likewise.
22515         * tree-object-size.c: Likewise.
22516         * tree-parloops.c: Likewise.
22517         * tree-pass.h: Likewise.
22518         * tree-sra.c: Likewise.
22519         * tree-ssa-ccp.c: Likewise.
22520         * tree-ssa-copy.c: Likewise.
22521         * tree-ssa-copyrename.c: Likewise.
22522         * tree-ssa-dce.c: Likewise.
22523         * tree-ssa-dom.c: Likewise.
22524         * tree-ssa-dse.c: Likewise.
22525         * tree-ssa-forwprop.c: Likewise.
22526         * tree-ssa-ifcombine.c: Likewise.
22527         * tree-ssa-loop-ch.c: Likewise.
22528         * tree-ssa-loop-ivcanon.c: Likewise.
22529         * tree-ssa-loop.c: Likewise.
22530         * tree-ssa-math-opts.c: Likewise.
22531         * tree-ssa-phiopt.c: Likewise.
22532         * tree-ssa-phiprop.c: Likewise.
22533         * tree-ssa-pre.c: Likewise.
22534         * tree-ssa-reassoc.c: Likewise.
22535         * tree-ssa-sink.c: Likewise.
22536         * tree-ssa-strlen.c: Likewise.
22537         * tree-ssa-tail-merge.c: Likewise.
22538         * tree-ssa-uncprop.c: Likewise.
22539         * tree-switch-conversion.c: Likewise.
22540         * tree-tailcall.c: Likewise.
22541         * tree-vect-generic.c: Likewise.
22542         * tree-vectorizer.c: Likewise.
22543         * tree-vrp.c: Likewise.
22544         * tsan.c: Likewise.
22545         * var-tracking.c: Likewise.
22546         * bt-load.c: Likewise.
22547         * cfgcleanup.c: Likewise.
22548         * combine-stack-adj.c: Likewise.
22549         * combine.c: Likewise.
22550         * compare-elim.c: Likewise.
22551         * config/epiphany/resolve-sw-modes.c: Likewise.
22552         * config/i386/i386.c: Likewise.
22553         * config/mips/mips.c: Likewise.
22554         * config/s390/s390.c: Likewise.
22555         * config/sh/sh_treg_combine.cc: Likewise.
22556         * config/sparc/sparc.c: Likewise.
22557         * dce.c: Likewise.
22558         * dse.c: Likewise.
22559         * final.c: Likewise.
22560         * ifcvt.c: Likewise.
22561         * mode-switching.c: Likewise.
22562         * passes.c: Likewise.
22563         * postreload.c: Likewise.
22564         * ree.c: Likewise.
22565         * reg-stack.c: Likewise.
22566         * regcprop.c: Likewise.
22567         * regrename.c: Likewise.
22568         * web.c: Likewise.
22569
22570 2014-05-06  Richard Biener  <rguenther@suse.de>
22571
22572         PR middle-end/61070
22573         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22574         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22575
22576 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
22577
22578         PR ipa/60965
22579         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22580
22581 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
22582             Tom de Vries  <tom@codesourcery.com>
22583
22584         * target.def (call_fusage_contains_non_callee_clobbers): New
22585         DEFHOOKPOD.
22586         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22587         Hooks to @menu.
22588         (@node Miscellaneous Register Hooks): New node.
22589         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22590         * doc/tm.texi: Regenerate.
22591
22592 2014-05-05  Marek Polacek  <polacek@redhat.com>
22593
22594         PR driver/61065
22595         * opts.c (common_handle_option): Call error_at instead of warning_at.
22596
22597 2014-05-05  Richard Biener  <rguenther@suse.de>
22598
22599         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22600         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
22601         under the TODO_verify_il umbrella.
22602
22603 2014-05-05  Richard Biener  <rguenther@suse.de>
22604
22605         * passes.c (execute_function_todo): Move TODO_verify_flow under
22606         the TODO_verify_ul umbrella.
22607
22608 2014-05-05  Richard Biener  <rguenther@suse.de>
22609
22610         PR middle-end/61010
22611         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22612         X & CST away from a CST that is the mask of a mode.
22613
22614 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22615
22616         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22617         int argument to enum machine_mode.
22618         (picochip_class_max_nregs): Ditto.
22619         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22620         (picochip_class_max_nregs): Ditto.
22621
22622 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22623
22624         * target.def: Add new target hook.
22625         * doc/tm.texi: Regenerate.
22626         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22627         * targhooks.c (default_keep_leaf_when_profiled): New function.
22628
22629         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22630         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22631
22632 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
22633
22634         PR tree-optimization/60363
22635         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22636         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
22637         (update_destination_phis): New parameter.
22638         (create_edge_and_update_destination_phis): Ditto.
22639         (ssa_fix_duplicate_block_edges): Pass new arguments.
22640         (thread_single_edge): Ditto.
22641
22642 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
22643
22644         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22645         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22646         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22647         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22648         Use RS6000_BTM_HARD_FLOAT.
22649         (BU_MISC_2): Likewise.
22650         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22651         RS6000_BTM_HARD_FLOAT.
22652         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22653         is explicitly used.
22654         (rs6000_invalid_builtin): Add hard floating builtin support.
22655         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22656         hard float builtins.
22657         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22658
22659 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22660
22661         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22662         Add missing function* argument.
22663
22664 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22665
22666         * lra-constraints.c (valid_address_p): Move earlier in file.
22667         Add a constraint argument to the address_info version.
22668         (satisfies_memory_constraint_p): New function.
22669         (satisfies_address_constraint_p): Likewise.
22670         (process_alt_operands, curr_insn_transform): Use them.
22671         (process_address): Pass the constraint to valid_address_p when
22672         checking address operands.
22673
22674 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22675
22676         * config/mips/mips.c (mips_isa_rev): New variable.
22677         (mips_set_architecture): Set it.
22678         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22679         from mips_isa_rev.
22680         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22681         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22682         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22683         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22684         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22685         conditions in terms of mips_isa_rev.
22686         (mips_isa_rev): Declare.
22687
22688 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22689
22690         * config/sh/sh-mem.cc: Use tabs instead of spaces.
22691         (prob_unlikely, prob_likely): Make variables const.
22692
22693 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
22694
22695         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22696
22697 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22698
22699         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22700
22701 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22702
22703         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22704         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22705         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22706         functions.
22707         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22708         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22709         sh_pass_in_reg_p.
22710         Replace usage of ROUND_REG with sh_round_reg.
22711         Use CEIL instead of ROUND_ADVANCE.
22712
22713 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22714
22715         PR target/61026
22716         * config/sh/sh.c: Include stdlib headers before everything else.
22717
22718 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
22719
22720         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22721         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22722         (gimplify_adjust_omp_clauses): Simd region is never
22723         directly nested in combined parallel.  Instead, for linear
22724         with copyin/copyout, if in combined for simd loop, make decl
22725         firstprivate/lastprivate on OMP_FOR.
22726         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22727         expand_omp_for_static_chunk): When setting endvar, also set
22728         fd->loop.v to the same value.
22729
22730 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22731
22732         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22733
22734 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
22735
22736         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22737         expression.
22738
22739 2014-05-02  Marek Polacek  <polacek@redhat.com>
22740
22741         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22742
22743 2014-05-02  Kito Cheng  <kito@0xlab.org>
22744
22745         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22746         to a C expression marco.
22747         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22748         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22749         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22750         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22751         HONOR_REG_ALLOC_ORDER.
22752         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22753
22754 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22755
22756         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22757
22758 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22759
22760         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22761
22762 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
22763
22764         * tree-if-conv.c (is_cond_scalar_reduction): New function.
22765         (convert_scalar_cond_reduction): Likewise.
22766         (predicate_scalar_phi): Add recognition and transformation
22767         of simple conditioanl reduction to be vectorizable.
22768
22769 2014-05-01  Marek Polacek  <polacek@redhat.com>
22770
22771         PR c/43245
22772         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22773
22774 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
22775
22776         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22777         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22778         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22779         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22780         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22781         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22782         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22783         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22784
22785 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
22786
22787         * config/arc/arc.opt (mlra): Move comment above option name
22788         to avoid mis-parsing as language options.
22789
22790 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22791
22792         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22793         * config/sol2.h: ... here.
22794         * config/sol2-10.h: Remove.
22795
22796         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22797         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22798         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22799         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22800         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22801         * config/sol2.h: ... here.
22802         (SECTION_NAME_FORMAT): Don't redefine.
22803         (STARTFILE_ARCH32_SPEC): Rename to ...
22804         (STARTFILE_ARCH_SPEC): ... this.
22805         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22806         * config/sparc/sol2.h: ... here.
22807         (SECTION_NAME_FORMAT): Don't undef.
22808         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22809         (SUBTARGET_EXTRA_SPECS): Remove.
22810         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22811
22812         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22813         (MD_STARTFILE_PREFIX): Remove.
22814         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22815         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22816         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22817         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22818         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22819         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22820         * config/i386/sol2.h: ... here.
22821         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22822         * config/i386/sol2-bi.h: Remove.
22823         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22824         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22825
22826         * config/i386/t-sol2-64: Rename to ...
22827         * config/i386/t-sol2: ... this.
22828         * config/sparc/t-sol2-64: Rename to ...
22829         * config/sparc/t-sol2: ... this.
22830
22831         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22832         sol2_tm_file_head, sol2_tm_file_tail.
22833         Include ${cpu_type}/sol2.h before sol2.h.
22834         Remove sol2-10.h.
22835         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22836         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22837         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22838         Reflect i386/t-sol2-64 renaming.
22839         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22840         Reflect sparc/t-sol2-64 renaming.
22841
22842 2014-04-30  Richard Biener  <rguenther@suse.de>
22843
22844         * passes.c (execute_function_todo): Move TODO_verify_stmts
22845         and TODO_verify_ssa under the TODO_verify_il umbrella.
22846         * tree-ssa.h (verify_ssa): Adjust prototype.
22847         * tree-ssa.c (verify_ssa): Add parameter to tell whether
22848         we should verify SSA operands.
22849         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22850         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22851         whether we should verify whether not throwing stmts have EH info.
22852         * graphite-scop-detection.c (create_sese_edges): Adjust.
22853         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22854         * tree-eh.c (lower_try_finally_switch): Do not add the
22855         default case label twice.
22856
22857 2014-04-30  Marek Polacek  <polacek@redhat.com>
22858
22859         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22860         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22861         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22862         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22863
22864 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22865
22866         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22867         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22868         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22869         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22870         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22871         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22872         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22873         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22874
22875 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
22876
22877         * tree-cfg.c (dump_function_to_file): Dump the return type of
22878         functions, in a line to itself before the function body, mimicking
22879         the layout of a C function.
22880
22881 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
22882
22883         PR tree-optimization/60971
22884         * tree-tailcall.c (process_assignment): Reject conversions which
22885         reduce precision.
22886
22887 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22888
22889         * calls.c (initialize_argument_information): Always treat
22890         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22891         (expand_call): Likewise.
22892         (emit_library_call_calue_1): Likewise.
22893         * expr.c (PUSH_ARGS_REVERSED): Do not define.
22894         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22895         code accordingly.
22896
22897 2014-04-29  Nick Clifton  <nickc@redhat.com>
22898
22899         * config/msp430/msp430.md (umulsidi): Fix typo.
22900         (mulhisi3): Enable even inside interrupt handlers.
22901         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22902         bigger return address pushed in large mode.
22903
22904 2014-04-29  Nick Clifton  <nickc@redhat.com>
22905
22906         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22907         (arc_init_reg_tables): Use a machine_mode enum to iterate over
22908         available modes.
22909         * config/m32r/m32r.c (init_reg_tables): Likewise.
22910         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22911         enum to hold the modes.
22912
22913 2014-04-29  Richard Biener  <rguenther@suse.de>
22914
22915         * dominance.c (free_dominance_info): Add overload with
22916         function parameter.
22917         (dom_info_state): Likewise.
22918         (dom_info_available_p): Likewise.
22919         * basic-block.h (free_dominance_info, dom_info_state,
22920         dom_info_available_p): Declare overloads.
22921         * passes.c (execute_function_todo): Verify that verifiers
22922         don't change dominator info state.  Drop dominator info
22923         for IPA pass invocations.
22924         * cgraph.c (release_function_body): Restore asserts that
22925         dominator information is released.
22926
22927 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
22928
22929         * doc/invoke.texi: Fix typo.
22930         * tree-vrp.c: Fix typos.
22931         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22932
22933 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22934
22935         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22936
22937 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
22938
22939         * config/aarch64/aarch64-builtins.c
22940         (aarch64_types_storestruct_lane_qualifiers): New.
22941         (TYPES_STORESTRUCT_LANE): Likewise.
22942         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22943         (st3_lane): Likewise.
22944         (st4_lane): Likewise.
22945         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22946         (vec_store_lanesci_lane<mode>): Likewise.
22947         (vec_store_lanesxi_lane<mode>): Likewise.
22948         (aarch64_st2_lane<VQ:mode>): Likewise.
22949         (aarch64_st3_lane<VQ:mode>): Likewise.
22950         (aarch64_st4_lane<VQ:mode>): Likewise.
22951         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22952         * config/aarch64/arm_neon.h
22953         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22954         use new macro arguments.
22955         (__ST3_LANE_FUNC): Likewise.
22956         (__ST4_LANE_FUNC): Likewise.
22957         * config/aarch64/iterators.md (V_TWO_ELEM): New.
22958         (V_THREE_ELEM): Likewise.
22959         (V_FOUR_ELEM): Likewise.
22960
22961 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
22962
22963         * doc/gimple.texi: Replace the description of the now-defunct
22964         union gimple_statement_d with a diagram showing the
22965         gimple_statement_base class hierarchy and its relationships to
22966         the GSS_ and GIMPLE_ enums.
22967
22968 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
22969
22970         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22971         * config/aarch64/aarch64.c
22972         (aarch64_cannot_change_mode_class): Weaken conditions.
22973         (aarch64_modes_tieable_p): New.
22974         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22975
22976 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
22977
22978         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22979         (loadsync_<mode>): Change mode.
22980         (load_quadpti, store_quadpti): New.
22981         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22982         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22983
22984 2014-04-28  Martin Jambor  <mjambor@suse.cz>
22985
22986         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22987         same alias type as the original statement.
22988         (subreplacement_assignment_data): New type.
22989         (handle_unscalarized_data_in_subtree): New type of parameter,
22990         generate new memory accesses with same alias type as the original
22991         statement.
22992         (load_assign_lhs_subreplacements): Likewise.
22993         (sra_modify_constructor_assign): Generate new memory accesses with
22994         same alias type as the original statement.
22995
22996 2014-04-28  Richard Biener  <rguenther@suse.de>
22997
22998         * tree-pass.h (TODO_verify_il): Define.
22999         (TODO_verify_all): Complete properly.
23000         * passes.c (execute_function_todo): Move existing loop-closed
23001         SSA verification under TODO_verify_il.
23002         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
23003         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
23004         Fix tree sharing issue.
23005
23006 2014-04-28  Richard Biener  <rguenther@suse.de>
23007
23008         PR middle-end/60092
23009         * builtins.def (DEF_C11_BUILTIN): Add.
23010         (BUILT_IN_ALIGNED_ALLOC): Likewise.
23011         * coretypes.h (enum function_class): Add function_c11_misc.
23012         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23013         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
23014         (call_may_clobber_ref_p_1): Likewise.
23015         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23016         (mark_all_reaching_defs_necessary_1): Likewise.
23017         (propagate_necessity): Likewise.
23018         (eliminate_unnecessary_stmts): Likewise.
23019         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
23020
23021 2014-04-28  Richard Biener  <rguenther@suse.de>
23022
23023         * tree-vrp.c (vrp_var_may_overflow): Remove.
23024         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
23025         with overflow immediately bump to one before that value and
23026         let iteration figure out overflow status.
23027
23028 2014-04-28  Richard Biener  <rguenther@suse.de>
23029
23030         * configure.ac: Do valgrind header checks unconditionally.
23031         Add --enable-valgrind-annotations.
23032         * system.h: Guard valgrind header inclusion with
23033         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
23034         * alloc-pool.c (pool_alloc, pool_free): Use
23035         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
23036         to guard possibly dead code.
23037         * config.in: Regenerated.
23038         * configure: Likewise.
23039
23040 2014-04-28  Jeff Law  <law@redhat.com>
23041
23042         PR tree-optimization/60902
23043         * tree-ssa-threadedge.c
23044         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
23045         over real defs when invalidating outputs from statements that do not
23046         produce useful outputs for threading.
23047
23048 2014-04-28  Richard Biener  <rguenther@suse.de>
23049
23050         PR tree-optimization/60979
23051         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
23052         SCOPs that end in a block with a successor with abnormal
23053         predecessors.
23054
23055 2014-04-28  Richard Biener  <rguenther@suse.de>
23056
23057         * tree-pass.h (execute_pass_list): Adjust prototype.
23058         * passes.c (pass_manager::execute_early_local_passes): Adjust.
23059         (do_per_function): Change callback signature, push all actual
23060         work to the callbals.
23061         (do_per_function_toporder): Likewise.
23062         (execute_function_dump): Adjust.
23063         (execute_function_todo): Likewise.
23064         (clear_last_verified): Likewise.
23065         (verify_curr_properties): Likewise.
23066         (update_properties_after_pass): Likewise.
23067         (execute_pass_list_1): Split out from ...
23068         (execute_pass_list): ... here.  Adjust.
23069         (execute_ipa_pass_list): Likewise.
23070         * cgraphunit.c (cgraph_add_new_function): Adjust.
23071         (analyze_function): Likewise.
23072         (expand_function): Likewise.
23073         * cgraph.c (release_function_body): Free dominance info
23074         here instead of asserting it was magically freed elsewhere.
23075
23076 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
23077
23078         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
23079         * configure: Regenerate.
23080         * config/sparc/sparc.opt (muser-mode): New option.
23081         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
23082         for LEON3.
23083         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
23084         * doc/invoke.texi (SPARC options): Document -muser-mode.
23085
23086 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
23087
23088         * cselib.c (find_slot_memmode): Delete.
23089         (cselib_hasher): Change compare_type to a struct.
23090         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
23091         constants.
23092         (preserve_constants_and_equivs): Adjust for new compare_type.
23093         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
23094         (wrap_constant): Delete.
23095         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
23096
23097 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
23098
23099         * doc/install.texi (Building with profile feedback): Remove
23100         outdated sentence.
23101
23102 2014-04-26  Tom de Vries  <tom@codesourcery.com>
23103
23104         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
23105         array accesses.
23106
23107 2014-04-25  Cary Coutant  <ccoutant@google.com>
23108
23109         PR debug/60929
23110         * dwarf2out.c (should_move_die_to_comdat): A type definition
23111         can contain a subprogram definition, but don't move it to a
23112         comdat unit.
23113         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
23114         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
23115         from original DIE.
23116         (clone_tree_hash): Rename to...
23117         (clone_tree_partial): ...this; change callers.  Copy
23118         DW_TAG_subprogram DIEs as declarations.
23119         (copy_decls_walk): Don't copy children of a declaration into a
23120         type unit.
23121
23122 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
23123
23124         PR target/60969
23125         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
23126         alternative 12.
23127
23128 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
23129
23130         * config/arm/predicates.md (call_insn_operand): Add long_call check.
23131         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
23132         reg for long_call.
23133         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
23134         restriction.
23135
23136 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23137
23138         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
23139
23140 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23141
23142         PR tree-optimization/60930
23143         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
23144         creating a multiply candidate by folding two constant
23145         multiplicands when the result overflows.
23146
23147 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
23148
23149         PR tree-optimization/60960
23150         * tree-vect-generic.c (expand_vector_operation): Only call
23151         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
23152
23153 2014-04-25  Tom de Vries  <tom@codesourcery.com>
23154
23155         * expr.c (clobber_reg_mode): New function.
23156         * expr.h (clobber_reg): New function.
23157
23158 2014-04-25  Tom de Vries  <tom@codesourcery.com>
23159
23160         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
23161         clobbers.
23162
23163 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
23164             Tom de Vries  <tom@codesourcery.com>
23165
23166         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
23167         handle.
23168         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
23169         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
23170         new argument to find_all_hard_reg_sets call.
23171
23172 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23173
23174         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
23175         Use HOST_WIDE_INT_C for mask literal.
23176         (aarch_rev16_shleft_mask_imm_p): Likewise.
23177
23178 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
23179
23180         PR target/60941
23181         * config/sparc/sparc.md (ashlsi3_extend): Delete.
23182
23183 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
23184
23185         PR preprocessor/56540
23186         * config/i386/i386-c.c (ix86_target_macros): Define
23187         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
23188
23189 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23190
23191         * configure.ac (tga_func): Remove.
23192         (LIB_TLS_SPEC): Remove.
23193         * configure: Regenerate.
23194         * config.in: Regenerate.
23195         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
23196
23197 2014-04-25  Richard Biener  <rguenther@suse.de>
23198
23199         PR ipa/60912
23200         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
23201         call stmt use/clobber sets during stmt walk instead of
23202         walking the possibly incomplete set of caller edges.
23203
23204 2014-04-25  Richard Biener  <rguenther@suse.de>
23205
23206         PR ipa/60911
23207         * passes.c (apply_ipa_transforms): Inline into only caller ...
23208         (execute_one_pass): ... here.  Properly bring in function
23209         bodies for nodes we want to apply IPA transforms to.
23210
23211 2014-04-24  Cong Hou  <congh@google.com>
23212
23213         PR tree-optimization/60896
23214         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
23215         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
23216         (vect_mark_pattern_stmts): Set the def type of all statements in
23217         PATTERN_DEF_SEQ as vect_internal_def.
23218
23219 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23220
23221         * doc/extend.texi (PowerPC Built-in Functions): Document new
23222         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
23223         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
23224
23225         * config/rs6000/predicates.md (const_0_to_3_operand): New
23226         predicate to match 0..3 integer constants.
23227
23228         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
23229         to support adding miscellaneous builtin functions.
23230         (BU_DFP_MISC_2): Likewise.
23231         (BU_P7_MISC_1): Likewise.
23232         (BU_P7_MISC_2): Likewise.
23233         (BU_P8V_MISC_3): Likewise.
23234         (BU_MISC_1): Likewise.
23235         (BU_MISC_2): Likewise.
23236         (DIVWE): Add extended divide builtin functions.
23237         (DIVWEO): Likewise.
23238         (DIVWEU): Likewise.
23239         (DIVWEUO): Likewise.
23240         (DIVDE): Likewise.
23241         (DIVDEO): Likewise.
23242         (DIVDEU): Likewise.
23243         (DIVDEUO): Likewise.
23244         (DXEX): Add decimal floating-point builtin functions.
23245         (DXEXQ): Likewise.
23246         (DDEDPD): Likewise.
23247         (DDEDPDQ): Likewise.
23248         (DENBCD): Likewise.
23249         (DENBCDQ): Likewise.
23250         (DIEX): Likewise.
23251         (DIEXQ): Likewise.
23252         (DSCLI): Likewise.
23253         (DSCLIQ): Likewise.
23254         (DSCRI): Likewise.
23255         (DSCRIQ): Likewise.
23256         (CDTBCD): Add new BCD builtin functions.
23257         (CBCDTD): Likewise.
23258         (ADDG6S): Likewise.
23259         (BCDADD): Likewise.
23260         (BCDADD_LT): Likewise.
23261         (BCDADD_EQ): Likewise.
23262         (BCDADD_GT): Likewise.
23263         (BCDADD_OV): Likewise.
23264         (BCDSUB): Likewise.
23265         (BCDSUB_LT): Likewise.
23266         (BCDSUB_EQ): Likewise.
23267         (BCDSUB_GT): Likewise.
23268         (BCDSUB_OV): Likewise.
23269         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
23270         (UNPACK_TD): Likewise.
23271         (PACK_TF): Likewise.
23272         (UNPACK_TF): Likewise.
23273         (UNPACK_TF_0): Likewise.
23274         (UNPACK_TF_1): Likewise.
23275         (PACK_V1TI): Likewise.
23276         (UNPACK_V1TI): Likewise.
23277
23278         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23279         support for decimal floating point builtin functions.
23280         (rs6000_expand_ternop_builtin): Add checks for the new builtin
23281         functions that take constant arguments.
23282         (rs6000_invalid_builtin): Add decimal floating point builtin support.
23283         (rs6000_init_builtins): Setup long double, _Decimal64, and
23284         _Decimal128 types for new builtin functions.
23285         (builtin_function_type): Set the unsigned flags appropriately for
23286         the new builtin functions.
23287         (rs6000_opt_masks): Add support for decimal floating point builtin
23288         functions.
23289
23290         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
23291         floating point builtin functions.
23292         (RS6000_BTM_COMMON): Likewise.
23293         (RS6000_BTI_long_double): Likewise.
23294         (RS6000_BTI_dfloat64): Likewise.
23295         (RS6000_BTI_dfloat128): Likewise.
23296         (long_double_type_internal_node): Likewise.
23297         (dfloat64_type_internal_node): Likewise.
23298         (dfloat128_type_internal_node): Likewise.
23299
23300         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
23301         2.07 bcd arithmetic instructions.
23302         (UNSPEC_BCDSUB): Likewise.
23303         (UNSPEC_BCD_OVERFLOW): Likewise.
23304         (UNSPEC_BCD_ADD_SUB): Likewise.
23305         (bcd_add_sub): Likewise.
23306         (BCD_TEST): Likewise.
23307         (bcd<bcd_add_sub>): Likewise.
23308         (bcd<bcd_add_sub>_test): Likewise.
23309         (bcd<bcd_add_sub>_test2): Likewise.
23310         (bcd<bcd_add_sub>_<code>): Likewise.
23311         (peephole2 for combined bcd ops): Likewise.
23312
23313         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
23314         decimal floating point builtin functions.
23315         (UNSPEC_DENBCD): Likewise.
23316         (UNSPEC_DXEX): Likewise.
23317         (UNSPEC_DIEX): Likewise.
23318         (UNSPEC_DSCLI): Likewise.
23319         (UNSPEC_DSCRI): Likewise.
23320         (D64_D128): Likewise.
23321         (dfp_suffix): Likewise.
23322         (dfp_ddedpd_<mode>): Likewise.
23323         (dfp_denbcd_<mode>): Likewise.
23324         (dfp_dxex_<mode>): Likewise.
23325         (dfp_diex_<mode>): Likewise.
23326         (dfp_dscli_<mode>): Likewise.
23327         (dfp_dscri_<mode>): Likewise.
23328
23329         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
23330         builtin functions.
23331         (UNSPEC_CDTBCD): Likewise.
23332         (UNSPEC_CBCDTD): Likewise.
23333         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
23334         (UNSPEC_DIVEO): Likewise.
23335         (UNSPEC_DIVEU): Likewise.
23336         (UNSPEC_DIVEUO): Likewise.
23337         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
23338         pack/unpack 128-bit types.
23339         (UNSPEC_PACK_128BIT): Likewise.
23340         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
23341         (udiv<mode>3): Use idiv_ldiv mode attribute.
23342         (div<mode>3): Likewise.
23343         (addg6s): Add new BCD builtin functions.
23344         (cdtbcd): Likewise.
23345         (cbcdtd): Likewise.
23346         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
23347         (div_extend): Likewise.
23348         (div<div_extend>_<mode>"): Likewise.
23349         (FP128_64): Add support for new builtin functions to pack/unpack
23350         128-bit types.
23351         (unpack<mode>): Likewise.
23352         (unpacktf_0): Likewise.
23353         (unpacktf_1): Likewise.
23354         (unpack<mode>_dm): Likewise.
23355         (unpack<mode>_nodm): Likewise.
23356         (pack<mode>): Likewise.
23357         (unpackv1ti): Likewise.
23358         (packv1ti): Likewise.
23359
23360 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
23361
23362         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
23363         is disabled.
23364
23365 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
23366
23367         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
23368         * gimplify.c (omp_is_private): Change last argument's type to int.
23369         Only diagnose lastprivate if the simd argument is 1, only diagnose
23370         linear if the simd argument is 2.
23371         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
23372         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
23373         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
23374         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
23375         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
23376         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23377         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
23378         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23379         * tree-nested.c (convert_nonlocal_omp_clauses,
23380         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
23381
23382 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
23383
23384         PR target/60822
23385         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
23386         operand 1.
23387
23388 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
23389
23390         * flag-types.h (enum ivar_visibility): Add.
23391
23392 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
23393
23394         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
23395         function * argument.
23396
23397 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
23398
23399         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
23400
23401 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
23402             Tom de Vries  <tom@codesourcery.com>
23403
23404         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
23405         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
23406         reg-note.
23407         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
23408         * emit-rtl.c (try_split): Same.
23409
23410 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
23411             Tom de Vries  <tom@codesourcery.com>
23412
23413         * common.opt (fuse-caller-save): New option.
23414
23415 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
23416
23417         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
23418         elements for big-endian.
23419
23420 2014-04-24  Richard Biener  <rguenther@suse.de>
23421
23422         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
23423         during TER and instead use the sepops interface for expanding
23424         non-GIMPLE_SINGLE_RHS.
23425
23426 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23427
23428         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
23429         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
23430
23431 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23432
23433         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
23434         assembler 64-bit option.
23435         * configure: Regenerate.
23436
23437 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23438
23439         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
23440         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
23441         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
23442         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
23443         (TARGET_CRYPTO): Take TARGET_SIMD into account.
23444
23445 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23446
23447         * config/aarch64/aarch64-builtins.c
23448         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
23449         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
23450         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
23451         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
23452         builtins.
23453         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
23454         (Vrevsuff): New mode attribute.
23455
23456 2014-04-24  Terry Guo  <terry.guo@arm.com>
23457
23458         * config/arm/arm.h (machine_function): Define variable
23459         after_arm_reorg here.
23460         * config/arm/arm.c (after_arm_reorg): Remove the definition.
23461         (arm_split_constant): Update the way to access variable
23462         after_arm_reorg.
23463         (arm_reorg): Ditto.
23464         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
23465
23466 2014-04-23  Tom de Vries  <tom@codesourcery.com>
23467
23468         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
23469
23470 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
23471
23472         * is-a.h: Update comments to reflect the following changes to the
23473         "pointerness" of the API, making the template parameter match the
23474         return type, allowing use of is-a.h with typedefs of pointers.
23475         (is_a_helper::cast): Return a T rather then a pointer to a T, so
23476         that the return type matches the parameter to the is_a_helper.
23477         (as_a): Likewise.
23478         (dyn_cast): Likewise.
23479
23480         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23481         pointer from the is-a.h API.
23482
23483         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23484         (is_a_helper <cgraph_node *>::test): ...this, matching change to
23485         is-a.h API.
23486         (is_a_helper <varpool_node>::test): Likewise, convert to...
23487         (is_a_helper <varpool_node *>::test): ...this.
23488
23489         (varpool_first_variable): Update for removal of implicit pointer
23490         from the is-a.h API.
23491         (varpool_next_variable): Likewise.
23492         (varpool_first_static_initializer): Likewise.
23493         (varpool_next_static_initializer): Likewise.
23494         (varpool_first_defined_variable): Likewise.
23495         (varpool_next_defined_variable): Likewise.
23496         (cgraph_first_defined_function): Likewise.
23497         (cgraph_next_defined_function): Likewise.
23498         (cgraph_first_function): Likewise.
23499         (cgraph_next_function): Likewise.
23500         (cgraph_first_function_with_gimple_body): Likewise.
23501         (cgraph_next_function_with_gimple_body): Likewise.
23502         (cgraph_alias_target): Likewise.
23503         (varpool_alias_target): Likewise.
23504         (cgraph_function_or_thunk_node): Likewise.
23505         (varpool_variable_node): Likewise.
23506         (symtab_real_symbol_p): Likewise.
23507         * cgraphunit.c (referred_to_p): Likewise.
23508         (analyze_functions): Likewise.
23509         (handle_alias_pairs): Likewise.
23510         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23511         * gimple-ssa.h (gimple_vuse_op): Likewise.
23512         (gimple_vdef_op): Likewise.
23513         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23514         * gimple.c (gimple_build_asm_1): Likewise.
23515         (gimple_build_try): Likewise.
23516         (gimple_build_resx): Likewise.
23517         (gimple_build_eh_dispatch): Likewise.
23518         (gimple_build_omp_for): Likewise.
23519         (gimple_omp_for_set_clauses): Likewise.
23520
23521         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23522         (is_a_helper <gimple_statement_asm *>::test): ...this.
23523         (is_a_helper <gimple_statement_bind>::test): Convert to...
23524         (is_a_helper <gimple_statement_bind *>::test): ...this.
23525         (is_a_helper <gimple_statement_call>::test): Convert to...
23526         (is_a_helper <gimple_statement_call *>::test): ...this.
23527         (is_a_helper <gimple_statement_catch>::test): Convert to...
23528         (is_a_helper <gimple_statement_catch *>::test): ...this.
23529         (is_a_helper <gimple_statement_resx>::test): Convert to...
23530         (is_a_helper <gimple_statement_resx *>::test): ...this.
23531         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23532         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23533         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23534         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23535         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23536         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23537         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23538         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23539         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23540         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23541         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23542         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23543         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23544         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23545         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23546         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23547         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23548         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23549         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23550         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23551         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23552         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23553         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23554         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23555         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23556         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23557         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23558         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23559         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23560         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23561         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23562         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23563         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23564         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23565         (is_a_helper <gimple_statement_phi>::test): Convert to...
23566         (is_a_helper <gimple_statement_phi *>::test): ...this.
23567         (is_a_helper <gimple_statement_transaction>::test): Convert to...
23568         (is_a_helper <gimple_statement_transaction *>::test): ...this.
23569         (is_a_helper <gimple_statement_try>::test): Convert to...
23570         (is_a_helper <gimple_statement_try *>::test): ...this.
23571         (is_a_helper <gimple_statement_wce>::test): Convert to...
23572         (is_a_helper <gimple_statement_wce *>::test): ...this.
23573         (is_a_helper <const gimple_statement_asm>::test): Convert to...
23574         (is_a_helper <const gimple_statement_asm *>::test): ...this.
23575         (is_a_helper <const gimple_statement_bind>::test): Convert to...
23576         (is_a_helper <const gimple_statement_bind *>::test): ...this.
23577         (is_a_helper <const gimple_statement_call>::test): Convert to...
23578         (is_a_helper <const gimple_statement_call *>::test): ...this.
23579         (is_a_helper <const gimple_statement_catch>::test): Convert to...
23580         (is_a_helper <const gimple_statement_catch *>::test): ...this.
23581         (is_a_helper <const gimple_statement_resx>::test): Convert to...
23582         (is_a_helper <const gimple_statement_resx *>::test): ...this.
23583         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23584         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23585         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23586         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23587         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23588         Convert to...
23589         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23590         ...this.
23591         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23592         Convert to...
23593         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23594         ...this.
23595         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23596         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23597         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23598         to...
23599         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23600         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23601         to...
23602         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23603         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23604         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23605         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23606         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23607         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23608         to...
23609         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23610         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23611         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23612         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23613         to...
23614         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23615         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23616         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23617         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23618         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23619         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23620         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23621         (is_a_helper <const gimple_statement_phi>::test): Convert to...
23622         (is_a_helper <const gimple_statement_phi *>::test): ...this.
23623         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23624         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23625         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23626         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23627         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23628         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23629         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23630         to...
23631         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23632         ...this.
23633         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23634         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23635
23636         (gimple_use_ops): Update for removal of implicit pointer from the
23637         is-a.h API.
23638         (gimple_set_use_ops): Likewise.
23639         (gimple_vuse): Likewise.
23640         (gimple_vdef): Likewise.
23641         (gimple_vuse_ptr): Likewise.
23642         (gimple_vdef_ptr): Likewise.
23643         (gimple_set_vuse): Likewise.
23644         (gimple_set_vdef): Likewise.
23645         (gimple_omp_return_set_lhs): Likewise.
23646         (gimple_omp_return_lhs): Likewise.
23647         (gimple_omp_return_lhs_ptr): Likewise.
23648         (gimple_call_fntype): Likewise.
23649         (gimple_call_set_fntype): Likewise.
23650         (gimple_call_set_internal_fn): Likewise.
23651         (gimple_call_use_set): Likewise.
23652         (gimple_call_clobber_set): Likewise.
23653         (gimple_bind_vars): Likewise.
23654         (gimple_bind_set_vars): Likewise.
23655         (gimple_bind_body_ptr): Likewise.
23656         (gimple_bind_set_body): Likewise.
23657         (gimple_bind_add_stmt): Likewise.
23658         (gimple_bind_block): Likewise.
23659         (gimple_bind_set_block): Likewise.
23660         (gimple_asm_ninputs): Likewise.
23661         (gimple_asm_noutputs): Likewise.
23662         (gimple_asm_nclobbers): Likewise.
23663         (gimple_asm_nlabels): Likewise.
23664         (gimple_asm_input_op): Likewise.
23665         (gimple_asm_input_op_ptr): Likewise.
23666         (gimple_asm_output_op): Likewise.
23667         (gimple_asm_output_op_ptr): Likewise.
23668         (gimple_asm_set_output_op): Likewise.
23669         (gimple_asm_clobber_op): Likewise.
23670         (gimple_asm_set_clobber_op): Likewise.
23671         (gimple_asm_label_op): Likewise.
23672         (gimple_asm_set_label_op): Likewise.
23673         (gimple_asm_string): Likewise.
23674         (gimple_catch_types): Likewise.
23675         (gimple_catch_types_ptr): Likewise.
23676         (gimple_catch_handler_ptr): Likewise.
23677         (gimple_catch_set_types): Likewise.
23678         (gimple_catch_set_handler): Likewise.
23679         (gimple_eh_filter_types): Likewise.
23680         (gimple_eh_filter_types_ptr): Likewise.
23681         (gimple_eh_filter_failure_ptr): Likewise.
23682         (gimple_eh_filter_set_types): Likewise.
23683         (gimple_eh_filter_set_failure): Likewise.
23684         (gimple_eh_must_not_throw_fndecl): Likewise.
23685         (gimple_eh_must_not_throw_set_fndecl): Likewise.
23686         (gimple_eh_else_n_body_ptr): Likewise.
23687         (gimple_eh_else_e_body_ptr): Likewise.
23688         (gimple_eh_else_set_n_body): Likewise.
23689         (gimple_eh_else_set_e_body): Likewise.
23690         (gimple_try_eval_ptr): Likewise.
23691         (gimple_try_cleanup_ptr): Likewise.
23692         (gimple_try_set_eval): Likewise.
23693         (gimple_try_set_cleanup): Likewise.
23694         (gimple_wce_cleanup_ptr): Likewise.
23695         (gimple_wce_set_cleanup): Likewise.
23696         (gimple_phi_capacity): Likewise.
23697         (gimple_phi_num_args): Likewise.
23698         (gimple_phi_result): Likewise.
23699         (gimple_phi_result_ptr): Likewise.
23700         (gimple_phi_set_result): Likewise.
23701         (gimple_phi_arg): Likewise.
23702         (gimple_phi_set_arg): Likewise.
23703         (gimple_resx_region): Likewise.
23704         (gimple_resx_set_region): Likewise.
23705         (gimple_eh_dispatch_region): Likewise.
23706         (gimple_eh_dispatch_set_region): Likewise.
23707         (gimple_omp_critical_name): Likewise.
23708         (gimple_omp_critical_name_ptr): Likewise.
23709         (gimple_omp_critical_set_name): Likewise.
23710         (gimple_omp_for_clauses): Likewise.
23711         (gimple_omp_for_clauses_ptr): Likewise.
23712         (gimple_omp_for_set_clauses): Likewise.
23713         (gimple_omp_for_collapse): Likewise.
23714         (gimple_omp_for_index): Likewise.
23715         (gimple_omp_for_index_ptr): Likewise.
23716         (gimple_omp_for_set_index): Likewise.
23717         (gimple_omp_for_initial): Likewise.
23718         (gimple_omp_for_initial_ptr): Likewise.
23719         (gimple_omp_for_set_initial): Likewise.
23720         (gimple_omp_for_final): Likewise.
23721         (gimple_omp_for_final_ptr): Likewise.
23722         (gimple_omp_for_set_final): Likewise.
23723         (gimple_omp_for_incr): Likewise.
23724         (gimple_omp_for_incr_ptr): Likewise.
23725         (gimple_omp_for_set_incr): Likewise.
23726         (gimple_omp_for_pre_body_ptr): Likewise.
23727         (gimple_omp_for_set_pre_body): Likewise.
23728         (gimple_omp_parallel_clauses): Likewise.
23729         (gimple_omp_parallel_clauses_ptr): Likewise.
23730         (gimple_omp_parallel_set_clauses): Likewise.
23731         (gimple_omp_parallel_child_fn): Likewise.
23732         (gimple_omp_parallel_child_fn_ptr): Likewise.
23733         (gimple_omp_parallel_set_child_fn): Likewise.
23734         (gimple_omp_parallel_data_arg): Likewise.
23735         (gimple_omp_parallel_data_arg_ptr): Likewise.
23736         (gimple_omp_parallel_set_data_arg): Likewise.
23737         (gimple_omp_task_clauses): Likewise.
23738         (gimple_omp_task_clauses_ptr): Likewise.
23739         (gimple_omp_task_set_clauses): Likewise.
23740         (gimple_omp_task_child_fn): Likewise.
23741         (gimple_omp_task_child_fn_ptr): Likewise.
23742         (gimple_omp_task_set_child_fn): Likewise.
23743         (gimple_omp_task_data_arg): Likewise.
23744         (gimple_omp_task_data_arg_ptr): Likewise.
23745         (gimple_omp_task_set_data_arg): Likewise.
23746         (gimple_omp_taskreg_clauses): Likewise.
23747         (gimple_omp_taskreg_clauses_ptr): Likewise.
23748         (gimple_omp_taskreg_set_clauses): Likewise.
23749         (gimple_omp_taskreg_child_fn): Likewise.
23750         (gimple_omp_taskreg_child_fn_ptr): Likewise.
23751         (gimple_omp_taskreg_set_child_fn): Likewise.
23752         (gimple_omp_taskreg_data_arg): Likewise.
23753         (gimple_omp_taskreg_data_arg_ptr): Likewise.
23754         (gimple_omp_taskreg_set_data_arg): Likewise.
23755         (gimple_omp_task_copy_fn): Likewise.
23756         (gimple_omp_task_copy_fn_ptr): Likewise.
23757         (gimple_omp_task_set_copy_fn): Likewise.
23758         (gimple_omp_task_arg_size): Likewise.
23759         (gimple_omp_task_arg_size_ptr): Likewise.
23760         (gimple_omp_task_set_arg_size): Likewise.
23761         (gimple_omp_task_arg_align): Likewise.
23762         (gimple_omp_task_arg_align_ptr): Likewise.
23763         (gimple_omp_task_set_arg_align): Likewise.
23764         (gimple_omp_single_clauses): Likewise.
23765         (gimple_omp_single_clauses_ptr): Likewise.
23766         (gimple_omp_single_set_clauses): Likewise.
23767         (gimple_omp_target_clauses): Likewise.
23768         (gimple_omp_target_clauses_ptr): Likewise.
23769         (gimple_omp_target_set_clauses): Likewise.
23770         (gimple_omp_target_child_fn): Likewise.
23771         (gimple_omp_target_child_fn_ptr): Likewise.
23772         (gimple_omp_target_set_child_fn): Likewise.
23773         (gimple_omp_target_data_arg): Likewise.
23774         (gimple_omp_target_data_arg_ptr): Likewise.
23775         (gimple_omp_target_set_data_arg): Likewise.
23776         (gimple_omp_teams_clauses): Likewise.
23777         (gimple_omp_teams_clauses_ptr): Likewise.
23778         (gimple_omp_teams_set_clauses): Likewise.
23779         (gimple_omp_sections_clauses): Likewise.
23780         (gimple_omp_sections_clauses_ptr): Likewise.
23781         (gimple_omp_sections_set_clauses): Likewise.
23782         (gimple_omp_sections_control): Likewise.
23783         (gimple_omp_sections_control_ptr): Likewise.
23784         (gimple_omp_sections_set_control): Likewise.
23785         (gimple_omp_for_set_cond): Likewise.
23786         (gimple_omp_for_cond): Likewise.
23787         (gimple_omp_atomic_store_set_val): Likewise.
23788         (gimple_omp_atomic_store_val): Likewise.
23789         (gimple_omp_atomic_store_val_ptr): Likewise.
23790         (gimple_omp_atomic_load_set_lhs): Likewise.
23791         (gimple_omp_atomic_load_lhs): Likewise.
23792         (gimple_omp_atomic_load_lhs_ptr): Likewise.
23793         (gimple_omp_atomic_load_set_rhs): Likewise.
23794         (gimple_omp_atomic_load_rhs): Likewise.
23795         (gimple_omp_atomic_load_rhs_ptr): Likewise.
23796         (gimple_omp_continue_control_def): Likewise.
23797         (gimple_omp_continue_control_def_ptr): Likewise.
23798         (gimple_omp_continue_set_control_def): Likewise.
23799         (gimple_omp_continue_control_use): Likewise.
23800         (gimple_omp_continue_control_use_ptr): Likewise.
23801         (gimple_omp_continue_set_control_use): Likewise.
23802         (gimple_transaction_body_ptr): Likewise.
23803         (gimple_transaction_label): Likewise.
23804         (gimple_transaction_label_ptr): Likewise.
23805         (gimple_transaction_set_body): Likewise.
23806         (gimple_transaction_set_label): Likewise.
23807
23808         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23809         * ipa-inline-analysis.c (inline_write_summary): Likewise.
23810         * ipa-ref.c (ipa_record_reference): Likewise.
23811         * ipa-reference.c (analyze_function): Likewise.
23812         (ipa_reference_write_optimization_summary): Likewise.
23813         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23814         (address_taken_from_non_vtable_p): Likewise.
23815         (comdat_can_be_unshared_p_1): Likewise.
23816         * lto-cgraph.c (lto_output_ref): Likewise.
23817         (add_references): Likewise.
23818         (compute_ltrans_boundary): Likewise.
23819         (output_symtab): Likewise.
23820         (input_ref): Likewise.
23821         (input_cgraph_1): Likewise.
23822         (output_cgraph_opt_summary): Likewise.
23823         * lto-streamer-out.c (lto_output): Likewise.
23824         (output_symbol_p): Likewise.
23825         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23826         (lsei_start_function_in_partition): Likewise.
23827         (lsei_next_variable_in_partition): Likewise.
23828         (lsei_start_variable_in_partition): Likewise.
23829         * symtab.c (insert_to_assembler_name_hash): Likewise.
23830         (unlink_from_assembler_name_hash): Likewise.
23831         (symtab_unregister_node): Likewise.
23832         (symtab_remove_node): Likewise.
23833         (dump_symtab_node): Likewise.
23834         (verify_symtab_base): Likewise.
23835         (verify_symtab_node): Likewise.
23836         (symtab_make_decl_local): Likewise.
23837         (symtab_alias_ultimate_target): Likewise.
23838         (symtab_resolve_alias): Likewise.
23839         (symtab_get_symbol_partitioning_class): Likewise.
23840         * tree-phinodes.c (allocate_phi_node): Likewise.
23841         (reserve_phi_args_for_new_edge): Likewise.
23842         (remove_phi_args): Likewise.
23843         * varpool.c (varpool_node_for_asm): Likewise.
23844         (varpool_remove_unreferenced_decls): Likewise.
23845
23846 2014-04-23  Jeff Law  <law@redhat.com>
23847
23848         PR tree-optimization/60902
23849         * tree-ssa-threadedge.c
23850         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23851         invalidate outputs from statements that do not produce useful
23852         outputs for threading.
23853
23854 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
23855
23856         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23857         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23858         machine descriptions for Stack Smashing Protector.
23859
23860 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
23861
23862         * aarch64.md (<optab>_rol<mode>3): New pattern.
23863         (<optab>_rolsi3_uxtw): Likewise.
23864         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23865
23866 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
23867
23868         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23869         (arm_cortex_a12_tune): Likewise.
23870
23871 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23872
23873         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23874
23875 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23876
23877         * config/arm/arm.md (arm_rev16si2): New pattern.
23878         (arm_rev16si2_alt): Likewise.
23879         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23880
23881 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23882
23883         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23884         (rev16<mode>2_alt): Likewise.
23885         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23886         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23887         (aarch_rev16_shleft_mask_imm_p): Likewise.
23888         (aarch_rev16_p_1): Likewise.
23889         (aarch_rev16_p): Likewise.
23890         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23891         (aarch_rev16_shright_mask_imm_p): Likewise.
23892         (aarch_rev16_shleft_mask_imm_p): Likewise.
23893
23894 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23895
23896         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23897         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23898         rev cost.
23899         (cortex_a53_extra_costs): Likewise.
23900         (cortex_a57_extra_costs): Likewise.
23901         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23902         (cortexa7_extra_costs): Likewise.
23903         (cortexa8_extra_costs): Likewise.
23904         (cortexa12_extra_costs): Likewise.
23905         (cortexa15_extra_costs): Likewise.
23906         (v7m_extra_costs): Likewise.
23907         (arm_new_rtx_costs): Handle BSWAP.
23908
23909 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23910
23911         * config/arm/arm.c (cortexa8_extra_costs): New table.
23912         (arm_cortex_a8_tune): New tuning struct.
23913         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23914
23915 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23916
23917         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23918
23919 2014-04-23  Richard Biener  <rguenther@suse.de>
23920
23921         * Makefile.in (OBJS): Remove loop-unswitch.o.
23922         * tree-pass.h (make_pass_rtl_unswitch): Remove.
23923         * passes.def (pass_rtl_unswitch): Likewise.
23924         * loop-init.c (gate_rtl_unswitch): Likewise.
23925         (rtl_unswitch): Likewise.
23926         (pass_data_rtl_unswitch): Likewise.
23927         (pass_rtl_unswitch): Likewise.
23928         (make_pass_rtl_unswitch): Likewise.
23929         * rtl.h (reversed_condition): Likewise.
23930         (compare_and_jump_seq): Likewise.
23931         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23932         and make static.
23933         * loop-unroll.c (compare_and_jump_seq): Likewise.
23934
23935 2014-04-23  Richard Biener  <rguenther@suse.de>
23936
23937         PR tree-optimization/60903
23938         * tree-ssa-loop-im.c (analyze_memory_references): Remove
23939         commented code block.
23940         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23941         loop flags to newly created BBs and edges.
23942
23943 2014-04-23  Nick Clifton  <nickc@redhat.com>
23944
23945         * config/msp430/msp430.c (msp430_handle_option): Move function
23946         to msp430-common.c
23947         (msp430_option_override): Simplify mcu and mcpu option handling.
23948         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
23949         support for -mhwmult command line option.
23950         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
23951         -mhwmult command line option.
23952         (msp430_hwmult_enabled): Delete.
23953         (msp43o_output_labelref): Add support for -mhwmult command line option.
23954         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23955         (umulsidi3): Likewise.
23956         * config/msp430/msp430.opt (mmcu): Add Report attribute.
23957         (mcpu, mlarge, msmall): Likewise.
23958         (mhwmult): New option.
23959         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23960         prototype.
23961         (msp430_is_f5_mcu): Remove prototype.
23962         (msp430_use_f5_series_hwmult): Add prototype.
23963         * config/msp430/msp430-opts.h: New file.
23964         * common/config/msp430: New directory.
23965         * common/config/msp430/msp430-common.c: New file.
23966         * config.gcc (msp430): Remove target_has_targetm_common.
23967         * doc/invoke.texi: Document -mhwmult command line option.
23968
23969 2014-04-23  Nick Clifton  <nickc@redhat.com>
23970
23971         * config/i386/cygwin.h (ENDFILE_SPEC): Include
23972         default-manifest.o if it can be found in the search path.
23973         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23974
23975 2014-04-23  Terry Guo  <terry.guo@arm.com>
23976
23977         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23978
23979 2014-04-23  Richard Biener  <rguenther@suse.de>
23980
23981         PR middle-end/60895
23982         * tree-inline.c (declare_return_variable): Use mark_addressable.
23983
23984 2014-04-23  Richard Biener  <rguenther@suse.de>
23985
23986         PR middle-end/60891
23987         * loop-init.c (loop_optimizer_init): Make sure to apply
23988         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23989
23990 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23991
23992         PR sanitizer/60275
23993         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23994         New options.
23995         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23996         if flag_sanitize_undefined_trap_on_error.
23997         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23998         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23999         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
24000         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
24001         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
24002         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
24003         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
24004         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
24005         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
24006         * ubsan.c (ubsan_instrument_unreachable): Return
24007         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
24008         (ubsan_expand_null_ifn): Emit __builtin_trap ()
24009         if flag_sanitize_undefined_trap_on_error and
24010         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
24011         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
24012         instrument_bool_enum_load): Emit __builtin_trap () if
24013         flag_sanitize_undefined_trap_on_error and
24014         __builtin_handle_*_abort () if !flag_sanitize_recover.
24015         * doc/invoke.texi (-fsanitize-recover,
24016         -fsanitize-undefined-trap-on-error): Document.
24017
24018 2014-04-22  Christian Bruel  <christian.bruel@st.com>
24019
24020         * config/sh/sh.md (mov<mode>): Replace movQIHI.
24021          Force immediates to SImode.
24022
24023 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
24024
24025         * config/nios2/nios2.md (UNSPEC_ROUND): New.
24026         (lroundsfsi2): New.
24027         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
24028         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
24029         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
24030         (nios2_fpu_insn): Add entry for round.
24031         (N2FPU_NO_ERRNO_P): Define.
24032         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
24033         flag_errno_math.
24034         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
24035
24036 2014-04-22  Richard Henderson  <rth@redhat.com>
24037
24038         * config/aarch64/aarch64 (addti3, subti3): New expanders.
24039         (add<GPI>3_compare0): Remove leading * from name.
24040         (add<GPI>3_carryin): Likewise.
24041         (sub<GPI>3_compare0): Likewise.
24042         (sub<GPI>3_carryin): Likewise.
24043         (<su_optab>mulditi3): New expander.
24044         (multi3): New expander.
24045         (madd<GPI>): Remove leading * from name.
24046
24047 2014-04-22  Martin Jambor  <mjambor@suse.cz>
24048
24049         * cgraphclones.c (cgraph_function_versioning): Copy
24050         ipa_transforms_to_apply instead of asserting it is empty.
24051
24052 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
24053
24054         PR target/60868
24055         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
24056         on count_exp to get mode.
24057
24058 2014-04-22  Andrew Pinski  <apinski@cavium.com>
24059
24060         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24061         Handle TLS for ILP32.
24062         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
24063         (tlsie_small_<mode>): this and handle PTR.
24064         (tlsie_small_sidi): New pattern.
24065         (tlsle_small): Change to an expand to handle ILP32.
24066         (tlsle_small_<mode>): New pattern.
24067         (tlsdesc_small): Rename to ...
24068         (tlsdesc_small_<mode>): this and handle PTR.
24069
24070 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24071
24072         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
24073
24074 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24075
24076         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24077         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
24078         (aarch64_types_signed_poly_qualifiers): Likewise.
24079         (aarch64_types_unsigned_signed_qualifiers): Likewise.
24080         (aarch64_types_poly_signed_qualifiers): Likewise.
24081         (TYPES_REINTERP_SS): Type macro added.
24082         (TYPES_REINTERP_SU): Likewise.
24083         (TYPES_REINTERP_SP): Likewise.
24084         (TYPES_REINTERP_US): Likewise.
24085         (TYPES_REINTERP_PS): Likewise.
24086         (aarch64_fold_builtin): New expression folding added.
24087         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
24088         Declarations removed.
24089         (REINTERP_SS): Declarations added.
24090         (REINTERP_US): Likewise.
24091         (REINTERP_PS): Likewise.
24092         (REINTERP_SU): Likewise.
24093         (REINTERP_SP): Likewise.
24094         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
24095         (vreinterpretq_p8_f64): Likewise.
24096         (vreinterpret_p16_f64): Likewise.
24097         (vreinterpretq_p16_f64): Likewise.
24098         (vreinterpret_f32_f64): Likewise.
24099         (vreinterpretq_f32_f64): Likewise.
24100         (vreinterpret_f64_f32): Likewise.
24101         (vreinterpret_f64_p8): Likewise.
24102         (vreinterpret_f64_p16): Likewise.
24103         (vreinterpret_f64_s8): Likewise.
24104         (vreinterpret_f64_s16): Likewise.
24105         (vreinterpret_f64_s32): Likewise.
24106         (vreinterpret_f64_s64): Likewise.
24107         (vreinterpret_f64_u8): Likewise.
24108         (vreinterpret_f64_u16): Likewise.
24109         (vreinterpret_f64_u32): Likewise.
24110         (vreinterpret_f64_u64): Likewise.
24111         (vreinterpretq_f64_f32): Likewise.
24112         (vreinterpretq_f64_p8): Likewise.
24113         (vreinterpretq_f64_p16): Likewise.
24114         (vreinterpretq_f64_s8): Likewise.
24115         (vreinterpretq_f64_s16): Likewise.
24116         (vreinterpretq_f64_s32): Likewise.
24117         (vreinterpretq_f64_s64): Likewise.
24118         (vreinterpretq_f64_u8): Likewise.
24119         (vreinterpretq_f64_u16): Likewise.
24120         (vreinterpretq_f64_u32): Likewise.
24121         (vreinterpretq_f64_u64): Likewise.
24122         (vreinterpret_s64_f64): Likewise.
24123         (vreinterpretq_s64_f64): Likewise.
24124         (vreinterpret_u64_f64): Likewise.
24125         (vreinterpretq_u64_f64): Likewise.
24126         (vreinterpret_s8_f64): Likewise.
24127         (vreinterpretq_s8_f64): Likewise.
24128         (vreinterpret_s16_f64): Likewise.
24129         (vreinterpretq_s16_f64): Likewise.
24130         (vreinterpret_s32_f64): Likewise.
24131         (vreinterpretq_s32_f64): Likewise.
24132         (vreinterpret_u8_f64): Likewise.
24133         (vreinterpretq_u8_f64): Likewise.
24134         (vreinterpret_u16_f64): Likewise.
24135         (vreinterpretq_u16_f64): Likewise.
24136         (vreinterpret_u32_f64): Likewise.
24137         (vreinterpretq_u32_f64): Likewise.
24138
24139 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24140
24141         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24142         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
24143         (vreinterpret_p8_s8): Likewise.
24144         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
24145         (vreinterpret_p8_s16): Likewise.
24146         (vreinterpret_p8_s32): Likewise.
24147         (vreinterpret_p8_s64): Likewise.
24148         (vreinterpret_p8_f32): Likewise.
24149         (vreinterpret_p8_u8): Likewise.
24150         (vreinterpret_p8_u16): Likewise.
24151         (vreinterpret_p8_u32): Likewise.
24152         (vreinterpret_p8_u64): Likewise.
24153         (vreinterpret_p8_p16): Likewise.
24154         (vreinterpretq_p8_s8): Likewise.
24155         (vreinterpretq_p8_s16): Likewise.
24156         (vreinterpretq_p8_s32): Likewise.
24157         (vreinterpretq_p8_s64): Likewise.
24158         (vreinterpretq_p8_f32): Likewise.
24159         (vreinterpretq_p8_u8): Likewise.
24160         (vreinterpretq_p8_u16): Likewise.
24161         (vreinterpretq_p8_u32): Likewise.
24162         (vreinterpretq_p8_u64): Likewise.
24163         (vreinterpretq_p8_p16): Likewise.
24164         (vreinterpret_p16_s8): Likewise.
24165         (vreinterpret_p16_s16): Likewise.
24166         (vreinterpret_p16_s32): Likewise.
24167         (vreinterpret_p16_s64): Likewise.
24168         (vreinterpret_p16_f32): Likewise.
24169         (vreinterpret_p16_u8): Likewise.
24170         (vreinterpret_p16_u16): Likewise.
24171         (vreinterpret_p16_u32): Likewise.
24172         (vreinterpret_p16_u64): Likewise.
24173         (vreinterpret_p16_p8): Likewise.
24174         (vreinterpretq_p16_s8): Likewise.
24175         (vreinterpretq_p16_s16): Likewise.
24176         (vreinterpretq_p16_s32): Likewise.
24177         (vreinterpretq_p16_s64): Likewise.
24178         (vreinterpretq_p16_f32): Likewise.
24179         (vreinterpretq_p16_u8): Likewise.
24180         (vreinterpretq_p16_u16): Likewise.
24181         (vreinterpretq_p16_u32): Likewise.
24182         (vreinterpretq_p16_u64): Likewise.
24183         (vreinterpretq_p16_p8): Likewise.
24184         (vreinterpret_f32_s8): Likewise.
24185         (vreinterpret_f32_s16): Likewise.
24186         (vreinterpret_f32_s32): Likewise.
24187         (vreinterpret_f32_s64): Likewise.
24188         (vreinterpret_f32_u8): Likewise.
24189         (vreinterpret_f32_u16): Likewise.
24190         (vreinterpret_f32_u32): Likewise.
24191         (vreinterpret_f32_u64): Likewise.
24192         (vreinterpret_f32_p8): Likewise.
24193         (vreinterpret_f32_p16): Likewise.
24194         (vreinterpretq_f32_s8): Likewise.
24195         (vreinterpretq_f32_s16): Likewise.
24196         (vreinterpretq_f32_s32): Likewise.
24197         (vreinterpretq_f32_s64): Likewise.
24198         (vreinterpretq_f32_u8): Likewise.
24199         (vreinterpretq_f32_u16): Likewise.
24200         (vreinterpretq_f32_u32): Likewise.
24201         (vreinterpretq_f32_u64): Likewise.
24202         (vreinterpretq_f32_p8): Likewise.
24203         (vreinterpretq_f32_p16): Likewise.
24204         (vreinterpret_s64_s8): Likewise.
24205         (vreinterpret_s64_s16): Likewise.
24206         (vreinterpret_s64_s32): Likewise.
24207         (vreinterpret_s64_f32): Likewise.
24208         (vreinterpret_s64_u8): Likewise.
24209         (vreinterpret_s64_u16): Likewise.
24210         (vreinterpret_s64_u32): Likewise.
24211         (vreinterpret_s64_u64): Likewise.
24212         (vreinterpret_s64_p8): Likewise.
24213         (vreinterpret_s64_p16): Likewise.
24214         (vreinterpretq_s64_s8): Likewise.
24215         (vreinterpretq_s64_s16): Likewise.
24216         (vreinterpretq_s64_s32): Likewise.
24217         (vreinterpretq_s64_f32): Likewise.
24218         (vreinterpretq_s64_u8): Likewise.
24219         (vreinterpretq_s64_u16): Likewise.
24220         (vreinterpretq_s64_u32): Likewise.
24221         (vreinterpretq_s64_u64): Likewise.
24222         (vreinterpretq_s64_p8): Likewise.
24223         (vreinterpretq_s64_p16): Likewise.
24224         (vreinterpret_u64_s8): Likewise.
24225         (vreinterpret_u64_s16): Likewise.
24226         (vreinterpret_u64_s32): Likewise.
24227         (vreinterpret_u64_s64): Likewise.
24228         (vreinterpret_u64_f32): Likewise.
24229         (vreinterpret_u64_u8): Likewise.
24230         (vreinterpret_u64_u16): Likewise.
24231         (vreinterpret_u64_u32): Likewise.
24232         (vreinterpret_u64_p8): Likewise.
24233         (vreinterpret_u64_p16): Likewise.
24234         (vreinterpretq_u64_s8): Likewise.
24235         (vreinterpretq_u64_s16): Likewise.
24236         (vreinterpretq_u64_s32): Likewise.
24237         (vreinterpretq_u64_s64): Likewise.
24238         (vreinterpretq_u64_f32): Likewise.
24239         (vreinterpretq_u64_u8): Likewise.
24240         (vreinterpretq_u64_u16): Likewise.
24241         (vreinterpretq_u64_u32): Likewise.
24242         (vreinterpretq_u64_p8): Likewise.
24243         (vreinterpretq_u64_p16): Likewise.
24244         (vreinterpret_s8_s16): Likewise.
24245         (vreinterpret_s8_s32): Likewise.
24246         (vreinterpret_s8_s64): Likewise.
24247         (vreinterpret_s8_f32): Likewise.
24248         (vreinterpret_s8_u8): Likewise.
24249         (vreinterpret_s8_u16): Likewise.
24250         (vreinterpret_s8_u32): Likewise.
24251         (vreinterpret_s8_u64): Likewise.
24252         (vreinterpret_s8_p8): Likewise.
24253         (vreinterpret_s8_p16): Likewise.
24254         (vreinterpretq_s8_s16): Likewise.
24255         (vreinterpretq_s8_s32): Likewise.
24256         (vreinterpretq_s8_s64): Likewise.
24257         (vreinterpretq_s8_f32): Likewise.
24258         (vreinterpretq_s8_u8): Likewise.
24259         (vreinterpretq_s8_u16): Likewise.
24260         (vreinterpretq_s8_u32): Likewise.
24261         (vreinterpretq_s8_u64): Likewise.
24262         (vreinterpretq_s8_p8): Likewise.
24263         (vreinterpretq_s8_p16): Likewise.
24264         (vreinterpret_s16_s8): Likewise.
24265         (vreinterpret_s16_s32): Likewise.
24266         (vreinterpret_s16_s64): Likewise.
24267         (vreinterpret_s16_f32): Likewise.
24268         (vreinterpret_s16_u8): Likewise.
24269         (vreinterpret_s16_u16): Likewise.
24270         (vreinterpret_s16_u32): Likewise.
24271         (vreinterpret_s16_u64): Likewise.
24272         (vreinterpret_s16_p8): Likewise.
24273         (vreinterpret_s16_p16): Likewise.
24274         (vreinterpretq_s16_s8): Likewise.
24275         (vreinterpretq_s16_s32): Likewise.
24276         (vreinterpretq_s16_s64): Likewise.
24277         (vreinterpretq_s16_f32): Likewise.
24278         (vreinterpretq_s16_u8): Likewise.
24279         (vreinterpretq_s16_u16): Likewise.
24280         (vreinterpretq_s16_u32): Likewise.
24281         (vreinterpretq_s16_u64): Likewise.
24282         (vreinterpretq_s16_p8): Likewise.
24283         (vreinterpretq_s16_p16): Likewise.
24284         (vreinterpret_s32_s8): Likewise.
24285         (vreinterpret_s32_s16): Likewise.
24286         (vreinterpret_s32_s64): Likewise.
24287         (vreinterpret_s32_f32): Likewise.
24288         (vreinterpret_s32_u8): Likewise.
24289         (vreinterpret_s32_u16): Likewise.
24290         (vreinterpret_s32_u32): Likewise.
24291         (vreinterpret_s32_u64): Likewise.
24292         (vreinterpret_s32_p8): Likewise.
24293         (vreinterpret_s32_p16): Likewise.
24294         (vreinterpretq_s32_s8): Likewise.
24295         (vreinterpretq_s32_s16): Likewise.
24296         (vreinterpretq_s32_s64): Likewise.
24297         (vreinterpretq_s32_f32): Likewise.
24298         (vreinterpretq_s32_u8): Likewise.
24299         (vreinterpretq_s32_u16): Likewise.
24300         (vreinterpretq_s32_u32): Likewise.
24301         (vreinterpretq_s32_u64): Likewise.
24302         (vreinterpretq_s32_p8): Likewise.
24303         (vreinterpretq_s32_p16): Likewise.
24304         (vreinterpret_u8_s8): Likewise.
24305         (vreinterpret_u8_s16): Likewise.
24306         (vreinterpret_u8_s32): Likewise.
24307         (vreinterpret_u8_s64): Likewise.
24308         (vreinterpret_u8_f32): Likewise.
24309         (vreinterpret_u8_u16): Likewise.
24310         (vreinterpret_u8_u32): Likewise.
24311         (vreinterpret_u8_u64): Likewise.
24312         (vreinterpret_u8_p8): Likewise.
24313         (vreinterpret_u8_p16): Likewise.
24314         (vreinterpretq_u8_s8): Likewise.
24315         (vreinterpretq_u8_s16): Likewise.
24316         (vreinterpretq_u8_s32): Likewise.
24317         (vreinterpretq_u8_s64): Likewise.
24318         (vreinterpretq_u8_f32): Likewise.
24319         (vreinterpretq_u8_u16): Likewise.
24320         (vreinterpretq_u8_u32): Likewise.
24321         (vreinterpretq_u8_u64): Likewise.
24322         (vreinterpretq_u8_p8): Likewise.
24323         (vreinterpretq_u8_p16): Likewise.
24324         (vreinterpret_u16_s8): Likewise.
24325         (vreinterpret_u16_s16): Likewise.
24326         (vreinterpret_u16_s32): Likewise.
24327         (vreinterpret_u16_s64): Likewise.
24328         (vreinterpret_u16_f32): Likewise.
24329         (vreinterpret_u16_u8): Likewise.
24330         (vreinterpret_u16_u32): Likewise.
24331         (vreinterpret_u16_u64): Likewise.
24332         (vreinterpret_u16_p8): Likewise.
24333         (vreinterpret_u16_p16): Likewise.
24334         (vreinterpretq_u16_s8): Likewise.
24335         (vreinterpretq_u16_s16): Likewise.
24336         (vreinterpretq_u16_s32): Likewise.
24337         (vreinterpretq_u16_s64): Likewise.
24338         (vreinterpretq_u16_f32): Likewise.
24339         (vreinterpretq_u16_u8): Likewise.
24340         (vreinterpretq_u16_u32): Likewise.
24341         (vreinterpretq_u16_u64): Likewise.
24342         (vreinterpretq_u16_p8): Likewise.
24343         (vreinterpretq_u16_p16): Likewise.
24344         (vreinterpret_u32_s8): Likewise.
24345         (vreinterpret_u32_s16): Likewise.
24346         (vreinterpret_u32_s32): Likewise.
24347         (vreinterpret_u32_s64): Likewise.
24348         (vreinterpret_u32_f32): Likewise.
24349         (vreinterpret_u32_u8): Likewise.
24350         (vreinterpret_u32_u16): Likewise.
24351         (vreinterpret_u32_u64): Likewise.
24352         (vreinterpret_u32_p8): Likewise.
24353         (vreinterpret_u32_p16): Likewise.
24354         (vreinterpretq_u32_s8): Likewise.
24355         (vreinterpretq_u32_s16): Likewise.
24356         (vreinterpretq_u32_s32): Likewise.
24357         (vreinterpretq_u32_s64): Likewise.
24358         (vreinterpretq_u32_f32): Likewise.
24359         (vreinterpretq_u32_u8): Likewise.
24360         (vreinterpretq_u32_u16): Likewise.
24361         (vreinterpretq_u32_u64): Likewise.
24362         (vreinterpretq_u32_p8): Likewise.
24363         (vreinterpretq_u32_p16): Likewise.
24364
24365 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24366
24367         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
24368         Pattern extended.
24369         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
24370         (sqabs): Likewise.
24371         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
24372         (vqnegd_s64): Likewise.
24373         (vqabs_s64): Likewise.
24374         (vqabsd_s64): Likewise.
24375
24376 2014-04-22  Richard Henderson  <rth@redhat.com>
24377
24378         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
24379         computation to the top of the loop.
24380
24381 2014-04-22  Renlin  <renlin.li@arm.com>
24382             Jiong Wang  <jiong.wang@arm.com>
24383
24384         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
24385         * config/aarch64/aarch64.c (aarch64_layout_frame)
24386         (aarch64_initial_elimination_offset): Likewise.
24387
24388 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24389
24390         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
24391         Fix indentation.
24392
24393 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
24394
24395         * machmode.h (bitwise_mode_for_mode): Declare.
24396         * stor-layout.h (bitwise_type_for_mode): Likewise.
24397         * stor-layout.c (bitwise_mode_for_mode): New function.
24398         (bitwise_type_for_mode): Likewise.
24399         * builtins.c (fold_builtin_memory_op): Use it instead of
24400         int_mode_for_mode and build_nonstandard_integer_type.
24401
24402 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24403
24404         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
24405         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
24406         (*-*-solaris2*): Simplify.
24407         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
24408         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
24409         *-*-solaris2.9* handling.
24410
24411         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
24412         as bug.
24413         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
24414         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
24415         handling, simplify.
24416         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
24417         * configure: Regenerate.
24418
24419         * config/i386/sol2-9.h: Remove.
24420
24421         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
24422         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
24423         Remove Solaris 9 references.
24424
24425 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
24426
24427         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
24428         (floatuns<GPI:mode><GPF:mode>2): Remove.
24429         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
24430         and floatuns conversions.
24431         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
24432         and floatuns conversions.
24433         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
24434         (w1,w2): New mode attributes for inequal width conversions.
24435
24436 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
24437
24438         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
24439         the output asm format.
24440
24441 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
24442
24443         * config/aarch64/aarch64-simd.md
24444         (aarch64_cm<optab>di): Always split.
24445         (*aarch64_cm<optab>di): New.
24446         (aarch64_cmtstdi): Always split.
24447         (*aarch64_cmtstdi): New.
24448
24449 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24450
24451         PR tree-optimization/60823
24452         * omp-low.c (ipa_simd_modify_function_body): Go through
24453         all SSA_NAMEs and for those refering to vector arguments
24454         which are going to be replaced adjust SSA_NAME_VAR and,
24455         if it is a default definition, change it into a non-default
24456         definition assigned at the beginning of function from new_decl.
24457         (ipa_simd_modify_stmt_ops): Rewritten.
24458         * tree-dfa.c (set_ssa_default_def): When removing default def,
24459         check for NULL loc instead of NULL *loc.
24460
24461 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24462
24463         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
24464         restrictions on core registers for DImode values in Thumb2.
24465
24466 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24467
24468         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
24469         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
24470
24471 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24472
24473         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
24474         (*iordi_notzesidi_di): Likewise.
24475         (*iordi_notsesidi_di): Likewise.
24476
24477 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
24478
24479         * config/arm/arm-protos.h (tune_params): New struct members.
24480         * config/arm/arm.c: Initialise tune_params per processor.
24481         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24482         for speed, based on new tune_params.
24483
24484 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
24485
24486         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24487         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24488         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24489         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24490         * config/aarch64/arm_neon.h (vrnd_f64): Added.
24491         (vrnda_f64): Likewise.
24492         (vrndi_f64): Likewise.
24493         (vrndm_f64): Likewise.
24494         (vrndn_f64): Likewise.
24495         (vrndp_f64): Likewise.
24496         (vrndx_f64): Likewise.
24497
24498 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24499
24500         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24501         GET_MODE_SIZE argument is enum machine_mode.
24502
24503 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
24504
24505         PR target/60910
24506         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24507         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24508
24509 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
24510
24511         PR middle-end/60281
24512         * asan.c (asan_emit_stack_protection): Force the base to align to
24513         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
24514         appropriate bits if STRICT_ALIGNMENT.
24515         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24516         when asan is on.
24517         (expand_used_vars): Leave a space in the stack frame for alignment
24518         if STRICT_ALIGNMENT.
24519
24520 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
24521
24522         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24523         than a gimple.
24524         (gimple_store_p): Likewise.
24525         (gimple_assign_load_p): Likewise.
24526         (gimple_assign_cast_p): Likewise.
24527         (gimple_clobber_p): Likewise.
24528
24529         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24530         rather than a gimple.
24531         (gimple_assign_cast_p): Likewise.
24532
24533 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24534
24535         PR target/60735
24536         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24537         If mode is DDmode and TARGET_E500_DOUBLE allow move.
24538
24539         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24540         more debug information for E500 if -mdebug=reg.
24541
24542 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
24543
24544         PR target/60909
24545         * config/i386/i386.c (ix86_expand_builtin)
24546         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24547         register for target RTX.
24548         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24549
24550 2014-04-18  Cong Hou  <congh@google.com>
24551
24552         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24553         the widen-mult pattern by handling two operands with different sizes,
24554         and operands whose size is smaller than half of the result type.
24555
24556 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
24557
24558         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24559         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24560         (do_estimate_edge_time): Compute it.
24561         * ipa-inline.c (want_inline_small_function_p): Bypass
24562         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24563
24564 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
24565
24566         * ipa-inline.c (spec_rem): New static variable.
24567         (dump_overall_stats): New function.
24568         (dump_inline_stats): New function.
24569
24570 2014-04-18  Richard Henderson  <rth@redhat.com>
24571
24572         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24573         to GET_MODE_SIZE, not a reg_class_t.
24574
24575 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24576
24577         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24578         (vsx_xxmrglw_<mode>): Likewise.
24579
24580 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
24581
24582         PR target/60876
24583         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24584         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24585         (rs6000_init_hard_regno_mode_ok): Likewise.
24586
24587 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
24588
24589         * ipa-inline.c (inline_small_functions): Account only non-cold
24590         functions.
24591         * doc/invoke.texi (inline-unit-growth): Update documentation.
24592
24593 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
24594
24595         * config/rs6000/rs6000.md (addti3, subti3): New.
24596
24597 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24598
24599         PR target/60863
24600         * config/i386/i386.c (ix86_expand_clear): Remove outdated
24601         comment.  Check optimize_insn_for_size_p instead of
24602         optimize_insn_for_speed_p.
24603
24604 2014-04-17  Martin Jambor  <mjambor@suse.cz>
24605
24606         * gimple-iterator.c (gsi_start_edge): New function.
24607         * gimple-iterator.h (gsi_start_edge): Declare.
24608         * tree-sra.c (single_non_eh_succ): New function.
24609         (disqualify_ops_if_throwing_stmt): Renamed to
24610         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
24611         having one non-EH successor BB.
24612         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24613         generate loads into replacements.
24614         (sra_modify_assign): Likewise and and also use the simple path for
24615         such statements.
24616         (sra_modify_function_body): Commit statements on edges.
24617
24618 2014-04-17  Richard Biener  <rguenther@suse.de>
24619
24620         PR middle-end/60849
24621         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24622         comparison results and add clarifying comment.
24623
24624 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
24625
24626         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24627         (blank_mode): Initialize it.
24628         (emit_mode_size_inline, emit_mode_nunits_inline,
24629         emit_mode_inner_inline): New functions.
24630         (emit_insn_modes_h): Call them and surround their output with
24631         #if GCC_VERSION >= 4001 ... #endif.
24632         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24633         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24634         mode_* arrays if the argument is __builtin_constant_p.
24635         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24636         is enum machine_mode.
24637
24638 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24639
24640         * passes.c (opt_pass::execute): Adjust.
24641         (pass_manager::execute_pass_mode_switching): Likewise.
24642         (early_local_passes::execute): Likewise.
24643         (execute_one_pass): Pass cfun to the pass's execute method.
24644         * tree-pass.h (opt_pass::execute): Add function * argument.
24645         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24646         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24647         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24648         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24649         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24650         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24651         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24652         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24653         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24654         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24655         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24656         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24657         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24658         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24659         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24660         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24661         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24662         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24663         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24664         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24665         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24666         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24667         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24668         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24669         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24670         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24671         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24672         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24673         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24674         Adjust.
24675
24676 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24677
24678         * passes.c (opt_pass::gate): Take function * argument.
24679         (gate_all_early_local_passes): Merge into
24680         (early_local_passes::gate): this.
24681         (gate_all_early_optimizations): Merge into
24682         (all_early_optimizations::gate): this.
24683         (gate_all_optimizations): Mege into
24684         (all_optimizations::gate): this.
24685         (gate_all_optimizations_g): Merge into
24686         (all_optimizations_g::gate): this.
24687         (gate_rest_of_compilation): Mege into
24688         (rest_of_compilation::gate): this.
24689         (gate_postreload): Merge into
24690         (postreload::gate): this.
24691         (dump_one_pass): Pass cfun to the pass's gate method.
24692         (execute_ipa_summary_passes): Likewise.
24693         (execute_one_pass): Likewise.
24694         (ipa_write_summaries_2): Likewise.
24695         (ipa_write_optimization_summaries_1): Likewise.
24696         (ipa_read_summaries_1): Likewise.
24697         (ipa_read_optimization_summaries_1): Likewise.
24698         (execute_ipa_stmt_fixups): Likewise.
24699         * tree-pass.h (opt_pass::gate): Add function * argument.
24700         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24701         combine-stack-adj.c, combine.c, compare-elim.c,
24702         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24703         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24704         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24705         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
24706         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24707         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24708         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24709         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24710         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24711         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24712         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24713         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24714         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24715         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24716         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24717         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24718         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24719         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24720         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24721         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24722         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24723         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24724         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24725         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24726         var-tracking.c, vtable-verify.c, web.c: Adjust.
24727
24728 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24729
24730         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24731         * configure: Regenerate.
24732
24733 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24734
24735         * passes.c (dump_one_pass): don't check pass->has_gate.
24736         (execute_ipa_summary_passes): Likewise.
24737         (execute_one_pass): Likewise.
24738         (ipa_write_summaries_2): Likewise.
24739         (ipa_write_optimization_summaries_1): Likewise.
24740         (ipa_read_optimization_summaries_1): Likewise.
24741         (execute_ipa_stmt_fixups): Likewise.
24742         * tree-pass.h (pass_data::has_gate): Remove.
24743         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24744         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24745         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24746         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24747         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24748         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24749         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24750         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24751         gimple-low.c, gimple-ssa-isolate-paths.c,
24752         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24753         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24754         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24755         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24756         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24757         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24758         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24759         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24760         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24761         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24762         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24763         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24764         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24765         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24766         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24767         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24768         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24769         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24770         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24771         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24772         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24773         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24774         Adjust.
24775
24776 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24777
24778         * pass_manager.h (pass_manager::register_dump_files_1): Remove
24779         declaration.
24780         * passes.c (pass_manager::register_dump_files_1): Merge into
24781         (pass_manager::register_dump_files): this, and remove its handling of
24782         properties since the pass always has the properties anyway.
24783         (pass_manager::pass_manager): Adjust.
24784
24785 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24786
24787         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24788         * passes.c (pass_manager::register_dump_files_1): Remove dead code
24789         dealing with properties.
24790         (pass_manager::register_dump_files): Adjust.
24791
24792 2014-03-20  Mark Wielaard  <mjw@redhat.com>
24793
24794         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24795         then represent the bound as normal constant value.
24796
24797 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
24798
24799         PR target/60847
24800         Forward port from 4.8 branch
24801         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
24802
24803         * config/i386/bmiintrin.h (_blsi_u32): New.
24804         (_blsi_u64): Ditto.
24805         (_blsr_u32): Ditto.
24806         (_blsr_u64): Ditto.
24807         (_blsmsk_u32): Ditto.
24808         (_blsmsk_u64): Ditto.
24809         (_tzcnt_u32): Ditto.
24810         (_tzcnt_u64): Ditto.
24811
24812 2014-04-17  Kito Cheng  <kito@0xlab.org>
24813
24814         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24815
24816 2014-04-17  Richard Biener  <rguenther@suse.de>
24817
24818         PR middle-end/60849
24819         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24820         boolean results for comparisons.
24821
24822 2014-04-17  Richard Biener  <rguenther@suse.de>
24823
24824         PR tree-optimization/60836
24825         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24826         initial PHI args to be gimple values.
24827
24828 2014-04-17  Richard Biener  <rguenther@suse.de>
24829
24830         PR tree-optimization/60841
24831         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24832         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24833         of stmts to SLP build.
24834         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24835         (vect_analyze_slp): Likewise.
24836         (vect_analyze_slp_instance): Likewise.
24837         (vect_build_slp_tree): Limit overall SLP tree growth.
24838         * tree-vectorizer.h (vect_analyze_data_refs,
24839         vect_analyze_slp): Adjust prototypes.
24840
24841 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24842
24843         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24844         Silvermont.
24845
24846 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24847
24848         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24849         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24850         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24851         for TARGET_SLOW_PSHUFB
24852
24853 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24854
24855         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24856         * config/i386/i386.c (intel_cost): Ditto.
24857
24858 2014-04-17  Joey Ye  <joey.ye@arm.com>
24859
24860         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24861
24862 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24863
24864         * opts.c (common_handle_option): Disable -fipa-reference coorectly
24865         with -fuse-profile.
24866
24867 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24868
24869         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24870         (type_all_derivations_known_p): New predicate.
24871         (type_all_ctors_visible_p): New predicate.
24872         (type_possibly_instantiated_p): New predicate.
24873         (get_odr_type): Compute all_derivations_known.
24874         (dump_odr_type): Dump the flag.
24875         (maybe_record_type): Cleanup.
24876         (record_target_from_binfo): Add bases_to_consider array;
24877         record bases for types w/o instances and skip CXX destructor.
24878         (possible_polymorphic_call_targets_1): Add bases_to_consider
24879         and consider_construction parameters; check if type may have instance.
24880         (get_polymorphic_call_info): Set maybe_in_construction to true
24881         when we know nothing.
24882         (record_targets_from_bases): Skip CXX destructors; they are
24883         never called for types in construction.
24884         (possible_polymorphic_call_targets): Do not record target when
24885         type may not have instance.
24886
24887 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24888
24889         PR ipa/60854
24890         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24891         external aliases alive, too.
24892
24893 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
24894
24895         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24896         definition.
24897
24898 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
24899
24900         * final.c (compute_alignments): Do not apply loop alignment to a block
24901         falling through to the exit.
24902
24903 2014-04-16  Catherine Moore  <clm@codesourcery.com>
24904
24905         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24906         Adjust constraints for microMIPS store patterns.
24907
24908 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
24909
24910         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24911
24912 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
24913
24914         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24915         (append_use): Run at -O0.
24916         (append_vdef): Likewise.
24917         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24918         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24919
24920 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
24921
24922         PR tree-optimization/60844
24923         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24924         (propagate_op_to_single_use, remove_visited_stmt_chain,
24925         linearize_expr, repropagate_negates, reassociate_bb): Use it
24926         instead of gsi_remove.
24927
24928 2014-04-16  Martin Jambor  <mjambor@suse.cz>
24929
24930         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24931         ipa_transforms_to_apply.
24932         (cgraph_function_versioning): Assert that old_node has empty
24933         ipa_transforms_to_apply.
24934         * trans-mem.c (ipa_tm_create_version): Likewise.
24935         * tree-inline.c (tree_function_versioning): Do not duplicate
24936         ipa_transforms_to_apply.
24937
24938 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24939
24940         PR target/60817
24941         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24942         x86_64-*-* cases.
24943         Pass necessary as flags on 64-bit Solaris/x86.
24944         Use lowercase relocs for x86_64-*-*.
24945         * configure: Regenerate.
24946
24947 2014-04-15  Jan Hubicka  <jh@suse.cz>
24948
24949         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24950         (maybe_record_node, likely_target_p): Use it.
24951
24952 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24953
24954         PR target/60839
24955         Revert following patch
24956
24957         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24958
24959         PR target/60735
24960         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24961         software floating point or no floating point registers, do not
24962         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
24963         in GPRs that occurs after we tested for GPRs that would never be
24964         true.
24965
24966         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24967         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24968         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
24969         specifically allow DDmode, since that does not use the SPE SIMD
24970         instructions.
24971
24972 2014-03-21  Mark Wielaard  <mjw@redhat.com>
24973
24974         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24975         as unsigned or int depending on type and value used.
24976
24977 2014-04-15  Richard Biener  <rguenther@suse.de>
24978
24979         PR rtl-optimization/56965
24980         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24981         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24982         ... here.
24983         * alias.c (true_dependence_1): Do not call
24984         nonoverlapping_component_refs_p.
24985         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24986         nonoverlapping_component_refs_p.
24987         (indirect_refs_may_alias_p): Likewise.
24988
24989 2014-04-15  Teresa Johnson  <tejohnson@google.com>
24990
24991         * cfg.c (dump_bb_info): Fix flags check.
24992         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24993
24994 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24995
24996         PR rtl-optimization/60663
24997         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24998         avoid 0 cost.
24999
25000 2014-04-15  Richard Biener  <rguenther@suse.de>
25001
25002         * lto-streamer.h (LTO_major_version): Bump to 4.
25003
25004 2014-04-15  Richard Biener  <rguenther@suse.de>
25005
25006         * common.opt (lto_partition_model): New enum.
25007         (flto-partition=): Merge separate options with a single with argument,
25008         add -flto-partition=one support.
25009         * flag-types.h (enum lto_partition_model): Declare.
25010         * opts.c (finish_options): Remove duplicate -flto-partition=
25011         option check.
25012         * lto-wrapper.c (run_gcc): Adjust.
25013
25014 2014-04-15  Richard Biener  <rguenther@suse.de>
25015
25016         * alias.c (ncr_compar): New function.
25017         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
25018
25019 2014-04-15  Richard Biener  <rguenther@suse.de>
25020
25021         * alias.c (record_component_aliases): Do not walk BINFOs.
25022
25023 2014-04-15  Richard Biener  <rguenther@suse.de>
25024
25025         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25026         Add struct function argument and adjust.
25027         (find_func_aliases_for_call): Likewise.
25028         (find_func_aliases): Likewise.
25029         (find_func_clobbers): Likewise.
25030         (intra_create_variable_infos): Likewise.
25031         (compute_points_to_sets): Likewise.
25032         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
25033
25034 2014-04-15  Richard Biener  <rguenther@suse.de>
25035
25036         * tree.c (iterative_hash_expr): Use enum tree_code_class
25037         to store TREE_CODE_CLASS.
25038         (tree_block): Likewise.
25039         (tree_set_block): Likewise.
25040         * tree.h (fold_build_pointer_plus_loc): Use
25041         convert_to_ptrofftype_loc.
25042
25043 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
25044
25045         PR plugins/59335
25046         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
25047         added in 4.9.
25048
25049 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
25050
25051         * cfgloop.h (struct loop): Move force_vectorize down.
25052         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
25053         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
25054         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
25055         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
25056         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
25057         * tree-core.h (enum annot_expr_kind): Add new kind values.
25058         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
25059         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
25060         kinds.
25061         * tree.def (ANNOTATE_EXPR): Tweak comment.
25062
25063 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25064
25065         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
25066         cxa_pure_virtual).
25067
25068 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
25069
25070         * tree.h (TYPE_IDENTIFIER): Declare.
25071         * tree.c (subrange_type_for_debug_p): Use it.
25072         * godump.c (go_format_type): Likewise.
25073         * dwarf2out.c (is_cxx_auto, modified_type_die,
25074         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
25075         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
25076
25077 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25078
25079         PR lto/60820
25080         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
25081
25082 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
25083
25084         * config/i386/i386.c (examine_argument): Return bool.  Return true if
25085         parameter should be passed in memory.
25086         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
25087         (construct_container): Update calls to examine_argument.
25088         (function_arg_advance_64): Ditto.
25089         (return_in_memory_32): Merge with ix86_return_in_memory.
25090         (return_in_memory_64): Ditto.
25091         (return_in_memory_ms_64): Ditto.
25092
25093 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
25094
25095         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
25096         * coverage.c (coverage_compute_profile_id): Handle externally visible
25097         symbols.
25098
25099 2014-04-14  Martin Jambor  <mjambor@suse.cz>
25100
25101         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
25102         DECL_DISREGARD_INLINE_LIMITS functions.
25103
25104 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
25105
25106         PR target/60827
25107         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
25108
25109 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
25110
25111         PR target/60827
25112         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
25113         optimize_insn_for_speed_p instead of
25114         optimize_function_for_speed_p.
25115
25116 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
25117
25118         * doc/invoke.texi (free): Document AArch64.
25119
25120 2014-04-14  Richard Biener  <rguenther@suse.de>
25121
25122         PR tree-optimization/60042
25123         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
25124         (insert_into_preds_of_block): Do not prevent PHI insertion
25125         for REFERENCE exprs here ...
25126         (eliminate_dom_walker::before_dom_children): ... but prevent
25127         their use here under similar conditions when applied to the
25128         IL after PRE optimizations.
25129
25130 2014-04-14  Richard Biener  <rguenther@suse.de>
25131
25132         * passes.def: Move early points-to after early SRA.
25133
25134 2014-04-14  Richard Biener  <rguenther@suse.de>
25135
25136         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
25137         check for which sign-changes we allow when forwarding
25138         a converted value into a switch.
25139
25140 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
25141
25142         * stor-layout.c (place_field): Finalize non-constant offset for the
25143         field, if any.
25144
25145 2014-04-14  Richard Biener  <rguenther@suse.de>
25146
25147         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
25148         as argument.
25149         (expand_switch_using_bit_tests_p): Likewise.
25150         (process_switch): Compute and pass on speed_p based on the
25151         switch stmt.
25152         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
25153         optimize_bb_for_speed_p.
25154
25155 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
25156
25157         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
25158         * function.h (struct function): Rename has_force_vect_loops into
25159         has_force_vectorize_loops.
25160         * lto-streamer-in.c (input_cfg): Adjust for renaming.
25161         (input_struct_function_base): Likewise.
25162         * lto-streamer-out.c (output_cfg): Likewise.
25163         (output_struct_function_base): Likewise.
25164         * omp-low.c (expand_omp_simd): Likewise.
25165         * tree-cfg.c (move_sese_region_to_fn): Likewise.
25166         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
25167         (version_loop_for_if_conversion): Likewise.
25168         (tree_if_conversion): Likewise.
25169         (main_tree_if_conversion): Likewise.
25170         (gate_tree_if_conversion): Likewise.
25171         * tree-inline.c (copy_loops): Likewise.
25172         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
25173         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
25174         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25175         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
25176         * tree-vectorizer.c (vectorize_loops): Likewise.
25177         * tree-vectorizer.h (unlimited_cost_model): Likewise.
25178
25179 2014-04-14  Richard Biener  <rguenther@suse.de>
25180
25181         PR lto/60720
25182         * lto-streamer-out.c (wrap_refs): New function.
25183         (lto_output): Wrap symbol references in global initializes in
25184         type-preserving MEM_REFs.
25185
25186 2014-04-14  Christian Bruel  <christian.bruel@st.com>
25187
25188         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
25189
25190 2014-04-14  Christian Bruel  <christian.bruel@st.com>
25191
25192         * config/sh/sh.md (setmemqi): New expand pattern.
25193         * config/sh/sh.h (CLEAR_RATIO): Define.
25194         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
25195         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
25196
25197 2014-04-14  Richard Biener  <rguenther@suse.de>
25198
25199         PR middle-end/55022
25200         * fold-const.c (negate_expr_p): Don't negate directional rounding
25201         division.
25202         (fold_negate_expr): Likewise.
25203
25204 2014-04-14  Richard Biener  <rguenther@suse.de>
25205
25206         PR tree-optimization/59817
25207         PR tree-optimization/60453
25208         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
25209         recursion to catch all CHRECs in the scalar evolution and restrict
25210         the predicate for the remains appropriately.
25211
25212 2014-04-12  Catherine Moore  <clm@codesourcery.com>
25213
25214         * config/mips/constraints.md: Add new register constraint "kb".
25215         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
25216         (*movhi_internal): Likewise.
25217         (*movqi_internal): Likewise.
25218         * config/mips/mips.h (M16_STORE_REGS): New register class.
25219         (REG_CLASS_NAMES): Add M16_STORE_REGS.
25220         (REG_CLASS_CONTENTS): Likewise.
25221         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
25222
25223 2014-04-11  Tobias Burnus  <burnus@net-b.de>
25224
25225         PR c/60194
25226         * doc/invoke.texi (-Wformat-signedness): Document it.
25227         (Wformat=2): Mention that this enables -Wformat-signedness.
25228
25229 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25230
25231         * common/config/epiphany/epiphany-common.c
25232         (epiphany_option_optimization_table): Enable section anchors by
25233         default at -O1 or higher.
25234         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
25235         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
25236         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
25237         carries no extra cost.
25238         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
25239         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
25240         * config/epiphany/predicates.md (memclob_operand): New predicate.
25241         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
25242         Use memclob_operand predicate and X constraint for operand 3.
25243
25244 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25245
25246         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
25247         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
25248         its operands.
25249
25250 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25251
25252         PR rtl-optimization/60651
25253         * mode-switching.c (optimize_mode_switching): Make sure to emit
25254         sets of a lower numbered entity before sets of a higher numbered
25255         entity to a mode of the same or lower priority.
25256         When creating a seginfo for a basic block that starts with a code
25257         label, move the insertion point past the code label.
25258         (new_seginfo): Document and enforce requirement that
25259         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
25260         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
25261         * doc/tm.texi: Regenerate.
25262
25263 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25264
25265         PR target/60811
25266         * config/arc/arc.c (arc_save_restore): Fix assert typo.
25267
25268 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
25269
25270         * BASE-VER: Set to 4.10.0.
25271
25272 2014-04-11  Tobias Burnus  <burnus@net-b.de>
25273
25274         PR other/59055
25275         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
25276         * doc/gcc.texi (Service): Update description in the @menu
25277         * doc/invoke.texi (Option Summary): Remove misplaced and
25278         duplicated @menu.
25279
25280 2014-04-11  Steve Ellcey  <sellcey@mips.com>
25281             Jakub Jelinek  <jakub@redhat.com>
25282
25283         PR middle-end/60556
25284         * expr.c (convert_move): Use emit_store_flag_force instead of
25285         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
25286         argument to it.
25287
25288 2014-04-11  Richard Biener  <rguenther@suse.de>
25289
25290         PR middle-end/60797
25291         * varasm.c (assemble_alias): Avoid endless error reporting
25292         recursion by setting TREE_ASM_WRITTEN.
25293
25294 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25295
25296         * config/s390/s390.md: Add a splitter for NOT rtx.
25297
25298 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
25299
25300         PR rtl-optimization/60663
25301         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
25302
25303 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
25304             Jakub Jelinek  <jakub@redhat.com>
25305
25306         PR lto/60567
25307         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
25308         flag from decl_node to node.
25309
25310 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25311
25312         PR debug/60655
25313         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
25314         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
25315         ameliorating the cases where it can be.
25316
25317 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
25318
25319         Revert
25320         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
25321
25322         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25323         (loadsync_<mode>): Change mode.
25324         (load_quadpti, store_quadpti): New.
25325         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25326         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25327         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
25328
25329 2014-04-09  Cong Hou  <congh@google.com>
25330
25331         PR testsuite/60773
25332         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
25333         documentation.
25334
25335 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25336
25337         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
25338         instead of vnor to exploit possible fusion opportunity in the
25339         future.
25340         (altivec_expand_vec_perm_const_le): Likewise.
25341
25342 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
25343
25344         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25345         (loadsync_<mode>): Change mode.
25346         (load_quadpti, store_quadpti): New.
25347         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25348         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25349
25350 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
25351
25352         PR target/60763
25353         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
25354         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
25355         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
25356
25357 2014-04-08  Richard Biener  <rguenther@suse.de>
25358
25359         PR middle-end/60706
25360         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
25361         a 64bit widest int print double-int similar to on HWI64 hosts.
25362
25363 2014-04-08  Richard Biener  <rguenther@suse.de>
25364
25365         PR tree-optimization/60785
25366         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
25367         default defs properly.
25368
25369 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
25370
25371         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
25372         (Weffc++): Likewise.
25373
25374 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
25375
25376         * ipa-devirt.c (maybe_record_node): When node is not recorded,
25377         set completep to false rather than true.
25378
25379 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
25380
25381         PR target/60504
25382         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
25383         ARM_TARGET2_DWARF_FORMAT.
25384
25385 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
25386
25387         PR target/60609
25388         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
25389         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
25390         ADDR_DIFF_VEC.
25391
25392 2014-04-07  Richard Biener  <rguenther@suse.de>
25393
25394         PR tree-optimization/60766
25395         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
25396         (may_eliminate_iv): Convert cand_value_at result to desired type.
25397
25398 2014-04-07  Jason Merrill  <jason@redhat.com>
25399
25400         PR c++/60731
25401         * common.opt (-fno-gnu-unique): Add.
25402         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
25403
25404 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25405
25406         * haifa-sched.c: Fix outdated function reference and minor
25407         grammar errors in introductory comment.
25408
25409 2014-04-07  Richard Biener  <rguenther@suse.de>
25410
25411         PR middle-end/60750
25412         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
25413         for noreturn calls.
25414         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
25415
25416 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
25417
25418         PR debug/55794
25419         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
25420         size accounting for thunks.
25421         (pa_asm_output_mi_thunk): Use final_start_function() and
25422         final_end_function() to output function start and end directives.
25423
25424 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
25425
25426         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
25427         device specific ISA/ feature information. Remove short_sp and
25428         errata_skip ds.  Add avr_device_specific_features enum to have device
25429         specific info.
25430         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
25431         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
25432         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
25433         updated device specific info.
25434         * config/avr/avr-mcus.def: Merge device specific details to
25435         dev_attribute field.
25436         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
25437         errata_skip.
25438         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
25439         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
25440         assembler if RMW isa supported by current device.
25441         * config/avr/genmultilib.awk: Update as device info structure changed.
25442         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
25443
25444 2014-04-04  Cong Hou  <congh@google.com>
25445
25446         PR tree-optimization/60656
25447         * tree-vect-stmts.c (supportable_widening_operation):
25448         Fix a bug that elements in a vector with vect_used_by_reduction
25449         property are incorrectly reordered when the operation on it is not
25450         consistant with the one in reduction operation.
25451
25452 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
25453
25454         PR rtl-optimization/60155
25455         * gcse.c (record_set_data): New function.
25456         (single_set_gcse): New function.
25457         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
25458         (hoist_code): Likewise.
25459         (get_pressure_class_and_nregs): Likewise.
25460
25461 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
25462
25463         * explow.c (probe_stack_range): Emit a final optimization blockage.
25464
25465 2014-04-04  Anthony Green  <green@moxielogic.com>
25466
25467         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
25468         typos.
25469
25470 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
25471
25472         PR ipa/59626
25473         * lto-cgraph.c (input_overwrite_node): Check that partitioning
25474         flags are set only during streaming.
25475         * ipa.c (process_references, walk_polymorphic_call_targets,
25476         symtab_remove_unreachable_nodes): Drop bodies of always inline
25477         after early inlining.
25478         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25479
25480 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
25481         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25482
25483         PR debug/60655
25484         * dwarf2out.c (const_ok_for_output_1): Reject expressions
25485         containing a NOT.
25486
25487 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25488
25489         PR bootstrap/60743
25490         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25491         duration.
25492         (cortex_a53_fdivd): Likewise.
25493
25494 2014-04-04  Martin Jambor  <mjambor@suse.cz>
25495
25496         PR ipa/60640
25497         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25498         Adjust all callers.
25499         * cgraph.c (clone_of_p): Also return true if thunks match.
25500         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25501         cgraph_function_or_thunk_node and an obsolete comment.
25502         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25503         file.
25504         (build_function_decl_skip_args): Likewise.
25505         (set_new_clone_decl_and_node_flags): New function.
25506         (duplicate_thunk_for_node): Likewise.
25507         (redirect_edge_duplicating_thunks): Likewise.
25508         (cgraph_clone_node): New parameter args_to_skip, pass it to
25509         redirect_edge_duplicating_thunks which is called instead of
25510         cgraph_redirect_edge_callee.
25511         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25512         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25513
25514 2014-04-04  Jeff Law  <law@redhat.com>
25515
25516         PR target/60657
25517         * config/arm/predicates.md (const_int_I_operand): New predicate.
25518         (const_int_M_operand): Similarly.
25519         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25520         const_int_operand.
25521         (insv_t2, extv_reg, extzv_t2): Likewise.
25522         (load_multiple_with_writeback): Similarly for const_int_I_operand.
25523         (pop_multiple_with_writeback_and_return): Likewise.
25524         (vfp_pop_multiple_with_writeback): Likewise
25525
25526 2014-04-04  Richard Biener  <rguenther@suse.de>
25527
25528         PR ipa/60746
25529         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25530         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25531         non-GIMPLE_LABELs.
25532         * gimplify.h (gimple_add_tmp_var_fn): Declare.
25533         * gimplify.c (gimple_add_tmp_var_fn): New function.
25534         * gimple-expr.h (create_tmp_reg_fn): Declare.
25535         * gimple-expr.c (create_tmp_reg_fn): New function.
25536         * gimple-low.c (record_vars_into): Don't change cfun.
25537         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25538         code generation without cfun.
25539
25540 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
25541
25542         PR bootstrap/60719
25543         * Makefile.in (install-driver): Fix shell scripting.
25544
25545 2014-04-03  Cong Hou  <congh@google.com>
25546
25547         PR tree-optimization/60505
25548         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25549         threshold of number of iterations below which no vectorization
25550         will be done.
25551         * tree-vect-loop.c (new_loop_vec_info):
25552         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25553         * tree-vect-loop.c (vect_analyze_loop_operations):
25554         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25555         * tree-vect-loop.c (vect_transform_loop):
25556         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25557         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25558         of iterations of the loop and see if we should build the epilogue.
25559
25560 2014-04-03  Richard Biener  <rguenther@suse.de>
25561
25562         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25563         (streamer_tree_cache_create): Adjust.
25564         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25565         to allow optional nodes array.
25566         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25567         (streamer_tree_cache_append): Likewise.
25568         (streamer_tree_cache_create): Create nodes array optionally
25569         as specified by parameter.
25570         * lto-streamer-out.c (create_output_block): Avoid maintaining
25571         the node array in the writer cache.
25572         (DFS_write_tree): Remove assertion.
25573         (produce_asm_for_decls): Free the out decl state hash table early.
25574         * lto-streamer-in.c (lto_data_in_create): Adjust for
25575         streamer_tree_cache_create prototype change.
25576
25577 2014-04-03  Richard Biener  <rguenther@suse.de>
25578
25579         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25580         set TREE_CHAIN to NULL_TREE.
25581
25582 2014-04-03  Richard Biener  <rguenther@suse.de>
25583
25584         PR tree-optimization/60740
25585         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25586         over all GIMPLE_COND operands.
25587
25588 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
25589
25590         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25591         (Weffc++): Remove Scott's numbering, merge lists and reference
25592         Wnon-virtual-dtor.
25593
25594 2014-04-03  Nick Clifton  <nickc@redhat.com>
25595
25596         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25597         properly.
25598
25599 2014-04-03  Martin Jambor  <mjambor@suse.cz>
25600
25601         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25602         mention gcc_unreachable before failing.
25603         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25604         removed symbols.
25605
25606 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
25607
25608         PR ipa/60659
25609         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25610         inconsistent code and instead mark the context inconsistent.
25611         (possible_polymorphic_call_targets): For inconsistent contexts
25612         return empty complete list.
25613
25614 2014-04-02  Anthony Green  <green@moxielogic.com>
25615
25616         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25617         (extendqisi2, extendhisi2): Define.
25618         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25619         (WCHAR_TYPE): Change to unsigned int.
25620
25621 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25622
25623         PR tree-optimization/60733
25624         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25625         insertion point for PHI candidates to be the end of the feeding
25626         block for the PHI argument.
25627
25628 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
25629
25630         PR rtl-optimization/60650
25631         * lra-constraints.c (process_alt_operands): Decrease reject for
25632         earlyclobber matching.
25633
25634 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25635
25636         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25637
25638 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25639
25640         * config/spu/spu.c (pad_bb): Do not crash when the last
25641         insn is CODE_FOR_blockage.
25642
25643 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25644
25645         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25646         lies outside the target mode.
25647
25648 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25649
25650         PR target/60735
25651         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25652         software floating point or no floating point registers, do not
25653         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
25654         in GPRs that occurs after we tested for GPRs that would never be
25655         true.
25656
25657         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25658         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25659         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
25660         specifically allow DDmode, since that does not use the SPE SIMD
25661         instructions.
25662
25663 2014-04-02  Richard Biener  <rguenther@suse.de>
25664
25665         PR middle-end/60729
25666         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25667         MODE_INTs.  Properly use negv_optab.
25668         (expand_abs): Likewise.
25669
25670 2014-04-02  Richard Biener  <rguenther@suse.de>
25671
25672         PR bootstrap/60719
25673         * Makefile.in (install-driver): Guard extra installs with special
25674         names properly.
25675
25676 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25677
25678         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25679         Document vec_vgbbd.
25680
25681 2014-04-01  Richard Henderson  <rth@redhat.com>
25682
25683         PR target/60704
25684         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25685         alternative enabled before register allocation.
25686
25687 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
25688
25689         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25690         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25691         typo.
25692         (nios2_large_got_address): Remove unneeded 'sym' parameter.
25693         (nios2_got_address): Update nios2_large_got_address call site.
25694         (nios2_delegitimize_address): New function.
25695         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25696         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25697         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25698
25699 2014-04-01  Martin Husemann  <martin@duskware.de>
25700
25701         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25702         for -mabi=32.
25703
25704 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
25705
25706         PR rtl-optimization/60604
25707         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25708         check from register_operand.
25709         (register_operand): Redefine in terms of general_operand.
25710         (nonmemory_operand): Use register_operand for the non-constant cases.
25711
25712 2014-04-01  Richard Biener  <rguenther@suse.de>
25713
25714         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25715
25716 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25717
25718         * doc/invoke.texi (mapp-regs): Clarify.
25719
25720 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
25721
25722         * config/i386/avx512fintrin.h (__v32hi): Define type.
25723         (__v64qi): Likewise.
25724         (_mm512_set1_epi8): Define.
25725         (_mm512_set1_epi16): Define.
25726         (_mm512_set4_epi32): Define.
25727         (_mm512_set4_epi64): Define.
25728         (_mm512_set4_pd): Define.
25729         (_mm512_set4_ps): Define.
25730         (_mm512_setr4_epi64): Define.
25731         (_mm512_setr4_epi32): Define.
25732         (_mm512_setr4_pd): Define.
25733         (_mm512_setr4_ps): Define.
25734         (_mm512_setzero_epi32): Define.
25735
25736 2014-03-31  Martin Jambor  <mjambor@suse.cz>
25737
25738         PR middle-end/60647
25739         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25740         callsite_arguments_match_p.  Updated all callers.  Also check types of
25741         corresponding formal parameters and actual arguments.
25742         (not_all_callers_have_enough_arguments_p) Renamed to
25743         some_callers_have_mismatched_arguments_p.
25744
25745 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
25746
25747         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25748
25749 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
25750
25751         PR target/60034
25752         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25753         section anchor.
25754
25755 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
25756
25757         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25758         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25759         Split out
25760         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25761         Use FMAMODE_NOVF512 mode iterator.
25762         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25763         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25764         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25765         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25766         Split out
25767         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25768         Use VF_128_256 mode iterator.
25769         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25770         Ditto.
25771
25772 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25773
25774         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25775         static chain if needed.
25776
25777 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25778
25779         PR target/60697
25780         * lra-constraints.c (index_part_to_reg): New.
25781         (process_address): Use it.
25782
25783 2014-03-27  Jeff Law  <law@redhat.com>
25784             Jakub Jelinek  <jakub@redhat.com>
25785
25786         PR target/60648
25787         * expr.c (do_tablejump): Use simplify_gen_binary rather than
25788         gen_rtx_{PLUS,MULT} to build up the address expression.
25789
25790         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25791         creating non-canonical RTL.
25792
25793 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25794
25795         PR ipa/60243
25796         * ipa-inline.c (want_inline_small_function_p): Short circuit large
25797         functions; reorganize to make cheap checks first.
25798         (inline_small_functions): Do not estimate growth when dumping;
25799         it is expensive.
25800         * ipa-inline.h (inline_summary): Add min_size.
25801         (growth_likely_positive): New function.
25802         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25803         (set_cond_stmt_execution_predicate): Cleanup.
25804         (estimate_edge_size_and_time): Compute min_size.
25805         (estimate_calls_size_and_time): Likewise.
25806         (estimate_node_size_and_time): Likewise.
25807         (inline_update_overall_summary): Update min_size.
25808         (do_estimate_edge_time): Likewise.
25809         (do_estimate_edge_size): Update.
25810         (do_estimate_edge_hints): Update.
25811         (growth_likely_positive): New function.
25812
25813 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
25814
25815         PR target/60693
25816         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25817         also if addr has VOIDmode.
25818
25819 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25820
25821         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25822         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25823         Declare extern.
25824         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25825         instructions as well as AdvancedSIMD loads.
25826
25827 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25828
25829         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25830         Use crypto_aese type.
25831         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25832         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25833         crypto_aese, crypto_aesmc.  Move to types.md.
25834         * config/arm/types.md (crypto_aes): Split into crypto_aese,
25835         crypto_aesmc.
25836         * config/arm/iterators.md (crypto_type): Likewise.
25837
25838 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25839
25840         * cgraph.c: Include expr.h and tree-dfa.h.
25841         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25842         remove LHS.
25843
25844 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25845
25846         PR target/60675
25847         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25848         regs from checking multi-reg pseudos.
25849
25850 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25851
25852         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25853
25854 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25855
25856         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25857         if it would clobber the stack pointer, even temporarily.
25858
25859 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25860
25861         * mode-switching.c: Make small adjustments to the top comment.
25862
25863 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
25864
25865         * config/rs6000/constraints.md (wD constraint): New constraint to
25866         match the constant integer to get the top DImode/DFmode out of a
25867         vector in a VSX register.
25868
25869         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25870         match the constant integer to get the top DImode/DFmode out of a
25871         vector in a VSX register.
25872
25873         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25874         for ISA 2.07.
25875
25876         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25877         vbpermq builtins.
25878
25879         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25880         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25881
25882         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25883         Optimize vec_extract of 64-bit values, where the value being
25884         extracted is in the top word, where we can use scalar
25885         instructions.  Add direct move and store support.  Combine the big
25886         endian/little endian vector select load support into a single insn.
25887         (vsx_extract_<mode>_internal1): Likewise.
25888         (vsx_extract_<mode>_internal2): Likewise.
25889         (vsx_extract_<mode>_load): Likewise.
25890         (vsx_extract_<mode>_store): Likewise.
25891         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25892         combined into vsx_extract_<mode>_load.
25893         (vsx_extract_<mode>_one_le): Likewise.
25894
25895         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25896         define the top 64-bit vector element.
25897
25898         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25899         constraint.
25900
25901         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25902         Document vec_vbpermq builtin.
25903
25904         PR target/60672
25905         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25906         enable use of xxsldwi and xxpermdi builtin functions.
25907         (vec_xxpermdi): Likewise.
25908
25909         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25910         Document use of vec_xxsldwi and vec_xxpermdi builtins.
25911
25912 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25913
25914         PR rtl-optimization/60650
25915         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25916         first_p.  Use it.
25917         (find_spills_for): New.
25918         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25919         Spill all pseudos on the second iteration.
25920
25921 2014-03-27  Marek Polacek  <polacek@redhat.com>
25922
25923         PR c/50347
25924         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25925         types.
25926
25927 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25928
25929         * config/s390/s390.c (s390_can_use_return_insn): Check for
25930         call-saved FPRs on 31 bit.
25931
25932 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
25933
25934         PR middle-end/60682
25935         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25936         if they need regimplification, just drop them instead of
25937         calling gimple_regimplify_operands on them.
25938
25939 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25940
25941         PR target/60580
25942         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25943         (aarch64_frame_pointer_required): Adjust logic.
25944         (aarch64_can_eliminate): Adjust logic.
25945         (aarch64_override_options_after_change): Adjust logic.
25946
25947 2014-03-27  Dehao Chen  <dehao@google.com>
25948
25949         * ipa-inline.c (early_inliner): Update node's inline info.
25950
25951 2014-03-26  Dehao Chen  <dehao@google.com>
25952
25953         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25954         compiler inserted conditional jumps for NAN float check.
25955
25956 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
25957
25958         * ubsan.h (ubsan_create_data): Change second argument's type
25959         to const location_t *.
25960         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25961         _("<unknown>").
25962         (ubsan_create_data): Change second argument to const location_t *PLOC.
25963         Create Loc field whenever PLOC is non-NULL.
25964         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25965         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25966         callers.
25967
25968         PR other/59545
25969         * real.c (real_to_integer2): Change type of low to UHWI.
25970
25971 2014-03-26  Tobias Burnus  <burnus@net-b.de>
25972
25973         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25974         (CILK_SELF_SPECS): New define.
25975         (driver_self_specs): Use it.
25976
25977 2014-03-26  Richard Biener  <rguenther@suse.de>
25978
25979         * tree-pretty-print.c (percent_K_format): Implement special
25980         case for LTO and its stripped down BLOCK tree.
25981
25982 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
25983
25984         PR sanitizer/60636
25985         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25986
25987         * tree-vrp.c (simplify_internal_call_using_ranges): If only
25988         one range is range_int_cst_p, but not both, at least optimize
25989         addition/subtraction of 0 and multiplication by 0 or 1.
25990         * gimple-fold.c (gimple_fold_call): Fold
25991         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25992         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25993         INTEGER_CSTs, try to fold at least x * 0 and y - y.
25994
25995 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25996
25997         PR rtl-optimization/60452
25998         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25999         <case REG>: Return 1 for invalid offsets from the frame pointer.
26000
26001 2014-03-26  Marek Polacek  <polacek@redhat.com>
26002
26003         PR c/37428
26004         * doc/extend.texi (C Extensions): Mention variable-length arrays in
26005         a structure/union.
26006
26007 2014-03-26  Marek Polacek  <polacek@redhat.com>
26008
26009         PR c/39525
26010         * doc/extend.texi (Designated Inits): Describe what happens to omitted
26011         field members.
26012
26013 2014-03-26  Marek Polacek  <polacek@redhat.com>
26014
26015         PR other/59545
26016         * ira-color.c (update_conflict_hard_regno_costs): Perform the
26017         multiplication in unsigned type.
26018
26019 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
26020
26021         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
26022
26023 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
26024
26025         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
26026
26027 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
26028
26029         PR ipa/60315
26030         * cif-code.def (UNREACHABLE) New code.
26031         * ipa-inline.c (inline_small_functions): Skip edges to
26032         __builtlin_unreachable.
26033         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
26034         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
26035         predicate to __bulitin_unreachable.
26036         (set_cond_stmt_execution_predicate): Fix issue when
26037         invert_tree_comparison returns ERROR_MARK.
26038         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
26039         propagate to inline clones.
26040         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
26041         to unreachable.
26042         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
26043         * cgraphclones.c (cgraph_clone_node): If call destination is already
26044         ureachable, do not redirect it back.
26045         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
26046         unreachable.
26047
26048 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
26049
26050         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
26051         Do not modify inline clones.
26052
26053 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
26054
26055         * config/i386/i386.md (general_sext_operand): New mode attr.
26056         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
26057         don't generate (sign_extend (const_int)).
26058         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
26059         operands[2].  Use We constraint instead of <i> and
26060         <general_sext_operand> predicate instead of <general_operand>.
26061         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
26062         * config/i386/constraints.md (We): New constraint.
26063         * config/i386/predicates.md (x86_64_sext_operand,
26064         sext_operand): New predicates.
26065
26066 2014-03-25  Martin Jambor  <mjambor@suse.cz>
26067
26068         PR ipa/60600
26069         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
26070         inconsistent devirtualizations to __builtin_unreachable.
26071
26072 2014-03-25  Marek Polacek  <polacek@redhat.com>
26073
26074         PR c/35449
26075         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
26076
26077 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
26078
26079         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
26080         order of elements for big-endian.
26081
26082 2014-03-25  Richard Biener  <rguenther@suse.de>
26083
26084         PR middle-end/60635
26085         * gimplify-me.c (gimple_regimplify_operands): Update the
26086         re-gimplifed stmt.
26087
26088 2014-03-25  Martin Jambor  <mjambor@suse.cz>
26089
26090         PR ipa/59176
26091         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
26092         (lto_output_varpool_node): Likewise.
26093         (input_overwrite_node): Likewise.
26094         (input_varpool_node): Likewise.
26095
26096 2014-03-25  Richard Biener  <rguenther@suse.de>
26097
26098         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
26099         (run_gcc): Likewise.
26100
26101 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
26102
26103         * combine.c (simplify_compare_const): Add MODE argument.
26104         Handle mode_width 0 as very large mode_width.
26105         (try_combine, simplify_comparison): Adjust callers.
26106
26107         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
26108         type to avoid signed integer overflow.
26109         * explow.c (plus_constant): Likewise.
26110
26111 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26112
26113         * doc/generic.texi: Correct typos.
26114
26115 2014-03-24  Tobias Burnus  <burnus@net-b.de>
26116
26117         * doc/invoke.texi (-flto): Expand section about
26118         using static libraries with LTO.
26119
26120 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26121
26122         PR rtl-optimization/60501
26123         * optabs.def (addptr3_optab): New optab.
26124         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
26125         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
26126         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
26127
26128         * lra.c (emit_add3_insn): Use the addptr pattern if available.
26129
26130         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
26131
26132 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
26133
26134         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
26135         _mm512_set1_pd.
26136
26137         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
26138         (_mm256_undefined_ps): Define.
26139         (_mm256_undefined_pd): Define.
26140         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
26141         (_mm_undefined_pd): Define.
26142         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
26143         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
26144         (_mm512_undefined_ps): Define.
26145         (_mm512_undefined_pd): Define.
26146         Use _mm*_undefined_*.
26147         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
26148
26149 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
26150
26151         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
26152         (lshr_simd): DI mode added.
26153         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
26154         (aarch64_ushr_simddi): Likewise.
26155         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
26156         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
26157         (vshrd_n_u64): Likewise.
26158
26159 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26160
26161         * Makefile.in (s-macro_list): Depend on cc1.
26162
26163 2014-03-23  Teresa Johnson  <tejohnson@google.com>
26164
26165         * ipa-utils.c (ipa_print_order): Use specified dump file.
26166
26167 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
26168
26169         PR rtl-optimization/60601
26170         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
26171
26172         * gcc.c (eval_spec_function): Initialize save_growing_value.
26173
26174 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
26175
26176         PR sanitizer/60613
26177         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
26178         code == MINUS_EXPR, never swap op0 with op1.
26179
26180         * toplev.c (init_local_tick): Avoid signed integer multiplication
26181         overflow.
26182         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
26183         shift by first operand's bitsize.
26184
26185 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
26186
26187         PR target/60610
26188         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
26189         redefine to 1 or 0.
26190         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
26191         TARGET_ISA_64BIT_P(x).
26192
26193 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26194
26195         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
26196         pattern for vector nor instead of subtract from splat(-1).
26197         (altivec_expand_vec_perm_const_le): Likewise.
26198
26199 2014-03-21  Richard Henderson  <rth@twiddle.net>
26200
26201         PR target/60598
26202         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
26203         related insns after epilogue_completed.
26204
26205 2014-03-21  Martin Jambor  <mjambor@suse.cz>
26206
26207         PR ipa/59176
26208         * cgraph.h (symtab_node): New flag body_removed.
26209         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
26210         when removing bodies.
26211         * symtab.c (dump_symtab_base): Dump body_removed flag.
26212         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
26213         had their bodies removed.
26214
26215 2014-03-21  Martin Jambor  <mjambor@suse.cz>
26216
26217         PR ipa/60419
26218         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
26219         in the border.
26220
26221 2014-03-21  Richard Biener  <rguenther@suse.de>
26222
26223         PR tree-optimization/60577
26224         * tree-core.h (struct tree_base): Document nothrow_flag use
26225         in DECL_NONALIASED.
26226         * tree.h (DECL_NONALIASED): New.
26227         (may_be_aliased): Adjust.
26228         * coverage.c (build_var): Set DECL_NONALIASED.
26229
26230 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26231
26232         * expr.c (expand_expr_real_1): Remove outdated comment.
26233
26234 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
26235
26236         PR middle-end/60597
26237         * ira.c (adjust_cleared_regs): Call copy_rtx on
26238         *reg_equiv[REGNO (loc)].src_p before passing it to
26239         simplify_replace_fn_rtx.
26240
26241         PR target/60568
26242         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
26243         into CONST, put pic register as first operand of PLUS.  Use
26244         gen_const_mem for both 32-bit and 64-bit PIC got loads.
26245
26246 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26247
26248         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
26249
26250 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26251
26252         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
26253         around for store forwarding issue in the FPU on the UT699.
26254         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
26255         loads and operations if -mfix-ut699 is specified.
26256         (divtf3_hq): Tweak attribute.
26257         (sqrttf2_hq): Likewise.
26258
26259 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26260
26261         * calls.c (store_one_arg): Remove incorrect const qualification on the
26262         type of the temporary.
26263         * cfgexpand.c (expand_return): Likewise.
26264         * expr.c (expand_constructor): Likewise.
26265         (expand_expr_real_1): Likewise.
26266
26267 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26268
26269         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
26270         of parts.
26271
26272 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26273
26274         PR target/60039
26275         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
26276
26277 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
26278
26279         * config/arm/aarch-common-protos.h
26280         (alu_cost_table): Fix spelling of "extend".
26281         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
26282
26283 2014-03-19  Richard Biener  <rguenther@suse.de>
26284
26285         PR middle-end/60553
26286         * tree-core.h (tree_type_common): Re-order pointer members
26287         to reduce recursion depth during GC walks.
26288
26289 2014-03-19  Marek Polacek  <polacek@redhat.com>
26290
26291         PR sanitizer/60569
26292         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
26293         before accessing it.
26294
26295 2014-03-19  Richard Biener  <rguenther@suse.de>
26296
26297         PR lto/59543
26298         * lto-streamer-in.c (input_function): In WPA stage do not drop
26299         debug stmts.
26300
26301 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
26302
26303         PR tree-optimization/60559
26304         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
26305         with build_zero_cst assignment.
26306
26307 2014-03-18  Kai Tietz  <ktietz@redhat.com>
26308
26309         PR rtl-optimization/56356
26310         * sdbout.c (sdbout_parms): Verify that parms'
26311         incoming argument is valid.
26312         (sdbout_reg_parms): Likewise.
26313
26314 2014-03-18  Richard Henderson  <rth@redhat.com>
26315
26316         PR target/60562
26317         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
26318         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
26319         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
26320
26321 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
26322
26323         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
26324         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
26325         Italicize plugin event names in description.  Explain that
26326         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
26327         Remind that no GCC functions should be called after PLUGIN_FINISH.
26328         Explain what pragmas with expansion are.
26329
26330 2014-03-18  Martin Liska  <mliska@suse.cz>
26331
26332         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
26333         gimple call statement is update.
26334         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
26335         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
26336
26337 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
26338
26339         PR sanitizer/60557
26340         * ubsan.c (ubsan_instrument_unreachable): Call
26341         initialize_sanitizer_builtins.
26342         (ubsan_pass): Likewise.
26343
26344         PR sanitizer/60535
26345         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
26346         varpool_finalize_decl instead of rest_of_decl_compilation.
26347
26348 2014-03-18  Richard Biener  <rguenther@suse.de>
26349
26350         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
26351         by using bitmap_and_compl instead of bitmap_and_compl_into.
26352         (df_rd_transfer_function): Likewise.
26353
26354 2014-03-18  Richard Biener  <rguenther@suse.de>
26355
26356         * doc/lto.texi (fresolution): Fix typo.
26357
26358 2014-03-18  Richard Biener  <rguenther@suse.de>
26359
26360         * doc/invoke.texi (flto): Update for changes in 4.9.
26361
26362 2014-03-18  Richard Biener  <rguenther@suse.de>
26363
26364         * doc/loop.texi: Remove section on the removed lambda framework.
26365         Update loop docs with recent changes in preserving loop structure.
26366
26367 2014-03-18  Richard Biener  <rguenther@suse.de>
26368
26369         * doc/lto.texi (-fresolution): Document.
26370
26371 2014-03-18  Richard Biener  <rguenther@suse.de>
26372
26373         * doc/contrib.texi: Adjust my name.
26374
26375 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
26376
26377         PR ipa/58721
26378         * internal-fn.c: Include diagnostic-core.h.
26379         (expand_BUILTIN_EXPECT): New function.
26380         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
26381         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
26382         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
26383         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
26384         IFN_BUILTIN_EXPECT.
26385         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
26386         Revert 3 argument __builtin_expect code.
26387         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
26388         * gimple-fold.c (gimple_fold_call): Likewise.
26389         * tree.h (fold_builtin_expect): New prototype.
26390         * builtins.c (build_builtin_expect_predicate): Add predictor
26391         argument, if non-NULL, create 3 argument __builtin_expect.
26392         (fold_builtin_expect): No longer static.  Add ARG2 argument,
26393         pass it through to build_builtin_expect_predicate.
26394         (fold_builtin_2): Adjust caller.
26395         (fold_builtin_3): Handle BUILT_IN_EXPECT.
26396         * internal-fn.def (BUILTIN_EXPECT): New.
26397
26398 2014-03-18  Tobias Burnus  <burnus@net-b.de>
26399
26400         PR ipa/58721
26401         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
26402         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
26403         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
26404
26405 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
26406
26407         PR ipa/58721
26408         * predict.c (combine_predictions_for_bb): Fix up formatting.
26409         (expr_expected_value_1, expr_expected_value): Add predictor argument,
26410         fill what it points to if non-NULL.
26411         (tree_predict_by_opcode): Adjust caller, use the predictor.
26412         * predict.def (PRED_COMPARE_AND_SWAP): Add.
26413
26414 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
26415
26416         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
26417         proper constant for the store mode.
26418
26419 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
26420
26421         * symtab.c (change_decl_assembler_name): Fix transparent alias
26422         chain construction.
26423
26424 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
26425
26426         * config/aarch64/aarch64.c: Correct the comments about the
26427         aarch64 stack layout.
26428
26429 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
26430
26431         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
26432         check for GF_OMP_FOR_KIND_FOR.
26433
26434 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
26435
26436         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
26437         ymm and zmm register names.
26438
26439 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
26440
26441         PR target/60516
26442         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
26443         note creation for the 2010-08-31 changes.
26444
26445 2014-03-17  Marek Polacek  <polacek@redhat.com>
26446
26447         PR middle-end/60534
26448         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
26449         as -fno-tree-loop-vectorize.
26450         (expand_omp_simd): Likewise.
26451
26452 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26453
26454         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
26455         (eligible_for_call_delay): New prototype.
26456         * config/sparc/sparc.c (tls_call_delay): Rename into...
26457         (eligible_for_call_delay): ...this.  Return false if the instruction
26458         cannot be put in the delay slot of a branch.
26459         (eligible_for_restore_insn): Simplify.
26460         (eligible_for_return_delay): Return false if the instruction cannot be
26461         put in the delay slot of a branch and simplify.
26462         (eligible_for_sibcall_delay): Return false if the instruction cannot be
26463         put in the delay slot of a branch.
26464         * config/sparc/sparc.md (fix_ut699): New attribute.
26465         (tls_call_delay): Delete.
26466         (in_call_delay): Reimplement.
26467         (eligible_for_sibcall_delay): Rename into...
26468         (in_sibcall_delay): ...this.
26469         (eligible_for_return_delay): Rename into...
26470         (in_return_delay): ...this.
26471         (in_branch_delay): Reimplement.
26472         (in_uncond_branch_delay): Delete.
26473         (in_annul_branch_delay): Delete.
26474
26475 2014-03-14  Richard Henderson  <rth@redhat.com>
26476
26477         PR target/60525
26478         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26479         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26480         (*floathi<X87MODEF>2_i387_with_temp): Remove.
26481         (floathi splitters): Remove.
26482         (float<SWI48x>xf2): New pattern.
26483         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
26484         code that tried to handle DImode for 32-bit, but which was excluded
26485         by the pattern's condition.  Drop allocation of stack temporary.
26486         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26487         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26488         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26489         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26490         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26491         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26492         (*float<SWI48><MODEF>2_sse_interunit): Remove.
26493         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26494         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26495         (*float<SWI48x><X87MODEF>2_i387): Remove.
26496         (all float _with_temp splitters): Remove.
26497         (*float<SWI48x><MODEF>2_i387): New pattern.
26498         (*float<SWI48><MODEF>2_sse): New pattern.
26499         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26500         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26501
26502 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
26503             Marek Polacek  <polacek@redhat.com>
26504
26505         PR middle-end/60484
26506         * common.opt (dump_base_name_prefixed): New Variable.
26507         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26508         if x_dump_base_name_prefixed is already set, set it at the end.
26509
26510 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
26511
26512         PR rtl-optimization/60508
26513         * lra-constraints.c (get_reload_reg): Add new parameter
26514         in_subreg_p.
26515         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26516         Pass the new parameter values.
26517
26518 2014-03-14  Richard Biener  <rguenther@suse.de>
26519
26520         * common.opt: Revert unintented changes from r205065.
26521         * opts.c: Likewise.
26522
26523 2014-03-14  Richard Biener  <rguenther@suse.de>
26524
26525         PR middle-end/60518
26526         * cfghooks.c (split_block): Properly adjust all loops the
26527         block was a latch of.
26528
26529 2014-03-14  Martin Jambor  <mjambor@suse.cz>
26530
26531         PR lto/60461
26532         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26533         and simplify it.
26534
26535 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
26536
26537         PR target/59396
26538         * config/avr/avr.c (avr_set_current_function): Pass function name
26539         through default_strip_name_encoding before sanity checking instead
26540         of skipping the first char of the assembler name.
26541
26542 2014-03-13  Richard Henderson  <rth@redhat.com>
26543
26544         PR debug/60438
26545         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26546         (ix86_force_to_memory, ix86_free_from_memory): Remove.
26547         * config/i386/i386-protos.h: Likewise.
26548         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26549         in the expander instead of a splitter.
26550         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26551         any possibility of requiring a memory.
26552         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26553         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26554         (fp branch splitters): Update for ix86_split_fp_branch.
26555         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26556         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26557         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26558         (*fop_<MODEF>_2_i387): Remove f/r alternative.
26559         (*fop_<MODEF>_3_i387): Likewise.
26560         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26561         (splitters for the fop_* register patterns): Remove.
26562         (fscalexf4_i387): Rename from *fscalexf4_i387.
26563         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26564
26565 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
26566
26567         PR tree-optimization/59779
26568         * tree-dfa.c (get_ref_base_and_extent): Use double_int
26569         type for bitsize and maxsize instead of HOST_WIDE_INT.
26570
26571 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
26572
26573         PR rtl-optimization/57320
26574         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26575         the CFG after thread_prologue_and_epilogue_insns.
26576
26577 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
26578
26579         PR rtl-optimization/57189
26580         * lra-constraints.c (process_alt_operands): Disfavor spilling
26581         vector pseudos.
26582
26583 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
26584
26585         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26586
26587 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
26588
26589         PR tree-optimization/59025
26590         PR middle-end/60418
26591         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26592         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26593
26594 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
26595
26596         PR target/60486
26597         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26598         calls of avr_out_plus_1.
26599
26600 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
26601
26602         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26603         BB's single pred and update the father loop's latch info later.
26604
26605 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26606
26607         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26608         (VEC_M): Likewise.
26609         (VEC_N): Likewise.
26610         (VEC_R): Likewise.
26611         (VEC_base): Likewise.
26612         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26613         registers, we need to swap double words in little endian mode.
26614
26615         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26616         to be a container mode for 128-bit integer operations added in ISA
26617         2.07.  Unlike TImode and PTImode, the preferred register set is
26618         the Altivec/VMX registers for the 128-bit operations.
26619
26620         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26621         declarations.
26622         (rs6000_split_128bit_ok_p): Likewise.
26623
26624         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26625         macros for creating ISA 2.07 normal and overloaded builtin
26626         functions with 3 arguments.
26627         (BU_P8V_OVERLOAD_3): Likewise.
26628         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26629         for use as overloaded functions.
26630         (VPERM_1TI_UNS): Likewise.
26631         (VSEL_1TI): Likewise.
26632         (VSEL_1TI_UNS): Likewise.
26633         (ST_INTERNAL_1ti): Likewise.
26634         (LD_INTERNAL_1ti): Likewise.
26635         (XXSEL_1TI): Likewise.
26636         (XXSEL_1TI_UNS): Likewise.
26637         (VPERM_1TI): Likewise.
26638         (VPERM_1TI_UNS): Likewise.
26639         (XXPERMDI_1TI): Likewise.
26640         (SET_1TI): Likewise.
26641         (LXVD2X_V1TI): Likewise.
26642         (STXVD2X_V1TI): Likewise.
26643         (VEC_INIT_V1TI): Likewise.
26644         (VEC_SET_V1TI): Likewise.
26645         (VEC_EXT_V1TI): Likewise.
26646         (EQV_V1TI): Likewise.
26647         (NAND_V1TI): Likewise.
26648         (ORC_V1TI): Likewise.
26649         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26650         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
26651         overloaded builtin.
26652         (VADDUQM): Likewise.
26653         (VSUBCUQ): Likewise.
26654         (VADDEUQM): Likewise.
26655         (VADDECUQ): Likewise.
26656         (VSUBEUQM): Likewise.
26657         (VSUBECUQ): Likewise.
26658
26659         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26660         __int128_t and __uint128_t types.
26661         (__uint128_type): Likewise.
26662         (altivec_categorize_keyword): Add support for vector __int128_t,
26663         vector __uint128_t, vector __int128, and vector unsigned __int128
26664         as a container type for TImode operations that need to be done in
26665         VSX/Altivec registers.
26666         (rs6000_macro_to_expand): Likewise.
26667         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26668         to support 128-bit integer instructions vaddcuq, vadduqm,
26669         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26670         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26671
26672         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26673         for V1TImode, and set up preferences to use VSX/Altivec registers.
26674         Setup VSX reload handlers.
26675         (rs6000_debug_reg_global): Likewise.
26676         (rs6000_init_hard_regno_mode_ok): Likewise.
26677         (rs6000_preferred_simd_mode): Likewise.
26678         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26679         (easy_altivec_constant): Likewise.
26680         (output_vec_const_move): Likewise.
26681         (rs6000_expand_vector_set): Convert V1TImode set and extract to
26682         simple move.
26683         (rs6000_expand_vector_extract): Likewise.
26684         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26685         addressing.
26686         (rs6000_const_vec): Add support for V1TImode.
26687         (rs6000_emit_le_vsx_load): Swap double words when loading or
26688         storing TImode/V1TImode.
26689         (rs6000_emit_le_vsx_store): Likewise.
26690         (rs6000_emit_le_vsx_move): Likewise.
26691         (rs6000_emit_move): Add support for V1TImode.
26692         (altivec_expand_ld_builtin): Likewise.
26693         (altivec_expand_st_builtin): Likewise.
26694         (altivec_expand_vec_init_builtin): Likewise.
26695         (altivec_expand_builtin): Likewise.
26696         (rs6000_init_builtins): Add support for V1TImode type.  Add
26697         support for ISA 2.07 128-bit integer builtins.  Define type names
26698         for the VSX/Altivec vector types.
26699         (altivec_init_builtins): Add support for overloaded vector
26700         functions with V1TImode type.
26701         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26702         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26703         external function.
26704         (rs6000_split_128bit_ok_p): Likewise.
26705         (rs6000_handle_altivec_attribute): Create V1TImode from vector
26706         __int128_t and vector __uint128_t.
26707
26708         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26709         and mode attributes.
26710         (VSX_M): Likewise.
26711         (VSX_M2): Likewise.
26712         (VSm): Likewise.
26713         (VSs): Likewise.
26714         (VSr): Likewise.
26715         (VSv): Likewise.
26716         (VS_scalar): Likewise.
26717         (VS_double): Likewise.
26718         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26719
26720         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26721         we support the ISA 2.07 128-bit integer arithmetic instructions.
26722         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26723         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26724         and TImode types for use with the builtin functions.
26725         (V1TI_type_node): Likewise.
26726         (unsigned_V1TI_type_node): Likewise.
26727         (intTI_type_internal_node): Likewise.
26728         (uintTI_type_internal_node): Likewise.
26729
26730         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26731         128-bit builtin functions.
26732         (UNSPEC_VADDEUQM): Likewise.
26733         (UNSPEC_VADDECUQ): Likewise.
26734         (UNSPEC_VSUBCUQ): Likewise.
26735         (UNSPEC_VSUBEUQM): Likewise.
26736         (UNSPEC_VSUBECUQ): Likewise.
26737         (VM): Add V1TImode to vector mode iterators.
26738         (VM2): Likewise.
26739         (VI_unit): Likewise.
26740         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26741         (altivec_vaddcuq): Likewise.
26742         (altivec_vsubuqm): Likewise.
26743         (altivec_vsubcuq): Likewise.
26744         (altivec_vaddeuqm): Likewise.
26745         (altivec_vaddecuq): Likewise.
26746         (altivec_vsubeuqm): Likewise.
26747         (altivec_vsubecuq): Likewise.
26748
26749         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26750         mode iterators.
26751         (BOOL_128): Likewise.
26752         (BOOL_REGS_OUTPUT): Likewise.
26753         (BOOL_REGS_OP1): Likewise.
26754         (BOOL_REGS_OP2): Likewise.
26755         (BOOL_REGS_UNARY): Likewise.
26756         (BOOL_REGS_AND_CR0): Likewise.
26757
26758         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26759         128-bit integer builtin support.
26760         (vec_vadduqm): Likewise.
26761         (vec_vaddecuq): Likewise.
26762         (vec_vaddeuqm): Likewise.
26763         (vec_vsubecuq): Likewise.
26764         (vec_vsubeuqm): Likewise.
26765         (vec_vsubcuq): Likewise.
26766         (vec_vsubuqm): Likewise.
26767
26768         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26769         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26770         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26771         128-bit integer add/subtract to ISA 2.07.
26772
26773 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26774
26775         * config/arc/arc.c (arc_predicate_delay_insns):
26776         Fix third argument passed to conditionalize_nonjump.
26777
26778 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
26779
26780         * config/aarch64/aarch64-builtins.c
26781         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26782         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26783         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26784         instead of __builtin_lfloor.
26785         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26786
26787 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26788
26789         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26790         (tree_ssa_ifcombine_bb_1): New function.
26791         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
26792         is an empty forwarder block to then_bb or vice versa and then_bb
26793         and else_bb are effectively swapped.
26794
26795 2014-03-12  Christian Bruel  <christian.bruel@st.com>
26796
26797         PR target/60264
26798         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26799         REG_CFA_DEF_CFA note.
26800         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26801         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26802
26803 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26804
26805         PR tree-optimization/60454
26806         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26807
26808 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26809
26810         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26811         Do not define target_cpu_default2 to generic.
26812         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26813         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26814         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26815
26816 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26817             Marc Glisse  <marc.glisse@inria.fr>
26818
26819         PR tree-optimization/60502
26820         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26821         instead of build_low_bits_mask.
26822
26823 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26824
26825         PR middle-end/60482
26826         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26827         if there are multiple uses, but op doesn't live on E edge.
26828         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26829         clobber stmts before __builtin_unreachable.
26830
26831 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
26832
26833         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26834         hard_frame_pointer_rtx.
26835         * cse.c (cse_insn): Remove volatile check.
26836         * cselib.c (cselib_process_insn): Likewise.
26837         * dse.c (scan_insn): Likewise.
26838
26839 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26840
26841         * config/arc/arc.c (conditionalize_nonjump): New function,
26842         broken out of ...
26843         (arc_ifcvt): ... this.
26844         (arc_predicate_delay_insns): Use it.
26845
26846 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26847
26848         * config/arc/predicates.md (extend_operand): During/after reload,
26849         allow const_int_operand.
26850         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26851         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
26852         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26853         to "i".
26854         (umulsi3_highpart_i): Likewise.
26855
26856 2014-03-11  Richard Biener  <rguenther@suse.de>
26857
26858         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26859         Add asserts to guard possible wrong-code bugs.
26860
26861 2014-03-11  Richard Biener  <rguenther@suse.de>
26862
26863         PR tree-optimization/60429
26864         PR tree-optimization/60485
26865         * tree-ssa-structalias.c (set_union_with_increment): Properly
26866         take into account all fields that overlap the shifted vars.
26867         (do_sd_constraint): Likewise.
26868         (do_ds_constraint): Likewise.
26869         (get_constraint_for_ptr_offset): Likewise.
26870
26871 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
26872
26873         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26874         (nios2_compute_frame_layout):
26875         Add calculation of cfun->machine->fp_save_offset.
26876         (nios2_expand_prologue): Correct setting of frame pointer register
26877         in prologue.
26878         (nios2_expand_epilogue): Update recovery of stack pointer from
26879         frame pointer accordingly.
26880         (nios2_initial_elimination_offset): Update calculation of offset
26881         for eliminating to HARD_FRAME_POINTER_REGNUM.
26882
26883 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
26884
26885         PR ipa/60457
26886         * ipa.c (symtab_remove_unreachable_nodes): Don't call
26887         cgraph_get_create_node on VAR_DECLs.
26888
26889 2014-03-10  Richard Biener  <rguenther@suse.de>
26890
26891         PR middle-end/60474
26892         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26893
26894 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
26895
26896         * config/vms/vms.opt (vms_float_format): New variable.
26897
26898 2014-03-08  Tobias Burnus  <burnus@net-b.de>
26899
26900         * doc/invoke.texi (-fcilkplus): Update implementation status.
26901
26902 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
26903             Richard Biener  <rguenther@suse.de>
26904
26905         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26906         consistently accross all TUs.
26907         (run_gcc): Enable -fshort-double automatically at link at link-time
26908         and disallow override.
26909
26910 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
26911
26912         PR target/58271
26913         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26914         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26915         if they can't be used.
26916
26917 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26918
26919         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26920         for Solaris 11/x86 ld.
26921         * configure: Regenerate.
26922
26923 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26924
26925         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26926         (LIB_TLS_SPEC): Save as ld_tls_libs.
26927         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26928         (HAVE_AS_IX86_TLSLDM): New test.
26929         * configure, config.in: Regenerate.
26930         * config/i386/i386.c (legitimize_tls_address): Fall back to
26931         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26932         cannot support TLS_MODEL_LOCAL_DYNAMIC.
26933         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26934         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26935
26936 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
26937
26938         * common.opt (fira-loop-pressure): Mark as optimization.
26939
26940 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
26941
26942         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26943         an OpenMP mappable type.
26944
26945 2014-03-06  Matthias Klose  <doko@ubuntu.com>
26946
26947         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26948         MULTILIB_OSDIRNAMES is not defined.
26949
26950 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
26951             Meador Inge  <meadori@codesourcery.com>
26952
26953         PR target/58595
26954         * config/arm/arm.c (arm_tls_symbol_p): Remove.
26955         (arm_legitimize_address): Call legitimize_tls_address for any
26956         arm_tls_referenced_p expression, handle constant addend.  Call it
26957         before testing for !TARGET_ARM.
26958         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26959
26960 2014-03-06  Richard Biener  <rguenther@suse.de>
26961
26962         PR middle-end/60445
26963         PR lto/60424
26964         PR lto/60427
26965         Revert
26966         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
26967
26968         * tree-streamer.c (record_common_node): Assert we don't record
26969         nodes with type double.
26970         (preload_common_node): Skip type double, complex double and double
26971         pointer since it is now frontend dependent due to fshort-double option.
26972
26973 2014-03-06  Richard Biener  <rguenther@suse.de>
26974
26975         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26976         or -fno-lto is specified and the linker has full plugin support.
26977         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26978         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26979         * lto-wrapper.c (merge_and_complain): Merge compile-time
26980         optimization levels.
26981         (run_gcc): And pass it through to the link options.
26982
26983 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
26984
26985         PR debug/60381
26986         Revert:
26987         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26988         PR debug/59992
26989         * cselib.c (remove_useless_values): Skip to avoid quadratic
26990         behavior if the condition moved from...
26991         (cselib_process_insn): ... here holds.
26992
26993 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
26994
26995         PR plugins/59335
26996         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26997         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26998
26999         PR plugins/59335
27000         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
27001         (TM_H): Add x86-tune.def.
27002
27003 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27004
27005         * config/aarch64/aarch64.c (generic_tunings):
27006         Use cortexa57_extra_costs.
27007
27008 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
27009
27010         PR lto/60404
27011         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
27012         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
27013         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
27014         cost for in_lto_p.
27015
27016 2014-03-04  Heiher  <r@hev.cc>
27017
27018         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
27019         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
27020
27021 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
27022
27023         * config/i386/predicates.md (const2356_operand): Change to ...
27024         (const2367_operand): ... this.
27025         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
27026         const2367_operand.
27027         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27028         (*avx512pf_scatterpf<mode>sf): Ditto.
27029         (avx512pf_scatterpf<mode>df): Ditto.
27030         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27031         (*avx512pf_scatterpf<mode>df): Ditto.
27032         * config/i386/i386.c (ix86_expand_builtin): Update
27033         incorrect hint operand error message.
27034
27035 2014-03-04  Richard Biener  <rguenther@suse.de>
27036
27037         * lto-section-in.c (lto_get_section_data): Fix const cast.
27038
27039 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
27040
27041         * tree-streamer.c (record_common_node): Assert we don't record
27042         nodes with type double.
27043         (preload_common_node): Skip type double, complex double and double
27044         pointer since it is now frontend dependent due to fshort-double option.
27045
27046 2014-03-04  Richard Biener  <rguenther@suse.de>
27047
27048         PR lto/60405
27049         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
27050         (lto_input_toplevel_asms): Likewise.
27051         * lto-section-in.c (lto_get_section_data): Instead do it here
27052         for every section.
27053
27054 2014-03-04  Richard Biener  <rguenther@suse.de>
27055
27056         PR tree-optimization/60382
27057         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
27058         dead PHIs a reduction.
27059
27060 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
27061
27062         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
27063         hint value.
27064         (_mm_prefetch): Move out of GCC target("sse") pragma.
27065         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
27066         GCC target("prfchw") pragma.
27067         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
27068         for locality <= 2.
27069         * config/i386/i386.c (ix86_option_override_internal): Enable
27070         -mprfchw with -mprefetchwt1.
27071
27072 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27073
27074         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
27075         Mark as varying.
27076
27077 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27078
27079         * opts.h (CL_PCH_IGNORE): Define.
27080         * targhooks.c (option_affects_pch_p):
27081         Return false for options that have CL_PCH_IGNORE set.
27082         * opt-functions.awk: Process PchIgnore.
27083         * doc/options.texi: Document PchIgnore.
27084
27085         * config/arc/arc.opt (misize): Add PchIgnore property.
27086
27087 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27088
27089         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
27090         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
27091         constraint on constants to permit them being loaded into
27092         GENERAL_REGS or BASE_REGS.
27093
27094 2014-03-03  Nick Clifton  <nickc@redhat.com>
27095
27096         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
27097         anti-cacnonical alternatives.
27098         (negandhi3_real): New pattern.
27099         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
27100
27101 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27102
27103         * config/avr/avr-mcus.def: Remove atxmega16x1.
27104         * config/avr/avr-tables.opt: Regenerate.
27105         * config/avr/t-multilib: Regenerate.
27106         * doc/avr-mmcu.texi: Regenerate.
27107
27108 2014-03-03  Tobias Grosser  <tobias@grosser.es>
27109             Mircea Namolaru  <mircea.namolaru@inria.fr>
27110
27111         PR tree-optimization/58028
27112         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
27113         scalar dimensions.
27114
27115 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27116
27117         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
27118         not handled by recognizers.
27119
27120 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
27121
27122         PR middle-end/60175
27123         * function.c (expand_function_end): Don't emit
27124         clobber_return_register sequence if clobber_after is a BARRIER.
27125         * cfgexpand.c (construct_exit_block): Append instructions before
27126         return_label to prev_bb.
27127
27128 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27129
27130         * config/rs6000/constraints.md: Document reserved use of "wc".
27131
27132 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
27133
27134         PR ipa/60150
27135         * ipa.c (function_and_variable_visibility): When dissolving comdat
27136         group, also set all symbols to local.
27137
27138 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
27139
27140         PR ipa/60306
27141
27142         Revert:
27143         2013-12-14  Jan Hubicka  <jh@suse.cz>
27144         PR middle-end/58477
27145         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
27146
27147 2014-03-02  Jon Beniston  <jon@beniston.com>
27148
27149         PR bootstrap/48230
27150         PR bootstrap/50927
27151         PR bootstrap/52466
27152         PR target/46898
27153         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
27154           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
27155         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
27156         (simple_return, *simple_return): New patterns
27157         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
27158         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
27159
27160 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
27161
27162         * dwarf2out.c (gen_subprogram_die): Tidy.
27163
27164 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
27165
27166         PR target/60071
27167         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
27168         (*mov_t_msb_neg_negc): ... this new insn.
27169
27170 2014-02-28  Jason Merrill  <jason@redhat.com>
27171
27172         PR c++/58678
27173         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
27174         function.
27175
27176 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
27177
27178         PR c++/60314
27179         * dwarf2out.c (decltype_auto_die): New static.
27180         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
27181         (gen_type_die_with_usage): Handle 'decltype(auto)'.
27182         (is_cxx_auto): Likewise.
27183
27184 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
27185
27186         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
27187         we are not using general regs only.
27188
27189 2014-02-28  Richard Biener  <rguenther@suse.de>
27190
27191         PR target/60280
27192         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
27193         previous fix and only allow to remove trivial pre-headers
27194         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
27195         (remove_forwarder_block): Properly update the latch of a loop.
27196
27197 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27198
27199         PR debug/59992
27200         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
27201         (cselib_preserved_hash_table): New.
27202         (preserve_constants_and_equivs): Move preserved vals to it.
27203         (cselib_find_slot): Look it up first.
27204         (cselib_init): Initialize it.
27205         (cselib_finish): Release it.
27206         (dump_cselib_table): Dump it.
27207
27208 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27209
27210         PR debug/59992
27211         * cselib.c (remove_useless_values): Skip to avoid quadratic
27212         behavior if the condition moved from...
27213         (cselib_process_insn): ... here holds.
27214
27215 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
27216
27217         PR debug/57232
27218         * var-tracking.c (vt_initialize): Apply the same condition to
27219         preserve the CFA base value.
27220
27221 2014-02-28  Joey Ye  <joey.ye@arm.com>
27222
27223         PR target/PR60169
27224         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
27225         if reload in progress or completed.
27226
27227 2014-02-28  Tobias Burnus  <burnus@net-b.de>
27228
27229         PR middle-end/60147
27230         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
27231         NAMELIST_DECL.
27232
27233 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
27234
27235         * doc/tm.texi.in (Condition Code Status): Update documention for
27236         relative locations of cc0-setter and cc0-user.
27237
27238 2014-02-27  Jeff Law  <law@redhat.com>
27239
27240         PR rtl-optimization/52714
27241         * combine.c (try_combine): When splitting an unrecognized PARALLEL
27242         into two independent simple sets, if I3 is a jump, ensure the
27243         pattern we place into I3 is a (set (pc) ...).
27244
27245 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
27246             Jeff Law  <law@redhat.com>
27247
27248         PR rtl-optimization/49847
27249         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
27250         are in different blocks.
27251         * doc/tm.texi (Condition Code Status): Update documention for
27252         relative locations of cc0-setter and cc0-user.
27253
27254 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27255
27256         PR target/59222
27257         * lra.c (lra_emit_add): Check SUBREG too.
27258
27259 2014-02-27  Andreas Schwab  <schwab@suse.de>
27260
27261         * config/m68k/m68k.c (m68k_option_override): Disable
27262         -flive-range-shrinkage for classic m68k.
27263         (m68k_override_options_after_change): Likewise.
27264
27265 2014-02-27  Marek Polacek  <polacek@redhat.com>
27266
27267         PR middle-end/59223
27268         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
27269         -Wmaybe-uninitialized.
27270
27271 2014-02-27  Alan Modra  <amodra@gmail.com>
27272
27273         PR target/57936
27274         * reload1.c (emit_input_reload_insns): When reload_override_in,
27275         set old to rl->in_reg when rl->in_reg is a subreg.
27276
27277 2014-02-26  Richard Biener  <rguenther@suse.de>
27278
27279         PR bootstrap/60343
27280         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
27281
27282 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
27283
27284         * common/config/i386/predicates.md (const1256_operand): Remove.
27285         (const2356_operand): New.
27286         (const_1_to_2_operand): Remove.
27287         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27288         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27289         (*avx512pf_gatherpf<mode>sf): Ditto.
27290         (avx512pf_gatherpf<mode>df): Ditto.
27291         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27292         (*avx512pf_gatherpf<mode>df): Ditto.
27293         (avx512pf_scatterpf<mode>sf): Ditto.
27294         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27295         (*avx512pf_scatterpf<mode>sf): Ditto.
27296         (avx512pf_scatterpf<mode>df): Ditto.
27297         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27298         (*avx512pf_scatterpf<mode>df): Ditto.
27299         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
27300
27301 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
27302
27303         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
27304         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
27305         (_mm512_mask_testn_epi64_mask): Move to ...
27306         * config/i386/avx512cdintrin.h: Here.
27307         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
27308         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
27309         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
27310         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
27311         TARGET_AVX512F from TARGET_AVX512CD.
27312
27313 2014-02-26  Richard Biener  <rguenther@suse.de>
27314
27315         PR ipa/60327
27316         * ipa.c (walk_polymorphic_call_targets): Properly guard
27317         call to inline_update_overall_summary.
27318
27319 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
27320
27321         PR target/60280
27322         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
27323         and latches only if requested.  Fix latch if it is removed.
27324         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
27325         LOOPS_HAVE_PREHEADERS.
27326
27327 2014-02-25  Andrew Pinski  <apinski@cavium.com>
27328
27329         * builtins.c (expand_builtin_thread_pointer): Create a new target
27330         when the target is NULL.
27331
27332 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
27333
27334         PR rtl-optimization/60317
27335         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27336         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27337         * lra-assigns.c: Include params.h.
27338         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
27339         other reload pseudos considerations.
27340
27341 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27342
27343         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
27344         to use canonical form for nor<mode>3.
27345
27346 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27347
27348         PR target/55426
27349         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
27350         conversions.
27351
27352 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
27353
27354         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
27355         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
27356         (ix86_handle_option): Handle OPT_mprefetchwt1.
27357         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
27358         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27359         PREFETCHWT1 CPUID.
27360         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27361         OPTION_MASK_ISA_PREFETCHWT1.
27362         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
27363         (PTA_PREFETCHWT1): New.
27364         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
27365         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
27366         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
27367         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
27368         (*prefetch_avx512pf_<mode>_: Change into ...
27369         (*prefetch_prefetchwt1_<mode>: This.
27370         * config/i386/i386.opt (mprefetchwt1): New.
27371         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
27372         (_mm_prefetch): Handle intent to write.
27373         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
27374
27375 2014-02-25  Richard Biener  <rguenther@suse.de>
27376
27377         PR middle-end/60291
27378         * emit-rtl.c (mem_attrs_htab): Remove.
27379         (mem_attrs_htab_hash): Likewise.
27380         (mem_attrs_htab_eq): Likewise.
27381         (set_mem_attrs): Always allocate new mem-attrs when something changed.
27382         (init_emit_once): Do not allocate mem_attrs_htab.
27383
27384 2014-02-25  Richard Biener  <rguenther@suse.de>
27385
27386         PR lto/60319
27387         * lto-opts.c (lto_write_options): Output non-explicit conservative
27388         -fwrapv, -fno-trapv and -fno-strict-overflow.
27389         * lto-wrapper.c (merge_and_complain): Handle merging those options.
27390         (run_gcc): And pass them through.
27391
27392 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
27393
27394         * sel-sched.c (calculate_new_fences): New parameter ptime.
27395         Calculate it as a maximum over all fence cycles.
27396         (sel_sched_region_2): Adjust the call to calculate_new_fences.
27397         Print the final schedule timing when sched_verbose.
27398
27399 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
27400
27401         PR rtl-optimization/60292
27402         * sel-sched.c (fill_vec_av_set): Do not reset target availability
27403         bit fot the fence instruction.
27404
27405 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
27406
27407         * calls.h: Fix typo in comment.
27408
27409 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
27410
27411         * config/pa/pa.c (pa_output_move_double): Don't valididate when
27412         adjusting offsetable addresses.
27413
27414 2014-02-24  Guozhi Wei  <carrot@google.com>
27415
27416         * sparseset.h (sparseset_pop): Fix the wrong index.
27417
27418 2014-02-24  Walter Lee  <walt@tilera.com>
27419
27420         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
27421         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
27422         triplet.
27423         * common/config/tilegx/tilegx-common.c
27424         (TARGET_DEFAULT_TARGET_FLAGS): Define.
27425         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
27426         (LINK_SPEC): Ditto.
27427         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
27428         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
27429         (tilegx_gimplify_va_arg_expr): Handle big endian.
27430         (tilegx_expand_unaligned_load): Ditto.
27431         (tilegx_expand_unaligned_store): Ditto.
27432         (TARGET_RETURN_IN_MSB): New.
27433         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
27434         (TARGET_ENDIAN_DEFAULT): New.
27435         (TARGET_BIG_ENDIAN): Handle big endian.
27436         (BYTES_BIG_ENDIAN): Ditto.
27437         (WORDS_BIG_ENDIAN): Ditto.
27438         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
27439         (ENDIAN_SPEC): New.
27440         (EXTRA_SPECS): New.
27441         * config/tilegx/tilegx.md (extv): Handle big endian.
27442         (extzv): Ditto.
27443         (insn_st<n>): Ditto.
27444         (insn_st<n>_add<bitsuffix>): Ditto.
27445         (insn_stnt<n>): Ditto.
27446         (insn_stnt<n>_add<bitsuffix>):Ditto.
27447         (vec_interleave_highv8qi): Handle big endian.
27448         (vec_interleave_highv8qi_be): New.
27449         (vec_interleave_highv8qi_le): New.
27450         (insn_v1int_h): Handle big endian.
27451         (vec_interleave_lowv8qi): Handle big endian.
27452         (vec_interleave_lowv8qi_be): New.
27453         (vec_interleave_lowv8qi_le): New.
27454         (insn_v1int_l): Handle big endian.
27455         (vec_interleave_highv4hi): Handle big endian.
27456         (vec_interleave_highv4hi_be): New.
27457         (vec_interleave_highv4hi_le): New.
27458         (insn_v2int_h): Handle big endian.
27459         (vec_interleave_lowv4hi): Handle big endian.
27460         (vec_interleave_lowv4hi_be): New.
27461         (vec_interleave_lowv4hi_le): New.
27462         (insn_v2int_l): Handle big endian.
27463         (vec_interleave_highv2si): Handle big endian.
27464         (vec_interleave_highv2si_be): New.
27465         (vec_interleave_highv2si_le): New.
27466         (insn_v4int_h): Handle big endian.
27467         (vec_interleave_lowv2si): Handle big endian.
27468         (vec_interleave_lowv2si_be): New.
27469         (vec_interleave_lowv2si_le): New.
27470         (insn_v4int_l): Handle big endian.
27471         * config/tilegx/tilegx.opt (mbig-endian): New option.
27472         (mlittle-endian): New option.
27473         * doc/install.texi: Document tilegxbe-linux.
27474         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
27475
27476 2014-02-24  Martin Jambor  <mjambor@suse.cz>
27477
27478         PR ipa/60266
27479         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27480         there are no parameter descriptors.
27481
27482 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
27483
27484         PR rtl-optimization/60268
27485         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27486         initialization to ...
27487         (sched_rgn_init): ... here.
27488         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27489
27490 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27491
27492         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27493         names.
27494
27495 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
27496
27497         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27498         definition.
27499
27500 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27501
27502         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27503         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27504
27505 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
27506
27507         * config/microblaze/predicates.md: Add cmp_op predicate.
27508         * config/microblaze/microblaze.md: Add branch_compare instruction
27509         which uses cmp_op predicate and emits cmp insn before branch.
27510         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27511         to microblaze_expand_conditional_branch and consolidate logic.
27512         (microblaze_expand_conditional_branch): emit branch_compare
27513         insn instead of handling cmp op separate from branch insn.
27514
27515 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27516
27517         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27518         to permit subregs.
27519
27520 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27521
27522         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27523         define_insn with define_expand and new define_insn
27524         *altivec_lve<VI_char>x_internal.
27525         (altivec_stve<VI_char>x): Replace define_insn with define_expand
27526         and new define_insn *altivec_stve<VI_char>x_internal.
27527         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27528         prototype.
27529         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27530         lve*x built-ins.
27531         (altivec_expand_stvex_be): New function.
27532
27533 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
27534
27535         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27536         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27537         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27538         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27539
27540 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
27541
27542         PR target/60298
27543         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27544         instead of emit_move_insn.
27545
27546 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27547
27548         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27549         vspltw with vsldoi.
27550         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27551         gen_altivec_vsumsws.
27552
27553 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27554
27555         * config/rs6000/altivec.md (altivec_lvxl): Rename as
27556         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27557         (altivec_lvxl_<mode>): New define_expand incorporating
27558         -maltivec=be semantics where needed.
27559         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27560         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27561         semantics where needed.
27562         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27563         (altivec_stvx_<mode>): New define_expand incorporating
27564         -maltivec=be semantics where needed.
27565         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27566         VM2 iterator instead of V4SI.
27567         (altivec_stvxl_<mode>): New define_expand incorporating
27568         -maltivec=be semantics where needed.
27569         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27570         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27571         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27572         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27573         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27574         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27575         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27576         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27577         ALTIVEC_BUILTIN_STVXL.
27578         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27579         (altivec_expand_stvx_be): Likewise.
27580         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27581         (altivec_expand_lvx_be): Likewise.
27582         (altivec_expand_stvx_be): Likewise.
27583         (altivec_expand_builtin): Add cases for
27584         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27585         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27586         (altivec_init_builtins): Add definitions for
27587         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27588         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27589
27590 2014-02-21  Catherine Moore  <clm@codesourcery.com>
27591
27592         * doc/invoke.texi (mvirt, mno-virt): Document.
27593         * config/mips/mips.opt (mvirt): New option.
27594         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27595
27596 2014-02-21  Richard Biener  <rguenther@suse.de>
27597
27598         PR tree-optimization/60276
27599         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27600         (STMT_VINFO_MIN_NEG_DIST): New macro.
27601         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27602         STMT_VINFO_MIN_NEG_DIST.
27603         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27604         made for negative dependence distances still hold.
27605
27606 2014-02-21  Richard Biener  <rguenther@suse.de>
27607
27608         PR middle-end/60291
27609         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27610         DECL_INITIAL for globals not in the current function context.
27611
27612 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27613
27614         PR tree-optimization/56490
27615         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27616         * tree-ssa-uninit.c: Include params.h.
27617         (compute_control_dep_chain): Add num_calls argument, return false
27618         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27619         num_calls to recursive call.
27620         (find_predicates): Change dep_chain into normal array,
27621         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27622         variable and adjust compute_control_dep_chain caller.
27623         (find_def_preds): Likewise.
27624
27625 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
27626
27627         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27628         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27629
27630 2014-02-21  Nick Clifton  <nickc@redhat.com>
27631
27632         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27633         (pushhi1): Likewise.
27634         (popqi1): Add mode to pre_dec.
27635         (pophi1): Likewise.
27636
27637 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27638
27639         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27640         mode for mask of V8SFmode permutation.
27641
27642 2014-02-20  Richard Henderson  <rth@redhat.com>
27643
27644         PR c++/60272
27645         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27646         a new pseudo for OLDVAL.
27647
27648 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
27649
27650         PR target/57896
27651         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27652         gen_reg_rtx if d->testing_p.
27653         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27654         if d->testing_p and we will certainly return true.
27655         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
27656         if d->testing_p.
27657
27658 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
27659
27660         * emit-rtl.c (gen_reg_rtx): Assert that
27661         crtl->emit.regno_pointer_align_length is non-zero.
27662
27663 2014-02-20  Richard Henderson  <rth@redhat.com>
27664
27665         PR c++/60272
27666         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27667         on failure the store back into EXPECT.
27668
27669 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
27670             Sandra Loosemore  <sandra@codesourcery.com>
27671
27672         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27673         * config/nios2/nios2.c (nios2_function_profiler): Add
27674         -fPIC (flag_pic == 2) support.
27675         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27676         (nios2_large_offset_p): New function.
27677         (nios2_unspec_reloc_p): Move up position, update to use
27678         nios2_large_offset_p.
27679         (nios2_unspec_address): Remove function.
27680         (nios2_unspec_offset): New function.
27681         (nios2_large_got_address): New function.
27682         (nios2_got_address): Add large offset support.
27683         (nios2_legitimize_tls_address): Update usage of removed and new
27684         functions.
27685         (nios2_symbol_binds_local_p): New function.
27686         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27687         (nios2_legitimize_address): Update to use nios2_large_offset_p.
27688         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27689         (nios2_print_operand): Merge H/L processing, add hiadj/lo
27690         processing for (const (unspec ...)).
27691         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27692
27693 2014-02-20  Richard Biener  <rguenther@suse.de>
27694
27695         * tree-cfg.c (replace_uses_by): Mark altered BBs before
27696         doing the substitution.
27697         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27698
27699 2014-02-20  Martin Jambor  <mjambor@suse.cz>
27700
27701         PR ipa/55260
27702         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27703         info when checking whether lattices are bottom.
27704
27705 2014-02-20  Richard Biener  <rguenther@suse.de>
27706
27707         PR middle-end/60221
27708         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27709         regions at -O0.
27710
27711 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
27712
27713         PR ipa/58555
27714         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27715         parameter specifying the scaling.
27716         (inline_call): Update.
27717         (want_inline_recursively): Guard division by zero.
27718         (recursive_inlining): Update.
27719         * ipa-inline.h (clone_inlined_nodes): Update.
27720
27721 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27722
27723         PR target/60204
27724         * config/i386/i386.c (classify_argument): Pass structures of size
27725         64 bytes or less in register.
27726
27727 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27728             Kirill Yukhin  <kirill.yukhin@intel.com>
27729
27730         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27731         (_mm_rcp28_round_ss): Ditto.
27732         (_mm_rsqrt28_round_sd): Ditto.
27733         (_mm_rsqrt28_round_ss): Ditto.
27734         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27735         (_mm_rcp14_round_ss): Ditto.
27736         (_mm_rsqrt14_round_sd): Ditto.
27737         (_mm_rsqrt14_round_ss): Ditto.
27738         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27739         the first input operand, get rid of match_dup.
27740         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27741         attribute to sse.
27742         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27743         Ditto.
27744         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27745         operand as the first input operand, set type attribute.
27746         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27747         Set type attribute.
27748         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27749         operand as the first input operand, set type attribute.
27750
27751 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27752
27753         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27754         bit of zero.
27755
27756 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
27757
27758         PR target/60207
27759         * config/i386/i386.c (construct_container): Remove TFmode check
27760         for X86_64_INTEGER_CLASS.
27761
27762 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
27763
27764         PR target/59794
27765         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27766         only when -Wpsabi is enabled.
27767
27768 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
27769
27770          PR target/59799
27771         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27772         passing arrays in registers are the same as for structs, so remove the
27773         special case for them.
27774
27775 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
27776
27777         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27778         destination type, extract only the valid bits if the source type is not
27779         integral and has a different mode.
27780
27781 2014-02-19  Richard Biener  <rguenther@suse.de>
27782
27783         PR ipa/60243
27784         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27785         for all calls.
27786
27787 2014-02-19  Richard Biener  <rguenther@suse.de>
27788
27789         PR ipa/60243
27790         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27791         (ipa_modify_call_arguments): Emit an argument load explicitely and
27792         preserve virtual SSA form there and for the replacement call.
27793         Do not update SSA form nor free dominance info.
27794
27795 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27796
27797         * ipa.c (function_and_variable_visibility): Also clear WEAK
27798         flag when disolving COMDAT_GROUP.
27799
27800 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27801
27802         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27803         * ipa-prop.c (ipa_set_jf_known_type): Return early when
27804         not devirtualizing.
27805         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27806         do more sanity checks.
27807         (detect_type_change): Return true when giving up early.
27808         (compute_complex_assign_jump_func): Fix type parameter of
27809         ipa_set_ancestor_jf.
27810         (compute_complex_ancestor_jump_func): Likewise.
27811         (update_jump_functions_after_inlining): Fix updating of
27812         ancestor function.
27813         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27814
27815 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27816
27817         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27818         inline clones when edge disappears.
27819
27820 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
27821
27822         PR target/60203
27823         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27824         Split 64-bit moves into 2 patterns.  Do not allow the use of
27825         direct move for TDmode in little endian, since the decimal value
27826         has little endian bytes within a word, but the 64-bit pieces are
27827         ordered in a big endian fashion, and normal subreg's of TDmode are
27828         not allowed.
27829         (mov<mode>_64bit_dm): Likewise.
27830         (movtd_64bit_nodm): Likewise.
27831
27832 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27833
27834         PR tree-optimization/60174
27835         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27836         statement of an SSA_NAME that occurs in an abnormal PHI node.
27837
27838 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27839
27840         PR sanitizer/60142
27841         * final.c (SEEN_BB): Remove.
27842         (SEEN_NOTE, SEEN_EMITTED): Renumber.
27843         (final_scan_insn): Don't force_source_line on second
27844         NOTE_INSN_BASIC_BLOCK.
27845
27846 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
27847
27848         PR target/60205
27849         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27850         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27851         (type_natural_mode): Warn ABI change when %zmm register is not
27852         available for AVX512F vector value passing.
27853
27854 2014-02-18  Kai Tietz  <ktietz@redhat.com>
27855
27856         PR target/60193
27857         * config/i386/i386.c (ix86_expand_prologue): Use value in
27858         rax register as displacement when restoring %r10 or %rax.
27859         Fix wrong offset when restoring both registers.
27860
27861 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27862
27863         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27864         assertion with conditional return.
27865
27866 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27867             Uros Bizjak  <ubizjak@gmail.com>
27868
27869         PR driver/60233
27870         * config/i386/driver-i386.c (host_detect_local_cpu): If
27871         YMM state is not saved by the OS, also clear has_f16c.  Move
27872         CPUID 0x80000001 handling before YMM state saving checking.
27873
27874 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
27875
27876         PR rtl-optimization/58960
27877         * haifa-sched.c (alloc_global_sched_pressure_data): New,
27878         factored out from ...
27879         (sched_init): ... here.
27880         (free_global_sched_pressure_data): New, factored out from ...
27881         (sched_finish): ... here.
27882         * sched-int.h (free_global_sched_pressure_data): Declare.
27883         * sched-rgn.c (nr_regions_initial): New static global.
27884         (haifa_find_rgns): Initialize it.
27885         (schedule_region): Disable sched-pressure for the newly
27886         generated regions.
27887
27888 2014-02-17  Richard Biener  <rguenther@suse.de>
27889
27890         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27891         release SSA defs of pattern stmts.
27892
27893 2014-02-17  Richard Biener  <rguenther@suse.de>
27894
27895         * tree-inline.c (expand_call_inline): Release the virtual
27896         operand defined by the call we are about to inline.
27897
27898 2014-02-17  Richard Biener  <rguenther@suse.de>
27899
27900         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27901
27902 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
27903             Ilya Tocar  <ilya.tocar@intel.com>
27904
27905         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27906         arguments order in builtin.
27907         (_mm512_permutexvar_epi64): Ditto.
27908         (_mm512_mask_permutexvar_epi64): Ditto
27909         (_mm512_maskz_permutexvar_epi32): Ditto
27910         (_mm512_permutexvar_epi32): Ditto
27911         (_mm512_mask_permutexvar_epi32): Ditto
27912
27913 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27914
27915         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27916         (p8_vmrgow): Likewise.
27917
27918 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27919
27920         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27921         endian targets.
27922
27923 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
27924
27925         PR target/60203
27926         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27927         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27928         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
27929         using direct move instructions on ISA 2.07.  Also adjust
27930         instruction length for 64-bit.
27931         (mov<mode>_64bit, TFmode/TDmode): Likewise.
27932         (mov<mode>_32bit, TFmode/TDmode): Likewise.
27933
27934 2014-02-15  Alan Modra  <amodra@gmail.com>
27935
27936         PR target/58675
27937         PR target/57935
27938         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27939         find_replacement on parts of insn rtl that might be reloaded.
27940
27941 2014-02-15  Richard Biener  <rguenther@suse.de>
27942
27943         PR tree-optimization/60183
27944         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27945         (tree_ssa_phiprop): Calculate and free post-dominators.
27946
27947 2014-02-14  Jeff Law  <law@redhat.com>
27948
27949         PR rtl-optimization/60131
27950         * ree.c (get_extended_src_reg): New function.
27951         (combine_reaching_defs): Use it rather than assuming location of REG.
27952         (find_and_remove_re): Verify first operand of extension is
27953         a REG before adding the insns to the copy list.
27954
27955 2014-02-14  Roland McGrath  <mcgrathr@google.com>
27956
27957         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27958         * configure: Regenerated.
27959         * config.in: Regenerated.
27960         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27961         instead of ASM_SHORT.
27962
27963 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
27964             Richard Earnshaw  <rearnsha@arm.com>
27965
27966         PR rtl-optimization/59535
27967         * lra-constraints.c (process_alt_operands): Encourage alternative
27968         when unassigned pseudo class is superset of the alternative class.
27969         (inherit_reload_reg): Don't inherit when optimizing for code size.
27970         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27971         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27972         modes not less than 4 for Thumb1.
27973
27974 2014-02-14  Kyle McMartin  <kyle@redhat.com>
27975
27976         PR pch/60010
27977         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27978
27979 2014-02-14  Richard Biener  <rguenther@suse.de>
27980
27981         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27982         (get_frame_arg): Drop the assert with langhook types_compatible_p.
27983         Do not strip INDIRECT_REFs.
27984
27985 2014-02-14  Richard Biener  <rguenther@suse.de>
27986
27987         PR lto/60179
27988         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27989         DECL_FUNCTION_SPECIFIC_TARGET.
27990         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27991         * tree-streamer-out.c (pack_ts_target_option): Remove.
27992         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27993         (write_ts_function_decl_tree_pointers): Do not stream
27994         DECL_FUNCTION_SPECIFIC_TARGET.
27995         * tree-streamer-in.c (unpack_ts_target_option): Remove.
27996         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27997         (lto_input_ts_function_decl_tree_pointers): Do not stream
27998         DECL_FUNCTION_SPECIFIC_TARGET.
27999
28000 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
28001
28002         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
28003         (get_initial_def_for_induction, vectorizable_induction): Ignore
28004         debug stmts when looking for exit_phi.
28005         (vectorizable_live_operation): Fix up condition.
28006
28007 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28008
28009         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
28010         nreverse() because it changes the content of original tree list.
28011
28012 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28013
28014         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
28015         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
28016
28017 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
28018
28019         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
28020         GNU coding standards.
28021
28022 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
28023
28024         PR debug/60152
28025         * dwarf2out.c (gen_subprogram_die): Don't call
28026         add_calling_convention_attribute if subr_die is old_die.
28027
28028 2014-02-13  Sharad Singhai  <singhai@google.com>
28029
28030         * doc/optinfo.texi: Fix order of nodes.
28031
28032 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
28033
28034         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
28035         operands[2], not operands[3].
28036
28037 2014-02-13  Richard Biener  <rguenther@suse.de>
28038
28039         PR bootstrap/59878
28040         * doc/install.texi (ISL): Update recommended version to 0.12.2,
28041         mention the possibility of an in-tree build.
28042         (CLooG): Update recommended version to 0.18.1, mention the
28043         possibility of an in-tree build and clarify that the ISL
28044         bundled with CLooG does not work.
28045
28046 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
28047
28048         PR target/43546
28049         * expr.c (compress_float_constant): If x is a hard register,
28050         extend into a pseudo and then move to x.
28051
28052 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28053
28054         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
28055         caused by bad second argument to warning_at() with -mhotpatch and
28056         nested functions (e.g. with gfortran).
28057
28058 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
28059
28060         * opts.c (option_name): Remove "enabled by default" rider.
28061
28062 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
28063
28064         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
28065
28066 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28067             Uros Bizjak  <ubizjak@gmail.com>
28068
28069         PR target/60151
28070         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
28071         * configure: Regenerated.
28072
28073 2014-02-12  Richard Biener  <rguenther@suse.de>
28074
28075         * vec.c (vec_prefix::calculate_allocation): Move as
28076         inline variant to vec.h.
28077         (vec_prefix::calculate_allocation_1): New out-of-line version.
28078         * vec.h (vec_prefix::calculate_allocation_1): Declare.
28079         (vec_prefix::m_has_auto_buf): Rename to ...
28080         (vec_prefix::m_using_auto_storage): ... this.
28081         (vec_prefix::calculate_allocation): Inline the easy cases
28082         and dispatch to calculate_allocation_1 which doesn't need the
28083         prefix address.
28084         (va_heap::reserve): Use gcc_checking_assert.
28085         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
28086         m_using_auto_storage.
28087         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
28088         member and adjust.
28089         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
28090         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
28091         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
28092
28093 2014-02-12  Richard Biener  <rguenther@suse.de>
28094
28095         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
28096         when we found a dependence.
28097
28098 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
28099
28100         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
28101         common code...
28102         (maybe_fold_stmt): ... into this new function.
28103         * omp-low.c (lower_omp): Update comment.
28104
28105         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
28106         last use.
28107
28108         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
28109         dereference.
28110
28111 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
28112
28113         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
28114         identifiers in comments.
28115         (cortexa53_extra_costs): Likewise.
28116         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
28117         (cortexa7_extra_costs): Likewise.
28118         (cortexa12_extra_costs): Likewise.
28119         (cortexa15_extra_costs): Likewise.
28120         (v7m_extra_costs): Likewise.
28121
28122 2014-02-12  Richard Biener  <rguenther@suse.de>
28123
28124         PR middle-end/60092
28125         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
28126         of posix_memalign being successful.
28127         (lower_stmt): Restrict lowering of posix_memalign to when
28128         -ftree-bit-ccp is enabled.
28129
28130 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28131
28132         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
28133         arg_loc.
28134         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
28135
28136 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
28137
28138         PR rtl-optimization/60116
28139         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
28140         other_insn once the combination has been validated.
28141
28142 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
28143
28144         PR lto/59468
28145         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
28146         and wrapper.
28147         * ipa-devirt.c: Include demangle.h
28148         (odr_violation_reported): New static variable.
28149         (add_type_duplicate): Update odr_violations.
28150         (maybe_record_node): Add completep parameter; update it.
28151         (record_target_from_binfo): Add COMPLETEP parameter;
28152         update it as needed.
28153         (possible_polymorphic_call_targets_1): Likewise.
28154         (struct polymorphic_call_target_d): Add nonconstruction_targets;
28155         rename FINAL to COMPLETE.
28156         (record_targets_from_bases): Sanity check we found the binfo;
28157         fix COMPLETEP updating.
28158         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
28159         parameter, fix computing of COMPLETEP.
28160         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
28161         at LTO time do demangling.
28162         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
28163         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
28164         parameter.
28165         (gimple_get_virt_method_for_binfo): Likewise.
28166         * gimple-fold.h (gimple_get_virt_method_for_binfo,
28167         gimple_get_virt_method_for_vtable): Update prototypes.
28168
28169 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
28170
28171         PR target/49008
28172         * genautomata.c (add_presence_absence): Fix typo with
28173         {final_}presence_list.
28174
28175 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
28176
28177         PR target/60137
28178         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
28179         for VSX/Altivec vectors that land in GPR registers.
28180
28181 2014-02-11  Richard Henderson  <rth@redhat.com>
28182             Jakub Jelinek  <jakub@redhat.com>
28183
28184         PR debug/59776
28185         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
28186         around drhs if type conversion to lacc->type is not useless.
28187
28188 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28189
28190         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
28191         tuning struct.
28192         (cortex-a57.cortex-a53): Likewise.
28193         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
28194
28195 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28196
28197         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
28198         arm_restrict_it.
28199
28200 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
28201
28202         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
28203         add_options_for_arm_vfp3.
28204
28205 2014-02-11  Jeff Law  <law@redhat.com>
28206
28207         PR middle-end/54041
28208         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
28209         object with an undesirable mode.
28210
28211 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28212
28213         PR libgomp/60107
28214         * config/i386/sol2-9.h: New file.
28215         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
28216         *-*-solaris2.9*): Use it.
28217
28218 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
28219
28220         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
28221         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
28222
28223 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
28224
28225         * config/microblaze/microblaze.c: Extend mcpu version format
28226
28227 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
28228
28229         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
28230
28231 2014-02-10  Richard Henderson  <rth@redhat.com>
28232
28233         PR target/59927
28234         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
28235         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
28236         ms-abi vs -mno-accumulate-outgoing-args.
28237         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
28238         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
28239         respect to ms-abi.
28240
28241 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28242
28243         PR middle-end/60080
28244         * cfgexpand.c (expand_asm_operands): Attach source location to
28245         ASM_INPUT rtx objects.
28246         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
28247
28248 2014-02-10  Nick Clifton  <nickc@redhat.com>
28249
28250         * config/mn10300/mn10300.c (popcount): New function.
28251         (mn10300_expand_prologue): Include saved registers in stack usage
28252         count.
28253
28254 2014-02-10  Jeff Law  <law@redhat.com>
28255
28256         PR middle-end/52306
28257         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
28258         when changing the SET_DEST of a prior insn to avoid an input reload.
28259
28260 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28261
28262         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
28263         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
28264         -mcall-openbsd, or -mcall-linux.
28265         (CC1_ENDIAN_BIG_SPEC): Remove.
28266         (CC1_ENDIAN_LITTLE_SPEC): Remove.
28267         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28268         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
28269         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
28270         and %cc1_endian_default.
28271         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28272
28273 2014-02-10  Richard Biener  <rguenther@suse.de>
28274
28275         PR tree-optimization/60115
28276         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
28277         MEM_REF handling.  Properly verify that the accesses are not
28278         out of the objects bound.
28279
28280 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28281
28282         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
28283         coretex to cortex.
28284
28285 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28286
28287         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
28288         proper constants and fix formatting.
28289         (possible_polymorphic_call_targets): Fix formatting.
28290
28291 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
28292             Ilya Tocar  <ilya.tocar@intel.com>
28293
28294         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
28295         (_mm512_loadu_epi32): Renamed into...
28296         (_mm512_loadu_si512): This.
28297         (_mm512_storeu_epi32): Renamed into...
28298         (_mm512_storeu_si512): This.
28299         (_mm512_maskz_ceil_ps): Removed.
28300         (_mm512_maskz_ceil_pd): Ditto.
28301         (_mm512_maskz_floor_ps): Ditto.
28302         (_mm512_maskz_floor_pd): Ditto.
28303         (_mm512_floor_round_ps): Ditto.
28304         (_mm512_floor_round_pd): Ditto.
28305         (_mm512_ceil_round_ps): Ditto.
28306         (_mm512_ceil_round_pd): Ditto.
28307         (_mm512_mask_floor_round_ps): Ditto.
28308         (_mm512_mask_floor_round_pd): Ditto.
28309         (_mm512_mask_ceil_round_ps): Ditto.
28310         (_mm512_mask_ceil_round_pd): Ditto.
28311         (_mm512_maskz_floor_round_ps): Ditto.
28312         (_mm512_maskz_floor_round_pd): Ditto.
28313         (_mm512_maskz_ceil_round_ps): Ditto.
28314         (_mm512_maskz_ceil_round_pd): Ditto.
28315         (_mm512_expand_pd): Ditto.
28316         (_mm512_expand_ps): Ditto.
28317         * config/i386/i386.c (ix86_builtins): Remove
28318         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
28319         (bdesc_args): Ditto.
28320         * config/i386/predicates.md (const1256_operand): New.
28321         (const_1_to_2_operand): Ditto.
28322         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28323         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28324         (*avx512pf_gatherpf<mode>sf): Ditto.
28325         (avx512pf_gatherpf<mode>df): Ditto.
28326         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28327         (*avx512pf_gatherpf<mode>df): Ditto.
28328         (avx512pf_scatterpf<mode>sf): Ditto.
28329         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28330         (*avx512pf_scatterpf<mode>sf): Ditto.
28331         (avx512pf_scatterpf<mode>df): Ditto.
28332         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28333         (*avx512pf_scatterpf<mode>df): Ditto.
28334         (avx512f_expand<mode>): Removed.
28335         (<shift_insn><mode>3<mask_name>): Change predicate type.
28336
28337 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
28338
28339         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
28340         not at the end of datarefs vector use ordered_remove to avoid
28341         reordering datarefs vector.
28342
28343         PR c/59984
28344         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
28345         mark local addressable non-static vars as GOVD_PRIVATE
28346         instead of GOVD_LOCAL.
28347         * omp-low.c (lower_omp_for): Move gimple_bind_vars
28348         and BLOCK_VARS of gimple_bind_block to new_stmt rather
28349         than copying them.
28350
28351         PR middle-end/60092
28352         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
28353         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
28354         assume_aligned or alloc_align attributes.
28355         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
28356         arguments.  Handle also assume_aligned and alloc_align attributes.
28357         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
28358         calls to functions with assume_aligned or alloc_align attributes.
28359         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
28360
28361 2014-02-08  Terry Guo  <terry.guo@arm.com>
28362
28363         * doc/invoke.texi: Document ARM -march=armv7e-m.
28364
28365 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
28366
28367         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
28368         flag on __cilkrts_rethrow builtin.
28369
28370         PR ipa/60026
28371         * ipa-cp.c (determine_versionability): Fail at -O0
28372         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
28373         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
28374
28375         Revert:
28376         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
28377
28378         PR ipa/60026
28379         * tree-inline.c (copy_forbidden): Fail for
28380         __attribute__((optimize (0))) functions.
28381
28382 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
28383
28384         * varpool.c: Include pointer-set.h.
28385         (varpool_remove_unreferenced_decls): Variables in other partitions
28386         will not be output; be however careful to not lose information
28387         about partitioning.
28388
28389 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
28390
28391         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
28392         lookup in the vtable constructor.
28393
28394 2014-02-07  Jeff Law  <law@redhat.com>
28395
28396         PR target/40977
28397         * config/m68k/m68k.md (ashldi_extsi): Turn into a
28398         define_insn_and_split.
28399
28400         * ipa-inline.c (inline_small_functions): Fix typos.
28401
28402 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28403
28404         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
28405         (s390_can_use_return_insn): Declare.
28406         * config/s390/s390.h (EPILOGUE_USES): Define.
28407         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
28408         instructions.
28409         (s390_chunkify_start): Handle return JUMP_LABELs.
28410         (s390_early_mach): Emit a main_pool instruction on the entry edge.
28411         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
28412         (s390_can_use_return_insn): New functions.
28413         (s390_fix_long_loop_prediction): Handle conditional returns.
28414         (TARGET_SET_UP_BY_PROLOGUE): Define.
28415         * config/s390/s390.md (ANY_RETURN): New code iterator.
28416         (*creturn, *csimple_return, return, simple_return): New patterns.
28417
28418 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28419
28420         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
28421         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
28422         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
28423         REG_CFA_RESTORE list when deciding not to restore a register.
28424
28425 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28426
28427         * config/s390/s390.c: Include tree-pass.h and context.h.
28428         (s390_early_mach): New function, split out from...
28429         (s390_emit_prologue): ...here.
28430         (pass_data_s390_early_mach): New pass structure.
28431         (pass_s390_early_mach): New class.
28432         (s390_option_override): Create and register early_mach pass.
28433         Move to end of file.
28434
28435 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28436
28437         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
28438         to match for the exit block.
28439
28440 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28441
28442         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
28443         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
28444         Reject misaligned operands.
28445
28446 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28447
28448         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
28449
28450 2014-02-07  Richard Biener  <rguenther@suse.de>
28451
28452         PR middle-end/60092
28453         * gimple-low.c (lower_builtin_posix_memalign): New function.
28454         (lower_stmt): Call it to lower posix_memalign in a way
28455         to make alignment info accessible.
28456
28457 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
28458
28459         PR c++/60082
28460         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
28461         __builtin_setjmp_receiver.
28462
28463 2014-02-07  Richard Biener  <rguenther@suse.de>
28464
28465         PR middle-end/60092
28466         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
28467         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
28468         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28469         Handle BUILT_IN_POSIX_MEMALIGN.
28470         (find_func_clobbers): Likewise.
28471         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28472         (call_may_clobber_ref_p_1): Likewise.
28473
28474 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28475
28476         PR ipa/59918
28477         * ipa-devirt.c (record_target_from_binfo): Remove overactive
28478         sanity check.
28479
28480 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28481
28482         PR ipa/59469
28483         * lto-cgraph.c (lto_output_node): Use
28484         symtab_get_symbol_partitioning_class.
28485         (lto_output_varpool_node): likewise.
28486         (symtab_get_symbol_partitioning_class): Move here from
28487         lto/lto-partition.c
28488         * cgraph.h (symbol_partitioning_class): Likewise.
28489         (symtab_get_symbol_partitioning_class): Declare.
28490
28491 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28492
28493         * ggc.h (ggc_internal_cleared_alloc): New macro.
28494         * vec.h (vec_safe_copy): Handle memory stats.
28495         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28496         * target-globals.c (save_target_globals): Likewise.
28497
28498 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
28499
28500         PR target/60077
28501         * expr.c (emit_move_resolve_push): Export; be bit more selective
28502         on when to clear alias set.
28503         * expr.h (emit_move_resolve_push): Declare.
28504         * function.h (struct function): Add tail_call_marked.
28505         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28506         * config/i386/i386-protos.h (ix86_expand_push): Remove.
28507         * config/i386/i386.md (TImode move expander): De not call
28508         ix86_expand_push.
28509         (FP push expanders): Preserve memory attributes.
28510         * config/i386/sse.md (push<mode>1): Remove.
28511         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28512         (ix86_expand_push): Remove.
28513         * config/i386/mmx.md (push<mode>1): Remove.
28514
28515 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28516
28517         PR rtl-optimization/60030
28518         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28519         lopart with paradoxical subreg before shifting it up by hprec.
28520
28521 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28522
28523         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28524         Remove extra newline at end of file.
28525         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28526         (arm_issue_rate): Handle cortexa57.
28527         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28528         (cortex-a57.cortex-a53): Likewise.
28529
28530 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28531
28532         PR target/59575
28533         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28534         don't record in REG_FRAME_RELATED_EXPR registers not set in that
28535         bitmask.
28536         (arm_expand_prologue): Adjust all callers.
28537         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28538         info, registers also at the lowest numbered registers side.  Use
28539         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28540         XEXP.
28541
28542         PR debug/59992
28543         * var-tracking.c (adjust_mems): Before adding a SET to
28544         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28545
28546 2014-02-06  Alan Modra  <amodra@gmail.com>
28547
28548         PR target/60032
28549         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28550         change SDmode to DDmode when lra_in_progress.
28551
28552 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
28553
28554         PR middle-end/59150
28555         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28556         free_data_ref on the dr first, and before goto again also set dr
28557         to the next dr.  For simd_lane_access, free old datarefs[i] before
28558         overwriting it.  For get_vectype_for_scalar_type failure, don't
28559         free_data_ref if simd_lane_access.
28560
28561         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28562
28563         PR target/60062
28564         * tree.h (opts_for_fn): New inline function.
28565         (opt_for_fn): Define.
28566         * config/i386/i386.c (ix86_function_regparm): Use
28567         opt_for_fn (decl, optimize) instead of optimize.
28568
28569 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28570
28571         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28572         for SYMBOL_REF in large memory model.
28573
28574 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28575
28576         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28577         and crypto support.
28578         (cortex-a57): Likewise.
28579         (cortex-a57.cortex-a53): Likewise.
28580
28581 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
28582             Kugan Vivekanandarajah  <kuganv@linaro.org>
28583
28584         * config/arm/arm.c (arm_vector_alignment_reachable): Check
28585         unaligned_access.
28586         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28587
28588 2014-02-06  Richard Biener  <rguenther@suse.de>
28589
28590         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28591         set_loop_copy and initialize_original_copy_tables.
28592
28593 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
28594
28595         * config/aarch64/aarch64-simd.md
28596         (aarch64_ashr_simddi): Change QI to SI.
28597
28598 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28599             Jakub Jelinek  <jakub@redhat.com>
28600
28601         PR middle-end/60013
28602         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28603         of the dataflow.
28604
28605 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28606
28607         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28608         CODE_FOR_altivec_vpku[hw]um to
28609         CODE_FOR_altivec_vpku[hw]um_direct.
28610         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28611         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28612         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28613         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28614
28615 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28616
28617         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28618         generation for -maltivec=be.
28619         (altivec_vsumsws): Simplify redundant test.
28620
28621 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28622
28623         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28624         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28625         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28626         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28627         gen_altivec_vpkuwum.
28628         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28629         BYTES_BIG_ENDIAN.
28630         (altivec_vpks<VI_char>ss): Likewise.
28631         (altivec_vpks<VI_char>us): Likewise.
28632         (altivec_vpku<VI_char>us): Likewise.
28633         (altivec_vpku<VI_char>um): Likewise.
28634         (altivec_vpku<VI_char>um_direct): New (copy of
28635         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28636         internal use).
28637         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28638         target is little endian and -maltivec=be is not specified.
28639         (*altivec_vupkhs<VU_char>_direct): New (copy of
28640         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28641         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28642         target is little endian and -maltivec=be is not specified.
28643         (*altivec_vupkls<VU_char>_direct): New (copy of
28644         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28645         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28646         little endian and -maltivec=be is not specified.
28647         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28648         little endian and -maltivec=be is not specified.
28649
28650 2014-02-05  Richard Henderson  <rth@redhat.com>
28651
28652         PR debug/52727
28653         * combine-stack-adj.c: Revert r206943.
28654         * sched-int.h (struct deps_desc): Add last_args_size.
28655         * sched-deps.c (init_deps): Initialize it.
28656         (sched_analyze_insn): Add OUTPUT dependencies between insns that
28657         contain REG_ARGS_SIZE notes.
28658
28659 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28660
28661         * lto-cgraph.c (asm_nodes_output): Make global.
28662         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28663         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28664         (driver_handle_option): Handle OPT_fwpa.
28665
28666 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
28667
28668         PR ipa/59947
28669         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28670         a comment typo and formatting issue.  If odr_hash hasn't been
28671         created, return vNULL and set *completep to false.
28672
28673         PR middle-end/57499
28674         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28675         bb with no successors.
28676
28677 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
28678
28679         PR target/59718
28680         * doc/invoke.texi (-march): Clarify documentation for ARM.
28681         (-mtune): Likewise.
28682         (-mcpu): Likewise.
28683
28684 2014-02-05  Richard Biener  <rguenther@suse.de>
28685
28686         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28687         when not vectorizing because of too many alias checks.
28688         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28689         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28690
28691 2014-02-05  Nick Clifton  <nickc@redhat.com>
28692
28693         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28694         accept extended registers in any mode when compiling for the MN10300.
28695
28696 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
28697
28698         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28699         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28700         sanitization attributes.
28701         (can_inline_edge_p): Likewise.
28702         (sanitize_attrs_match_for_inline_p): New function.
28703
28704 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28705
28706         * ipa-prop.c (detect_type_change): Shor circuit testing of
28707         type changes on THIS pointer.
28708
28709 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
28710
28711         PR target/59777
28712         * config/pa/pa.c (legitimize_tls_address): Return original address
28713         if not passed a SYMBOL_REF rtx.
28714         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28715         addresses.
28716         (pa_emit_move_sequence): Simplify TLS source operands.
28717         (pa_legitimate_constant_p): Reject all TLS constants.
28718         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28719         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28720
28721 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28722
28723         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28724         groups when we know they are controlled by LTO.
28725         * varasm.c (default_binds_local_p_1): If object is in other partition,
28726         it will be resolved locally.
28727
28728 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28729
28730         * config/host-linux.c (linux_gt_pch_use_address): Don't
28731         use SSIZE_MAX because it is not always defined.
28732
28733 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
28734
28735         PR bootstrap/59913
28736         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28737         threshold for pseudo splitting.
28738         (update_ebb_live_info): Process call argument hard registers and
28739         hard registers from insn definition too.
28740         (max_small_class_regs_num): New constant.
28741         (inherit_in_ebb): Update live hard regs through EBBs.  Update
28742         reloads_num only for small register classes.  Don't split for
28743         outputs of jumps.
28744
28745 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
28746
28747         PR ipa/60058
28748         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28749         is non-null.
28750
28751 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28752
28753         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28754         visibility is safe.
28755
28756 2014-02-04  Marek Polacek  <polacek@redhat.com>
28757
28758         * gdbinit.in (pel): Define.
28759
28760 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28761
28762         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28763         behavior.
28764
28765 2014-02-04  Richard Biener  <rguenther@suse.de>
28766
28767         PR lto/59723
28768         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28769         in function context local.
28770         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28771         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28772         similar to LTO_imported_decl_ref.
28773
28774 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
28775
28776         PR tree-optimization/60002
28777         * cgraphclones.c (build_function_decl_skip_args): Clear
28778         DECL_LANG_SPECIFIC.
28779
28780         PR tree-optimization/60023
28781         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28782         false to gsi_replace.
28783         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28784         has been in some EH region and vec_stmt could throw, add
28785         vec_stmt into the same EH region.
28786         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28787         has no lhs, ignore it.
28788         * internal-fn.c (expand_MASK_LOAD): Likewise.
28789
28790         PR ipa/60026
28791         * tree-inline.c (copy_forbidden): Fail for
28792         __attribute__((optimize (0))) functions.
28793
28794         PR other/58712
28795         * omp-low.c (simd_clone_struct_copy): If from->inbranch
28796         is set, copy one less argument.
28797         (expand_simd_clones): Don't subtract clone_info->inbranch
28798         from simd_clone_struct_alloc argument.
28799
28800         PR rtl-optimization/57915
28801         * recog.c (simplify_while_replacing): If all unary/binary/relational
28802         operation arguments are constant, attempt to simplify those.
28803
28804         PR middle-end/59261
28805         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28806         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28807
28808 2014-02-04  Richard Biener  <rguenther@suse.de>
28809
28810         PR tree-optimization/60012
28811         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28812         TBAA disambiguation to all DDRs.
28813
28814 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28815
28816         PR target/59788
28817         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28818         (LINK_SPEC): Use it for -shared, -shared-libgcc.
28819
28820 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28821
28822         PR ipa/59882
28823         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28824
28825 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28826
28827         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28828         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28829
28830 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28831
28832         PR ipa/59831
28833         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28834         to figure out targets of polymorphic calls with known decl.
28835         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28836         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28837         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28838         (get_polymorphic_call_info): ... here.
28839         (get_polymorphic_call_info_from_invariant): New function.
28840
28841 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28842
28843         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28844         lookup via vtable pointer; check for type consistency
28845         and turn inconsitent facts into UNREACHABLE.
28846         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28847         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28848         type inconsistent querries; return UNREACHABLE instead.
28849
28850 2014-02-03  Richard Henderson  <rth@twiddle.net>
28851
28852         PR tree-opt/59924
28853         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28854         already processed this node.
28855         (normalize_one_pred_1): Pass along mark_set.
28856         (normalize_one_pred): Create and destroy a pointer_set_t.
28857         (normalize_one_pred_chain): Likewise.
28858
28859 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
28860
28861         PR gcov-profile/58602
28862         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28863
28864 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28865
28866         PR ipa/59831
28867         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28868         -fno-devirtualize; try to devirtualize by the knowledge of
28869         virtual table pointer given by aggregate propagation.
28870         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28871         (ipa_print_node_jump_functions): Dump also offset that
28872         is relevant for polymorphic calls.
28873         (determine_known_aggregate_parts): Add arg_type parameter; use it
28874         instead of determining the type from pointer type.
28875         (ipa_compute_jump_functions_for_edge): Update call of
28876         determine_known_aggregate_parts.
28877         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28878         (gimple_get_virt_method_for_binfo): ... here; simplify using
28879         vtable_pointer_value_to_vtable.
28880         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28881         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28882         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28883         (vtable_pointer_value_to_vtable): Break out from ...; handle also
28884         POINTER_PLUS_EXPR.
28885         (vtable_pointer_value_to_binfo): ... here.
28886         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28887
28888 2014-02-03  Teresa Johnson  <tejohnson@google.com>
28889
28890         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28891         redef of outer loop index variable.
28892
28893 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
28894
28895         PR c++/53017
28896         PR c++/59211
28897         * doc/extend.texi (Function Attributes): Typo.
28898
28899 2014-02-03  Cong Hou  <congh@google.com>
28900
28901         PR tree-optimization/60000
28902         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28903         if the vectorized statement is a store.  A store statement can only
28904         appear at the end of pattern statements.
28905
28906 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
28907
28908         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28909         (ix86_option_override_internal): Default long double to 64-bit for
28910         32-bit Bionic and to 128-bit for 64-bit Bionic.
28911
28912         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28913         TARGET_LONG_DOUBLE_128 is true.
28914         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28915
28916         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28917         (mlong-double-64): Negate -mlong-double-128.
28918         (mlong-double-128): New option.
28919
28920         * config/i386/i386-c.c (ix86_target_macros): Define
28921         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28922
28923         * doc/invoke.texi: Document -mlong-double-128.
28924
28925 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
28926
28927         PR rtl-optimization/60024
28928         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28929
28930 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
28931
28932         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28933
28934 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
28935
28936         PR rtl-optimization/57662
28937         * sel-sched.c (code_motion_path_driver): Do not mark already not
28938         existing blocks in the visiting bitmap.
28939
28940 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
28941
28942         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28943         on the insn being emitted.
28944
28945 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
28946             Will Deacon  <will.deacon@arm.com>
28947
28948         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28949
28950 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28951
28952         * config/arm/arm-tables.opt: Regenerate.
28953
28954 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28955
28956         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28957         for vector types other than V16QImode.
28958         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28959         define_expand, and call altivec_expand_vec_perm_le when producing
28960         code with little endian element order.
28961         (*altivec_vperm_<mode>_internal): New insn having previous
28962         behavior of altivec_vperm_<mode>.
28963         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28964         altivec_expand_vec_perm_le when producing code with little endian
28965         element order.
28966         (*altivec_vperm_<mode>_uns_internal): New insn having previous
28967         behavior of altivec_vperm_<mode>_uns.
28968
28969 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28970
28971         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28972         (altivec_vsumsws): Add handling for -maltivec=be with a little
28973         endian target.
28974         (altivec_vsumsws_direct): New.
28975         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28976         gen_altivec_vsumsws.
28977
28978 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
28979
28980         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28981         vtable_pointer_value_to_binfo): New functions.
28982         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28983         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28984
28985 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
28986
28987         * config/nios2/nios2.md (load_got_register): Initialize GOT
28988         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28989         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28990
28991 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
28992
28993         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28994         preserverd by passthrough, do not propagate the type.
28995
28996 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28997
28998         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28999         (mips_atomic_assign_expand_fenv): New function.
29000         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29001
29002 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29003
29004         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
29005         (__builtin_mips_set_fcsr): Likewise.
29006         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
29007         MIPS_USI_FTYPE_VOID.
29008         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
29009         (mips16_expand_set_fcsr): Likewise.
29010         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
29011         (mips16_set_fcsr_stub): Likewise.
29012         (mips16_get_fcsr_one_only_stub): New class.
29013         (mips16_set_fcsr_one_only_stub): Likewise.
29014         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
29015         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
29016         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
29017         (hard_float): New availability predicate.
29018         (mips_builtins): Add get_fcsr and set_fcsr.
29019         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
29020         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
29021         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
29022         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
29023         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
29024         patterns.
29025
29026 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29027
29028         * config/mips/mips.c (mips_one_only_stub): New class.
29029         (mips_need_mips16_rdhwr_p): Replace with...
29030         (mips16_rdhwr_stub): ...this new variable.
29031         (mips16_stub_call_address): New function.
29032         (mips16_rdhwr_one_only_stub): New class.
29033         (mips_expand_thread_pointer): Use mips16_stub_call_address.
29034         (mips_output_mips16_rdhwr): Delete.
29035         (mips_finish_stub): New function.
29036         (mips_code_end): Use it to handle rdhwr stubs.
29037
29038 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
29039
29040         PR target/60017
29041         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
29042         when calculating size of integer atomic types.
29043
29044 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
29045
29046         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
29047
29048 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
29049
29050         PR tree-optimization/60003
29051         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
29052         * profile.c (branch_prob): Use gimple_call_builtin_p
29053         to check for BUILT_IN_SETJMP_RECEIVER.
29054         * tree-inline.c (copy_bb): Call notice_special_calls.
29055
29056 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
29057
29058         PR bootstrap/59985
29059         * lra-constraints.c (process_alt_operands): Update reload_sum only
29060         on the first pass.
29061
29062 2014-01-31  Richard Henderson  <rth@redhat.com>
29063
29064         PR middle-end/60004
29065         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
29066         until after else_eh is processed.
29067
29068 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
29069
29070         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
29071         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
29072         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
29073         in smmintrin.h, remove them.
29074         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
29075         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
29076         * config/i386/i386.md (ROUND_SAE): Fix value.
29077         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
29078         (const48_operand): New.
29079         * config/i386/subst.md (round), (round_expand): Use
29080         const_4_or_8_to_11_operand.
29081         (round_saeonly), (round_saeonly_expand): Use const48_operand.
29082
29083 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
29084
29085         * config/i386/constraints.md (Yk): Swap meaning with k.
29086         * config/i386/i386.md (movhi_internal): Change Yk to k.
29087         (movqi_internal): Ditto.
29088         (*k<logic><mode>): Ditto.
29089         (*andhi_1): Ditto.
29090         (*andqi_1): Ditto.
29091         (kandn<mode>): Ditto.
29092         (*<code>hi_1): Ditto.
29093         (*<code>qi_1): Ditto.
29094         (kxnor<mode>): Ditto.
29095         (kortestzhi): Ditto.
29096         (kortestchi): Ditto.
29097         (kunpckhi): Ditto.
29098         (*one_cmplhi2_1): Ditto.
29099         (*one_cmplqi2_1): Ditto.
29100         * config/i386/sse.md (): Change k to Yk.
29101         (avx512f_load<mode>_mask): Ditto.
29102         (avx512f_blendm<mode>): Ditto.
29103         (avx512f_store<mode>_mask): Ditto.
29104         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
29105         (avx512f_storedqu<mode>_mask): Ditto.
29106         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
29107         Ditto.
29108         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
29109         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
29110         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
29111         (avx512f_maskcmp<mode>3): Ditto.
29112         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
29113         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
29114         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
29115         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
29116         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
29117         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
29118         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
29119         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
29120         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
29121         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
29122         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
29123         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
29124         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
29125         (vec_extract_lo_<mode>_maskm): Ditto.
29126         (vec_extract_hi_<mode>_maskm): Ditto.
29127         (avx512f_vternlog<mode>_mask): Ditto.
29128         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
29129         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
29130         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
29131         (avx512f_<code>v8div16qi2_mask): Ditto.
29132         (avx512f_<code>v8div16qi2_mask_store): Ditto.
29133         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
29134         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
29135         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
29136         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
29137         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29138         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29139         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29140         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29141         (avx512cd_maskb_vec_dupv8di): Ditto.
29142         (avx512cd_maskw_vec_dupv16si): Ditto.
29143         (avx512f_vpermi2var<mode>3_maskz): Ditto.
29144         (avx512f_vpermi2var<mode>3_mask): Ditto.
29145         (avx512f_vpermi2var<mode>3_mask): Ditto.
29146         (avx512f_vpermt2var<mode>3_maskz): Ditto.
29147         (*avx512f_gathersi<mode>): Ditto.
29148         (*avx512f_gathersi<mode>_2): Ditto.
29149         (*avx512f_gatherdi<mode>): Ditto.
29150         (*avx512f_gatherdi<mode>_2): Ditto.
29151         (*avx512f_scattersi<mode>): Ditto.
29152         (*avx512f_scatterdi<mode>): Ditto.
29153         (avx512f_compress<mode>_mask): Ditto.
29154         (avx512f_compressstore<mode>_mask): Ditto.
29155         (avx512f_expand<mode>_mask): Ditto.
29156         * config/i386/subst.md (mask): Change k to Yk.
29157         (mask_scalar_merge): Ditto.
29158         (sd): Ditto.
29159
29160 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
29161
29162         * doc/extend.texi (Vector Extensions): Document ?: in C++.
29163
29164 2014-01-31  Richard Biener  <rguenther@suse.de>
29165
29166         PR middle-end/59990
29167         * builtins.c (fold_builtin_memory_op): Make sure to not
29168         use a floating-point mode or a boolean or enumeral type for
29169         the copy operation.
29170
29171 2014-01-30  DJ Delorie  <dj@redhat.com>
29172
29173         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
29174         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
29175         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
29176         whenever main() has an epilogue.
29177
29178 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29179
29180         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
29181         unused variable "field".
29182         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
29183         (vsx_mergeh_<mode>): Likewise.
29184         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
29185         (altivec_vmrghh): Likewise.
29186         (altivec_vmrghw): Likewise.
29187         (altivec_vmrglb): Likewise.
29188         (altivec_vmrglh): Likewise.
29189         (altivec_vmrglw): Likewise.
29190         (altivec_vspltb): Add missing uses.
29191         (altivec_vsplth): Likewise.
29192         (altivec_vspltw): Likewise.
29193         (altivec_vspltsf): Likewise.
29194
29195 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
29196
29197         PR target/59923
29198         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
29199         frame related instructions.
29200
29201 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29202
29203         PR rtl-optimization/59959
29204         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
29205         any reload of register whose subreg is invalid.
29206
29207 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
29208
29209         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
29210         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
29211         Add missing return type - void.
29212
29213 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29214
29215         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
29216         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
29217         remove element index adjustment for endian (now handled in vsx.md
29218         and altivec.md).
29219         (altivec_expand_vec_perm_const): Use
29220         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
29221         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
29222         (vsx_xxspltw_<mode>): Adjust element index for little endian.
29223         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
29224         define_expand and a new define_insn *altivec_vspltb_internal;
29225         adjust for -maltivec=be on a little endian target.
29226         (altivec_vspltb_direct): New.
29227         (altivec_vsplth): Divide into a define_expand and a new
29228         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
29229         little endian target.
29230         (altivec_vsplth_direct): New.
29231         (altivec_vspltw): Divide into a define_expand and a new
29232         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
29233         little endian target.
29234         (altivec_vspltw_direct): New.
29235         (altivec_vspltsf): Divide into a define_expand and a new
29236         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
29237         a little endian target.
29238
29239 2014-01-30  Richard Biener  <rguenther@suse.de>
29240
29241         PR tree-optimization/59993
29242         * tree-ssa-forwprop.c (associate_pointerplus): Check we
29243         can propagate form the earlier stmt and avoid the transform
29244         when the intermediate result is needed.
29245
29246 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
29247
29248         * README.Portability: Fix typo.
29249
29250 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
29251
29252         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
29253         comparison_operator with ordered_comparison_operator.
29254
29255 2014-01-30  Nick Clifton  <nickc@redhat.com>
29256
29257         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
29258         Rename to mn10300_store_multiple_regs.
29259         * config/mn10300/mn10300.c: Likewise.
29260         * config/mn10300/mn10300.md (store_movm): Fix typo: call
29261         store_multiple_regs.
29262         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
29263         Call mn10300_store_multiple_regs.
29264
29265 2014-01-30  Nick Clifton  <nickc@redhat.com>
29266             DJ Delorie  <dj@redhat.com>
29267
29268         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
29269         %fp 2 to keep registers after it properly word-aligned.
29270         (rl78_alloc_physical_registers_umul): Handle the case where both
29271         input operands are the same.
29272
29273 2014-01-30  Richard Biener  <rguenther@suse.de>
29274
29275         PR tree-optimization/59903
29276         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
29277         check properly.
29278
29279 2014-01-30  Jason Merrill  <jason@redhat.com>
29280
29281         PR c++/59633
29282         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
29283
29284         PR c++/59645
29285         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
29286
29287 2014-01-30  Richard Biener  <rguenther@suse.de>
29288
29289         PR tree-optimization/59951
29290         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
29291
29292 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
29293
29294         PR target/59784
29295         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
29296         SFmode to DFmode case.
29297
29298 2014-01-29  DJ Delorie  <dj@redhat.com>
29299
29300         * config/msp430/msp430.opt (-minrt): New.
29301         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
29302         if -minrt given.
29303         (ENDFILE_SPEC): Likewise.
29304
29305 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
29306
29307         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
29308         (estimate_function_body_sizes): Use it.
29309
29310 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
29311
29312         PR c++/58561
29313         * dwarf2out.c (is_cxx_auto): New.
29314         (is_base_type): Use it.
29315         (gen_type_die_with_usage): Likewise.
29316
29317 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29318
29319         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
29320         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
29321         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
29322         -maltivec=be with LE targets.
29323         (vsx_mergeh_<mode>): Likewise.
29324         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
29325         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
29326         (altivec_vmrghb): Replace with define_expand and new
29327         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
29328         (altivec_vmrghb_direct): New define_insn.
29329         (altivec_vmrghh): Replace with define_expand and new
29330         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
29331         (altivec_vmrghh_direct): New define_insn.
29332         (altivec_vmrghw): Replace with define_expand and new
29333         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
29334         (altivec_vmrghw_direct): New define_insn.
29335         (*altivec_vmrghsf): Adjust for endianness.
29336         (altivec_vmrglb): Replace with define_expand and new
29337         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
29338         (altivec_vmrglb_direct): New define_insn.
29339         (altivec_vmrglh): Replace with define_expand and new
29340         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
29341         (altivec_vmrglh_direct): New define_insn.
29342         (altivec_vmrglw): Replace with define_expand and new
29343         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
29344         (altivec_vmrglw_direct): New define_insn.
29345         (*altivec_vmrglsf): Adjust for endianness.
29346         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29347         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29348         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29349         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29350         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29351         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29352         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29353         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29354
29355 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29356
29357         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
29358         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
29359         whitespace.
29360
29361 2014-01-29  Richard Biener  <rguenther@suse.de>
29362
29363         PR tree-optimization/58742
29364         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
29365         associate_pointerplus_align.
29366         (associate_pointerplus_diff): New function.
29367         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
29368         and associate_pointerplus_diff.
29369
29370 2014-01-29  Richard Biener  <rguenther@suse.de>
29371
29372         * lto-streamer.h (LTO_major_version): Bump to 3.
29373         (LTO_minor_version): Reset to 0.
29374
29375 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
29376
29377         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
29378         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
29379         (arm_file_start): Generate correct asm header for armv7ve.
29380         * config/arm/bpabi.h: Add multilib support for armv7ve.
29381         * config/arm/driver-arm.c: Change the architectures of cortex-a7
29382         and cortex-a15 to armv7ve.
29383         * config/arm/t-aprofile: Add multilib support for armv7ve.
29384         * doc/invoke.texi: Document -march=armv7ve.
29385
29386 2014-01-29  Richard Biener  <rguenther@suse.de>
29387
29388         PR tree-optimization/58742
29389         * tree-ssa-forwprop.c (associate_plusminus): Return true
29390         if we changed sth, defer EH cleanup to ...
29391         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
29392         (simplify_mult): New function.
29393
29394 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
29395
29396         PR middle-end/59917
29397         PR tree-optimization/59920
29398         * tree.c (build_common_builtin_nodes): Remove
29399         __builtin_setjmp_dispatcher initialization.
29400         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
29401         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
29402         instead of gsi_after_labels + manually skipping debug stmts.
29403         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
29404         ignore bbs with IFN_ABNORMAL_DISPATCHER.
29405         * tree-inline.c (copy_edges_for_bb): Remove
29406         can_make_abnormal_goto argument, instead add abnormal_goto_dest
29407         argument.  Ignore computed_goto_p stmts.  Don't call
29408         make_abnormal_goto_edges.  If a call might need abnormal edges
29409         for non-local gotos, see if it already has an edge to
29410         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
29411         with true argument, don't do anything then, otherwise add
29412         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
29413         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
29414         caller.
29415         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
29416         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
29417         (lower_stmt): Don't set data->calls_builtin_setjmp.
29418         (lower_builtin_setjmp): Adjust comment.
29419         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
29420         * tree-cfg.c (found_computed_goto): Remove.
29421         (factor_computed_gotos): Remove.
29422         (make_goto_expr_edges): Return bool, true for computed gotos.
29423         Don't call make_abnormal_goto_edges.
29424         (build_gimple_cfg): Don't set found_computed_goto, don't call
29425         factor_computed_gotos.
29426         (computed_goto_p): No longer static.
29427         (make_blocks): Don't set found_computed_goto.
29428         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
29429         (make_edges): If make_goto_expr_edges returns true, push bb
29430         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
29431         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
29432         vector.  Record mapping between bbs and OpenMP regions if there
29433         are any, adjust make_gimple_omp_edges caller.  Call
29434         handle_abnormal_edges.
29435         (make_abnormal_goto_edges): Remove.
29436         * tree-cfg.h (make_abnormal_goto_edges): Remove.
29437         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
29438         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
29439         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
29440         * internal-fn.def (ABNORMAL_DISPATCHER): New.
29441         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
29442         filling *region also set *region_idx to (*region)->entry->index.
29443
29444         PR other/58712
29445         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
29446         For REGs set ORIGINAL_REGNO.
29447
29448 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
29449
29450         * doc/md.texi: Mention that a target shouldn't implement
29451         vec_widen_(s|u)mul_even/odd pair if it is less efficient
29452         than hi/lo pair.
29453
29454 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
29455
29456         PR tree-optimization/59594
29457         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
29458         a copy of the datarefs vector rather than the vector itself.
29459
29460 2014-01-28  Jason Merrill  <jason@redhat.com>
29461
29462         PR c++/53756
29463         * dwarf2out.c (auto_die): New static.
29464         (gen_type_die_with_usage): Handle C++1y 'auto'.
29465         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
29466         on definition.
29467
29468 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
29469
29470         PR target/59672
29471         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
29472         (SPEC_X32): Likewise.
29473         (SPEC_64): Likewise.
29474         * config/i386/i386.c (ix86_option_override_internal): Turn off
29475         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
29476         for TARGET_16BIT.
29477         (x86_file_start): Output .code16gcc for TARGET_16BIT.
29478         * config/i386/i386.h (TARGET_16BIT): New macro.
29479         (TARGET_16BIT_P): Likewise.
29480         * config/i386/i386.opt: Add m16.
29481         * doc/invoke.texi: Document -m16.
29482
29483 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
29484
29485         PR preprocessor/59935
29486         * input.c (location_get_source_line): Bail out on when line number
29487         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29488
29489 2014-01-28  Richard Biener  <rguenther@suse.de>
29490
29491         PR tree-optimization/58742
29492         * tree-ssa-forwprop.c (associate_plusminus): Handle
29493         pointer subtraction of the form (T)(P + A) - (T)P.
29494
29495 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29496
29497         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29498         at const_int_cost.
29499
29500 2014-01-28  Richard Biener  <rguenther@suse.de>
29501
29502         Revert
29503         2014-01-28  Richard Biener  <rguenther@suse.de>
29504
29505         PR rtl-optimization/45364
29506         PR rtl-optimization/59890
29507         * var-tracking.c (local_get_addr_clear_given_value): Handle
29508         already cleared slot.
29509         (val_reset): Handle not allocated local_get_addr_cache.
29510         (vt_find_locations): Use post-order on the inverted CFG.
29511
29512 2014-01-28  Richard Biener  <rguenther@suse.de>
29513
29514         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29515
29516 2014-01-28  Richard Biener  <rguenther@suse.de>
29517
29518         PR rtl-optimization/45364
29519         PR rtl-optimization/59890
29520         * var-tracking.c (local_get_addr_clear_given_value): Handle
29521         already cleared slot.
29522         (val_reset): Handle not allocated local_get_addr_cache.
29523         (vt_find_locations): Use post-order on the inverted CFG.
29524
29525 2014-01-28  Alan Modra  <amodra@gmail.com>
29526
29527         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29528         * configure.ac <recursive call for build != host>: Define
29529         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29530         and LD_FOR_BUILD too.
29531         * configure: Regenerate.
29532
29533 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
29534
29535         * config/i386/i386.c (get_builtin_code_for_version): Separate
29536         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29537         Broadwell from Haswell.
29538
29539 2014-01-27  Steve Ellcey  <sellcey@mips.com>
29540
29541         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29542         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29543         * config/mips/mips.c (mips_option_override): Change setting
29544         of TARGET_DSP.
29545         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29546         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29547         Change from Mask to Var.
29548
29549 2014-01-27  Jeff Law  <law@redhat.com>
29550
29551         * ipa-inline.c (inline_small_functions): Fix typo.
29552
29553 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
29554
29555         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29556         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29557         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29558         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29559         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29560         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29561         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29562         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29563         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29564         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29565         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29566         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29567         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29568         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29569         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29570         (_mm512_storeu_epi64): Ditto.
29571         (_mm512_cmpge_epi32_mask): Ditto.
29572         (_mm512_cmpge_epu32_mask): Ditto.
29573         (_mm512_cmpge_epi64_mask): Ditto.
29574         (_mm512_cmpge_epu64_mask): Ditto.
29575         (_mm512_cmple_epi32_mask): Ditto.
29576         (_mm512_cmple_epu32_mask): Ditto.
29577         (_mm512_cmple_epi64_mask): Ditto.
29578         (_mm512_cmple_epu64_mask): Ditto.
29579         (_mm512_cmplt_epi32_mask): Ditto.
29580         (_mm512_cmplt_epu32_mask): Ditto.
29581         (_mm512_cmplt_epi64_mask): Ditto.
29582         (_mm512_cmplt_epu64_mask): Ditto.
29583         (_mm512_cmpneq_epi32_mask): Ditto.
29584         (_mm512_cmpneq_epu32_mask): Ditto.
29585         (_mm512_cmpneq_epi64_mask): Ditto.
29586         (_mm512_cmpneq_epu64_mask): Ditto.
29587         (_mm512_expand_pd): Ditto.
29588         (_mm512_expand_ps): Ditto.
29589         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29590         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29591         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29592         * config/i386/i386.c (ix86_builtins): Add
29593         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29594         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29595         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29596         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29597         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29598         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29599         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29600         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29601         IX86_BUILTIN_PMOVUSQW512_MEM.
29602         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29603         __builtin_ia32_pmovsqd512mem_mask,
29604         __builtin_ia32_pmovqd512mem_mask,
29605         __builtin_ia32_pmovusqw512mem_mask,
29606         __builtin_ia32_pmovsqw512mem_mask,
29607         __builtin_ia32_pmovqw512mem_mask,
29608         __builtin_ia32_pmovusdw512mem_mask,
29609         __builtin_ia32_pmovsdw512mem_mask,
29610         __builtin_ia32_pmovdw512mem_mask,
29611         __builtin_ia32_pmovqb512mem_mask,
29612         __builtin_ia32_pmovusqb512mem_mask,
29613         __builtin_ia32_pmovsqb512mem_mask,
29614         __builtin_ia32_pmovusdb512mem_mask,
29615         __builtin_ia32_pmovsdb512mem_mask,
29616         __builtin_ia32_pmovdb512mem_mask.
29617         (bdesc_args): Add __builtin_ia32_expanddf512,
29618         __builtin_ia32_expandsf512.
29619         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29620         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29621         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29622         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29623         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29624         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29625         (avx512f_<code>v8div16qi2_mask_store): This.
29626         (avx512f_expand<mode>): New.
29627
29628 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
29629
29630         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29631         New.
29632         (_mm512_mask_prefetch_i64gather_pd): Ditto.
29633         (_mm512_prefetch_i32scatter_pd): Ditto.
29634         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29635         (_mm512_prefetch_i64scatter_pd): Ditto.
29636         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29637         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29638         (_mm512_mask_prefetch_i64gather_ps): Ditto.
29639         (_mm512_prefetch_i32scatter_ps): Ditto.
29640         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29641         (_mm512_prefetch_i64scatter_ps): Ditto.
29642         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29643         * config/i386/i386-builtin-types.def: Define
29644         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29645         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29646         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29647         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29648         IX86_BUILTIN_SCATTERPFQPD.
29649         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29650         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29651         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29652         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29653         __builtin_ia32_scatterpfqps.
29654         (ix86_expand_builtin): Expand new built-ins.
29655         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29656         fix memory access data type.
29657         (*avx512pf_gatherpf<mode>_mask): Ditto.
29658         (*avx512pf_gatherpf<mode>): Ditto.
29659         (avx512pf_scatterpf<mode>): Ditto.
29660         (*avx512pf_scatterpf<mode>_mask): Ditto.
29661         (*avx512pf_scatterpf<mode>): Ditto.
29662         (GATHER_SCATTER_SF_MEM_MODE): New.
29663         (avx512pf_gatherpf<mode>df): Ditto.
29664         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29665         (*avx512pf_scatterpf<mode>df): Ditto.
29666
29667 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
29668
29669         PR bootstrap/59934
29670         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29671         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29672         reached.
29673
29674 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29675
29676         * common/config/arm/arm-common.c
29677         (arm_rewrite_mcpu): Handle multiple names.
29678         * config/arm/arm.h
29679         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29680
29681 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29682
29683         * gimple-builder.h (create_gimple_tmp): Delete.
29684
29685 2014-01-27  Christian Bruel  <christian.bruel@st.com>
29686
29687         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29688         words comparisons.
29689
29690 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
29691
29692         * config/pa/pa.md (call): Generate indirect long calls to non-local
29693         functions when outputing 32-bit code.
29694         (call_value): Likewise except for special call to buggy powf function.
29695
29696         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29697         portable runtime and PIC indirect calls.
29698         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29699         and PIC call sequences.  Use ldo instead of blr to set return register
29700         in PIC call sequence.
29701
29702 2014-01-25  Walter Lee  <walt@tilera.com>
29703
29704         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29705         avoid clobbering a live register.
29706
29707 2014-01-25  Walter Lee  <walt@tilera.com>
29708
29709         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29710         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29711         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29712         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29713
29714 2014-01-25  Walter Lee  <walt@tilera.com>
29715
29716         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29717         arguments on even registers.
29718         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29719         STACK_BOUNDARY.
29720         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29721         (BIGGEST_ALIGNMENT): Ditto.
29722         (BIGGEST_FIELD_ALIGNMENT): Ditto.
29723
29724 2014-01-25  Walter Lee  <walt@tilera.com>
29725
29726         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29727         insns before bundling.
29728         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29729
29730 2014-01-25  Walter Lee  <walt@tilera.com>
29731
29732         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29733         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29734         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29735
29736 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29737
29738         * config/mips/constraints.md (kl): Delete.
29739         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29740         define expands, using...
29741         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29742         instructions for MIPS16.
29743         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29744         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29745
29746 2014-01-25  Walter Lee  <walt@tilera.com>
29747
29748         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29749         (clzdi2): Ditto.
29750         (ffsdi2): Ditto.
29751
29752 2014-01-25  Walter Lee  <walt@tilera.com>
29753
29754         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29755         (TARGET_EXPAND_TO_RTL_HOOK): Define.
29756
29757 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29758
29759         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29760         Handle XOR.
29761
29762 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
29763
29764         * print-rtl.c (in_call_function_usage): New var.
29765         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29766         EXPR_LIST mode as mode and not as reg note name.
29767
29768         PR middle-end/59561
29769         * cfgloopmanip.c (copy_loop_info): If
29770         loop->warned_aggressive_loop_optimizations, make sure
29771         the flag is set in target loop too.
29772
29773 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
29774
29775         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29776         flag_cilkplus.
29777         * builtins.def: Likewise.
29778         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29779         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29780         * ira.c (ira_setup_eliminable_regset): Likewise.
29781         * omp-low.c (gate_expand_omp): Likewise.
29782         (execute_lower_omp): Likewise.
29783         (diagnose_sb_0): Likewise.
29784         (gate_diagnose_omp_blocks): Likewise.
29785         (simd_clone_clauses_extract): Likewise.
29786         (gate): Likewise.
29787
29788 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29789
29790         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29791         correction for little endian...
29792         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29793         here.
29794
29795 2014-01-24  Jeff Law  <law@redhat.com>
29796
29797         PR tree-optimization/59919
29798         * tree-vrp.c (find_assert_locations_1): Do not register asserts
29799         for non-returning calls.
29800
29801 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
29802
29803         * common/config/aarch64/aarch64-common.c
29804         (aarch64_rewrite_mcpu): Handle multiple names.
29805         * config/aarch64/aarch64.h
29806         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29807
29808 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
29809
29810         * input.c (add_file_to_cache_tab): Handle the case where fopen
29811         returns NULL.
29812
29813 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
29814
29815         PR target/59929
29816         * config/i386/i386.md (pushsf splitter): Get stack adjustment
29817         from push operand if code of push isn't PRE_DEC.
29818
29819 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
29820
29821         PR target/59909
29822         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29823         -mquad-memory-atomic.  Update -mquad-memory documentation to say
29824         it is only used for non-atomic loads/stores.
29825
29826         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29827         -mquad-memory or -mquad-memory-atomic switches.
29828
29829         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29830         -mquad-memory-atomic to ISA 2.07 support.
29831
29832         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29833         to separate support of normal quad word memory operations (ldq, stq)
29834         from the atomic quad word memory operations.
29835
29836         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29837         support to separate non-atomic quad word operations from atomic
29838         quad word operations.  Disable non-atomic quad word operations in
29839         little endian mode so that we don't have to swap words after the
29840         load and before the store.
29841         (quad_load_store_p): Add comment about atomic quad word support.
29842         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29843         options printed with -mdebug=reg.
29844
29845         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29846         -mquad-memory-atomic as the test for whether we have quad word
29847         atomic instructions.
29848         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29849         or -mp8-vector are used, allow byte/half-word atomic operations.
29850
29851         * config/rs6000/sync.md (load_lockedti): Insure that the address
29852         is a proper indexed or indirect address for the lqarx instruction.
29853         On little endian systems, swap the hi/lo registers after the lqarx
29854         instruction.
29855         (load_lockedpti): Use indexed_or_indirect_operand predicate to
29856         insure the address is valid for the lqarx instruction.
29857         (store_conditionalti): Insure that the address is a proper indexed
29858         or indirect address for the stqcrx. instruction.  On little endian
29859         systems, swap the hi/lo registers before doing the stqcrx.
29860         instruction.
29861         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29862         insure the address is valid for the stqcrx. instruction.
29863
29864         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29865         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29866         type of quad memory support is available.
29867
29868 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
29869
29870         PR regression/59915
29871         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29872         there is a danger of looping.
29873
29874 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
29875
29876         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29877         force flag_ira_loop_pressure if set via command line.
29878
29879 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29880
29881         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29882         (ashr_simd): New builtin handling DI mode.
29883         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29884         (aarch64_sshr_simddi): New match pattern.
29885         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29886         (vshrd_n_s64): Likewise.
29887         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29888
29889 2014-01-23  Nick Clifton  <nickc@redhat.com>
29890
29891         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29892         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29893         favour of mcu specific scripts.
29894         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29895         430x multilibs.
29896
29897 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
29898             Alex Velenko  <Alex.Velenko@arm.com>
29899
29900         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29901         (vaddv_s16): Likewise.
29902         (vaddv_s32): Likewise.
29903         (vaddv_u8): Likewise.
29904         (vaddv_u16): Likewise.
29905         (vaddv_u32): Likewise.
29906         (vaddvq_s8): Likewise.
29907         (vaddvq_s16): Likewise.
29908         (vaddvq_s32): Likewise.
29909         (vaddvq_s64): Likewise.
29910         (vaddvq_u8): Likewise.
29911         (vaddvq_u16): Likewise.
29912         (vaddvq_u32): Likewise.
29913         (vaddvq_u64): Likewise.
29914         (vaddv_f32): Likewise.
29915         (vaddvq_f32): Likewise.
29916         (vaddvq_f64): Likewise.
29917         (vmaxv_f32): Likewise.
29918         (vmaxv_s8): Likewise.
29919         (vmaxv_s16): Likewise.
29920         (vmaxv_s32): Likewise.
29921         (vmaxv_u8): Likewise.
29922         (vmaxv_u16): Likewise.
29923         (vmaxv_u32): Likewise.
29924         (vmaxvq_f32): Likewise.
29925         (vmaxvq_f64): Likewise.
29926         (vmaxvq_s8): Likewise.
29927         (vmaxvq_s16): Likewise.
29928         (vmaxvq_s32): Likewise.
29929         (vmaxvq_u8): Likewise.
29930         (vmaxvq_u16): Likewise.
29931         (vmaxvq_u32): Likewise.
29932         (vmaxnmv_f32): Likewise.
29933         (vmaxnmvq_f32): Likewise.
29934         (vmaxnmvq_f64): Likewise.
29935         (vminv_f32): Likewise.
29936         (vminv_s8): Likewise.
29937         (vminv_s16): Likewise.
29938         (vminv_s32): Likewise.
29939         (vminv_u8): Likewise.
29940         (vminv_u16): Likewise.
29941         (vminv_u32): Likewise.
29942         (vminvq_f32): Likewise.
29943         (vminvq_f64): Likewise.
29944         (vminvq_s8): Likewise.
29945         (vminvq_s16): Likewise.
29946         (vminvq_s32): Likewise.
29947         (vminvq_u8): Likewise.
29948         (vminvq_u16): Likewise.
29949         (vminvq_u32): Likewise.
29950         (vminnmv_f32): Likewise.
29951         (vminnmvq_f32): Likewise.
29952         (vminnmvq_f64): Likewise.
29953
29954 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
29955
29956         * config/aarch64/aarch64-simd.md
29957         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29958         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29959         (*aarch64_mul3_elt<mode>): Likewise.
29960         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29961         (*aarch64_mul3_elt_to_64v2df): Likewise.
29962         (*aarch64_mla_elt<mode>): Likewise.
29963         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29964         (*aarch64_mls_elt<mode>): Likewise.
29965         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29966         (*aarch64_fma4_elt<mode>): Likewise.
29967         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29968         (*aarch64_fma4_elt_to_64v2df): Likewise.
29969         (*aarch64_fnma4_elt<mode>): Likewise.
29970         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29971         (*aarch64_fnma4_elt_to_64v2df): Likewise.
29972         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29973         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29974         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29975         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29976         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29977         (aarch64_sqdmull_lane<mode>_internal): Likewise.
29978         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29979
29980 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29981
29982         * config/aarch64/aarch64-simd.md
29983         (aarch64_be_checked_get_lane<mode>): New define_expand.
29984         * config/aarch64/aarch64-simd-builtins.def
29985         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29986         New builtin definition.
29987         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29988         Use new safe be builtin.
29989
29990 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29991
29992         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29993         New define_insn.
29994         (aarch64_be_st1<mode>): Likewise.
29995         (aarch_ld1<VALL:mode>): Define_expand modified.
29996         (aarch_st1<VALL:mode>): Likewise.
29997         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29998         (UNSPEC_ST1): Likewise.
29999
30000 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
30001
30002         * config/microblaze/microblaze.md: Add trap insn and attribute
30003
30004 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
30005
30006         PR preprocessor/58580
30007         * input.h (location_get_source_line): Take an additional line_size
30008         parameter.
30009         (void diagnostics_file_cache_fini): Declare new function.
30010         * input.c (struct fcache): New type.
30011         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
30012         New static constants.
30013         (diagnostic_file_cache_init, total_lines_num)
30014         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
30015         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
30016         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
30017         (get_next_line, read_next_line, goto_next_line, read_line_num):
30018         New static function definitions.
30019         (diagnostic_file_cache_fini): New function.
30020         (location_get_source_line): Take an additional output line_len
30021         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
30022         read_line_num.
30023         * diagnostic.c (diagnostic_finish): Call
30024         diagnostic_file_cache_fini.
30025         (adjust_line): Take an additional input parameter for the length
30026         of the line, rather than calculating it with strlen.
30027         (diagnostic_show_locus): Adjust the use of
30028         location_get_source_line and adjust_line with respect to their new
30029         signature.  While displaying a line now, do not stop at the first
30030         null byte.  Rather, display the zero byte as a space and keep
30031         going until we reach the size of the line.
30032         * Makefile.in: Add vec.o to OBJS-libcommon
30033
30034 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
30035             Ilya Tocar  <ilya.tocar@intel.com>
30036
30037         * config/i386/avx512fintrin.h (_mm512_kmov): New.
30038         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
30039         (__builtin_ia32_kmov16): Ditto.
30040         * config/i386/i386.md (UNSPEC_KMOV): New.
30041         (kmovw): Ditto.
30042
30043 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
30044
30045         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
30046         (_mm512_storeu_si512): Ditto.
30047
30048 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
30049
30050         PR target/52125
30051         * rtl.h (get_referenced_operands): Declare.
30052         * recog.c (get_referenced_operands): New function.
30053         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
30054         operands have been referenced when recording LO_SUM references.
30055
30056 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
30057
30058         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
30059
30060 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
30061
30062         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
30063         Enable for generic and recent AMD targets.
30064
30065 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
30066
30067         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
30068         ARG_SIZE note when adjustment was eliminated.
30069
30070 2014-01-22  Jeff Law  <law@redhat.com>
30071
30072         PR tree-optimization/59597
30073         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
30074         in file.  Accept new argument REGISTERING and use it to modify
30075         dump output appropriately.
30076         (register_jump_thread): Corresponding changes.
30077         (mark_threaded_blocks): Reinstate code to cancel unprofitable
30078         thread paths involving joiner blocks.  Add code to dump cancelled
30079         jump threading paths.
30080
30081 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
30082
30083         PR rtl-optimization/59477
30084         * lra-constraints.c (inherit_in_ebb): Process call for living hard
30085         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
30086
30087 2014-01-22  Tom Tromey  <tromey@redhat.com>
30088
30089         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
30090         PARAMS.
30091         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
30092
30093 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30094
30095         PR rtl-optimization/59896
30096         * lra-constraints.c (process_alt_operands): Check unused note for
30097         matched operands of insn with no output reloads.
30098
30099 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
30100
30101         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
30102         (mips_move_from_gpr_cost): Likewise.
30103
30104 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30105
30106         PR rtl-optimization/59858
30107         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
30108         ira_class_hard_regs_num.
30109         (process_alt_operands): Increase reject for dying matched operand.
30110
30111 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
30112
30113         PR target/59003
30114         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
30115         smaller than size, perform several stores or loads and stores
30116         at dst + count - size to store or copy all of size bytes, rather
30117         than just last modesize bytes.
30118
30119 2014-01-20  DJ Delorie  <dj@redhat.com>
30120
30121         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
30122         that CLOBBERs are REGs before propogating their values.
30123
30124 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
30125
30126         PR middle-end/59789
30127         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
30128         (cgraph_inline_failed_type): New function.
30129         * cgraph.h (DEFCIFCODE): Add type.
30130         (cgraph_inline_failed_type_t): New enum.
30131         (cgraph_inline_failed_type): New prototype.
30132         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
30133         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30134         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
30135         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
30136         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
30137         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
30138         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
30139         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
30140         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
30141         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
30142         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
30143         OPTIMIZATION_MISMATCH.
30144         * tree-inline.c (expand_call_inline): Emit errors during
30145         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
30146
30147 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
30148
30149         PR target/59685
30150         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
30151         mode attribute in insn output.
30152
30153 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
30154
30155         * output.h (output_constant): Delete.
30156         * varasm.c (output_constant): Make private.
30157
30158 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
30159
30160         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
30161
30162 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
30163
30164         PR middle-end/59860
30165         * tree.h (fold_builtin_strcat): New prototype.
30166         * builtins.c (fold_builtin_strcat): No longer static.  Add len
30167         argument, if non-NULL, don't call c_strlen.  Optimize
30168         directly into __builtin_memcpy instead of __builtin_strcpy.
30169         (fold_builtin_2): Adjust fold_builtin_strcat caller.
30170         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
30171
30172 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
30173
30174         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30175         for SImode_address_operand operands, having only a REG argument.
30176
30177 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30178
30179         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
30180         loader name using mbig-endian.
30181         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
30182
30183 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
30184
30185         * doc/invoke.texi (-march): Clarify documentation for AArch64.
30186         (-mtune): Likewise.
30187         (-mcpu): Likewise.
30188
30189 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
30190
30191         * config/aarch64/aarch64-protos.h
30192         (aarch64_cannot_change_mode_class_ptr): Declare.
30193         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
30194         aarch64_cannot_change_mode_class_ptr): New.
30195         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
30196         backend hook aarch64_cannot_change_mode_class.
30197
30198 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
30199
30200         * common/config/aarch64/aarch64-common.c
30201         (aarch64_handle_option): Don't handle any option order logic here.
30202         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
30203         selected_cpu, warn on architecture version mismatch.
30204         (aarch64_override_options): Fix parsing order for option strings.
30205
30206 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30207             Iain Sandoe  <iain@codesourcery.com>
30208
30209         PR bootstrap/59496
30210         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
30211         warning.  Amend comment to reflect current functionality.
30212
30213 2014-01-20  Richard Biener  <rguenther@suse.de>
30214
30215         PR middle-end/59860
30216         * builtins.c (fold_builtin_strcat): Remove case better handled
30217         by tree-ssa-strlen.c.
30218
30219 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
30220
30221         * config/aarch64/aarch64.opt
30222         (mcpu, march, mtune): Make case-insensitive.
30223
30224 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
30225
30226         PR target/59880
30227         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30228         if operands[1] is a REG or ZERO_EXTEND of a REG.
30229
30230 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
30231
30232         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
30233
30234 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
30235
30236         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
30237         long non-pic millicode calls.
30238
30239 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30240
30241         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
30242
30243 2014-01-19  Kito Cheng  <kito@0xlab.org>
30244
30245         * builtins.c (expand_movstr): Check movstr expand done or fail.
30246
30247 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30248             H.J. Lu  <hongjiu.lu@intel.com>
30249
30250         PR target/59379
30251         * config/i386/i386.md (*lea<mode>): Zero-extend return register
30252         to DImode for zero-extended addresses.
30253
30254 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
30255
30256         PR rtl-optimization/57763
30257         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
30258         on the new indirect jump_insn and increment LABEL_NUSES (label).
30259
30260 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
30261
30262         PR bootstrap/59580
30263         PR bootstrap/59583
30264         * config.gcc (x86_archs): New variable.
30265         (x86_64_archs): Likewise.
30266         (x86_cpus): Likewise.
30267         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
30268         --with-arch/--with-cpu= options.
30269         Support --with-arch=/--with-cpu={nehalem,westmere,
30270         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
30271
30272 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30273
30274         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
30275         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
30276
30277 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
30278
30279         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
30280
30281 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
30282
30283         PR target/58944
30284         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
30285         clear cpp_get_options (parse_in)->warn_unused_macros for
30286         ix86_target_macros_internal with cpp_define.
30287
30288 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
30289
30290         * jump.c (delete_related_insns): Keep (use (insn))s.
30291         * reorg.c (redundant_insn): Check for barriers too.
30292
30293 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30294
30295         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
30296
30297 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
30298
30299         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
30300         call to $$dyncall when TARGET_LONG_CALLS is true.
30301
30302 2014-01-17  Jeff Law  <law@redhat.com>
30303
30304         * ree.c (combine_set_extension): Temporarily disable test for
30305         changing number of hard registers.
30306
30307 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
30308
30309         PR middle-end/58125
30310         * ipa-inline-analysis.c (inline_free_summary):
30311         Do not free summary of aliases.
30312
30313 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
30314
30315         PR middle-end/59706
30316         * gimplify.c (gimplify_expr): Use create_tmp_var
30317         instead of create_tmp_var_raw.  If cond doesn't have
30318         integral type, don't add the IFN_ANNOTATE builtin at all.
30319
30320 2014-01-17  Martin Jambor  <mjambor@suse.cz>
30321
30322         PR ipa/59736
30323         * ipa-cp.c (prev_edge_clone): New variable.
30324         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
30325         Also resize prev_edge_clone vector.
30326         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
30327         (ipcp_edge_removal_hook): New function.
30328         (ipcp_driver): Register ipcp_edge_removal_hook.
30329
30330 2014-01-17  Andrew Pinski  <apinski@cavium.com>
30331             Steve Ellcey  <sellcey@mips.com>
30332
30333         PR target/59462
30334         * config/mips/mips.c (mips_print_operand): Check operand mode instead
30335         of operator mode.
30336
30337 2014-01-17  Jeff Law  <law@redhat.com>
30338
30339         PR middle-end/57904
30340         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
30341         so that pass_ccp runs first.
30342
30343 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30344
30345         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
30346         (ix86_adjust_cost): Use !TARGET_XXX.
30347         (do_reorder_for_imul): Likewise.
30348         (swap_top_of_ready_list): Likewise.
30349         (ix86_sched_reorder): Likewise.
30350
30351 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30352
30353         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30354         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
30355         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
30356         (intel_memset): New.  Duplicate slm_memset.
30357         (intel_cost): New.  Duplicate slm_cost.
30358         (m_INTEL): New macro.
30359         (processor_target_table): Add "intel".
30360         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
30361         with PROCESSOR_INTEL for "intel".
30362         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
30363         PROCESSOR_SILVERMONT.
30364         (ix86_issue_rate): Likewise.
30365         (ix86_adjust_cost): Likewise.
30366         (ia32_multipass_dfa_lookahead): Likewise.
30367         (swap_top_of_ready_list): Likewise.
30368         (ix86_sched_reorder): Likewise.
30369         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
30370         instead of TARGET_OPT_AGU.
30371         * config/i386/i386.h (TARGET_INTEL): New.
30372         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
30373         (processor_type): Add PROCESSOR_INTEL.
30374         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
30375         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
30376
30377 2014-01-17  Marek Polacek  <polacek@redhat.com>
30378
30379         PR c/58346
30380         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
30381         size is zero.
30382
30383 2014-01-17  Richard Biener  <rguenther@suse.de>
30384
30385         PR tree-optimization/46590
30386         * opts.c (default_options_table): Add entries for
30387         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
30388         all enabled at -O1 but not for -Og.
30389         * common.opt (fbranch-count-reg): Remove Init(1).
30390         (fmove-loop-invariants): Likewise.
30391         (ftree-pta): Likewise.
30392
30393 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
30394
30395         * config/i386/i386.c (ix86_data_alignment): For compatibility with
30396         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
30397         decls to at least the GCC 4.8 used alignments.
30398
30399         PR fortran/59440
30400         * tree-nested.c (convert_nonlocal_reference_stmt,
30401         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
30402         of GIMPLE_BIND stmts, adjust associated decls.
30403
30404 2014-01-17  Richard Biener  <rguenther@suse.de>
30405
30406         PR tree-optimization/46590
30407         * vec.h (vec<>::bseach): New member function implementing
30408         binary search according to C89 bsearch.
30409         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
30410         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
30411         bitmap pointer again.  Make accesses_in_loop a flat array.
30412         (mem_ref_obstack): New global.
30413         (outermost_indep_loop): Adjust for mem_ref->stored changes.
30414         (mark_ref_stored): Likewise.
30415         (ref_indep_loop_p_2): Likewise.
30416         (set_ref_stored_in_loop): New helper function.
30417         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
30418         (memref_free): Adjust.
30419         (record_mem_ref_loc): Simplify.
30420         (gather_mem_refs_stmt): Adjust.
30421         (sort_locs_in_loop_postorder_cmp): New function.
30422         (analyze_memory_references): Sort accesses_in_loop after
30423         loop postorder number.
30424         (find_ref_loc_in_loop_cmp): New function.
30425         (for_all_locs_in_loop): Find relevant cluster of locs in
30426         accesses_in_loop and iterate without recursion.
30427         (execute_sm): Avoid uninit warning.
30428         (struct ref_always_accessed): Simplify.
30429         (ref_always_accessed::operator ()): Likewise.
30430         (ref_always_accessed_p): Likewise.
30431         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
30432         loop postorder numbers here.
30433         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
30434         numbers.
30435
30436 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
30437
30438         PR c++/57945
30439         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
30440         on decls for which assemble_alias has been called.
30441
30442 2014-01-17  Nick Clifton  <nickc@redhat.com>
30443
30444         * config/msp430/msp430.opt: (mcpu): New option.
30445         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
30446         (msp430_option_override): Parse target_cpu.  If the MCU name
30447         matches a generic string, clear target_mcu.
30448         (msp430_attr): Allow numeric interrupt values up to 63.
30449         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
30450         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
30451         option.
30452         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
30453         Add mcpu matches.
30454         * config/msp430/msp430.md (popm): Use %J rather than %I.
30455         (addsi3): Use msp430_nonimmediate_operand for operand 2.
30456         (addhi_cy_i): Use immediate_operand for operand 2.
30457         * doc/invoke.texi: Document -mcpu option.
30458
30459 2014-01-17  Richard Biener  <rguenther@suse.de>
30460
30461         PR rtl-optimization/38518
30462         * df.h (df_analyze_loop): Declare.
30463         * df-core.c: Include cfgloop.h.
30464         (df_analyze_1): Split out main part of df_analyze.
30465         (df_analyze): Adjust.
30466         (loop_inverted_post_order_compute): New function.
30467         (loop_post_order_compute): Likewise.
30468         (df_analyze_loop): New function avoiding whole-function
30469         postorder computes.
30470         * loop-invariant.c (find_defs): Use df_analyze_loop.
30471         (find_invariants): Adjust.
30472         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
30473
30474 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30475
30476         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
30477         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30478
30479 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
30480
30481         * ipa-ref.c (ipa_remove_stmt_references): Fix references
30482         traversal when removing references.
30483
30484 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
30485
30486         PR ipa/59775
30487         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30488
30489 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
30490
30491         PR middle-end/56791
30492         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30493         pushing a reload for an autoinc when we had previously reloaded an
30494         inner part of the address.
30495
30496 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
30497
30498         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30499         field.
30500         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30501         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30502         when not giving up or versioning for alias only because of
30503         loop->safelen.
30504         (vect_analyze_data_ref_dependences): Set to true.
30505         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30506         is a GIMPLE_PHI.
30507         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30508         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30509         to the condition.
30510
30511         PR middle-end/58344
30512         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30513
30514         PR target/59839
30515         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30516         operand 0 predicate for gathers, use a new pseudo as subtarget.
30517
30518 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
30519
30520         PR middle-end/59609
30521         * lra-constraints.c (process_alt_operands): Add printing debug info.
30522         Check absence of input/output reloads for matched operands too.
30523
30524 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
30525
30526         PR rtl-optimization/59835
30527         * ira.c (ira_init_register_move_cost): Increase cost for
30528         impossible modes.
30529
30530 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
30531
30532         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30533
30534 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
30535
30536         PR target/59780
30537         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30538         non-register objects.  Use gen_(high/low)part more consistently.
30539         Fix assertions.
30540
30541 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
30542
30543         PR target/59844
30544         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30545         endian support, remove tests for WORDS_BIG_ENDIAN.
30546         (p8_mfvsrd_3_<mode>): Likewise.
30547         (reload_gpr_from_vsx<mode>): Likewise.
30548         (reload_gpr_from_vsxsf): Likewise.
30549         (p8_mfvsrd_4_disf): Likewise.
30550
30551 2014-01-16  Richard Biener  <rguenther@suse.de>
30552
30553         PR rtl-optimization/46590
30554         * lcm.c (compute_antinout_edge): Use postorder iteration.
30555         (compute_laterin): Use inverted postorder iteration.
30556
30557 2014-01-16  Nick Clifton  <nickc@redhat.com>
30558
30559         PR middle-end/28865
30560         * varasm.c (output_constant): Return the number of bytes actually
30561         emitted.
30562         (output_constructor_array_range): Update the field size with the
30563         number of bytes emitted by output_constant.
30564         (output_constructor_regular_field): Likewise.  Also do not
30565         complain if the total number of bytes emitted is now greater
30566         than the expected fieldpos.
30567         * output.h (output_constant): Update prototype and descriptive comment.
30568
30569 2014-01-16  Marek Polacek  <polacek@redhat.com>
30570
30571         PR middle-end/59827
30572         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30573         it is error_mark_node.
30574
30575 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
30576
30577         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30578         VALID_AVX256_REG_OR_OI_MODE.
30579
30580 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
30581
30582         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30583         current procedure should be profiled.
30584
30585 2014-01-15  Andrew Pinski  <apinski@cavium.com>
30586
30587         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30588         of moving from/to the STACK_REG register class.
30589
30590 2014-01-15  Richard Henderson  <rth@redhat.com>
30591
30592         PR debug/54694
30593         * reginfo.c (global_regs_decl): Globalize.
30594         * rtl.h (global_regs_decl): Declare.
30595         * ira.c (do_reload): Diagnose frame_pointer_needed and it
30596         reserved via global_regs.
30597
30598 2014-01-15  Teresa Johnson  <tejohnson@google.com>
30599
30600         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30601
30602 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
30603
30604         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30605         and vmulosh rather than call gen_vec_widen_smult_*.
30606         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30607         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30608         (vec_widen_smult_even_v16qi): Likewise.
30609         (vec_widen_umult_even_v8hi): Likewise.
30610         (vec_widen_smult_even_v8hi): Likewise.
30611         (vec_widen_umult_odd_v16qi): Likewise.
30612         (vec_widen_smult_odd_v16qi): Likewise.
30613         (vec_widen_umult_odd_v8hi): Likewise.
30614         (vec_widen_smult_odd_v8hi): Likewise.
30615         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30616         vmuloub rather than call gen_vec_widen_umult_*.
30617         (vec_widen_umult_lo_v16qi): Likewise.
30618         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30619         vmulosb rather than call gen_vec_widen_smult_*.
30620         (vec_widen_smult_lo_v16qi): Likewise.
30621         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30622         rather than call gen_vec_widen_umult_*.
30623         (vec_widen_umult_lo_v8hi): Likewise.
30624         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30625         rather than call gen_vec_widen_smult_*.
30626         (vec_widen_smult_lo_v8hi): Likewise.
30627
30628 2014-01-15  Jeff Law  <law@redhat.com>
30629
30630         PR tree-optimization/59747
30631         * ree.c (find_and_remove_re): Properly handle case where a second
30632         eliminated extension requires widening a copy created for elimination
30633         of a prior extension.
30634         (combine_set_extension): Ensure that the number of hard regs needed
30635         for a destination register does not change when we widen it.
30636
30637 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30638
30639         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30640         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30641         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30642         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30643         (avr-*-rtems*): Likewise.
30644         (bfin*-rtems*): Likewise.
30645         (moxie-*-rtems*): Likewise.
30646         (h8300-*-rtems*): Likewise.
30647         (i[34567]86-*-rtems*): Likewise.
30648         (lm32-*-rtems*): Likewise.
30649         (m32r-*-rtems*): Likewise.
30650         (m68k-*-rtems*): Likewise.
30651         (microblaze*-*-rtems*): Likewise.
30652         (mips*-*-rtems*): Likewise.
30653         (powerpc-*-rtems*): Likewise.
30654         (sh-*-rtems*): Likewise.
30655         (sparc-*-rtems*): Likewise.
30656         (sparc64-*-rtems*): Likewise.
30657         (v850-*-rtems*): Likewise.
30658         (m32c-*-rtems*): Likewise.
30659
30660 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
30661
30662         PR rtl-optimization/59511
30663         * ira.c (ira_init_register_move_cost): Use memory costs for some
30664         cases of register move cost calculations.
30665         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30666         instead of BB frequency.
30667         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30668         * lra-assigns.c (find_hard_regno_for): Ditto.
30669
30670 2014-01-15  Richard Biener  <rguenther@suse.de>
30671
30672         PR tree-optimization/59822
30673         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30674         (vectorizable_load): Use it to hoist defs of uses of invariant
30675         loads out of the loop.
30676
30677 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
30678             Kugan Vivekanandarajah  <kuganv@linaro.org>
30679
30680         PR target/59695
30681         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30682         truncation.
30683
30684 2014-01-15  Richard Biener  <rguenther@suse.de>
30685
30686         PR rtl-optimization/59802
30687         * lcm.c (compute_available): Use inverted postorder to seed
30688         the initial worklist.
30689
30690 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30691
30692         PR target/59803
30693         * config/s390/s390.c (s390_preferred_reload_class): Don't return
30694         ADDR_REGS for invalid symrefs in non-PIC code.
30695
30696 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
30697
30698         PR other/58712
30699         * builtins.c (determine_block_size): Initialize *probable_max_size
30700         even if len_rtx is CONST_INT.
30701
30702 2014-01-14  Andrew Pinski  <apinski@cavium.com>
30703
30704         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30705         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30706         (cortexa53_tunings): Likewise.
30707         (aarch64_sched_issue_rate): New function.
30708         (TARGET_SCHED_ISSUE_RATE): Define.
30709
30710 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30711
30712         * ira-costs.c (find_costs_and_classes): Add missed
30713         ira_init_register_move_cost_if_necessary.
30714
30715 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30716
30717         PR target/59787
30718         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30719
30720 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
30721
30722         PR target/59794
30723         * config/i386/i386.c (type_natural_mode): Add a bool parameter
30724         to indicate if type is used for function return value.  Warn ABI
30725         change if the vector mode isn't available for function return value.
30726         (ix86_function_arg_advance): Pass false to type_natural_mode.
30727         (ix86_function_arg): Likewise.
30728         (ix86_gimplify_va_arg): Likewise.
30729         (function_arg_32): Don't warn ABI change.
30730         (ix86_function_value): Pass true to type_natural_mode.
30731         (ix86_return_in_memory): Likewise.
30732         (ix86_struct_value_rtx): Removed.
30733         (TARGET_STRUCT_VALUE_RTX): Likewise.
30734
30735 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30736
30737         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30738         converting a conditional jump into a conditional return.
30739
30740 2014-01-14  Richard Biener  <rguenther@suse.de>
30741
30742         PR tree-optimization/58921
30743         PR tree-optimization/59006
30744         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30745         hoisting invariant stmts.
30746         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30747         invariant loads on the preheader edge if possible.
30748
30749 2014-01-14  Joey Ye  <joey.ye@arm.com>
30750
30751         * doc/plugin.texi (Building GCC plugins): Update to C++.
30752
30753 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
30754
30755         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30756         (_mm_rcp28_round_ss): Ditto.
30757         (_mm_rsqrt28_round_sd): Ditto.
30758         (_mm_rsqrt28_round_ss): Ditto.
30759         (_mm_rcp28_sd): Ditto.
30760         (_mm_rcp28_ss): Ditto.
30761         (_mm_rsqrt28_sd): Ditto.
30762         (_mm_rsqrt28_ss): Ditto.
30763         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30764         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30765         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30766         (IX86_BUILTIN_RCP28SD): Ditto.
30767         (IX86_BUILTIN_RCP28SS): Ditto.
30768         (IX86_BUILTIN_RSQRT28SD): Ditto.
30769         (IX86_BUILTIN_RSQRT28SS): Ditto.
30770         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30771         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30772         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30773         (ix86_expand_special_args_builtin): Expand new FTYPE.
30774         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30775         (srcp14<mode>): Make insn unary.
30776         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30777         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30778         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30779         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30780         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30781         Fix rounding: make it SAE only.
30782         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30783         Ditto.
30784         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30785         Ditto.
30786         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30787         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30788         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30789         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30790         (round_saeonly_mask_scalar_operand4): Ditto.
30791         (round_saeonly_mask_scalar_op3): Ditto.
30792         (round_saeonly_mask_scalar_op4): Ditto.
30793
30794 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30795
30796         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30797         Implement -maltivec=be for vec_insert and vec_extract.
30798
30799 2014-01-10  DJ Delorie  <dj@redhat.com>
30800
30801         * config/msp430/msp430.md (call_internal): Don't allow memory
30802         references with SP as the base register.
30803         (call_value_internal): Likewise.
30804         * config/msp430/constraints.md (Yc): New.  For memory references
30805         that don't use SP as a base register.
30806
30807         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30808         "an integer without a # prefix"
30809         * config/msp430/msp430.md (epilogue_helper): Use it.
30810
30811 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
30812
30813         PR target/59617
30814         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30815         AVX512F gather builtins.
30816         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30817         on gather decls with INTEGER_TYPE masktype.
30818         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30819         directly into the builtin rather than hoisting it before loop.
30820
30821         PR tree-optimization/59387
30822         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30823         (scev_const_prop): If folded_casts and type has undefined overflow,
30824         use force_gimple_operand instead of force_gimple_operand_gsi and
30825         for each added stmt if it is assign with
30826         arith_code_with_undefined_signed_overflow, call
30827         rewrite_to_defined_overflow.
30828         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30829         gimple-fold.h instead.
30830         (arith_code_with_undefined_signed_overflow,
30831         rewrite_to_defined_overflow): Moved to ...
30832         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30833         rewrite_to_defined_overflow): ... here.  No longer static.
30834         Include gimplify-me.h.
30835         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30836         rewrite_to_defined_overflow): New prototypes.
30837
30838 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30839
30840         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30841
30842 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
30843
30844         * builtins.c (get_object_alignment_2): Minor tweak.
30845         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30846
30847 2014-01-13  Christian Bruel  <christian.bruel@st.com>
30848
30849         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30850         optimized non constant lengths.
30851
30852 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
30853
30854         PR libgomp/59194
30855         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30856         load as __atomic_load_N if possible.
30857
30858 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30859
30860         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30861         target parameter.
30862         (rs6000_expand_builtin): Adjust call.
30863
30864 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30865
30866         PR target/58115
30867         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30868         * config/rs6000/rs6000.c: Include target-globals.h.
30869         (rs6000_set_current_function): Instead of doing target_reinit
30870         unconditionally, use save_target_globals_default_opts and
30871         restore_target_globals.
30872
30873         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30874         FPSCR.
30875         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30876         (rs6000_expand_builtin): Handle mffs and mtfsf.
30877         (rs6000_init_builtins): Define mffs and mtfsf.
30878         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30879         (rs6000_mffs): New pattern.
30880         (rs6000_mtfsf): New pattern.
30881
30882 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
30883
30884         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30885         Start narrowing with START.  Apply candidate-use pair
30886         and check overall cost in narrowing.
30887         (iv_ca_prune): Pass new argument.
30888
30889 2014-01-10  Jeff Law  <law@redhat.com>
30890
30891         PR middle-end/59743
30892         * ree.c (combine_reaching_defs): Ensure the defining statement
30893         occurs before the extension when optimizing extensions with
30894         different source and destination hard registers.
30895
30896 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
30897
30898         PR ipa/58585
30899         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30900         vtables into the type inheritance graph.
30901
30902 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30903
30904         PR rtl-optimization/59754
30905         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30906         modes in the REGNO != REGNO case.
30907
30908 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30909
30910         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30911
30912 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30913
30914         PR tree-optimization/59745
30915         * tree-predcom.c (tree_predictive_commoning_loop): Call
30916         free_affine_expand_cache if giving up because components is NULL.
30917
30918         * target-globals.c (save_target_globals): Allocate < 4KB structs using
30919         GC in payload of target_globals struct instead of allocating them on
30920         the heap and the larger structs separately using GC.
30921         * target-globals.h (struct target_globals): Make regs, hard_regs,
30922         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30923         of GTY((skip)) and change type to void *.
30924         (reset_target_globals): Cast loads from those fields to corresponding
30925         types.
30926
30927 2014-01-10  Steve Ellcey  <sellcey@mips.com>
30928
30929         PR plugins/59335
30930         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30931         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30932         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30933
30934 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
30935
30936         PR target/59744
30937         * aarch64-modes.def (CC_Zmode): New flags mode.
30938         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30939         represents an equality.
30940         (aarch64_get_condition_code): Handle CC_Zmode.
30941         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30942
30943 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30944
30945         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30946         extraction in good case.
30947
30948 2014-01-10  Richard Biener  <rguenther@suse.de>
30949
30950         PR tree-optimization/59374
30951         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30952         checking after SLP discovery.  Mark stmts not participating
30953         in any SLP instance properly.
30954
30955 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30956
30957         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30958         when handling a SET rtx.
30959
30960 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30961
30962         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30963         (cortex-a57): Likewise.
30964         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30965
30966 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30967
30968         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30969         non-iwmmxt builtins.
30970
30971 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
30972
30973         PR ipa/58252
30974         PR ipa/59226
30975         * ipa-devirt.c record_target_from_binfo): Take as argument
30976         stack of binfos and lookup matching one for virtual inheritance.
30977         (possible_polymorphic_call_targets_1): Update.
30978
30979 2014-01-10  Huacai Chen  <chenhc@lemote.com>
30980
30981         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30982         kernel strings for Loongson-2E/2F/3A.
30983
30984 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30985
30986         PR middle-end/59670
30987         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30988         is_gimple_call before calling gimple_call_internal_p.
30989
30990 2014-01-09  Steve Ellcey  <sellcey@mips.com>
30991
30992         * Makefile.in (TREE_FLOW_H): Remove.
30993         (TREE_SSA_H): Add file names from tree-flow.h.
30994         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30995         * tree.h: Remove tree-flow.h reference.
30996         * hash-table.h: Remove tree-flow.h reference.
30997         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30998         reference with tree-ssa-loop.h.
30999
31000 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31001
31002         * doc/invoke.texi: Add -maltivec={be,le} options, and document
31003         default element-order behavior for -maltivec.
31004         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
31005         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
31006         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
31007         when targeting big endian, at least for now.
31008         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
31009
31010 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31011
31012         PR middle-end/47735
31013         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
31014         var satisfies use_register_for_decl, just take into account type
31015         alignment, rather than decl alignment.
31016
31017         PR tree-optimization/59622
31018         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
31019         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
31020         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
31021         Don't devirtualize for inplace at all.  For targets.length () == 1,
31022         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
31023
31024 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
31025
31026         * config/i386/i386.md (cpu): Remove the unused btver1.
31027
31028 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
31029
31030         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
31031
31032 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31033
31034         PR target/58115
31035         * tree-core.h (struct target_globals): New forward declaration.
31036         (struct tree_target_option): Add globals field.
31037         * tree.h (TREE_TARGET_GLOBALS): Define.
31038         (prepare_target_option_nodes_for_pch): New prototype.
31039         * target-globals.h (struct target_globals): Define even if
31040         !SWITCHABLE_TARGET.
31041         * tree.c (prepare_target_option_node_for_pch,
31042         prepare_target_option_nodes_for_pch): New functions.
31043         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
31044         * config/i386/i386.c: Include target-globals.h.
31045         (ix86_set_current_function): Instead of doing target_reinit
31046         unconditionally, use save_target_globals_default_opts and
31047         restore_target_globals.
31048
31049 2014-01-09  Richard Biener  <rguenther@suse.de>
31050
31051         PR tree-optimization/59715
31052         * tree-cfg.h (split_critical_edges): Declare.
31053         * tree-cfg.c (split_critical_edges): Export.
31054         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
31055
31056 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31057
31058         * cfgexpand.c (expand_stack_vars): Optionally disable
31059         asan stack protection.
31060         (expand_used_vars): Likewise.
31061         (partition_stack_vars): Likewise.
31062         * asan.c (asan_emit_stack_protection): Optionally disable
31063         after return stack usage.
31064         (instrument_derefs): Optionally disable memory access instrumentation.
31065         (instrument_builtin_call): Likewise.
31066         (instrument_strlen_call): Likewise.
31067         (asan_protect_global): Optionally disable global variables protection.
31068         * doc/invoke.texi: Added doc for new options.
31069         * params.def: Added new options.
31070         * params.h: Likewise.
31071
31072 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
31073
31074         PR rtl-optimization/59724
31075         * ifcvt.c (cond_exec_process_if_block): Don't call
31076         flow_find_head_matching_sequence with 0 longest_match.
31077         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
31078         non-active insns if !stop_after.
31079         (try_head_merge_bb): Revert 2014-01-07 changes.
31080
31081 2014-01-08  Jeff Law  <law@redhat.com>
31082
31083         * ree.c (get_sub_rtx): New function, extracted from...
31084         (merge_def_and_ext): Here.
31085         (combine_reaching_defs): Use get_sub_rtx.
31086
31087 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
31088
31089         * cgraph.h (varpool_variable_node): Do not choke on null node.
31090
31091 2014-01-08  Catherine Moore  <clm@codesourcery.com>
31092
31093         * config/mips/mips.md (simple_return): Attempt to use JRC
31094         for microMIPS.
31095         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
31096
31097 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
31098
31099         PR rtl-optimization/59137
31100         * reorg.c (steal_delay_list_from_target): Call update_block for
31101         elided insns.
31102         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
31103
31104 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31105
31106         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
31107         two duplicate entries.
31108
31109 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
31110
31111         Revert:
31112         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
31113
31114         * config/mips/mips.c (mips_truncated_op_cost): New function.
31115         (mips_rtx_costs): Adjust test for BADDU.
31116         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
31117
31118         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
31119
31120         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
31121         (*baddu_si): ...this new pattern.
31122
31123 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
31124
31125         PR ipa/59722
31126         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
31127
31128 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31129
31130         PR middle-end/57748
31131         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
31132         inner_reference_p.
31133         (expand_expr, expand_normal): Adjust.
31134         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
31135         inner_reference_p. Use inner_reference_p to expand inner references.
31136         (store_expr): Adjust.
31137         * cfgexpand.c (expand_call_stmt): Adjust.
31138
31139 2014-01-08  Rong Xu  <xur@google.com>
31140
31141         * gcov-io.c (gcov_var): Move from gcov-io.h.
31142         (gcov_position): Ditto.
31143         (gcov_is_error): Ditto.
31144         (gcov_rewrite): Ditto.
31145         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
31146         only part to libgcc/libgcov.h.
31147
31148 2014-01-08  Marek Polacek  <polacek@redhat.com>
31149
31150         PR middle-end/59669
31151         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
31152
31153 2014-01-08  Marek Polacek  <polacek@redhat.com>
31154
31155         PR sanitizer/59667
31156         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
31157
31158 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
31159
31160         PR rtl-optimization/59649
31161         * stor-layout.c (get_mode_bounds): For BImode return
31162         0 and STORE_FLAG_VALUE.
31163
31164 2014-01-08  Richard Biener  <rguenther@suse.de>
31165
31166         PR middle-end/59630
31167         * gimple.h (is_gimple_builtin_call): Remove.
31168         (gimple_builtin_call_types_compatible_p): New.
31169         (gimple_call_builtin_p): New overload.
31170         * gimple.c (is_gimple_builtin_call): Remove.
31171         (validate_call): Rename to ...
31172         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
31173         check return types.
31174         (validate_type): New static function.
31175         (gimple_call_builtin_p): New overload and adjust.
31176         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
31177         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
31178         (gimple_fold_stmt_to_constant_1): Likewise.
31179         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
31180
31181 2014-01-08  Richard Biener  <rguenther@suse.de>
31182
31183         PR middle-end/59471
31184         * gimplify.c (gimplify_expr): Gimplify register-register type
31185         VIEW_CONVERT_EXPRs to separate stmts.
31186
31187 2014-01-07  Jeff Law  <law@redhat.com>
31188
31189         PR middle-end/53623
31190         * ree.c (combine_set_extension): Handle case where source
31191         and destination registers in an extension insn are different.
31192         (combine_reaching_defs): Allow source and destination registers
31193         in extension to be different under limited circumstances.
31194         (add_removable_extension): Remove restriction that the
31195         source and destination registers in the extension are the same.
31196         (find_and_remove_re): Emit a copy from the extension's
31197         destination to its source after the defining insn if
31198         the source and destination registers are different.
31199
31200         PR middle-end/59285
31201         * ifcvt.c (merge_if_block): If we are merging a block with more than
31202         one successor with a block with no successors, remove any BARRIER
31203         after the second block.
31204
31205 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
31206
31207         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
31208
31209 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
31210
31211         PR target/59652
31212         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
31213         for 14-bit register offsets when INT14_OK_STRICT is false.
31214
31215 2014-01-07  Roland Stigge  <stigge@antcom.de>
31216             Michael Meissner  <meissner@linux.vnet.ibm.com>
31217
31218         PR 57386/target
31219         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
31220         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
31221
31222 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
31223
31224         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
31225         -mcpu.
31226
31227 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
31228
31229         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
31230         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
31231         rtx is const0_rtx or not.
31232
31233 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
31234
31235         PR target/58115
31236         * target-globals.c (save_target_globals): Remove this_fn_optab
31237         handling.
31238         * toplev.c: Include optabs.h.
31239         (target_reinit): Temporarily restore the global options if another
31240         set of options are in force.
31241
31242 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
31243
31244         PR rtl-optimization/58668
31245         * cfgcleanup.c (flow_find_cross_jump): Don't count
31246         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
31247         to determine what is counted.
31248         (flow_find_head_matching_sequence): Use active_insn_p to determine
31249         what is counted.
31250         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
31251         counting change.
31252         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
31253         determine what is counted.
31254
31255         PR tree-optimization/59643
31256         * tree-predcom.c (split_data_refs_to_components): If one dr is
31257         read and one write, determine_offset fails and the write isn't
31258         in the bad component, just put the read into the bad component.
31259
31260 2014-01-07  Mike Stump  <mikestump@comcast.net>
31261             Jakub Jelinek  <jakub@redhat.com>
31262
31263         PR pch/59436
31264         * tree-core.h (struct tree_optimization_option): Change optabs
31265         type from unsigned char * to void *.
31266         * optabs.c (init_tree_optimization_optabs): Adjust
31267         TREE_OPTIMIZATION_OPTABS initialization.
31268
31269 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
31270
31271         PR target/59644
31272         * config/i386/i386.h (struct machine_function): Add
31273         no_drap_save_restore field.
31274         * config/i386/i386.c (ix86_save_reg): Use
31275         !cfun->machine->no_drap_save_restore instead of
31276         crtl->stack_realign_needed.
31277         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
31278         this function clears frame_pointer_needed.  Set
31279         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
31280         and DRAP reg is needed.
31281
31282 2014-01-06  Marek Polacek  <polacek@redhat.com>
31283
31284         PR c/57773
31285         * doc/implement-c.texi: Mention that other integer types are
31286         permitted as bit-field types in strictly conforming mode.
31287
31288 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
31289
31290         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
31291         is newly allocated.
31292
31293 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
31294
31295         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
31296
31297 2014-01-06  Martin Jambor  <mjambor@suse.cz>
31298
31299         PR ipa/59008
31300         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
31301         to int.
31302         * ipa-prop.c (ipa_print_node_params): Fix indentation.
31303
31304 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31305
31306         PR debug/59350
31307         PR debug/59510
31308         * var-tracking.c (add_stores): Preserve the value of the source even if
31309         we don't record the store.
31310
31311 2014-01-06  Terry Guo  <terry.guo@arm.com>
31312
31313         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
31314
31315 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
31316
31317         PR bootstrap/59541
31318         * config/darwin.c (darwin_function_section): Adjust return values to
31319         correspond to optimisation changes made in r206070.
31320
31321 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
31322
31323         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
31324         from prefetch_block tune setting.
31325         (nocona_cost): Correct size of prefetch block to 64.
31326
31327 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31328
31329         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
31330         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
31331         used to save the static chain register in the computation of the offset
31332         from which the FP registers need to be restored.
31333
31334 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
31335
31336         PR tree-optimization/59519
31337         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
31338         ICE if get_current_def (current_new_name) is already non-NULL, as long
31339         as it is a phi result of some other phi in *new_exit_bb that has
31340         the same argument.
31341
31342         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
31343         or vmovdqu* for misaligned_operand.
31344         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
31345         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
31346         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
31347         aligned_mem for AVX512F masked aligned load and store builtins and for
31348         non-temporal moves.
31349
31350 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
31351
31352         PR tree-optimization/59651
31353         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31354         Address range for negative step should be added by TYPE_SIZE_UNIT.
31355
31356 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
31357
31358         * config/m68k/m68k.c (handle_move_double): Handle pushes with
31359         overlapping registers also for registers other than the stack pointer.
31360
31361 2014-01-03  Marek Polacek  <polacek@redhat.com>
31362
31363         PR other/59661
31364         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
31365         __builtin_FILE.
31366
31367 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
31368
31369         PR target/59625
31370         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
31371         asm goto as jump.
31372
31373         * config/i386/i386.md (MODE_SIZE): New mode attribute.
31374         (push splitter): Use <P:MODE_SIZE> instead of
31375         GET_MODE_SIZE (<P:MODE>mode).
31376         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
31377         (mov -1, reg peephole2): Likewise.
31378         * config/i386/sse.md (*mov<mode>_internal,
31379         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
31380         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
31381         *<code><mode>3, *andnot<mode>3<mask_name>,
31382         <mask_codefor><code><mode>3<mask_name>): Likewise.
31383         * config/i386/subst.md (mask_mode512bit_condition,
31384         sd_mask_mode512bit_condition): Likewise.
31385
31386 2014-01-02  Xinliang David Li  <davidxl@google.com>
31387
31388         PR tree-optimization/59303
31389         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
31390         (dump_predicates): Better output format.
31391         (pred_equal_p): New function.
31392         (is_neq_relop_p): Ditto.
31393         (is_neq_zero_form_p): Ditto.
31394         (pred_expr_equal_p): Ditto.
31395         (pred_neg_p): Ditto.
31396         (simplify_pred): Ditto.
31397         (simplify_preds_2): Ditto.
31398         (simplify_preds_3): Ditto.
31399         (simplify_preds_4): Ditto.
31400         (simplify_preds): Ditto.
31401         (push_pred): Ditto.
31402         (push_to_worklist): Ditto.
31403         (get_pred_info_from_cmp): Ditto.
31404         (is_degenerated_phi): Ditto.
31405         (normalize_one_pred_1): Ditto.
31406         (normalize_one_pred): Ditto.
31407         (normalize_one_pred_chain): Ditto.
31408         (normalize_preds): Ditto.
31409         (normalize_cond_1): Remove function.
31410         (normalize_cond): Ditto.
31411         (is_gcond_subset_of): Ditto.
31412         (is_subset_of_any): Ditto.
31413         (is_or_set_subset_of): Ditto.
31414         (is_and_set_subset_of): Ditto.
31415         (is_norm_cond_subset_of): Ditto.
31416         (pred_chain_length_cmp): Ditto.
31417         (convert_control_dep_chain_into_preds): Type change.
31418         (find_predicates): Ditto.
31419         (find_def_preds): Ditto.
31420         (destroy_predicates_vecs): Ditto.
31421         (find_matching_predicates_in_rest_chains): Ditto.
31422         (use_pred_not_overlap_with_undef_path_pred): Ditto.
31423         (is_pred_expr_subset): Ditto.
31424         (is_pred_chain_subset_of): Ditto.
31425         (is_included_in): Ditto.
31426         (is_superset_of): Ditto.
31427
31428 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31429
31430         Update copyright years.
31431
31432 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31433
31434         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
31435         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
31436         config/arc/arc.md, config/arc/arc.opt,
31437         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
31438         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
31439         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
31440         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
31441         config/linux-protos.h, config/linux.c, config/winnt-c.c,
31442         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
31443         vtable-verify.c, vtable-verify.h: Use the standard form for the
31444         copyright notice.
31445
31446 2014-01-02  Tobias Burnus  <burnus@net-b.de>
31447
31448         * gcc.c (process_command): Update copyright notice dates.
31449         * gcov-dump.c: Ditto.
31450         * gcov.c: Ditto.
31451         * doc/cpp.texi: Bump @copying's copyright year.
31452         * doc/cppinternals.texi: Ditto.
31453         * doc/gcc.texi: Ditto.
31454         * doc/gccint.texi: Ditto.
31455         * doc/gcov.texi: Ditto.
31456         * doc/install.texi: Ditto.
31457         * doc/invoke.texi: Ditto.
31458
31459 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31460
31461         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
31462
31463 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
31464
31465         * config/i386/sse.md (*mov<mode>_internal): Guard
31466         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
31467
31468         PR rtl-optimization/59647
31469         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
31470         new_rtx into UNSIGNED_FLOAT rtxes.
31471 \f
31472 Copyright (C) 2014 Free Software Foundation, Inc.
31473
31474 Copying and distribution of this file, with or without modification,
31475 are permitted in any medium without royalty provided the copyright
31476 notice and this notice are preserved.