gcc/
[official-gcc.git] / gcc / ChangeLog
blob9bb932d9077f521011c5e80e625172236848a6a7
1 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
4         rather than an rtx pointer.  Change type of insn from "void *"
5         to its real type.  Return bool rather than int.  Iterate over
6         all subrtxes here.
7         (r10k_needs_protection_p_store): Update accordingly.
8         (r10k_needs_protection_p): Likewise.
10 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
12         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
13         (mips16_rewrite_pool_refs): Take the insn and constant pool as
14         parameters.  Iterate over the instruction's pattern and return void.
15         (mips16_lay_out_constants): Update accordingly.
17 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
19         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
20         (mips_refers_to_kernel_reg_p): ...this new function.
21         (mips_expand_prologue): Update accordingly.
23 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
25         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
26         as a parameter instead of the containing MEM.  Iterate over all
27         subrtxes.  Don't return a value.
28         (mips_rewrite_small_data): Update call accordingly.
30 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
32         * config/mips/mips.c: Include rtl-iter.h.
33         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
34         Take the context as a parameter instead of the containing MEM.
35         Iterate over all subrtxes.
36         (mips_small_data_pattern_p): Update call accordingly.
38 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
40         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
41         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
43 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
45         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
46         return a bool.  Replace "void *" with specific type.  Iterate
47         over all subrtxes.
48         (mep_store_data_bypass_1): Update calls accordingly.
50 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
52         * config/mep/mep.c: Include rtl-iter.h.
53         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
54         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
56 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
58         * config/xtensa/xtensa.c: Include rtl-iter.h.
59         (xtensa_tls_referenced_p_1): Delete.
60         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
62 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
64         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
65         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
67 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
69         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
70         rtx as argument and return the number of changes.
71         * config/sh/sh.c: Include rtl-iter.h.
72         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
73         over all subrtxes.  Return the number of changes made.
74         * config/sh/sh.md: Update caller accordingly.
76 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
78         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
79         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
81 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
83         * config/m68k/m68k.c: Include rtl-iter.h.
84         (m68k_final_prescan_insn_1): Delete.
85         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
87 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
89         PR tree-optimization/63641
90         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
91         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
93 2014-10-25  Alan Modra  <amodra@gmail.com>
95         PR rtl-optimization/63615
96         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
97         decomposing PLUS or MINUS if operands are not placed adjacent
98         in the "ops" array.
100 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
102         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
103         not allow e500 double in registers not satisyfing
104         SPE_SIMD_REGNO_P.
106 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
108         * dwarf2out.c (declare_in_namespace): Only emit external
109         declarations in the local scope once.
111 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
113         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
115 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
117         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
118         update uses to use new macro arguments.
119         (__LD3_LANE_FUNC): Likewise.
120         (__LD4_LANE_FUNC): Likewise.
122 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
124         * config/aarch64/aarch64-builtins.c
125         (aarch64_types_loadstruct_lane_qualifiers): Define.
126         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
127         ld4_lane): New builtins.
128         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
129         New pattern.
130         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
131         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
132         (aarch64_ld2_lane<mode>): New expand.
133         (aarch64_ld3_lane<mode>): Likewise.
134         (aarch64_ld4_lane<mode>): Likewise.
135         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
136         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
138 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
140         * avr-protos.h (avr_out_sign_extend): New.
141         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
142         (avr_out_sign_extend): New function.
143         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
144         (extendhisi2, extendpsisi2): Use it.
145         (adjust_len) [sext]: New.
147 2014-10-24  Martin Liska  <mliska@suse.cz>
149         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
150         added.
152 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
154         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
155         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
156         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
157         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
159 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
161         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
162         do while (0).
163         * config/aarch64/aarch64.c (is_mem_p): Delete.
164         (is_memory_op): Rename to...
165         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
166         (dep_between_memop_and_curr): Assert that the input is a SET.
167         (aarch64_madd_needs_nop): Add comment.  Do not call
168         dep_between_memop_and_curr on NULL body.
169         (aarch64_final_prescan_insn): Add comment.
170         Include rtl-iter.h.
172 2014-10-24  Richard Biener  <rguenther@suse.de>
174         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
175         to genmatch BUILD_LIBS instead.
177 2014-10-24  Richard Biener  <rguenther@suse.de>
179         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
180         and build_call_expr_loc.
181         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
182         non_lvalue_loc to build it for GENERIC.
183         (decision_tree::gen_generic): Add location argument to
184         generic_simplify prototype.
185         (capture_info): New class.
186         (capture_info::capture_info): New constructor.
187         (capture_info::walk_match): New method.
188         (capture_info::walk_result): New method.
189         (capture_info::walk_c_expr): New method.
190         (dt_simplify::gen): Handle preserving side-effects for
191         GENERIC code generation.
192         (decision_tree::gen_generic): Do not reject operands
193         with TREE_SIDE_EFFECTS.
194         * generic-match.h: New file.
195         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
196         * match.pd: Add some constant folding patterns from fold-const.c.
197         * fold-const.c: Include generic-match.h.
198         (fold_unary_loc): Dispatch to generic_simplify.
199         (fold_ternary_loc): Likewise.
200         (fold_binary_loc): Likewise.  Remove patterns now implemented
201         by generic_simplify.
202         * gimple-fold.c (replace_stmt_with_simplification): New function.
203         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
204         (no_follow_ssa_edges): New function.
205         (fold_stmt): New overload with valueization hook.  Use
206         no_follow_ssa_edges for the overload without hook.
207         (fold_stmt_inplace): Likewise.
208         * gimple-fold.h (no_follow_ssa_edges): Declare.
210 2014-10-24  Felix Yang  <felix.yang@huawei.com>
211         Jiji Jiang  <jiangjiji@huawei.com>
213         PR target/63173
214         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
215         (__LD3R_FUNC): Ditto.
216         (__LD4R_FUNC): Ditto.
217         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
218          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
219          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
220          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
221          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
222          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
223         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
224          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
225          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
226          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
227          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
228          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
229         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
230          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
231          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
232          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
233          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
234          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
235         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
236         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
237         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
238         builtins.
239         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
240         (aarch64_simd_ld3r<mode>): Likewise.
241         (aarch64_simd_ld4r<mode>): Likewise.
242         (aarch64_ld2r<mode>): New expand.
243         (aarch64_ld3r<mode>): Likewise.
244         (aarch64_ld4r<mode>): Likewise.
246 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
248         * rtlanal.c (get_base_term): Handle SCRATCH.
250 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
252         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
253         register pressure.
255 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
257         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
258         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
259         (max_issue, choose_ready, sched_init): Update.
261 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
263         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
264         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
265         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
266         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
267         (print_rank_for_schedule_stats): Print out elements of ready list that
268         ended up on their respective places due to each of the sorting
269         heuristics.
270         (ready_sort): Update.
271         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
272         (schedule_block): Update.
274 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
276         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
277         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
278         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
279         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
280         (model_start_schedule): Update.
281         (sched_pressure_start_bb): New static function.  Calculate
282         sched_class_regs_num.
283         (schedule_block): Use it.
284         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
286 2014-10-24  Richard Biener  <rguenther@suse.de>
288         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
289         host library and make sure to pull in the required libintl
290         and libiconv dependencies.
292 2014-10-24  Richard Biener  <rguenther@suse.de>
294         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
296 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
298         PR bootstrap/63632
299         * collect2.c (main): Filter out -fno-lto.
301 2014-10-24  Martin Liska  <mliska@suse.cz>
303         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
304         division by zero in dumps.
305         (sem_item_optimizer::merge_classes): Ditto.
307 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
309         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
311 2014-10-23  Ian Lance Taylor  <iant@google.com>
313         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
315 2014-10-23  Ian Lance Taylor  <iant@google.com>
317         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
319 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
321         PR debug/63623
322         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
323         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
324         instead of only handling autoinc in dest if it is a MEM.
325         (vt_stack_adjustments): Fix up formatting.
327 2014-10-23  DJ Delorie  <dj@redhat.com>
329         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
330         independend of -mlarge.
331         * config/msp430/constraints.md (Ys): Update comment.
333 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
335         PR target/63534
336         PR target/63618
337         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
338         while it is pseudo.
339         * dse.c (deletable_insn_p): Likewise.
341 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
343         * config/avr/avr.c: Fix GNU coding rules and typos.
344         * config/avr/avr.h: Dito.
345         * config/avr/avr-c.c: Dito.
346         * config/avr/avr.md: Dito.
348 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
350         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
351         New.
352         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
353         iterator.
354         (define_expand "abs<mode>2"): Ditto.
356 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
358         * tree-core.h (tree_var_decl): Extend `function_code' field
359         by one bit, move `regdecl_flag' field to ...
360         (tree_decl_with_vis): Here.
361         * tree.h (DECL_STATIC_CHAIN): Update struct name.
363 2014-10-23  Richard Biener  <rguenther@suse.de>
365         * Makefile.in (BUILD_CPPLIB): Add.
366         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
367         Drop LIBIBERTY.
369 2014-10-23  Richard Biener  <rguenther@suse.de>
371         * fold-const.c (fold_binary_loc): Preserve side-effects of
372         X - X when simplifying to 0.
373         * stor-layout.c (finish_bitfield_representative): Strip
374         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
376 2014-10-22  Richard Biener  <rguenther@suse.de>
377             Tobias Burnus <burnus@net-b.de>
379         PR lto/63603
380         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
382 2014-10-22  Dehao Chen  <dehao@google.com>
384         * auto-profile.c: Change order of header files.
386 2014-10-22  Guozhi Wei  <carrot@google.com>
388         PR tree-optimization/63530
389         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
390         pointer alignment according to DR_MISALIGNMENT.
392 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
394         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
396 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
398         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
399         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
400         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
401         * dominance.h: New.  Add prototypes for dominance.c.
402         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
403         * cfghooks.h: (struct profile_record) Relocate here.
404         Relocate 2 prototypes from basic-block.h.
405         * basic-block.h: Move prototypes and struct to new header files.
406         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
407         * rtl.h: Move a few prototypes to new header files.
408         * cfgcleanup.c (merge_memattrs): Make static.
409         * genopinit.c (main): Add predict.h to list of includes.
410         * predict.h: Update prototype list to match predict.c.
411         * predict.c (maybe_hot_count_p): Export.
412         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
413         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
414         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
415         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
416         * profile.h: Adjust prototypes.
417         * ifcvt.h: New.  Relocate struct ce_if_block here.
418         * ifcvt.c: Include ifcvt.h.
419         * config/frv/frv.c: Include ifcvt.h.
420         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
422 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
424         * lra.c (lra): Remove call to recog_init.
425         * config/i386/i386.md (preferred_for_speed): New attribute
426         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
427         "enabled".  Remove check for sched1.
429 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
431         * recog.h (recog_data_d): Remove enabled_alternatives.
432         * recog.c (extract_insn): Don't set it.
433         * reload.c (find_reloads): Call get_enabled_alternatives.
435 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
437         * recog.h (constrain_operands): Add an alternative_mask parameter.
438         (constrain_operands_cached): Likewise.
439         (get_preferred_alternatives): Declare new form.
440         * recog.c (get_preferred_alternatives): New bb-taking instance.
441         (constrain_operands): Take the set of available alternatives as
442         a parameter.
443         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
444         (extract_constrain_insn_cached): Update calls to constrain_operands.
445         * caller-save.c (reg_save_code): Likewise.
446         * ira.c (setup_prohibited_mode_move_regs): Likewise.
447         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
448         * ree.c (combine_reaching_defs): Likewise.
449         * reload.c (can_reload_into): Likewise.
450         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
451         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
452         (emit_insn_if_valid_for_reload): Likewise.
453         * reorg.c (fill_slots_from_thread): Likewise.
454         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
455         * config/pa/pa.c (pa_can_combine_p): Likewise.
456         * config/rl78/rl78.c (insn_ok_now): Likewise.
457         * config/sh/sh.md (define_peephole2): Likewise.
458         * final.c (final_scan_insn): Update call to constrain_operands_cached.
460 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
462         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
463         attributes.
464         * genattr.c (main): Handle "preferred_for_size" and
465         "preferred_for_speed" in the same way as "enabled".
466         * recog.h (bool_attr): New enum.
467         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
468         (get_preferred_alternatives, check_bool_attrs): Declare.
469         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
470         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
471         New functions.
472         (get_enabled_alternatives): Use get_bool_attr_mask.
473         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
474         instead of recog_data.enabled_alternatives.
475         * ira.c (ira_setup_alts): Likewise.
476         * postreload.c (reload_cse_simplify_operands): Likewise.
477         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
478         * ira-lives.c (preferred_alternatives): New variable.
479         (process_bb_node_lives): Set it.
480         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
481         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
482         of recog_data.enabled_alternatives.
483         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
484         to preferred_alternatives.
485         * lra-constraints.c (process_alt_operands): Update accordingly.
486         * lra.c (lra_set_insn_recog_data): Likewise.
487         (lra_update_insn_recog_data): Assert check_bool_attrs.
489 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
491         * recog.h (extract_constrain_insn): Declare.
492         * recog.c (extract_constrain_insn): New function.
493         * lra.c (check_rtl): Use it.
494         * postreload.c (reload_cse_simplify_operands): Likewise.
495         * reg-stack.c (check_asm_stack_operands): Likewise.
496         (subst_asm_stack_regs): Likewise.
497         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
498         * regrename.c (build_def_use): Likewise.
499         * sel-sched.c (get_reg_class): Likewise.
500         * config/arm/arm.c (note_invalid_constants): Likewise.
501         * config/s390/predicates.md (execute_operation): Likewise.
503 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
504             Yury Gribov  <y.gribov@samsung.com>
506         * common.opt (flag_sanitize_recover): New variable.
507         (fsanitize-recover): Remove Var/Init, deprecate.
508         (fsanitize-recover=): New option.
509         * doc/invoke.texi (fsanitize-recover): Update docs.
510         * opts.c (finish_options): Use opts->x_flag_sanitize
511         instead of flag_sanitize.  Prohibit -fsanitize-recover
512         for anything besides UBSan.  Formatting.
513         (common_handle_option): Handle OPT_fsanitize_recover_
514         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
515         instead of flag_sanitize.
516         * asan.c (pass_sanopt::execute): Fix up formatting.
517         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
518         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
519         instrument_bool_enum_load, ubsan_instrument_float_cast,
520         instrument_nonnull_arg, instrument_nonnull_return): Check
521         bits in flag_sanitize_recover bitmask instead of
522         flag_sanitize_recover as bool flag.
524 2014-10-22  Jiong Wang <jiong.wang@arm.com>
526         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
528 2014-10-22  Renlin Li <renlin.li@arm.com>
530         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
531         __ARM_FEATURE_IDIV__.
533 2014-10-22  Richard Biener  <rguenther@suse.de>
535         * Makefile.in (s-match): Adjust dependencies to only catch
536         match.pd.
538 2014-10-22  Richard Biener  <rguenther@suse.de>
539         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
541         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
542         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
543         (gimple-match.c): Generate by triggering s-match.
544         (generic-match.c): Likewise.
545         (s-match): Rule to build gimple-match.c and generic-match.c
546         by running the genmatch generator program.
547         (build/hash-table.o): Dependencies to build hash-table.c for the host.
548         (build/genmatch.o): Dependencies to build genmatch.
549         (genprog): Add match.
550         (build/genmatch): Likewise.
551         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
552         * generic-match-head.c: New file.
553         * gimple-match-head.c: Likewise.
554         * gimple-match.h: Likewise.
555         * genmatch.c: Likewise.
556         * match.pd: Likewise.
557         * builtins.h (fold_builtin_n): Export.
558         * builtins.c (fold_builtin_n): Likewise.
559         * gimple-fold.h (gimple_build): Declare various overloads.
560         (gimple_simplify): Likewise.
561         (gimple_convert): Re-implement in terms of gimple_build.
562         * gimple-fold.c (gimple_convert): Remove.
563         (gimple_build): New functions.
564         * doc/match-and-simplify.texi: New file.
565         * doc/gccint.texi: Add menu item Match and Simplify and include
566         match-and-simplify.texi.
568 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
570         PR target/63594
571         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
572         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
573         even for just TARGET_AVX2, not only for
574         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
575         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
576         otherwise build it using concatenation of 256-bit
577         broadcast.
578         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
579         avx512 broadcast patterns.
580         (vec_dup<mode>): Likewise.  For avx2 use
581         v<sseintprefix>broadcast<bcstscalarsuff> instead of
582         vbroadcast<ssescalarmodesuffix>.
583         (AVX2_VEC_DUP_MODE): New mode iterator.
584         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
585         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
587         PR target/63542
588         * config/i386/i386.c (ix86_pic_register_p): Also return
589         true if x is a hard register with ORIGINAL_REGNO equal to
590         pic_offset_table_rtx pseudo REGNO.
591         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
592         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
594 2014-10-22  Alan Modra  <amodra@gmail.com>
596         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
597         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
598         (gcc_obstack_init): Use obstack_specify_allocation in place of
599         _obstack_begin.
600         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
601         (regexp_representation): Likewise.
602         * godump.c (go_output_type): Likewise.
604 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
606         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
607         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
608         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
610 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
612         * doc/invoke.texi (pedantic-errors): Explain better.
614 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
615             Vidya Praveen <vidya.praveen@atmel.com>
616             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
617             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
618             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
620         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
621         __MEMX for avrtiny.
622         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
623         (avr_nonconst_pointer_addrspace): Likewise.
624         * config/avr/avr.h (AVR_HAVE_LPM): Define.
626         Added AVRTINY architecture to avr target.
627         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
628         (base_arch_s): member added for AVRTINY architecture.
629         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
630         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
631         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
632         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
633         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
634         in callee saved register list.
635         (avr_option_override): CCP address updated for AVRTINY.
636         (avr_init_expanders): tmp and zero rtx initialized as per arch.
637         Reset avr_have_dimode if AVRTINY.
638         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
639         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
640         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
641         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
642         (expand_epilogue): Likewise.
643         (avr_print_operand): Print CCP address in case of AVRTINY also.
644         <TBD>bad address
645         (function_arg_regno_p): Check different register list for arguments
646         if AVRTINY.
647         (init_cumulative_args): Check for AVRTINY to update number of argument
648         registers.
649         (tiny_valid_direct_memory_access_range): New function. Return false if
650         direct memory access range is not in accepted range for AVRTINY.
651         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
652         indirect load (with displacement) for AVRTINY.
653         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
654         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
655         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
656         indirect load (no displacement) for AVRTINY.
657         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
658         indirect load (with displacement) for AVRTINY.
659         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
660         indirect load for pre-decrement address.
661         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
662         functions. Update instruction length for AVRTINY.
663         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
664         SImode.
665         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
666         (out_movsi_r_mr): Likewise, for SImode.
667         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
668         indirect store (no displacement) for AVRTINY.
669         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
670         indirect store (with displacement) for AVRTINY.
671         (out_movsi_mr_r): Emit out insn for IO address store. Update store
672         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
673         store functions.
674         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
675         indirect load (no displacement) for PSImode in AVRTINY.
676         (avr_out_load_psi_reg_disp_tiny): New function to handle register
677         indirect load (with displacement) for PSImode in AVRTINY.
678         (avr_out_load_psi): Call PSImode register indirect load functions for
679         AVRTINY. Update instruction length for AVRTINY.
680         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
681         indirect store (no displacement) for PSImode in AVRTINY.
682         (avr_out_store_psi_reg_disp_tiny): New function to handle register
683         indirect store (with displacement) for PSImode in AVRTINY.
684         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
685         register indirect store functions for AVRTINY.
686         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
687         register indirect store (with displacement) for AVRTINY.
688         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
689         register indirect store function for QImode in AVRTINY.
690         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
691         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
692         indirect store (no displacement) for HImode in AVRTINY.
693         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
694         indirect store (with displacement) for HImode in AVRTINY.
695         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
696         indirect store for post-increment address in HImode.
697         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
698         register indirect store function for HImode in AVRTINY.
699         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
700         in case of AVRTINY.
701         (order_regs_for_local_alloc): Updated register allocation order for
702         AVRTINY.
703         (avr_conditional_register_usage): New function. It is a target hook
704         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
705         used registers list and register allocation order for AVRTINY.
706         (avr_return_in_memory): Update return value size for AVRTINY.
707         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
708         for AVRTINY arch and tiny program memory base address.
709         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
710         (avr_texinfo): Added description for AVRTINY arch.
711         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
712         STATIC_CHAIN_REGNUM for AVRTINY.
713         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
714         * config/avr/avr.md: Added constants for tmp/ zero registers in
715         AVRTINY. Attributes for AVRTINY added.
716         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
717         memory access range.
718         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
719         in AVRTINY memory access range.
720         (*mov<mode>): Likewise for HImode and SImode.
721         (*movsf): Likewise for SFmode.
722         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
723         not have sbiw.
724         * config/avr/avr-protos.h: Added function prototype for
725         tiny_valid_direct_memory_access_range.
726         * config/avr/avr-tables.opt: Regenerate.
727         * gcc/config/avr/t-multilib: Regenerate.
728         * doc/avr-mmcu.texi: Regenerate.
730 2014-10-21  Andrew Pinski  <apinski@cavium.com>
732         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
733         available option also.
734         * config/aarch64/aarch64-cost-tables.h: New file.
735         * config/aarch64/aarch64-cores.def (thunderx): New core.
736         * config/aarch64/aarch64-tune.md: Regenerate.
737         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
738         of config/arm/aarch-cost-tables.h.
739         (thunderx_regmove_cost): New variable.
740         (thunderx_tunings): New variable.
742 2014-10-21  Dehao Chen  <dehao@google.com>
744         * auto-profile.c: New file.
745         * auto-profile.h: New file.
746         * basic-block.h (maybe_hot_count_p): New export func.
747         (add_working_set): New export func.
748         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
749         (GCOV_TAG_AFDO_FUNCTION): Likewise.
750         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
751         * opts.c (enable_fdo_optimizations): New func.
752         (common_handle_option): Handle -fauto-profile flag.
753         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
754         (class pass_early_inline): Export early_inliner.
755         (early_inliner): Likewise.
756         (pass_early_inline::execute): Likewise.
757         * ipa-inline.h (early_inliner): Likewise.
758         * predict.c (maybe_hot_count_p): New export func.
759         (counts_to_freqs): AutoFDO logic.
760         (rebuild_frequencies): Likewise.
761         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
762         * profile.c (add_working_set): New func.
763         * Makefile.in (auto-profile.o): New object file.
764         * passes.def (pass_ipa_auto_profile): New pass.
765         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
766         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
767         * toplev.c (compile_file): AutoFDO logic.
768         * doc/invoke.texi (-fauto-profile): New doc.
769         * coverage.c (coverage_init): AutoFDO logic.
770         * common.opt (-fauto-profile): New flag.
771         * timevar.def (TV_IPA_AUTOFDO): New tag.
772         * value-prof.c (gimple_alloc_histogram_value): New export func.
773         (check_ic_target): Likewise.
774         * value-prof.h (gimple_alloc_histogram_value): Likewise.
775         (check_ic_target): Likewise.
777 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
779         * cgraph.c (cgraph_c_finalize): New function.
780         * cgraph.h (cgraph_c_finalize): New prototype.
781         (cgraphunit_c_finalize): New prototype.
782         * cgraphunit.c (first_analyzed): Move from analyze_functions
783         to file-scope.
784         (first_analyzed_var): Likewise.
785         (analyze_functions): Move static variables into file-scope.
786         (cgraphunit_c_finalize): New function.
787         * diagnostic.c (diagnostic_finish): Free the memory for
788         context->classify_diagnostic and context->printer, running the
789         destructor for the latter.
790         (bt_stop): Use toplev::main.
791         * dwarf2out.c (dwarf2out_finalize): New function.
792         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
793         * gcse.c (gcse_c_finalize): New function.
794         * gcse.h (gcse_c_finalize): New prototype.
795         * ggc-page.c (init_ggc): Make idempotent.
796         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
797         * ipa-cp.c (ipa_cp_c_finalize): New function.
798         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
799         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
800         a field of class pass_ipa_pure_const.
801         (node_duplication_hook_holder): Likewise.
802         (node_removal_hook_holder): Likewise.
803         (register_hooks): Convert to method...
804         (pass_ipa_pure_const::register_hooks): ...here, converting
805         static variable init_p into...
806         (pass_ipa_pure_const::init_p): ...new field.
807         (pure_const_generate_summary): Update invocation of
808         register_hooks to invoke as a method of current_pass.
809         (pure_const_read_summary): Likewise.
810         (propagate): Convert to...
811         (pass_ipa_pure_const::execute): ...method.
812         * ipa-reference.c (ipa_init): Move static bool init_p from here
813         to...
814         (ipa_init_p): New file-scope variable, so that it can be reset
815         when repeatedly invoking the compiler within one process by...
816         (ipa_reference_c_finalize): New function.
817         * ipa-reference.h (ipa_reference_c_finalize): New.
818         * main.c (main): Replace invocation of toplev_main with
819         construction of a toplev instance, and call its "main" method.
820         * params.c (global_init_params): Add an assert that
821         params_finished is false.
822         (params_c_finalize): New.
823         * params.h (params_c_finalize): New.
824         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
825         invoking generate_summary, for the benefit of pass_ipa_pure_const.
826         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
827         before calling write_summary hook.
828         (ipa_write_optimization_summaries_1): Likewise when calling
829         write_optimization_summary hook.
830         (ipa_read_summaries_1): Likewise for read_summary hook.
831         (ipa_read_optimization_summaries_1): Likewise for
832         read_optimization_summary hook.
833         (execute_ipa_stmt_fixups): Likewise.
834         * stringpool.c (init_stringpool): Clean up if we're called more
835         than once.
836         * timevar.c (timevar_init): Ignore repeated calls.
837         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
838         "ipa-prop.h".
839         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
840         (initialize_rtl): Move static local "initialized_once"
841         into file scope, and rename to...
842         (rtl_initialized): New variable.
843         (do_compile): Move timevar initialization from here to
844         toplev::start_timevars.
845         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
846         toplev::finalize): New functions.
847         (toplev_main): Rename to...
848         (toplev::main): ...this.
849         * toplev.h (class toplev): New class.
851 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
853         * loop-doloop.c: Include loop-unroll.h.
855 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
857         * cfg.h: New.  Header file for cfg.c.
858         * cfganal.h: New.  Header file for cfganal.c.
859         * lcm.h: New.  Header file for lcm.c.
860         * loop-unroll.h: New.  Header file for loop-unroll.h.
861         * cfgloop.h: (unroll_loops): Remove prototype.
862         * basic-block.h: Move prototypes and structs to new header files.
863         Include cfg.h, cfganal.h, and lcm.h.
864         * loop-init.c: Include loop-unroll.h.
865         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
866         * modulo-sched.c: Include loop-unroll.h.
868 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
870         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
871         MARKER_BYTE_UNKNOWN markers when handling casts.
873 2014-10-21  Richard Biener  <rguenther@suse.de>
875         * tree-ssa-phiopt.c (value_replacement): Properly verify we
876         are the non-singleton PHI.
878 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
880         PR tree-optimization/63563
881         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
882         if either dra or drb stmts are not normal loads/stores.
884 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
886         * config/i386/i386.c (expand_vec_perm_1): Fix
887         expand_vec_perm_palignr case.
888         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
889         VI1_AVX512.
891 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
893         * cfgloopanal.c (seq_cost): Delete.
894         * rtl.h (seq_cost): New prototype.
895         * rtlanal.c (seq_cost): New function.
896         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
898 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
900         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
901         * basic-block.h: Remove prototypes for cfgrtl.c.
902         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
903         prototypes to cfgrtl.h.
904         * profile.h (profile_info): Add extern export declaration.
905         * rtl.h: Remove prototypes for cfgrtl.h.
906         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
907         * ipa-inline.c: Include profile.h.
908         * loop-unroll.c: Ditto.
909         * modulo-sched.c: Ditto.
910         * postreload-gcse.c: Ditto.
911         * predict.c: Ditto.
912         * sched-ebb.c: Ditto.
913         * sched-rgn.c: Ditto.
914         * tracer.c: Ditto.
915         * tree-ssa-loop-ivcanon.c: Ditto.
917 2014-10-20  Richard Biener  <rguenther@suse.de>
919         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
920         operands to get a def operand kind match.  Signal mismatches
921         to the parent so we can try swapping its operands.
922         (vect_build_slp_tree): Try swapping operands if they have
923         a mismatched operand kind.
925 2014-10-20  Alan Modra  <amodra@gmail.com>
927         PR debug/60655
928         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
929         Increase "ops" array size.  Correct array size tests.  Init
930         n_constants in loop.  Break out of innermost loop when finding
931         a trivial CONST expression.
933 2014-10-20  Martin Liska  <mliska@suse.cz>
935         PR ipa/63583
936         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
937         Gimple tempate string is compared.
939 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
941         * varasm.c (const_alias_set): Remove.
942         (init_varasm_once): Remove initialization of const_alias_set.
943         (build_constant_desc): Do not set alias set to const_alias_set.
945 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
947         * configure: Regenerate.
948         * configure.ac: Move the test for section attribute specifier "e" in GAS
949         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
950         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
951         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
952         ifdef HAVE_GAS_SECTION_EXCLUDE.
954 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
956         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
957         match_operand expression.
959 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
960             David Edelsohn  <dje.gcc@gmail.com>
962         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
963         function.
964         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
966 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
968         * doc/invoke.texi (Options to Request or Suppress Warnings):
969         Explain options precedence.
970         (Wtrampolines): Do not indent paragraph.
972 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
974         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
975         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
976         (pa_jump_in_call_delay): Likewise.
977         * config/pa/pa.c (pa_option_override): Remove jump in call delay
978         override.
979         (pa_output_millicode_call): Remove support for jump in call delay.
980         (pa_output_call): Likewise.
981         (pa_jump_in_call_delay): Delete.
982         (pa_following_call): Likewise.
983         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
984         (uncond_branch): Remove following call check from attribute length.
986 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
988         PR target/53513
989         * config/sh/sh-modes.def (PSI): Remove.
990         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
991         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
992         (sh_reorg): Remove commented out FPSCR code.
993         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
994         insn instead of move insn.
995         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
996         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
997         handling.
998         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
999         (sh1_builtin_p): Uncomment.
1000         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1001         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1002         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1003         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1004         (general_movsrc_operand, general_movdst_operand): Disallow
1005         fpscr_operand.
1006         * config/sh/sh.md (FPSCR_FR): New constant.
1007         (push_fpscr): Emit sts_fpscr insn.
1008         (pop_fpscr): Emit lds_fpscr_insn.
1009         (movsi_ie): Disallow FPSCR operands.
1010         (fpu_switch, unnamed related split, extend_psi_si,
1011         truncate_si_psi): Remove insns.
1012         (lds_fpscr, sts_fpscr): New insns.
1013         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1015 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1017         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1018         (clone_inlined_nodes): Do not overwrite the clone if above predicate
1019         returns true.
1021 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
1023         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1024         (expand_vec_perm_d): Ditto.
1025         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1026         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1027         V4DFmode.
1028         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1029         (ix86_expand_sse_unpack): Handle V64QImode.
1030         (expand_vec_perm_blend): Update conditions for TARGET, handle
1031         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1032         (expand_vec_perm_pshufb): Handle V64QImode.
1033         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1034         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1035         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
1036         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1037         (ix86_expand_vecop_qihi): Handle V64QImode.
1038         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1039         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1040         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1041         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1042         (mul<mode>3): Use VI1_AVX512.
1043         (<sse2_avx2>_packsswb): Ditto.
1044         (<sse2_avx2>_packuswb): Ditto.
1045         (<ssse3_avx2>_pshufb<mode>3): Ditto.
1046         (<shift_insn><mode>3): Ditto.
1048 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
1050         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1051         conditions to fix bootstrap.
1053 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
1055         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
1057 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1058             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1059             Anna Tikhonova  <anna.tikhonova@intel.com>
1060             Ilya Tocar  <ilya.tocar@intel.com>
1061             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1062             Ilya Verbin  <ilya.verbin@intel.com>
1063             Kirill Yukhin  <kirill.yukhin@intel.com>
1064             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1066         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1067         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1068         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1069         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1070         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1071         (define_expand "vec_init<mode>"): Use VF48_I1248.
1073 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1074             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1075             Anna Tikhonova  <anna.tikhonova@intel.com>
1076             Ilya Tocar  <ilya.tocar@intel.com>
1077             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1078             Ilya Verbin  <ilya.verbin@intel.com>
1079             Kirill Yukhin  <kirill.yukhin@intel.com>
1080             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1082         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1083         expand_sse2_mulvxdi3.
1085 2014-10-17  Richard Biener  <rguenther@suse.de>
1087         * fold-const.c (fold_comparison): Remove redundant constant
1088         folding and operand swapping.
1089         (fold_binary_loc): Do comparison operand swapping here.
1090         (fold_ternary_loc): Canonicalize operand order for
1091         commutative ternary operations.
1092         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1093         and FMA_EXPR.
1095 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
1097         PR tree-optimization/63464
1098         * gimple.h (gimple_seq_discard): New prototype.
1099         * gimple.c: Include stringpool.h and tree-ssanames.h.
1100         (gimple_seq_discard): New function.
1101         * optabs.h (lshift_cheap_p): New prototype.
1102         * optabs.c (lshift_cheap_p): New function, moved from...
1103         * tree-switch-conversion.c (lshift_cheap_p): ... here.
1104         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1105         (reassoc_branch_fixups): New variable.
1106         (update_range_test): Add otherrangep and seq arguments.
1107         Unshare exp.  If otherrange is NULL, use for other ranges
1108         array of pointers pointed by otherrangep instead.
1109         Emit seq before gimplified statements for tem.
1110         (optimize_range_tests_diff): Adjust update_range_test
1111         caller.
1112         (optimize_range_tests_xor): Likewise.  Fix up comment.
1113         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1114         functions.
1115         (optimize_range_tests): Adjust update_range_test caller.
1116         Call optimize_range_tests_to_bit_test.
1117         (branch_fixup): New function.
1118         (execute_reassoc): Call branch_fixup.
1120         PR tree-optimization/63302
1121         * tree-ssa-reassoc.c (optimize_range_tests_xor,
1122         optimize_range_tests_diff): Use !integer_pow2p () instead of
1123         tree_log2 () < 0.
1125 2014-10-17  Martin Liska  <mliska@suse.cz>
1127         * ipa-icf.c (sem_function::merge): Local flags are set to false
1128         to enforce equal calling convention to be used.
1129         * opts.c (common_handle_option): Indentation fix.
1131 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
1133         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1135 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1137         PR rtl-optimization/61605
1138         * regcprop.c (copyprop_hardreg_forward_1): Use
1139         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1141 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1143         PR rtl-optimization/61605
1144         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
1145         notice stores for noops.  Don't regard noops as copies.
1147 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
1149         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1150         register in a special way.
1151         (__cpuid_count): Ditto.
1152         * config/i386/driver-i386.h: Protect with
1153         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1154         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1155         is required to compile the function.
1157 2014-10-16  DJ Delorie  <dj@redhat.com>
1159         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1160         integers.
1162         * config/rs6000/rs6000-c.c (rid_int128): New.
1163         (rs6000_macro_to_expand): Use instead of RID_INT128.
1165 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1167         * function.h: Flatten file.  Remove includes, adjust prototypes to
1168         reflect only what is in function.h.
1169         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1170         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1171         from expr.h.
1172         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1173         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1174         prototypes to predict.h.
1175         (init_varasm_status): Move prototype to varasm.h.
1176         * expr.h: Adjust include files.
1177         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1178         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1179         to function.h.
1180         (locate_and_pad_parm): Move prototype to function.h.
1181         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1182         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1183         assign_temp, reposition_prologue_and_epilogue_notes,
1184         prologue_epilogue_contains, sibcall_epilogue_contains,
1185         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1186         set_return_jump_label): Move prototypes to function.h.
1187         * predict.h (optimize_function_for_size_p,
1188         optimize_function_for_speed_p): Relocate prototypes from function.h.
1189         * shrink-wrap.h (emit_return_into_block, active_insn_between,
1190         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1191         function.h.
1192         * varasm.h (init_varasm_status): Relocate prototype from function.h.
1193         * genattrtab.c (write_header): Add predict.h to include list.
1194         * genconditions.c (write_header): Add predict.h to include list.
1195         * genemit.c (main): Adjust header file includes.
1196         * gengtype.c (ifiles): Add flattened function.h header files.
1197         * genoutput.c (output_prologue): Add predict.h to include list.
1198         * genpreds.c (write_insn_preds_c): Adjust header file includes.
1199         * genrecog.c (write_header): Add flattened function.h header files.
1200         * alias.c: Adjust include files.
1201         * auto-inc-dec.c: Likewise.
1202         * basic-block.h: Likewise.
1203         * bb-reorder.c: Likewise.
1204         * bt-load.c: Likewise.
1205         * builtins.c: Likewise.
1206         * caller-save.c: Likewise.
1207         * calls.c: Likewise.
1208         * cfgbuild.c: Likewise.
1209         * cfgcleanup.c: Likewise.
1210         * cfgexpand.c: Likewise.
1211         * cfgloop.c: Likewise.
1212         * cfgloop.h: Likewise.
1213         * cfgrtl.c: Likewise.
1214         * cgraph.h: Likewise.
1215         * cgraphclones.c: Likewise.
1216         * cgraphunit.c: Likewise.
1217         * combine-stack-adj.c: Likewise.
1218         * combine.c: Likewise.
1219         * coverage.c: Likewise.
1220         * cprop.c: Likewise.
1221         * cse.c: Likewise.
1222         * cselib.c: Likewise.
1223         * dbxout.c: Likewise.
1224         * ddg.c: Likewise.
1225         * df-core.c: Likewise.
1226         * df-problems.c: Likewise.
1227         * df-scan.c: Likewise.
1228         * dojump.c: Likewise.
1229         * dwarf2cfi.c: Likewise.
1230         * dwarf2out.c: Likewise.
1231         * emit-rtl.c: Likewise.
1232         * except.c: Likewise.
1233         * explow.c: Likewise.
1234         * expr.c: Likewise.
1235         * final.c: Likewise.
1236         * function.c: Likewise.
1237         * gcse.c: Likewise.
1238         * gimple-fold.c: Likewise.
1239         * gimple-low.c: Likewise.
1240         * gimple-streamer.h: Likewise.
1241         * haifa-sched.c: Likewise.
1242         * ifcvt.c: Likewise.
1243         * ira.c: Likewise.
1244         * jump.c: Likewise.
1245         * lcm.c: Likewise.
1246         * loop-invariant.c: Likewise.
1247         * lra-assigns.c: Likewise.
1248         * lra-coalesce.c: Likewise.
1249         * lra-constraints.c: Likewise.
1250         * lra-eliminations.c: Likewise.
1251         * lra-lives.c: Likewise.
1252         * lra-spills.c: Likewise.
1253         * lra.c: Likewise.
1254         * lto-cgraph.c: Likewise.
1255         * lto-section-in.c: Likewise.
1256         * lto-section-out.c: Likewise.
1257         * lto-streamer-in.c: Likewise.
1258         * lto-streamer-out.c: Likewise.
1259         * mode-switching.c: Likewise.
1260         * modulo-sched.c: Likewise.
1261         * omp-low.c: Likewise.
1262         * optabs.c: Likewise.
1263         * passes.c: Likewise.
1264         * postreload-gcse.c: Likewise.
1265         * postreload.c: Likewise.
1266         * predict.c: Likewise.
1267         * profile.c: Likewise.
1268         * recog.c: Likewise.
1269         * ree.c: Likewise.
1270         * reg-stack.c: Likewise.
1271         * regcprop.c: Likewise.
1272         * reginfo.c: Likewise.
1273         * regrename.c: Likewise.
1274         * reload.c: Likewise.
1275         * reload1.c: Likewise.
1276         * reorg.c: Likewise.
1277         * resource.c: Likewise.
1278         * rtlanal.c: Likewise.
1279         * sched-deps.c: Likewise.
1280         * sched-ebb.c: Likewise.
1281         * sched-rgn.c: Likewise.
1282         * sel-sched-dump.c: Likewise.
1283         * sel-sched-ir.c: Likewise.
1284         * sel-sched.c: Likewise.
1285         * shrink-wrap.c: Likewise.
1286         * simplify-rtx.c: Likewise.
1287         * statistics.c: Likewise.
1288         * stmt.c: Likewise.
1289         * stor-layout.c: Likewise.
1290         * store-motion.c: Likewise.
1291         * symtab.c: Likewise.
1292         * targhooks.c: Likewise.
1293         * toplev.c: Likewise.
1294         * trans-mem.c: Likewise.
1295         * tree-cfg.c: Likewise.
1296         * tree-cfgcleanup.c: Likewise.
1297         * tree-dfa.c: Likewise.
1298         * tree-eh.c: Likewise.
1299         * tree-inline.c: Likewise.
1300         * tree-into-ssa.c: Likewise.
1301         * tree-nested.c: Likewise.
1302         * tree-nrv.c: Likewise.
1303         * tree-profile.c: Likewise.
1304         * tree-ssa-alias.c: Likewise.
1305         * tree-ssa-ccp.c: Likewise.
1306         * tree-ssa-copy.c: Likewise.
1307         * tree-ssa-copyrename.c: Likewise.
1308         * tree-ssa-dom.c: Likewise.
1309         * tree-ssa-operands.c: Likewise.
1310         * tree-ssa-propagate.c: Likewise.
1311         * tree-ssa-structalias.c: Likewise.
1312         * tree-ssa-tail-merge.c: Likewise.
1313         * tree-ssa-threadedge.c: Likewise.
1314         * tree-ssa-threadupdate.c: Likewise.
1315         * tree-ssa-uncprop.c: Likewise.
1316         * tree-ssa-uninit.c: Likewise.
1317         * tree-ssa.c: Likewise.
1318         * tree-stdarg.c: Likewise.
1319         * tree-tailcall.c: Likewise.
1320         * tree.c: Likewise.
1321         * tsan.c: Likewise.
1322         * valtrack.c: Likewise.
1323         * varasm.c: Likewise.
1324         * vmsdbgout.c: Likewise.
1325         * web.c: Likewise.
1326         * config/aarch64/aarch64.c: Add flattened includes from function.h.
1327         * config/alpha/alpha.c: Likewise.
1328         * config/arc/arc.c: Likewise.
1329         * config/arm/arm.c: Likewise.
1330         * config/avr/avr-log.c: Likewise.
1331         * config/avr/avr.c: Likewise.
1332         * config/bfin/bfin.c: Likewise.
1333         * config/c6x/c6x.c: Likewise.
1334         * config/cr16/cr16.c: Likewise.
1335         * config/cris/cris.c: Likewise.
1336         * config/darwin.c: Likewise.
1337         * config/epiphany/epiphany.c: Likewise.
1338         * config/epiphany/mode-switch-use.c: Likewise.
1339         * config/epiphany/resolve-sw-modes.c: Likewise.
1340         * config/fr30/fr30.c: Likewise.
1341         * config/frv/frv.c: Likewise.
1342         * config/h8300/h8300.c: Likewise.
1343         * config/i386/i386.c: Likewise.
1344         * config/ia64/ia64.c: Likewise.
1345         * config/iq2000/iq2000.c: Likewise.
1346         * config/lm32/lm32.c: Likewise.
1347         * config/m32c/m32c.c: Likewise.
1348         * config/m32r/m32r.c: Likewise.
1349         * config/m68k/m68k.c: Likewise.
1350         * config/mcore/mcore.c: Likewise.
1351         * config/mep/mep-pragma.c: Likewise.
1352         * config/mep/mep.c: Likewise.
1353         * config/microblaze/microblaze.c: Likewise.
1354         * config/mips/mips.c: Likewise.
1355         * config/mmix/mmix.c: Likewise.
1356         * config/mn10300/mn10300.c: Likewise.
1357         * config/moxie/moxie.c: Likewise.
1358         * config/msp430/msp430.c: Likewise.
1359         * config/nds32/nds32-cost.c: Likewise.
1360         * config/nds32/nds32-fp-as-gp.c: Likewise.
1361         * config/nds32/nds32-intrinsic.c: Likewise.
1362         * config/nds32/nds32-isr.c: Likewise.
1363         * config/nds32/nds32-md-auxiliary.c: Likewise.
1364         * config/nds32/nds32-memory-manipulation.c: Likewise.
1365         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1366         * config/nds32/nds32-predicates.c: Likewise.
1367         * config/nds32/nds32.c: Likewise.
1368         * config/nios2/nios2.c: Likewise.
1369         * config/pa/pa.c: Likewise.
1370         * config/pdp11/pdp11.c: Likewise.
1371         * config/rl78/rl78.c: Likewise.
1372         * config/rs6000/rs6000.c: Likewise.
1373         * config/rx/rx.c: Likewise.
1374         * config/s390/s390.c: Likewise.
1375         * config/score/score.c: Likewise.
1376         * config/sh/sh.c: Likewise.
1377         * config/sparc/sparc.c: Likewise.
1378         * config/spu/spu.c: Likewise.
1379         * config/stormy16/stormy16.c: Likewise.
1380         * config/tilegx/tilegx.c: Likewise.
1381         * config/tilepro/tilepro.c: Likewise.
1382         * config/v850/v850.c: Likewise.
1383         * config/vax/vax.c: Likewise.
1384         * config/xtensa/xtensa.c: Likewise.
1386 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
1388         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1389         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1391 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1393         * config/sh/sh-protos.h (fldi_ok): Remove.
1394         * config/sh/sh.c (fldi_ok): Likewise.
1395         (sh_secondary_reload): Don't use fldi_ok.
1396         * config/sh/constraints.md (G constraint, H constraint): Don't use
1397         fldi_ok.
1399 2014-10-16  Martin Liska  <mliska@suse.cz>
1401         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1402         Cast to unsigned long.
1403         (sem_item_optimizer::dump_cong_classes): Likewise.
1405 2014-10-16  Tom de Vries  <tom@codesourcery.com>
1407         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1408         with SSA_NAME_IN_FREELIST.
1410 2014-10-16  Richard Biener  <rguenther@suse.de>
1412         PR middle-end/63554
1413         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1414         (fold_builtin_strncat_chk): Move ...
1415         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1416         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1418 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1420         PR target/59401
1421         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1422         GBR to 0.
1424 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1425             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1426             Anna Tikhonova  <anna.tikhonova@intel.com>
1427             Ilya Tocar  <ilya.tocar@intel.com>
1428             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1429             Ilya Verbin  <ilya.verbin@intel.com>
1430             Kirill Yukhin  <kirill.yukhin@intel.com>
1431             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1433         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1434         V64QI modes.
1436 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1437             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1438             Anna Tikhonova  <anna.tikhonova@intel.com>
1439             Ilya Tocar  <ilya.tocar@intel.com>
1440             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1441             Ilya Verbin  <ilya.verbin@intel.com>
1442             Kirill Yukhin  <kirill.yukhin@intel.com>
1443             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1445         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1446         V16SI, V32HI, V64QI modes.
1448 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1450         PR target/53513
1451         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1452         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1454         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1455         to match fp insn patterns.
1456         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1457         list.
1458         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1459         expand_df_unop, expand_df_binop): Remove.
1460         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1461         FPSCR_STAT_REG as not call clobbered.
1462         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1463         invoking fpscr_set_from_mem.
1465         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1466         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1467         FPSCR_STAT_REG.
1468         (REGISTER_NAMES): Adjust.
1469         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1470         (FIRST_PSEUDO_REGISTER): Increase to 156.
1471         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1472         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1473         FPSCR_STAT_REG.
1474         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1475         FPSCR_MODES_REG and FPSCR_STAT_REG.
1476         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1478         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1479         FPSCR_SZ): Add new constants.
1480         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1482         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1483         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1484         Use TARGET_FPU_ANY condition.
1485         (fpu_switch peephole2): Remove.
1486         (fpu_switch split): Use simple_mem_operand to capture the mem and
1487         adjust split implementation.
1488         (extend_psi_si, truncate_si_psi): New insns.
1489         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
1490         set of FPSCR_MODES_REG.
1492         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1493         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1494         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1495         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1496         call_value_compact, call_value_compact_rettramp, call,
1497         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1498         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1499         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1500         sibcall_value_compact, sibcall_value, call_value_pop_compact,
1501         call_value_pop_compact_rettramp, various unnamed splits):
1502         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
1503         function uses.
1505         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1506         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1507         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1508         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1509         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1511         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1512         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1513         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1514         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1515         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1516         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1517         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
1519 2014-10-16  Martin Liska  <mliska@suse.cz>
1520             Jan Hubicka  <hubicka@ucw.cz>
1522         * Makefile.in: New object files included.
1523         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1524         is printed.
1525         (verify_edge_corresponds_to_fndecl): More sensitive verification
1526         of nodes that are merged by IPA ICF.
1527         * cgraph.h (cgraph_node::num_references): New function.
1528         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1529         * common.opt: New options ipa-icf, ipa-icf-functions and
1530         ipa-icf-variables introduced.
1531         * doc/invoke.texi: Documentation of new options introduced.
1532         * ipa-icf-gimple.c: New file.
1533         * ipa-icf-gimple.h: New file.
1534         * ipa-icf.c: New file.
1535         * ipa-icf.h: New file.
1536         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1537         (input_overwrite_node): Likewise.
1538         * lto-section-in.c: New icf section added.
1539         * lto-streamer.h (enum lto_section_type): Likewise.
1540         * opts.c (common_handle_option): New option added.
1541         * passes.def: New pass included.
1542         * timevar.def: Time variable for IPA ICF added.
1543         * tree-pass.h: New IPA ICF pass entry point added.
1545 2014-10-16  Richard Biener  <rguenther@suse.de>
1547         PR tree-optimization/63168
1548         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1549         latches if after merging they are no longer simple.
1550         * cfghooks.c (merge_blocks): Handle merging a latch block
1551         into another block.
1553 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1554             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1555             Anna Tikhonova  <anna.tikhonova@intel.com>
1556             Ilya Tocar  <ilya.tocar@intel.com>
1557             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1558             Ilya Verbin  <ilya.verbin@intel.com>
1559             Kirill Yukhin  <kirill.yukhin@intel.com>
1560             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1562         * config/i386/sse.md
1563         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1564         support AVX-512VL instructions.
1566 2014-10-16  DJ Delorie  <dj@redhat.com>
1568         * tree-core.h: Fix comment to not assume pointers are multiples of
1569         bytes.
1571 2014-10-15  Tom Tromey  <tromey@redhat.com>
1573         * timevar.h (class auto_timevar): New class.
1575 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
1577         PR go/59432
1578         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1579         Remove the second alternative.
1580         (regprefix): Remove mode attribute.
1581         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1582         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1584         Revert:
1585         2013-11-05  Ian Lance Taylor  <iant@google.com>
1587         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1588         If possible, add .cfi directives to record change to bx.
1589         * config/i386/i386.c (ix86_emit_cfi): New function.
1590         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1592 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
1594         PR lto/62026
1595         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1596         to duplicate.
1597         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1598         at WPA time.
1600 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
1602         PR rtl-optimization/63448
1603         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1604         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1605         (LRA_MAX_INHERITANCE_PASSES): Use it.
1606         (lra_constraint_iter_after_spill): Remove.
1607         (lra_assignment_iter): New.
1608         (lra_assignment_iter_after_spill): New.
1609         * lra-assigns.c (lra_assignment_iter): New.
1610         (lra_assignment_iter_after_spill): New.
1611         (former_reload_pseudo_spill_p): New.
1612         (spill_for): Set up former_reload_pseudo_spill_p.
1613         (setup_live_pseudos_and_spill_after_risky): Ditto.
1614         (assign_by_spills): Ditto.
1615         (lra_assign): Increment lra_assignment_iter.  Print the iteration
1616         number.  Reset former_reload_pseudo_spill_p.  Check
1617         lra_assignment_iter_after_spill.
1618         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
1619         lra_assignment_iter and lra_assignment_iter_after_spill.
1620         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1621         (lra_constraints): Remove code with
1622         lra_assignment_iter_after_spill.
1624 2014-10-15  Teresa Johnson  <tejohnson@google.com>
1626         PR bootstrap/63432
1627         * tree-ssa-threadupdate.c (recompute_probabilities): Better
1628         overflow checking.
1630 2014-10-15  Renlin Li <renlin.li@arm.com>
1632         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1633         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1634         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1635         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1637 2014-10-15  Richard Biener  <rguenther@suse.de>
1639         * gimple-fold.c (gimple_fold_call): Properly keep virtual
1640         SSA form up-to-date when devirtualizing a call to
1641         __builtin_unreachable and avoid fixing up EH info here.
1643 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1644             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1645             Anna Tikhonova  <anna.tikhonova@intel.com>
1646             Ilya Tocar  <ilya.tocar@intel.com>
1647             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1648             Ilya Verbin  <ilya.verbin@intel.com>
1649             Kirill Yukhin  <kirill.yukhin@intel.com>
1650             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1652         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1653         to support AVX-512BW.
1654         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1655         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1656         (define_insn "*<plusminus_insn><mode>3"): Ditto.
1657         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1658         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1659         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1660         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1661         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1662         (define_insn "*andnot<mode>3"): Ditto.
1663         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1664         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1665         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1666         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1667         (define_insn "*abs<mode>2"): Remove masking support.
1668         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1669         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1670         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1672 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1673             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1674             Anna Tikhonova  <anna.tikhonova@intel.com>
1675             Ilya Tocar  <ilya.tocar@intel.com>
1676             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1677             Ilya Verbin  <ilya.verbin@intel.com>
1678             Kirill Yukhin  <kirill.yukhin@intel.com>
1679             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1681         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1682         * config/i386/sse.md
1683         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1684         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1685         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1686         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1687         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1688         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1689         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1691 2014-10-15  Renlin Li <renlin.li@arm.com>
1693         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1695 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
1697         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1698         MINUS_EXPR in unsigned type to avoid undefined behavior.
1700 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1702         * stor-layout.c (self_referential_size): Do not promote arguments.
1704 2014-10-15  Marek Polacek  <polacek@redhat.com>
1706         * doc/invoke.texi: Update to reflect that GNU11 is the default
1707         mode for C.
1708         * c-common.h (c_language_kind): Update comment.
1710 2014-10-15  Richard Biener  <rguenther@suse.de>
1712         * hash-table.c: Include bconfig.h if building for the host.
1713         * hash-table.h: Do not include ggc.h on the host but just declare
1714         a few ggc allocation templates.
1716 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
1717             Jeff Law  <law@redhat.com>
1719         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1720         multiple hard registers, use smaller mode derived from MODE.
1722 2014-10-15  Andreas Schwab  <schwab@suse.de>
1724         * explow.c (convert_memory_address_addr_space_1): Mark in_const
1725         as ATTRIBUTE_UNUSED.
1727 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
1729         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1730         (decide_unrolling): ... this one.
1731         (peel_loops_completely): Remove.
1732         (decide_peel_simple): Remove.
1733         (decide_peel_once_rolling): Remove.
1734         (decide_peel_completely): Remove.
1735         (peel_loop_simple): Remove.
1736         (peel_loop_completely): Remove.
1737         (unroll_and_peel_loops): Rename to ...
1738         (unroll_loops): ... this one; handle only unrolling.
1739         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1740         LPT_PEEL_SIMPLE.
1741         (UAP_PEEL): Remove.
1742         (unroll_and_peel_loops): Remove.
1743         (unroll_loops): New.
1744         * passes.def: Replace
1745         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1746         * loop-init.c (gate_rtl_unroll_and_peel_loops,
1747         rtl_unroll_and_peel_loops): Rename to ...
1748         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1749         (pass_rtl_unroll_and_peel_loops): Rename to ...
1750         (pass_rtl_unroll_loops): ... this one.
1751         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1752         (make_pass_rtl_unroll_loops): New.
1753         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1754         (canonicalize_loop_induction_variables): Update.
1756 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
1758         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1759         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1760         !TARGET_HARD_FLOAT_POSTINC.
1761         (*lsip, *ssip): new instructions.
1763 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
1765         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1766         remove.
1768 2014-10-14  Andrew Pinski  <apinski@cavium.com>
1770         * explow.c (convert_memory_address_addr_space): Rename to ...
1771         (convert_memory_address_addr_space_1): This.  Add in_const argument.
1772         Inside a CONST RTL, permute the conversion and addition of constant
1773         for zero and sign extended pointers.
1774         (convert_memory_address_addr_space): New function.
1776 2014-10-14  Andrew Pinski  <apinski@cavium.com>
1778         Revert:
1779         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1781         PR middle-end/49721
1782         * explow.c (convert_memory_address_addr_space): Also permute the
1783         conversion and addition of constant for zero-extend.
1785 2014-10-14  DJ Delorie  <dj@redhat.com>
1787         * config/msp430/msp430-modes.def (PSI): Add.
1789         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1790         (msp430_hard_regno_nregs_with_padding): New.
1791         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1792         (msp430_hard_regno_nregs_has_padding): New.
1793         (msp430_hard_regno_nregs_with_padding): New.
1794         (msp430_unwind_word_mode): Use PSImode instead of SImode.
1795         (msp430_addr_space_legitimate_address_p): New.
1796         (msp430_asm_integer): New.
1797         (msp430_init_dwarf_reg_sizes_extra): New.
1798         (msp430_print_operand): Use X suffix for PSImode even in small model.
1799         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1800         (PTR_SIZE): ...but 4 bytes for EH.
1801         (SIZE_TYPE): Use __int20.
1802         (PTRDIFF_TYPE): Likewise.
1803         (INCOMING_FRAME_SP_OFFSET): Adjust.
1804         * config/msp430/msp430.md (movqi_topbyte): New.
1805         (movpsi): Use fixed suffixes.
1806         (movsipsi2): Enable for 430X, not large model.
1807         (extendhipsi2): Likewise.
1808         (zero_extendhisi2): Likewise.
1809         (zero_extendhisipsi2): Likewise.
1810         (extend_and_shift1_hipsi2): Likewise.
1811         (extendpsisi2): Likewise.
1812         (*bitbranch<mode>4_z): Fix suffix logic.
1814 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1816         PR ada/62019
1817         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1818         do not choke on null node.
1819         <VAR_DECL>: Likewise.
1821 2014-10-14  DJ Delorie  <dj@redhat.com>
1823         * machmode.h (int_n_data_t): New.
1824         (int_n_enabled_p): New.
1825         (int_n_data): New.
1826         * tree.c (int_n_enabled_p): New.
1827         (int_n_trees): New.
1828         (make_or_reuse_type): Check for all __intN types, not just
1829         __int128.
1830         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
1831         entries.
1832         * tree.h (int128_integer_type_node): Remove.
1833         (int128_unsigned_type_node): Remove.
1834         (int_n_trees_t): New.
1835         (int_n_enabled_p): New.
1836         (int_n_trees): New.
1837         * toplev.c (standard_type_bitsize): New.
1838         (do_compile): Check which __intN types are enabled for the current
1839         run.
1840         * builtin-types.def (BT_INT128): Remove.
1841         (BT_UINT128): Remove.
1842         * machmode.def: Add macro to create __int128 for all targets.
1843         * stor-layout.c (mode_for_size): Support __intN types.
1844         (smallest_mode_for_size): Likewise.
1845         (initialize_sizetypes): Support __intN types.
1846         * genmodes.c (struct mode_data): Add int_n field.
1847         (blank_mode): Likewise.
1848         (INT_N): New.
1849         (make_int_n): New.
1850         (emit_insn_modes_h): Count __intN entries and define
1851         NUM_INT_N_ENTS.
1852         (emit_mode_int_n): New.
1853         (emit_insn_modes_c): Call it.
1854         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1855         types, not just __int128.
1856         * tree-core.h (integer_type_kind): Remove __int128-specific
1857         entries, reserve spots for __intN entries.
1859         * config/msp430/msp430-modes.def (PSI): Add.
1861 2014-10-14  Kito Cheng  <kito@0xlab.org>
1863         * ira.c: Fix typo in comment.
1864         * ira.h: Ditto.
1865         * ira-build.c: Ditto.
1866         * ira-color.c: Ditto.
1867         * ira-emit.c: Ditto.
1868         * ira-int.h: Ditto.
1869         * ira-lives.c: Ditto.
1871 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
1873         PR rtl-optimization/63475
1874         * alias.c (true_dependence_1): Always use get_addr to extract
1875         true address operands from x_addr and mem_addr.  Use extracted
1876         address operands to check for references with alignment ANDs.
1877         Use extracted address operands with find_base_term and
1878         base_alias_check. For noncanonicalized operands call canon_rtx with
1879         extracted address operand.
1880         (write_dependence_1): Ditto.
1881         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
1883 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
1885         PR target/63534
1886         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1887         __morestack local.
1889 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1890             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1891             Anna Tikhonova  <anna.tikhonova@intel.com>
1892             Ilya Tocar  <ilya.tocar@intel.com>
1893             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1894             Ilya Verbin  <ilya.verbin@intel.com>
1895             Kirill Yukhin  <kirill.yukhin@intel.com>
1896             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1898         * config/i386/i386.c
1899         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1900         (ix86_expand_int_vcond): Ditto.
1902 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1903             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1904             Anna Tikhonova  <anna.tikhonova@intel.com>
1905             Ilya Tocar  <ilya.tocar@intel.com>
1906             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1907             Ilya Verbin  <ilya.verbin@intel.com>
1908             Kirill Yukhin  <kirill.yukhin@intel.com>
1909             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1911         * config/i386/i386.c
1912         (emit_reduc_half): Handle V64QI and V32HI mode.
1913         * config/i386/sse.md
1914         (define_mode_iterator VI_AVX512BW): New.
1915         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1917 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1918             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1919             Anna Tikhonova  <anna.tikhonova@intel.com>
1920             Ilya Tocar  <ilya.tocar@intel.com>
1921             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1922             Ilya Verbin  <ilya.verbin@intel.com>
1923             Kirill Yukhin  <kirill.yukhin@intel.com>
1924             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1926         * config/i386/sse.md
1927         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1929 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1930             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1931             Anna Tikhonova  <anna.tikhonova@intel.com>
1932             Ilya Tocar  <ilya.tocar@intel.com>
1933             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1934             Ilya Verbin  <ilya.verbin@intel.com>
1935             Kirill Yukhin  <kirill.yukhin@intel.com>
1936             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1938         * config/i386/i386.c
1939         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1940         * config/i386/sse.md
1941         (define_mode_iterator VI): Add V64QI and V32HI modes.
1943 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1944             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1945             Anna Tikhonova  <anna.tikhonova@intel.com>
1946             Ilya Tocar  <ilya.tocar@intel.com>
1947             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1948             Ilya Verbin  <ilya.verbin@intel.com>
1949             Kirill Yukhin  <kirill.yukhin@intel.com>
1950             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1952         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1954 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1955             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1956             Anna Tikhonova  <anna.tikhonova@intel.com>
1957             Ilya Tocar  <ilya.tocar@intel.com>
1958             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1959             Ilya Verbin  <ilya.verbin@intel.com>
1960             Kirill Yukhin  <kirill.yukhin@intel.com>
1961             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1963         * config/i386/sse.md
1964         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1965         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1967 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1968             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1969             Anna Tikhonova  <anna.tikhonova@intel.com>
1970             Ilya Tocar  <ilya.tocar@intel.com>
1971             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1972             Ilya Verbin  <ilya.verbin@intel.com>
1973             Kirill Yukhin  <kirill.yukhin@intel.com>
1974             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1976         * config/i386/sse.md
1977         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1978         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1980 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1981             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1982             Anna Tikhonova  <anna.tikhonova@intel.com>
1983             Ilya Tocar  <ilya.tocar@intel.com>
1984             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1985             Ilya Verbin  <ilya.verbin@intel.com>
1986             Kirill Yukhin  <kirill.yukhin@intel.com>
1987             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1989         * config/i386/sse.md
1990         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1991         (define_mode_iterator VI2_AVX2): Add V32HI mode.
1992         (define_expand "mul<mode>3<mask_name>"): Add masking.
1993         (define_insn "*mul<mode>3<mask_name>"): Ditto.
1994         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1995         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1996         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1997         (define_mode_attr SDOT_PMADD_SUF): Ditto.
1998         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1999         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2000         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2001         (define_insn "avx2_packusdw"): Delete.
2002         (define_insn "sse4_1_packusdw"): Ditto.
2003         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
2005 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2006             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2007             Anna Tikhonova  <anna.tikhonova@intel.com>
2008             Ilya Tocar  <ilya.tocar@intel.com>
2009             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2010             Ilya Verbin  <ilya.verbin@intel.com>
2011             Kirill Yukhin  <kirill.yukhin@intel.com>
2012             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2014         * config/i386/sse.md
2015         (define_insn "vec_dup<mode>"): Update constraints.
2017 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2018             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2019             Anna Tikhonova  <anna.tikhonova@intel.com>
2020             Ilya Tocar  <ilya.tocar@intel.com>
2021             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2022             Ilya Verbin  <ilya.verbin@intel.com>
2023             Kirill Yukhin  <kirill.yukhin@intel.com>
2024             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2026         * config/i386/sse.md
2027         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2028         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2029         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2031 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2032             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2033             Anna Tikhonova  <anna.tikhonova@intel.com>
2034             Ilya Tocar  <ilya.tocar@intel.com>
2035             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2036             Ilya Verbin  <ilya.verbin@intel.com>
2037             Kirill Yukhin  <kirill.yukhin@intel.com>
2038             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2040         * config/i386/sse.md
2041         (define_expand "mul<mode>3<mask_name>"): Add masking.
2043 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2044             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2045             Anna Tikhonova  <anna.tikhonova@intel.com>
2046             Ilya Tocar  <ilya.tocar@intel.com>
2047             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2048             Ilya Verbin  <ilya.verbin@intel.com>
2049             Kirill Yukhin  <kirill.yukhin@intel.com>
2050             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2052         * config/i386/sse.md
2053         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2054         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2056 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2057             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2058             Anna Tikhonova  <anna.tikhonova@intel.com>
2059             Ilya Tocar  <ilya.tocar@intel.com>
2060             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2061             Ilya Verbin  <ilya.verbin@intel.com>
2062             Kirill Yukhin  <kirill.yukhin@intel.com>
2063             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2065         * config/i386/sse.md
2066         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2067         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2068         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2069         Ditto.
2071 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2072             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2073             Anna Tikhonova  <anna.tikhonova@intel.com>
2074             Ilya Tocar  <ilya.tocar@intel.com>
2075             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2076             Ilya Verbin  <ilya.verbin@intel.com>
2077             Kirill Yukhin  <kirill.yukhin@intel.com>
2078             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2080         * config/i386/sse.md
2081         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2082         use VF_128_256 mode iterator and update assembler emit code.
2083         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2084         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2085         Add masking, use VF_128_256 mode iterator.
2086         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2087         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2088         Add masking, use VF_128_256 mode iterator and update assembler emit
2089         code.
2090         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2091         (define_mode_attr avx512flogicsuff): Delete.
2092         (define_insn "avx512f_<logic><mode>"): Ditto.
2093         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2094         MODE_TI.
2095         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2097 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2098             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2099             Anna Tikhonova  <anna.tikhonova@intel.com>
2100             Ilya Tocar  <ilya.tocar@intel.com>
2101             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2102             Ilya Verbin  <ilya.verbin@intel.com>
2103             Kirill Yukhin  <kirill.yukhin@intel.com>
2104             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2106         * config/i386/sse.md
2107         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2108         (define_expand "vashr<mode>3<mask_name>"): Add masking,
2109         use VI12_128 mode iterator.
2110         (define_expand "ashrv2di3<mask_name>"): New.
2112 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2113             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2114             Anna Tikhonova  <anna.tikhonova@intel.com>
2115             Ilya Tocar  <ilya.tocar@intel.com>
2116             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2117             Ilya Verbin  <ilya.verbin@intel.com>
2118             Kirill Yukhin  <kirill.yukhin@intel.com>
2119             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2121         * config/i386/i386.c
2122         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2123         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2124         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2125         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2126         CODE_FOR_avx512vl_ucmpv4si3_mask.
2127         * config/i386/sse.md
2128         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2129         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2130         (define_insn
2131         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2132         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2133         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2134         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2135         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2136         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2138 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2139             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2140             Anna Tikhonova  <anna.tikhonova@intel.com>
2141             Ilya Tocar  <ilya.tocar@intel.com>
2142             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2143             Ilya Verbin  <ilya.verbin@intel.com>
2144             Kirill Yukhin  <kirill.yukhin@intel.com>
2145             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2147         * config/i386/sse.md
2148         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2149         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2150         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2151         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2152         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2153         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2154         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2155         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2156         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2158 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2159             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2160             Anna Tikhonova  <anna.tikhonova@intel.com>
2161             Ilya Tocar  <ilya.tocar@intel.com>
2162             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2163             Ilya Verbin  <ilya.verbin@intel.com>
2164             Kirill Yukhin  <kirill.yukhin@intel.com>
2165             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2167         * config/i386/sse.md
2168         (define_insn "avx512f_blendm<mode>"): Delete.
2169         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2170         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2171         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2172         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2173         (define_insn
2174         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2175         Remove.
2176         (define_insn
2177         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2178         New.
2179         (define_insn
2180         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2181         Ditto.
2182         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2183         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2184         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2185         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2186         Delete.
2187         (define_insn
2188         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2189         New.
2190         (define_insn
2191         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2192         Ditto.
2193         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2194         Delete.
2195         (define_insn
2196         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2197         New.
2198         (define_insn
2199         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2200         Ditto.
2202 2014-10-14  Richard Biener  <rguenther@suse.de>
2204         PR tree-optimization/63512
2205         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2206         modified.
2208 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
2210         PR target/63260
2211         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2212         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
2213         of FPSCR.
2214         (negsf2_i): Rename to *negsf2_i.
2215         (abssf2_i): Rename to *abssf2_i.
2216         (negdf2_i): Rename to *negdf2_i.
2217         (absdf2_i): Rename to *absdf2_i.
2219 2014-10-14  Felix Yang  <felix.yang@huawei.com>
2220             Jeff Law  <law@redhat.com>
2222         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2223         "replace" into boolean bitfields; turn member "loop_depth" into a short
2224         integer; add new member "no_equiv" and "reserved".
2225         (no_equiv): Set no_equiv of struct equivalence if register is marked
2226         as having no known equivalence.
2227         (update_equiv_regs): Check all definitions for a multiple-set
2228         register to make sure that the RHS have the same value.
2230 2014-10-13  Richard Henderson  <rth@redhat.com>
2232         * combine-stack-adj.c (no_unhandled_cfa): New.
2233         (maybe_merge_cfa_adjust): New.
2234         (combine_stack_adjustments_for_block): Use them.
2236 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
2238         * Makefile.in (TAGS): Tag ../include files.
2240 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2242         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2243         to rs6000_dbx_register_number.
2244         (DWARF_FRAME_REGNUM): Redefine as identity map.
2245         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2246         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2247         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2248         argument to handle .debug_frame and .eh_frame directly.  Always
2249         translate SPE high register numbers.  Add special treatment for CR,
2250         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
2252         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2253         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2254         (RS6000_USE_DWARF_NUMBERING): Define.
2255         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2256         (RS6000_USE_DWARF_NUMBERING): Define.
2257         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2258         (RS6000_USE_DWARF_NUMBERING): Define.
2259         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2260         (RS6000_USE_DWARF_NUMBERING): Define.
2261         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2262         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2264 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2266         * config/i386/i386.c (ix86_address_cost): Lower cost for
2267         when address contains GOT register.
2269 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2270             Vladimir Makarov  <vmakarov@redhat.com>
2272         PR target/8340
2273         PR middle-end/47602
2274         PR rtl-optimization/55458
2275         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2276         (ix86_init_pic_reg): New.
2277         (ix86_select_alt_pic_regnum): Add check on pseudo register.
2278         (ix86_save_reg): Likewise.
2279         (ix86_expand_prologue): Remove PIC register initialization
2280         now performed in ix86_init_pic_reg.
2281         (ix86_output_function_epilogue): Add check on pseudo register.
2282         (set_pic_reg_ever_alive): New.
2283         (legitimize_pic_address): Replace df_set_regs_ever_live with new
2284         set_pic_reg_ever_alive.
2285         (legitimize_tls_address): Likewise.
2286         (ix86_pic_register_p): New check.
2287         (ix86_delegitimize_address): Add check on pseudo register.
2288         (ix86_expand_call): Insert move from pseudo PIC register to ABI
2289         defined REAL_PIC_OFFSET_TABLE_REGNUM.
2290         (TARGET_INIT_PIC_REG): New.
2291         (TARGET_USE_PSEUDO_PIC_REG): New.
2292         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2293         if pic_offset_table_rtx exists.
2294         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2295         Document.
2296         * doc/tm.texi: Regenerate.
2297         * function.c (assign_parms): Generate pseudo register for PIC.
2298         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2299         register.
2300         * ira-color.c (color_pass): Add check on pseudo register.
2301         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2302         register.
2303         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2304         register.
2305         (ira): Add target specific PIC register initialization.
2306         (do_reload): Keep PIC pseudo register.
2307         * lra-assigns.c (spill_for): Add checks on pseudo register.
2308         * lra-constraints.c (contains_symbol_ref_p): New.
2309         (lra_constraints): Enable lra risky transformations when PIC is pseudo
2310         register.
2311         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2312         * target.def (use_pseudo_pic_reg): New.
2313         (init_pic_reg): New.
2315 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2317         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2318         Remove m_SILVERMONT and m_INTEL from the tune.
2320 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2322         PR libfortran/63471
2323         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2324         when _HPUX_SOURCE is defined.
2326 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2328         PR tree-optimization/62127
2329         * tree.c (remap_type_1): When remapping array, remap
2330         also its type.
2332 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
2334         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2335         longer impact parallelization.
2337 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2339         PR bootstrap/63496
2340         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2342 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
2344         * asan.c (instrument_derefs): BIT_FIELD_REF added.
2346 2014-10-13  Richard Biener  <rguenther@suse.de>
2348         PR tree-optimization/63419
2349         * gimple-fold.h (gimple_convert): New function.
2350         * gimple-fold.c (gimple_convert): Likewise.
2351         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2352         to split out required conversions early.
2354 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
2356         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2357         Add the parts of an insn in reverse order, with the pattern at
2358         the top of the queue.  Detect when we're iterating over a SEQUENCE
2359         pattern and in that case just consider patterns of subinstructions.
2361 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
2363         PR target/59401
2364         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2365         of rtx.
2366         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2367         insn walking.
2368         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2369         address.  Use def chains to handle GBR clobbering call insns.
2371 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
2373         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2374         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2375         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2376         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2377         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2378         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2379         * doc/gty.texi (for_user): Document new option.
2380         * gengtype.c (create_user_defined_type): Don't try to get a struct for
2381         char.
2382         (walk_type): Don't error out on for_user option.
2383         (write_func_for_structure): Emit user marking routines if requested by
2384         for_user option.
2385         (write_local_func_for_structure): Likewise.
2386         (main): Mark types with for_user option as used.
2387         * ggc.h (gt_pch_nx): Add overload for unsigned int.
2388         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2389         * hash-table.h (ggc_hasher): New struct.
2390         (hash_table::create_ggc): New function.
2391         (gt_pch_nx): New overload for hash_table.
2393 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
2395         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2396         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2397         * config/sh/sh.c: Likewise.
2398         * config/sh/sh-mem.cc: Likewise.
2399         * config/sh/sh.md: Likewise.
2400         * config/sh/predicates.md: Likewise.
2401         * config/sh/sync.md: Likewise.
2403 2014-10-11  Martin Liska  <mliska@suse.cz>
2405         PR middle-end/63376
2406         * cgraphunit.c (symbol_table::process_new_functions): Missing call
2407         for call_cgraph_insertion_hooks added.
2409 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2411         PR c/63495
2412         * stor-layout.c (min_align_of_type): Don't decrease alignment
2413         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2414         TYPE_USER_ALIGN is set.
2416 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
2418         PR rtl-optimization/63483
2419         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2420         references when alignment ANDs are involved.
2421         (write_dependence_p): Ditto.
2422         (may_alias_p): Ditto.
2424 2014-10-10  Marek Polacek  <polacek@redhat.com>
2426         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2427         * doc/invoke.texi: Document -fsanitize=object-size.
2428         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2429         or it into SANITIZE_UNDEFINED.
2430         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2431         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2432         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2433         * opts.c (common_handle_option): Handle -fsanitize=object-size.
2434         * ubsan.c: Include tree-object-size.h.
2435         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2436         (ubsan_expand_bounds_ifn): Use false instead of 0.
2437         (ubsan_expand_objsize_ifn): New function.
2438         (instrument_object_size): New function.
2439         (pass_ubsan::execute): Add object size instrumentation.
2440         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2442 2014-10-10  Richard Henderson  <rth@redhat.com>
2444         PR target/63404
2445         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2446         Restrict the set of expressions we're willing to move.
2448 2014-10-10  Jeff Law  <law@redhat.com>
2450         * ira.c (struct equivalence): Promote INIT_INSNs field to
2451         an rtx_insn_list.  Add comments.
2452         (no_equiv): Promote LIST to an rtx_insn_list.  Update
2453         testing for and creating the special marker.  Use methods
2454         to extract the insn and next pointers.  Promote INSN to an
2455         rtx_insn.
2456         (update_equiv_regs): Update test for special marker in the
2457         INIT_INSNs list.
2459 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2461         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2462         * configure: Regenerate.
2463         * config/aarch64/aarch64.c (aarch64_override_options): Handle
2464         TARGET_FIX_ERR_A53_835769_DEFAULT.
2465         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2466         value to 2.
2467         * doc/install.texi (aarch64*-*-*): Document
2468         new --enable-fix-cortex-a53-835769 option.
2470 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2471             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2473         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2474         (ADJUST_INSN_LENGTH): Define.
2475         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2476         * config/aarch64/aarch64.c (is_mem_p): New function.
2477         (is_memory_op): Likewise.
2478         (aarch64_prev_real_insn): Likewise.
2479         (is_madd_op): Likewise.
2480         (dep_between_memop_and_curr): Likewise.
2481         (aarch64_madd_needs_nop): Likewise.
2482         (aarch64_final_prescan_insn): Likewise.
2483         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2484         and -mno-fix-cortex-a53-835769 options.
2486 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2488         PR tree-optimization/63464
2489         * tree-switch-conversion.c (struct case_bit_test): Remove
2490         hi and lo fields, add wide_int mask field.
2491         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2492         hi/lo fields into wide_int mask operations, optimize by pretending
2493         minval to be 0 if maxval is small enough.
2494         (process_switch): Adjust caller.
2496 2014-10-10  Richard Biener  <rguenther@suse.de>
2498         PR tree-optimization/63379
2499         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2500         a neutral operand for min/max when it is not a reduction chain.
2502 2014-10-10  Richard Biener  <rguenther@suse.de>
2504         PR tree-optimization/63476
2505         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2506         (BB_LIVE_VOP_ON_EXIT): New define.
2507         (create_expression_by_pieces): Assign VUSEs to stmts.
2508         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2509         (pass_pre::execute): Assert virtual SSA form is up-to-date
2510         after insertion.
2512 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
2514         * lra-assigns.c (assign_by_spills): Error out on spill failure.
2516 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
2518         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2519         assertion.
2521 2014-10-09  Richard Biener  <rguenther@suse.de>
2523         PR tree-optimization/63380
2524         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2525         may trap.
2527 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
2529         * config/avr/avr.opt (mmcu=): Change to have a string value.
2530         (mn-flash=, mskip-bug, march=, mrmw): New options.
2531         (HeaderInclude): New.
2532         (mmcu=): Remove Var / Init clauses.
2533         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2534         -specs option.
2535         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2536         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2537         (SYMBOL_FLAG_IO_LOW): Define.
2538         (avr_device_to_as, avr_device_to_ld): Don't declare.
2539         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2540         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2541         (EXTRA_SPEC_FUNCTIONS): Don't define.
2542         (ASM_SPEC): Translate -arch= option to -mmcu= option.
2543         (LINK_SPEC): Translate -arch= option to -m= option.
2544         Don't use device_to_ld / device_to_data_start.
2545         (STARTFILE_SPEC): Now empty.
2546         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2547         * config/avr/gen-avr-mmcu-specs.c: New file.
2548         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2549         (s-device-specs): Likewise.
2550         (GCC_PASSES): Add s-device-specs.
2551         (install-driver): Depend on install-device-specs.
2552         (install-device-specs): New rule.
2553         * config/avr/avr.c (avr_option_override): Look up mcu arch by
2554         avr_arch_index and provide fallback initialization for avr_n_flash.
2555         (varasm.h): #include.
2556         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2557         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2558         (avr_attribute_table): Add "io", "address" and "io_low".
2559         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2560         Add special handling for symbols with "io" and/or "address" attributes.
2561         (avr_asm_asm_output_aligned_bss): New function.
2562         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2563         as appropriate.  Handle io_low attribute.
2564         (avr_out_sbxx_branch): Handle symbolic io addresses.
2565         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2566         avr_n_flash instead of avr_current_device->n_flash.
2567         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2568         (avr_emit_movmemhi): Likewise.
2569         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2570         Use TARGET_RMW instead of avr_current_device->dev_attributes.
2571         Don't define avr_current_device->macro (that's the specfile's job).
2572         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2573         * config/avr/avr.c (avr_2word_insn_p): Likewise.
2574         * config/avr/avr.md (*cpse.ne): Likewise.
2575         (mov<mode>): Use avr_eval_addr_attrib.
2576         (cbi): Change constraint for low_io_address_operand operand to "i".
2577         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2578         * config/avr/predicates.md (io_address_operand):
2579         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2580         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2581         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2582         Update prototype.
2583         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2584         * config/avr/genmultilib.awk: Use -march=.
2585         Remove Multilib matches processing.
2586         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2587         * config/avr/avr-arch.h: Add double include guard.
2588         (avr_mcu_t) <library_name>: Update comment.
2589         * config/avr/driver-avr.c (avr_device_to_as): Delete.
2590         (avr_device_to_ld, avr_device_to_data_start): Likewise.
2591         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2592         (avr_device_to_sp8): Likewise.
2593         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
2595         * doc/extend.texi (io, address): Document new AVR variable attributes.
2596         (io_low): Likewise.
2598 2014-10-09  Marek Polacek  <polacek@redhat.com>
2600         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2602 2014-10-08  Richard Biener  <rguenther@suse.de>
2604         PR tree-optimization/61969
2605         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2606         variables.
2608 2014-10-09  Richard Biener  <rguenther@suse.de>
2610         PR tree-optimization/63445
2611         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2612         overflow for non-equality compares.
2614 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
2616         PR rtl-optimization/57003
2617         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2618         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2619         killing regs_invalidated_by_call.
2621 2014-10-08  Teresa Johnson  <tejohnson@google.com>
2623         PR bootstrap/63432.
2624         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2625         (ssa_fix_duplicate_block_edges): Invoke it.
2626         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2628 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
2630         PR target/52941
2631         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2632         atomic_fetch_<fetchop_name>si_hard,
2633         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2634         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2635         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2636         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2638 2014-10-08  Rong Xu  <xur@google.com>
2640         * gcov-tool.c (profile_overlap): New driver function
2641         to compute profile overlap.
2642         (print_overlap_usage_message): New.
2643         (overlap_usage): New.
2644         (do_overlap): New.
2645         (print_usage): Add calls to overlap function.
2646         (main): Ditto.
2647         * doc/gcov-tool.texi: Add documentation.
2649 2014-10-08  Steve Ellcey  <sellcey@mips.com>
2651         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2652         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2654 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
2656         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2657         pattern matching of MEM_REF.
2658         (check_stmt_for_type_change): Update.
2660 2014-10-08  Steve Ellcey  <sellcey@mips.com>
2662         * config/mips/linux64.h: Remove.
2663         * config/mips/gnu-user64.h: Remove.
2664         * gcc.config (mips*-*-*): Remove references to linux64.h and
2665         gnu-user64.h
2666         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2667         with modified version from gnu-user64.h.
2668         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2669         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2670         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2671         linux64.h.
2672         (GNU_USER_LINK_EMULATION64): Ditto.
2673         (GNU_USER_LINK_EMULATIONN32): Ditto.
2674         (GLIBC_DYNAMIC_LINKER32): Ditto.
2675         (GLIBC_DYNAMIC_LINKER64): Ditto.
2676         (GLIBC_DYNAMIC_LINKERN32): Ditto.
2677         (UCLIBC_DYNAMIC_LINKER32): Ditto.
2678         (UCLIBC_DYNAMIC_LINKER64): Ditto.
2679         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2680         (BIONIC_DYNAMIC_LINKERN32): Ditto.
2681         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2682         (GLIBC_DYNAMIC_LINKER): Delete.
2683         (UCLIBC_DYNAMIC_LINKER): Delete.
2685 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2686             Richard Biener  <rguenther@suse.de>
2688         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2689         Get address space from operand 0 (BASE).
2691 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
2693         PR target/61387
2694         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2696 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
2698         * dwarf2out.c: Remove current_function_has_inlines.
2699         (gen_subprogram_die): Same.
2700         (gen_inlined_subroutine_die): Same.
2702 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
2704         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2705         type.
2706         (_addcarry_u64): Ditto.
2707         (_addcarryx_u64): Ditto.
2709 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
2711         * cgraph.h (cgraph_node::get_fun): Declare.
2712         * cgraph.c (cgraph_node::get_fun): New method.
2713         * ipa-inline.c (can_inline_edge_p): Use it.
2715 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
2717         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2718         and -ftrapping-math.
2719         * lto-wrapper.c (merge_and_complain): Likewise.
2720         (run_gcc): Likewise.
2722 2014-10-06  Rong Xu  <xur@google.com>
2724         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2725         * tree-profile.c: (params.h): New include.
2726         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2727         and __gcov_indirect_call_topn_counters for
2728         indirect_call_topn_profile.
2729         (gimple_init_edge_profiler): New decls for
2730         __gcov_indirect_call_topn_profiler.
2731         (gimple_gen_ic_profiler): Generate the correct profiler call.
2732         (gimple_gen_ic_func_profiler): Fix format.
2733         * value-prof.c (params.h): New include.
2734         (dump_histogram_value): Hanlde indirect_call_topn counters.
2735         (stream_in_histogram_value): Ditto.
2736         (gimple_indirect_call_to_profile): Use indirect_call_topn
2737         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2738         (gimple_find_values_to_profile): Hanlde indirect_call_topn
2739         counters.
2740         * value-prof.h (enum hist_type): Histrogram type for
2741         indirect_call_topn counters.
2742         * profile.c (instrument_values): Instrument
2743         indirect_call_topn counters.
2745 2014-10-06  Rong Xu  <xur@google.com>
2747         * Makefile.in: Fix dependence.
2748         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2749         indirect call topn profiler.
2750         * gcov-io.h: Ditto.
2752 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2754         * calls.c (expand_call): Do not use the target as the return slot if
2755         it is not sufficiently aligned.
2757 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2759         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2760         discussion of permutes and why we don't handle them.
2762 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2764         * config/sparc/predicates.md (int_register_operand): Delete.
2766 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2768         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2770 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
2772         * ubsan.h (ubsan_get_source_location): New prototype.
2773         * ubsan.c (ubsan_source_location_type): New variable.
2774         Function renamed to ...
2775         (ubsan_get_source_location_type): ... this.  Cache
2776         return value in ubsan_source_location_type variable.
2777         (ubsan_source_location, ubsan_create_data): Use
2778         ubsan_get_source_location_type instead of
2779         ubsan_source_location_type.
2780         * asan.c (asan_protect_global): Don't protect globals
2781         with ubsan_get_source_location_type () type.
2782         (asan_add_global): Provide global decl location info
2783         if possible.
2785 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2787         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2788         sanity check.
2790 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2792         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2793         on size.
2794         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2795         into vptr pointer.
2796         (ipa_polymorphic_call_context::dump): Fix formating.
2797         (walk_ssa_copies): Add logic avoiding loops; update uses.
2798         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2800 2014-10-02  Mark Wielaard  <mjw@redhat.com>
2802         PR debug/63239
2803         * dwarf2out.c (gen_subprogram_die): When a member function is
2804         explicitly deleted then add a DW_AT_GNU_deleted attribute.
2805         * langhooks.h (struct lang_hooks_for_decls): Add
2806         function_decl_deleted_p langhook.
2807         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2808         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2810 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2812         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2813         NULL pointer checks.
2814         (ipa_polymorphic_call_context::get_dynamic_type): Return true
2815         if type doesn't change.
2816         * cgraph.h (cgraph_indirect_call_info): New flag.
2817         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2818         (cgraph_node::dump): Dump it.
2819         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
2820         of context.get_dynamic_type.
2821         (ipa_make_edge_direct_to_target): Do not speculate
2822         edge that is already speuclative.
2823         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2824         speculate to __builtin_unreachable
2825         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2826         vptr_changed.
2827         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2829 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2831         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2832         get_dynamic_type; drop TODO.
2833         * ipa-polymorphic-call.c
2834         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2835         for otr_type to be unknown.
2837 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
2839         * common/config/score/score-common.c: Remove.
2840         * config.gcc: Remove support for score-*.
2841         * config/score/constraints.md: Remove.
2842         * config/score/elf.h: Remove.
2843         * config/score/predicates.md: Remove.
2844         * config/score/score-conv.h: Remove.
2845         * config/score/score-generic.md: Remove.
2846         * config/score/score-modes.def: Remove.
2847         * config/score/score-protos.h: Remove.
2848         * config/score/score.c: Remove.
2849         * config/score/score.h: Remove.
2850         * config/score/score.md: Remove.
2851         * config/score/score.opt: Remove.
2852         * doc/md.texi: Don't document score-*.
2854 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
2856         PR pch/63429
2857         * genconditions.c: Directly include ggc.h before rtl.h.
2859 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
2861         * ipa-polymorphic-call.c
2862         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2863         code determining speculative type.
2864         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2866 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2868         * altivec.md (altivec_lvsl): New define_expand.
2869         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2870         (altivec_lvsr): New define_expand.
2871         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2872         * rs6000.c (rs6000_expand_builtin): Change to use
2873         altivec_lvs[lr]_direct; remove commented-out code.
2875 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2877         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2878         Issue a warning message when vec_lvsl or vec_lvsr is used with a
2879         little endian target.
2881 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2883         * tree-pretty-print.c (dump_location): Make it extern. Dump also
2884         the column.
2885         * tree-pretty-print.h (dump_location): Declare.
2886         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2887         (pp_gimple_stmt_1): Likewise.
2888         (dump_implicit_edges): Likewise.
2889         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2890         LOCATION_LINE.
2893 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
2895         * gcc.c (driver::global_initializations): Remove "const" so
2896         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2897         and decoded_options_count.
2899 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2901         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2902         macro.
2903         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2904         TARGET_E500_DOUBLE case here.
2906 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
2908         PR c++/54427
2909         PR c++/57198
2910         PR c++/58845
2911         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2913 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
2915         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2916         * lto-cgraph.c (lto_output_edge, input_edge): Stream
2917         in_polymorphic_cdtor
2918         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2919         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2920         * cgraphclones.c (cgraph_edge::clone): Likewise.
2921         * ipa-prop.c (update_jump_functions_after_inlining,
2922         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2923         to possible_dynamic_type_change.
2924         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2925         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2926         IN_POLY_CDOTR argument.
2928         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2929         for BASE and OUTER_TYPE being NULL.
2930         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2931         in_poly_cdtor parameter.
2933 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2935         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2936         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2937         TARGET_AVX512F.
2938         (expand_vec_perm_1): Likewise.
2940 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2941             Uros Bizjak  <ubizjak@gmail.com>
2943         PR tree-optimization/61403
2944         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2945         error in comment.  Also optimize 256-bit vectors for AVX2
2946         or AVX (floating vectors only), provided the first permutation
2947         can be performed in one insn.
2949 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
2951         * gcc.c (class driver): New class.
2952         (main): Reimplement in terms of driver::main, moving most of the
2953         locals to be locals within individual methods of class driver.
2954         The remaining locals "explicit_link_files", "decoded_options" and
2955         "decoded_options_count" are used by multiple driver:: methods, and
2956         so become member data.  Doing so isolates the argc/argv reads and
2957         writes.  Replace "goto out" with a special exit code from
2958         new method driver::prepare_infiles.  Split out the old
2959         implementation of main into the following...
2960         (driver::main): New function, corresponding to the old "main"
2961         implementation.
2962         (driver::set_progname): New function, taken from the old
2963         "main" implementation.
2964         (driver::expand_at_files): Likewise.
2965         (driver::decode_argv): Likewise.
2966         (driver::global_initializations): Likewise.
2967         (driver::build_multilib_strings): Likewise.
2968         (driver::set_up_specs): Likewise.
2969         (driver::putenv_COLLECT_GCC): Likewise.
2970         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2971         (driver::handle_unrecognized_options): Likewise.
2972         (driver::maybe_print_and_exit): Likewise.
2973         (driver::prepare_infiles): Likewise.
2974         (driver::do_spec_on_infiles): Likewise.
2975         (driver::maybe_run_linker): Likewise.
2976         (driver::final_actions): Likewise.
2977         (driver::get_exit_code): Likewise.
2979 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
2981         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2982         don't emit empty ctors.
2984 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
2986         * convert.c (convert_to_integer): Do not introduce useless conversions
2987         between integral types.
2989 2014-10-03  David Sherwood  <david.sherwood@arm.com>
2991         * ira-int.h (ira_allocno): Mark hard_regno as signed.
2993 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
2995         * lra-constraints.c (inherit_in_ebb): Handle calls with
2996         multiple return values.
2997         * caller-save.c (save_call_clobbered_regs): Likewise.
2999 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3001         * tree-vect-data-refs.c (vect_permute_load_chain,
3002         vect_shift_permute_load_chain): Fix a typo in temporary var names,
3003         suffle3 to shuffle3.
3005         PR libgomp/61200
3006         * omp-low.c (taskreg_contexts): New variable.
3007         (scan_omp_parallel): Push newly created context into taskreg_contexts
3008         vector and move record layout code to finish_taskreg_scan.
3009         (scan_omp_task): Likewise.
3010         (finish_taskreg_scan): New function.
3011         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3012         vector elements and release it.
3014         PR target/62128
3015         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3016         of palignr arguments can't be used due to min 0 or max - min
3017         too high, try also op0, op1 order of palignr arguments.
3019 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
3021         * cgraph.h (ipa_polymorphic_call_context):
3022         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3023         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3024         * ipa-polymorphic-call.c
3025         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3026         past end of dynamic types.
3027         (ipa_polymorphic_call_context::stream_out,
3028         speculative_outer_type): Stream dynamic flag.
3029         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3030         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3031         Clear DYNAMIC.
3032         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3033         set it.
3034         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3035         * ipa-prop.c (update_jump_functions_after_inlining,
3036         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3038 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3040         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3041         up when synthesizing counts to avoid rounding errors.
3043 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3045         PR middle-end/63422
3046         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3047         asserts to handle incoming insanities.
3049 2014-10-02  Martin Jambor  <mjambor@suse.cz>
3051         PR tree-optimization/63375
3052         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3053         references.
3055 2014-10-02  Olivier Hainque  <hainque@adacore.com>
3057         * Makefile.in (CROSS): Define, to @CROSS.
3059 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
3061         PR target/62128
3062         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3063         if it expands to a single insn only.
3064         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
3065         fail unless in_order is true.  Add forward declaration.
3066         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3067         is useful for one_operand_p.
3068         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3070 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3072         * cgraphclones.c (build_function_type_skip_args): Do not make new
3073         type variant of old.
3075 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3077         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3078         when speculation is added.
3079         (ipa_edge_args): Add polymorphic_call_contexts.
3080         (ipa_get_ith_polymorhic_call_context): New accesor.
3081         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3082         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3083         (ipa_compute_jump_functions_for_edge): Compute contexts.
3084         (update_jump_functions_after_inlining): Update contexts.
3085         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3086         update dumping; add speculative edge creation.
3087         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3088         context updating.
3089         (update_indirect_edges_after_inlining): Pass down context.
3090         (ipa_edge_duplication_hook): Duplicate contexts.
3091         (ipa_write_node_info): Stream out contexts.
3092         (ipa_read_node_info): Stream in contexts.
3093         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3094         types.
3095         (try_speculative_devirtualization): New function.
3096         * ipa-utils.h (try_speculative_devirtualization): Declare.
3098 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3100         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3101         dumping during WPA.
3103 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3105         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3106         type variants.
3108 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3110         * ipa-polymorphic-call.c
3111         (ipa_polymorphic_call_context::restrict_to_inner_class):
3112         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3113         use speculation_consistent_p to do so; Add CONSDER_BASES
3114         and CONSIDER_PLACEMENT_NEW parameters.
3115         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3116         short circuit obvious cases.
3117         (ipa_polymorphic_call_context::dump): Improve formatting.
3118         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3119         combine_speculation_with to record speculations; Do not ICE when
3120         object is located in pointer type decl; do not ICE for methods
3121         of UNION_TYPE; do not record nonpolymorphic types.
3122         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3123         (ipa_polymorphic_call_context::combine_speculation_with): New method.
3124         (ipa_polymorphic_call_context::combine_with): New method.
3125         (ipa_polymorphic_call_context::make_speculative): Move here; use
3126         combine speculation.
3127         * cgraph.h (ipa_polymorphic_call_context): Update
3128         restrict_to_inner_class prototype; add offset_by, make_speculative,
3129         combine_with, useless_p, combine_speculation_with and
3130         speculation_consistent_p methods.
3131         (ipa_polymorphic_call_context::offset_by): New method.
3132         (ipa_polymorphic_call_context::useless_p): New method.
3134 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3136         PR rtl-optimization/62151
3137         * combine.c (can_combine_p): Allow the destination register of INSN
3138         to be clobbered in I3.
3139         (subst): Do not substitute into clobbers of registers.
3141 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
3143         PR debug/63342
3144         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3145         offset, TARGET_MEM_REF and SSA_NAME.
3147         * config/i386/i386.c (expand_vec_perm_palignr): Handle
3148         256-bit vectors for TARGET_AVX2.
3150         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3151         dfirst permutation.
3153         PR target/63428
3154         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3155         argument to avx2_permv2ti.
3157 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3159         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3161 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
3163         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3164         (fmod<mode>3): Ditto.
3165         (fpremxf4_i387): Ditto.
3166         (reminderxf3): Ditto.
3167         (reminder<mode>3): Ditto.
3168         (fprem1xf4_i387): Ditto.
3170 2014-09-30  Teresa Johnson  <tejohnson@google.com>
3172         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3173         duplicate_blocks bitmap.
3174         (remove_ctrl_stmt_and_useless_edges): Ditto.
3175         (create_block_for_threading): Ditto.
3176         (compute_path_counts): New function.
3177         (update_profile): Ditto.
3178         (recompute_probabilities): Ditto.
3179         (update_joiner_offpath_counts): Ditto.
3180         (freqs_to_counts_path): Ditto.
3181         (clear_counts_path): Ditto.
3182         (ssa_fix_duplicate_block_edges): Update profile info.
3183         (ssa_create_duplicates): Pass new parameter.
3184         (ssa_redirect_edges): Remove old profile update.
3185         (thread_block_1): New duplicate_blocks bitmap,
3186         remove old profile update.
3187         (thread_single_edge): Pass new parameter.
3189 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
3191         PR middle-end/62120
3192         * varasm.c (decode_reg_name_and_count): Check availability for
3193         registers from ADDITIONAL_REGISTER_NAMES.
3195 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
3197         PR plugins/63410
3198         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3199         (PLUGIN_HEADERS): Add pass-instances.def.
3201 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
3203         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3204         iterator.
3205         * config/aarch64/aarch64-simd.md
3206         (aarch64_sqdmull_laneq<mode>): Expand iterator.
3207         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3208         (vqdmulls_lane_s32): Fix return type.
3209         (vqdmulls_laneq_s32): New.
3211 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
3213         PR inline-asm/63282
3214         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3215         or invert_jump_1 if jump isn't any_condjump_p.
3217 2014-09-30  Terry Guo  <terry.guo@arm.com>
3219         * config/arm/arm-cores.def (cortex-m7): New core name.
3220         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3221         (fpv5-d16): Ditto.
3222         * config/arm/arm-tables.opt: Regenerated.
3223         * config/arm/arm-tune.md: Regenerated.
3224         * config/arm/arm.h (TARGET_VFP5): New macro.
3225         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3226         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3227         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3228         * doc/invoke.texi: Document new cpu and fpu names.
3230 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
3232         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3233         before sinking insn.
3235 2014-09-30  David Sherwood  <david.sherwood@arm.com>
3237         * ira-int.h (ira_allocno): Add "wmode" field.
3238         * ira-build.c (create_insn_allocnos): Add new "parent" function
3239         parameter.
3240         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3241         that cannot be accessed in wmode.
3243 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
3245         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3246         integer overflow.
3248 2014-09-29  Andi Kleen  <ak@linux.intel.com>
3250         * opts.c (print_filtered_help): Print --param min/max/default
3251         with -Q.
3253 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3255         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3257 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3259         * tree-vrp.c (get_single_symbol): New function.
3260         (build_symbolic_expr): Likewise.
3261         (symbolic_range_based_on_p): New predicate.
3262         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3263         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
3264         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3265         operand is symbolic and based on the other operand.
3267 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
3269         * config/microblaze/microblaze.md (call_internal1): Use VOID
3270         instead of SI to fix "((void (*)(void)) 0)()" issue
3272 2014-09-29  Nick Clifton  <nickc@redhat.com>
3274         * config/msp430/msp430.c (msp430_expand_prologue): Return a
3275         CLOBBER rtx for naked functions.
3276         (msp430_expand_epilogue): Likewise.
3277         (msp430_use_f5_series_hwmult): Cache result.
3278         (use_32bit_hwmult): Cache result.
3279         (msp430_no_hwmult): New function.
3280         (msp430_output_labelref): Use it.
3282 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
3284         PR middle-end/63247
3285         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3286         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3287         use the alignment of avar rather than ovar.
3289 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
3291         * config/pa/pa.c (pa_output_function_epilogue): Only update
3292         last_address when a nonnote insn is found.
3294 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3296         PR ipa/60665
3297         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3299 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3301         PR ipa/62121
3302         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3303         fix pasto in checking array size.
3305 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3307         PR middle-end/35545
3308         * passes.def (pass_tracer): Move before last dominator pass.
3310 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
3312         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
3313         users.
3314         (run_attempt): Handle errors of "pex_run" invocation.
3316 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
3318         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3319         (CC1_SPEC): Define.
3320         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3321         (TARGET_ASAN_SHADOW_OFFSET): Define.
3323 2014-09-26  Martin Liska  <mliska@suse.cz>
3325         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3326         introduced.
3327         * cgraph.h: Likewise.
3328         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3329         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3330         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3331         * tree-ssa-alias.h: Likewise.
3333 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
3334             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3336         * common.opt: New option.
3337         * doc/invoke.texi: Describe new option.
3338         * gcc.c (execute): Don't free first string early, but at the end
3339         of the function.  Call retry_ice if compiler exited with
3340         ICE_EXIT_CODE.
3341         (main): Factor out common code.
3342         (print_configuration): New function.
3343         (files_equal_p): Likewise.
3344         (check_repro): Likewise.
3345         (run_attempt): Likewise.
3346         (do_report_bug): Likewise.
3347         (append_text): Likewise.
3348         (try_generate_repro): Likewise
3350 2014-09-25  Andi Kleen  <ak@linux.intel.com>
3352         * config/i386/i386.c (x86_print_call_or_nop): New function.
3353         (x86_function_profiler): Support -mnop-mcount and
3354         -mrecord-mcount.
3355         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3356         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3358 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3360         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3361         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3362         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3363         Remove.
3365 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3367         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3368         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3369         types_odr_comparable): Declare.
3370         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3371         * ipa-polymorphic-call.c: New file.
3372         (contains_polymorphic_type_p, possible_placement_new,
3373         ipa_polymorphic_call_context::restrict_to_inner_class,
3374         contains_type_p, decl_maybe_in_construction_p,
3375         ipa_polymorphic_call_context::stream_out,
3376         ipa_polymorphic_call_context::debug,
3377         ipa_polymorphic_call_context::stream_in,
3378         ipa_polymorphic_call_context::set_by_decl,
3379         ipa_polymorphic_call_context::set_by_invariant,
3380         walk_ssa_copies,
3381         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3382         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3383         extr_type_from_vtbl_ptr_store, record_known_type
3384         check_stmt_for_type_change,
3385         ipa_polymorphic_call_context::get_dynamic_type): Move here from
3386         ipa-devirt.c
3387         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3388         and streamer-hooks.h
3389         (contains_polymorphic_type_p, possible_placement_new,
3390         ipa_polymorphic_call_context::restrict_to_inner_class,
3391         contains_type_p, decl_maybe_in_construction_p,
3392         ipa_polymorphic_call_context::stream_out,
3393         ipa_polymorphic_call_context::debug,
3394         ipa_polymorphic_call_context::stream_in,
3395         ipa_polymorphic_call_context::set_by_decl,
3396         ipa_polymorphic_call_context::set_by_invariant,
3397         walk_ssa_copies,
3398         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3399         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3400         extr_type_from_vtbl_ptr_store, record_known_type
3401         check_stmt_for_type_change,
3402         ipa_polymorphic_call_context::get_dynamic_type): Move to
3403         ipa-polymorphic-call.c
3404         (type_all_derivations_known_p, types_odr_comparable,
3405         types_must_be_same_for_odr): Export.
3406         (type_known_to_have_no_deriavations_p): New function.
3407         * Makefile.in: Add ipa-polymorphic-call.c
3409 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3411         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3412         for better storage.
3413         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3414         (possible_polymorphic_call_targets): Instead of computing both
3415         speculative and non-speculative answers, do just one at a time.
3416         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3417         (dump_targets): Break out from ...
3418         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3419         and non-speculative lists.
3420         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3421         * ipa-utils.h (possible_polymorphic_call_targets): Update.
3423 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
3425         PR rtl-optimization/63348
3426         * emit-rtl.c (try_split): Do not emit extra barrier.
3428 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
3430         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3431         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3432         new predicates.
3433         (aarch64_<sur>shll2_n<mode>): Likewise.
3434         (aarch64_<sur>shr_n<mode>): Likewise.
3435         (aarch64_<sur>sra_n<mode>: Likewise.
3436         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3437         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3438         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3439         * config/aarch64/iterators.md (ve_mode): New.
3440         (offsetlr): Remap to infix text for use in new predicates.
3441         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3442         (aarch64_simd_shift_imm_hi): Likewise.
3443         (aarch64_simd_shift_imm_si): Likewise.
3444         (aarch64_simd_shift_imm_di): Likewise.
3445         (aarch64_simd_shift_imm_offset_qi): Likewise.
3446         (aarch64_simd_shift_imm_offset_hi): Likewise.
3447         (aarch64_simd_shift_imm_offset_si): Likewise.
3448         (aarch64_simd_shift_imm_offset_di): Likewise.
3449         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3450         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3451         (aarch64_simd_shift_imm_bitsize_si): Likewise.
3452         (aarch64_simd_shift_imm_bitsize_di): Likewise.
3454 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
3456         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3457         new created BB as the intersection of live-in from "old_dest" and
3458         live-out from "bb".
3460 2014-09-25  Felix Yang  <felix.yang@huawei.com>
3462         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3463         * genautomata.c (merge_states): Ditto.
3465 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
3467         PR target/62218
3468         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3469         in instruction sequence.
3471 2014-09-25  Nick Clifton  <nickc@redhat.com>
3473         PR target/62218
3474         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3475         in instruction sequence.
3477 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3479         PR target/63335
3480         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3481         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3483 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3484             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3485             Anna Tikhonova  <anna.tikhonova@intel.com>
3486             Ilya Tocar  <ilya.tocar@intel.com>
3487             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3488             Ilya Verbin  <ilya.verbin@intel.com>
3489             Kirill Yukhin  <kirill.yukhin@intel.com>
3490             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3492         * config/i386/sse.md
3493         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3494         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3495         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3496         (define_expand "<avx512>_perm<mode>_mask"): ... this.
3497         Use VI8F_256_512 mode iterator.
3498         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3499         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3501 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3502             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3503             Anna Tikhonova  <anna.tikhonova@intel.com>
3504             Ilya Tocar  <ilya.tocar@intel.com>
3505             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3506             Ilya Verbin  <ilya.verbin@intel.com>
3507             Kirill Yukhin  <kirill.yukhin@intel.com>
3508             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3510         * config/i386/sse.md
3511         (define_insn "avx_movshdup256<mask_name>"): Add masking.
3512         (define_insn "sse3_movshdup<mask_name>"): Ditto.
3513         (define_insn "avx_movsldup256<mask_name>"): Ditto.
3514         (define_insn "sse3_movsldup<mask_name>"): Ditto.
3515         (define_insn "vec_dupv2df<mask_name>"): Ditto.
3516         (define_insn "*vec_concatv2df"): Add EVEX version.
3518 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3519             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3520             Anna Tikhonova  <anna.tikhonova@intel.com>
3521             Ilya Tocar  <ilya.tocar@intel.com>
3522             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3523             Ilya Verbin  <ilya.verbin@intel.com>
3524             Kirill Yukhin  <kirill.yukhin@intel.com>
3525             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3527         * config/i386/sse.md
3528         (define_insn "vec_set<mode>_0"): Add EVEX version.
3530 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3531             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3532             Anna Tikhonova  <anna.tikhonova@intel.com>
3533             Ilya Tocar  <ilya.tocar@intel.com>
3534             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3535             Ilya Verbin  <ilya.verbin@intel.com>
3536             Kirill Yukhin  <kirill.yukhin@intel.com>
3537             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3539         * config/i386/sse.md
3540         (define_insn
3541         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3542         New.
3543         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3544         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3545         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3546         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3547         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3548         (define_expand "sse2_cvtpd2ps_mask): New.
3549         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3550         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3552 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3553             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3554             Anna Tikhonova  <anna.tikhonova@intel.com>
3555             Ilya Tocar  <ilya.tocar@intel.com>
3556             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3557             Ilya Verbin  <ilya.verbin@intel.com>
3558             Kirill Yukhin  <kirill.yukhin@intel.com>
3559             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3561         * config/i386/i386.c
3562         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3563         (ufix_notruncv8dfv8si2_mask_round): ... this.
3564         * config/i386/sse.md
3565         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3566         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3567         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3568         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3569         (define_expand "sse2_cvtpd2dq"): Delete.
3570         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3571         make 2nd operand const0 vector.
3572         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3573         Delete.
3574         (define_mode_attr pd2udqsuff): New.
3575         (define_insn
3576         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3577         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3578         (define_insn "*avx_cvttpd2dq256_2"): Delete.
3579         (define_expand "sse2_cvttpd2dq"): Ditto.
3580         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3581         make 2nd operand const0 vector.
3583 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
3585         PR tree-optimization/63341
3586         * tree-vectorizer.h (vect_create_data_ref_ptr,
3587         vect_create_addr_base_for_vector_ref): Add another tree argument
3588         defaulting to NULL_TREE.
3589         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3590         argument, pass it down to vect_create_addr_base_for_vector_ref.
3591         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3592         add that to base_offset too if non-NULL.
3593         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3594         for dr_explicit_realign_optimized set it to vector byte size
3595         - 1 instead of setting offset, pass byte_offset down to
3596         vect_create_data_ref_ptr.
3598 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3600         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3601         forgotten debug output; canonicalize querries more wtih LTO.
3603 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3605         * cgraph.h (class ipa_polymorphic_call_context): Move here from
3606         ipa-utils.h; add stream_int and stream_out methods.
3607         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3608         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3609         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3610         add CONTEXT.
3611         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3612         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3613         ipa_polymorphic_call_context::clear_speculation,
3614         ipa_polymorphic_call_context::clear_outer_type): Move here from
3615         ipa-utils.h
3616         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3617         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3618         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3619         ipa_polymorphic_call_context::clear_speculation,
3620         ipa_polymorphic_call_context::clear_outer_type): Likewise.
3621         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3622         streamer-hooks.h
3623         (ipa_polymorphic_call_context::stream_out): New method.
3624         (ipa_polymorphic_call_context::stream_in): New method.
3625         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3626         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3627         OUTER_TYPE.
3628         (ipa_analyze_call_uses): Simplify.
3629         (update_indirect_edges_after_inlining): Do not care about outer_type.
3630         (ipa_write_indirect_edge_info): Update.
3631         (ipa_write_indirect_edge_info): Likewise.
3632         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3633         (dump_edge_flags): Break out from ...
3634         (cgraph_node::dump): ... here; dump indirect edges.
3636 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3638         * ipa-utils.h (polymorphic_call_context): Add
3639         metdhos dump, debug and clear_outer_type.
3640         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3641         (ipa_polymorphic_call_context::clear_outer_type): New method.
3642         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3643         * ipa-devirt.c (types_odr_comparable): New function.
3644         (types_must_be_same_for_odr): New function.
3645         (odr_subtypes_equivalent_p): Simplify.
3646         (possible_placement_new): Break out from ...
3647         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3648         be more cuatious about returning false in cases the context may be
3649         valid in derived type or via placement new.
3650         (contains_type_p): Clear maybe_derived_type
3651         (ipa_polymorphic_call_context::dump): New method.
3652         (ipa_polymorphic_call_context::debug): New method.
3653         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3654         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3655         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3656         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3657         to suceed on all valid cases; remove confused sanity check.
3658         (dump_possible_polymorphic_call_targets): Simplify.
3660 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
3662         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3663         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3664         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3665         varpool.c: Rename all instances of DECL_ABSTRACT to
3666         DECL_ABSTRACT_P.
3668 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3670         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3671         special handling for stores whose SET_SRC is an UNSPEC (such as
3672         UNSPEC_STVE).
3674 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
3676         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3677         !REG_P (src) to release more instruction sink opportunities.
3679 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3681         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3682         move costs for 128-bit types.
3684 2014-09-24  Martin Jambor  <mjambor@suse.cz>
3686         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3687         when duplicating a PASS_THROUGH jump function when creating a
3688         speculative edge.
3690 2014-09-24  Marek Polacek  <polacek@redhat.com>
3692         PR c/61405
3693         PR c/53874
3694         * asan.c (maybe_instrument_call): Add default case.
3695         * ipa-pure-const.c (special_builtin_state): Likewise.
3696         * predict.c (expr_expected_value_1): Likewise.
3697         * lto-streamer-out.c (write_symbol): Initialize variable.
3699 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3701         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3702         the lane.
3703         (vmuld_laneq_f64): Likewise.
3704         (vmuls_lane_f32): Likewise.
3705         (vmuls_laneq_f32): Likewise.
3707 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
3709         PR bootstrap/63235
3710         * varpool.c (varpool_node::add): Pass decl attributes
3711         to lookup_attribute.
3713 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
3715         PR sanitizer/63316
3716         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3718 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3720         PR tree-optimization/63266
3721         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3722         marker for unknown byte value.
3723         (MARKER_MASK): New macro.
3724         (MARKER_BYTE_UNKNOWN): New macro.
3725         (HEAD_MARKER): New macro.
3726         (do_shift_rotate): Mark bytes with unknown values due to sign
3727         extension when doing an arithmetic right shift. Replace hardcoded
3728         mask for marker by new MARKER_MASK macro.
3729         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3730         numbers accordingly.
3732 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3733             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3734             Anna Tikhonova  <anna.tikhonova@intel.com>
3735             Ilya Tocar  <ilya.tocar@intel.com>
3736             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3737             Ilya Verbin  <ilya.verbin@intel.com>
3738             Kirill Yukhin  <kirill.yukhin@intel.com>
3739             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3741         * config/i386/sse.md
3742         (define_insn
3743         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3744         Add masking.
3745         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3746         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3748 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3749             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3750             Anna Tikhonova  <anna.tikhonova@intel.com>
3751             Ilya Tocar  <ilya.tocar@intel.com>
3752             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3753             Ilya Verbin  <ilya.verbin@intel.com>
3754             Kirill Yukhin  <kirill.yukhin@intel.com>
3755             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3757         * config/i386/sse.md
3758         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3759         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3760         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3761         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3762         (define_expand "avx512vl_pshuflw_mask"): New.
3763         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3764         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3765         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3766         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3767         (define_expand "avx512vl_pshufhw_mask"): New.
3768         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3770 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3771             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3772             Anna Tikhonova  <anna.tikhonova@intel.com>
3773             Ilya Tocar  <ilya.tocar@intel.com>
3774             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3775             Ilya Verbin  <ilya.verbin@intel.com>
3776             Kirill Yukhin  <kirill.yukhin@intel.com>
3777             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3779         * config/i386/i386.c
3780         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3781         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3782         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3783         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3784         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3785         * config/i386/sse.md
3786         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3787         (define_insn
3788         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3789         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3790         (define_insn
3791         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3792         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3793         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3794         (define_expand "avx512vl_pshufd_mask"): New.
3795         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3797 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3798             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3799             Anna Tikhonova  <anna.tikhonova@intel.com>
3800             Ilya Tocar  <ilya.tocar@intel.com>
3801             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3802             Ilya Verbin  <ilya.verbin@intel.com>
3803             Kirill Yukhin  <kirill.yukhin@intel.com>
3804             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3806         * config/i386/i386.c
3807         (CODE_FOR_avx2_extracti128): Rename to ...
3808         (CODE_FOR_avx_vextractf128v4di): this.
3809         (CODE_FOR_avx2_inserti128): Rename to ...
3810         (CODE_FOR_avx_vinsertf128v4di): this.
3811         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3812         CODE_FOR_avx_vextractf128v4di.
3813         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3814         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3815         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3816         CODE_FOR_avx512vl_vinsertv8si.
3817         * config/i386/sse.md
3818         (define_expand
3819         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3820         AVX512_VEC mode iterator.
3821         (define_insn
3822         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3823         Ditto.
3824         (define_expand
3825         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3826         AVX512_VEC_2 mode iterator.
3827         (define_insn "vec_set_lo_<mode><mask_name>"): New.
3828         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3829         (define_expand "avx512vl_vinsert<mode>"): Ditto.
3830         (define_insn "avx2_vec_set_lo_v4di"): Delete.
3831         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3832         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3833         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3834         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3835         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3836         (define_expand "avx2_extracti128"): Delete.
3837         (define_expand "avx2_inserti128"): Ditto.
3839 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3840             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3841             Anna Tikhonova  <anna.tikhonova@intel.com>
3842             Ilya Tocar  <ilya.tocar@intel.com>
3843             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3844             Ilya Verbin  <ilya.verbin@intel.com>
3845             Kirill Yukhin  <kirill.yukhin@intel.com>
3846             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3848         * config/i386/sse.md
3849         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3850         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3851         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3852         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3853         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3854         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3855         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3856         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3857         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3858         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3859         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3860         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3861         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3863 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3865         PR rtl-optimization/63210
3866         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3867         HARD_REGNO is not available for CONFLICT_A.
3869 2014-09-23  Andi Kleen  <ak@linux.intel.com>
3871         * cgraph.h (symtab_node): Add no_reorder attribute.
3872         (symbol_table::output_asm_statements): Remove.
3873         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3874         (cgraph_node::create_version_clone): Dito.
3875         (symbol_table::output_asm_statements): Remove.
3876         * trans-mem.c (ipa_tm_create_version_alias): Dito.
3877         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3878         (output_in_order): Add no_reorder flag. Only handle no_reorder
3879         nodes when set.
3880         (symbol_table::compile): Add separate pass for no_reorder nodes.
3881         (process_common_attributes): Set no_reorder flag in symtab node.
3882         Add node argument.
3883         (process_function_and_variable_attributes): Pass symtab nodes to
3884         process_common_attributes.
3885         * doc/extend.texi (no_reorder): Document no_reorder attribute.
3886         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3887         (lto_output_varpool_node): Dito.
3888         (input_overwrite_node): Dito.
3889         (input_varpool_node): Dito.
3890         * varpool.c (varpool_node::add): Set no_reorder attribute.
3891         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3892         (symbol_table::output_variables): Dito.
3893         * symtab.c (symtab_node::dump_base): Print no_reorder.
3895 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
3897         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3898         be INVALID_REGNUM.
3900 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
3902         * configure: Regenerate.
3904 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
3906         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3907         when result_mode == shift_mode.
3909 2014-09-23  Kostya Serebryany  <kcc@google.com>
3911         Update to match the changed asan API.
3912         * asan.c (asan_global_struct): Update the __asan_global definition
3913         to match the new API.
3914         (asan_add_global): Ditto.
3915         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3916         to __asan_init_v4.
3918 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3920         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3921         refine the constraints used on 32/64-bit floating point moves.
3922         (f32_av): Likewise.
3923         (f64_vsx): Likewise.
3924         (f64_dm): Likewise.
3925         (f64_av): Likewise.
3926         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3927         (BOOL_REGS_OP1): Likewise.
3928         (BOOL_REGS_OP2): Likewise.
3929         (BOOL_REGS_UNARY): Likewise.
3930         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3931         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
3932         for moves involving VSX registers.  Do not use constraints that
3933         target VSX registers for decimal types.
3934         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3935         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3937 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
3939         * tree.h (int_bit_position): Turn into inline function;
3940         implement using wide int.
3941         * tree.c (int_bit_position): Remove.
3943 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
3945         PR bootstrap/63280
3946         * target-globals.c (target_globals::~target_globals): Fix location
3947         of ira_int destruction.
3949 2014-09-23  Renlin Li  <renlin.li@arm.com>
3951         * config/aarch64/aarch64.md (return): New.
3952         (simple_return): Likewise.
3953         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3954         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3956 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
3958         * common/config/aarch64/aarch64-common.c:
3959         (default_options aarch_option_optimization_table):
3960         Default to -fsched-pressure.
3962 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
3964         * cfgcleanup.c (try_optimize_cfg): Do not remove label
3965         with LABEL_PRESERVE_P flag set.
3967 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3968             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3969             Anna Tikhonova  <anna.tikhonova@intel.com>
3970             Ilya Tocar  <ilya.tocar@intel.com>
3971             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3972             Ilya Verbin  <ilya.verbin@intel.com>
3973             Kirill Yukhin  <kirill.yukhin@intel.com>
3974             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3976         * config/i386/sse.md
3977         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3978         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3979         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3980         (define_insn "sse2_shufpd_v2df_mask"): New.
3982 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3983             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3984             Anna Tikhonova  <anna.tikhonova@intel.com>
3985             Ilya Tocar  <ilya.tocar@intel.com>
3986             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3987             Ilya Verbin  <ilya.verbin@intel.com>
3988             Kirill Yukhin  <kirill.yukhin@intel.com>
3989             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3991         * config/i386/sse.md
3992         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3993         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3994         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3995         (define_insn "sse_shufps_v4sf_mask"): New.
3997 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3998             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3999             Anna Tikhonova  <anna.tikhonova@intel.com>
4000             Ilya Tocar  <ilya.tocar@intel.com>
4001             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4002             Ilya Verbin  <ilya.verbin@intel.com>
4003             Kirill Yukhin  <kirill.yukhin@intel.com>
4004             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4006         * config/i386/sse.md
4007         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4008         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4009         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4010         (define_insn "unpcklps128_mask"): New.
4012 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4013             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4014             Anna Tikhonova  <anna.tikhonova@intel.com>
4015             Ilya Tocar  <ilya.tocar@intel.com>
4016             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4017             Ilya Verbin  <ilya.verbin@intel.com>
4018             Kirill Yukhin  <kirill.yukhin@intel.com>
4019             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4021         * config/i386/sse.md
4022         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4023         (define_insn "avx512vl_unpckhpd128_mask"): New.
4024         (define_expand "avx_movddup256<mask_name>"): Add masking.
4025         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4026         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4027         (define_insn "avx512vl_unpcklpd128_mask"): New.
4029 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4031         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4032         * doc/tm.texi: Regenerate.
4033         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4034         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4035         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4036         Remove.
4037         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4038         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4039         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4040         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4041         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4042         Remove.
4043         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4044         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4045         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4046         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4047         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4048         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4049         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4050         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4051         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4052         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4053         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4054         Remove.
4056 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
4058         * tree-ssa-ccp.c (prop_value_d): Rename to ...
4059         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4060         * ipa-prop.c (struct type_change_info): Rename to ...
4061         (prop_type_change_info): ... this; update uses.
4062         * ggc-page.c (globals): Rename to ...
4063         (static struct ggc_globals): ... this; update uses.
4064         * tree-ssa-loop-im.c (mem_ref): Rename to ...
4065         (im_mem_ref): ... this; update uses.
4066         * ggc-common.c (loc_descriptor): Rename to ...
4067         (ggc_loc_descriptor): ... this; update uses.
4068         * lra-eliminations.c (elim_table): Rename to ...
4069         (lra_elim_table): ... this; update uses.
4070         * bitmap.c (output_info): Rename to ...
4071         (bitmap_output_info): ... this; update uses.
4072         * gcse.c (expr): Rename to ...
4073         (gcse_expr) ... this; update uses.
4074         (occr): Rename to ...
4075         (gcse_occr): .. this; update uses.
4076         * tree-ssa-copy.c (prop_value_d): Rename to ...
4077         (prop_value_t): ... this.
4078         * predict.c (block_info_def): Rename to ...
4079         (block_info): ... this; update uses.
4080         (edge_info_def): Rename to ...
4081         (edge_info): ... this; update uses.
4082         * profile.c (bb_info): Rename to ...
4083         (bb_profile_info): ... this; update uses.
4084         * alloc-pool.c (output_info): Rename to ...
4085         (pool_output_info): ... this; update uses.
4086         * ipa-cp.c (topo_info): Rename to ..
4087         (ipa_topo_info): ... this; update uses.
4088         * tree-nrv.c (nrv_data): Rename to ...
4089         (nrv_data_t): ... this; update uses.
4090         * ipa-split.c (bb_info): Rename to ...
4091         (split_bb_info): ... this one.
4092         * profile.h (edge_info): Rename to ...
4093         (edge_profile_info): ... this one; update uses.
4094         * dse.c (bb_info): Rename to ...
4095         (dse_bb_info): ... this one; update uses.
4096         * cprop.c (occr): Rename to ...
4097         (cprop_occr): ... this one; update uses.
4098         (expr): Rename to ...
4099         (cprop_expr): ... this one; update uses.
4101 2014-09-22  Jason Merrill  <jason@redhat.com>
4103         * Makefile.in (check-parallel-%): Add @.
4105 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4107         * config/aarch64/geniterators.sh: New.
4108         * config/aarch64/iterators.md (VDQF_DF): New.
4109         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4110         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4112 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
4114         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4115         -lnosys when -msim absent.
4117 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
4119         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4121 2014-09-22  Richard Biener  <rguenther@suse.de>
4123         * gimplify.c (gimplify_init_constructor): Do not leave
4124         non-GIMPLE vector constructors around.
4125         * tree-cfg.c (verify_gimple_assign_single): Verify that
4126         CONSTRUCTORs have gimple elements.
4128 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
4130         PR debug/63328
4131         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4132         insert a debug source bind stmt setting DEBUG_EXPR_DECL
4133         instead of a normal gimple assignment stmt.
4135 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4137         * config/bfin/bfin.md: Fix use of constraints in define_split.
4139 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4141         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4142         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4144 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4146         * hard-reg-set.h: Include hash-table.h.
4147         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4148         field.
4149         * target-globals.c (target_globals::~target_globals): Call
4150         hard_regs->finalize.
4151         * rtl.h (subreg_shape): New structure.
4152         (shape_of_subreg): New function.
4153         (simplifiable_subregs): Declare.
4154         * reginfo.c (simplifiable_subreg): New structure.
4155         (simplifiable_subregs_hasher): Likewise.
4156         (simplifiable_subregs): New function.
4157         (invalid_mode_changes): Delete.
4158         (alid_mode_changes, valid_mode_changes_obstack): New variables.
4159         (record_subregs_of_mode): Remove subregs_of_mode parameter.
4160         Record valid mode changes in valid_mode_changes.
4161         (find_subregs_of_mode): Remove subregs_of_mode parameter.
4162         Update calls to record_subregs_of_mode.
4163         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4164         handling.  Initialize new variables.  Update call to
4165         find_subregs_of_mode.
4166         (invalid_mode_change_p): Check new variables instead of
4167         invalid_mode_changes.
4168         (finish_subregs_of_mode): Finalize new variables instead of
4169         invalid_mode_changes.
4170         (target_hard_regs::finalize): New function.
4171         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4172         even when CLASS_CANNOT_CHANGE_MODE is undefined.
4174 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4176         * combine.c (subst): Use simplify_subreg_regno rather than
4177         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4179 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4181         * rtl.h (subreg_info): Expand commentary
4182         * rtlanal.c (subreg_get_info): Likewise.
4184 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4186         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4187         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4188         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4190 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4192         * config/arm/arm.c: #include "tm-constrs.h"
4193         (thumb1_size_rtx_costs): Adjust rtx costs.
4195 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
4197         * configure.ac (target_header_dir): Move block defining
4198         this to before the block setting inhibit_libc.
4199         (inhibit_libc): When considering $with_headers, just
4200         check it it's explicitly "no".  If not, also check if
4201         $target_header_dir/stdio.h is present.  If not, set
4202         inhibit_libc=true.
4203         * configure: Regenerate.
4205 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
4207         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4209 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4211         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
4212         insn for divides by integer powers of two.
4213         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4214         (mod<mode>3): Fix formatting.
4215         (three anonymous define_insn and two define_split): Delete.
4217 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4219         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4220         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4221         (floatdisf2_internal2): Ditto.
4222         (ashrdi3_no_power): Ditto.  Fix formatting.
4224 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4226         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4227         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4228         Tidy.
4230 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4232         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4233         constant, use addsi3 directly.
4234         (three anonymous define_insn, two define_split): Delete.
4235         (sub<mode>3): Move.  Do not allow constant second operand.
4236         Generate different insn for constant first operand.
4237         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4238         (subf<mode>3_imm): New.
4239         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4240         (*plus_ltu<mode>): Only handle registers.
4241         (*plus_ltu<mode>_1): New.  Handle integer third operand.
4242         (*plus_gtu<mode>): Only handle registers.
4243         (*plus_gtu<mode>_1): New.  Handle integer third operand.
4245 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4247         * config/rs6000/rs6000.md (iorxor): New code_iterator.
4248         (iorxor): New code_attr.
4249         (IORXOR): New code_attr.
4250         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4251         (ior<mode>3, xor<mode>3): Delete.
4252         (<iorxor><mode>3): New.
4253         (splitter for "big" integer ior, xor): New.
4254         (*bool<mode>3): Move.  Also handle AND.
4255         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4256         (splitter for "big" integer ior, xor): Delete.
4258 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4260         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4261         (two anonymous define_insn and two define_split): Delete.
4262         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4264 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4266         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4267         (two anonymous define_insn and two define_split): Delete.
4268         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4270 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4272         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4274 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4276         * config/rs6000/predicates.md (ca_operand): Allow subregs.
4277         (input_operand): Do not allow ca_operand.
4278         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4279         carry bit, allow SImode and Pmode.
4280         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4282 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
4284         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4285         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
4286         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4287         (*call_rex64_ms_sysv): Remove.
4288         (*call_value_rex64_ms_sysv): Ditto.
4289         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4291 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
4293         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4294         operand 3 to "CnL".
4296 2014-09-20  Andreas Schwab  <schwab@suse.de>
4298         * config/ia64/ia64.md: Remove constraints from define_split
4299         patterns.
4301 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4303         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4304         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4305         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4306         (get_dynamic_type): Remove.
4307         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4308         (clear_speculation): Bring to ipa-deivrt.h
4309         (get_class_context): Rename to ...
4310         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4311         (contains_type_p): Update.
4312         (get_dynamic_type): Rename to ...
4313         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4314         (possible_polymorphic_call_targets): UPdate.
4315         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4316         * ipa-prop.c (ipa_analyze_call_uses): Update.
4318 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4320         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4321         privatize dynamic TLS variables.
4323 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4325         * diagnostic.c (warning_n): New function.
4326         * diagnostic-core.h (warning_n): Declare.
4327         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4328         output dynamic counts when available.
4330 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4332         PR tree-optimization/63255
4333         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4334         issue in setting body_removed flag.
4336 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4338         PR c++/61825
4339         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4340         that visibility change is possible
4341         (handle_weakref_attribute): Likewise.
4342         * cgraph.h (symtab_node): Add method get_create and
4343         field refuse_visibility_changes.
4344         (symtab_node::get_create): New method.
4345         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4346         * varasm.c (mark_weak): Verify that visibility change is
4347         possible.
4349 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4351         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4352         for base_reg_operand to be common between LO_SUM and PLUS.
4353         (fusion_gpr_mem_combo): New predicate to match a fused address
4354         that combines the addis and memory offset address.
4356         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4357         calling signature.
4358         (emit_fusion_gpr_load): Likewise.
4360         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4361         signature to pass each argument separately, rather than
4362         using an operands array.  Rewrite the insns found by peephole2 to
4363         be a single insn, rather than hoping the insns will still be
4364         together when the peephole pass is done.  Drop being called via a
4365         normal peephole.
4366         (emit_fusion_gpr_load): Change calling signature to be called from
4367         the fusion_gpr_load_<mode> insns with a combined memory address
4368         instead of the peephole pass passing the addis and offset
4369         separately.
4371         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4372         fusion.
4373         (power8 fusion peephole): Drop support for doing power8 via a
4374         normal peephole that was created by the peephole2 pass.
4375         (power8 fusion peephole2): Create a new insn with the fused
4376         address, so that the fused operation is kept together after
4377         register allocation is done.
4378         (fusion_gpr_load_<mode>): Likewise.
4380 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4382         PR lto/63286
4383         * tree.c (need_assembler_name_p): Do not mangle variadic types.
4385 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
4387         * recog.c (scratch_operand): Do not simply allow all hard registers:
4388         only allow those that are allocatable.
4390 2014-09-19  Felix Yang  <felix.yang@huawei.com>
4392         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4393         comments and fix spacing to conform to coding style.
4395 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4397         * genrecog.c (validate_pattern): Allow empty constraints in
4398         a match_scratch.
4400 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
4402         * dwarf2out.c (decl_ultimate_origin): Update comment.
4403         * tree.c (block_ultimate_origin): Same.
4405 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4407         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4408         Update GCC version name to GCC 5.
4409         (rs6000_function_arg_boundary): Likewise.
4410         (rs6000_function_arg): Likewise.
4412 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4414         * config/sh/sh.md: Fix use of constraints in define_split.
4416 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
4418         PR ipa/61998
4419         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4421 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4423         * doc/md.texi (Modifiers): Consistently use "read/write"
4424         nomenclature rather than "input/output".
4425         * genrecog.c (constraints_supported_in_insn_p): New.
4426         (validate_pattern): If needed, also check constraints on
4427         MATCH_SCRATCH operands.
4428         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4429         operands with no '=' or '+' modifier.
4431 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4433         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4434         scratch register as written.
4436 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4438         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4439         assignment.
4441 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4443         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4444         expanders.
4446 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4448         PR target/62662
4449         * config/s390/s390.c (s390_emit_epilogue): When doing the return
4450         address load optimization force s390_optimize_prologue to leave it
4451         that way.  Only do the optimization if we already decided to push
4452         r14 into a stack slot.
4454 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
4456         * asan.c (build_check_stmt): Alignment arg was added.
4457         (asan_expand_check_ifn): Optimization for alignment >= 8.
4459 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4461         * config/i386/vxworksae.h: Remove obsolete definitions.
4462         (STACK_CHECK_PROTECT): Define.
4463         * config/i386/vx-common.h: Remove.  Merge contents within
4464         config/i386/vxworks.h.
4465         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4466         i386/vx-common.h.
4468 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4470         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4471         * config/rs6000/t-vxworksmils: New file.
4472         * config/rs6000/vxworksmils.h: New file.
4474 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4476         * varasm.c (default_section_type_flags): Flag .persistent.bss
4477         sections as SECTION_BSS.
4479 2014-09-19  Nick Clifton  <nickc@redhat.com>
4481         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4482         pop'ed registers so that DCE does not eliminate them.
4484 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
4486         PR lto/63298
4487         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4489 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
4491         * system.h (LIBGCC2_TF_CEXT): Poison.
4492         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4493         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4494         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4495         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4496         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4497         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4498         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4499         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4500         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4502 2014-09-19  Kito Cheng  <kito@0xlab.org>
4504         * except.h: Fix header guard.
4505         * addresses.h: Add missing header guard.
4506         * cfghooks.h: Likewise.
4507         * collect-utils.h: Likewise.
4508         * collect2-aix.h: Likewise.
4509         * conditions.h: Likewise.
4510         * cselib.h: Likewise.
4511         * dwarf2asm.h: Likewise.
4512         * graphds.h: Likewise.
4513         * graphite-scop-detection.h: Likewise.
4514         * gsyms.h: Likewise.
4515         * hw-doloop.h: Likewise.
4516         * incpath.h: Likewise.
4517         * ipa-inline.h: Likewise.
4518         * ipa-ref.h: Likewise.
4519         * ira-int.h: Likewise.
4520         * ira.h: Likewise.
4521         * lra-int.h: Likewise.
4522         * lra.h: Likewise.
4523         * lto-section-names.h: Likewise.
4524         * read-md.h: Likewise.
4525         * reload.h: Likewise.
4526         * rtl-error.h: Likewise.
4527         * sdbout.h: Likewise.
4528         * targhooks.h: Likewise.
4529         * tree-affine.h: Likewise.
4530         * xcoff.h: Likewise.
4531         * xcoffout.h: Likewise.
4533 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4535         PR debug/63285
4536         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4537         if advance != 0.
4539 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4541         PR target/61360
4542         * lra.c (lra): Call recog_init.
4544 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
4546         PR c++/62017
4547         * asan.c (transform_statements): Don't instrument clobber statements.
4549 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4551         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4552         to neon_load1_1reg<q>.
4554 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
4556         PR debug/63284
4557         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4558         if there are only debug stmts after the noreturn call, instead
4559         remove the debug stmts.
4561 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
4563         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4564         (odr_types_equivalent_p): Use pair hash.
4565         (odr_subtypes_equivalent_p): Likewise, do structural compare
4566         on ODR types that may be mismatched.
4567         (warn_odr): Support warning when only one field is given.
4568         (odr_types_equivalent_p): Strenghten comparsions made;
4569         support VOIDtype.
4570         (add_type_duplicate): Update VISITED hash set.
4572 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4574         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4575         Enable selection of 'posix' or no thread model.
4577 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
4579         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4580         when architecture is older than ARMv7.
4582 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
4584         PR target/61853
4585         * config/pa/pa.c (pa_function_value): Directly handle aggregates
4586         that fit exactly in a word or double word.
4588 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
4590         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4591         zmm/k regs support.
4593 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4594             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4595             Anna Tikhonova  <anna.tikhonova@intel.com>
4596             Ilya Tocar  <ilya.tocar@intel.com>
4597             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4598             Ilya Verbin  <ilya.verbin@intel.com>
4599             Kirill Yukhin  <kirill.yukhin@intel.com>
4600             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4602         * config/i386/i386.c
4603         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4604         * config/i386/sse.md
4605         (define_mode_iterator VI48F_256): New.
4606         (define_mode_attr extract_type): Ditto.
4607         (define_mode_attr extract_suf): Ditto.
4608         (define_mode_iterator AVX512_VEC): Ditto.
4609         (define_expand
4610         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4611         AVX512_VEC.
4612         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4613         (define_insn
4614         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4615         Ditto.
4616         (define_mode_attr extract_type_2): Ditto.
4617         (define_mode_attr extract_suf_2): Ditto.
4618         (define_mode_iterator AVX512_VEC_2): Ditto.
4619         (define_expand
4620         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4621         AVX512_VEC_2 mode iterator.
4622         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4623         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4624         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4625         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4626         (define_split for V16FI mode): Ditto.
4627         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4628         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4629         (define_split for VI8F_256 mode): Ditto.
4630         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4631         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4632         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4633         (define_split for VI4F_256 mode): Ditto.
4634         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4635         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4636         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4637         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4638         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4639         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4640         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4641         Update `type' attribute, remove explicit `memory' attribute calculation.
4643 2014-09-16  Kito Cheng  <kito@0xlab.org>
4645         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4646         ira_spilled_reg_stack_slots_num if using lra.
4647         (do_reload): Remove release ira_spilled_reg_stack_slots part.
4648         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4649         make sure not using lra.
4650         (ira_reuse_stack_slot): Likewise.
4651         (ira_mark_new_stack_slot): Likewise.
4653 2014-09-15  Andi Kleen  <ak@linux.intel.com>
4655         * function.c (allocate_struct_function): Force
4656         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4657         profiling is disabled.
4659 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
4661         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4662         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4663         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4664         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4665         macro with statically checked member functions.
4666         * rtl.h (rtx_insn::deleted): New method.
4667         (rtx_insn::set_deleted): Likewise.
4668         (rtx_insn::set_undeleted): Likewise.
4669         (INSN_DELETED_P): Remove.
4671 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
4673         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4674         result of emit_jump_insn_before to a new variable.
4675         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4676         (mark_jump_label_1): Likewise.
4677         (mark_jump_label_asm): Likewise.
4678         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4679         * rtl.h (mark_jump_label): Adjust.
4681 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
4683         * Makefile.in (dg_target_exps): Remove.
4684         (check_gcc_parallelize): Change to just an upper bound number.
4685         (check-%-subtargets): Always print the non-parallelized goals.
4686         (check_p_vars, check_p_comma, check_p_subwork): Remove.
4687         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4688         check_p_numbers3, check_p_numbers4, check_p_numbers5,
4689         check_p_numbers6): New variables.
4690         (check_p_numbers): Set to sequence from 1 to 9999.
4691         (check_p_subdirs): Set to sequence from 1 to minimum of
4692         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4693         or 128.
4694         (check-%, check-parallel-%): Rewritten so that for parallelized
4695         testing each job runs all the *.exp files, with
4696         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4698 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4700         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4701         rtx to rtx_insn *.
4702         (arc_sets_cc_p): Likewise.
4703         * config/arc/arc.c (arc_print_operand): Use methods of
4704         "final_sequence" for clarity, and to enable strengthening of
4705         locals "jump" and "delay" from rtx to rtx_insn *.
4706         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4707         rtx_insn *; use method of rtx_sequence for typesafety.
4708         (arc_get_insn_variants): Use insn method of rtx_sequence for
4709         typesafety.
4710         (arc_pad_return): Likewise.
4711         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4712         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
4713         dyn_cast to rtx_sequence *, using insn method for typesafety.
4714         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4715         rtx_sequence * and use insn method when invoking get_attr_length.
4716         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4717         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
4718         rtx_sequence *, introducing a local "seq", using its insn method
4719         from typesafety and clarity.
4720         (add_sched_insns_for_speculation): Strengthen local "next" from
4721         rtx to rtx_insn *.
4722         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4723         (predicate_insn): Likewise.
4724         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4725         second param.
4726         * config/cris/cris.c (cris_notice_update_cc): Likewise.
4727         * config/epiphany/epiphany-protos.h
4728         (extern void epiphany_insert_mode_switch_use): Likewise for param
4729         "insn".
4730         (get_attr_sched_use_fpu): Likewise for param.
4731         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4732         Likewise for param "insn".
4733         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4734         param "insn" of "target_insert_mode_switch_use" callback.
4735         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4736         (frv_issues_to_branch_unit_p): Likewise.
4737         (frv_pack_insn_p): Likewise.
4738         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4739         const rtx * (i.e. mutable rtx_def * const *) to
4740         rtx_insn * const *.
4741         * config/i386/i386-protos.h (standard_sse_constant_opcode):
4742         Strengthen first param from rtx to rtx_insn *.
4743         (output_fix_trunc): Likewise.
4744         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4745         (output_fix_trunc): Likewise.
4746         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4747         local "insn".
4748         (min_insn_size): Likewise for param "insn".
4749         (get_mem_group): Likewise.
4750         (is_cmp): Likewise.
4751         (get_insn_path): Likewise.
4752         (get_insn_group): Likewise.
4753         (count_num_restricted): Likewise.
4754         (fits_dispatch_window): Likewise.
4755         (add_insn_window): Likewise.
4756         (add_to_dispatch_window): Likewise.
4757         (debug_insn_dispatch_info_file): Likewise.
4758         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4759         first param.
4760         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4761         "cmp" and local "prev".
4762         (m32c_output_compare): Likewise for param "insn".
4763         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4764         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4765         (define_predicate "large_insn_p"): Likewise.
4766         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4767         param from rtx to rtx_insn *.
4768         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4769         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4770         (m68k_sched_attr_size): Likewise.
4771         (sched_get_opxy_mem_type): Likewise for param "insn".
4772         (m68k_sched_attr_op_mem): Likewise.
4773         (sched_mem_operand_p): Likewise.
4774         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4775         * config/mep/mep.c (mep_multi_slot): Likewise.
4776         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4777         first param.
4778         (mips_sync_loop_insns): Likewise.
4779         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4780         method of "final_sequence" for typesafety.
4781         (mips_process_sync_loop): Strengthen param "insn" from rtx to
4782         rtx_insn *.
4783         (mips_output_sync_loop): Likewise.
4784         (mips_sync_loop_insns): Likewise.
4785         (mips_74k_agen_init): Likewise.
4786         (mips_sched_init): Use NULL rather than NULL_RTX when working with
4787         insns.
4788         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4789         Strengthen param "insn" from rtx to rtx_insn *.
4790         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4791         local "insn".
4792         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4793         param.
4794         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4795         "insn".  Use method of rtx_sequence for typesafety.
4796         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4797         rtx_insn *.
4798         (branch_needs_nop_p): Likewise.
4799         (use_skip_p): Likewise.
4800         (pa_insn_refs_are_delayed): Likewise.
4801         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4802         for locals "insn", "ninsn".
4803         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4804         "insn".
4805         (is_cracked_insn): Likewise.
4806         (is_branch_slot_insn): Likewise.
4807         (is_nonpipeline_insn): Likewise.
4808         (insn_terminates_group_p): Likewise.
4809         (insn_must_be_first_in_group): Likewise.
4810         (insn_must_be_last_in_group): Likewise.
4811         (force_new_group): Likewise for param "next_insn".
4812         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4813         "insn".
4814         (s390_sched_score): Likewise.
4815         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4816         (rtx sfunc_uses_reg): Likewise for sole param.
4817         * config/sh/sh.c (sh_print_operand): Use insn method of
4818         final_sequence for typesafety.
4819         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4820         Use insn method of final_sequence for typesafety.
4821         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4822         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4823         for param.
4824         (eligible_for_return_delay): Likewise.
4825         (eligible_for_sibcall_delay): Likewise.
4826         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4827         (eligible_for_return_delay): Likewise.
4828         (eligible_for_sibcall_delay): Likewise.
4829         * config/stormy16/stormy16-protos.h
4830         (xstormy16_output_cbranch_hi): Likewise for final param.
4831         (xstormy16_output_cbranch_si): Likewise.
4832         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4833         (xstormy16_output_cbranch_si): Likewise.
4834         * config/v850/v850-protos.h (notice_update_cc): Likewise.
4835         * config/v850/v850.c (notice_update_cc): Likewise.
4837         * final.c (get_attr_length_1): Strengthen param "insn" and param
4838         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4839         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4840         (get_attr_min_length): Likewise.
4841         (shorten_branches): Likewise for signature of locals "length_fun"
4842         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
4843         from a checked cast and use its methods for clarity and to enable
4844         strengthening local "inner_insn" from rtx to rtx_insn *.
4845         * genattr.c (gen_attr): When writing out the prototypes of the
4846         various generated "get_attr_" functions, strengthen the params of
4847         the non-const functions from rtx to rtx_insn *.
4848         Similarly, strengthen the params of insn_default_length,
4849         insn_min_length, insn_variable_length_p, insn_current_length.
4850         (main): Similarly, strengthen the param of num_delay_slots,
4851         internal_dfa_insn_code, insn_default_latency, bypass_p,
4852         insn_latency, min_issue_delay, print_reservation,
4853         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4854         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
4855         to hook_int_rtx_insn_unreachable.
4856         * genattrtab.c (write_attr_get): When writing out the generated
4857         "get_attr_" functions, strengthen the param "insn" from rtx to
4858         rtx_insn *, eliminating a checked cast.
4859         (make_automaton_attrs): When writing out prototypes of
4860         "internal_dfa_insn_code_", "insn_default_latency_" functions
4861         and the "internal_dfa_insn_code" and "insn_default_latency"
4862         callbacks, strengthen their params from rtx to rtx_insn *
4863         * genautomata.c (output_internal_insn_code_evaluation): When
4864         writing out code, add a checked cast from rtx to rtx_insn * when
4865         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4866         (output_dfa_insn_code_func): Strengthen param of generated
4867         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4868         (output_trans_func): Likewise for generated function
4869         "state_transition".
4870         (output_internal_insn_latency_func): When writing out generated
4871         function "internal_insn_latency", rename params from "insn" and
4872         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
4873         locals "insn" and "insn2" as rtx_insn * with checked casts once
4874         we've proven that we're not dealing with const0_rtx.
4875         (output_insn_latency_func):  Strengthen param of generated
4876         function "insn_latency" from rtx to rtx_insn *.
4877         (output_print_reservation_func): Likewise for generated function
4878         "print_reservation".
4879         (output_insn_has_dfa_reservation_p): Likewise for generated
4880         function "insn_has_dfa_reservation_p".
4881         * hooks.c (hook_int_rtx_unreachable): Rename to...
4882         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4883         from rtx to rtx_insn *.
4884         * hooks.h (hook_int_rtx_unreachable): Likewise.
4885         (extern int hook_int_rtx_insn_unreachable): Likewise.
4886         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4887         (get_attr_min_length): Likewise.
4888         * recog.c (get_enabled_alternatives): Likewise.
4889         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4890         * reorg.c (find_end_label): Introduce local rtx "pat" and
4891         strengthen local "insn" from rtx to rtx_insn *.
4892         (redundant_insn): Use insn method of "seq" rather than element for
4893         typesafety; strengthen local "control" from rtx to rtx_insn *.
4894         * resource.c (mark_referenced_resources): Add checked cast to
4895         rtx_insn * within INSN/JUMP_INSN case.
4896         (mark_set_resources): Likewise.
4897         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4898         rtx to rtx_insn *.
4900 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4902         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4903         param "label" from rtx to rtx_insn *.
4904         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4905         and local "op".
4906         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4907         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4908         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4909         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4910         * final.c (default_label_align_after_barrier_max_skip): Strengthen
4911         param from rtx to rtx_insn *.
4912         (default_loop_align_max_skip): Likewise.
4913         (default_label_align_max_skip): Likewise.
4914         (default_jump_align_max_skip): Likewise.
4915         * target.def (label_align_after_barrier_max_skip): Likewise.
4916         (loop_align_max_skip): Likewise.
4917         (label_align_max_skip): Likewise.
4918         (jump_align_max_skip): Likewise.
4919         * targhooks.h (default_label_align_after_barrier_max_skip):
4920         Likewise.
4921         (default_loop_align_max_skip): Likewise.
4922         (default_label_align_max_skip): Likewise.
4923         (default_jump_align_max_skip): Likewise.
4925 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4927         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4928         from const_rtx to const rtx_insn *.  Update union members from rtx
4929         to rtx_insn *.
4930         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4931         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4932         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4933         strengthen both params from const_rtx to const rtx_insn *.
4934         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4935         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4936         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4937         rtx_insn *.
4938         * target.def (can_follow_jump): Strengthen both params from
4939         const_rtx to const rtx_insn *, and update default implementation
4940         from hook_bool_const_rtx_const_rtx_true to
4941         hook_bool_const_rtx_insn_const_rtx_insn_true.
4943 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4945         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4946         "insn" from rtx to rtx_insn *.
4947         * sched-int.h (deps_start_bb): Likewise for 2nd param.
4949 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4950             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4951             Anna Tikhonova  <anna.tikhonova@intel.com>
4952             Ilya Tocar  <ilya.tocar@intel.com>
4953             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4954             Ilya Verbin  <ilya.verbin@intel.com>
4955             Kirill Yukhin  <kirill.yukhin@intel.com>
4956             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4958         * config/i386/sse.md
4959         (define_insn "vcvtph2ps<mask_name>"): Add masking.
4960         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4961         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4962         (define_expand "vcvtps2ph_mask"): New.
4963         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4964         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4965         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4967 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4968             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4969             Anna Tikhonova  <anna.tikhonova@intel.com>
4970             Ilya Tocar  <ilya.tocar@intel.com>
4971             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4972             Ilya Verbin  <ilya.verbin@intel.com>
4973             Kirill Yukhin  <kirill.yukhin@intel.com>
4974             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4976         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4977         New.
4978         (define_mode_iterator VI24_AVX512BW_1): Ditto.
4979         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4980         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4981         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4982         also for TARGET_AVX512VL.
4983         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4985 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
4987         * doc/install.texi (Options specification): add
4988         --disable-libsanitizer item.
4990 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
4991             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4993         PR target/61407
4994         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4995         and above.
4996         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4997         kernel version check to avoid incrementing it after every major OS X
4998         release.
4999         (darwin_default_min_version): Avoid static memory buffer.
5001 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
5003         * tree.c (need_assembler_name_p): Store C++ type mangling only
5004         for aggregates.
5006 2014-09-13  Marek Polacek  <polacek@redhat.com>
5008         * tree.c (protected_set_expr_location): Don't check whether T is
5009         non-null here.
5011 2014-09-12  DJ Delorie  <dj@redhat.com>
5013         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5014         (extend_and_shift1_hipsi2): Likewise.
5015         (extend_and_shift2_hipsi2): Likewise.
5017 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
5019         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5020         with NULL when dealing with an insn.
5021         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5022         from rtx to rtx_insn *.
5023         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5024         const_rtx to const rtx_insn *.
5025         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5027 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
5029         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5030         assert.
5032 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
5034         * target.def (libgcc_floating_mode_supported_p): New hook.
5035         * targhooks.c (default_libgcc_floating_mode_supported_p): New
5036         function.
5037         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5038         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5039         (LIBGCC2_HAS_TF_MODE): Remove.
5040         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5041         * doc/tm.texi: Regenerate.
5042         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5043         machine mode.
5044         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5045         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5046         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5047         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5048         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5049         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5050         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5051         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5052         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5053         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5054         function.
5055         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5056         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5057         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5058         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5059         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5060         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5061         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5062         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5063         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5064         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5065         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5066         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5067         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5068         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5069         Remove.
5070         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5071         New macro.
5072         (ia64_libgcc_floating_mode_supported_p): New function.
5073         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5074         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5075         (IA64_NO_LIBGCC_TFMODE): Define.
5076         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5077         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5078         macro.
5079         (pdp11_scalar_mode_supported_p): New function.
5080         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5081         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5083 2014-09-12  Richard Biener  <rguenther@suse.de>
5085         PR middle-end/63237
5086         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5088 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
5090         * tree.c (integer_each_onep): New function.
5091         * tree.h (integer_each_onep): Declare it.
5092         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5093         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5094         (X & 1) == 0 for vector and complex.
5096 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5098         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5099         for A57.
5100         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
5101         cost to spilling from integer to FP registers.
5103 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5105         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5106         move handling.
5107         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5108         are now handled correctly.
5110 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5112         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5113         handling of CALLER_SAVE_REGS and POINTER_REGS.
5115 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5117         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5118         the number of hard registers.
5120 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5121             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5122             Anna Tikhonova  <anna.tikhonova@intel.com>
5123             Ilya Tocar  <ilya.tocar@intel.com>
5124             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5125             Ilya Verbin  <ilya.verbin@intel.com>
5126             Kirill Yukhin  <kirill.yukhin@intel.com>
5127             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5129         * config/i386/sse.md
5130         (define_mode_iterator VI48_AVX512VL): New.
5131         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5132         "avx512f_vternlog<mode>_maskz" and update mode iterator.
5133         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5134         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5135         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5136         "avx512f_vternlog<mode>_mask" and update mode iterator.
5137         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5138         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5139         iterator.
5140         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5141         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5142         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5143         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5144         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5145         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5147 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5148             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5149             Anna Tikhonova  <anna.tikhonova@intel.com>
5150             Ilya Tocar  <ilya.tocar@intel.com>
5151             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5152             Ilya Verbin  <ilya.verbin@intel.com>
5153             Kirill Yukhin  <kirill.yukhin@intel.com>
5154             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5156         * config/i386/sse.md (VI128_256): Delete.
5157         (define_mode_iterator VI124_256): New.
5158         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5159         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5160         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5161         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5162         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5163         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5164         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5165         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5166         iterator.
5167         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5168         in presence of AVX-512.
5170 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5171             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5172             Anna Tikhonova  <anna.tikhonova@intel.com>
5173             Ilya Tocar  <ilya.tocar@intel.com>
5174             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5175             Ilya Verbin  <ilya.verbin@intel.com>
5176             Kirill Yukhin  <kirill.yukhin@intel.com>
5177             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5179         * config/i386/sse.md
5180         (define_expand "<avx512>_gathersi<mode>"): Rename from
5181         "avx512f_gathersi<mode>".
5182         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5183         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5184         (define_expand "<avx512>_gatherdi<mode>"): Rename from
5185         "avx512f_gatherdi<mode>".
5186         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5187         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5188         wide versions.
5189         (define_expand "<avx512>_scattersi<mode>"): Rename from
5190         "avx512f_scattersi<mode>".
5191         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5192         (define_expand "<avx512>_scatterdi<mode>"): Rename from
5193         "avx512f_scatterdi<mode>".
5194         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5196 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
5198         * ira.h (ira_finish_once): Delete.
5199         * ira-int.h (target_ira_int::~target_ira_int): Declare.
5200         (target_ira_int::free_ira_costs): Likewise.
5201         (target_ira_int::free_register_move_costs): Likewise.
5202         (ira_finish_costs_once): Delete.
5203         * ira.c (free_register_move_costs): Replace with...
5204         (target_ira_int::free_register_move_costs): ...this new function.
5205         (target_ira_int::~target_ira_int): Define.
5206         (ira_init): Call free_register_move_costs as a member function rather
5207         than a global function.
5208         (ira_finish_once): Delete.
5209         * ira-costs.c (free_ira_costs): Replace with...
5210         (target_ira_int::free_ira_costs): ...this new function.
5211         (ira_init_costs): Call free_ira_costs as a member function rather
5212         than a global function.
5213         (ira_finish_costs_once): Delete.
5214         * target-globals.c (target_globals::~target_globals): Call the
5215         target_ira_int destructor.
5216         * toplev.c: Include lra.h.
5217         (finalize): Call lra_finish_once rather than ira_finish_once.
5219 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
5221         * common.opt (flto-odr-type-merging): New flag.
5222         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5223         (types_same_for_odr): Likewise.
5224         (odr_subtypes_equivalent_p): Likewise.
5225         (add_type_duplicate): Do not walk type variants.
5226         (register_odr_type): New function.
5227         * ipa-utils.h (register_odr_type): Declare.
5228         (odr_type_p): New function.
5229         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5230         TYPE_DECLs
5231         * doc/invoke.texi (-flto-odr-type-merging): Document.
5232         * tree.c (need_assembler_name_p): Compute ODR names when asked
5233         for it.
5234         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5236 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5238         PR target/63228
5239         * config/i386/i386.c (ix86_option_override_internal): Also turn
5240         off OPTION_MASK_ABI_X32 for -m16.
5242 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5244         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5245         GPR instead of P.
5247 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
5249         PR target/58757
5250         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5251         Directly forward to __*_DENORM_MIN__.
5253 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
5255         * rtl.h (LABEL_REF_LABEL): New macro.
5257         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5258         of XEXP (, 0), where we know that we have a LABEL_REF.
5259         * cfgbuild.c (make_edges): Likewise.
5260         (purge_dead_tablejump_edges): Likewise.
5261         * cfgexpand.c (convert_debug_memory_address): Likewise.
5262         * cfgrtl.c (patch_jump_insn): Likewise.
5263         * combine.c (distribute_notes): Likewise.
5264         * cse.c (hash_rtx_cb): Likewise.
5265         (exp_equiv_p): Likewise.
5266         (fold_rtx): Likewise.
5267         (check_for_label_ref): Likewise.
5268         * cselib.c (rtx_equal_for_cselib_1): Likewise.
5269         (cselib_hash_rtx): Likewise.
5270         * emit-rtl.c (mark_label_nuses): Likewise.
5271         * explow.c (convert_memory_address_addr_space): Likewise.
5272         * final.c (output_asm_label): Likewise.
5273         (output_addr_const): Likewise.
5274         * gcse.c (add_label_notes): Likewise.
5275         * genconfig.c (walk_insn_part): Likewise.
5276         * genrecog.c (validate_pattern): Likewise.
5277         * ifcvt.c (cond_exec_get_condition): Likewise.
5278         (noce_emit_store_flag): Likewise.
5279         (noce_get_alt_condition): Likewise.
5280         (noce_get_condition): Likewise.
5281         * jump.c (maybe_propagate_label_ref): Likewise.
5282         (mark_jump_label_1): Likewise.
5283         (redirect_exp_1): Likewise.
5284         (rtx_renumbered_equal_p): Likewise.
5285         * lra-constraints.c (operands_match_p): Likewise.
5286         * reload.c (operands_match_p): Likewise.
5287         (find_reloads): Likewise.
5288         * reload1.c (set_label_offsets): Likewise.
5289         * reorg.c (get_branch_condition): Likewise.
5290         * rtl.c (rtx_equal_p_cb): Likewise.
5291         (rtx_equal_p): Likewise.
5292         * rtlanal.c (reg_mentioned_p): Likewise.
5293         (rtx_referenced_p): Likewise.
5294         (get_condition): Likewise.
5295         * sched-vis.c (print_value): Likewise.
5296         * varasm.c (const_hash_1): Likewise.
5297         (compare_constant): Likewise.
5298         (const_rtx_hash_1): Likewise.
5299         (output_constant_pool_1): Likewise.
5301 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5303         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5304         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5305         instead of minus.
5306         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5307         cr6_test_for_lt_reverse): Ditto.
5309 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
5311         PR c++/61489
5312         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5314 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5316         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5317         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5318         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5319         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5320         Delete.
5322         (aarch64_fold_builtin): Remove all reinterpret cases.
5324         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5326         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5328         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5329         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5330         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5331         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5332         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5333         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5334         aarch64_reinterpretv2df<mode>): Delete.
5336         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5338         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5339         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5340         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5341         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5342         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5343         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5344         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5345         vreinterpret_u32_f64): Use cast.
5347         * config/aarch64/iterators.md (VD_RE): Delete.
5349 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5351         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5352         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5353         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5354         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5355         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5356         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5357         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5358         Replace inline assembler with __aarch64_vset_lane_any.
5360 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
5362         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5363         types.
5364         (vmull_high_lane_s32): Likewise.
5365         (vmull_high_lane_u16): Likewise.
5366         (vmull_high_lane_u32): Likewise.
5368 2014-09-11  Jason Merrill  <jason@redhat.com>
5370         PR c++/58678
5371         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5373 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
5375         PR target/63223
5376         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5377         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
5378         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5380 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5381             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5382             Anna Tikhonova  <anna.tikhonova@intel.com>
5383             Ilya Tocar  <ilya.tocar@intel.com>
5384             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5385             Ilya Verbin  <ilya.verbin@intel.com>
5386             Kirill Yukhin  <kirill.yukhin@intel.com>
5387             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5389         * config/i386/sse.md
5390         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5391         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5392         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5393         New.
5394         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5395         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5396         iterator.
5397         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5398         New.
5399         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5400         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5401         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5402         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5403         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5404         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5405         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5406         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5407         iterator.
5408         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5409         New.
5410         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5411         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5412         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5414 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5416         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5417         to access removed nodes.
5419 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5421         PR tree-optimization/63186
5422         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5423         (mark_nonssa_use): Likewise.
5424         (verify_non_ssa_vars): Verify all header blocks for label
5425         definitions.
5427 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5428             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5429             Anna Tikhonova  <anna.tikhonova@intel.com>
5430             Ilya Tocar  <ilya.tocar@intel.com>
5431             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5432             Ilya Verbin  <ilya.verbin@intel.com>
5433             Kirill Yukhin  <kirill.yukhin@intel.com>
5434             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5436         * config/i386/sse.md
5437         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5438         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5439         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5440         "<avx2_avx512f>_permvar<mode><mask_name>".
5441         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5442         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5443         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5444         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5445         Ditto.
5446         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5447         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5448         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5449         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5451 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5453         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5454         V2DF, V4SF, DF, and DI modes.
5455         (vsx_fmav2df2): Likewise.
5456         (vsx_float_fix_<mode>2): Likewise.
5457         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5459 2014-09-10  Xinliang David Li  <davidxl@google.com>
5461         PR target/63209
5462         * config/arm/arm.md (movcond_addsi): Handle case where source
5463         and target operands are the same.
5465 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5467         * final.c (this_is_asm_operands): Strengthen this variable from
5468         rtx to const rtx_insn *.
5469         * output.h (this_is_asm_operands): Likewise.
5470         * rtl-error.c (location_for_asm): Strengthen param "insn" from
5471         const_rtx to const rtx_insn *.
5472         (diagnostic_for_asm): Likewise.
5473         * rtl-error.h (error_for_asm): Likewise.
5474         (warning_for_asm): Likewise.
5476 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5478         * genextract.c (print_header): When writing out insn_extract to
5479         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5480         * recog.h (insn_extract): Strengthen the param from rtx to
5481         rtx_insn *.
5483 2014-09-10  Mike Stump  <mikestump@comcast.net>
5485         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5486         8.6.1.
5488 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5490         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5491         (analyze): Do not set analyze flag if expand_thunk returns false;.
5492         (create_wrapper): Likewise.
5493         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5495 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5497         PR ipa/61654
5498         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5499         new decl properly.  Analyze the new thunk if it is expanded.
5501 2014-09-10  Andreas Schwab  <schwab@suse.de>
5503         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5504         [USED_FOR_TARGET]: Define.
5506 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
5508         * config/mips/mips.c (mips_secondary_reload_class): Handle
5509         regno < 0 case.
5511 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
5513         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5514         assignment.
5516 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
5518         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5519         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5520         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5521         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5522         flag_delete_null_pointer_checks for them.
5523         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5524         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5525         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5526         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5527         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5528         stmt's iterator.
5529         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5530         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5531         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5532         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5533         * doc/invoke.texi (-fsanitize=nonnull-attribute,
5534         -fsanitize=returns-nonnull-attribute): Document.
5536         * ubsan.h (struct ubsan_mismatch_data): Removed.
5537         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5538         * ubsan.c (ubsan_source_location): For unknown locations,
5539         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5540         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5541         Allow more than one location and arbitrary extra arguments passed
5542         in ... instead of through MISMATCH pointer.
5543         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5544         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5545         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5546         callers.
5548 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5549             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5550             Anna Tikhonova  <anna.tikhonova@intel.com>
5551             Ilya Tocar  <ilya.tocar@intel.com>
5552             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5553             Ilya Verbin  <ilya.verbin@intel.com>
5554             Kirill Yukhin  <kirill.yukhin@intel.com>
5555             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5557         * config/i386/sse.md
5558         (define_mode_iterator VI48F): New.
5559         (define_insn "<avx512>_compress<mode>_mask"): Rename from
5560         "avx512f_compress<mode>_mask" and update mode iterator.
5561         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5562         "avx512f_compressstore<mode>_mask" and update mode iterator.
5563         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5564         "avx512f_expand<mode>_maskz" and update mode iterator.
5565         (define_insn "<avx512>_expand<mode>_mask"): Rename from
5566         "avx512f_expand<mode>_mask" and update mode iterator.
5568 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5569             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5570             Anna Tikhonova  <anna.tikhonova@intel.com>
5571             Ilya Tocar  <ilya.tocar@intel.com>
5572             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5573             Ilya Verbin  <ilya.verbin@intel.com>
5574             Kirill Yukhin  <kirill.yukhin@intel.com>
5575             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5577         * config/i386/i386.c
5578         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5579         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5580         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5581         avx512dq_rangepv4sf_mask.
5582         * config/i386/sse.md
5583         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5584         UNSPEC_RANGE.
5585         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5586         (define_insn "reduces<mode>"): Ditto.
5587         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5588         Ditto.
5589         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5590         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5591         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5593 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5594             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5595             Anna Tikhonova  <anna.tikhonova@intel.com>
5596             Ilya Tocar  <ilya.tocar@intel.com>
5597             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5598             Ilya Verbin  <ilya.verbin@intel.com>
5599             Kirill Yukhin  <kirill.yukhin@intel.com>
5600             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5602         * config/i386/i386.c
5603         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5604         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5605         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5606         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5607         avx512vl_getmantv2df_mask.
5608         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5609         avx512f_vgetmantv4sf_round.
5610         * config/i386/sse.md
5611         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5612         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5613         mode iterator.
5614         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5615         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5616         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5617         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5618         iterator..
5619         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5620         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5621         update mode iterator.
5622         (define_expand
5623         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5624         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5625         mode iterator.
5626         (define_insn
5627         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5628         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5629         update mode iterator.
5630         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5631         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5632         iterator..
5633         (define_insn
5634         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5635         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5636         mode iterator..
5637         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5638         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5639         update mode iterator.
5640         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5641         "avx512f_getmant<mode><round_saeonly_name>".
5643 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5645         PR ipa/63166
5646         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5648 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5649             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5650             Anna Tikhonova  <anna.tikhonova@intel.com>
5651             Ilya Tocar  <ilya.tocar@intel.com>
5652             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5653             Ilya Verbin  <ilya.verbin@intel.com>
5654             Kirill Yukhin  <kirill.yukhin@intel.com>
5655             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5657         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5658         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5659         (define_mode_iterator FMAMODE_AVX512): New.
5660         (define_mode_iterator FMAMODE): Remove conditions.
5661         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5662         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5663         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5664         mode iterator.
5665         (define_mode_iterator FMAMODE_NOVF512): Remove.
5666         (define_insn "*fma_fmadd_<mode>"): Rename from
5667         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5668         FMAMODE mode iterator.
5669         (define_mode_iterator VF_SF_AVX512VL): New.
5670         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5671         Use VF_SF_AVX512VL mode iterator.
5672         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5673         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5674         iterator.
5675         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5676         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5677         iterator.
5678         (define_insn "*fma_fmsub_<mode>"): Rename from
5679         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5680         FMAMODE mode iterator.
5681         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5682         Use VF_SF_AVX512VL mode iterator.
5683         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5684         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5685         iterator.
5686         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5687         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5688         iterator.
5689         (define_insn "*fma_fnmadd_<mode>"): Rename from
5690         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5691         use FMAMODE mode iterator.
5692         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5693         Use VF_SF_AVX512VL mode iterator.
5694         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5695         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5696         iterator.
5697         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5698         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5699         iterator.
5700         (define_insn "*fma_fnmsub_<mode>"): Rename from
5701         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5702         FMAMODE mode iterator.
5703         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5704         Use VF_SF_AVX512VL mode iterator.
5705         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5706         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5707         iterator.
5708         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5709         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5710         iterator.
5711         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5712         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5713         use VF_AVX512VL mode iterator.
5714         (define_insn "*fma_fmaddsub_<mode>"): Rename from
5715         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5716         remove subst usage.
5717         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5718         Use VF_SF_AVX512VL mode iterator.
5719         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5720         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5721         iterator.
5722         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5723         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5724         iterator.
5725         (define_insn "*fma_fmsubadd_<mode>"): Rename from
5726         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5727         remove usage of subst.
5728         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5729         Use VF_SF_AVX512VL mode iterator.
5730         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5731         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5732         iterator.
5733         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5734         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5735         iterator.
5737 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
5739         Revert r213751:
5740         * calls.c (precompute_arguments): Check
5741          promoted_for_signed_and_unsigned_p and set the promoted mode.
5742         (promoted_for_signed_and_unsigned_p): New function.
5743         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5744         and set the promoted mode.
5745         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5746         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5747         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5749 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5751         * opth-gen.awk: Generate mapping from cpp message reasons to the
5752         options that enable them.
5753         * doc/options.texi (CppReason): Document.
5755 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5757         * doc/invoke.texi (Wnormalized=): Update.
5759 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
5761         PR target/63195
5762         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5763         operands.  Split off the constant operand alternative to ...
5764         (*bool<mode>3_imm): New.
5766 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5768         * rtl.h (single_set_2): Strengthen first param from const_rtx to
5769         const rtx_insn *, and move prototype to above...
5770         (single_set): ...this.  Convert this from a macro to an inline
5771         function, enforcing the requirement that the param is a const
5772         rtx_insn *.
5773         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5775         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5776         Strengthen both params from rtx to rtx_insn *.
5777         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5778         Likewise; introduce locals "producer_set", "consumer_set", using
5779         them in place of "producer" and "consumer" when dealing with SET
5780         rather than insn.
5781         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5782         when invoking single_set in region guarded by INSN_P.
5783         (avr_out_bitop): Likewise.
5784         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5785         region guarded by GET_CODE check, using methods to strengthen
5786         local "this_insn" from rtx to rtx_insn *, and for clarity.
5787         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5788         Strengthen local "insn" from rtx to rtx_insn *.
5789         (define_insn_and_split "xload<mode>_A"): Likewise.
5790         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5791         "insn".
5792         (find_load): Likewise for return type.
5793         (workaround_speculation): Likewise for both locals named
5794         "load_insn".
5795         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5796         local "cc0_user".
5797         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5798         for local "prev".
5799         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5800         param 2.
5801         * config/h8300/h8300.c (notice_update_cc): Likewise.
5802         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5803         "insn" and "dep_insn".
5804         (exact_store_load_dependency): Likewise for both params.
5805         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5806         since this now clashes with inline function.  Instead, delay
5807         calling single_set until the point where its needed, and then
5808         assign the result to "compare_set" and rework the conditional that
5809         follows.
5810         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5811         local "last" from rtx to rtx_insn *.
5812         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5813         second param.
5814         (mips_store_data_bypass_p): Likewise for both params.
5815         * config/mips/mips.c (mips_load_store_insns): Likewise for second
5816         param.
5817         (mips_store_data_bypass_p): Likewise for both params.
5818         (mips_orphaned_high_part_p): Likewise for param "insn".
5819         * config/mn10300/mn10300.c (extract_bundle): Likewise.
5820         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5821         Introduce local rtx "insn2_pat".
5822         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5823         "ninsn".
5824         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5825         Introduce local rtx "set", using it in place of "insn" for the
5826         result of single_set.  This appears to fix a bug, since the call
5827         to find_regno_note on a SET does nothing.
5828         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5829         params from rtx to rtx_insn *.
5830         (set_to_load_agen): Likewise.
5831         * config/s390/s390.c (s390_label_align): Likewise for local
5832         "prev_insn".  Introduce new rtx locals "set" and "src", using
5833         them in place of "prev_insn" for the results of single_set
5834         and SET_SRC respectively.
5835         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5836         Introduce new rtx local "set" using in place of "jump" for the
5837         result of single_set.  Use SET_SRC (set) rather than plain
5838         XEXP (set, 1).
5839         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5840         rtx to rtx_insn *.
5841         (noncall_uses_reg): Likewise.
5842         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5843         guarded by GET_CODE check, using its methods for clarity, and to
5844         enable strengthening local "this_insn" from rtx to rtx_insn *.
5845         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5846         "insn" from rtx to rtx_insn *.
5847         (define_expand "umulhisi3"): Likewise.
5848         (define_expand "smulsi3_highpart"): Likewise.
5849         (define_expand "umulsi3_highpart"): Likewise.
5850         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5851         local "after".  Replace GET_CODE check with a dyn_cast,
5852         introducing new local rtx_sequence * "seq", using insn method for
5853         typesafety.
5855         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5856         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
5857         place of "insn" once we're dealing with patterns rather than the
5858         input insn.
5859         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5860         (scan_trace): Likewise for local "elt", updating lookups within
5861         sequence to use insn method rather than element method.
5862         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5863         to rtx_insn *.
5864         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5865         * ifcvt.c (noce_try_abs): Likewise for local "insn".
5866         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5867         invoking single_set.
5868         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5869         "insn" from rtx to rtx_insn *.
5870         (skip_usage_debug_insns): Likewise for return type, adding a
5871         checked cast.
5872         (check_secondary_memory_needed_p): Likewise for local "insn".
5873         (inherit_reload_reg): Likewise.
5874         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5875         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5876         checked casts.
5877         (store_data_bypass_p): Likewise for both params.
5878         (if_test_bypass_p): Likewise.
5879         * recog.h (store_data_bypass_p): Likewise for both params.
5880         (if_test_bypass_p): Likewise.
5881         * reload.c (find_equiv_reg): Likewise for local "where".
5882         * reorg.c (delete_jump): Likewise for param "insn".
5883         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5884         to const rtx_insn *.
5885         * store-motion.c (replace_store_insn): Likewise for param "del".
5886         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5887         and use its methods for clarity, and to strengthen local "del"
5888         from rtx to rtx_insn *.
5889         (build_store_vectors): Use insn method of "st" when calling
5890         replace_store_insn for typesafety and clarity.
5892 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5894         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5895         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5896         on how to make it legal in future.
5898 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5900         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5901         to rtx_insn *.
5902         (restinsn): Likewise.
5903         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5904         Likewise for param.
5905         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5906         Likewise.
5907         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5908         first param.
5909         (arc_hazard): Likewise for both params.
5910         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5911         checked casts to rtx_sequence * and uses of the insn method for
5912         type-safety.
5913         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5914         (arc_adjust_insn_length): Likewise for param "insn".
5915         (struct insn_length_parameters_s): Likewise for first param of
5916         "get_variants" callback field.
5917         (arc_get_insn_variants): Likewise for first param and local
5918         "inner".  Replace a check of GET_CODE with a dyn_cast to
5919         rtx_sequence *, using methods for type-safety and clarity.
5920         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5921         rtx_sequence * and uses of the insn method for type-safety when
5922         invoking arc_adjust_insn_length.
5923         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5924         for param.
5925         (arm_address_offset_is_imm): Likewise.
5926         (struct tune_params): Likewise for params 1 and 3 of the
5927         "sched_adjust_cost" callback field.
5928         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5929         params 1 and 3 ("insn" and "dep").
5930         (xscale_sched_adjust_cost): Likewise.
5931         (fa726te_sched_adjust_cost): Likewise.
5932         (cortexa7_older_only): Likewise for param "insn".
5933         (cortexa7_younger): Likewise.
5934         (arm_attr_length_move_neon): Likewise.
5935         (arm_address_offset_is_imm): Likewise.
5936         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5937         * config/avr/avr.c (avr_notice_update_cc): Likewise.
5938         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5939         (workaround_speculation): Likewise for local "last_condjump".
5940         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5941         (shadow_or_blockage_p): Likewise.
5942         (get_unit_reqs): Likewise.
5943         (get_unit_operand_masks): Likewise.
5944         (c6x_registers_update): Likewise.
5945         (returning_call_p): Likewise.
5946         (can_use_callp): Likewise.
5947         (convert_to_callp): Likewise.
5948         (find_last_same_clock): Likwise for local "t".
5949         (reorg_split_calls): Likewise for local "shadow".
5950         (hwloop_pattern_reg): Likewise for param "insn".
5951         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5952         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5953         (frv_extract_membar): Likewise.
5954         (frv_optimize_membar_local): Strengthen param "last_membar" from
5955         rtx * to rtx_insn **.
5956         (frv_optimize_membar_global): Strengthen param "membar" from rtx
5957         to rtx_insn *.
5958         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5959         to rtx_insn **.
5960         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5961         both params from rtx to rtx_insn *.
5962         (ia64_ld_address_bypass_p): Likewise.
5963         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5964         "insn".
5965         (ia64_safe_type): Likewise.
5966         (group_barrier_needed): Likewise.
5967         (safe_group_barrier_needed): Likewise.
5968         (ia64_single_set): Likewise.
5969         (is_load_p): Likewise.
5970         (record_memory_reference): Likewise.
5971         (get_mode_no_for_insn): Likewise.
5972         (important_for_bundling_p): Likewise.
5973         (unknown_for_bundling_p): Likewise.
5974         (ia64_st_address_bypass_p): Likewise for both params.
5975         (ia64_ld_address_bypass_p): Likewise.
5976         (expand_vselect): Introduce new local rtx_insn * "insn", using it
5977         in place of rtx "x" after the emit_insn call.
5978         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5979         Strengthen param from rtx to rtx_insn *.
5980         (ix86_agi_dependent): Likewise for both params.
5981         (ix86_attr_length_immediate_default): Likewise for param 1.
5982         (ix86_attr_length_address_default): Likewise for param.
5983         (ix86_attr_length_vex_default): Likewise for param 1.
5984         * config/i386/i386.c (ix86_attr_length_immediate_default):
5985         Likewise for param "insn".
5986         (ix86_attr_length_address_default): Likewise.
5987         (ix86_attr_length_vex_default): Likewise.
5988         (ix86_agi_dependent): Likewise for both params.
5989         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5990         (vselect_insn): Likewise for this variable.
5991         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5992         for param 1.
5993         (m68k_sched_attr_opy_type): Likewise.
5994         * config/m68k/m68k.c (sched_get_operand): Likewise.
5995         (sched_attr_op_type): Likewise.
5996         (m68k_sched_attr_opx_type): Likewise.
5997         (m68k_sched_attr_opy_type): Likewise.
5998         (sched_get_reg_operand): Likewise.
5999         (sched_get_mem_operand): Likewise.
6000         (m68k_sched_address_bypass_p): Likewise for both params.
6001         (sched_get_indexed_address_scale): Likewise.
6002         (m68k_sched_indexed_address_bypass_p): Likewise.
6003         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6004         (m68k_sched_indexed_address_bypass_p): Likewise.
6005         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6006         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6007         removing another.
6008         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6009         params from rtx to rtx_insn *.
6010         (mips_fmadd_bypass): Likewise.
6011         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6012         (mips_linked_madd_p): Likewise.
6013         (mips_macc_chains_last_hilo): Likewise for this variable.
6014         (mips_macc_chains_record): Likewise for param.
6015         (vr4130_last_insn): Likewise for this variable.
6016         (vr4130_swap_insns_p): Likewise for both params.
6017         (mips_ls2_variable_issue): Likewise for param.
6018         (mips_need_noat_wrapper_p): Likewise for param "insn".
6019         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6020         in place of "x" after the emit_insn.
6021         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6022         params from rtx to rtx_insn *.
6023         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6024         (pa_combine_instructions): Introduce local "par" for result of
6025         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6026         to make_insn_raw.
6027         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6028         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6029         (rl78_alloc_physical_registers_op1): Likewise.
6030         (rl78_alloc_physical_registers_op2): Likewise.
6031         (rl78_alloc_physical_registers_ro1): Likewise.
6032         (rl78_alloc_physical_registers_cmp): Likewise.
6033         (rl78_alloc_physical_registers_umul): Likewise.
6034         (rl78_alloc_address_registers_macax): Likewise.
6035         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6036         * config/s390/predicates.md (execute_operation): Likewise for
6037         local "insn".
6038         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6039         params.
6040         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6041         (addr_generation_dependency_p): Likewise for param "insn".
6042         (s390_agen_dep_p): Likewise for both params.
6043         (s390_fpload_toreg): Likewise for param "insn".
6044         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6045         * config/sh/sh.c (sh_loop_align): Likewise for param and local
6046         "next".
6047         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6048         * config/sh/sh_treg_combine.cc
6049         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6050         and local "i".
6051         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6052         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6053         "and_insn", "load", "shift".
6054         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6055         "insn".
6056         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6057         for XEXP (note, 0) of the REG_CC_SETTER note.
6058         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6059         rtx_insn *, eliminating a checked cast made redundant by this.
6060         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6061         to rtx_insn *.
6062         * genattr.c (main): When writing out the prototype to
6063         const_num_delay_slots, strengthen the param from rtx to
6064         rtx_insn *.
6065         * genattrtab.c (write_const_num_delay_slots): Likewise when
6066         writing out the implementation of const_num_delay_slots.
6067         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6068         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6069         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6070         favor of new rtx locals "src" and "set" and new local rtx_insn *
6071         "insn" and "seq".
6072         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6073         to rtx_insn *.
6074         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6075         locals "cond", "if_then_else", "set" and new rtx_insn * locals
6076         "insn" and "seq".
6077         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6078         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
6079         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
6080         the top-level scope, replacing with new more tightly-scoped rtx
6081         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6082         "new_insn", "copy_of_insn_b", and make local rtx "set" more
6083         tightly-scoped.
6084         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6085         rtx_insn *.
6086         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6087         "move_insn".
6088         (ira_setup_alts): Likewise for param "insn".
6089         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6090         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6091         and an rtx_insn *.
6092         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6093         new more-tightly scoped rtx locals "add3_insn", "insn",
6094         "add2_insn" and rtx_insn * "move_insn".
6095         * postreload-gcse.c (eliminate_partially_redundant_load): Add
6096         checked cast on result of gen_move_insn when invoking
6097         extract_insn.
6098         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6099         rtx_insn *.
6100         (verify_changes): Add a checked cast on "object" when invoking
6101         insn_invalid_p.
6102         (extract_insn_cached): Strengthen param "insn" from rtx to
6103         rtx_insn *.
6104         (extract_constrain_insn_cached): Likewise.
6105         (extract_insn): Likewise.
6106         * recog.h (insn_invalid_p): Likewise for param 1.
6107         (recog_memoized): Likewise for param.
6108         (extract_insn): Likewise.
6109         (extract_constrain_insn_cached): Likewise.
6110         (extract_insn_cached): Likewise.
6111         * reload.c (can_reload_into): Likewise for local "test_insn".
6112         * reload.h (cleanup_subreg_operands): Likewise for param.
6113         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6114         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6115         result of emit_insn.  Remove a checked cast made redundant by this
6116         change.
6117         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6118         rtx to rtx_insn *.
6119         * sel-sched.c (get_reg_class): Likewise.
6121 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6122             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6124         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6125         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6126         Define.
6127         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6129 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6131         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6132         const rtx_insn *, and from rtx to rtx_insn * for the other
6133         overloaded variant.
6134         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6135         INSN_LOCATION, since we know INSN_P holds.
6136         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6137         (insn_file): Likewise.
6138         (insn_scope): Likewise.
6139         (insn_location): Likewise.
6141         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6142         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6143         for the result of gen_load_const_gp.
6144         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6145         param from rtx to rtx_insn *.
6146         * config/rs6000/rs6000.c (output_call): Likewise.
6147         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6148         introducing a checked cast to rtx_sequence * and use of the insn
6149         method.
6150         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6151         from rtx to rtx_insn *.
6152         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6153         (insn_line): Likewise.
6154         (insn_file): Likewise.
6155         (insn_location): Likewise.
6156         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6157         from rtx to rtx_insn *.
6158         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6159         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6160         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6161         via a checked cast.
6162         * reorg.c (relax_delay_slots): Strengthen locals named "after"
6163         from rtx to rtx_insn *; use methods of "pat" for type-safety.
6165 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6167         * combine.c (try_combine): Eliminate checked cast on result of
6168         gen_rtx_INSN.
6169         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6170         autogenerated one by strengthening the return type and params 2 and 3
6171         from rtx to rtx_insn *, and by naming the params.
6172         * gengenrtl.c (special_rtx): Add INSN to those that are
6173         special-cased.
6174         * rtl.h (gen_rtx_INSN): New prototype.
6176 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6178         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6179         than NULL_RTX.
6180         (no_equiv): Likewise.
6181         (update_equiv_regs): Likewise.
6182         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
6183         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6184         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
6185         clarity.
6186         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6187         from rtx to rtx_insn_list *.
6188         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6189         rtx_insn_list * and use methods for clarity and typesafety.
6190         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6191         "list".
6192         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
6193         redundant check on INSN_P (insns): this cannot hold, as "insns" is
6194         an INSN_LIST, not an insn.
6195         (reverse_equiv_p): Strengthen local "insns" from rtx to
6196         rtx_insn_list * and use methods for clarity and typesafety.
6197         (contains_reloaded_insn_p): Likewise for local "list".
6199 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
6201         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6202         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6203         (arm_builtin_vectorized_function): Likewise.
6204         * config/arm/arm_neon_builtins.def: New macro for copysignf.
6205         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6207 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
6209         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6210         * builtins.h (default_target_builtins): Likewise.
6211         * gcse.h (default_target_gcse): Likewise.
6212         * target-globals.h (target_globals): Add a destructor.  Convert
6213         void-pointer fields back to their real type and change from
6214         GTY((atomic)) to GTY((skip)).
6215         (restore_target_globals): Remove casts accordingly.
6216         * target-globals.c (save_target_globals): Use XCNEW rather than
6217         ggc_internal_cleared_alloc to allocate non-GC structures.
6218         Use ggc_cleared_alloc to allocate the target_globals structure
6219         itself.
6220         (target_globals::~target_globals): Define.
6222 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6224         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6225         mnemonic instead of fldmfdd.
6226         * config/arm/arm.c (vfp_output_fstmd): Rename to...
6227         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
6228         Output vpush when address register is SP.
6229         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6230         (vfp_output_vstmd): ... This.
6231         * config/arm/vfp.md (push_multi_vfp): Update call to
6232         vfp_output_vstmd.
6234 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6236         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6238 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6240         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6241         (*sqrtdf2_vfp): Likewise.
6242         (*cmpsf_vfp): Likewise.
6243         (*cmpsf_trap_vfp): Likewise.
6244         (*cmpdf_vfp): Likewise.
6245         (*cmpdf_trap_vfp): Likewise.
6247 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6249         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6250         (*truncdfsf2_vfp): Likewise.
6251         (*truncsisf2_vfp): Likewise.
6252         (*truncsidf2_vfp): Likewise.
6253         (fixuns_truncsfsi2): Likewise.
6254         (fixuns_truncdfsi2): Likewise.
6255         (*floatsisf2_vfp): Likewise.
6256         (*floatsidf2_vfp): Likewise.
6257         (floatunssisf2): Likewise.
6258         (floatunssidf2): Likewise.
6260 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6262         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6263         (*muldf3_vfp): Likewise.
6264         (*mulsf3negsf_vfp): Likewise.
6265         (*muldf3negdf_vfp): Likewise.
6266         (*mulsf3addsf_vfp): Likewise.
6267         (*muldf3adddf_vfp): Likewise.
6268         (*mulsf3subsf_vfp): Likewise.
6269         (*muldf3subdf_vfp): Likewise.
6270         (*mulsf3negsfaddsf_vfp): Likewise.
6271         (*fmuldf3negdfadddf_vfp): Likewise.
6272         (*mulsf3negsfsubsf_vfp): Likewise.
6273         (*muldf3negdfsubdf_vfp): Likewise.
6275 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6277         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6278         (*absdf2_vfp): Likewise.
6279         (*negsf2_vfp): Likewise.
6280         (*negdf2_vfp): Likewise.
6281         (*addsf3_vfp): Likewise.
6282         (*adddf3_vfp): Likewise.
6283         (*subsf3_vfp): Likewise.
6284         (*subdf3_vfp): Likewise.
6285         (*divsf3_vfp): Likewise.
6286         (*divdf3_vfp): Likewise.
6288 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6290         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6291         multiple.
6292         (arm_print_operand): Don't convert real values to decimal
6293         representation in default case.
6294         (fp_immediate_constant): Delete.
6295         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6296         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6297         syntax.
6298         (*thumb2_movsi_vfp): Likewise.
6299         (*movdi_vfp): Likewise.
6300         (*movdi_vfp_cortexa8): Likewise.
6301         (*movhf_vfp_neon): Likewise.
6302         (*movhf_vfp): Likewise.
6303         (*movsf_vfp): Likewise.
6304         (*thumb2_movsf_vfp): Likewise.
6305         (*movdf_vfp): Likewise.
6306         (*thumb2_movdf_vfp): Likewise.
6307         (*movsfcc_vfp): Likewise.
6308         (*thumb2_movsfcc_vfp): Likewise.
6309         (*movdfcc_vfp): Likewise.
6310         (*thumb2_movdfcc_vfp): Likewise.
6312 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
6314         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6315         (-mtune): Likewise.
6316         (-mcpu): Likewise.
6318 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6320         PR target/61749
6321         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6322         Use qualifier_immediate for last operand.  Rename to...
6323         (aarch64_types_ternop_lane_qualifiers): ... This.
6324         (TYPES_QUADOP): Rename to...
6325         (TYPES_TERNOP_LANE): ... This.
6326         (aarch64_simd_expand_args): Return const0_rtx when encountering user
6327         error.  Change return of 0 to return of NULL_RTX.
6328         (aarch64_crc32_expand_builtin): Likewise.
6329         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6330         ICE when expanding unknown builtin.
6331         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6332         TERNOP_LANE qualifiers.
6333         (sqdmlsl_lane): Likewise.
6334         (sqdmlal_laneq): Likewise.
6335         (sqdmlsl_laneq): Likewise.
6336         (sqdmlal2_lane): Likewise.
6337         (sqdmlsl2_lane): Likewise.
6338         (sqdmlal2_laneq): Likewise.
6339         (sqdmlsl2_laneq): Likewise.
6341 2014-09-09  Nick Clifton  <nickc@redhat.com>
6343         * doc/invoke.texi (Optimization Options): Add missing @gol to the
6344         end of a line.
6345         (S/390 and zSeries Options): Remove superfluous word from the
6346         description of the -mhotpatch option.
6348 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6350         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6351         * ira.c: #include "shrink-wrap.h"
6352         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6353         * ifcvt.c: #include "shrink-wrap.h"
6354         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6356 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
6358         * common/config/picochip/picochip-common.c: Remove.
6359         * config.gcc: Remove support for picochip.
6360         * config/picochip/constraints.md: Remove.
6361         * config/picochip/dfa_space.md: Remove.
6362         * config/picochip/dfa_speed.md: Remove.
6363         * config/picochip/picochip-protos.h: Remove.
6364         * config/picochip/picochip.c: Remove.
6365         * config/picochip/picochip.h: Remove.
6366         * config/picochip/picochip.md: Remove.
6367         * config/picochip/picochip.opt: Remove.
6368         * config/picochip/predicates.md: Remove.
6369         * config/picochip/t-picochip: Remove.
6370         * doc/md.texi: Don't document picochi.
6372 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6374         * basic-block.h (control_flow_insn_p): Strengthen param from
6375         const_rtx to const rtx_insn *.
6376         * cfgbuild.c (control_flow_insn_p): Likewise.
6378 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6380         * gcse.c (modify_mem_list): Strengthen this variable from
6381         vec<rtx> * to vec<rtx_insn *> *.
6382         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6383         vec<rtx_insn *>.
6384         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6385         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6386         (record_last_mem_set_info): Strengthen param "insn" from rtx to
6387         rtx_insn *.
6388         (record_last_set_info): Likewise for local "last_set_insn".
6390 2014-09-08  DJ Delorie  <dj@redhat.com>
6392         * doc/invoke.texi (MSP430 Options): Add -minrt.
6394 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6396         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
6397         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6398         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6399         handling SH_SPLAT.
6400         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6401         of extracted lane.
6402         (adjust_splat): New function.
6403         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6404         (dump_swap_insn_table): Add case for SH_SPLAT.
6406 2014-09-08  Richard Biener  <rguenther@suse.de>
6408         PR ipa/63196
6409         * tree-inline.c (copy_loops): The source loop header should
6410         always be non-NULL.
6411         (tree_function_versioning): If loops need fixup after removing
6412         unreachable blocks fix them.
6413         * omp-low.c (simd_clone_adjust): Do not add incr block to
6414         loop under construction.
6416 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6418         * config/aarch64/aarch64-builtins.c
6419         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6421 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6423         * config/i386/cygming.h (TF_SIZE): Remove.
6424         * config/i386/darwin.h (TF_SIZE): Remove.
6425         * config/i386/dragonfly.h (TF_SIZE): Remove.
6426         * config/i386/freebsd.h (TF_SIZE): Remove.
6427         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6428         * config/i386/openbsdelf.h (TF_SIZE): Remove.
6429         * config/i386/sol2.h (TF_SIZE): Remove.
6430         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6431         * config/ia64/linux.h (TF_SIZE): Remove.
6432         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6433         * doc/tm.texi: Regenerate.
6434         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6436 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6438         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6439         Remove.
6440         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6441         Remove.
6442         * doc/tm.texi: Regenerate.
6443         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6444         Poison.
6445         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6446         * config/cris/cris.h (__make_dp): Remove.
6448 2014-09-08  Richard Biener  <rguenther@suse.de>
6450         PR bootstrap/63204
6451         * cfgloop.c (mark_loop_for_removal): Track former header
6452         unconditionally.
6453         * cfgloop.h (struct loop): Add former_header member unconditionally.
6454         * loop-init.c (fix_loop_structure): Enable bogus loop removal
6455         diagnostic unconditionally.
6457 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6459         PR target/63190
6460         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6461         constraint for operand0 and remove write only modifier from operand3.
6463 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
6465         PR rtl-optimization/62208
6466         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6467         rather than const0_rtx in eq/ne-xor simplifications.
6469 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
6471         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6472         (arc_output_mi_thunk): Likewise.
6474         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6475         arguments to silence bogus warning.
6477 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
6479         PR middle-end/63171
6480         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6482 2014-09-06  Tom de Vries  <tom@codesourcery.com>
6484         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6485         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6486         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6488 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
6490         PR target/63188
6491         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6492         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6494 2014-09-05  Easwaran Raman  <eraman@google.com>
6496         PR rtl-optimization/62146
6497         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6498         hoisted instruction unconditional.
6500 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
6502         PR target/63187
6503         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6504         Do not allow any_mask_operand for operands[2].
6505         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6507 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6509         * config/arc/arc.c (arc_print_operand): Use insn method of
6510         final_sequence for type-safety.
6511         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6512         "insn" from rtx to rtx_insn *.
6513         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6514         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6515         Likewise for locals "branch", "label".
6516         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6517         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
6518         (same_cmp_following_p): Likewise for locals "i2", "i3".
6519         * config/sh/sh_optimize_sett_clrt.cc
6520         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6521         param "cbranch_insn".
6522         * function.c (convert_jumps_to_returns): Likewis for local "jump".
6523         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6524         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6525         const rtx_insn *.
6526         (condjump_p): Likewise.
6527         (condjump_in_parallel_p): Likewise.
6528         (pc_set): Likewise.
6529         (any_uncondjump_p): Likewise.
6530         (any_condjump_p): Likewise.
6531         (condjump_label): Likewise.
6532         (returnjump_p): Strengthen param "insn" from rtx to
6533         const rtx_insn *.
6534         (onlyjump_p): Strengthen param "insn" from const_rtx to
6535         const rtx_insn *.
6536         (jump_to_label_p): Likewise.
6537         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6538         (invert_jump): Likewise.
6539         * reorg.c (simplejump_or_return_p): Add checked cast when calling
6540         simplejump_p.
6541         (get_jump_flags): Strengthen param "insn" from rtx to
6542         const rtx_insn *.
6543         (get_branch_condition): Likewise.
6544         (condition_dominates_p): Likewise.
6545         (make_return_insns): Move declaration of local "pat" earlier, to
6546         after we've handled NONJUMP_INSN_P and non-sequences, using its
6547         methods to simplify the code and for type-safety.
6548         * rtl.h (find_constant_src): Strengthen param from const_rtx to
6549         const rtx_insn *.
6550         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6551         (condjump_p): Strengthen param from const_rtx to
6552         const rtx_insn *.
6553         (any_condjump_p): Likewise.
6554         (any_uncondjump_p): Likewise.
6555         (pc_set): Likewise.
6556         (condjump_label): Likewise.
6557         (simplejump_p): Likewise.
6558         (returnjump_p): Likewise.
6559         (onlyjump_p): Likewise.
6560         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6561         (invert_jump): Likewise.
6562         (condjump_in_parallel_p): Strengthen param from const_rtx to
6563         const rtx_insn *.
6564         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6565         to const rtx_insn *.
6566         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6567         to const rtx_insn *.
6568         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6570 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6572         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6573         above the conditional, and convert the check on GET_CODE to a
6574         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6575         the conditional.  Simplify the conditional by using methods of
6576         "trial_seq".
6578 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6580         * haifa-sched.c (check_clobbered_conditions): Strengthen local
6581         "link" from rtx to rtx_insn_list *, and use its methods for
6582         clarity and type-safety.
6583         (toggle_cancelled_flags): Likewise.
6584         (restore_last_backtrack_point): Likewise.
6585         (queue_to_ready): Use insn method of "link" in one place.
6586         (schedule_block): Strengthen local "link" from rtx to
6587         rtx_insn_list *, and use its methods for clarity and type-safety.
6589 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6591         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6592         param "insn" from const_rtx to const rtx_insn *.
6593         (sched_get_reverse_condition_uncached): Likewise.
6594         (sched_get_condition_with_rev): Likewise.
6595         (sched_has_condition_p): Likewise.
6596         (sched_insns_conditions_mutex_p): Likewise for both params.
6597         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6598         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6599         (setup_insn_reg_uses): Move local "list" to be more tightly
6600         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
6601         its methods for clarity and type-safety.
6602         (sched_analyze_1): Strengthen local "pending" from rtx to
6603         rtx_insn_list *, and local "pending_mem" from rtx to
6604         rtx_expr_list *.  Use methods of each for clarity and type-safety.
6605         (sched_analyze_2): Likewise.
6606         (sched_analyze_insn): Likewise.
6608         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6609         param from const_rtx to const rtx_insn *.
6610         (sched_insns_conditions_mutex_p): Likewise for both params.
6611         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6612         param.
6614         * system.h (CONST_CAST_RTX_INSN): New macro.
6616 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6618         * recog.c (peep2_attempt): Strengthen return type from rtx to
6619         rtx_insn *.
6620         (peep2_update_life): Likewise for params "last", "prev", removing
6621         a checked cast made redundant by this.
6622         (peephole2_optimize): Likewise for local "last".
6624 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6626         * basic-block.h (set_block_for_insn): Eliminate this macro in
6627         favor of...
6628         * rtl.h (set_block_for_insn): New inline function, imposing the
6629         requirement that the "insn" param is an rtx_insn *.
6631 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6633         * caller-save.c (setup_save_areas): Strengthen local "insn" from
6634         rtx to rtx_insn *.
6635         * final.c (get_call_reg_set_usage): Likewise for first param,
6636         eliminating a checked cast.
6637         * regs.h (get_call_reg_set_usage): Likewise for first param.
6638         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6639         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6640         cast, replacing references to "x" with "call_insn" where
6641         appropriate.
6642         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6643         rtx_insn *, adding a checked cast.
6645 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6647         * output.h (final_scan_insn): Strengthen first param from rtx to
6648         rtx_insn *.
6650         * final.c (final_scan_insn): Likewise, renaming it back from
6651         "uncast_insn" to "insn", eliminating the checked cast.
6653         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6654         "vec" with an rtx_sequence * "seq", taking a copy of
6655         "final_sequence", and using methods of "seq" for clarity, and for
6656         type-safety in the calls to final_scan_insn.
6657         * config/mips/mips.c (mips_output_conditional_branch): Use methods
6658         of "final_sequence" for clarity, and for type-safety in the call to
6659         final_scan_insn.
6660         * config/sh/sh.c (print_slot): Strengthen param from rtx to
6661         rtx_sequence * and rename from "insn" to "seq".
6663 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6665         * jump.c (delete_related_insns): Introduce a new local "table" by
6666         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6667         get_labels method of "table" to simplify access to the labels in
6668         the jump table.
6670 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6672         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6673         f_minmaxs, f_minmaxd types.
6675 2014-09-05  Richard Biener  <rguenther@suse.de>
6677         * cfgloop.c (mark_loop_for_removal): Record former header
6678         when ENABLE_CHECKING.
6679         * cfgloop.h (strut loop): Add former_header member when
6680         ENABLE_CHECKING.
6681         * loop-init.c (fix_loop_structure): Sanity check loops
6682         marked for removal if they re-appeared.
6684 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6686         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6687         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6689         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6690         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6691         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6692         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6693         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6694         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6695         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6696         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6697         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6698         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6699         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6700         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6701         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6702         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6703         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6704         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6705         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6706         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6707         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6708         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6709         with int{32,16,8}_t.
6711 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6713         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6714         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6715         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6716         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6717         Remove temporary __asm__ and reimplement.
6719 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6721         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6722         handling cmge, cmgt, cmeq, cmtst.
6724         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6725         cmlt, cmgeu, cmgtu, cmtst): Remove.
6727         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6728         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6729         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6730         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6732 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6734         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6735         TYPES_TST): Define.
6736         (aarch64_fold_builtin): Update pattern for cmtst.
6738         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6739         Declare.
6741         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6743         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6744         Switch operands, separate out more cases, refactor.
6746         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6748         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6749         argument; rename old version to...
6750         (aarch64_const_vec_all_same_in_range_p): ...this.
6751         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6753         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6755 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6757         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6758         Remove qualifier_const_pointer, update comment.
6760 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6762         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6764 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6766         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6767         varargs with pointer parameter.
6768         (aarch64_simd_expand_builtin): pass pointer into previous.
6770 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6772         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6773         alus_ext.
6775 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6777         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6778         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6779         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6780         Replace temporary asm with call to builtin.
6781         (vrbit_p8, vrbitq_p8): New functions.
6783 2014-09-05  Richard Biener  <rguenther@suse.de>
6785         * cfgloop.c (mark_loop_for_removal): New function.
6786         * cfgloop.h (mark_loop_for_removal): Declare.
6787         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6788         (merge_blocks): Likewise.
6789         (duplicate_block): Likewise.
6790         * except.c (sjlj_emit_dispatch_table): Likewise.
6791         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6792         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6793         (thread_through_loop_header): Likewise.
6795 2014-09-05  Richard Biener  <rguenther@suse.de>
6797         PR middle-end/63148
6798         * fold-const.c (try_move_mult_to_index): Remove.
6799         (fold_binary_loc): Do not call it.
6800         * tree-data-ref.c (dr_analyze_indices): Strip conversions
6801         from the base object again.
6803 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
6805         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6806         DImode.
6808 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6810         PR target/55701
6811         * config/arm/arm.md (setmem): New pattern.
6812         * config/arm/arm-protos.h (struct tune_params): New fields.
6813         (arm_gen_setmem): New prototype.
6814         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6815         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6816         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6817         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6818         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6819         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6820         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6821         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6822         (arm_const_inline_cost): New function.
6823         (arm_block_set_max_insns): New function.
6824         (arm_block_set_non_vect_profit_p): New function.
6825         (arm_block_set_vect_profit_p): New function.
6826         (arm_block_set_unaligned_vect): New function.
6827         (arm_block_set_aligned_vect): New function.
6828         (arm_block_set_unaligned_non_vect): New function.
6829         (arm_block_set_aligned_non_vect): New function.
6830         (arm_block_set_vect, arm_gen_setmem): New functions.
6832 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6834         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6836 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6838         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6840 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6842         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6843         an rtx.
6844         * valtrack.h: Adjust.
6846 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6848         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6849         an rtx.
6850         (emit_jump_insn_before_noloc): Likewise.
6851         (emit_call_insn_before_noloc): Likewise.
6852         (emit_label_before): Likewise.
6853         (emit_label_after): Likewise.
6854         (emit_insn_before_setloc): Likewise.
6855         (emit_jump_insn_before_setloc): Likewise.
6856         (emit_call_insn_before_setloc): Likewise.
6857         (emit_call_insn_before): Likewise.
6858         * rtl.h: Adjust.
6860 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6862         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6863         rtx_insn *, eliminating a checked cast.
6865 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6867         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6868         const_rtx to const rtx_insn *.
6869         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6870         cast.
6872 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6874         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6875         fixup_args_size_notes.
6876         * expr.c (fixup_args_size_notes): Strengthen first two params from
6877         rtx to rtx_insn *, eliminating a checked cast.
6878         * rtl.h (fixup_args_size_notes): Strengthen first two params from
6879         rtx to rtx_insn *.
6881 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6883         * haifa-sched.c (get_ready_element): Strengthen return type from
6884         rtx to rtx_insn *.
6885         * sched-int.h (get_ready_element): Likewise.
6887 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
6889         PR target/63165
6890         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6891         indexed_or_indirect_operand instead of memory_operand.
6892         (floatsi<mode>2_lfiwzx_mem): Ditto.
6894 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6896         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6897         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6898         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6900 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6902         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6903         rtx.
6904         (get_last_nonnote_insn): Likewise.
6905         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6906         * resource.c (find_basic_block): Likewise.
6907         * rtl.h: Adjust.
6908         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6909         const_rtx.
6911 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
6913         * genattr.c (main): Within the prototype of insn_latency written
6914         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6915         * genautomata.c (output_internal_maximal_insn_latency_func):
6916         Within the implementation of insn_latency written out to
6917         insn-automata.c, strengthen both params from rtx to rtx_insn *,
6918         eliminating a pair of checked casts.
6920 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
6922         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6923         rtx_insn *.
6925         * rtl.h (eh_returnjump_p): Likewise.
6927 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
6929         * Makefile.in (TAGS): Handle constructs in timevar.def.
6931 2014-09-04  Guozhi Wei  <carrot@google.com>
6933         PR target/62040
6934         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6935         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6936         it into two patterns.
6937         (move_lo_quad_internal_be_<mode>): Likewise.
6939 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6941         * doc/options.texi: Document that Var and Init are required if CPP
6942         is given.
6943         * optc-gen.awk: Require Var and Init if CPP is given.
6944         * common.opt (Wpedantic): Use Init.
6946 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6948         * config/rs6000/rs6000.c (special_handling_values): Add
6949         SH_EXTRACT.
6950         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6951         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
6952         as swappable with special handling SH_EXTRACT.  Remove
6953         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6954         optimization.
6955         (adjust_extract): New function.
6956         (handle_special_swappables): Add default to case statement; add
6957         case for SH_EXTRACT that calls adjust_extract.
6958         (dump_swap_insn_table): Handle SH_EXTRACT.
6960 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6962         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6963         selection of 0th memory doubleword, regardless of endianness.
6965 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6967         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6969 2014-09-04  Alan Modra  <amodra@gmail.com>
6971         PR debug/60655
6972         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6973         can't be output.
6975 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
6977         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6978         * targhooks.c (default_dwarf_frame_reg_mode): New function.
6979         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6980         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6981         * doc/tm.texi: Regenerate.
6982         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6983         selection logic to default_dwarf_frame_reg_mode.
6985 2014-09-03  Marek Polacek  <polacek@redhat.com>
6987         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6988         by -Wall.
6990 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6992         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6993         the automodified register.
6995 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6997         * output.h (get_some_local_dynamic_name): Declare.
6998         * final.c (some_local_dynamic_name): New variable.
6999         (get_some_local_dynamic_name): New function.
7000         (final_end_function): Clear some_local_dynamic_name.
7001         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7002         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7003         (print_operand): Report an error if '%&' is used inappropriately.
7004         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7005         (get_some_local_dynamic_name_1): Delete.
7006         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7007         (rs6000_get_some_local_dynamic_name): Delete.
7008         (rs6000_get_some_local_dynamic_name_1): Delete.
7009         (print_operand): Report an error if '%&' is used inappropriately.
7010         * config/s390/s390.c (machine_function): Remove some_ld_name.
7011         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7012         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7013         * config/sparc/sparc.c: Include rtl-iter.h.
7014         (machine_function): Remove some_ld_name.
7015         (sparc_print_operand): Report an error if '%&' is used inappropriately.
7016         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7018 2014-09-03  Richard Henderson  <rth@redhat.com>
7020         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7021         (aarch64_popwb_pair_reg): Remove.
7022         (aarch64_set_frame_expr): Remove.
7023         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7024         the restore ops performed by the insns generated.
7025         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7026         insn.  Perform the calls_eh_return addition later; do not attempt to
7027         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
7028         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7029         special markup at all.  Load cfun->machine->frame.hard_fp_offset
7030         into a local variable.
7031         (aarch64_frame_pointer_required): Don't check calls_alloca.
7033 2014-09-03  Richard Biener  <rguenther@suse.de>
7035         * opts.c (default_options_optimization): Adjust
7036         max-combine-insns to 2 for -Og.
7038 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7040         PR ipa/62015
7041         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7042         pass-trough jump functions correctly.
7044 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7046         PR ipa/61986
7047         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7048         created replacements in ascending order of offsets.
7049         (known_aggs_to_agg_replacement_list): Likewise.
7051 2014-09-03  Martin Liska  <mliska@suse.cz>
7053         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7054         is set to set uninitialized value for vnresult.
7056 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7058         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7059         for TARGET_MUST_PASS_IN_STACK.
7061 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7063         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7064         for TARGET_ARG_PARTIAL_BYTES.
7066 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7068         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7069         instructions for varargs implementation.
7070         (nds32_expand_epilogue): Emit stack adjustment instructions for
7071         varargs implementation.
7073 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7075         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7076         optimization detection.
7078 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7080         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7081         arguments.
7082         (nds32_function_arg_advance): Deal with nameless arguments.
7083         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7084         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7085         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7087 2014-09-03  Richard Biener  <rguenther@suse.de>
7089         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7090         (struct bb_bitmap_sets): Remove deferred member.
7091         (BB_DEFERRED): Remove.
7092         (defer_or_phi_translate_block): Remove.
7093         (compute_antic_aux): Remove deferring of blocks, assert
7094         proper iteration order.
7095         (compute_antic): Do not set BB_DEFERRED.
7096         (eliminate): Allocate el_avail of proper size initially.
7098 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7100         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7101         according to the value of crtl->args.pretend_args_size.
7103 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7105         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7106         varargs information.
7108 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7110         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7111         implementation for TARGET_SETUP_INCOMING_VARARGS.
7112         (nds32_strict_argument_naming): Refine comment.
7113         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7114         Define for future implementation.
7116 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
7118         * config/i386/adxintrin.h (_subborrow_u32): New.
7119         (_addcarry_u32): Ditto.
7120         (_subborrow_u64): Ditto.
7121         (_addcarry_u64): Ditto.
7122         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7123         IX86_BUILTIN_SBB64.
7124         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7125         __builtin_ia32_sbb_u64
7127 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7129         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7130         GPR-specific stuff.
7131         (nds32_function_arg_advance): Likewise.
7132         (nds32_init_cumulative_args): Likewise.
7133         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7134         (NDS32_FIRST_GPR_REGNUM): Define.
7135         (NDS32_LAST_GPR_REGNUM): Define.
7136         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7137         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7138         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7139         (machine_function): Use GRP-specific stuff.
7141 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7143         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7144         (nds32_expand_epilogue): Likewise.
7145         (nds32_expand_prologue_v3push): Likewise.
7146         (nds32_expand_epilogue_v3pop): Likewise.
7148 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7150         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7151         v3push/v3pop for variadic function.
7152         * config/nds32/nds32.md (prologue, epilogue): Likewise.
7154 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7156         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7157         Check rtx for varargs implementation.
7158         (nds32_output_stack_pop): Likewise.
7159         * config/nds32/nds32-protos.h: Have a rtx argument for
7160         nds32_output_stack_push and nds32_output_stack_pop.
7161         * config/nds32/nds32.md: Likewise.
7163 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7165         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7166         to check if FUNC is an interrupt service routine.
7167         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7169 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7171         * config/nds32/nds32.h (machine_function): Add some fields for variadic
7172         arguments implementation.
7174 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7176         * config/nds32/nds32-predicates.c
7177         (nds32_valid_stack_push_pop): Rename to ...
7178         (nds32_valid_stack_push_pop_p): ... this.
7179         * config/nds32/nds32-protos.h: Likewise.
7180         * config/nds32/predicates.md: Likewise.
7182 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7184         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7185         (nds32_emit_stack_v3push): ... this.
7186         (nds32_gen_stack_v3pop): Rename to ...
7187         (nds32_emit_stack_v3pop): ... this and consider CFA restore
7188         information.
7190 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7192         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7193         (nds32_emit_stack_push_multiple): ... this.
7194         (nds32_gen_stack_pop_multiple): Rename to ...
7195         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7196         information.
7198 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7200         PR target/61078
7201         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7202         and add a second splitter to handle the remaining cases.
7204 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7206         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7208 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7210         * cfgexpand.c (label_rtx_for_bb): Change type to
7211         hash_map<basic_block, rtx_code_label *> *.
7212         (expand_gimple_basic_block): Adjust.
7213         (pass_expand::execute): Likewise.
7215 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7217         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7218         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7219         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7220         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7221         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7222         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7223         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7224         of rtx.
7226 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7228         * alloc-pool.c: Include coretypes.h.
7229         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7230         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7231         hash_set instead of htab.
7232         * ggc-page.c (in_gc): New variable.
7233         (ggc_free): Do nothing if a collection is taking place.
7234         (ggc_collect): Set in_gc appropriately.
7235         * ggc.h (gt_ggc_mx(const char *)): New function.
7236         (gt_pch_nx(const char *)): Likewise.
7237         (gt_ggc_mx(int)): Likewise.
7238         (gt_pch_nx(int)): Likewise.
7239         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7240         (hash_map::hash_entry::pch_nx): Likewise.
7241         (hash_map::hash_entry::pch_nx_helper): Likewise.
7242 (hash_map::hash_map): Adjust.
7243 (hash_map::create_ggc): New function.
7244 (gt_ggc_mx): Likewise.
7245 (gt_pch_nx): Likewise.
7246         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7247 (default_hashset_traits::pch_nx): Likewise.
7248 (hash_set::hash_entry::ggc_mx): Likewise.
7249 (hash_set::hash_entry::pch_nx): Likewise.
7250 (hash_set::hash_entry::pch_nx_helper): Likewise.
7251 (hash_set::hash_set): Adjust.
7252 (hash_set::create_ggc): New function.
7253 (hash_set::elements): Likewise.
7254 (gt_ggc_mx): Likewise.
7255 (gt_pch_nx): Likewise.
7256         * hash-table.h (hash_table::hash_table): Adjust.
7257 (hash_table::m_ggc): New member.
7258         (hash_table::~hash_table): Adjust.
7259         (hash_table::expand): Likewise.
7260         (hash_table::empty): Likewise.
7261 (gt_ggc_mx): New function.
7262         (hashtab_entry_note_pointers): Likewise.
7263 (gt_pch_nx): Likewise.
7265 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7267         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
7268         built-in definition.
7269         (XVCVUXDDP_SCALE): Likewise.
7270         (XVCVDPSXDS_SCALE): Likewise.
7271         (XVCVDPUXDS_SCALE): Likewise.
7272         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
7273         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7274         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7275         VSX_BUILTIN_XVCVDPUXDS_SCALE.
7276         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7277         prototype.
7278         * config/rs6000/rs6000.c (real.h): New include.
7279         (rs6000_scale_v2df): New function.
7280         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7281         (UNSPEC_VSX_XVCVUXDDP): Likewise.
7282         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7283         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7284         (vsx_xvcvsxddp_scale): New define_expand.
7285         (vsx_xvcvsxddp): New define_insn.
7286         (vsx_xvcvuxddp_scale): New define_expand.
7287         (vsx_xvcvuxddp): New define_insn.
7288         (vsx_xvcvdpsxds_scale): New define_expand.
7289         (vsx_xvcvdpsxds): New define_insn.
7290         (vsx_xvcvdpuxds_scale): New define_expand.
7291         (vsx_xvcvdpuxds): New define_insn.
7292         * doc/extend.texi (vec_ctf): Add new prototypes.
7293         (vec_cts): Likewise.
7294         (vec_ctu): Likewise.
7295         (vec_splat): Likewise.
7296         (vec_div): Likewise.
7297         (vec_mul): Likewise.
7299 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7301         PR target/62275
7302         * config/arm/neon.md
7303         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7304         <v_cmp_result>): New pattern.
7305         * config/arm/iterators.md (NEON_VCVT): New int iterator.
7306         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7307         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7308         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7309         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7310         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7312 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7314         PR target/62275
7315         * config/arm/iterators.md (FIXUORS): New code iterator.
7316         (VCVT): New int iterator.
7317         (su_optab): New code attribute.
7318         (su): Likewise.
7319         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7321 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7323         * config/aarch64/predicates.md (aarch64_comparison_operation):
7324         New special predicate.
7325         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7326         aarch64_comparison_operation instead of matching an operator.
7327         Update operand numbers.
7328         (csinc3<mode>_insn): Likewise.
7329         (*csinv3<mode>_insn): Likewise.
7330         (*csneg3<mode>_insn): Likewise.
7331         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7332         * config/aarch64/aarch64.c (aarch64_get_condition_code):
7333         Return -1 instead of aborting on invalid condition codes.
7334         (aarch64_print_operand): Update aarch64_get_condition_code callsites
7335         to assert that the returned condition code is valid.
7336         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7338 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
7340         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7341         tree.def, and gimple.def
7343 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
7344             Balaji V. Iyer  <balaji.v.iyer@intel.com>
7345             Igor Zamyatin  <igor.zamyatin@intel.com>
7347         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7348         (__cilkrts_cilk_for_64): Likewise.
7349         * cilk-common.c (declare_cilk_for_builtin): New function.
7350         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7351         __cilkrts_cilk_for_64 bultins.
7352         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7353         CILK_TI_F_LOOP_64.
7354         (cilk_for_32_fndecl): New define.
7355         (cilk_for_64_fndecl): Likewise.
7356         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7357         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7358         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7359         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7360         GF_OMP_FOR_COMBINED_INTO.
7361         * gimplify.c (gimplify_scan_omp_clauses): Added
7362         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7363         (gimplify_adjust_omp_clauses): Ditto.
7364         (gimplify_omp_for): Added CILK_FOR case.
7365         (gimplify_expr): Ditto.
7366         * omp-low.c: Include cilk.h.
7367         (extract_omp_for_data): Set appropriate kind for
7368         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7369         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7370         (create_omp_child_function_name): Added second argument to handle
7371         cilk_for case.
7372         (cilk_for_check_loop_diff_type): New function.
7373         (expand_cilk_for_call): Likewise.
7374         (expand_cilk_for): Likewise.
7375         (create_omp_child_function): Set cilk_for_count; handle the cases when
7376         it is true; call create_omp_child_function_name with second argument.
7377         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7378         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7379         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7380         * tree-nested.c (convert_nonlocal_omp_clauses): Added
7381         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7382         (convert_local_omp_clauses): Ditto.
7383         * tree-pretty-print.c (dump_omp_clause): Added
7384         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7385         (dump_generic_node): Added CILK_FOR case.
7386         * tree.c (omp_clause_num_ops): New element
7387         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7388         (omp_clause_code_name): New element _Cilk_for_count_.
7389         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7390         * tree.def: Add tree code for CILK_FOR.
7392 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7394         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7395         (ppc403-compare): Add "exts with dot" case.
7396         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7397         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7398         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7399         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7400         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7401         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7402         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7403         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7404         cell-cmp-microcoded): Similarly.
7405         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7406         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7407         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7408         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7409         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7410         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7411         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7412         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7413         (power6-compare): Add "exts with dot" case.
7414         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7415         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7416         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7418         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7419         if avoiding Cell microcode.
7420         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7421         (is_cracked_insn): Ditto.
7422         (insn_must_be_first_in_group): Ditto.
7423         * config/rs6000/rs6000.md (dot): Adjust comment.
7424         (cell_micro): Handle exts+dot.
7425         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7426         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7427         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7428         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7429         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7430         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7431         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7433 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7435         * config/rs6000/rs6000.md (QHSI): Delete.
7436         (EXTQI, EXTHI, EXTSI): New mode iterators.
7437         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7438         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7439         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7440         9 anonymous instructions, and 8 splitters): Delete.
7441         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7442         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7443         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7444         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7445         *zero_extendsi<mode>2_dot2): New.
7447 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7449         * config/rs6000/rs6000.md (any_extend): New code iterator.
7450         (u, su): New code attributes.
7451         (dmode, DMODE): New mode attributes.
7452         (<su>mul<mode>3_highpart): New.
7453         (*<su>mul<mode>3_highpart): New.
7454         (<su>mulsi3_highpart_le): New.
7455         (<su>muldi3_highpart_le): New.
7456         (<su>mulsi3_highpart_64): New.
7457         (<u>mul<mode><dmode>3): New.
7458         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7459         splitters): Delete.
7460         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7461         splitters): Delete.
7463 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7465         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7466         *mulsi3_internal2, and two splitters): Delete.
7467         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7468         Delete.
7469         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7471 2014-09-02  Richard Biener  <rguenther@suse.de>
7473         PR tree-optimization/62695
7474         * tree-ssa-structalias.c (find_func_clobbers): Add missing
7475         vector truncate.
7477 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
7479         PR target/62312
7480         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7482 2014-09-01  Andi Kleen  <ak@linux.intel.com>
7484         * file-find.c (add_prefix_begin): Add.
7485         (do_add_prefix): Rename from add_prefix with first argument.
7486         (add_prefix): Add new wrapper.
7487         * file-find.h (add_prefix_begin): Add.
7488         * gcc-ar.c (main): Support -B option.
7490 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7492         * genemit.c: Include dumpfile.h.
7493         (gen_split): Print name of splitter function to dump file.
7495 2014-09-01  Richard Biener  <rguenther@suse.de>
7497         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7498         Use stack auto_vecs for constraint expressions.
7499         (find_func_aliases_for_call): Likewise.
7500         (find_func_aliases): Likewise.
7501         (find_func_clobbers): Likewise.
7503 2014-09-01  Richard Biener  <rguenther@suse.de>
7505         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7506         operands vector in most cases.  Remove redundant code.
7508 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7510         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7511         $WIND_BASE instead of designating a harcoded arbitrary home dir.
7512         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7514 2014-09-01  Richard Biener  <rguenther@suse.de>
7516         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7517         copy_reference_ops_from_call, vn_nary_op_compute_hash,
7518         vn_reference_compute_hash, vn_reference_insert): Remove.
7519         (vn_reference_lookup_call): New function.
7520         * tree-ssa-sccvn.c (vn_reference_compute_hash,
7521         copy_reference_ops_from_ref, copy_reference_ops_from_call,
7522         vn_reference_insert, vn_nary_op_compute_hash): Make static.
7523         (create_reference_ops_from_call): Remove.
7524         (vn_reference_lookup_3): Properly update shared_lookup_references.
7525         (vn_reference_lookup_pieces): Assert that we updated
7526         shared_lookup_references properly.
7527         (vn_reference_lookup): Likewise.
7528         (vn_reference_lookup_call): New function.
7529         (visit_reference_op_call): Use it.  Avoid re-building the
7530         reference ops.
7531         (visit_reference_op_load): Remove redundant lookup.
7532         (visit_reference_op_store): Perform special tail-merging work
7533         only when possibly doing tail-merging.
7534         (visit_use): Likewise.
7535         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7537 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7539         PR target/62025
7540         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7541         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7542         (find_inc): Revert 2014-08-13 change.
7544 2014-09-01  Marek Polacek  <polacek@redhat.com>
7546         PR middle-end/61903
7547         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7548         Change the type of V to unsigned HOST_WIDE_INT.
7550 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7552         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7553         the size of byte markers.
7554         (do_shift_rotate): Fix confusion between host, target and marker byte
7555         size.
7556         (verify_symbolic_number_p): Likewise.
7557         (find_bswap_or_nop_1): Likewise.
7558         (find_bswap_or_nop): Likewise.
7560 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7562         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7563         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7565 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7567         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7568         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7569         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7571 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
7573         PR sanitizer/61897
7574         PR sanitizer/62140
7575         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7576         (build_check_stmt): Likewise.
7577         (instrument_strlen_call): Likewise.
7578         (asan_expand_check_ifn): Likewise and fix types.
7579         (maybe_cast_to_ptrmode): New function.
7581 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7583         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7585 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
7587         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7589 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
7591         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7592         prefix to function labels when generating fast indirect calls.
7594 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
7596         PR bootstrap/62304
7598         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7599         param back from rtx_insn * to rtx.  Rename param from "label" to
7600         "label_or_return", reintroducing "label" as an rtx_insn * after
7601         we've ensured it's not a RETURN.
7602         (first_active_target_insn): Likewise for return type and param;
7603         add a checked cast to rtx_insn * once we've ensured "insn" is not
7604         a RETURN.
7605         (steal_delay_list_from_target): Convert param "pnew_thread" back
7606         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
7607         with JUMP_LABEL.
7608         (own_thread_p): Convert param "thread" back from an rtx_insn * to
7609         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
7610         cast once we've established we're not dealing with a RETURN,
7611         renaming subsequent uses of "thread" to "thread_insn".
7612         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7613         to JUMP_LABEL.
7614         (follow_jumps): Convert return type and param "label" from
7615         rtx_insn * back to rtx.  Move initialization of "value" to after
7616         the handling for ANY_RETURN_P, adding a checked cast there to
7617         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
7618         rename to "this_label_or_return", reintroducing "this_label" as
7619         an rtx_insn * once we've handled the case where it could be an
7620         ANY_RETURN_P.
7621         (fill_slots_from_thread): Rename param "thread" to
7622         "thread_or_return", converting from an rtx_insn * back to an rtx.
7623         Reintroduce name "thread" as an rtx_insn * local with a checked
7624         cast once we've handled the case of it being an ANY_RETURN_P.
7625         Convert local "new_thread" from an rtx_insn * back to an rtx.
7626         Add a checked cast when assigning to "trial" from "new_thread".
7627         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
7628         checked cast to rtx_insn * from "new_thread" when invoking
7629         get_label_before.
7630         (fill_eager_delay_slots): Convert locals "target_label",
7631         "insn_at_target" from rtx_insn * back to rtx.
7632         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7633         (relax_delay_slots): Convert locals "trial", "target_label" from
7634         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
7635         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
7636         invoking update_block.
7637         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7638         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7640         * resource.h (mark_target_live_regs): Undo erroneous conversion
7641         of second param of r214693, converting it back from rtx_insn * to
7642         rtx, since it could be a RETURN.
7644         * resource.c (find_dead_or_set_registers): Similarly, convert
7645         param "jump_target" back from an rtx_insn ** to an rtx *, as we
7646         could be writing back a RETURN.  Rename local rtx_insn * "next" to
7647         "next_insn", and introduce "lab_or_return" as a local rtx,
7648         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7649         (mark_target_live_regs): Undo erroneous conversion
7650         of second param of r214693, converting it back from rtx_insn * to
7651         rtx, since it could be a RETURN.  Rename it from "target" to
7652         "target_maybe_return", reintroducing the name "target" as a local
7653         rtx_insn * with a checked cast, after we've handled the case of
7654         ANY_RETURN_P.
7656 2014-08-29  DJ Delorie  <dj@redhat.com>
7658         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7659         pointer size up to a power of two.
7660         * defaults.h (DWARF2_ADDR_SIZE): Round up.
7661         (POINTER_SIZE_UNITS): New, rounded up value.
7662         * dwarf2asm.c (size_of_encoded_value): Use it.
7663         (dw2_output_indirect_constant_1): Likewise.
7664         * expmed.c (init_expmed_one_conv): We now know the sizes of
7665         partial int modes.
7666         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7667         * optabs.c (expand_float): Use precision, not size.
7668         (expand_fix): Likewise.
7669         * simplify-rtx (simplify_unary_operation_1): Likewise.
7670         * tree-dfa.c (get_ref_base_and_extent): Likewise.
7671         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7672         (default_assemble_integer) Likewise.
7673         (dump_tm_clone_pairs): Likewise.
7674         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7675         * var-tracking.c (adjust_mems): Allow partial-int modes also.
7676         (prepare_call_arguments): Likewise.
7677         * stor-layout.c (finalize_type_size): Preserve precision.
7678         (layout_type): Use precision, not size.
7680         * expr.c (convert_move): If the target has an explicit converter,
7681         use it.
7683 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
7685         * gdbinit.in: Skip various inline functions in rtl.h when
7686         stepping.
7688 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
7690         PR bootstrap/62301
7691         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7693 2014-08-29  Richard Biener  <rguenther@suse.de>
7695         PR tree-optimization/62291
7696         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7697         exactly the vector size needed and use quick_push.
7698         (phi_translate_1): Adjust comment.
7699         (valid_in_sets): Remove block argument and remove pointless
7700         checking of NAMEs.
7701         (dependent_clean): Adjust for removal of block argument.
7702         (clean): Likewise.
7703         (compute_antic_aux): Likewise.
7704         (compute_partial_antic_aux): Likewise.
7706 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7707             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7708             Anna Tikhonova  <anna.tikhonova@intel.com>
7709             Ilya Tocar  <ilya.tocar@intel.com>
7710             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7711             Ilya Verbin  <ilya.verbin@intel.com>
7712             Kirill Yukhin  <kirill.yukhin@intel.com>
7713             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7715         * config/i386/sse.md
7716         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7717         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7718         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7719         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7721 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7722             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7723             Anna Tikhonova  <anna.tikhonova@intel.com>
7724             Ilya Tocar  <ilya.tocar@intel.com>
7725             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7726             Ilya Verbin  <ilya.verbin@intel.com>
7727             Kirill Yukhin  <kirill.yukhin@intel.com>
7728             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7730         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7731         * config/i386/sse.md
7732         (define_mode_iterator VI4_128_8_256): New.
7733         (define_mode_iterator VI2_128_4_256): Ditto.
7734         (define_mode_iterator PMOV_DST_MODE): Rename into
7735         (define_mode_iterator PMOV_DST_MODE_1): this.
7736         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7737         Use PMOV_DST_MODE_1 mode iterator.
7738         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7739         Ditto.
7740         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7741         Ditto.
7742         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7743         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7744         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7745         (define_mode_iterator PMOV_DST_MODE_2): New.
7746         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7747         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7748         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7749         Ditto.
7750         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7751         (define_mode_attr pmov_dst_3): Ditto.
7752         (define_mode_attr pmov_dst_zeroed_3): Ditto.
7753         (define_mode_attr pmov_suff_3): Ditto.
7754         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7755         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7756         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7757         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7758         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7759         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7760         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7761         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7762         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7763         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7764         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7765         (define_mode_attr pmov_dst_4): Ditto.
7766         (define_mode_attr pmov_dst_zeroed_4): Ditto.
7767         (define_mode_attr pmov_suff_4): Ditto.
7768         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7769         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7770         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7771         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7772         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7773         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7774         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7775         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7776         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7777         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7778         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7780 2014-08-29  Richard Biener  <rguenther@suse.de>
7782         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7783         NON_LVALUE_EXPR in gimple.
7785 2014-08-29  Richard Biener  <rguenther@suse.de>
7787         PR middle-end/62292
7788         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7789         from previous refactoring.
7790         (gimple_fold_builtin_strncpy): Likewise.
7792 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
7794         PR bootstrap/62300
7795         * function.c (assign_parm_setup_reg): Remove erroneous checked
7796         cast to rtx_insn * on result of gen_extend_insn in favor of
7797         introducing a new local rtx "pat".
7799 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7801         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7802         to silence warning.
7803         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7805 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7807         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7808         (next_insn): Likewise.
7809         * emit-rtl.c (next_insn): Likewise.
7810         (previous_insn): Likewise.
7811         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7812         "insn" and "next" from rtx to rtx_insn *.
7813         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7814         "insn", "insn1", "vliw_start",  "prologue_end_note",
7815         "last_insn_in_packet".
7817 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7819         * shrink-wrap.h (active_insn_between): Strengthen both params from
7820         rtx to rtx_insn *.
7821         * function.c (active_insn_between): Likewise.
7823 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7825         * genattr.c (main): When writing out insn-attr.h, strengthen param
7826         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7827         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7828         writing out the definition of dfa_clear_single_insn_cache to the
7829         generated insn-automata.c
7831 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7833         * resource.h (clear_hashed_info_for_insn): Strengthen param from
7834         rtx to rtx_insn *.
7835         (incr_ticks_for_insn): Likewise.
7836         (init_resource_info): Likewise.
7838         * resource.c (init_resource_info): Likewise.
7839         (clear_hashed_info_for_insn): Likewise.
7840         (incr_ticks_for_insn): Likewise.
7842         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7843         rtx to rtx_insn *.
7844         (steal_delay_list_from_target): Use methods of "seq".
7845         (try_merge_delay_insns): Use methods of "merged_insns".
7846         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7847         (reorg_redirect_jump): Likewise for param "jump".
7849 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7851         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7852         rtx to rtx_insn *.
7853         * config/s390/s390.c (s390_split_branches): Eliminate top-level
7854         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7855         "set_insn".
7856         (s390_mainpool_finish): In three places, split out a local rtx
7857         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7858         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
7859         and split another local rtx "insn" out into rtx "pat" and
7860         rtx_insn * "insn".
7861         * config/sh/sh.c (output_branchy_insn): Rather than working
7862         directly on operands[9], introduce local rtx_code_label *
7863         variables named "lab" in two places, working on them, and then
7864         assigning them to operands[9], so that the intervening operations
7865         are known by the type system to be on insns.
7867 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7869         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7870         const rtx_insn *.
7872         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7873         in invocation of INSN_HAS_LOCATION.
7875 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7877         * config/rs6000/altivec.h (vec_xl): New #define.
7878         (vec_xst): Likewise.
7879         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7880         (XXSPLTD_V2DI): Likewise.
7881         (DIV_V2DI): Likewise.
7882         (UDIV_V2DI): Likewise.
7883         (MUL_V2DI): Likewise.
7884         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7885         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7886         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7887         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7888         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7889         (UNSPEC_VSX_DIVSD): Likewise.
7890         (UNSPEC_VSX_DIVUD): Likewise.
7891         (UNSPEC_VSX_MULSD): Likewise.
7892         (vsx_mul_v2di): New insn-and-split.
7893         (vsx_div_v2di): Likewise.
7894         (vsx_udiv_v2di): Likewise.
7895         (vsx_xxspltd_<mode>): New insn.
7897 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7899         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7900         NEXT_INSN.
7901         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7902         (NEXT_INSN): Likewise.
7903         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7904         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7905         const rtx_insn *.
7906         (no_labels_between_p): Likewise for both params.
7908         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7909         cast when using NEXT_INSN on operands[2].
7910         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7911         "insn" from rtx to rtx_insn *, adding a checked cast.
7912         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7913         rtx_insn *.
7914         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7915         for third param.
7916         (arc_text_label): Likewise for param "insn".
7917         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7918         "insn".
7919         (arc_ccfsm_record_condition): Likewise for param "jump".
7920         (arc_text_label): Likewise for local "label".
7921         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7922         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7923         a method for typesafety.  Add a checked cast.
7924         * config/arc/constraints.md (Clb): Add a checked cast when getting
7925         the CODE_LABEL from a LABEL_REF.
7926         * config/arm/arm.c (require_pic_register): Strengthen locals
7927         "seq", "insn" from rtx to rtx_insn *.
7928         (create_fix_barrier): Likewise for locals "selected", "next".
7929         (thumb1_reorg): Likewise for locals "prev", "insn".
7930         (arm_expand_prologue): Likewise for local "last".
7931         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7932         operands[0].
7933         (thumb2_output_casesi): Likewise for operands[2].
7934         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7935         strengthen local "insn" from rtx to rtx_insn *.
7936         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7937         type and param "insn".
7938         (find_prev_insn_start): Likewise.
7939         (hwloop_optimize): Likewise for locals "insn", "last_insn",
7940         "prev".
7941         (gen_one_bundle): Likewise for loal "t".
7942         (find_load): Likewise for param "insn".
7943         (workaround_speculation): Likewise for locals "insn", "next",
7944         "target", "next_tgt".
7945         * config/c6x/c6x.c (assign_reservations): Likewise for both params
7946         and for locals "insn", "within", "last".
7947         (count_unit_reqs): Likewise for params "head", "tail" and local
7948         "insn".
7949         (try_rename_operands): Likewise for params "head", "tail".
7950         (reshuffle_units): Likewise for locals "head", "tail", "insn".
7951         (struct c6x_sched_context): Likewise for fields
7952         "last_scheduled_insn", "last_scheduled_iter0".
7953         (init_sched_state): Replace NULL_RTX with NULL.
7954         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7955         to rtx_insn *.
7956         (undo_split_delayed_nonbranch): Likewise for param and for local
7957         "prev".
7958         (conditionalize_after_sched): Likewise for local "insn".
7959         (bb_earliest_end_cycle): Likewise.
7960         (filter_insns_above): Likewise for locals "insn", "next".
7961         (hwloop_optimize): Remove redundant checked cast.
7962         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7963         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7964         NULL_RTX with NULL.
7965         (cris_simple_epilogue): Likewise.
7966         (cris_expand_prologue): Likewise.
7967         (cris_expand_epilogue): Likewise.
7968         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7969         local "insn" from rtx to rtx_insn *.
7970         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7971         (struct frv_packet_group): Likewise for the elements within array
7972         fields "insns", "sorted", and for field "nop".
7973         (frv_packet): Likewise for the elements within array field
7974         "insns".
7975         (frv_add_insn_to_packet): Likewise for param "insn".
7976         (frv_insert_nop_in_packet): Likewise for param "insn" and local
7977         "last".
7978         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7979         (frv_sort_insn_group_1): Likewise for local "insn".
7980         (frv_optimize_membar_local): Likewise.
7981         (frv_align_label): Likewise for locals "x", "last", "barrier",
7982         "label".
7983         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7984         local.
7985         (ia64_sched_init): Likewise for local "insn".
7986         (scheduled_good_insn): Likewise for param "last".
7987         (struct _ia64_sched_context): Likewise for field
7988         "last_scheduled_insn".
7989         (ia64_init_sched_context): Replace NULL_RTX with NULL.
7990         (struct bundle_state): Likewise for field "insn".
7991         (issue_nops_and_insn): Likewise for param "insn".
7992         (get_next_important_insn): Likewise for return type and both
7993         params.
7994         (ia64_add_bundle_selector_before): Likewise for param "insn".
7995         (bundling): Likewise for params "prev_head_insn", "tail" and
7996         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
7997         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7998         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7999         Strengthen final param from rtx to rtx_insn *.
8000         (iq2000_move_1word): Likewise for second param.
8001         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8002         param "cur_insn" and local "next_insn".
8003         (iq2000_move_1word): Likewise for param "insn".
8004         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8005         casts when using NEXT_INSN on operands[1].
8006         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8007         "insn" from rtx to rtx_insn *.
8008         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8009         "x", introducing local rtx_insn * "insn" for when working with the
8010         CODE_LABEL of the LABEL_REF.
8011         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8012         rtx_insn *.
8013         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8014         param.
8015         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8016         type.
8017         (conditionalize_block): Likewise for return type and param.
8018         (mcore_is_dead): Likewise for param "first" and local "insn".
8019         (emit_new_cond_insn): Likewise for return type.
8020         (conditionalize_block): Likewise for return type, param, and
8021         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8022         "newinsn".
8023         (conditionalize_optimization): Likewise for local "insn".
8024         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8025         using NEXT_INSN.
8026         * config/microblaze/microblaze.md: Add checked casts when using
8027         NEXT_INSN.
8028         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8029         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8030         and rtx_insn * "insn".
8031         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8032         checked cast when using NEXT_INSN on operands[2].
8033         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8034         local "insn" from rtx to rtx_insn *.
8035         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8036         Likewise.
8037         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8038         Add a checked cast when using NEXT_INSN on operands[1].
8039         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8040         rtx to rtx_insn *.
8041         (pa_output_cbranch): Likewise for final param.
8042         (pa_output_lbranch): Likewise for second param.
8043         (pa_output_bb): Likewise for third param.
8044         (pa_output_bvb): Likewise.
8045         (pa_output_dbra): Likewise for second param.
8046         (pa_output_movb): Likewise.
8047         (pa_output_parallel_movb): Likewise.
8048         (pa_output_parallel_addb): Likewise.
8049         (pa_output_millicode_call): Likewise for first param.
8050         (pa_output_mul_insn): Likewise for second param.
8051         (pa_output_div_insn): Likewise for third param.
8052         (pa_output_mod_insn): Likewise for second param.
8053         (pa_jump_in_call_delay): Likewise for param.
8054         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8055         (pa_output_div_insn): Likewise.
8056         (pa_output_mod_insn): Likewise.
8057         (pa_output_cbranch): Likewise.
8058         (pa_output_lbranch): Likewise.
8059         (pa_output_bb): Likewise.
8060         (pa_output_bvb): Likewise.
8061         (pa_output_dbra): Likewise.
8062         (pa_output_movb): Likewise.
8063         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8064         to simplify and for typesafety.
8065         (pa_output_call): Use method of rtx_sequence *.
8066         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8067         (pa_jump_in_call_delay): Likewise.
8068         (pa_output_parallel_movb): Likewise.
8069         (pa_output_parallel_addb): Likewise.
8070         (pa_following_call): Likewise.
8071         (pa_combine_instructions): Likewise for locals "anchor",
8072         "floater".
8073         (pa_can_combine_p): Likewise for params "anchor", "floater" and
8074         locals "start", "end".
8075         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8076         param "insn" and local "local_insn".
8077         (picochip_final_prescan_insn): Likewise for local "local_insn".
8078         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8079         local "insn".
8080         (uses_TOC): Likewise.
8081         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8082         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8083         splitting out to more tightly-scoped locals, 3 as rtx and one as
8084         rtx_insn *.
8085         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8086         to rtx_insn *.
8087         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8088         where needed.
8089         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8090         to rtx_insn *.
8091         (fixup_addr_diff_vecs): Likewise.
8092         (reg_unused_after): Likewise for param 2.
8093         (sh_can_redirect_branch): Likewise for both params.
8094         (check_use_sfunc_addr): Likewise for param 1.
8095         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8096         (find_barrier): Likewise for local "last_got".
8097         (gen_block_redirect): Likewise for return type, param "jump" and
8098         locals "prev", "scan", "next", "insn".
8099         (struct far_branch): Likewise for fields "near_label",
8100         "insert_place", "far_label".
8101         (gen_far_branch): Likewise for local "jump".
8102         (fixup_addr_diff_vecs): Likewise for param "first" and locals
8103         "insn", "prev".
8104         (barrier_align): Likewise for param and for locals "prev", "x".
8105         Introduce local rtx_sequence * "prev_seq" and use insn method for
8106         typesafety and clarity.
8107         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8108         (get_dest_uid): Likewise for local "dest".
8109         (split_branches): Likewise for locals "next", "beyond", "label",
8110         "block", "far_label".  Add checked casts when assigning to
8111         bp->far_label and "far_label".
8112         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8113         (sequence_insn_p): Likewise.
8114         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
8115         more loop-scoped rtx "insn" when walking LABEL_REFS.
8116         (sh_can_redirect_branch): Strengthen both params from rtx to
8117         rtx_insn *.
8118         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
8119         new local rtx_sequence * "seq" via a dyn_cast, and use a method
8120         for clarity and typesafety.
8121         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8122         "insn" from rtx to rtx_insn *.
8123         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8124         when using NEXT_INSN on the CODE_LABEL in operands[2].
8125         (define_insn "casesi_worker_2"): Likewise.
8126         (define_insn "casesi_shift_media"): Likewise.
8127         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8128         operands[3].
8129         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8130         Strengthen field "insn" from rtx to rtx_insn *.
8131         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8132         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8133         param "start_insn" and local "start_insn".
8134         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8135         field "insn".
8136         (find_set_of_reg_bb): Likewise for param "insn".
8137         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8138         (trace_reg_uses): Likewise for param "start_insn".
8139         (sh_treg_combine::cbranch_trace): Likewise for field
8140         "cbranch_insn".
8141         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8142         param "insn".
8143         (sh_treg_combine::record_set_of_reg): Likewise for param
8144         "start_insn" and local "i".
8145         (sh_treg_combine::can_remove_cstore): Likewise for local
8146         "prev_insn".
8147         (sh_treg_combine::try_optimize_cbranch): Likewise for param
8148         "insn".
8149         (sh_treg_combine::execute): Likewise for local "i".
8150         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8151         param.
8152         (sparc_check_64): Likewise for second param.
8153         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8154         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
8155         dyn_cast, using its insn method for typesafety and clarity.
8156         (empty_delay_slot): Strengthen param "insn" from rtx to
8157         rtx_insn *.
8158         (set_extends): Likewise.
8159         (sparc_check_64): Likewise.
8160         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8161         for locals "seq", "last_insn".
8162         (combine_bnp): Likewise for param "insn".
8163         (xstormy16_reorg): Likewise for local "insn".
8164         * config/v850/v850.c (substitute_ep_register): Likewise for params
8165         "first_insn", "last_insn" and local "insn".
8166         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8167         elements of "regs" array, and local "insn".
8168         * except.c (emit_note_eh_region_end): Likewise for param "insn".
8169         * final.c (final_sequence): Strengthen this global from rtx to
8170         rtx_sequence *.
8171         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8172         rtx_insn *.
8173         (final_scan_insn): Update assignment to "final_sequence" to be
8174         from "seq", the cast version of "body", for type-safety.
8175         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8176         "insns" from rtx to rtx_insn *.
8177         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8178         * genattr.c (main): When writing out generated insn-attr.h,
8179         strengthen params 1 and 3 of eligible_for_delay,
8180         eligible_for_annul_true, eligible_for_annul_false from rtx to
8181         rtx_insn *.
8182         * genattrtab.c (write_eligible_delay): Likewise when writing out
8183         generated insn-attrtab.c; also local "insn" the generated
8184         functions.
8185         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8186         to rtx_insn *.
8187         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8188         "start_label" from rtx to rtx_insn *.
8189         * ira.c (decrease_live_ranges_number): Likewise for local "p".
8190         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8191         "insns" and local "insn".
8192         (validate_equiv_mem): Likewise for param "start" and local "insn".
8193         (memref_used_between_p): Likewise for params "start", "end" and
8194         local "insn".
8195         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8196         final param.
8197         * loop-doloop.c (doloop_optimize): Within region guarded by
8198         INSN_P (doloop_pat), introduce a new local rtx_insn *
8199         "doloop_insn" via a checked cast, and use it for typesafety,
8200         eventually writing the value back into doloop_pat.
8201         * output.h (final_sequence): Strengthen this global from rtx to
8202         rtx_sequence *.
8203         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8204         reintroducing "insn" as an rtx_insn * via a checked cast.
8205         Strengthen param "attempt" and local "new_insn"from rtx to
8206         rtx_insn *.
8207         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8208         to rtx_insn *.
8209         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8210         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8211         "p" in favor of more tightly-scoped replacements, sometimes rtx
8212         and sometimes rtx_insn *, as appropriate.
8213         (delete_output_reload): Eliminate top-level rtx "i1", splitting
8214         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8215         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
8216         local "trial" from rtx to rtx_insn *.
8217         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8218         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
8219         rtx_sequence * and use methods for clarity and typesafety.
8220         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8221         rtx to rtx_insn *.  Strenghten local "li" from rtx to
8222         rtx_insn_list * and use its methods for clarity and typesafety.
8223         (steal_delay_list_from_target): Strengthen param "insn" from rtx
8224         to rtx_insn *.
8225         (steal_delay_list_from_fallthrough): Likewise.
8226         (try_merge_delay_insns): Likewise for param "thread" and locals
8227         "trial", "next_trial", "delay_insn".
8228         (redundant_insn): Likewise for param "target" and local "trial".
8229         (own_thread_p): Likewise for param "thread" and locals
8230         "active_insn", "insn".
8231         (get_label_before): Likewise for param "insn".
8232         (fill_simple_delay_slots): Likewise for local "new_label"; use
8233         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8234         (label_before_next_insn): Strengthen return type and local "insn"
8235         from rtx to rtx_insn *.
8236         (relax_delay_slots): Likewise for locals "other", "tmp".
8237         (make_return_insns): Likewise for param "first" and locals "insn",
8238         "jump_insn", "prev".  Move declaration of "pat" to its assignment
8239         and strengthen from rtx to rtx_sequence *.  Use its methods for
8240         clarity and typesafety.
8241         * rtlanal.c (no_labels_between_p): Strengthen params from
8242         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
8243         rtx_insn *.
8244         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8245         from const_rtx to const rtx_insn *.
8246         (reg_set_between_p): Rename param "from_insn" to
8247         "uncast_from_insn", and reintroduce "from_insn" as a
8248         const rtx_insn * via a checked cast.
8249         (modified_between_p): Likewise for param "start" as "uncast_start".
8250         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8251         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8252         "tmp", head" from rtx to rtx_insn *.
8253         (recompute_rev_top_order): Likewise for local "insn".
8254         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8255         * store-motion.c (build_store_vectors): Likewise for local "insn".
8256         Strengthen local "st" from rtx to rtx_insn_list * and use methods
8257         for clarity and typesafety.
8258         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8259         rtx to rtx_insn *.
8260         (computation_cost): Likewise for local "seq".
8261         (get_address_cost): Likewise.
8263 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8265         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8266         const rtx_insn *.
8267         (label_is_jump_target_p): Likewise for second param.
8269         * rtlanal.c (tablejump_p): Likewise for param "insn".
8270         (label_is_jump_target_p): Likewise for param "jump_insn".
8272 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8274         * rtl.h (find_first_parameter_load): Strengthen return type and
8275         both params from rtx to rtx_insn *.
8276         * rtlanal.c (find_first_parameter_load): Strengthen return type,
8277         both params and locals "before", "first_set" from rtx to
8278         rtx_insn *.  Remove now-redundant cast.
8279         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8281 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8283         * rtl.h (find_last_value): Delete.
8284         * rtlanal.c (find_last_value): Delete.
8286 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8288         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8289         from rtx to rtx_insn *.
8290         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8291         rtx "note" with new local rtx_insn * "new_head" when calculating
8292         head insn of new basic block.
8293         * combine.c (combine_split_insns): Strengthen return type and local
8294         "ret" from rtx to rtx_insn *.
8295         (likely_spilled_retval_p): Likewise for locals "use" and "p".
8296         (try_combine): Eliminate local "m_split", splitting into new
8297         locals "m_split_insn" and "m_split_pat".
8298         (find_split_point): Strengthen local "seq" from rtx into
8299         rtx_insn *.
8300         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8301         locals "label", "branch".
8302         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8303         for local "insn".
8304         (define_expand "umulsi3_highpart"): Likewise for local "insn".
8305         * dse.c (note_add_store_info): Likewise for fields "first",
8306         "current".
8307         (note_add_store): Likewise for local "insn".
8308         (emit_inc_dec_insn_before): Likewise for locals "insn",
8309         "new_insn", "cur".
8310         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8311         (replace_read): Likewise for locals "insns", "this_insn".
8312         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8313         (notice_eh_throw): Likewise for param "insn".
8314         (before_next_cfi_note): Likewise for return type, param, and local
8315         "prev".
8316         (connect_traces): Likewise for local "note".
8317         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8318         (verify_rtl_sharing): Likewise.
8319         (unshare_all_rtl_in_chain): Likewise for param "insn".
8320         (get_first_nonnote_insn): Likewise for local "insn".
8321         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
8322         "seq" and use its methods to clarify things.
8323         (next_insn): Strengthen return type from rtx to rtx_insn *.
8324         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8325         local rtx_insn * using a checked cast, dropping a checked cast
8326         made redundant by this change.  Use a cast to and method of
8327         rtx_sequence to clarify the code.
8328         (previous_insn): Rename param "insn" to "uncast_insn" and
8329         reintroduce "insn" as a local rtx_insn * using a checked cast,
8330         dropping a checked cast made redundant by this change.  Use a cast
8331         to and method of rtx_sequence to clarify the code.
8332         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8333         reintroduce "insn" as a local rtx_insn * using a checked cast,
8334         dropping a checked cast made redundant by this change.
8335         (next_nonnote_insn_bb): Likewise.
8336         (prev_nonnote_insn): Likewise.
8337         (prev_nonnote_insn_bb): Likewise.
8338         (next_nondebug_insn): Likewise.
8339         (prev_nondebug_insn): Likewise.
8340         (next_nonnote_nondebug_insn): Likewise.
8341         (prev_nonnote_nondebug_insn): Likewise.
8342         (next_real_insn): Likewise.
8343         (prev_real_insn): Likewise.
8344         (next_active_insn): Likewise.
8345         (prev_active_insn): Likewise.
8346         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
8347         clarity.
8348         (prev_cc0_setter): Likewise.
8349         (try_split): Rename param "trial" to "uncast_trial" and
8350         reintroduce "insn" as a local rtx_insn * using a checked cast,
8351         dropping checked casts made redundant by this change.
8352         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8353         rtx to rtx_insn *.
8354         (remove_insn): Rename param "insn" to "uncast_insn" and
8355         reintroduce "insn" as a local rtx_insn * using a checked cast.
8356         (emit_pattern_after_setloc): Likewise for param "after", as
8357         "uncast_after".
8358         (emit_pattern_after): Likewise.  Strengthen local "prev" from
8359         rtx to rtx_insn *.
8360         (emit_pattern_before_setloc): Rename param "before" to
8361         "uncast_before" and reintroduce "before" as a local rtx_insn *
8362         using a checked cast.  Strengthen locals "first", "last" from
8363         rtx to rtx_insn *.
8364         (emit_pattern_before): Likewise rename/cast param "before" to
8365         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8366         * except.c (copy_reg_eh_region_note_forward): Strengthen param
8367         "first" and local "insn" from rtx to rtx_insn *.
8368         (copy_reg_eh_region_note_backward): Likewise for param "last"
8369         and local "insn".
8370         * expr.c (fixup_args_size_notes): Rename param "last" to
8371         "uncast_last" and reintroduce "last" as a local rtx_insn *
8372         using a checked cast.  Strengthen local "insn" from rtx to
8373         rtx_insn *.
8374         * function.c (set_insn_locations): Strengthen param "insn" from
8375         rtx to rtx_insn *.
8376         (record_insns): Likewise for param "insns" and local "tmp".
8377         (active_insn_between): Rename param "tail" to
8378         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8379         using a checked cast.
8380         (thread_prologue_and_epilogue_insns): Split out top-level local
8381         rtx "seq" into three different rtx_insn * locals.  Strengthen
8382         local "prologue_seq" from rtx to rtx_insn *.
8383         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8384         from rtx to rtx_insn *.
8385         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8386         (priority): Likewise for locals "prev_first", "twin".
8387         (setup_insn_max_reg_pressure): Likewise for param "after".
8388         (sched_setup_bb_reg_pressure_info): Likewise.
8389         (no_real_insns_p): Strengthen params from const_rtx to
8390         const rtx_insn *.
8391         (schedule_block): Strengthen local "next_tail" from rtx to
8392         rtx_insn *.
8393         * ifcvt.c (find_active_insn_before): Strengthen return type and
8394         param "insn" from rtx to rtx_insn *.
8395         (find_active_insn_after): Likewise.
8396         (cond_exec_process_insns): Likewise for param "start" and local "insn".
8397         (cond_exec_process_if_block): Likewise for locals "then_start",
8398         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8399         (noce_process_if_block): Likewise for local "jump".
8400         (merge_if_block): Likewise for two locals named "end".
8401         (cond_exec_find_if_block): Likewise for local "last_insn".
8402         * jump.c (delete_related_insns): Rename param "insn" to
8403         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8404         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
8405         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8406         NULL.
8407         (split_reg): Likewise.
8408         * lra.c (lra_process_new_insns): Likewise.
8409         * modulo-sched.c (permute_partial_schedule): Strengthen param
8410         "last" from rtx to rtx_insn *.
8411         * optabs.c (add_equal_note): Likewise for param "insns" and local
8412         "last_insn".
8413         (expand_binop_directly): Add checked casts to rtx_insn * within
8414         NEXT_INSN (pat) uses.
8415         (expand_unop_direct): Likewise.
8416         (maybe_emit_unop_insn): Likewise.
8417         * recog.c (peep2_attempt): Strengthen locals "last",
8418         "before_try", "x" from rtx to rtx_insn *.
8419         * reorg.c (optimize_skip): Strengthen return type and local
8420         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
8421         and locals "trial", "next_trial" from rtx to rtx_insn *.
8422         * resource.c (next_insn_no_annul): Strengthen return type and
8423         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
8424         rtx_sequence to clarify the code.
8425         (mark_referenced_resources): Add a checked cast to rtx_insn *
8426         within PREV_INSN (x).
8427         (find_dead_or_set_registers): Strengthen return type, param
8428         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8429         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
8430         to rtx_insn **.
8431         (mark_target_live_regs): Strengthen params "insns" and "target",
8432         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8433         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
8434         the code.
8435         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8436         from rtx to rtx_insn *.
8437         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8438         from rtx to rtx_insn *.
8439         (copy_reg_eh_region_note_backward): Likewise.
8440         (unshare_all_rtl_in_chain): Likewise for sole param.
8441         (dump_rtl_slim): Strengthen second and third params from const_rtx
8442         to const rtx_insn *.
8443         * sched-deps.c (sched_free_deps): Strengthen params "head" and
8444         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8445         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8446         "next_tail" from rtx to rtx_insn *.
8447         (begin_move_insn): Likewise for local "next".
8448         * sched-int.h (sched_free_deps): Likewise for first and second
8449         params.
8450         (no_real_insns_p): Strengthen both params from const_rtx to
8451         const rtx_insn *.
8452         (sched_setup_bb_reg_pressure_info): Strengthen second params from
8453         rtx to rtx_insn *.
8454         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8455         "next_tail".
8456         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8457         and locals "insn", "tail" from const_rtx to const rtx_insn *.
8458         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8459         rtx_insn *.
8460         (debug_rtl_slim): Strengthen params "first" and "last" from
8461         const_rtx to const rtx_insn *.
8462         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8463         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8464         (convert_to_simple_return): Likewise for param "returnjump".
8465         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8466         "prologue_seq".
8467         (convert_to_simple_return): Likewise for param "returnjump".
8468         * valtrack.c (propagate_for_debug): Likewise for params
8469         "insn", "last".
8470         * valtrack.h (propagate_for_debug): Likewise for second param.
8472 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8474         * output.h (insn_current_reference_address): Strengthen param
8475         from rtx to rtx_insn *.
8476         * final.c (insn_current_reference_address): Likewise.
8478 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8480         * basic-block.h (inside_basic_block_p): Strengthen param from
8481         const_rtx to const rtx_insn *.
8482         * cfgbuild.c (inside_basic_block_p): Likewise.
8484 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8486         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8487         rtx_insn *.
8488         (get_trace_info): Likewise for param "insn".
8489         (save_point_p): Likewise.
8490         (maybe_record_trace_start): Likewise for both params.
8491         (maybe_record_trace_start_abnormal): Likewise.
8492         (create_trace_edges): Likewise for sole param and for three of the
8493         locals named "lab".
8494         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8495         to rtx_insn *, and update a call to pat->element to pat->insn.
8497 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8499         * function.h (struct expr_status): Convert field "x_forced_labels"
8500         from rtx_expr_list * to rtx_insn_list *.
8502         * cfgbuild.c (make_edges): Convert local "x" from an
8503         rtx_expr_list * to an rtx_insn_list *, replacing use of
8504         "element" method with "insn" method.
8505         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8506         * except.c (sjlj_emit_dispatch_table): Replace use of
8507         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8508         forced_labels.
8509         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8510         rtx_expr_list * to an rtx_insn_list *, replacing use of
8511         "element" method with "insn" method.
8512         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8513         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8514         rtx_insn *, adding a checked cast.  Replace use of
8515         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8516         forced_labels.
8517         (expand_label): Likewise for local "label_r".
8519 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8521         * function.h (struct rtl_data): Convert field
8522         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8523         rtx_insn_list *.
8524         * rtl.h (remove_node_from_insn_list): New prototype.
8526         * builtins.c (expand_builtin): When prepending to
8527         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8528         gen_rtx_EXPR_LIST.
8529         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8530         to rtx_insn_list *, and use its "insn" method rather than
8531         "element" method.
8532         * cfgrtl.c (delete_insn): Use new function
8533         remove_node_from_insn_list rather than
8534         remove_node_from_expr_list.
8535         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8536         to rtx_insn_list *, and use its "insn" method rather than
8537         "element" method.
8538         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8539         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8540         * rtlanal.c (remove_node_from_insn_list): New function, adapted
8541         from remove_node_from_expr_list.
8542         * stmt.c (expand_label): When prepending to
8543         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8544         gen_rtx_EXPR_LIST.
8546 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8548         * function.h (struct rtl_data): Strengthen fields "x_return_label"
8549         and "x_naked_return_label" from rtx to rtx_code_label *.
8551 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8553         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8554         (SET_NEXT_INSN): Likewise.
8555         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8557         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8558         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
8559         to split out the SEQUENCE from local "bundle", strengthening the
8560         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8561         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8562         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8563         and the type of the elements of the "slot" array from rtx to
8564         rtx_insn *.
8565         (reorg_split_calls): Likewise for locals "insn" and "next", and
8566         the type of the elements of the "slot" array.
8568         * config/frv/frv.c (frv_nops): Likewise for the elements of this
8569         array.
8570         (frv_function_prologue): Likewise for locals "insn", "next",
8571         "last_call".
8572         (frv_register_nop): Introduce a local "nop_insn" to be the
8573         rtx_insn * containing rtx "nop".
8575         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8576         used as an insn and sometimes as a pattern, so rename it to
8577         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8578         using it where dealing with the core insn.
8580         * config/picochip/picochip.c (reorder_var_tracking_notes):
8581         Strengthen locals "insn", "next", "last_insn", "queue",
8582         "next_queue", "prev" from rtx to rtx_insn *.
8584         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8585         the second param is an rtx_insn ** rather than an rtx **.
8586         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8587         from rtx to rtx_sequence *, and introduce local named "sequence",
8588         using methods of rtx_sequence to clarify the code.
8589         (remove_insn): Introduce local rtx_sequence * named "sequence" and
8590         use its methods.
8591         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8592         Rename param "after" to "uncast_after", reintroducing "after" as a
8593         local rtx_insn * with a checked cast.
8594         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8595         reintroducing "after" as a local rtx_insn * with a checked cast.
8596         Strengthen local "last" from rtx to rtx_insn * and remove the
8597         now-redundant checked casts.
8598         (copy_delay_slot_insn): Strengthen return type and param from rtx
8599         to rtx_insn *.
8601         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8602         "last" from rtx to rtx_insn *.
8604 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8606         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8607         param from rtx to rtx_insn *.
8609         * emit-rtl.c (copy_delay_slot_insn): Likewise.
8611         * reorg.c (skip_consecutive_labels): Strengthen return type, param
8612         and local "insn" from rtx to rtx_insn *.
8613         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8614         (unfilled_slots_next): Likewise.
8615         (function_return_label): Strengthen from rtx to rtx_code_label *.
8616         (function_simple_return_label): Likewise.
8617         (first_active_target_insn): Strengthen return type and param from
8618         rtx to rtx_insn *.
8619         (find_end_label): Strengthen return type from rtx to
8620         rtx_code_label *; strengthen locals as appropriate.
8621         (emit_delay_sequence): Strengthen return type, param "insn" and
8622         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
8623         and local "li" from rtx to rtx_insn_list *, using methods of
8624         rtx_insn_list for clarity and typesafety.
8625         (add_to_delay_list): Strengthen return type and param "insn" from
8626         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
8627         rtx_insn_list * and use methods of rtx_insn_list.
8628         (delete_from_delay_slot): Strengthen return type, param "insn",
8629         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8630         Strengthen local "seq" from rtx to rtx_sequence *, and local
8631         "delay_list" from rtx to rtx_insn_list *, using methods of
8632         rtx_sequence for clarity and type-safety.
8633         (delete_scheduled_jump): Add checked cast when invoking
8634         delete_from_delay_slot.  Strengthen local "trial" from rtx to
8635         rtx_insn *.
8636         (optimize_skip): Strengthen return type and local "delay_list"
8637         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
8638         rtx_insn *.
8639         (steal_delay_list_from_target): Strengthen return type, param
8640         "delay_list" and local "new_delay_list" from rtx to
8641         rtx_insn_list *.  Strengthen param "seq" from rtx to
8642         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
8643         rtx_insn **.
8644         Split out local "temp" into multiple more-tightly scoped locals:
8645         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
8646         of rtx_insn_list and rtx_sequence for clarity and typesafety.
8647         Strengthen locals named "trial" from rtx to rtx_insn *.
8648         (steal_delay_list_from_fallthrough): Strengthen return type and
8649         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
8650         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
8651         Strengthen local "trial" from rtx to rtx_insn *.
8652         (try_merge_delay_insns): Strength local "merged_insns" from rtx
8653         to rtx_insn_list * and use its methods.  Strengthen local "pat"
8654         from rtx to rtx_sequence * and use its methods.  Strengthen locals
8655         "dtrial" and "new_rtx" from rtx to rtx_insn *.
8656         (get_label_before): Strengthen return type and local "label" from
8657         rtx to rtx_insn *.
8658         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8659         "next_trial", "next", prev".  Strengthen local "delay_list" from
8660         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
8661         rtx_insn **.
8662         (follow_jumps): Strengthen return type, param "label" and locals
8663         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8664         (fill_slots_from_thread): Strengthen return type, param
8665         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
8666         "insn", "thread", "opposite_thread" and locals "new_thread",
8667         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
8668         "sequence" from a checked cast to rtx_sequence so that we can call
8669         steal_delay_list_from_target and steal_delay_list_from_fallthrough
8670         with an rtx_sequence *.
8671         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8672         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8673         Strengthen local "delay_list" from rtx to rtx_insn_list *.
8674         (relax_delay_slots): Strengthen param "first" and locals "insn",
8675         "next", "trial", "delay_insn", "target_label" from rtx to
8676         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
8677         Introduce a local "trial_seq" for PATTERN (trial) of type
8678         rtx_sequence *, in both cases using methods of rtx_sequence.
8679         (dbr_schedule): Strengthen param "first" and locals "insn",
8680         "next", "epilogue_insn" from rtx to rtx_insn *.
8682 2014-08-28  Richard Biener  <rguenther@suse.de>
8684         PR tree-optimization/62283
8685         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8686         Do not peel loops for alignment where the vector loop likely
8687         doesn't run at least VF times.
8689 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
8691         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8692         important_candidates.  Consider all important candidates if
8693         IVS doesn't give any result.  Remove check on ivs->upto.
8694         (try_add_cand_for): Call iv_ca_add_use only once.
8696 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8697             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8698             Anna Tikhonova  <anna.tikhonova@intel.com>
8699             Ilya Tocar  <ilya.tocar@intel.com>
8700             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8701             Ilya Verbin  <ilya.verbin@intel.com>
8702             Kirill Yukhin  <kirill.yukhin@intel.com>
8703             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8705         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8706         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8707         masking.
8708         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8709         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8710         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8711         (define_insn "*mul<mode>3"): Add EVEX version.
8713 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8714             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8715             Anna Tikhonova  <anna.tikhonova@intel.com>
8716             Ilya Tocar  <ilya.tocar@intel.com>
8717             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8718             Ilya Verbin  <ilya.verbin@intel.com>
8719             Kirill Yukhin  <kirill.yukhin@intel.com>
8720             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8722         * config/i386/sse.md
8723         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8724         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8725         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8726         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8727         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8728         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8729         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8730         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8731         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8732         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8733         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8734         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8735         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8736         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8737         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8738         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8740 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8741             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8742             Anna Tikhonova  <anna.tikhonova@intel.com>
8743             Ilya Tocar  <ilya.tocar@intel.com>
8744             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8745             Ilya Verbin  <ilya.verbin@intel.com>
8746             Kirill Yukhin  <kirill.yukhin@intel.com>
8747             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8749         * config/i386/sse.md
8750         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8751         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8752         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8754 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8755             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8756             Anna Tikhonova  <anna.tikhonova@intel.com>
8757             Ilya Tocar  <ilya.tocar@intel.com>
8758             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8759             Ilya Verbin  <ilya.verbin@intel.com>
8760             Kirill Yukhin  <kirill.yukhin@intel.com>
8761             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8763         * config/i386/sse.md
8764         (define_mode_iterator VI128_256): New.
8765         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8767 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8768             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8769             Anna Tikhonova  <anna.tikhonova@intel.com>
8770             Ilya Tocar  <ilya.tocar@intel.com>
8771             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8772             Ilya Verbin  <ilya.verbin@intel.com>
8773             Kirill Yukhin  <kirill.yukhin@intel.com>
8774             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8776         * config/i386/sse.md
8777         (define_mode_iterator VI8_256_512): New.
8778         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8779         Ditto.
8780         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8781         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8782         Ditto.
8783         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8785 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8787         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
8788         pointer to the cumulative reloc value and return the value for
8789         this reloc instead.
8790         (compute_reloc_for_rtx): Take a const_rtx.  Call
8791         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8792         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
8793         for_each_rtx for the CONST case.
8795 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8797         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8798         (mark_constants_in_pattern): ...this new function to iterate over
8799         all the subrtxes.
8800         (mark_constants): Update accordingly.
8802 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8804         * varasm.c: Include rtl-iter.h.
8805         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8806         Remove the pointer to the cumulative hashval_t and just return
8807         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
8808         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8809         Accumulate the hashval_ts here instead of const_rtx_hash_1.
8811 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8813         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8814         Give real type of data parameter.  Remove return value.
8815         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8816         to iterate over subrtxes.
8818 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8820         * var-tracking.c (use_narrower_mode_test): Turn from being a
8821         for_each_rtx callback to being a function that examines each
8822         subrtx itself.
8823         (adjust_mems): Update accordingly.
8825 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8827         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8828         callback to being a function that examines each subrtx itself.
8829         Remove handling of null rtxes.
8830         (add_uses): Update accordingly.
8832 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8834         * var-tracking.c: Include rtl-iter.h.
8835         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8836         to being a function that examines each subrtx itself.
8837         (use_type): Update accordingly.
8839 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8841         * store-motion.c: Include rtl-iter.h.
8842         (extract_mentioned_regs_1): Delete.
8843         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8844         for_each_rtx to iterate over subrtxes.
8846 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8848         * sel-sched.c: Include rtl-iter.h
8849         (count_occurrences_1): Delete.
8850         (count_occurrences_equiv): Turn rtxes into const_rtxes.
8851         Use FOR_EACH_SUBRTX rather than for_each_rtx.
8853 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8855         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8856         * rtlanal.c (tls_referenced_p_1): Delete.
8857         (tls_referenced_p): Take a const_rtx rather than an rtx.
8858         Use FOR_EACH_SUBRTX rather than for_each_rtx.
8860 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8862         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8863         (for_each_inc_dec): Take an rtx rather than an rtx *.
8864         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8865         (cselib_record_sets): Likewise.
8866         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8867         (check_for_inc_dec): Likewise.
8868         * rtlanal.c (for_each_inc_dec_ops): Delete.
8869         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8870         rather than a pointer to the memory address.  Replace
8871         for_each_inc_dec_ops argument with separate function and data
8872         arguments.  Abort on non-autoinc addresses.
8873         (for_each_inc_dec_find_mem): Delete.
8874         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
8875         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8877 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8879         * rtl.h (find_all_hard_regs): Declare.
8880         * rtlanal.c (find_all_hard_regs): New function.
8881         (record_hard_reg_uses_1): Delete.
8882         (record_hard_reg_uses): Use find_all_hard_regs.
8884 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8886         * rtl.h (replace_label_data): Delete.
8887         (replace_label): Take the old label, new label and update-nuses flag
8888         as direct arguments.  Return void.
8889         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8890         * rtlanal.c (replace_label): Update interface as above.  Handle
8891         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
8892         iterator.  Use FOR_EACH_SUBRTX_PTR.
8894 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8896         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8897         with const_rtx parameters.
8898         * varasm.c (get_pool_constant): Likewise.
8899         * rtlanal.c (rtx_referenced_p_1): Delete.
8900         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8901         Assert that the rtx we're looking for is nonnull.  Allow searches
8902         for constant pool SYMBOL_REFs.
8904 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8906         * reload1.c: Include rtl-iter.h.
8907         (note_reg_elim_costly): Turn from being a for_each_rtx callback
8908         to being a function that examines each subrtx itself.
8909         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8911 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8913         * regcprop.c (cprop_find_used_regs_1): Delete.
8914         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8916 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8918         * regcprop.c: Include rtl-iter.h.
8919         (kill_value): Take a const_rtx.
8920         (kill_autoinc_value): Turn from being a for_each_rtx callback
8921         to being a function that examines each subrtx itself.
8922         (copyprop_hardreg_forward_1): Update accordingly.
8924 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8926         * reg-stack.c: Include rtl-iter.h.
8927         (subst_stack_regs_in_debug_insn): Delete.
8928         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8929         instead of for_each_rtx.
8931 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8933         * lower-subreg.c (find_decomposable_subregs): Turn from being
8934         a for_each_rtx callback to being a function that examines each
8935         subrtx itself.  Remove handling of null rtxes.
8936         (decompose_multiword_subregs): Update accordingly.
8938 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8940         * lower-subreg.c (adjust_decomposed_uses): Delete.
8941         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8942         Remove handling of null rtxes.
8944 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8946         * lower-subreg.c: Include rtl-iter.h.
8947         (resolve_subreg_use): Turn from being a for_each_rtx callback
8948         to being a function that examines each subrtx itself.  Remove
8949         handling of null rtxes.
8950         (resolve_reg_notes, resolve_simple_move): Update accordingly.
8951         (decompose_multiword_subregs): Likewise.
8953 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8955         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8956         to being a function that examines each subrtx itself.
8957         (simplify_using_condition, simplify_using_initial_values): Update
8958         accordingly.
8960 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8962         * loop-iv.c: Include rtl-iter.h.
8963         (find_single_def_src): New function.
8964         (replace_single_def_regs): Turn from being a for_each_rtx callback
8965         to being a function that examines each subrtx itself.
8966         (replace_in_expr, simplify_using_initial_values): Update accordingly.
8968 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8970         * jump.c (eh_returnjump_p_1): Delete.
8971         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8972         Remove handling of null rtxes.
8974 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8976         * jump.c: Include rtl-iter.h.
8977         (returnjump_p_1): Delete.
8978         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8979         Remove handling of null rtxes.
8981 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8983         * ira.c: Include rtl-iter.h.
8984         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8985         to being a function that examines each subrtx itself.  Remove
8986         handling of null rtxes.
8987         (update_equiv_regs): Update call accordingly.
8989 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8991         * fwprop.c: Include rtl-iter.h.
8992         (varying_mem_p): Turn from being a for_each_rtx callback to being
8993         a function that examines each subrtx itself.
8994         (propagate_rtx): Update accordingly.
8996 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8998         * function.c: Include rtl-iter.h
8999         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9000         callback to being a function that examines each subrtx itself.
9001         Return the changed flag.
9002         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9003         (instantiate_virtual_regs): Update calls accordingly.
9005 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9007         * final.c: Include rtl-iter.h.
9008         (mark_symbol_ref_as_used): Delete.
9009         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9010         for_each_rtx.
9012 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9014         * emit-rtl.c: Include rtl-iter.h.
9015         (find_auto_inc): Turn from being a for_each_rtx callback to being
9016         a function that examines each subrtx itself.  Assume the first operand
9017         to an RTX_AUTOINC is the automodified register.
9018         (try_split): Update call accordingly.
9020 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9022         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9023         Return a bool, inverting the result so that 0/false means "not ok".
9024         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9025         subrtxes of a CONST.
9026         (mem_loc_descriptor, add_const_value_attribute)
9027         (resolve_addr_in_expr): Update calls accordingly.
9029 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9031         * dwarf2out.c: Include rtl-iter.h.
9032         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9033         Remove unused data parameter.  Return a bool, inverting the result
9034         so that 0/false means "not ok".
9035         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
9036         instead of for_each_rtx.
9038 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9040         * dse.c: Include rtl-iter.h.
9041         (check_mem_read_rtx): Change void * parameter to real type.
9042         Remove return value.
9043         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
9044         for_each_rtx.  Don't handle null rtxes.
9046 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9048         * df-problems.c: Include rtl-iter.h.
9049         (find_memory): Turn from being a for_each_rtx callback to being
9050         a function that examines each subrtx itself.  Continue to look for
9051         volatile references even after a nonvolatile one has been found.
9052         (can_move_insns_across): Update calls accordingly.
9054 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9056         * ddg.c (walk_mems_2, walk_mems_1): Delete.
9057         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9058         to iterate over subrtxes.  Return a bool rather than an int.
9060 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9062         * ddg.c: Include rtl-iter.h.
9063         (mark_mem_use_1): Rename to...
9064         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
9065         instead of for_each_rtx.
9066         (mem_read_insn_p): Update accordingly.
9068 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9070         * cse.c (change_cc_mode_args): Delete.
9071         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9072         a function that examines each subrtx itself.  Take the fields of
9073         change_cc_mode_args as argument and return void.
9074         (cse_change_cc_mode_insn): Update calls accordingly.
9076 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9078         * cse.c (is_dead_reg): Change argument to const_rtx.
9079         (dead_debug_insn_data): Delete.
9080         (is_dead_debug_insn): Expand commentary.  Turn from being a
9081         for_each_rtx callback to being a function that examines
9082         each subrtx itself.  Take the fields of dead_debug_insn_data
9083         as argument.
9084         (delete_trivially_dead_insns): Update call accordingly.
9086 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9088         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
9089         being a for_each_rtx callback to being a function that examines
9090         each subrtx itself.
9091         (cse_extended_basic_block): Update call accordingly.
9093 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9095         * cse.c (check_dependence_data): Delete.
9096         (check_dependence): Change from being a for_each_rtx callback to being
9097         a function that examines all subrtxes itself.  Don't handle null rtxes.
9098         (invalidate): Update call accordingly.
9100 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9102         * cse.c: Include rtl-iter.h.
9103         (approx_reg_cost_1): Delete.
9104         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9105         Don't handle null rtxes.
9107 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9109         * cfgcleanup.c: Include rtl-iter.h.
9110         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9111         to being a function that examines each subrtx itself.
9112         (thread_jump): Update accordingly.
9114 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9116         * combine-stack-adj.c: Include rtl-iter.h.
9117         (record_stack_refs_data): Delete.
9118         (record_stack_refs): Turn from being a for_each_rtx callback
9119         to being a function that examines each subrtx itself.
9120         Take a pointer to the reflist.  Invert sense of return value
9121         so that true means success and false means failure.  Don't
9122         handle null rtxes.
9123         (combine_stack_adjustments_for_block): Update accordingly.
9125 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9127         * combine.c (record_truncated_value): Turn from being a for_each_rtx
9128         callback to a function that takes an rtx and returns a bool
9129         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9130         for_each_rtx.
9132 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9134         * combine.c: Include rtl-iter.h.
9135         (unmentioned_reg_p_1): Delete.
9136         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9137         Don't handle null rtxes.
9139 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9141         * calls.c: Include rtl-iter.h.
9142         (internal_arg_pointer_based_exp_1): Delete.
9143         (internal_arg_pointer_based_exp): Take a const_rtx.
9144         Use FOR_EACH_SUBRTX to iterate over subrtxes.
9146 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9148         * caller-save.c: Include rtl-iter.h.
9149         (add_used_regs_1): Delete.
9150         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9151         to iterate over subrtxes.  Assert that any remaining pseudos
9152         have been spilled.
9154 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9156         * bt-load.c: Include rtl-iter.h.
9157         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9158         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
9159         to iterate over subrtxes.
9160         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9161         find_btr_use rather than btr_referenced_p.
9163 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9165         * alias.c: Include rtl-iter.h.
9166         (refs_newer_value_cb): Delete.
9167         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9169 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9171         * rtl-iter.h: New file.
9172         * rtlanal.c: Include it.
9173         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9174         (generic_subrtx_iterator <T>::add_single_to_queue)
9175         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9176         (generic_subrtx_iterator <T>::free_array): New functions.
9177         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9178         (generic_subrtx_iterator <const_rtx_accessor>)
9179         (generic_subrtx_iterator <rtx_var_accessor>
9180         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9181         (setup_reg_subrtx_bounds): New function.
9182         (init_rtlanal): Call it.
9184 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
9186         PR target/62261
9187         * config/sh/sh.md (ashlsi3): Handle negative shift count for
9188         TARGET_SHMEDIA.
9189         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9191 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
9193         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9195 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9197         * rtl.h (JUMP_LABEL_AS_INSN): New.
9199 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9201         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9202         rtx_expr_list **.
9203         (alloc_EXPR_LIST): Strengthen return type from rtx to
9204         rtx_expr_list *.
9205         (remove_free_EXPR_LIST_node): Likewise for param.
9206         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9207         from rtx to rtx_expr_list *.
9208         * sched-int.h (struct deps_desc): Strengthen fields
9209         "pending_read_mems" and "pending_write_mems" from rtx to
9210         rtx_expr_list *.
9212         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9213         rtx to rtx_expr_list *.
9214         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9215         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9216         rtx_expr_list **.
9217         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
9218         from rtx to rtx_expr_list *.
9219         * loop-iv.c (simplify_using_initial_values): Strengthen local
9220         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9221         "pnote_next" from rtx * to rtx_expr_list **.
9222         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
9223         param "exprp" from rtx * to rtx_expr_list **.
9224         (add_insn_mem_dependence): Strengthen local "mem_list" from
9225         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
9226         to rtx_expr_list *.
9227         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9228         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
9229         param "old_mems_p" from rtx * to rtx_expr_list **.
9230         * var-tracking.c (struct adjust_mem_data): Strengthen field
9231         "side_effects" from rtx to rtx_expr_list *.
9232         (adjust_insn): Replace NULL_RTX with NULL when assigning to
9233         rtx_expr_list *.
9234         (prepare_call_arguments): Likewise.
9236 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9238         * function.h (struct rtl_data): Strengthen field
9239         "x_stack_slot_list" from rtx to rtx_expr_list *.
9241         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9242         when assigning to stack_slot_list.
9244 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9246         * function.h (struct rtl_data): Strengthen field
9247         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9248         * rtl.h (remove_node_from_expr_list): Strengthen second param from
9249         rtx * to rtx_expr_list **.
9251         * cfgbuild.c (make_edges): In loop over
9252         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9253         rtx_expr_list *, and use methods of the latter class to clarify
9254         the code.
9255         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9256         rtx_expr_list *, and use methods of the latter class to clarify
9257         the code.
9258         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9259         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9260         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9261         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
9262         to rtx_expr_list *.  Use methods of the latter class to clarify
9263         the code.
9265 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9267         * function.h (struct expr_status): Strengthen field
9268         "x_forced_labels" from rtx to rtx_expr_list *.
9270         * cfgbuild.c (make_edges): Split local "x" into two locals,
9271         strengthening one from rtx to rtx_expr_list *, and using methods
9272         of said class.
9273         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9274         loop over forced_labels, introduce strengthen it from rtx to
9275         rtx_expr_list *, using methods to clarify the code.
9276         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9277         to rtx_expr_list *, using methods of said class to clarify the
9278         code.
9279         * reload1.c (set_initial_label_offsets): Split local "x" into two
9280         per-loop variables, strengthening the first from rtx to
9281         rtx_expr_list * and using methods.
9283 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9285         * coretypes.h (class rtx_expr_list): Add forward declaration.
9286         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9287         * gengenrtl.c (special_rtx): Add EXPR_LIST.
9288         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9289         invariant: GET_CODE (X) == EXPR_LIST.
9290         (is_a_helper <rtx_expr_list *>::test): New.
9291         (rtx_expr_list::next): New.
9292         (rtx_expr_list::element): New.
9293         (gen_rtx_EXPR_LIST): New.
9295 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9297         * varasm.c (mark_constants): Convert a GET_CODE check into a
9298         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9299         Use methods of rtx_sequence to clarify the code.
9301 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9303         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9304         local "seq" via a checked cast, and use methods of rtx_sequence
9305         to simplify the code.
9307 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9309         * resource.c (mark_referenced_resources): Strengthen local
9310         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9311         using methods of rtx_sequence to clarify the code.
9312         (find_dead_or_set_registers): Within the switch statement, convert
9313         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
9314         the JUMP_P handling, introduce another local "seq", adding a
9315         checked cast to rtx_sequence *.  In both cases, use methods of
9316         rtx_sequence to clarify the code.
9317         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9318         via a checked cast, and use methods of rtx_sequence to simplify
9319         the code.
9321 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9323         * reorg.c (redundant_insn): In two places in the function, replace
9324         a check of GET_CODE with a dyn_cast, introducing local "seq", and
9325         usings methods of rtx_sequence to clarify the code.
9327 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9329         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9330         local "seq" with a checked cast, and use methods of rtx_sequence
9331         to clarify the code.
9333 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9335         * function.c (contains): Introduce local "seq" for PATTERN (insn),
9336         with a checked cast, in the region for where we know it's a
9337         SEQUENCE.  Use methods of rtx_sequence.
9339 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9341         * final.c (get_attr_length_1): Replace GET_CODE check with a
9342         dyn_cast, introducing local "seq" and the use of methods of
9343         rtx_sequence.
9344         (shorten_branches): Likewise, introducing local "body_seq".
9345         Strengthen local "inner_insn" from rtx to rtx_insn *.
9346         (reemit_insn_block_notes): Replace GET_CODE check with a
9347         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9348         Use methods of rtx_sequence.
9349         (final_scan_insn): Likewise, introducing local "seq" for when
9350         "body" is known to be a SEQUENCE, using its methods.
9352 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9354         * except.c (can_throw_external): Strengthen local "seq" from rtx
9355         to rtx_sequence *.  Use methods of rtx_sequence.
9356         (insn_nothrow_p): Likewise.
9358 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9360         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9361         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9362         Use methods of rtx_sequence.
9363         (scan_trace): Likewise for local "pat".
9365 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9367         * coretypes.h (class rtx_sequence): Add forward declaration.
9368         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9369         invariant: GET_CODE (X) == SEQUENCE.
9370         (is_a_helper <rtx_sequence *>::test): New.
9371         (is_a_helper <const rtx_sequence *>::test): New.
9372         (rtx_sequence::len): New.
9373         (rtx_sequence::element): New.
9374         (rtx_sequence::insn): New.
9376 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9378         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9379         rtx_insn_list **.
9380         (alloc_INSN_LIST): Strengthen return type from rtx to
9381         rtx_insn_list *.
9382         (copy_INSN_LIST): Likewise for return type and param.
9383         (concat_INSN_LIST): Likewise for both params and return type.
9384         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9385         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
9386         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9387         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
9389         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9390         "implicit_sets", "control_uses", "clobbers" from rtx to
9391         rtx_insn_list *.
9392         (struct deps_desc): Likewise for fields "pending_read_insns",
9393         "pending_write_insns", "pending_jump_insns",
9394         "last_pending_memory_flush", "last_function_call",
9395         "last_function_call_may_noreturn", "sched_before_next_call",
9396         "sched_before_next_jump".
9397         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9398         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9400         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9401         from rtx to rtx_insn_list *.
9402         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9403         rtx_insn_list *.
9405         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9406         to rtx_insn_list **.
9407         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9408         rtx_insn_list *.
9409         (queue_insn): Likewise for local "link".
9410         (struct haifa_saved_data): Strengthen field "insn_queue" from
9411         rtx * to rtx_insn_list **.
9412         (save_backtrack_point): Update allocation of save->insn_queue to
9413         reflect the strengthening of elements from rtx to rtx_insn_list *.
9414         (queue_to_ready): Strengthen local "link" from rtx to
9415         rtx_insn_list *; use methods "next" and "insn" when traversing the
9416         list.
9417         (early_queue_to_ready): Likewise for locals "link", "next_link",
9418         "prev_link".
9419         (schedule_block): Update allocation of insn_queue to reflect the
9420         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
9421         local "link" from rtx to rtx_insn_list *, and use methods when
9422         working it.
9423         (add_to_speculative_block): Strengthen locals "twins" and
9424         "next_node" from rtx to rtx_insn_list *, and use methods when
9425         working with them.  Strengthen local "twin" from rtx to
9426         rtx_insn *, eliminating a checked cast.
9427         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9428         from rtx to rtx_insn_list *, and use methods when working with
9429         them.
9431         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9432         from rtx to rtx_insn_list *, adding a checked cast.
9433         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9434         rtx_insn_list **.
9435         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9436         "newlink" from rtx to rtx_insn_list *.  Strengthen local
9437         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
9438         from rtx to rtx_insn *.
9439         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9440         from rtx to rtx_insn_list *.  Use methods of the latter class.
9441         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9442         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9443         (remove_free_INSN_LIST_node): Strengthen return type and local
9444         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
9445         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
9446         rtx_insn_list *, using "insn" method.
9448         * sched-deps.c (add_dependence_list):  Strengthen param "list"
9449         from rtx to rtx_insn_list *, and use methods when working with it.
9450         (add_dependence_list_and_free):  Strengthen param "listp" from
9451         rtx * to rtx_insn_list **.
9452         (remove_from_dependence_list): Strenghten param "listp" from rtx *
9453         to rtx_insn_list **, and use methods when working with *listp.
9454         (remove_from_both_dependence_lists): Strengthen param "listp" from
9455         rtx * to rtx_insn_list **
9456         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9457         to rtx_insn_list **.  Eliminate local "link", in favor of two new
9458         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9459         respectively.
9460         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9461         by introducing local "cond_deps".
9462         (remove_from_deps): Strengthen param "insn" from rtx to
9463         rtx_insn *.
9465         * sched-rgn.c (concat_insn_mem_list): Strengthen param
9466         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9467         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9468         Use methods of rtx_insn_list.
9470         * store-motion.c (struct st_expr): Strengthen fields
9471         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9472         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9473         rtx_insn_list *.
9474         (find_moveable_store): Split out "tmp" into multiple more-tightly
9475         scoped locals.  Use methods of rtx_insn_list *.
9476         (compute_store_table): Strengthen local "tmp" from rtx to
9477         rtx_insn *.  Use methods of rtx_insn_list *.
9479 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9481         * coretypes.h (class rtx_insn_list): Add forward declaration.
9482         * rtl.h (class rtx_insn_list): New subclass of rtx_def
9483         (is_a_helper <rtx_insn_list *>::test): New.
9484         (rtx_insn_list::next): New.
9485         (rtx_insn_list::insn): New.
9486         (gen_rtx_INSN_LIST): Add prototype.
9487         * emit-rtl.c (gen_rtx_INSN_LIST): New.
9488         * gengenrtl.c (special_rtx): Add INSN_LIST.
9490 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9492         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9493         "prev" from rtx to rtx_insn *.
9495 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9497         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9498         functions.  Require merely an rtx for now, not an rtx_insn *.
9499         (BLOCK_FOR_INSN): Likewise.
9500         (INSN_LOCATION): Likewise.
9501         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9503 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9505         * rtl.h (PATTERN): Convert this macro into a pair of inline
9506         functions, for now, requiring const_rtx and rtx.
9508 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9510         * target.def (unwind_emit): Strengthen param "insn" from rtx to
9511         rtx_insn *.
9512         (final_postscan_insn): Likewise.
9513         (adjust_cost): Likewise.
9514         (adjust_priority): Likewise.
9515         (variable_issue): Likewise.
9516         (macro_fusion_pair_p): Likewise.
9517         (dfa_post_cycle_insn): Likewise.
9518         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9519         (first_cycle_multipass_issue): Likewise.
9520         (dfa_new_cycle): Likewise.
9521         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9522         (speculate_insn): Likewise for param "insn".
9523         (gen_spec_check): Likewise for params "insn" and "label".
9524         (get_insn_spec_ds): Likewise for param "insn".
9525         (get_insn_checked_ds): Likewise.
9526         (dispatch_do): Likewise.
9527         (dispatch): Likewise.
9528         (cannot_copy_insn_p): Likewise.
9529         (invalid_within_doloop): Likewise.
9530         (legitimate_combined_insn): Likewise.
9531         (needed): Likewise.
9532         (after): Likewise.
9534         * doc/tm.texi: Automatically updated to reflect changes to
9535         target.def.
9537         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9538         working with insn.
9539         (schedule_block): Likewise.
9540         (sched_init): Likewise.
9541         (sched_speculate_insn): Strengthen param "insn" from rtx to
9542         rtx_insn *.
9543         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9544         working with insn.
9545         * hooks.c (hook_bool_rtx_true): Rename to...
9546         hook_bool_rtx_insn_true): ...this, and strengthen first param from
9547         rtx to rtx_insn *.
9548         (hook_constcharptr_const_rtx_null): Rename to...
9549         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9550         first param from const_rtx to const rtx_insn *.
9551         (hook_bool_rtx_int_false): Rename to...
9552         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9553         param from rtx to rtx_insn *.
9554         (hook_void_rtx_int): Rename to...
9555         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9556         rtx to rtx_insn *.
9558         * hooks.h (hook_bool_rtx_true): Rename to...
9559         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9560         rtx to rtx_insn *.
9561         (hook_bool_rtx_int_false): Rename to...
9562         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9563         param from rtx to rtx_insn *.
9564         (hook_void_rtx_int): Rename to...
9565         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9566         rtx to rtx_insn *.
9567         (hook_constcharptr_const_rtx_null): Rename to...
9568         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9569         first param from const_rtx to const rtx_insn *.
9571         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9572         and local "prev" from rtx to rtx_insn *.
9574         * sched-int.h (sched_speculate_insn): Strengthen first param from
9575         rtx to rtx_insn *.
9577         * sel-sched.c (create_speculation_check): Likewise for local "label".
9578         * targhooks.c (default_invalid_within_doloop): Strengthen param
9579         "insn" from const_rtx to const rtx_insn *.
9580         * targhooks.h (default_invalid_within_doloop): Strengthen param
9581         from const_rtx to const rtx_insn *.
9583         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9584         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9586         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9587         "insn".
9588         (arc_invalid_within_doloop): Likewise, with const.
9590         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9591         (arm_cannot_copy_insn_p): Likewise for param "insn".
9592         (arm_unwind_emit): Likewise.
9594         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9595         "dep_insn".
9597         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9598         (c6x_variable_issue): Likewise.  Removed now-redundant checked
9599         cast.
9600         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9602         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9603         Likewise for param "insn".
9604         (epiphany_mode_after): Likewise.
9605         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9606         params "insn", "dep_insn".
9607         (epiphany_mode_needed): Likewise for param "insn".
9608         (epiphany_mode_after): Likewise.
9610         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9611         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9612         (ix86_avx_u128_mode_needed): Likewise.
9613         (ix86_i387_mode_needed): Likewise.
9614         (ix86_mode_needed): Likewise.
9615         (ix86_avx_u128_mode_after): Likewise.
9616         (ix86_mode_after): Likewise.
9617         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9618         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9619         (ix86_adjust_priority): Likewise for param "insn".
9620         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9621         (do_dispatch): Likewise.
9622         (has_dispatch): Likewise.
9623         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9625         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9626         reflect renaming of default hook implementation from
9627         hook_constcharptr_const_rtx_null to
9628         hook_constcharptr_const_rtx_insn_null.
9629         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9630         rtx to rtx_insn *.
9631         (ia64_variable_issue): Likewise for param "insn".
9632         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9633         (ia64_dfa_new_cycle): Likewise.
9634         (ia64_get_insn_spec_ds): Likewise.
9635         (ia64_get_insn_checked_ds): Likewise.
9636         (ia64_speculate_insn): Likewise.
9637         (ia64_gen_spec_check): Likewise for params "insn", "label".
9638         (ia64_asm_unwind_emit): Likewise for param "insn".
9640         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9642         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9643         "insn", "def_insn".
9644         (m68k_sched_variable_issue): Likewise for param "insn".
9646         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9647         "def_insn".
9649         * config/microblaze/microblaze.c (microblaze_adjust_cost):
9650         Likewise for params "insn", "dep".
9652         * config/mips/mips.c (mips_adjust_cost): Likewise.
9653         (mips_variable_issue): Likewise for param "insn".
9654         (mips_final_postscan_insn): Likewise.
9656         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9657         for params "insn", "dep".
9659         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9660         "dep_insn".
9661         (pa_adjust_priority): Likewise for param "insn".
9663         * config/picochip/picochip.c (picochip_sched_adjust_cost):
9664         Likewise for params "insn", "dep_insn".
9666         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9667         param "insn".
9668         (rs6000_variable_issue): Likewise.
9669         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9670         (rs6000_debug_adjust_cost): Likewise.
9671         (rs6000_adjust_priority): Likewise for param "insn".
9672         (rs6000_use_sched_lookahead_guard): Likewise.
9673         (get_next_active_insn): Likewise for return type and both params.
9674         (redefine_groups): Likewise for params "prev_head_insn", "tail"
9675         and locals "insn", "next_insn".
9676         (pad_groups): Likewise.
9678         * config/s390/s390.c (s390_adjust_priority): Likewise for param
9679         "insn".
9680         (s390_cannot_copy_insn_p): Likewise.
9681         (s390_sched_variable_issue): Likewise for third param, eliminating
9682         checked cast.
9683         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9684         default hook implementation from hook_constcharptr_const_rtx_null
9685         to hook_constcharptr_const_rtx_insn_null.
9687         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9688         from rtx to rtx_insn *.
9689         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9690         (sh_variable_issue): Likewise for param "insn".
9691         (sh_dfa_new_cycle): Likewise.
9692         (sh_mode_needed): Likewise.
9693         (sh_mode_after): Likewise.
9695         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9696         params "insn", "dep_insn".
9697         (hypersparc_adjust_cost): Likewise.
9698         (sparc_adjust_cost): Likewise.
9700         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9701         param, eliminated checked cast.
9702         (spu_sched_adjust_cost): Likewise for first and third params.
9704         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9705         params "insn" and "dep_insn" from rtx to rtx_insn *.
9707         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9709 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9711         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9712         (set_is_load_p): ...this, updating to work on a SET pattern rather
9713         than an insn.
9714         (is_store_insn): Rename to...
9715         (set_is_store_p): ...this, updating to work on a SET pattern
9716         rather than an insn.
9717         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9718         top of function to where it is needed.  Rewrite the bogus
9719         condition that checks for "insn" and "dep" being PARALLEL to
9720         instead use single_set, introducing locals "insn_set" and
9721         "dep_set".  Given that we only ever returned "cost" for a non-pair
9722         of SETs, bail out early if we don't have a pair of SET.
9723         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9724         use the new locals "insn_set" and "dep_set", and update calls to
9725         is_load_insn and is_store_insn to be calls to set_is_load_p and
9726         set_is_store_p.
9728 2014-08-27  Guozhi Wei  <carrot@google.com>
9730         PR target/62262
9731         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9732         amount before using it.
9734 2014-08-27  Richard Biener  <rguenther@suse.de>
9736         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9737         get_maxval_strlen inside a more useful API.
9738         (gimple_fold_builtin_with_strlen): Remove and fold into ...
9739         (gimple_fold_builtin): ... caller.
9740         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9741         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9742         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9743         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9744         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9745         gimple_fold_builtin_sprintf): Adjust to compute maxval
9746         themselves.
9748 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
9750         PR other/62248
9751         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9753 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9754             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9755             Anna Tikhonova  <anna.tikhonova@intel.com>
9756             Ilya Tocar  <ilya.tocar@intel.com>
9757             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9758             Ilya Verbin  <ilya.verbin@intel.com>
9759             Kirill Yukhin  <kirill.yukhin@intel.com>
9760             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9762         * config/i386/sse.md
9763         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9764         Use `concat_tg_mode' attribute to determine asm register size.
9766 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9767             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9768             Anna Tikhonova  <anna.tikhonova@intel.com>
9769             Ilya Tocar  <ilya.tocar@intel.com>
9770             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9771             Ilya Verbin  <ilya.verbin@intel.com>
9772             Kirill Yukhin  <kirill.yukhin@intel.com>
9773             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9775         * config/i386/sse.md
9776         (define_mode_iterator VI48_AVX512VL): New.
9777         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9778         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9779         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9780         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9781         with VI1): Change mode iterator.
9782         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9783         with VI_ULOADSTORE_BW_AVX512VL): New.
9784         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9785         with VI_ULOADSTORE_F_AVX512VL): Ditto.
9786         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9787         with VI1): Change mode iterator.
9788         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9789         with VI_ULOADSTORE_BW_AVX512VL): New.
9790         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9791         with VI_ULOADSTORE_F_AVX512VL): Ditto.
9792         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9793         with VI1): Change mode iterator.
9794         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9795         with VI_ULOADSTORE_BW_AVX512VL): New.
9796         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9797         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9798         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9799         (define_insn "<avx512>_storedqu<mode>_mask" with
9800         VI48_AVX512VL): New.
9801         (define_insn "<avx512>_storedqu<mode>_mask" with
9802         VI12_AVX512VL): Ditto.
9804 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9805             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9806             Anna Tikhonova  <anna.tikhonova@intel.com>
9807             Ilya Tocar  <ilya.tocar@intel.com>
9808             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9809             Ilya Verbin  <ilya.verbin@intel.com>
9810             Kirill Yukhin  <kirill.yukhin@intel.com>
9811             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9813         * config/i386/sse.md
9814         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9815         (define_mode_iterator VI48_AVX512BW): New.
9816         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9817         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9818         with VI48_AVX2_48_AVX512F): New.
9819         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9820         with VI2_AVX512VL): Ditto.
9822 2014-08-27  Richard Biener  <rguenther@suse.de>
9824         PR middle-end/62239
9825         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9826         (fold_builtin_3): Do not fold strcat_chk here.
9827         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9828         from builtins.c.
9829         (gimple_fold_builtin): Fold strcat_chk here.
9831 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
9833         * dwarf2out.h (dwarf2out_decl): Remove prototype.
9834         * dwarf2out.c (dwarf2out_decl): Make static.
9836 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
9838         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9840 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9842         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9843         from rtx to rtx_insn *.
9844         (cselib_lookup_from_insn): Likewise for final param.
9845         (cselib_subst_to_values_from_insn): Likewise.
9846         (cselib_add_permanent_equiv): Likewise.
9848         * cselib.c (cselib_current_insn): Likewise for this variable.
9849         (cselib_subst_to_values_from_insn): Likewise for param "insn".
9850         (cselib_lookup_from_insn): Likewise.
9851         (cselib_add_permanent_equiv): Likewise for param "insn" and local
9852         "save_cselib_current_insn".
9853         (cselib_process_insn): Replace use of NULL_RTX with NULL.
9855         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9856         from rtx to rtx_insn *.
9858 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9860         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9861         rtx_insn *.
9863 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9865         * df.h (df_dump_insn_problem_function): Strengthen first param of
9866         this callback from const_rtx to const rtx_insn *.
9867         (struct df_insn_info): Strengthen field "insn" from rtx to
9868         rtx_insn *.
9869         (DF_REF_INSN): Eliminate this function, reinstating the older
9870         macro definition.
9871         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9872         (df_reg_defined): Likewise.
9873         (df_find_use): Likewise.
9874         (df_reg_used): Likewise.
9875         (df_dump_insn_top): Strengthen param 1 from const_rtx to
9876         const rtx_insn *.
9877         (df_dump_insn_bottom): Likewise.
9878         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9879         (df_insn_debug_regno): Likewise.
9880         (debug_df_insn): Likewise.
9881         (df_rd_simulate_one_insn): Likewise for param 2.
9882         (df_word_lr_simulate_defs): Likewise for param 1.
9883         (df_word_lr_simulate_uses): Likewise.
9884         (df_md_simulate_one_insn): Likewise for param 2.
9885         (df_simulate_find_noclobber_defs): Likewise for param 1.
9886         (df_simulate_find_defs): Likewise.
9887         (df_simulate_defs): Likewise.
9888         (df_simulate_uses): Likewise.
9889         (df_simulate_one_insn_backwards): Likewise for param 2.
9890         (df_simulate_one_insn_forwards): Likewise.
9891         (df_uses_create): Likewise for param 2.
9892         (df_insn_create_insn_record): Likewise for param 1.
9893         (df_insn_delete): Likewise.
9894         (df_insn_rescan): Likewise.
9895         (df_insn_rescan_debug_internal): Likewise.
9896         (df_insn_change_bb): Likewise.
9897         (df_notes_rescan): Likewise.
9898         * rtl.h (remove_death): Likewise for param 2.
9899         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9900         const rtx_insn *.
9901         * sched-int.h (reemit_notes): Strengthen param from rtx to
9902         rtx_insn *.
9903         * valtrack.h (propagate_for_debug): Likewise for param 1.
9905         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9906         local "tmp_rtx" from const_rtx to const rtx_insn *.
9907         * combine.c (remove_death): Strengthen param "insn" from rtx to
9908         rtx_insn *.
9909         (move_deaths): Likewise for local "where_dead".
9910         * cse.c (delete_trivially_dead_insns): Introduce local
9911         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9912         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9913         rtx_insn *.
9914         (df_reg_defined): Likewise.
9915         (df_find_use): Likewise.
9916         (df_reg_used): Likewise.
9917         (df_dump_insn_problem_data): Strengthen param "insn" from
9918         const_rtx to const rtx_insn *.
9919         (df_dump_insn_top): Likewise.
9920         (df_dump_insn_bottom): Likewise.
9921         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9922         (df_insn_debug_regno): Likewise.
9923         (debug_df_insn): Likewise.
9924         (DF_REF_INSN): Delete.
9925         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9926         from rtx to rtx_insn *.
9927         (df_chain_insn_top_dump): Strengthen param "insn" from
9928         const_rtx to const rtx_insn *.
9929         (df_chain_insn_bottom_dump): Likewise.
9930         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9931         rtx_insn *.
9932         (df_word_lr_simulate_uses): Likewise.
9933         (df_print_note): Likewise.
9934         (df_remove_dead_and_unused_notes): Likewise.
9935         (df_set_unused_notes_for_mw): Likewise.
9936         (df_set_dead_notes_for_mw): Likewise.
9937         (df_create_unused_note): Likewise.
9938         (df_simulate_find_defs): Likewise.
9939         (df_simulate_find_uses): Likewise.
9940         (df_simulate_find_noclobber_defs): Likewise.
9941         (df_simulate_defs): Likewise.
9942         (df_simulate_uses): Likewise.
9943         (df_simulate_one_insn_backwards): Likewise.
9944         (df_simulate_one_insn_forwards): Likewise.
9945         (df_md_simulate_one_insn): Likewise.
9946         * df-scan.c (df_uses_create): Likewise.
9947         (df_insn_create_insn_record): Likewise.
9948         (df_insn_delete): Likewise.
9949         (df_insn_rescan): Likewise.
9950         (df_insn_rescan_debug_internal): Likewise.
9951         (df_insn_change_bb): Likewise.
9952         (df_notes_rescan): Likewise.
9953         (df_refs_add_to_chains): Likewise.
9954         (df_insn_refs_verify): Likewise.
9955         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9956         when invoking df_insn_delete.
9957         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9958         (set_unique_reg_note): Add checked cast.
9959         * final.c (cleanup_subreg_operands): Likewise.
9960         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9961         "insn" from rtx to rtx_insn *.
9962         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9963         "last" from rtx to rtx_insn *.
9964         * ira-emit.c (change_regs_in_insn): New function.
9965         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9966         Invoke change_regs_in_insn rather than change_regs.
9967         * ira.c (update_equiv_regs): Strengthen locals "insn",
9968         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
9969         for_each_rtx_in_insn rather than for_each_rtx.
9970         * recog.c (confirm_change_group): Add checked casts.
9971         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9972         Add checked cast.
9973         (peep2_fill_buffer): Add checked cast.
9974         * rtlanal.c (remove_note): Likewise.
9975         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9976         locals "next" "end" from rtx to rtx_insn *.
9978 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9980         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9981         to rtx_insn *.
9982         (struct reg_use_data): Likewise for field "insn".
9983         (insn_cost): Likewise for param.
9984         (real_insn_for_shadow): Likewise for return type and param.
9985         (increase_insn_priority): Likewise for param 1.
9986         (debug_dependencies): Likewise for both params.
9988         * haifa-sched.c (insn_delay): Likewise for param "insn".
9989         (real_insn_for_shadow): Likewise for return type and param "insn".
9990         (update_insn_after_change): Likewise for param "insn".
9991         (recompute_todo_spec): Likewise for param "next" and locals "pro",
9992         "other".
9993         (insn_cost): Likewise for param "insn".
9994         (increase_insn_priority): Likewise.
9995         (calculate_reg_deaths): Likewise.
9996         (setup_insn_reg_pressure_info): Likewise.
9997         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9998         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9999         (model_recompute): Likewise.
10000         (must_restore_pattern_p): Likewise for param "next".
10001         (model_excess_cost): Likewise for param "insn".
10002         (queue_remove): Likewise.
10003         (adjust_priority): Likewise for param "prev".
10004         (update_register_pressure): Likewise for param "insn".
10005         (setup_insn_max_reg_pressure): Likewise for local "insn".
10006         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10007         (model_add_to_schedule): Likewise.
10008         (model_reset_queue_indices): Likewise for local "insn".
10009         (unschedule_insns_until): Strengthen local "recompute_vec" from
10010         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
10011         "con" from rtx to rtx_insn *.
10012         (restore_last_backtrack_point): Likewise for both locals "x". Add
10013         checked casts.
10014         (estimate_insn_tick): Likewise for param "insn".
10015         (commit_schedule): Likewise for params "prev_head", "tail" and
10016         local "x".
10017         (verify_shadows): Likewise for locals "i1", "i2".
10018         (dump_insn_stream): Likewise for params "head", "tail" and locals
10019         "next_tail", "insn".
10020         (schedule_block): Likewise for locals "insn", "x".  Add a checked
10021         cast.
10022         (fix_inter_tick): Likewise for params "head", "tail".
10023         (create_check_block_twin): Likewise for local "jump".
10024         (haifa_change_pattern): Likewise for param "insn".
10025         (haifa_speculate_insn): Likewise.
10026         (dump_new_block_header): Likewise for params "head", "tail".
10027         (fix_jump_move): Likewise for param "jump".
10028         (move_block_after_check): Likewise.
10029         (sched_init_insn_luid): Likewise for param "insn".
10030         (sched_init_luids): Likewise for local "insn".
10031         (insn_luid): Likewise for param "insn".
10032         (init_h_i_d): Likewise.
10033         (haifa_init_h_i_d): Likewise for local "insn".
10034         (haifa_init_insn): Likewise for param "insn".
10035         * sched-deps.c (add_dependence): Likewise for local "real_pro",
10036         "other".
10037         (create_insn_reg_use): Likewise for param "insn".
10038         (setup_insn_reg_uses): Likewise.  Add a checked cast.
10039         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10040         "tail" from rtx to rtx_insn *.
10041         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10042         "insn", "next_tail".
10044 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10046         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10047         from rtx to rtx_insn *.
10048         (model_add_to_schedule): Likewise for locals "start", "end",
10049         "iter".
10051 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10053         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10054         rtx_insn *.
10055         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
10056         "to" and locals "insn", "next", "copy".  Remove now-redundant
10057         checked cast.
10059 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10061         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10062         rtx_insn * and param 4 from rtx * to rtx_insn **.
10063         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10064         param 2 from rtx * to rtx_insn **.
10066         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10067         rtx_insn * and final param from rtx * to rtx_insn **.
10069         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10070         from rtx to rtx_insn *.
10071         (try_head_merge_bb): Likewise for both locals named "move_upto".
10072         * df-problems.c (can_move_insns_across): Likewise for params
10073         "from", "to", "across_from", "across_to" and locals "insn",
10074         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
10075         rtx_insn **.
10076         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10077         from rtx to rtx_insn *.
10078         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10079         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10080         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10081         rtx_insn *.
10082         (noce_try_abs): Likewise.
10083         (noce_get_condition): Likewise for param "jump".  Strengthen param
10084         "earliest" from rtx * to rtx_insn **.
10085         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10086         rtx_insn *.
10087         (find_cond_trap): Likewise.
10088         (dead_or_predicable): Likewise for local "earliest".
10089         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
10090         checked cast.
10091         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10092         and local "prev".  Strengthen param "earliest" from rtx * to
10093         rtx_insn **.
10094         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10095         Strengthen param "earliest" from rtx * to rtx_insn **.
10097 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10099         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10100         "to" and local "insn" from rtx to rtx_insn *.
10102 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10104         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10105         from rtx to rtx_insn *.
10106         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10107         (code_motion_path_driver): Likewise for local "last_insn".
10108         (simplify_changed_insns): Likewise for local "insn".
10110 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10112         * rtl.h (push_to_sequence): Strengthen param from rtx to
10113         rtx_insn *.
10114         (push_to_sequence2): Likewise for both params.
10115         (delete_insns_since): Likewise for param.
10116         (reorder_insns_nobb): Likewise for all three params.
10117         (set_new_first_and_last_insn): Likewise for both params.
10119         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10120         rtx_insn *.  Remove now-redundant cast.
10121         (set_last_insn): Likewise.
10123         * builtins.c (expand_builtin_return): Strengthen local
10124         "call_fusage" from rtx to rtx_insn *.
10125         * cfgrtl.c (create_basic_block_structure): Likewise for local
10126         "after".
10127         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10128         "first", "last" and local "insn".
10129         (delete_insns_since): Likewise for param "from".
10130         (reorder_insns_nobb): Likewise for params "from", "to", "after"
10131         and local "x".
10132         (push_to_sequence): Likewise for param "first" and local "last".
10133         (push_to_sequence2): Likewise for params "first" and "last".
10134         * lra.c (emit_add3_insn): Likewise for local "last".
10135         (lra_emit_add): Likewise.
10136         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10137         "last_insn".
10138         (process_address_1): Likewise for locals "insn", last".
10139         * modulo-sched.c (ps_first_note): Likewise for return type.
10140         * optabs.c (expand_binop_directly): Likewise for param "last".
10142 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10144         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10145         to rtx_insn*.
10146         * emit-rtl.c (get_last_insn_anywhere): Likewise.
10148 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10150         * function.h (struct sequence_stack): Strengthen fields "first"
10151         and "last" from rtx to rtx_insn *.
10152         (struct emit_status): Likewise for fields "x_first_insn" and
10153         "x_last_insn".
10155         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10156         (set_first_insn): Add checked cast.
10157         (get_last_insn): Remove now-redundant checked cast.
10158         (set_last_insn): Add checked cast.
10160         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10161         "saved_first" and "saved_last" from rtx to rtx_insn *.
10163 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10165         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10166         (unlink_insn_chain): Strengthen both params from rtx to
10167         rtx_insn *.
10169         * cfgrtl.c (cfg_layout_function_header): Likewise for this
10170         variable.
10171         (unlink_insn_chain): Likewise for params "first" and "last".
10172         Remove now-redundant checked cast.
10173         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10174         (fixup_reorder_chain): Strengthen local "insn" from rtx to
10175         rtx_insn *.
10176         * emit-rtl.c (link_insn_into_chain): Likewise for all three
10177         params.
10178         (add_insn): Likewise for param "insn" and local "prev".
10179         (add_insn_after_nobb): Likewise for both params and local "next".
10180         (add_insn_before_nobb): Likewise for both params and local "prev".
10181         (add_insn_after): Rename param "after" to "uncast_after",
10182         introducing local "after" with another checked cast.
10183         (add_insn_before): Rename params "insn" and "before", giving them
10184         "uncast_" prefixes, adding the old names back using checked casts.
10185         (emit_note_after): Likewise for param "after".
10186         (emit_note_before): Likewise for param "before".
10187         (emit_label): Add a checked cast.
10189 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10191         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
10192         "insn" from rtx to rtx_insn *.
10194         * cselib.c (cselib_record_sets_hook): Likewise.
10196         * var-tracking.c (add_with_sets): Likewise, renaming back from
10197         "uncast_insn" to "insn" and eliminating the checked cast from rtx
10198         to rtx_insn *.
10200 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10202         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10203         and "header_" from rtx to rtx_insn *.
10204         (struct basic_block_d): Likewise for field "head_" within "x"
10205         field of union basic_block_il_dependent.
10206         (BB_HEAD): Drop function...
10207         (SET_BB_HEAD): ...and this function in favor of...
10208         (BB_HEAD): ...reinstate macro.
10209         (BB_END): Drop function...
10210         (SET_BB_END): ...and this function in favor of...
10211         (BB_END): ...reinstate macro.
10212         (BB_HEADER): Drop function...
10213         (SET_BB_HEADER): ...and this function in favor of...
10214         (BB_HEADER): ...reinstate macro.
10216         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10217         (fix_crossing_unconditional_branches): Likewise.
10218         * caller-save.c (save_call_clobbered_regs): Likewise.
10219         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10220         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10221         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10222         (merge_blocks_move_successor_nojumps): Likewise.
10223         (outgoing_edges_match): Update use of for_each_rtx to
10224         for_each_rtx_in_insn.
10225         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10226         (expand_gimple_cond): Likewise.
10227         (expand_gimple_tailcall): Likewise.
10228         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10229         SET_BB_END.
10230         (construct_exit_block): Drop use of SET_BB_END.
10231         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10232         rtx_insn *.
10233         (delete_insn): Rename param "insn" to "uncast_insn", introducing
10234         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
10235         SET_BB_HEAD and SET_BB_END.
10236         (create_basic_block_structure): Drop use of SET_BB_HEAD and
10237         SET_BB_END.
10238         (rtl_delete_block): Drop use of SET_BB_HEAD.
10239         (rtl_split_block): Drop use of SET_BB_END.
10240         (emit_nop_for_unique_locus_between): Likewise.
10241         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10242         (block_label): Drop use of SET_BB_HEAD.
10243         (fixup_abnormal_edges): Drop use of SET_BB_END.
10244         (record_effective_endpoints): Drop use of SET_BB_HEADER.
10245         (relink_block_chain): Likewise.
10246         (fixup_reorder_chain): Drop use of SET_BB_END.
10247         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10248         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10249         rtx_insn **.  Drop use of SET_BB_HEADER.
10250         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10251         SET_BB_HEAD.
10252         (BB_HEAD): Delete this function.
10253         (SET_BB_HEAD): Likewise.
10254         (BB_END): Likewise.
10255         (SET_BB_END): Likewise.
10256         (BB_HEADER): Likewise.
10257         (SET_BB_HEADER): Likewise.
10258         * emit-rtl.c (add_insn_after):  Rename param "insn" to
10259         "uncast_insn", adding a new local "insn" and a checked cast to
10260         rtx_insn *.  Drop use of SET_BB_END.
10261         (remove_insn): Strengthen locals "next" and "prev" from rtx to
10262         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
10263         (reorder_insns): Drop use of SET_BB_END.
10264         (emit_insn_after_1): Strengthen param "first" and locals "last",
10265         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
10266         (emit_pattern_after_noloc): Add checked cast.
10267         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10268         (restore_other_notes): Likewise.
10269         (move_insn): Likewise.
10270         (sched_extend_bb): Likewise.
10271         (fix_jump_move): Likewise.
10272         * ifcvt.c (noce_process_if_block): Likewise.
10273         (dead_or_predicable): Likewise.
10274         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10275         * reg-stack.c (change_stack): Drop use of SET_BB_END.
10276         * sel-sched-ir.c (sel_move_insn): Likewise.
10277         * sel-sched.c (move_nop_to_previous_block): Likewise.
10279         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10280         SET_BB_END.
10281         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10283 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10285         * basic-block.h (create_basic_block_structure): Strengthen params
10286         1 "head" and 2 "end" from rtx to rtx_insn *.
10287         * cfgrtl.c (create_basic_block_structure): Likewise.
10288         (rtl_create_basic_block): Update casts from void * to rtx to
10289         rtx_insn *, so that we can pass them as rtx_insn * to
10290         create_basic_block_structure.
10291         * sel-sched-ir.c (sel_create_basic_block): Likewise.
10293 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10295         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10296         rtx_insn **.
10297         (check_for_inc_dec): Strengthen param "insn" from rtx to
10298         rtx_insn *.
10300         * cselib.h (cselib_process_insn): Likewise.
10302         * cselib.c (cselib_record_sets): Likewise.
10303         (cselib_process_insn): Likewise.
10305         * dse.c (struct insn_info): Likewise for field "insn".
10306         (check_for_inc_dec_1): Likewise for local "insn".
10307         (check_for_inc_dec): Likewise for param "insn".
10308         (scan_insn): Likewise.
10309         (dse_step1): Likewise for local "insn".
10311         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10312         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
10314 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10316         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10317         from rtx to rtx_insn *.
10318         (DEP_PRO): Delete this function and...
10319         (SET_DEP_PRO): ...this function in favor of...
10320         (DEP_PRO): ...reinstate this macro.
10321         (DEP_CON): Delete this function and...
10322         (SET_DEP_CON): ...this function in favor of...
10323         (DEP_CON): ...reinstate this old macro.
10324         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10325         (init_dep): Likewise.
10326         (set_priorities): Likewise for both params.
10327         (sd_copy_back_deps): Likewise for params 1 and 2.
10329         * haifa-sched.c (priority): Likewise for param "insn" and local
10330         "next".
10331         (set_priorities): Likewise for params "head" and "tail" and local
10332         "insn".
10333         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10334         local "consumer".
10335         (add_to_speculative_block): Add a checked cast.
10336         (create_check_block_twin): Drop use of SET_DEP_CON.
10337         (add_jump_dependencies): Strengthen params "insn" and "jump" from
10338         rtx to rtx_insn *.
10340         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10341         Drop use of SET_DEP_PRO
10342         (init_dep): Strengthen params "pro" and "con" from rtx to
10343         rtx_insn *.
10344         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
10345         use of SET_DEP_CON.
10346         (DEP_PRO): Delete.
10347         (DEP_CON): Delete.
10348         (SET_DEP_PRO): Delete.
10349         (SET_DEP_CON): Delete.
10351 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10353         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10354         from rtx to rtx_insn *.
10355         (VINSN_INSN_RTX): Eliminate rvalue function and...
10356         (SET_VINSN_INSN): ...lvalue function in favor of...
10357         (VINSN_INSN_RTX): reinstate this old macro.
10359         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10360         in favor of VINSN_INSN_RTX.
10361         (VINSN_INSN_RTX): Delete this function.
10362         (SET_VINSN_INSN_RTX): Likewise.
10364 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10366         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10367         (BND_TO): Delete this function and...
10368         (SET_BND_TO): ...this functions in favor of...
10369         (BND_TO): ...reinstating this macro.
10370         (struct _fence): Strengthen field "executing_insns" from
10371         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
10372         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10373         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10374         and param "insn" from rtx to insn_t.
10375         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10376         rtx_insn *.
10378         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10379         vec<rtx_insn *> .
10380         (rtx_vec_t): Likewise.
10381         (struct sched_deps_info_def): Strengthen param of "start_insn"
10382         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
10383         "note_mem_dep" callback and first param of "note_dep" callback.
10385         * haifa-sched.c (add_to_speculative_block): Strengthen param
10386         "insn" from rtx to rtx_insn *.
10387         (clear_priorities): Likewise.
10388         (calc_priorities): Likewise for local "insn".
10390         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10391         Remove redundant checked cast.
10392         (haifa_note_mem_dep): Likewise for param "pending_insn".
10393         (haifa_note_dep): Likewise for param "elem".
10394         (note_mem_dep): Likewise for param "e".
10395         (sched_analyze_1): Add checked casts.
10396         (sched_analyze_2): Likewise.
10398         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10399         from rtx to rtx_insn *.
10400         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10401         from vec<rtx> * to vec<rtx_insn *> *.
10403         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10404         scaffolding.
10405         (flist_add): Strengthen param "executing_insns" from
10406         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10407         (advance_deps_context): Remove now-redundant checked cast.
10408         (init_fences): Replace uses of NULL_RTX with NULL.
10409         (merge_fences): Strengthen params "last_scheduled_insn" and
10410         "sched_next" from rtx to rtx_insn * and "executing_insns" from
10411         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10412         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10413         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10414         an instruction, rather than doing double-duty as a pattern.
10415         (return_nop_to_pool): Update for change of insn_t.
10416         (deps_init_id): Remove now-redundant checked cast.
10417         (struct sched_scan_info_def): Strengthen param of "init_insn"
10418         callback from rtx to insn_t.
10419         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10420         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10421         NULL.
10422         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10423         "end" from rtx to rtx_insn *.
10424         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10425         (rtx insn_rtx, bool force_unique_p)
10426         (BND_TO): Delete function.
10427         (SET_BND_TO): Delete function.
10429         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10430         rtx to rtx_insn *.
10431         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10432         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10433         rtx to rtx_insn *.
10434         (undo_transformations): Likewise for param "insn".
10435         (update_liveness_on_insn): Likewise.
10436         (compute_live_below_insn): Likewise for param "insn" and local
10437         "succ".
10438         (update_data_sets): Likewise for param "insn".
10439         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10440         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10441         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10442         rtx_insn *.
10443         (move_cond_jump): Likewise for param "insn".
10444         (move_cond_jump): Drop use of SET_BND_TO.
10445         (compute_av_set_on_boundaries): Likewise.
10446         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10447         (update_and_record_unavailable_insns): Strengthen local "bb_end"
10448         from rtx to rtx_insn *.
10449         (maybe_emit_renaming_copy): Likewise for param "insn".
10450         (maybe_emit_speculative_check): Likewise.
10451         (handle_emitting_transformations): Likewise.
10452         (remove_insn_from_stream): Likewise.
10453         (code_motion_process_successors): Strengthen local "succ" from rtx
10454         to insn_t.
10456 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10458         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10459         ilist_t, not _xlist_t;
10460         (ILIST_INSN): Define in terms of new union field "insn".
10461         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10462         _XLIST_NEXT.
10463         (struct _list_node): Add new field "insn" to the union, of type
10464         insn_t.
10465         (ilist_add): Replace macro with an inline function, requiring an
10466         insn_t.
10467         (ilist_remove): Define this macro directly in terms of
10468         _list_remove, rather than indirectly via _xlist_remove.
10469         (ilist_clear): Likewise, in terms of _list_clear rather than
10470         _xlist_clear.
10471         (ilist_is_in_p): Replace macro with an inline function, requiring
10472         an insn_t.
10473         (_list_iter_cond_insn): New function.
10474         (ilist_iter_remove): Define this macro directly in terms of
10475         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10476         (ilist_iterator): Define directly in terms of _list_iterator
10477         rather than indirectly through _xlist_iterator.
10478         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10479         than in terms of _FOR_EACH_X.
10480         (FOR_EACH_INSN_1): Likewise.
10482 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
10484         PR target/60606
10485         PR target/61330
10486         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10487         DECL_HARD_REGISTER and return for invalid register specifications.
10488         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10489         DECL_HARD_REGISTER, call expand_one_error_var.
10490         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10491         CC_REGNUM with non-MODE_CC modes.
10492         (arm_regno_class): Return NO_REGS for PC_REGNUM.
10494 2014-08-26  Marek Polacek  <polacek@redhat.com>
10496         PR c/61271
10497         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10499 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
10501         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10502         qi cost; add di cost.
10503         (cortexa57_addrcost_table): Likewise.
10505 2014-08-26  Marek Polacek  <polacek@redhat.com>
10507         PR c/61271
10508         * expr.c (is_aligning_offset): Remove logical not.
10510 2014-08-26  Marek Polacek  <polacek@redhat.com>
10512         PR c/61271
10513         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10514         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10516 2014-08-26  Richard Biener  <rguenther@suse.de>
10518         PR tree-optimization/62175
10519         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10520         expand possibly trapping operations.
10522 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10524         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10525         "insn" from rtx to rtx_insn *.
10526         (permute_load): Likewise for param "insn".
10527         (permute_store): Likewise.
10528         (handle_special_swappables): Likewise for local "insn".
10529         (replace_swap_with_copy): Likewise for locals "insn" and
10530         "new_insn".
10531         (rs6000_analyze_swaps): Likewise for local "insn".
10533 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10535         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10536         to rtx_insn *.
10538 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10540         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10541         "note_list" from rtx to rtx_insn *.
10542         (BB_NOTE_LIST): Replace this function and...
10543         (SET_BB_NOTE_LIST): ...this function with...
10544         (BB_NOTE_LIST): ...the former macro implementation.
10546         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10547         local "from_start" from rtx to rtx_insn *.  Strengthen param
10548         "to_endp" from rtx * to rtx_insn **.
10550         * haifa-sched.c (concat_note_lists): Likewise.
10551         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10552         BB_NOTE_LIST.
10553         (sel_restore_notes): Likewise.
10554         (move_bb_info): Likewise.
10555         (BB_NOTE_LIST): Delete this function.
10556         (SET_BB_NOTE_LIST): Delete this function.
10557         * sel-sched.c (create_block_for_bookkeeping): Eliminate
10558         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10560 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10562         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10563         from rtx * to rtx_insn **.
10564         (reorder2): Likewise.
10565         (dependencies_evaluation_hook): Strengthen params "head", "tail"
10566         from rtx to rtx_insn *.
10568         * doc/tm.texi: Update mechanically for above change to target.def.
10570         * sched-int.h (note_list): Strengthen this variable from rtx to
10571         rtx_insn *.
10572         (remove_notes): Likewise for both params.
10573         (restore_other_notes): Likewise for return type and first param.
10574         (struct ready_list): Strengthen field "vec" from rtx * to
10575         rtx_insn **.
10576         (struct dep_replacement): Strenghten field "insn" from rtx to
10577         rtx_insn *.
10578         (struct deps_desc): Likewise for fields "last_debug_insn",
10579         "last_args_size".
10580         (struct haifa_sched_info): Likewise for callback field
10581         "can_schedule_ready_p"'s param, for first param of "new_ready"
10582         callback field, for both params of "rank" callback field, for
10583         first field of "print_insn" callback field (with a const), for
10584         both params of "contributes_to_priority" callback, for param
10585         of "insn_finishes_block_p" callback, for fields "prev_head",
10586         "next_tail", "head", "tail", for first param of "add_remove_insn"
10587         callback, for first param of "begin_schedule_ready" callback, for
10588         both params of "begin_move_insn" callback, and for second param
10589         of "advance_target_bb" callback.
10590         (add_dependence): Likewise for params 1 and 2.
10591         (sched_analyze): Likewise for params 2 and 3.
10592         (deps_analyze_insn): Likewise for param 2.
10593         (ready_element): Likewise for return type.
10594         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10595         (try_ready): Strenghten param from rtx to rtx_insn *.
10596         (sched_emit_insn): Likewise for return type.
10597         (record_delay_slot_pair): Likewise for params 1 and 2.
10598         (add_delay_dependencies): Likewise for param.
10599         (contributes_to_priority): Likewise for both params.
10600         (find_modifiable_mems): Likewise.
10602         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
10603         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
10604         "first_older_only_insn" from rtx to rtx_insn *.
10605         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
10606         rtx_insn **.
10608         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10609         "last_scheduled_iter0" from rtx to rtx_insn *.
10610         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10611         (c6x_sched_reorder_1): Strengthen param "ready" and locals
10612         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
10613         "insn" from rtx to rtx_insn *.
10614         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10615         rtx_insn **.
10616         (c6x_sched_reorder2): Strengthen param "ready" and locals
10617         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10618         "insn" from rtx to rtx_insn *.
10619         (c6x_variable_issue):  Add a checked cast when assigning from insn
10620         to ss.last_scheduled_iter0.
10621         (split_delayed_branch): Strengthen param "insn" and local "i1"
10622         from rtx to rtx_insn *.
10623         (split_delayed_nonbranch): Likewise.
10624         (undo_split_delayed_nonbranch): Likewise for local "insn".
10625         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10626         "entry_after", "end_packet", "head_insn", "tail_insn",
10627         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10628         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10629         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
10630         but add a checked cast on loop->start_label.  Consolidate calls to
10631         avoid assigning result of gen_spkernel to "insn", now an
10632         rtx_insn *.
10634         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10635         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
10636         rtx to rtx_insn *.
10637         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10638         rtx_insn **.  Strengthen locals "top", "next" from rtx to
10639         rtx_insn *.
10640         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10641         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10642         (add_parameter_dependencies): Strengthen params "call", "head" and
10643         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10644         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10645         (add_dependee_for_func_arg): Likewise for param "arg" and local
10646         "insn".
10647         (ix86_dependencies_evaluation_hook): Likewise for params "head",
10648         "tail" and locals "insn", "first_arg".
10650         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10651         for params "head", "tail" and locals "insn", "next", "next_tail".
10652         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10653         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10654         "insn", "lowest", "highest" from rtx to rtx_insn *.
10655         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10656         rtx_insn **.
10657         (ia64_sched_reorder2): Likewise.
10659         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10660         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
10661         from rtx * to rtx_insn **.
10662         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10663         rtx_insn **.
10664         (mep_print_sched_insn): Strengthen param "insn" from rtx to
10665         rtx_insn *.
10666         (mep_sched_reorder): Strengthen param "ready" from rtx * to
10667         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
10668         to rtx_insn *.
10670         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10671         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
10672         to rtx_insn *.
10673         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10674         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
10675         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10676         rtx_insn **.
10677         (vr4130_reorder): Likewise.
10678         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
10679         rtx to rtx_insn *.
10680         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10681         rtx_insn **.
10682         (mips_sched_reorder): Likewise.
10683         (mips_sched_reorder2): Likewise.
10685         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10687         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10688         Strengthen local "tmp" from rtx to rtx_insn *.
10689         (rs6000_sched_reorder2): Likewise.
10691         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10692         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10693         (s390_sched_reorder): Strengthen param "ready" from rtx * to
10694         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
10696         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10697         "tmp2" from rtx to rtx_insn *.
10698         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10699         Strengthen local "insn" from rtx to rtx_insn *.
10700         (ready_reorder): Strengthen param "ready" from rtx * to
10701         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10702         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
10703         (sh_reorder2): Likewise.
10705         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
10706         local "insn" from rtx to rtx_insn *.
10708         * haifa-sched.c (note_list): Strengthen this variable from rtx to
10709         rtx_insn *.
10710         (scheduled_insns): Strengthen this variable from vec<rtx> to
10711         vec<rtx_insn *>.
10712         (set_modulo_params): Likewise for locals "i1", "i2".
10713         (record_delay_slot_pair): Likewise for params "i1", "i2".
10714         (add_delay_dependencies): Likewise for param "insn".
10715         (cond_clobbered_p): Likewise.
10716         (recompute_todo_spec): Likewise for local "prev".
10717         (last_scheduled_insn): Likewise for this variable.
10718         (nonscheduled_insns_begin): Likewise.
10719         (model_set_excess_costs): Strengthen param "insns" from rtx * to
10720         rtx_insn **.
10721         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10722         rtx_insn *.
10723         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10724         Strengthen local "insn" from rtx to rtx_insn *.
10725         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10726         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10727         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10728         (ready_remove_first): Likewise for return type and local "t".
10729         (ready_element): Likewise for return type.
10730         (ready_remove): Likewise for return type and local "t".
10731         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10732         (check_clobbered_conditions): Strengthen local "x" from rtx to
10733         rtx_insn *, adding a checked cast.
10734         (schedule_insn): Likewise for param "insn".
10735         (remove_notes): Likewise for params "head", "tail" and locals
10736         "next_tail", "insn", "next".
10737         (struct haifa_saved_data): Likewise for fields
10738         "last_scheduled_insn", "nonscheduled_insns_begin".
10739         (save_backtrack_point): Update for change to field "vec" of
10740         struct ready_list.
10741         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10742         rtx_insn **.
10743         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
10744         from rtx to rtx_insn *
10745         (resolve_dependencies): Strengthen param "insn" from rtx to
10746         rtx_insn *
10747         (restore_other_notes): Likewise for return type, for param "head"
10748         and local "note_head".
10749         (undo_all_replacements): Likewise for local "insn".
10750         (first_nonscheduled_insn): Likewise for return type and local "insn".
10751         (queue_to_ready): Likewise for local "insn", adding checked casts.
10752         (early_queue_to_ready): Likewise for local "insn".
10753         (debug_ready_list_1): Strengthen local "p" from rtx * to
10754         rtx_insn **.
10755         (move_insn): Strengthen param "insn" and local "note" from rtx to
10756         rtx_insn *
10757         (insn_finishes_cycle_p): Likewise for param "insn".
10758         (max_issue): Likewise for local "insn".
10759         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
10760         to rtx_insn **.
10761         (commit_schedule): Strengthen param "prev_head" and local "insn"
10762         from rtx to rtx_insn *
10763         (prune_ready_list): Likewise for local "insn".
10764         (schedule_block): Likewise for locals "prev_head", "head", "tail",
10765         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10766         (set_priorities): Likewise for local "prev_head".
10767         (try_ready): Likewise for param "next".
10768         (fix_tick_ready): Likewise.
10769         (change_queue_index): Likewise.
10770         (sched_extend_ready_list): Update for change to field "vec" of
10771         struct ready_list.
10772         (generate_recovery_code): Strengthen param "insn" from rtx to
10773         rtx_insn *.
10774         (begin_speculative_block): Likewise.
10775         (create_check_block_twin): Likewise for param "insn" and locals
10776         "label", "check", "twin".  Introduce local "check_pat" to avoid
10777         "check" being used as a plain rtx before being used as an insn.
10778         (fix_recovery_deps): Add a checked cast to rtx_insn * when
10779         extracting elements from ready_list.
10780         (sched_remove_insn): Strengthen param "insn" from rtx to
10781         rtx_insn *.
10782         (sched_emit_insn): Likewise for return type.
10783         (ready_remove_first_dispatch): Likewise for return type and local
10784         "insn".
10786         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10788         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10789         const rtx_insn *.
10791         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10792         from rtx to rtx_insn *.
10793         (add_dependence_list): Likewise for param "insn".  Add a checked
10794         cast.
10795         (add_dependence_list_and_free): Strengthen param "insn" from rtx
10796         to rtx_insn *.  Strengthen param "list_p" from rtx * to
10797         rtx_insn **.
10798         (chain_to_prev_insn): Strengthen param "insn" and locals
10799         "prec_nonnote", "i" from rtx to rtx_insn *.
10800         (flush_pending_lists): Likewise for param "insn".
10801         (cur_insn): Likewise for this variable.
10802         (haifa_start_insn): Add a checked cast.
10803         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10804         (sched_analyze_reg): Likewise for param "insn".
10805         (sched_analyze_1): Likewise.
10806         (sched_analyze_2): Likewise.  Add checked casts.
10807         (sched_analyze_insn): Likewise.  Also for local "prev".
10808         (deps_analyze_insn): Likewise for param "insn".
10809         (sched_analyze): Likewise for params "head", "tail" and local "insn".
10810         (add_dependence_1): Likewise for params "insn", "elem".
10811         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10812         (parse_add_or_inc): Likewise for param "insn".
10813         (find_inc): Likewise for local "inc_cand".
10814         (find_modifiable_mems): Likewise for params "head", "tail" and
10815         locals "insn", "next_tail".
10817         * sched-ebb.c (init_ready_list): Likewise for local "insn".
10818         (begin_schedule_ready): Likewise for param "insn".
10819         (begin_move_insn): Likewise for params "insn" and "last".
10820         (ebb_print_insn): Strengthen param "insn" from const_rtx to
10821         const rtx_insn *.
10822         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10823         (ebb_contributes_to_priority): Likewise for params "next", "insn".
10824         (ebb_add_remove_insn): Likewise for param "insn".
10825         (advance_target_bb): Likewise.
10827         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10828         "insn".
10829         (check_live): Likewise for param "insn".
10830         (init_ready_list): Likewise for local "insn".
10831         (can_schedule_ready_p): Likewise for param "insn".
10832         (begin_schedule_ready): Likewise.
10833         (new_ready): Likewise for param "next".
10834         (rgn_print_insn): Likewise for param "insn".
10835         (rgn_rank): Likewise for params "insn1", "insn2".
10836         (contributes_to_priority): Likewise for params "next", "insn".
10837         (rgn_insn_finishes_block_p): Likewise for param "insn".
10838         (add_branch_dependences): Likewise for params "head", "tail" and
10839         locals "insn", "last".
10840         (rgn_add_remove_insn): Likewise for param "insn".
10841         (advance_target_bb): Likewise.
10843         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10844         const_rtx to const rtx_insn *.
10846         * sel-sched-dump.h (sel_print_insn): Likewise.
10848         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10849         (deps_init_id): Likewise.
10851         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10852         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10853         rtx_insn **.
10855 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10857         * output.h (final_start_function): Strengthen param 1 from rtx to
10858         rtx_insn *.
10860         * final.c (final_start_function): Likewise, renaming back from
10861         "uncast_first" to "first", and dropping the checked cast from rtx
10862         to rtx_insn *.
10864 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10866         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10867         * final.c (final): Likewise.  Rename param back from
10868         "uncast_first" to "first" and eliminate the checked cast from rtx
10869         to rtx_insn *.
10871 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10873         * output.h (shorten_branches): Strengthen param from rtx to
10874         rtx_insn *.
10876         * final.c (shorten_branches): Likewise, renaming param back from
10877         "uncast_first" to "first", and dropping the checked cast from rtx
10878         to rtx_insn *.
10880         * genattr.c (gen_attr): Likewise when writing out the prototype of
10881         shorten_branches.
10883 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10885         * sched-int.h (struct haifa_sched_info): Strengthen fields
10886         "prev_head" and "next_tail" from rtx to rtx_insn *.
10888 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10890         * rtl.h (rtx_jump_table_data::get_labels): New method.
10891         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10892         with use of the new rtx_jump_table_data::get_labels method.
10893         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10894         to rtx_jump_table_data *.  Simplify by using get_labels method.
10895         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10896         a dyn_cast, introducing local "table", using it to replace
10897         label-lookup logic with a get_labels method call.
10898         (patch_jump_insn): Simplify using get_labels method.
10899         * dwarf2cfi.c (create_trace_edges): Likewise.
10900         * rtlanal.c (label_is_jump_target_p): Likewise.
10902 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10904         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10905         to rtx_insn *.
10907         * emit-rtl.c (unshare_all_rtl_1): Likewise.
10908         (unshare_all_rtl_again): Likewise, also for local "p".
10910 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10912         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10913         to rtx_insn *.
10914         * cfgrtl.c (delete_insn_and_edges): Likewise.
10916 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10918         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10919         from rtx to rtx_insn *.
10921         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10923 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10925         * function.c (thread_prologue_and_epilogue_insns): Likewise for
10926         locals "returnjump", "epilogue_end", "insn", "next".
10928         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10929         "returnjump" from rtx * to rtx_insn **.
10930         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10932 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10934         * basic-block.h (struct edge_def). Strengthen "r" within
10935         union edge_def_insns from rtx to rtx_insn *.
10937         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10938         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
10939         rtx_insn *.
10940         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10941         from rtx to rtx_insn *.
10942         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10943         rtx_insn *.
10944         * postreload-gcse.c (reg_killed_on_edge): Likewise.
10945         (reg_used_on_edge): Likewise.
10946         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10947         (gt_pch_nx): New overload for rtx_insn *&.
10948         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10949         from rtx to rtx_insn *.
10951 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10953         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10954         from rtx to rtx_insn *.
10955         (BB_FOOTER): Replace function with access macro.
10956         (SET_BB_FOOTER): Delete.
10958         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10959         with BB_FOOTER.
10960         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10961         (emit_barrier_after_bb): Likewise.
10962         (record_effective_endpoints): Likewise.
10963         (relink_block_chain): Likewise.
10964         (fixup_fallthru_exit_predecessor): Likewise.
10965         (cfg_layout_duplicate_bb): Likewise.
10966         (cfg_layout_split_block): Likewise.
10967         (cfg_layout_delete_block): Likewise.
10968         (cfg_layout_merge_blocks): Likewise.
10969         (BB_FOOTER): Delete function.
10970         (SET_BB_FOOTER): Delete function.
10971         * combine.c (update_cfg_for_uncondjump): Replace uses of
10972         SET_BB_FOOTER with BB_FOOTER.
10974 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10976         * except.h (struct eh_landing_pad_d): Strengthen field
10977         "landing_pad" from rtx to rtx_code_label *.
10979         * except.c (sjlj_emit_dispatch_table): Likewise for param
10980         "dispatch_label"
10981         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10983 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10985         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10986         first param from rtx to rtx_insn *.
10987         * config/xtensa/xtensa.c (struct machine_function): Likewise for
10988         field "set_frame_ptr_insn".
10989         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10990         "csend" from rtx to rtx_code_label *.
10991         (xtensa_expand_atomic): Likewise for local "csloop".
10992         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10993         rtx_insn *.
10994         (xtensa_call_tls_desc): Likewise for return type and locals
10995         "call_insn", "insns".
10996         (xtensa_legitimize_tls_address): Likewise for local "insns".
10997         (xtensa_expand_prologue): Likewise for locals "insn", "first".
10999 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11001         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11002         first param from rtx to rtx_insn *.
11003         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11004         "insn".
11006 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11008         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11009         Strengthen param 1 from rtx to rtx_insn *.
11010         (tilepro_output_cbranch): Likewise.
11011         (tilepro_adjust_insn_length): Likewise.
11012         (tilepro_final_prescan_insn): Likewise for sole param.
11014         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11015         Likewise for local "last".
11016         (cbranch_predicted_p): Likewise for param "insn".
11017         (tilepro_output_simple_cbranch_with_opcode): Likewise.
11018         (tilepro_output_cbranch_with_opcode): Likewise.
11019         (tilepro_output_cbranch): Likewise.
11020         (frame_emit_load): Likewise for return type and locals "seq",
11021         "insn".
11022         (emit_sp_adjust): Likewise for return type and local "insn".
11023         (tilepro_expand_epilogue): Likewise for locals "last_insn",
11024         "insn".
11025         (tilepro_adjust_insn_length): Likewise for param "insn".
11026         (next_insn_to_bundle): Likewise for return type and params
11027         "r", "end".
11028         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11029         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11030         local "new_insns".
11031         (match_addli_pcrel): Likewise for param "insn".
11032         (replace_addli_pcrel): Likewise.
11033         (match_auli_pcrel): Likewise.
11034         (replace_auli_pcrel): Likewise.
11035         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11036         "next_insn".
11037         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11038         "queue", "next_queue", "prev".
11039         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11040         (tilepro_final_prescan_insn): Likewise for param "insn".
11042 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11044         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11045         Strengthen param 1 from rtx to rtx_insn *.
11046         (tilegx_output_cbranch): Likewise.
11047         (tilegx_adjust_insn_length): Likewise.
11048         (tilegx_final_prescan_insn): Likewise for sole param.
11050         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11051         or local "last".
11052         (cbranch_predicted_p): Likewise for param "insn".
11053         (tilegx_output_simple_cbranch_with_opcode): Likewise.
11054         (tilegx_output_cbranch_with_opcode): Likewise.
11055         (tilegx_output_cbranch): Likewise.
11056         (frame_emit_load): Likewise for return type.
11057         (set_frame_related_p): Likewise for locals "seq", "insn".
11058         (emit_sp_adjust): Likewise for return type, and for local "insn".
11059         Introduce local "pat" for use in place of "insn" where the latter
11060         isn't an instruction.
11061         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11062         from rtx to rtx_insn *.
11063         (tilegx_adjust_insn_length): Likewise for param "insn".
11064         (next_insn_to_bundle): Likewise for return type and params "r" and
11065         "end".
11066         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11067         "end".
11068         (replace_insns): Likewise for params "old_insn", "new_insns".
11069         (replace_mov_pcrel_step1): Likewise for param "insn" and local
11070         "new_insns".
11071         (replace_mov_pcrel_step2): Likewise.
11072         (replace_mov_pcrel_step3): Likewise.
11073         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11074         "next_insn".
11075         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11076         "queue", "next_queue", "prev".
11077         (tilegx_output_mi_thunk): Likewise for local "insn".
11078         (tilegx_final_prescan_insn): Likewise for param "insn".
11080 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11082         * config/spu/spu.c (frame_emit_store): Strengthen return type from
11083         rtx to rtx_insn *.
11084         (frame_emit_load): Likewise.
11085         (frame_emit_add_imm): Likewise, also for local "insn".
11086         (spu_expand_prologue): Likewise for local "insn".
11087         (struct spu_bb_info): Likewise for field "prop_jump".
11088         (emit_nop_for_insn): Likewise for param "insn" and local
11089         "new_insn".
11090         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11091         "hbr_insn".
11092         (spu_emit_branch_hint): Likewise for params "before", "branch" and
11093         locals "hint", "insn".
11094         (get_branch_target): Likewise for param "branch".
11095         (insn_clobbers_hbr): Likewise for param "insn".
11096         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11097         locals "insn", "before_4", "before_16".
11098         (insert_hbrp): Likewise for local "insn".
11099         (spu_machine_dependent_reorg): Likewise for locals "branch",
11100         "insn", "next", "bbend".
11101         (uses_ls_unit): Likewise for param "insn".
11102         (get_pipe): Likewise.
11103         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11104         introducing a checked cast.
11105         (spu_sched_adjust_cost): Likewise for params "insn" and
11106         "dep_insn".
11107         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11108         (spu_sms_res_mii): Likewise.
11110 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11112         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11113         from rtx to rtx_insn *.
11114         (output_cbranch): Likewise for param 6.
11115         (output_return): Likewise for param 1.
11116         (output_sibcall): Likewise.
11117         (output_v8plus_shift): Likewise.
11118         (output_v8plus_mult): Likewise.
11119         (output_v9branch): Likewise for param 7.
11120         (output_cbcond):  Likewise for param 3.
11122         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11123         for local "insn".
11124         (sparc_legitimize_pic_address): Likewise.
11125         (sparc_emit_call_insn): Likewise.
11126         (emit_save_or_restore_regs): Likewise.
11127         (emit_window_save): Likewise for return type and local "insn".
11128         (sparc_expand_prologue): Likewise for local "insn".
11129         (sparc_flat_expand_prologue): Likewise.
11130         (output_return): Likewise for param "insn".
11131         (output_sibcall): Likewise for param "insn" and local "delay".
11132         (output_ubranch): Likewise for param "insn".
11133         (output_cbranch): Likewise.
11134         (output_cbcond): Likewise.
11135         (output_v9branch): Likewise.
11136         (output_v8plus_shift): Likewise.
11137         (sparc_output_mi_thunk): Likewise for local "insn".
11138         (get_some_local_dynamic_name): Likewise.
11139         (output_v8plus_mult): Likewise for param "insn".
11141 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11143         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11144         from rtx to rtx_insn *.
11145         (output_branchy_insn): Likewise for param 3.
11146         (output_far_jump): Likewise for param 1.
11147         (final_prescan_insn): Likewise.
11148         (sh_insn_length_adjustment): Likewise for sole param.
11150         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11151         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11152         rtx_code_label *.
11153         (sh_emit_compare_and_set): Likewise for local "lab".
11154         (output_far_jump): Strengthen param "insn" and local "prev" from
11155         rtx to rtx_insn *.
11156         (output_branchy_insn): Likewise for param "insn" and local
11157         "next_insn".
11158         (output_ieee_ccmpeq): Likewise for param "insn".
11159         (struct label_ref_list_d): Strengthen field "label" from rtx to
11160         rtx_code_label *.
11161         (pool_node): Likewise.
11162         (pool_window_label): Likewise for this global.
11163         (add_constant): Likewise for return type and locals "lab", "new_rtx".
11164         (dump_table): Strengthen params "start", "barrier" and local
11165         "scan" from rtx to rtx_insn *.
11166         (broken_move): Likewise for param "insn".
11167         (untangle_mova): Likewise for params "first_mova" and "new_mova".
11168         Strengthen param "first_mova" from rtx * to rtx_insn **.
11169         (mova_p): Likewise for param "insn".
11170         (fixup_mova): Likewise for param "mova".
11171         (find_barrier): Likewise for return type, params "mova" and
11172         "from", and locals "barrier_before_mova", "found_barrier",
11173         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
11174         "label" from rtx to rtx_code_label *.
11175         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11176         rtx to rtx_insn *.
11177         (sh_reorg): Likewise for locals "link", "scan", "barrier".
11178         (split_branches): Likewise for param "first" and local "insn".
11179         (final_prescan_insn): Likewise for param "insn".
11180         (sequence_insn_p): Likewise for locals "prev", "next".
11181         (sh_insn_length_adjustment): Likewise for param "insn".
11182         (sh_can_redirect_branch): Likewise for local "insn".
11183         (find_r0_life_regions): Likewise for locals "end", "insn".
11184         (sh_output_mi_thunk): Likewise for local "insns".
11186 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11188         * config/score/score.c (score_output_mi_thunk): Strengthen local
11189         "insn" from rtx to rtx_insn *.
11190         (score_prologue): Likewise.
11192 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11194         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11195         1 from rtx to rtx_insn *.
11196         (s390_emit_jump): Likewise for return type.
11197         (s390_emit_call): Likewise.
11198         (s390_load_got): Likewise.
11200         * config/s390/s390.c (last_scheduled_insn): Likewise for this
11201         variable.
11202         (s390_match_ccmode): Likewise for param "insn".
11203         (s390_emit_jump): Likewise for return type.
11204         (s390_split_branches): Likewise for local "label".
11205         (struct constant): Strengthen field "label" from rtx to
11206         rtx_code_label *.
11207         (struct constant_pool): Likewise for field "label".  Strengthen
11208         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11209         rtx_insn *.
11210         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11211         insns.
11212         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11213         (s390_end_pool): Likewise.
11214         (s390_dump_pool): Likewise for local "insn".
11215         (s390_mainpool_start): Likewise.
11216         (s390_chunkify_start): Likewise.
11217         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11218         with insns.  Strengthen locals "label", "jump", "barrier", "next",
11219         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11220         (s390_chunkify_finish): Strengthen local "insn" from rtx to
11221         rtx_insn *.
11222         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11223         "jump", "label", "next_insn".
11224         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11225         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11226         "tbegin_insn".
11227         (s390_load_got): Likewise for return type and local "insns".
11228         (s390_save_gprs_to_fprs): Likewise for local "insn".
11229         (s390_restore_gprs_from_fprs): Likewise.
11230         (pass_s390_early_mach::execute): Likewise.
11231         (s390_emit_prologue): Likewise for local "insns".
11232         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11233         rtx_code_label *.
11234         (s390_emit_call): Strengthen return type and local "insn" from
11235         rtx to rtx_insn *.
11236         (s390_emit_tpf_eh_return): Likewise for local "insn".
11237         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11238         "next_insn", introducing locals "s_pat", "rpat" to allow this.
11239         (s390_fix_long_loop_prediction): Likewise for param "insn" and
11240         local "cur_insn".
11241         (s390_non_addr_reg_read_p): Likewise for param "insn".
11242         (find_cond_jump): Likewise for return type and param "insn".
11243         (s390_swap_cmp): Likewise for param "insn".
11244         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11245         "prev_insn", "next_insn".
11246         (s390_reorg): Likewise for locals "insn", "target".
11247         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11248         (s390_sched_variable_issue): For now, rename param "insn" to
11249         "uncast_insn", introducing a checked cast.
11250         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11251         insn.
11252         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11253         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
11255 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11257         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11258         param from rtx to rtx_insn *.
11259         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11261 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11263         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11264         4 from rtx to rtx_insn *.
11265         (rs6000_final_prescan_insn): Likewise for first param.
11266         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11267         local "insn".
11268         (rs6000_get_some_local_dynamic_name): Likewise.
11269         (output_cbranch): Likewise for param "insn".
11270         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11271         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11272         (rs6000_emit_allocate_stack): Likewise for local "insn".
11273         (load_cr_save): Likewise.
11274         (restore_saved_cr): Likewise.
11275         (restore_saved_lr): Likewise.
11276         (emit_cfa_restores): Likewise.
11277         (rs6000_output_function_epilogue): Likewise for locals "insn" and
11278         "deleted_debug_label".
11279         (rs6000_output_mi_thunk): Likewise for local "insn".
11280         (rs6000_final_prescan_insn): Likewise for param "insn".
11282 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11284         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11285         Strengthen param "insn" from rtx to rtx_insn *.
11286         * config/picochip/picochip.c (picochip_current_prescan_insn):
11287         Likewise for this variable.
11288         (picochip_final_prescan_insn): Likewise for param "insn".
11290 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11292         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11293         from rtx to rtx_insn *.
11294         (pa_output_indirect_call): Likewise.
11295         (pa_adjust_insn_length): Likewise.
11296         (pa_attr_length_millicode_call): Likewise.
11297         (pa_attr_length_call): Likewise.
11298         (pa_attr_length_indirect_call): Likewise.
11300         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11301         "insn".
11302         (pa_attr_length_millicode_call): Likewise.
11303         (pa_attr_length_call): Likewise.
11304         (pa_output_call): Likewise.
11305         (pa_attr_length_indirect_call): Likewise.
11306         (pa_output_indirect_call): Likewise.
11308 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11310         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11311         Strengthen first param from rtx to rtx_insn *.
11312         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11313         param "insn".
11315 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11317         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11318         type from rtx to rtx_insn *.
11319         (mips_expand_call): Likewise.
11320         (mips_adjust_insn_length): Likewise for first param.
11321         (mips_output_conditional_branch): Likewise.
11322         (mips_output_order_conditional_branch): Likewise.
11323         (mips_final_prescan_insn): Likewise.
11325         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11326         rtx_insn * for the SEQUENCE case.
11327         (SEQ_END): Likewise.
11328         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11329         (mips_emit_call_insn): Likewise, also for local "insn".
11330         (mips16_gp_pseudo_reg): Likewise for local "scan".
11331         (mips16_build_call_stub): Likewise for return type and for local
11332         "insn".  Introduce a new local "pattern" so that "insn" can indeed
11333         be an insn.
11334         (mips_expand_call): Strengthen return type and local "insn" from
11335         rtx to rtx_insn *.
11336         (mips_block_move_loop): Strengthen local "label" from rtx to
11337         rtx_code_label *.
11338         (mips_expand_synci_loop): Likewise for locals "label",
11339         "end_label".
11340         (mips_set_frame_expr): Strengthen local "insn" from rtx to
11341         rtx_insn *.
11342         (mips16e_collect_argument_saves): Likewise for locals "insn",
11343         "next".
11344         (mips_find_gp_ref): Likewise for param of callback for "pred"
11345         param, and for local "insn".
11346         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11347         (mips_insn_has_flexible_gp_ref_p): Likewise.
11348         (mips_epilogue_emit_cfa_restores): Likewise for return type and
11349         local "insn".
11350         (mips_epilogue_set_cfa): Likewise for local "insn".
11351         (mips_expand_epilogue): Likewise.
11352         (mips_adjust_insn_length): Likewise for param "insn".
11353         (mips_output_conditional_branch): Likewise.
11354         (mips_output_order_conditional_branch): Likewise.
11355         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11356         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11357         "falu2_turn_enabled_insn".
11358         (mips_builtin_branch_and_move): Strengthen locals "true_label",
11359         "done_label" from rtx to rtx_code_label *.
11360         (struct mips16_constant): Likewise for field "label".
11361         (mips16_add_constant): Likewise for return type.
11362         (mips16_emit_constants_1): Strengthen return type and param "insn"
11363         from rtx to rtx_insn *.
11364         (mips16_emit_constants): Likewise for param "insn".
11365         (mips16_insn_length): Likewise.
11366         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11367         to rtx_code_label *.
11368         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11369         from rtx to rtx_insn *.
11370         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11371         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
11372         (r10k_simplify_address): Strengthen param "insn" and local
11373         "def_insn" from rtx to rtx_insn *.
11374         (r10k_safe_address_p): Strengthen param "insn" from rtx to
11375         rtx_insn *.
11376         (r10k_needs_protection_p_1): Update target type of cast of data
11377         from to rtx to rtx_insn *.
11378         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11379         rtx * to rtx_insn **.
11380         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11381         rtx_insn *.
11382         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11383         (mips_call_expr_from_insn): Likewise for param "insn".
11384         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11385         (mips_find_pic_call_symbol): Likewise for param "insn".
11386         (mips_annotate_pic_calls): Likewise for local "insn".
11387         (mips_sim_insn): Likewise for this variable.
11388         (struct mips_sim): Likewise for field "insn" within elements of
11389         last_set array.
11390         (mips_sim_wait_reg): Likewise for param "insn".
11391         (mips_sim_wait_regs): Likewise.
11392         (mips_sim_wait_units): Likewise.
11393         (mips_sim_wait_insn): Likewise.
11394         (mips_sim_issue_insn): Likewise.
11395         (mips_sim_finish_insn): Likewise.
11396         (mips_seq_time): Likewise for param "seq" and local "insn".
11397         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11398         locals "first", "second".
11399         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11400         "last", "last2", "next".
11401         (mips_avoid_hazard): Likewise for params "after", "insn".
11402         (mips_reorg_process_insns): Likewise for locals "insn",
11403         "last_insn", "subinsn", "next_insn".
11404         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11405         (mips16_split_long_branches): Likewise for locals "insn" "jump",
11406         "jump_sequence".
11407         (mips_output_mi_thunk): Likewise for local "insn".
11408         (mips_final_prescan_insn): Likewise for param "insn".
11410 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11412         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11413         Strengthen return type and local "insns" from rtx to rtx_insn *.
11414         (microblaze_legitimize_tls_address): Likewise for local "insns".
11415         (microblaze_block_move_loop): Strengthen local "label" from rtx
11416         to rtx_code_label *.
11417         (microblaze_expand_prologue): Strengthen two locals named "insn"
11418         from rtx to rtx_insn *.
11419         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11420         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11421         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
11422         to rtx_code_label *.
11424 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11426         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11427         param from rtx to rtx_insn *.
11428         (mep_reuse_lo): Likewise for third param.
11429         (mep_use_post_modify_p): Likewise for first param.
11430         (mep_core_address_length): Likewise.
11431         (mep_cop_address_length): Likewise.
11432         (mep_final_prescan_insn): Likewise.
11433         (mep_store_data_bypass_p): Likewise for both params.
11434         (mep_mul_hilo_bypass_p): Likewise.
11435         (mep_ipipe_ldc_p): Likewise for param.
11437         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11438         (mep_rewrite_mult): Likewise.
11439         (mep_rewrite_mulsi3): Likewise.
11440         (mep_rewrite_maddsi3): Likewise.
11441         (mep_reuse_lo_p_1): Likewise.
11442         (mep_reuse_lo_p): Likewise.
11443         (mep_frame_expr): Likewise.
11444         (mep_make_parallel): Likewise for both params.
11445         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11446         local "insn".
11447         (mep_use_post_modify_p): Likewise for param "insn".
11448         (mep_core_address_length): Likewise.
11449         (mep_cop_address_length): Likewise.
11450         (mep_reg_set_in_function): Likewise for local "insn".
11451         (mep_asm_without_operands_p): Likewise.
11452         (F): Likewise for return type and param "x".
11453         (add_constant): Likewise for local "insn".
11454         (maybe_dead_move): Likewise for return type and local "insn".
11455         (mep_expand_prologue): Likewise for local "insn".
11456         (mep_final_prescan_insn): Likewise for param "insn".
11457         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11458         "next", "follow", "x".
11459         (mep_insert_repeat_label_last): Likewise for return type, param
11460         "last_insn", and locals "next", "prev".  Strengthen param "label"
11461         from rtx to rtx_code_label *.
11462         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11463         rtx_insn *.
11464         (struct mep_doloop_end): Likewise for fields "insn" and
11465         "fallthrough".
11466         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11467         Strengthen local "repeat_label" from rtx to rtx_code_label *.
11468         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11469         rtx_insn *.
11470         (mep_invert_branch): Likewise for params "insn" and "after".
11471         (mep_reorg_erepeat): Likewise for param "insns" and locals
11472         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
11473         "l" from rtx to rtx_code_label *.
11474         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11475         from rtx to rtx_insn *.
11476         (mep_reorg_addcombine): Likewise for param "insns" and locals
11477         "i", "n".
11478         (add_sp_insn_p): Likewise for param "insn".
11479         (mep_reorg_noframe): Likewise for param "insns" and locals
11480         "start_frame_insn", "end_frame_insn", "next".
11481         (mep_reorg): Likewise for local "insns".
11482         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
11483         cast.
11484         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11485         (mep_mul_hilo_bypass_p): Likewise.
11486         (mep_ipipe_ldc_p): Likewise for param "insn".
11487         (mep_make_bundle): Likewise for return type, param "cop" and local
11488         "insn", splitting out the latter into a new local "seq" for when it
11489         is a SEQUENCE rather than an insn.
11490         (core_insn_p): Likewise for param "insn".
11491         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11492         "last", "first", "note", "prev", "core_insn".
11494 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11496         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11497         rtx to rtx_insn *.
11498         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11499         (m68k_final_prescan_insn): Likewise for first param.
11501         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11502         (m68k_set_frame_related): Likewise for param "insn".
11503         (output_btst): Likewise for param "insn".
11504         (m68k_final_prescan_insn): Likewise.
11505         (m68k_move_to_reg): Likewise for local "insn".
11506         (m68k_call_tls_get_addr): Likewise for local "insns".
11507         (m68k_call_m68k_read_tp): Likewise.
11508         (strict_low_part_peephole_ok): Likewise for param "first_insn".
11509         (m68k_output_mi_thunk): Likewise for local "insn".
11511 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11513         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11514         first param from rtx to rtx_insn *.
11515         (iq2000_adjust_insn_length): Likewise.
11516         (iq2000_output_conditional_branch): Likewise.
11517         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11518         "insn" and local "nop_insn".
11519         (iq2000_annotate_frame_insn): Likewise for param "insn".
11520         (iq2000_expand_prologue): Likewise for both locals "insn".
11521         (iq2000_adjust_insn_length): Likewise for param "insn".
11522         (iq2000_output_conditional_branch): Likewise.
11524 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11526         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11527         "insns" from rtx to rtx_insn *.
11528         (ia64_emit_cond_move): Likewise for locals "insn", "first".
11529         (struct spill_fill_data): Likewise for field "init_after" and for
11530         elements of array field "prev_insn".
11531         (spill_restore_mem): Likewise for locals "insn", "first".
11532         (do_spill): Likewise for local "insn".
11533         (do_restore): Likewise.
11534         (ia64_expand_prologue): Likewise.
11535         (ia64_expand_epilogue): Likewise.
11536         (emit_insn_group_barriers): Likewise for locals "insn",
11537         "last_label".
11538         (emit_all_insn_group_barriers): Likewise for locals "insn",
11539         "last".
11540         (dfa_stop_insn): Likewise for this global.
11541         (dfa_pre_cycle_insn): Likewise.
11542         (ia64_nop): Likewise.
11543         (final_emit_insn_group_barriers): Likewise for locals "insn",
11544         "last".
11545         (emit_predicate_relation_info): Likewise for locals "head", "n",
11546         "insn", "b", "a".
11547         (ia64_reorg): Likewise for local "insn".
11548         (ia64_output_mi_thunk): Likewise.
11549         (expand_vec_perm_interleave_2): Likewise for local "seq".
11551 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11553         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11554         param 1 "insn" from rtx to rtx_insn *.
11555         (ix86_use_lea_for_mov): Likewise.
11556         (ix86_avoid_lea_for_addr): Likewise.
11557         (ix86_split_lea_for_addr): Likewise.
11558         (ix86_lea_for_add_ok): Likewise.
11559         (ix86_output_call_insn): Likewise.
11561         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11562         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11563         (ix86_output_function_epilogue): Likewise for locals "insn",
11564         "deleted_debug_label".
11565         (legitimize_tls_address): Likewise for local "insn".
11566         (get_some_local_dynamic_name): Likewise.
11567         (increase_distance): Likewise for params "prev", "next".
11568         (distance_non_agu_define_in_bb): Likewise for params "insn",
11569         "start" and locals "prev", "next".
11570         (distance_non_agu_define): Likewise for param "insn".
11571         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11572         locals "next", "prev".
11573         (distance_agu_use): Likewise for param "insn".
11574         (ix86_lea_outperforms): Likewise.
11575         (ix86_ok_to_clobber_flags): Likewise.
11576         (ix86_avoid_lea_for_add): Likewise.
11577         (ix86_use_lea_for_mov): Likewise.
11578         (ix86_avoid_lea_for_addr): Likewise.
11579         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11580         (ix86_split_lea_for_addr): Likewise for param "insn".
11581         (ix86_lea_for_add_ok): Likewise for param "insn".
11582         (ix86_expand_carry_flag_compare): Likewise for local
11583         "compare_seq".
11584         (ix86_expand_int_movcc): Likewise.
11585         (ix86_output_call_insn): Likewise for param "insn".
11586         (ix86_output_call_insn): Likewise for local "i".
11587         (x86_output_mi_thunk): Introduce local "insn", using it in place
11588         of "tmp" when dealing with insns.
11589         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11590         "start".
11591         (ix86_pad_returns): Likewise for locals "ret", "prev".
11592         (ix86_count_insn_bb): Likewise for local "insn".
11593         (ix86_pad_short_function): Likewise for locals "ret", "insn".
11594         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11595         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11596         (expand_vec_perm_interleave2): Likewise for local "seq".
11597         (expand_vec_perm_vperm2f128_vblend): Likewise.
11598         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
11599         call to for_each_rtx with for_each_rtx_in_insn.
11601 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11603         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11604         "label" from rtx to rtx_code_label *.
11605         (ix86_expand_prologue): Likewise.
11606         (ix86_expand_split_stack_prologue): Likewise for locals "label",
11607         "varargs_label".
11608         (ix86_split_idivmod): Likewise for locals "end_label" and
11609         "qimode_label".
11610         (ix86_expand_branch): Likewise for local "label2".
11611         (ix86_expand_aligntest): Likewise for return type and local "label".
11612         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11613         "top_label".
11614         (expand_movmem_epilogue): Likewise for the various locals named
11615         "label".
11616         (expand_setmem_epilogue): Likewise.
11617         (expand_small_movmem_or_setmem): Likewise for local "label".
11618         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11619         Strengthen param "done_label" from rtx * to rtx_code_label **.
11620         Strengthen locals "loop_label" and "label" from rtx to
11621         rtx_code_label *.
11622         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11623         Likewise for locals "loop_label", "label".
11624         (ix86_expand_set_or_movmem): Likewise for locals "label",
11625         "jump_around_label", "hot_label".
11626         (ix86_expand_strlensi_unroll_1): Likewise for locals
11627         "align_2_label", align_3_label", "align_4_label", "end_0_label",
11628         "end_2_label".
11629         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11630         (void ix86_emit_i387_log1p): Likewise for locals "label1",
11631         "label2", "jump_label".
11632         (ix86_expand_sse_compare_and_jump): Likewise for return type and
11633         local "label".
11634         (ix86_expand_lfloorceil): Likewise for local "label".
11635         (ix86_expand_rint): Likewise.
11636         (ix86_expand_floorceildf_32): Likewise.
11637         (ix86_expand_floorceil): Likewise.
11638         (ix86_expand_rounddf_32): Likewise.
11639         (ix86_expand_trunc): Likewise.
11640         (ix86_expand_truncdf_32): Likewise.
11641         (ix86_expand_round): Likewise.
11643 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11645         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11646         first param from rtx to rtx_insn *.
11647         (h8300_insn_length_from_table): Likewise.
11648         * config/h8300/h8300.c (F): Likewise for return type and param
11649         "x".
11650         (Fpa): Add a checked cast to rtx_insn *.
11651         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11652         rtx_insn *.
11653         (final_prescan_insn): Likewise for param "insn".
11654         (h8300_binary_length): Likewise.
11655         (h8300_insn_length_from_table): Likewise.
11657 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11659         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11660         Strengthen first param "insn" from rtx to rtx_insn *.
11662         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11663         Likewise.
11664         (frame_insn): Likewise for return type.  Introduce local "insn"
11665         for use in place of local "x" for use as an rtx_insn *.
11666         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11667         (epiphany_expand_prologue): Likewise for local "insn".
11668         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11669         * config/epiphany/resolve-sw-modes.c
11670         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11671         "seq".
11673 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11675         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11676         param from rtx to rtx_insn *.
11677         (c6x_final_prescan_insn): Likewise for first param.
11679         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11680         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11681         (c6x_expand_compare): Strengthen local "insns" from rtx to
11682         rtx_insn *.
11683         (c6x_get_unit_specifier): Likewise for param "insn".
11684         (c6x_print_unit_specifier_field): Likewise.
11685         (c6x_final_prescan_insn): Likewise.
11686         (emit_add_sp_const): Likewise for local "insn".
11687         (c6x_expand_prologue): Likewise.
11689 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11691         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11692         param 1 from rtx to rtx_insn *.
11693         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11694         the various locals named "insn".
11695         (expand_epilogue_reg_restore): Likewise.
11696         (frame_related_constant_load): Likewise.
11697         (add_to_reg): Likewise.
11698         (emit_link_insn): Likewise.
11699         (do_link): Likewise.
11700         (expand_interrupt_handler_prologue): Likewise.
11701         (branch_dest): Likewise for param "branch".
11702         (asm_conditional_branch): Likewise for param "insn".
11703         (gen_one_bundle): Likewise for elements of param "slot" and local
11704         "t".
11705         (bfin_gen_bundles): Likewise for locals "insn", "next" and
11706         elements of local "slot".
11707         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11708         "queue", "next_queue", "prev".
11709         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11710         (add_sched_insns_for_speculation): Likewise for local "insn".
11712 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11714         * config/avr/avr-protos.h (output_movqi): Strengthen first param
11715         from rtx to rtx_insn *.
11716         (output_movhi): Likewise.
11717         (output_movsisf): Likewise.
11718         (avr_out_tstsi): Likewise.
11719         (avr_out_tsthi): Likewise.
11720         (avr_out_tstpsi): Likewise.
11721         (avr_out_compare): Likewise.
11722         (avr_out_compare64): Likewise.
11723         (avr_out_movpsi): Likewise.
11724         (ashlqi3_out): Likewise.
11725         (ashlhi3_out): Likewise.
11726         (ashlsi3_out): Likewise.
11727         (ashrqi3_out): Likewise.
11728         (ashrhi3_out): Likewise.
11729         (ashrsi3_out): Likewise.
11730         (lshrqi3_out): Likewise.
11731         (lshrhi3_out): Likewise.
11732         (lshrsi3_out): Likewise.
11733         (avr_out_ashlpsi3): Likewise.
11734         (avr_out_ashrpsi3): Likewise.
11735         (avr_out_lshrpsi3): Likewise.
11736         (avr_out_fract): Likewise.
11737         (avr_out_sbxx_branch): Likewise.
11738         (avr_out_round): Likewise.
11739         (avr_out_xload): Likewise.
11740         (avr_out_movmem): Likewise.
11741         (adjust_insn_length): Likewise.
11742         (avr_out_lpm): Likewise.
11743         (reg_unused_after): Likewise.
11744         (_reg_unused_after): Likewise.
11745         (avr_jump_mode): Likewise for second param.
11746         (jump_over_one_insn): Likewise for first param.
11747         (avr_final_prescan_insn): Likewise.
11748         (out_shift_with_cnt): Likewise for second param.
11750         * config/avr/avr.c (get_sequence_length): Likewise for param
11751         "insns" and local "insn".
11752         (emit_push_byte): Likewise for local "insn".
11753         (emit_push_sfr): Likewise.
11754         (avr_prologue_setup_frame): Likewise for locals "insn",
11755         "fp_plus_insns", "sp_plus_insns".
11756         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11757         "sp_plus_insns".
11758         (avr_jump_mode): Likewise for param "insn".
11759         (avr_final_prescan_insn): Likewise.
11760         (avr_find_unused_d_reg): Likewise.
11761         (avr_out_lpm_no_lpmx): Likewise.
11762         (avr_out_lpm): Likewise.
11763         (avr_out_xload): Likewise.
11764         (output_movqi): Likewise.
11765         (output_movhi): Likewise.
11766         (out_movqi_r_mr): Likewise.
11767         (out_movhi_r_mr): Likewise.
11768         (out_movsi_r_mr): Likewise.
11769         (out_movsi_mr_r): Likewise.
11770         (output_movsisf): Likewise.
11771         (avr_out_load_psi): Likewise.
11772         (avr_out_store_psi): Likewise.
11773         (avr_out_movpsi): Likewise.
11774         (out_movqi_mr_r): Likewise.
11775         (avr_out_movhi_mr_r_xmega): Likewise.
11776         (out_movhi_mr_r): Likewise.
11777         (compare_condition): Likewise for param "insn" and local "next".
11778         (compare_sign_p): Likewise for param "insn".
11779         (compare_diff_p): Likewise.
11780         (compare_eq_p): Likewise.
11781         (avr_out_compare): Likewise.
11782         (avr_out_compare64): Likewise.
11783         (avr_out_tsthi): Likewise.
11784         (avr_out_tstpsi): Likewise.
11785         (avr_out_tstsi): Likewise.
11786         (out_shift_with_cnt): Likewise.
11787         (ashlqi3_out): Likewise.
11788         (ashlhi3_out): Likewise.
11789         (avr_out_ashlpsi3): Likewise.
11790         (ashlsi3_out): Likewise.
11791         (ashrqi3_out): Likewise.
11792         (ashrhi3_out): Likewise.
11793         (avr_out_ashrpsi3): Likewise.
11794         (ashrsi3_out): Likewise.
11795         (lshrqi3_out): Likewise.
11796         (lshrhi3_out): Likewise.
11797         (avr_out_lshrpsi3): Likewise.
11798         (lshrsi3_out): Likewise.
11799         (avr_out_fract): Likewise.
11800         (avr_out_round): Likewise.
11801         (avr_adjust_insn_length): Likewise.
11802         (reg_unused_after): Likewise.
11803         (_reg_unused_after): Likewise.
11804         (avr_compare_pattern): Likewise.
11805         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11806         and locals "branch1", "branch2", "insn2", "jump".
11807         (avr_reorg): Likewise for local "insn".
11808         (avr_2word_insn_p): Likewise for param "insn".
11809         (jump_over_one_insn_p): Likewise.
11810         (avr_out_sbxx_branch): Likewise.
11811         (avr_out_movmem): Likewise.
11813 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11815         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11816         param from rtx to rtx_insn *.
11817         (thumb1_final_prescan_insn): Likewise.
11818         (thumb2_final_prescan_insn): Likewise.
11820         * config/arm/arm.c (emit_set_insn): Strengthen return type from
11821         rtx to rtx_insn *.
11822         (struct minipool_node): Likewise for field "insn".
11823         (dump_minipool): Likewise for param "scan".
11824         (create_fix_barrier): Likewise for local "from".  Strengthen local
11825         "label" from rtx to rtx_code_label *.
11826         (push_minipool_barrier): Strengthen param "insn" from rtx to
11827         rtx_insn *.
11828         (push_minipool_fix): Likewise.
11829         (note_invalid_constants): Likewise.
11830         (thumb2_reorg): Likewise for local "insn".
11831         (arm_reorg): Likewise.
11832         (thumb2_final_prescan_insn): Likewise for param
11833         "insn" and local "first_insn".
11834         (arm_final_prescan_insn): Likewise for param "insn" and locals
11835         "start_insn", "this_insn".
11836         (arm_debugger_arg_offset): Likewise for param "insn".
11837         (thumb1_emit_multi_reg_push): Likewise for return type and local
11838         "insn".
11839         (thumb1_final_prescan_insn): Likewise for param "insn".
11840         (thumb_far_jump_used_p): Likewise for local "insn".
11841         (thumb1_expand_prologue): Likewise.
11842         (arm_expand_epilogue_apcs_frame): Likewise.
11843         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11844         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11845         from rtx to rtx_code_label *.
11846         (arm_split_atomic_op): Likewise for local "label".
11847         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11849 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11851         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11852         first param from rtx to rtx_insn *.
11853         (arc_verify_short): Likewise.
11854         (arc_short_long): Likewise.
11855         (arc_need_delay): Likewise.
11857         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11858         "target_insn".
11859         (arc_ccfsm_advance): Likewise for param "insn" and locals
11860         "start_insn", "this_insn".
11861         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11862         (arc_ccfsm_post_advance): Likewise for param "insn".
11863         (arc_next_active_insn): Likewise for return type and param "insn".
11864         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
11865         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11866         (output_short_suffix): Likewise for local "insn".
11867         (arc_final_prescan_insn): Likewise for param "insn".  Remove
11868         now-redundant checked cast.
11869         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11870         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11871         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
11872         for use where lc_set became an insn.
11873         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11874         rtx to rtx_insn *.
11875         (arc_get_insn_variants): Likewise for local "prev".
11876         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11877         "next".
11878         (arc_predicate_delay_insns): Likewise for local "insn".
11879         (arc_pad_return): Likewise for local "prev".  For now, add a
11880         checked cast when extracting the insn from "final_sequence".
11881         (arc_short_long): Likewise for param "insn".
11882         (arc_need_delay): Likewise for param "insn" and local "next".
11883         (arc_label_align): Likewise for locals "prev", "next".
11885 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11887         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11888         "insn" from rtx to rtx_insn *.
11889         (alpha_gp_save_rtx): Likewise for local "seq".
11890         (alpha_instantiate_decls): Likewise for local "top".
11891         (get_some_local_dynamic_name): Likewise for local "insn".
11892         (alpha_does_function_need_gp): Likewise.
11893         (set_frame_related_p): Likewise for return type and for locals
11894         "seq" and "insn".
11895         (emit_frame_store_1): Likewise for local "insn".
11896         (alpha_expand_prologue): Likewise for locals "insn", "seq".
11897         (alpha_end_function): Likewise for local "insn".
11898         (alpha_output_mi_thunk_osf): Likewise.
11899         (alphaev4_insn_pipe): Likewise for param "insn".
11900         (alphaev5_insn_pipe): Likewise.
11901         (alphaev4_next_group): Likewise for return type and param 1
11902         "insn".
11903         (alphaev5_next_group): Likewise.
11904         (alpha_align_insns_1): Likewise for return type and param 1 of
11905         callback param "next_group", and for locals "i", "next", "prev",
11906         "where", "where2", "insn".
11908 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
11910         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11911         rather than modifying the stmt.
11913 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11915         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11916         cgraph_state conversion.
11918 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11920         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11921         Strengthen local "insns" from rtx to rtx_insn *.
11922         (aarch64_set_frame_expr): Likewise for local "insn".
11923         (aarch64_save_or_restore_fprs): Likewise.
11924         (aarch64_save_or_restore_callee_save_registers): Likewise.
11925         (aarch64_expand_prologue): Likewise.
11926         (aarch64_expand_epilogue): Likewise.
11927         (aarch64_output_mi_thunk): Likewise.
11928         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11929         "label2" from rtx to rtx_code_label *.
11930         (aarch64_split_atomic_op): Likewise for local "label".
11932 2014-08-25  Martin Liska  <mliska@suse.cz>
11934         * cgraph.h (symtab_node):
11935         (bool needed_p (void)): created from decide_is_symbol_needed
11936         (bool referred_to_p (void)): created from referred_to_p
11937         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11938         * cgraph.h (cgraph_node):
11939         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11940         (void expand (void)): created from expand_function
11941         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11942         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11943         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11944         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11945         * cgraph.h (varpool_node):
11946         (static void add (tree decl): created from varpool_add_new_variable
11947         * cgraph.h (cgraph_edge):
11948         void remove (void);
11949         (void remove_caller (void)): created from cgraph_edge_remove_caller
11950         (void remove_callee (void)): created from cgraph_edge_remove_callee
11951         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11952           created from cgraph_set_call_stmt
11953         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11954         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11955         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11956           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11957         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11958           created from cgraph_speculative_call_info
11959         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11960           int freq_scale, bool update_original)): created from cgraph_clone_edge
11961         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11962         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11963         (bool recursive_p (void)): created from cgraph_edge_recursive_p
11964         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11965         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11966         (static void rebuild_references (void)): created from cgraph_rebuild_references
11967         * cgraph.h (symbol_table):
11968         (create_reference): renamed from add_reference
11969         (maybe_create_reference): renamed from maybe_add_reference
11970         (void register_symbol (symtab_node *node)): new function
11971         (void clear_asm_symbols (void)): new function
11972         (void unregister (symtab_node *node)): new function
11973         (void release_symbol (cgraph_node *node, int uid)): new function
11974         (cgraph_node * allocate_cgraph_symbol (void)): new function
11975         (void initialize (void)): created from cgraph_init
11976         (symtab_node *first_symbol (void)):new function
11977         (asm_node *first_asm_symbol (void)):new function
11978         (symtab_node *first_defined_symbol (void)):new function
11979         (varpool_node *first_variable (void)):new function
11980         (varpool_node *next_variable (varpool_node *node)):new function
11981         (varpool_node *first_static_initializer (void)):new function
11982         (varpool_node *next_static_initializer (varpool_node *node)):new function
11983         (varpool_node *first_defined_variable (void)):new function
11984         (varpool_node *next_defined_variable (varpool_node *node)):new function
11985         (cgraph_node *first_defined_function (void)):new function
11986         (cgraph_node *next_defined_function (cgraph_node *node)):new function
11987         (cgraph_node *first_function (void)):new function
11988         (cgraph_node *next_function (cgraph_node *node)):new function
11989         (cgraph_node *first_function_with_gimple_body (void)):new function
11990         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11991         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11992           created from symtab_remove_unreachable_nodes
11993         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11994         (void process_new_functions (void)): created from cgraph_process_new_functions
11995         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11996         (bool output_variables (void)): created from varpool_node::output_variables
11997         (void output_asm_statements (void)): created from output_asm_statements
11998         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11999         (void compile (void)): created from compile
12000         (void output_weakrefs (void)): created from output_weakrefs
12001         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12002         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12003           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12004         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12005         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12006           created from cgraph_next_function_with_gimple_body
12007         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12008           created from cgraph_remove_edge_removal_hook
12009         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12010           created from cgraph_add_node_removal_hook
12011         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12012           created from cgraph_remove_node_removal_hook
12013         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12014           created from varpool_add_node_removal_hook
12015         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12016           created from varpool_remove_node_removal_hook
12017         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12018           created from cgraph_add_function_insertion_hook
12019         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12020           created from cgraph_remove_function_insertion_hook
12021         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12022           created from varpool_add_variable_insertion_hook
12023         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12024           created from varpool_remove_variable_insertion_hook
12025         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12026           created from cgraph_add_edge_duplication_hook
12027         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12028           created from cgraph_remove_edge_duplication_hook
12029         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12030           created from cgraph_add_node_duplication_hook
12031         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12032           created from cgraph_remove_node_duplication_hook
12033         (void call_edge_removal_hooks (cgraph_edge *e)):
12034           created from cgraph_call_edge_removal_hooks
12035         (void call_cgraph_insertion_hooks (cgraph_node *node)):
12036           created from call_function_insertion_hooks
12037         (void call_cgraph_removal_hooks (cgraph_node *node)):
12038           created from cgraph_call_node_removal_hooks
12039         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12040           created from cgraph_node::call_duplication_hooks
12041         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12042           created from cgraph_call_edge_duplication_hooks
12043         (void call_varpool_removal_hooks (varpool_node *node)):
12044           created from varpool_call_node_removal_hooks
12045         (void call_varpool_insertion_hooks (varpool_node *node)):
12046           created from varpool_call_variable_insertion_hooks
12047         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12048           created from insert_to_assembler_name_hash
12049         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12050           created from unlink_from_assembler_name_hash
12051         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12052           created from symtab_prevail_in_asm_name_hash
12053         (void symtab_initialize_asm_name_hash (void)):
12054           created from symtab_initialize_asm_name_hash
12055         (void change_decl_assembler_name (tree decl, tree name)):
12056           created from change_decl_assembler_name
12057         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12058         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12059           created from decl_assembler_name_hash
12060         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12061           created from decl_assembler_name_equal
12062         (static hashval_t hash_node_by_assembler_name (const void *p)):
12063           created from hash_node_by_assembler_name
12064         (static int eq_assembler_name (const void *p1, const void *p2)):
12065           created from eq_assembler_name
12067 2014-08-25  Marek Polacek  <polacek@redhat.com>
12069         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12071 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
12073         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12074         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12075         SWI1248_AVX512BW mode iterator.
12077 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12079         PR target/62111
12080         * config/sh/predicates.md (general_extend_operand): Disable
12081         TRUNCATE before reload completes.
12083 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
12085         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12087 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
12089         PR target/61996
12090         * config/sh/sh.opt (musermode): Allow negative form.
12091         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12092         targets that don't support it.
12093         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12094         Document -mno-usermode option.
12096 2014-08-24  Kito Cheng  <kito@0xlab.org>
12098         * system.h (CALLER_SAVE_PROFITABLE): Poison.
12099         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12100         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12101         * doc/tm.texi: Regenerate.
12103 2014-08-24  Kito Cheng  <kito@0xlab.org>
12105         * ira.c: Fix typo in comment.
12107 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
12109         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12110         Deprecate c++1y. Change language to reflect greater confidence in C++14.
12112 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
12114         PR target/62038
12115         * config/pa/pa.c (pa_output_function_epilogue): Don't set
12116         last_address when the current function is a thunk.
12117         (pa_asm_output_mi_thunk): When we don't have named sections or they
12118         are not being used, check that thunk can reach the stub table with a
12119         short branch.
12121 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12123         * web.c (union_match_dups): Strengthen param "insn" from rtx to
12124         rtx_insn *.
12125         (pass_web::execute): Likewise for local "insn".
12127 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12129         * var-tracking.c (struct micro_operation_def): Strengthen field
12130         "insn" from rtx to rtx_insn *.
12131         (struct emit_note_data_def): Likewise.
12132         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12133         (vt_stack_adjustments): Likewise for local "insn".
12134         (adjust_insn): Likewise for param "insn".
12135         (val_store): Likewise.
12136         (val_resolve): Likewise.
12137         (struct count_use_info): Likewise for field "insn".
12138         (log_op_type): Likewise for param "insn".
12139         (reverse_op): Likewise.
12140         (prepare_call_arguments): Likewise.
12141         (add_with_sets):  The initial param takes an insn, but we can't
12142         yet strengthen it from rtx to rtx_insn * since it's used as a
12143         cselib_record_sets_hook callback.  For now rename initial param
12144         from "insn" to "uncast_insn", and introduce a local "insn" of
12145         the stronger rtx_insn * type, with a checked cast.
12146         (compute_bb_dataflow): Strengthen local "insn" from rtx to
12147         rtx_insn *.
12148         (emit_note_insn_var_location): Likewise.
12149         (emit_notes_for_changes): Likewise.
12150         (emit_notes_for_differences): Likewise.
12151         (next_non_note_insn_var_location): Likewise for return type and
12152         for param "insn".
12153         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12154         (vt_initialize): Likewise for local "insn".
12155         (delete_debug_insns): Likewise for locals "insn" and "next".
12157 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12159         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12160         rtx_insn *.
12161         (mark_constant_pool): Likewise for local "insn".
12163 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12165         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12166         rtx to rtx_insn *.
12167         (dead_debug_promote_uses): Likewise.
12168         (dead_debug_insert_temp): Likewise.
12170 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12172         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12173         from const_rtx to const rtx_insn *.
12174         (store_killed_after): Likewise.  Strengthen locals "last", "act"
12175         from rtx to rtx_insn *.
12176         (store_killed_before): Strengthen param "insn" from const_rtx to
12177         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
12178         (find_moveable_store): Strengthen param "insn" from rtx to
12179         rtx_insn *.
12180         (compute_store_table): Likewise for local "insn".
12181         (insert_insn_start_basic_block): Likewise for param "insn" and
12182         locals "prev", "before", "insn".
12183         (insert_store): For now, add a checked cast to rtx_insn * on the
12184         result of gen_move_insn.
12185         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12186         to rtx_insn *.
12187         (replace_store_insn): Likewise.  For now, add a checked cast to
12188         rtx_insn * on the result of gen_move_insn.
12190 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12192         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12193         rtx_insn *.
12194         (expand_sjlj_dispatch_table): Likewise.
12196 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12198         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12199         "insn" from rtx to rtx_insn *.
12201 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12203         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12204         "insn" from rtx to rtx_insn *.
12205         (dup_block_and_redirect): Likewise for param 3 "before".
12207         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12208         from rtx to rtx_insn *.
12209         (move_insn_for_shrink_wrap): Likewise.
12210         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12211         (dup_block_and_redirect): Likewise for param "before" and local
12212         "insn".
12213         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12214         "end".
12215         (convert_to_simple_return): Likewise for local "start".
12217         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12218         Strengthen local "insn" from rtx to rtx_insn *, for use when
12219         invoking requires_stack_frame_p.
12221 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12223         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12224         rtx_insn *.
12225         (speculate_expr): Likewise for locals "orig_insn_rtx",
12226         "spec_insn_rtx".
12227         (eq_transformed_insns): Likewise for locals "i1", "i2".
12228         (check_for_new_jump): Likewise for return type and local "end".
12229         (find_new_jump): Likewise for return type and local "jump".
12230         (sel_split_edge): Likewise for local "jump".
12231         (sel_create_recovery_block): Likewise.
12232         (sel_redirect_edge_and_branch_force): Likewise.
12233         (sel_redirect_edge_and_branch): Likewise.
12235 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12237         * sel-sched.c (substitute_reg_in_expr): Strengthen local
12238         "new_insn" from rtx to rtx_insn *.
12239         (create_insn_rtx_with_rhs): Likewise for return type and for local
12240         "insn_rtx".
12241         (create_insn_rtx_with_lhs): Likewise.
12242         (create_speculation_check): Likewise for local "insn_rtx".
12243         (implicit_clobber_conflict_p): Likewise for local "insn".
12244         (get_expr_cost): Likewise.
12245         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12246         (move_cond_jump): Likewise for locals "next", "prev", "link",
12247         "head", "from", "to".
12249 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12251         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12252         "next" from rtx to rtx_insn *.
12253         (find_conditional_protection): Likewise for local "next".
12254         (is_conditionally_protected): Likewise for local "insn1".
12255         (is_pfree): Likewise for locals "insn1", "insn2".
12257 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12259         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12260         from rtx to rtx_insn *.
12262         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12263         locals "insn1", "insn2" from rtx to rtx_insn *.
12264         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12265         locals "insn", "prev", "last_jump", "next_tail".
12266         (schedule_ebb): Likewise for params "head", "tail".
12267         (schedule_ebbs): Likewise for locals "tail", "head".
12269         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12270         to rtx_insn on "last_insn" in one of the invocations of
12271         schedule_ebb.
12273 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12275         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12276         "elem", "insn" from rtx to rtx_insn *.
12277         (change_spec_dep_to_hard): Likewise.
12278         (get_back_and_forw_lists): Likewise for local "con".
12279         (sd_add_dep): Likewise for locals "elem", "insn".
12280         (sd_resolve_dep): Likewise for locals "pro", "con".
12281         (sd_unresolve_dep): Likewise.
12282         (sd_delete_dep): Likewise.
12283         (chain_to_prev_insn): Likewise for local "pro".
12284         (find_inc): Likewise for locals "pro", "con".
12286 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12288         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12289         to rtx_insn *.
12290         (reg_set_between_p): Strengthen local "insn" from const_rtx to
12291         const rtx_insn *.
12292         (modified_between_p): Strengthen local "insn" from rtx to
12293         rtx_insn *.
12294         (remove_reg_equal_equiv_notes_for_regno): Likewise.
12295         (keep_with_call_p): Strengthen local "i2" from const_rtx to
12296         const rtx_insn *.
12298 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12300         * resource.c (next_insn_no_annul): Strengthen local "next" from
12301         rtx to rtx_insn *.
12302         (mark_referenced_resources): Likewise for local "insn".
12304 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12306         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12307         to rtx_insn *.
12308         (find_reloads): Likewise for param 1.
12309         (subst_reloads): Likewise for sole param.
12310         (find_equiv_reg): Likwise for param 2.
12311         (regno_clobbered_p): Likwise for param 2.
12312         (reload): Likewise for param 1.
12314         * caller-save.c (save_call_clobbered_regs): Strengthen local
12315         "insn" from rtx to rtx_insn *.
12316         (insert_one_insn): Likewise for local "insn".
12318         * reload.c (this_insn): Likewise for this global.
12319         (find_reloads): Likewise for param "insn".
12320         (find_reloads_toplev): Likewise.
12321         (find_reloads_address): Likewise.
12322         (subst_reg_equivs): Likewise.
12323         (update_auto_inc_notes): Likewise.
12324         (find_reloads_address_1): Likewise.
12325         (find_reloads_subreg_address): Likewise.
12326         (subst_reloads): Likewise.
12327         (find_equiv_reg): Likewise, also for local "p".
12328         (regno_clobbered_p): Likewise for param "insn".
12330         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12331         array.
12332         (spill_reg_store): Likewise for the elements of this array.
12333         (remove_init_insns): Likewise for local "equiv_insn".
12334         (will_delete_init_insn_p): Likewise for param "insn".
12335         (reload): Likewise for param ""first" and local "insn".
12336         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12337         rtx_insn *.
12338         (calculate_elim_costs_all_insns): Likewise.
12339         (delete_caller_save_insns): Likewise.
12340         (spill_failure): Likewise for param "insn".
12341         (delete_dead_insn): Likewise.
12342         (set_label_offsets): Likewise.
12343         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12344         "prev_insn".
12345         (elimination_costs_in_insn): Likewise for param "insn".
12346         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12347         when referring to an insn.
12348         (set_initial_label_offsets): Likewise.
12349         (set_offsets_for_label): Strengthen param "insn" from rtx to
12350         rtx_insn *.
12351         (init_eliminable_invariants): Likewise for param "first" and local
12352         "insn".
12353         (fixup_eh_region_note): Likewise for param "insn".
12354         (reload_as_needed): Likewise for locals "prev", "insn",
12355         "old_next", "old_prev", "next".
12356         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12357         "last".
12358         (reload_inheritance_insn): Strengthen elements of this array from
12359         rtx to rtx_insn *.
12360         (failed_reload): Likewise for param "insn".
12361         (choose_reload_regs): Likewise for local "insn".  Replace use of
12362         NULL_RTX with NULL when referring to an insn.
12363         (input_reload_insns): Strengthen elements of this array from rtx
12364         to rtx_insn *.
12365         (other_input_address_reload_insns): Likewise for this global.
12366         (other_input_reload_insns): Likewise for this global.
12367         (input_address_reload_insns): Likwise for the elements of this
12368         array.
12369         (inpaddr_address_reload_insns): Likwise for the elements of this
12370         array.
12371         (output_reload_insns): Likewise for the elements of this array.
12372         (output_address_reload_insns): Likewise for the elements of this
12373         array.
12374         (outaddr_address_reload_insns): Likewise for the elements of this
12375         array.
12376         (operand_reload_insns): Likewise for this global.
12377         (other_operand_reload_insns): Likewise for this global.
12378         (other_output_reload_insns): Likewise for the elements of this
12379         array.
12380         (new_spill_reg_store): Likewise for the elements of this
12381         array.
12382         (emit_input_reload_insns): Likewise for locals "insn", "temp".
12383         Strengthen local "where" from rtx * to rtx_insn **.
12384         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12385         from rtx to rtx_insn *.
12386         (do_input_reload): Likewise for local "insn".
12387         (do_output_reload): Likewise for local "insn".
12388         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12389         (emit_insn_if_valid_for_reload): Likewise for return type and local
12390         "last".  Add checked cast to rtx_insn when returning "insn" since
12391         this has been through emit_insn.
12392         (gen_reload): Strengthen return type and locals "last", "insn", "set"
12393         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
12394         returning "insn" since it's been through
12395         emit_insn_if_valid_for_reload at this point.
12396         (delete_output_reload): Strengthen param "insn" and locals
12397         "output_reload_insn", "i2" from rtx to rtx_insn *.
12398         (delete_address_reloads): Likewise for params "dead_insn",
12399         "current_insn" and locals "prev", "next".
12400         (delete_address_reloads_1): Likewise for params "dead_insn",
12401         "current_insn" and locals "prev", "i2".
12402         (inc_for_reload): Likewise for locals "last", "add_insn".
12403         (add_auto_inc_notes): Strengthen param "insn" from rtx to
12404         rtx_insn *.
12406         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12407         param of this duplicate of the prototype from reload.h
12409 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12411         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12412         rtx to rtx_insn *.
12413         (regstat_bb_compute_calls_crossed): Likewise.
12415 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12417         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12418         to rtx_insn *.
12419         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12420         with an insn.
12421         (regrename_analyze): Strengthen local "insn" from rtx to
12422         rtx_insn *.
12423         (scan_rtx_reg): Likewise for param "insn".
12424         (scan_rtx_address): Likewise.
12425         (scan_rtx): Likewise.
12426         (restore_operands): Likewise.
12427         (record_out_operands): Likewise.
12428         (build_def_use): Likewise for local "insn".  Replace use of
12429         NULL_RTX with NULL when dealing with an insn.
12431 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12433         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12434         * reginfo.c (reg_scan): Likewise, also for local "insn".
12435         (reg_scan_mark_refs): Likewise for param "insn".
12436         (init_subregs_of_mode): Likewise for local "insn".
12438 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12440         * regcprop.c (struct queued_debug_insn_change): Strengthen field
12441         "insn" from rtx to rtx_insn *.
12442         (replace_oldest_value_reg): Likewise for param "insn".
12443         (replace_oldest_value_addr): Likewise.
12444         (replace_oldest_value_mem): Likewise.
12445         (apply_debug_insn_changes): Likewise for local "last_insn".
12446         (copyprop_hardreg_forward_1): Likewise for local "insn".
12448 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12450         * reg-stack.c (next_flags_user): Strengthen return type and param
12451         "insn" from rtx to rtx_insn *.
12452         (straighten_stack): Likewise for param "insn".
12453         (check_asm_stack_operands): Likewise.
12454         (remove_regno_note): Likewise.
12455         (emit_pop_insn): Likewise for return type, param "insn", local
12456         "pop_insn".
12457         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
12458         "limit" from rtx to rtx_insn *.
12459         (swap_to_top): Likewise for param "insn".
12460         (move_for_stack_reg): Likewise.
12461         (move_nan_for_stack_reg): Likewise.
12462         (swap_rtx_condition): Likewise.
12463         (compare_for_stack_reg): Likewise.
12464         (subst_all_stack_regs_in_debug_insn): Likewise.
12465         (subst_stack_regs_pat): Likewise, and local "insn2".
12466         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12467         rtx_insn *.
12468         (subst_stack_regs): Likewise.
12469         (change_stack): Likewise.
12470         (convert_regs_1): Likewise for locals "insn", "next".
12472 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12474         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12475         rtx_insn *.
12476         (combine_set_extension): Likewise for param "curr_insn".
12477         (transform_ifelse): Likewise for param "def_insn".
12478         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
12479         from vec<rtx> * to vec<rtx_insn *> *.
12480         (is_cond_copy_insn): Likewise for param "insn".
12481         (struct ext_state): Strengthen the four vec fields from vec<rtx>
12482         to vec<rtx_insn *>.
12483         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12484         local "def_insn" from rtx to rtx_insn *.
12485         (get_sub_rtx): Likewise for param "def_insn".
12486         (merge_def_and_ext): Likewise.
12487         (combine_reaching_defs): Likewise.
12488         (add_removable_extension): Likewise for param "insn".
12489         (find_removable_extensions): Likewise for local "insn".
12490         (find_and_remove_re): Likewise for locals "curr_insn" and
12491         "def_insn".  Strengthen locals "reinsn_del_list" and
12492         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12494 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12496         * recog.c (split_insn): Strengthen param "insn" and locals
12497         "first", "last" from rtx to rtx_insn *.
12498         (split_all_insns): Likewise for locals "insn", "next".
12499         (split_all_insns_noflow): Likewise.
12501 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12503         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12504         const rtx_insn *.
12505         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12506         (debug_rtx_find): Likewise for param 1 "x".
12508         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12509         const_rtx to const rtx_insn *.  Likewise for local "insn".
12510         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12511         (debug_rtx_find): Likewise for param 1 "x".
12512         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12513         from const_rtx to const rtx_insn * within the appropriate cases of
12514         the switch statement.
12516         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12517         Strengthen local "insns" from rtx to rtx_insn * since this is
12518         passed to a call to debug_rtx_list.
12520 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12522         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12523         to rtx_insn *.
12525         * function.c (stack_protect_epilogue): Add checked cast to
12526         rtx_insn for now when invoking predict_insn_def.
12528         * predict.c (predict_insn): Strengthen param "insn" from rtx to
12529         rtx_insn *.
12530         (predict_insn_def): Likewise.
12531         (rtl_predict_edge): Likewise for local "last_insn".
12532         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12533         const rtx_insn *.
12534         (combine_predictions_for_insn): Strengthen param "insn" from rtx
12535         to rtx_insn *.
12536         (bb_estimate_probability_locally): Likewise for local "last_insn".
12537         (expensive_function_p): Likewise for local "insn".
12539         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12540         local "jmp", since this is used when invoking predict_insn_def.
12542 2014-08-22  Marek Polacek  <polacek@redhat.com>
12544         PR c++/62199
12545         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12547 2014-08-22  Marek Polacek  <polacek@redhat.com>
12549         PR c/61271
12550         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12551         a comparison in parens.
12552         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12553         in parens.
12555 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12557         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12558         rtx_insn *.
12560         * cprop.c (fis_get_condition): Likewise.
12562         * postreload.c (reload_cse_regs): Likewise for param "first".
12563         (reload_cse_simplify): Likewise for param "insn".
12564         (reload_cse_regs_1): Likewise for local "insn".
12565         (reload_cse_simplify_set): Likewise for param "insn".
12566         (reload_cse_simplify_operands): Likewise.
12567         (struct reg_use): Likewise for field "insn".
12568         (reload_combine_purge_insn_uses): Likewise for param "insn".
12569         (fixup_debug_insns): Likewise for params "from", "to" and local
12570         "insn".
12571         (try_replace_in_use): Likewise for local "use_insn".
12572         (reload_combine_recognize_const_pattern): Likewise for param
12573         "insn" and locals "add_moved_after_insn", "use_insn".
12574         (reload_combine_recognize_pattern): Likewise for param "insn" and
12575         local "prev".
12576         (reload_combine): Likewise for locals "insn", "prev".
12577         (reload_combine_note_use): Likewise for param "insn".
12578         (move2add_use_add2_insn): Likewise.
12579         (move2add_use_add3_insn): Likewise.
12580         (reload_cse_move2add): Likewise, also for local "next".
12581         (move2add_note_store): Likewise for local "insn".
12583 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12585         * postreload-gcse.c (struct occr): Strengthen field "insn" from
12586         rtx to rtx_insn *.
12587         (struct unoccr): Likewise.
12588         (struct modifies_mem): Likewise.
12589         (alloc_mem): Likewise for local "insn".
12590         (insert_expr_in_table): Likewise for param "insn".
12591         (dump_expr_hash_table_entry): Likewise for local "insn".
12592         (oprs_unchanged_p): Likewise for param "insn".
12593         (load_killed_in_block_p): Likewise for local "setter".
12594         (record_last_reg_set_info): Likewise for param "insn".
12595         (record_last_reg_set_info_regno): Likewise.
12596         (record_last_mem_set_info): Likewise.
12597         (record_last_set_info): Likewise for local "last_set_insn".
12598         (record_opr_changes): Likewise for param "insn".
12599         (hash_scan_set): Likewise.
12600         (compute_hash_table): Likewise for local "insn".
12601         (get_avail_load_store_reg): Likewise for param "insn".
12602         (eliminate_partially_redundant_load): Likewise, also for locals
12603         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
12604         RTX for insns.
12605         (eliminate_partially_redundant_loads): Likewise for local "insn".
12607 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12609         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12610         rtx to rtx_insn *.
12611         (expand_binop): Likewise for locals "entry_last", "last", "insns"
12612         (expand_twoval_unop): Likewise for locals entry_last", "last".
12613         (expand_twoval_binop): Likewise.
12614         (expand_twoval_binop_libfunc): Likewise for local "insns".
12615         (widen_leading): Likewise for local "last".
12616         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
12617         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12618         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12619         (expand_parity): Likewise for locals "last" and "seq".
12620         (expand_ffs): Likewise for local "seq".  Strengthen local
12621         "nonzero_label" from rtx to rtx_code_label *.
12622         (expand_absneg_bit): Strengthen local "insns" from rtx to
12623         rtx_insn *.
12624         (expand_unop_direct): Likewise for local "last".
12625         (expand_unop): Likewise for locals "last", "insns".
12626         (expand_abs_nojump): Likewise for local "last".
12627         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12628         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12629         rtx_insn *.
12630         (expand_copysign_absneg): Strengthen local "label" from rtx to
12631         rtx_code_label *.
12632         (expand_copysign_bit): Strengthen local "insns" from rtx to
12633         rtx_insn *.
12634         (struct no_conflict_data): Likewise for fields "first", "insn".
12635         (emit_libcall_block_1): Likewise for param "insns" and locals
12636         "next", "last", "insn".
12637         (emit_libcall_block): For now, add a checked cast to rtx_insn *
12638         on "insns" when invoking emit_libcall_block_1.  Ultimately we
12639         want to strengthen insns itself.
12640         (prepare_cmp_insn): Strengthen local "last" from rtx to
12641         rtx_insn *.
12642         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12643         (prepare_float_lib_cmp): Likewise for local "insns".
12644         (emit_conditional_move): Likewise for local "last".
12645         (emit_conditional_add): Likewise.
12646         (have_sub2_insn): Likewise for local "seq".
12647         (expand_float): Likewise for local "insns".  Strengthen locals
12648         "label", "neglabel" from rtx to rtx_code_label *.
12649         (expand_fix): Likewise for locals "last", "insn", "insns" (to
12650         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12651         (expand_fixed_convert): Likewise for local "insns" (to
12652         rtx_insn *).
12653         (expand_sfix_optab): Likewise for local "last".
12654         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12655         to rtx_code_label *.
12656         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12657         from rtx to rtx_insn *.
12658         (expand_atomic_fetch_op): Likewise for local "insn".
12659         (maybe_legitimize_operand_same_code): Likewise for local "last".
12660         (maybe_legitimize_operands): Likewise.
12662 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12664         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12665         "insn" from rtx to rtx_insn *.
12666         (ps_rtl_insn): Likewise for return type.
12667         (doloop_register_get): Likewise for params "head", "tail" and
12668         locals "insn", "first_insn_not_to_check".
12669         (schedule_reg_move): Likewise for local "this_insn".
12670         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12671         of gen_move_insn for now.
12672         (reset_sched_times): Strengthen local "insn" from rtx to
12673         rtx_insn *.
12674         (permute_partial_schedule): Likewise.
12675         (duplicate_insns_of_cycles): Likewise for local "u_insn".
12676         (dump_insn_location): Likewise for param "insn".
12677         (loop_canon_p): Likewise for local "insn".
12678         (sms_schedule): Likewise.
12679         (print_partial_schedule): Likewise.
12680         (ps_has_conflicts): Likewise.
12682 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12684         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12685         "tailp" from rtx * to rtx_insn **.
12687         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12688         from rtx to rtx_insn *.
12689         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12690         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
12691         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12692         rtx to rtx_insn *.
12693         * modulo-sched.c (const_iteration_count): Strengthen return type
12694         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
12695         use of NULL_RTX with NULL when working with insns.
12696         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12697         to rtx_insn *.
12698         (sms_schedule): Likewise.
12699         * sched-rgn.c (init_ready_list): Likewise, also for locals
12700         "src_head" and "src_next_tail".
12701         (compute_block_dependences): Likewise.
12702         (free_block_dependencies): Likewise.
12703         (debug_rgn_dependencies): Likewise.
12704         (free_rgn_deps): Likewise.
12705         (compute_priorities): Likewise.
12706         (schedule_region): Likewise.
12707         * sel-sched.c (find_ebb_boundaries): Likewise.
12709         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12710         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12712 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12714         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12715         from rtx to rtx_insn *.
12716         (new_seginfo): Likewise for param "insn".
12717         (create_pre_exit): Likewise for locals "last_insn",
12718         "before_return_copy", "return_copy".
12719         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12720         "mode_set".
12722 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12724         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12725         from rtx to rtx_insn *.
12726         (lra_push_insn): Likewise for 1st param.
12727         (lra_push_insn_and_update_insn_regno_info): Likewise.
12728         (lra_pop_insn): Likewise for return type.
12729         (lra_invalidate_insn_data): Likewise for 1st param.
12730         (lra_set_insn_deleted): Likewise.
12731         (lra_delete_dead_insn): Likewise.
12732         (lra_process_new_insns): Likewise for first 3 params.
12733         (lra_set_insn_recog_data): Likewise for 1st param.
12734         (lra_update_insn_recog_data): Likewise.
12735         (lra_set_used_insn_alternative): Likewise.
12736         (lra_invalidate_insn_regno_info): Likewise.
12737         (lra_update_insn_regno_info): Likewise.
12738         (lra_former_scratch_operand_p): Likewise.
12739         (lra_eliminate_regs_1): Likewise.
12740         (lra_get_insn_recog_data): Likewise.
12742         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12743         rtx to rtx_insn *.
12745         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12746         "mv1" and "mv2".
12747         (substitute_within_insn): New.
12748         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12749         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
12750         Replace call to "substitute" with call to substitute_within_insn.
12752         * lra-constraints.c (curr_insn): Strengthen from rtx to
12753         rtx_insn *.
12754         (get_equiv_with_elimination): Likewise for param "insn".
12755         (match_reload): Strengthen params "before" and "after" from rtx *
12756         to rtx_insn **.
12757         (emit_spill_move): Likewise for return type.  Add a checked cast
12758         to rtx_insn * on result of gen_move_insn for now.
12759         (check_and_process_move): Likewise for local "before".  Replace
12760         NULL_RTX with NULL when referring to insns.
12761         (process_addr_reg): Strengthen params "before" and "after" from
12762         rtx * to rtx_insn **.
12763         (insert_move_for_subreg): Likewise.
12764         (simplify_operand_subreg): Strengthen locals "before" and "after"
12765         from rtx to rtx_insn *.
12766         (process_address_1): Strengthen params "before" and "after" from
12767         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
12768         rtx to rtx_insn *.
12769         (process_address): Strengthen params "before" and "after" from
12770         rtx * to rtx_insn **.
12771         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12772         (curr_insn_transform): Strengthen locals "before" and "after"
12773         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
12774         to insns.
12775         (loc_equivalence_callback): Update cast of "data", changing
12776         resulting type from rtx to rtx_insn *.
12777         (substitute_pseudo_within_insn): New.
12778         (inherit_reload_reg): Strengthen param "insn" from rtx to
12779         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
12780         NULL when referring to insns.  Add a checked cast to rtx_insn *
12781         when using usage_insn to invoke lra_update_insn_regno_info.
12782         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12783         likewise for locals "restore", "save".  Add checked casts to
12784         rtx_insn * when using usage_insn to invoke
12785         lra_update_insn_regno_info and lra_process_new_insns.  Replace
12786         NULL_RTX with NULL when referring to insns.
12787         (split_if_necessary): Strengthen param "insn" from rtx to
12788         rtx_insn *.
12789         (update_ebb_live_info): Likewise for params "head", "tail" and local
12790         "prev_insn".
12791         (get_last_insertion_point): Likewise for return type and local "insn".
12792         (get_live_on_other_edges): Likewise for local "last".
12793         (inherit_in_ebb): Likewise for params "head", "tail" and locals
12794         "prev_insn", "next_insn", "restore".
12795         (remove_inheritance_pseudos): Likewise for local "prev_insn".
12796         (undo_optional_reloads): Likewise for local "insn".
12798         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12799         "insn".
12800         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12801         insns.
12802         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12803         rtx_insn *.
12804         (spill_pseudos): Likewise for local "insn".
12805         (init_elimination): Likewise.
12806         (process_insn_for_elimination): Likewise for param "insn".
12808         * lra-lives.c (curr_insn): Likewise.;
12810         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12811         (remove_pseudos): Likewise for param "insn".
12812         (spill_pseudos): Likewise for local "insn".
12813         (lra_final_code_change): Likewise for locals "insn", "curr".
12815         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12816         (lra_set_insn_deleted): Likewise.
12817         (lra_delete_dead_insn): Likewise, and for local "prev".
12818         (new_insn_reg): Likewise for param "insn".
12819         (lra_set_insn_recog_data): Likewise.
12820         (lra_update_insn_recog_data): Likewise.
12821         (lra_set_used_insn_alternative): Likewise.
12822         (get_insn_freq): Likewise.
12823         (invalidate_insn_data_regno_info): Likewise.
12824         (lra_invalidate_insn_regno_info): Likewise.
12825         (lra_update_insn_regno_info): Likewise.
12826         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12827         vec<rtx_insn *>.
12828         (lra_push_insn_1): Strengthen param "insn" from rtx to
12829         rtx_insn *.
12830         (lra_push_insn): Likewise.
12831         (lra_push_insn_and_update_insn_regno_info): Likewise.
12832         (lra_pop_insn): Likewise for return type and local "insn".
12833         (push_insns): Likewise for params "from", "to", and local "insn".
12834         (setup_sp_offset): Likewise for params "from", "last" and locals
12835         "before", "insn".
12836         (lra_process_new_insns): Likewise for params "insn", "before",
12837         "after" and local "last".
12838         (struct sloc): Likewise for field "insn".
12839         (lra_former_scratch_operand_p): Likewise for param "insn".
12840         (remove_scratches): Likewise for locals "insn", "last".
12841         (check_rtl): Likewise for local "insn".
12842         (add_auto_inc_notes): Likewise for param "insn".
12843         (update_inc_notes): Likewise for local "insn".
12844         (lra): Replace NULL_RTX with NULL when referring to insn.
12846 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12848         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12849         to rtx_insn *.
12850         (resolve_reg_notes): Likewise.
12851         (resolve_simple_move): Likewise for return type, param "insn", and
12852         locals "insns", "minsn".
12853         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12854         (resolve_use): Likewise.
12855         (resolve_debug): Likewise.
12856         (find_decomposable_shift_zext): Likewise.
12857         (resolve_shift_zext): Likewise for return type, param "insn", and
12858         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
12859         (decompose_multiword_subregs): Likewise for local "insn",
12860         "orig_insn", "decomposed_shift", "end".
12862 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12864         * basic-block.h (basic_block split_edge_and_insert): Strengthen
12865         param "insns" from rtx to rtx_insn *.
12867         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12868         rtx to rtx_insn *.
12869         (struct iv_to_split): Likewise.
12870         (loop_exit_at_end_p): Likewise for local "insn".
12871         (split_edge_and_insert): Likewise for param "insns".
12872         (compare_and_jump_seq): Likewise for return type, param "cinsn",
12873         and locals "seq", "jump".
12874         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12875         "branch_code"; update invocations of compare_and_jump_seq to
12876         eliminate NULL_RTX in favor of NULL.
12877         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12878         rtx to rtx_insn *.
12879         (reset_debug_uses_in_loop): Likewise.
12880         (analyze_insn_to_expand_var): Likewise for param "insn".
12881         (analyze_iv_to_split_insn): Likewise.
12882         (analyze_insns_in_loop): Likewise for local "insn".
12883         (insert_base_initialization): Likewise for param
12884         "insn" and local "seq".
12885         (split_iv): Likewise for param "insn" and local "seq".
12886         (expand_var_during_unrolling): Likewise for param "insn".
12887         (insert_var_expansion_initialization): Likewise for local "seq".
12888         (combine_var_copies_in_loop_exit): Likewise.
12889         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12890         "insn".
12891         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12892         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12893         "next".
12895 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12897         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12898         rtx_insn *.
12899         (iv_analyze_result): Likewise.
12900         (iv_analyze_expr): Likewise.
12901         (biv_p): Likewise.
12903         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12904         local "def_insn" from rtx to rtx_insn *.
12905         (get_biv_step_1): Likewise for local "insn".
12906         (iv_analyze_expr): Likewise for param "insn".
12907         (iv_analyze_def): Likewise for local "insn".
12908         (iv_analyze_op): Likewise for param "insn".
12909         (iv_analyze): Likewise.
12910         (iv_analyze_result): Likewise.
12911         (biv_p): Likewise.
12912         (suitable_set_for_replacement): Likewise.
12913         (simplify_using_initial_values): Likewise for local "insn".
12914         (iv_number_of_iterations): Likewise for param "insn".
12915         (check_simple_exit): Add checked cast to rtx_insn when invoking
12916         iv_number_of_iterations for now (until get_condition is
12917         strengthened).
12919         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12920         "insn" from rtx to rtx_insn *.
12921         (analyze_insns_in_loop): Likewise for local "insn".
12923 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12925         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12926         to rtx_insn *.
12927         (struct invariant): Likewise.
12928         (hash_invariant_expr_1): Likewise for param "insn".
12929         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12930         (find_exits): Likewise for local "insn".
12931         (create_new_invariant): Likewise for param "insn".
12932         (check_dependencies): Likewise.
12933         (find_invariant_insn): Likewise.
12934         (record_uses): Likewise.
12935         (find_invariants_insn): Likewise.
12936         (find_invariants_bb): Likewise for local "insn".
12937         (get_pressure_class_and_nregs): Likewise for param "insn".
12938         (calculate_loop_reg_pressure): Likewise for local "insn".
12940 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12942         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12943         to rtx_insn *.
12944         (add_test): Likewise for locals "seq", "jump".
12945         (doloop_modify): Likewise for locals "sequence", "jump_insn".
12947 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12949         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12950         rtx_insn *.
12951         (rebuild_jump_labels_chain): Likewise for param "chain".
12953         * cfgexpand.c (pass_expand::execute): Add checked cast to
12954         rtx_insn * when calling rebuild_jump_labels_chain in region where
12955         we know e->insns.r is non-NULL.
12957         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12958         rtx_insn *.
12959         (rebuild_jump_labels): Likewise.
12960         (rebuild_jump_labels_chain): Likewise for param "chain".
12961         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12962         (init_label_info): Likewise for param "f".
12963         (maybe_propagate_label_ref): Likewise for params "jump_insn",
12964         "prev_nonjump_insn".
12965         (mark_all_labels): Likewise for param "f" and locals "insn",
12966         "prev_nonjump_insn".
12968 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12970         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12971         from rtx to rtx_insn *insn.
12972         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12973         (ira_add_allocno_copy): Likewise.
12974         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12975         rtx to rtx_insn *.
12976         (ira_create_copy): Likewise.
12977         (ira_add_allocno_copy): Likewise.
12978         (create_bb_allocnos): Likewise for local "insn".
12979         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12980         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12981         process_regs_for_copy for rtx_insn * param.
12982         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12983         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
12984         process_regs_for_copy for rtx_insn * param.
12985         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12986         * ira-costs.c (record_reg_classes): Likewise for param "insn".
12987         (record_operand_costs): Likewise.
12988         (scan_one_insn): Likewise for return type, and for param "insn".
12989         (process_bb_for_costs): Likewise for local "insn".
12990         (process_bb_node_for_hard_reg_moves): Likewise.
12991         * ira-emit.c (struct move): Likewise for field "insn".
12992         (create_move): Eliminate use of NULL_RTX when dealing with an
12993         rtx_insn *.
12994         (emit_move_list): Strengthen return type and locals "result",
12995         "insn" from rtx to rtx_insn *insn.
12996         (emit_moves): Likewise for locals "insns", "tmp".
12997         (ira_emit): Likewise for local "insn".
12998         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12999         "insn".
13000         (find_call_crossed_cheap_reg): Likewise.
13001         (process_bb_node_lives): Likewise for local "insn".
13002         * ira.c (decrease_live_ranges_number): Likewise.
13003         (compute_regs_asm_clobbered): Likewise.
13004         (build_insn_chain): Likewise.
13005         (find_moveable_pseudos): Likewise, also locals "def_insn",
13006         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
13007         to rtx_insn **.  Add a checked cast when assigning from
13008         "closest_use" into closest_uses array in a region where we know
13009         it's a non-NULL insn.
13010         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13011         to rtx_insn *.
13012         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13013         "last_interesting_insn", "uin".
13014         (move_unallocated_pseudos): Likewise for locals "def_insn",
13015         "move_insn", "newinsn".
13017 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13019         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13020         Strengthen locals "done_label", "do_error" from rtx to
13021         rtx_code_label *.
13022         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13023         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
13024         rtx_code_label *.
13025         (ubsan_expand_si_overflow_neg_check): Likewise for locals
13026         "done_label", "do_error" to rtx_code_label * and local  "last" to
13027         rtx_insn *.
13028         (ubsan_expand_si_overflow_mul_check): Likewise for locals
13029         "done_label", "do_error", "large_op0", "small_op0_large_op1",
13030         "one_small_one_large", "both_ops_large", "after_hipart_neg",
13031         "after_lopart_neg", "do_overflow", "hipart_different"  to
13032         rtx_code_label * and local  "last" to rtx_insn *.
13034 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13036         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13037         "insn" and "move_insn" from rtx to rtx_insn *.
13039 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13041         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13042         rtx_insn *.
13043         (cheap_bb_rtx_cost_p): Likewise.
13044         (first_active_insn): Likewise for return type and local "insn".
13045         (last_active_insn):  Likewise for return type and locals "insn",
13046         "head".
13047         (struct noce_if_info): Likewise for fields "jump", "insn_a",
13048         "insn_b".
13049         (end_ifcvt_sequence): Likewise for return type and locals "insn",
13050         "seq".
13051         (noce_try_move): Likewise for local "seq".
13052         (noce_try_store_flag): Likewise.
13053         (noce_try_store_flag_constants): Likewise.
13054         (noce_try_addcc): Likewise.
13055         (noce_try_store_flag_mask): Likewise.
13056         (noce_try_cmove): Likewise.
13057         (noce_try_minmax): Likewise.
13058         (noce_try_abs): Likewise.
13059         (noce_try_sign_mask): Likewise.
13060         (noce_try_bitop): Likewise.
13061         (noce_can_store_speculate_p): Likewise for local "insn".
13062         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13063         seq".
13064         (check_cond_move_block): Likewise for local "insn".
13065         (cond_move_convert_if_block): Likewise.
13066         (cond_move_process_if_block): Likewise for locals "seq",
13067         "loc_insn".
13068         (noce_find_if_block): Likewise for local "jump".
13069         (merge_if_block): Likewise for local "last".
13070         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13071         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13072         (block_has_only_trap): Likewise for return type and local "trap".
13073         (find_if_case_1): Likewise for local "jump".
13074         (dead_or_predicable): Likewise for locals "head", "end", "jump",
13075         "insn".
13077 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13079         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13080         "last_insn", "loop_end" from rtx to rtx_insn *.
13082         * hw-doloop.c (scan_loop): Likewise for local "insn".
13083         (discover_loop): Likewise for param "tail_insn".
13084         (discover_loops): Likewise for local "tail".
13086         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13087         cast to rtx_insn * when assigning from an rtx local to a
13088         hwloop_info's "last_insn" field.
13090 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13092         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13093         (add_delay_dependencies): Strengthen local "pro" from rtx to
13094         rtx_insn *.
13095         (recompute_todo_spec): Likewise.
13096         (dep_cost_1): Likewise for locals "insn", "used".
13097         (schedule_insn): Likewise for local "dbg".
13098         (schedule_insn): Likewise for locals "pro", "next".
13099         (unschedule_insns_until): Likewise for local "con".
13100         (restore_pattern): Likewise for local "next".
13101         (estimate_insn_tick): Likewise for local "pro".
13102         (resolve_dependencies): Likewise for local "next".
13103         (fix_inter_tick): Likewise.
13104         (fix_tick_ready): Likewise for local "pro".
13105         (add_to_speculative_block): Likewise for locals "check", "twin",
13106         "pro".
13107         (sched_extend_bb): Likewise for locals "end", "insn".
13108         (init_before_recovery): Likewise for local "x".
13109         (sched_create_recovery_block): Likewise for local "barrier".
13110         (create_check_block_twin): Likewise for local "pro".
13111         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13112         "consumer".
13113         (unlink_bb_notes): Update for change to type of bb_header.
13114         Strengthen locals "prev", "label", "note", "next" from rtx to
13115         rtx_insn *.
13116         (clear_priorities): Likewise for local "pro".
13118 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13120         * gcse.c (struct occr): Strengthen field "insn" from rtx to
13121         rtx_insn *.
13122         (test_insn): Likewise for this global.
13123         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13124         const rtx_insn *.
13125         (oprs_anticipatable_p): Likewise.
13126         (oprs_available_p): Likewise.
13127         (insert_expr_in_table): Strengthen param "insn" from  rtx to
13128         rtx_insn *.
13129         (hash_scan_set): Likewise.
13130         (hash_scan_clobber): Likewise.
13131         (hash_scan_call): Likewise.
13132         (hash_scan_insn): Likewise.
13133         (compute_hash_table_work): Likewise for local "insn".
13134         (process_insert_insn): Likewise for return type and local "pat".
13135         (insert_insn_end_basic_block): Likewise for locals "new_insn",
13136         "pat", "pat_end", "maybe_cc0_setter".
13137         (pre_edge_insert): Likewise for local "insn".
13138         (pre_insert_copy_insn): Likewise for param "insn".
13139         (pre_insert_copies): Likewise for local "insn".
13140         (struct set_data): Likewise for field "insn".
13141         (single_set_gcse): Likewise for param "insn".
13142         (gcse_emit_move_after): Likewise.
13143         (pre_delete): Likewise for local "insn".
13144         (update_bb_reg_pressure): Likewise for param "from" and local
13145         "insn".
13146         (should_hoist_expr_to_dom): Likewise for param "from".
13147         (hoist_code): Likewise for local "insn".
13148         (get_pressure_class_and_nregs): Likewise for param "insn".
13149         (calculate_bb_reg_pressure): Likewise for local "insn".
13150         (compute_ld_motion_mems): Likewise.
13152 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13154         * genpeep.c (main): Rename param back from "uncast_ins1" to
13155         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
13156         checked cast.
13158         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13160 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
13162         PR target/62195
13163         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13164         documentation to state it is only for VSX operations.
13166         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13167         constraint only active if VSX.
13169         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13170         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13171         (lfiwzx): Likewise.
13173 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13175         * fwprop.c (single_def_use_dom_walker::before_dom_children):
13176         Strengthen local "insn" from rtx to rtx_insn *.
13177         (use_killed_between): Likewise for param "target_insn".
13178         (all_uses_available_at): Likewise for param "target_insn" and
13179         local "next".
13180         (update_df_init): Likewise for params "def_insn", "insn".
13181         (update_df): Likewise for param "insn".
13182         (try_fwprop_subst): Likewise for param "def_insn" and local
13183         "insn".
13184         (free_load_extend): Likewise for param "insn".
13185         (forward_propagate_subreg): Likewise for param "def_insn" and
13186         local "use_insn".
13187         (forward_propagate_asm): Likewise for param "def_insn" and local
13188         "use_insn".
13189         (forward_propagate_and_simplify): Likewise for param "def_insn"
13190         and local "use_insn".
13191         (forward_propagate_into): Likewise for locals "def_insn" and
13192         "use_insn".
13194 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13196         * function.c (emit_initial_value_sets): Strengthen local "seq"
13197         from rtx to rtx_insn *.
13198         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13199         local "seq".
13200         (instantiate_virtual_regs): Likewise for local "insn".
13201         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13202         (reorder_blocks_1): Likewise for param "insns" and local "insn".
13203         (expand_function_end): Likewise for locals "insn" and "seq".
13204         (epilogue_done): Likewise for local "insn".
13205         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13206         "last", "trial".
13207         (reposition_prologue_and_epilogue_notes): Likewise for locals
13208         "insn", "last", "note", "first".
13209         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13210         (pass_match_asm_constraints::execute): Likewise for local "insn".
13212 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13214         * output.h (final_scan_insn): Strengthen return type from rtx to
13215         rtx_insn *.
13216         (final_forward_branch_p): Likewise for param.
13217         (current_output_insn): Likewise for this global.
13219         * final.c (rtx debug_insn): Likewise for this variable.
13220         (current_output_insn): Likewise.
13221         (get_attr_length_1): Rename param "insn" to "uncast_insn",
13222         adding "insn" back in as an rtx_insn * with a checked cast, so
13223         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13224         first param.
13225         (compute_alignments): Strengthen local "label" from rtx to
13226         rtx_insn *.
13227         (shorten_branches): Rename param from "first" to "uncast_first",
13228         introducing a new local rtx_insn * "first" using a checked cast to
13229         effectively strengthen "first" from rtx to rtx_insn * without
13230         affecting the type signature.  Strengthen locals "insn", "seq",
13231         "next", "label" from rtx to rtx_insn *.
13232         (change_scope): Strengthen param "orig_insn" and local "insn" from
13233         rtx to rtx_insn *.
13234         (final_start_function): Rename param from "first" to "uncast_first",
13235         introducing a new local rtx_insn * "first" using a checked cast to
13236         effectively strengthen "first" from rtx to rtx_insn * without
13237         affecting the type signature.  Strengthen local "insn" from rtx to
13238         rtx_insn *.
13239         (dump_basic_block_info): Strengthen param "insn" from rtx to
13240         rtx_insn *.
13241         (final): Rename param from "first" to "uncast_first",
13242         introducing a new local rtx_insn * "first" using a checked cast to
13243         effectively strengthen "first" from rtx to rtx_insn * without
13244         affecting the type signature.  Strengthen locals "insn", "next"
13245         from rtx to rtx_insn *.
13246         (output_alternate_entry_point): Strengthen param "insn" from rtx to
13247         rtx_insn *.
13248         (call_from_call_insn): Strengthen param "insn" from rtx to
13249         rtx_call_insn *.
13250         (final_scan_insn): Rename param from "insn" to "uncast_insn",
13251         introducing a new local rtx_insn * "insn" using a checked cast to
13252         effectively strengthen "insn" from rtx to rtx_insn * without
13253         affecting the type signature.  Strengthen return type and locals
13254         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
13255         now-redundant checked cast to rtx_insn * from both invocations of
13256         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
13257         introducing a local "call_insn" for use when invoking
13258         call_from_call_insn.
13259         (notice_source_line): Strengthen param "insn" from rtx to
13260         rtx_insn *.
13261         (leaf_function_p): Likewise for local "insn".
13262         (final_forward_branch_p): Likewise.
13263         (leaf_renumber_regs): Likewise for param "first".
13264         (rest_of_clean_state): Likewise for locals "insn" and "next".
13265         (self_recursive_call_p): Likewise for param "insn".
13266         (collect_fn_hard_reg_usage): Likewise for local "insn".
13267         (get_call_fndecl): Likewise for param "insn".
13268         (get_call_cgraph_rtl_info): Likewise.
13269         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13270         introducing a new local rtx_insn * "insn" using a checked cast to
13271         effectively strengthen "insn" from rtx to rtx_insn * without
13272         affecting the type signature.
13274         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13275         cast when assigning from param "insn" to current_output_insn.
13276         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13277         so that we can assign it back to current_output_insn.
13279 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13281         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13282         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13283         atmxt540s and atmxt540sreva devices.
13284         * config/avr/avr-tables.opt: Regenerate.
13285         * config/avr/t-multilib: Regenerate.
13286         * doc/avr-mmcu.texi: Regenerate.
13288 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13290         * expr.c (convert_move): Strengthen local "insns" from rtx to
13291         rtx_insn *.
13292         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13293         "top_label" from rtx to rtx_code_label *.
13294         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13295         rtx_insn *.
13296         (emit_single_push_insn): Likewise for locals "prev", "last".
13297         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13298         to rtx_code_label *.
13299         (store_constructor): Likewise for locals "loop_start", "loop_end".
13300         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13301         rtx_insn *.
13302         (expand_expr_real_2): Likewise.
13303         (expand_expr_real_1): Strengthen local "label" from rtx to
13304         rtx_code_label *.
13306 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13308         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13309         from rtx to rtx_insn *.
13310         (store_bit_field_1): Likewise.
13311         (extract_bit_field_1): Likewise.
13312         (expand_mult_const): Likewise for local "insns".
13313         (expmed_mult_highpart): Strengthen local "label" from rtx to
13314         rtx_code_label *.
13315         (expand_smod_pow2): Likewise.
13316         (expand_sdiv_pow2): Likewise.
13317         (expand_divmod): Strengthen locals "last", "insn" from rtx to
13318         rtx_insn *.  Strengthen locals "label", "label1", "label2",
13319         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13320         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13321         (emit_store_flag): Likewise.
13322         (emit_store_flag_force): Strengthen local "label" from rtx to
13323         rtx_code_label *.
13324         (do_cmp_and_jump): Likewise for param "label".
13326 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13328         * explow.c (force_reg): Strengthen local "insn" from rtx to
13329         rtx_insn *.
13330         (adjust_stack_1): Likewise.
13331         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
13332         "final_label", "available_label", "space_available" from rtx to
13333         rtx_code_label *.
13334         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13335         (anti_adjust_stack_and_probe): Likewise.
13337 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13339         * except.h (sjlj_emit_function_exit_after): Strengthen param
13340         "after" from rtx to rtx_insn *.  This is only called with
13341         result of get_last_insn (in function.c) so type-change should be
13342         self-contained.
13344         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13345         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13346         to rtx_insn *.  These fields are only used from except.c so this
13347         type-change should be self-contained to this patch.
13349         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13350         local "last" from rtx to rtx_insn *.
13351         (dw2_build_landing_pads): Likewise for local "seq".
13352         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13353         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13354         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
13355         rtx to rtx_insn *.
13356         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13357         to rtx_insn *.
13358         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13359         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13360         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13361         referring to an insn.  Strengthen local "dispatch_label" from
13362         rtx to rtx_code_label *.
13363         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13364         rtx_insn *.
13365         (expand_eh_return): Strengthen local "around_label" from
13366         rtx to rtx_code_label *.
13367         (convert_to_eh_region_ranges): Strengthen locals "iter",
13368         "last_action_insn", "first_no_action_insn",
13369         "first_no_action_insn_before_switch",
13370         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13372 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13374         * dwarf2out.c (last_var_location_insn): Strengthen this variable
13375         from rtx to rtx_insn *.
13376         (cached_next_real_insn): Likewise.
13377         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13378         working with insns.
13379         (dwarf2out_var_location): Strengthen locals "next_real",
13380         "next_note", "expected_next_loc_note", "last_start", "insn" from
13381         rtx to rtx_insn *.
13383 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13385         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13386         from rtx to rtx_insn *.
13387         (create_pseudo_cfg): Likewise for local "insn".
13389 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13391         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13392         from rtx to rtx_insn *.
13393         (df_bb_regno_last_def_find): Likewise.
13395         * df-problems.c (df_rd_bb_local_compute): Likewise.
13396         (df_lr_bb_local_compute): Likewise.
13397         (df_live_bb_local_compute): Likewise.
13398         (df_chain_remove_problem): Likewise.
13399         (df_chain_create_bb): Likewise.
13400         (df_word_lr_bb_local_compute): Likewise.
13401         (df_remove_dead_eq_notes): Likewise for param "insn".
13402         (df_note_bb_compute): Likewise for local "insn".
13403         (simulate_backwards_to_point): Likewise.
13404         (df_md_bb_local_compute): Likewise.
13406         * df-scan.c (df_scan_free_bb_info): Likewise.
13407         (df_scan_start_dump): Likewise.
13408         (df_scan_start_block): Likewise.
13409         (df_install_ref_incremental): Likewise for local "insn".
13410         (df_insn_rescan_all): Likewise.
13411         (df_reorganize_refs_by_reg_by_insn): Likewise.
13412         (df_reorganize_refs_by_insn_bb): Likewise.
13413         (df_recompute_luids): Likewise.
13414         (df_bb_refs_record): Likewise.
13415         (df_update_entry_exit_and_calls): Likewise.
13416         (df_bb_verify): Likewise.
13418 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13420         * ddg.h (struct ddg_node): Strengthen fields "insn" and
13421         "first_note" from rtx to rtx_insn *.
13422         (get_node_of_insn): Likewise for param 2 "insn".
13423         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13425         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13426         rtx_insn *.
13427         (mem_write_insn_p): Likewise.
13428         (mem_access_insn_p): Likewise.
13429         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13430         (def_has_ccmode_p): Likewise for param "insn".
13431         (add_cross_iteration_register_deps): Likewise for locals
13432         "def_insn" and "use_insn".
13433         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13434         (build_intra_loop_deps): Likewise for local "src_insn".
13435         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13436         to rtx_insn *.
13437         (get_node_of_insn): Likewise for param "insn".
13439 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13441         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13442         (deletable_insn_p): Strengthen param "insn" from rtx to
13443         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
13444         find_call_stack_args, since this is guarded by CALL_P (insn).
13445         (marked_insn_p): Strengthen param "insn" from rtx to
13446         rtx_insn *.
13447         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
13448         invoking find_call_stack_args, since this is guarded by
13449         CALL_P (insn).
13450         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13451         rtx_insn *; we know this is an insn since this was called by
13452         mark_nonreg_stores.
13453         (mark_nonreg_stores_2): Likewise.
13454         (mark_nonreg_stores): Strengthen param "insn" from rtx to
13455         rtx_insn *.
13456         (find_call_stack_args): Strengthen param "call_insn" from rtx to
13457         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13458         to rtx_insn *.
13459         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13460         from rtx to rtx_insn *.
13461         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13462         "next", "ref_insn".
13463         (delete_unmarked_insns): Likewise for locals "insn", "next".
13464         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13465         (mark_reg_dependencies): Likewise for param "insn".
13466         (rest_of_handle_ud_dce): Likewise for local "insn".
13467         (word_dce_process_block): Likewise.
13468         (dce_process_block): Likewise.
13470 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13472         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13473         from rtx to rtx_insn *.
13474         (struct change_cc_mode_args): Likewise for field "insn".
13475         (this_insn): Strengthen from rtx to rtx_insn *.
13476         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13477         with insn.
13478         (validate_canon_reg): Strengthen param "insn" from rtx to
13479         rtx_insn *.
13480         (canon_reg): Likewise.
13481         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
13482         dealing with insn.
13483         (record_jump_equiv): Strengthen param "insn" from rtx to
13484         rtx_insn *.
13485         (try_back_substitute_reg): Likewise, also for locals "prev",
13486         "bb_head".
13487         (find_sets_in_insn): Likewise for param "insn".
13488         (canonicalize_insn): Likewise.
13489         (cse_insn): Likewise.  Add a checked cast.
13490         (invalidate_from_clobbers): Likewise for param "insn".
13491         (invalidate_from_sets_and_clobbers): Likewise.
13492         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13493         dealing with insn.
13494         (cse_prescan_path): Strengthen local "insn" from rtx to
13495         rtx_insn *.
13496         (cse_extended_basic_block): Likewise for locals "insn" and
13497         "prev_insn".
13498         (cse_main): Likewise for param "f".
13499         (check_for_label_ref): Likewise for local "insn".
13500         (set_live_p): Likewise for second param ("insn").
13501         (insn_live_p): Likewise for first param ("insn") and for local
13502         "next".
13503         (cse_change_cc_mode_insn): Likewise for first param "insn".
13504         (cse_change_cc_mode_insns): Likewise for first and second params
13505         "start" and "end".
13506         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13507         and "end".
13508         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13509         "cc_src_insn".
13511 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13512             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13513             Anna Tikhonova  <anna.tikhonova@intel.com>
13514             Ilya Tocar  <ilya.tocar@intel.com>
13515             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13516             Ilya Verbin  <ilya.verbin@intel.com>
13517             Kirill Yukhin  <kirill.yukhin@intel.com>
13518             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13520         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13521         New.
13522         * config/i386/sse.md
13523         (define_mode_iterator VI248_AVX2): Delete.
13524         (define_mode_iterator VI2_AVX2_AVX512BW): New.
13525         (define_mode_iterator VI48_AVX2): Ditto.
13526         (define_insn <shift_insn><mode>3): Delete.
13527         (define_insn "<shift_insn><mode>3<mask_name>" with
13528         VI2_AVX2_AVX512BW): New.
13529         (define_insn "<shift_insn><mode>3<mask_name>" with
13530         VI48_AVX2): Ditto.
13532 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13533             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13534             Anna Tikhonova  <anna.tikhonova@intel.com>
13535             Ilya Tocar  <ilya.tocar@intel.com>
13536             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13537             Ilya Verbin  <ilya.verbin@intel.com>
13538             Kirill Yukhin  <kirill.yukhin@intel.com>
13539             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13541         * config/i386/sse.md
13542         (define_mode_iterator VI4F_BRCST32x2): New.
13543         (define_mode_attr 64x2_mode): Ditto.
13544         (define_mode_attr 32x2mode): Ditto.
13545         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13546         with VI4F_BRCST32x2): Ditto.
13547         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13548         with V16FI mode iterator): Ditto.
13549         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13550         with V16FI): Ditto.
13551         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13552         with VI8F_BRCST64x2): Ditto.
13554 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13555             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13556             Anna Tikhonova  <anna.tikhonova@intel.com>
13557             Ilya Tocar  <ilya.tocar@intel.com>
13558             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13559             Ilya Verbin  <ilya.verbin@intel.com>
13560             Kirill Yukhin  <kirill.yukhin@intel.com>
13561             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13563         * config/i386/sse.md
13564         (define_mode_iterator VI8_AVX512VL): New.
13565         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13567 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13569         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13570         (define_mode_iterator V48_AVX512VL): New.
13571         (define_mode_iterator V12_AVX512VL): Ditto.
13572         (define_insn <avx512>_load<mode>_mask): Split into two similar
13573         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13574         Refactor output template.
13575         (define_insn "<avx512>_store<mode>_mask"): Ditto.
13577 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13579         * cprop.c (struct occr): Strengthen field "insn" from rtx to
13580         rtx_insn *.
13581         (reg_available_p): Likewise for param "insn".
13582         (insert_set_in_table): Likewise.
13583         (hash_scan_set): Likewise.
13584         (hash_scan_insn): Likewise.
13585         (make_set_regs_unavailable): Likewise.
13586         (compute_hash_table_work): Likewise for local "insn".
13587         (reg_not_set_p): Strengthen param "insn" from const_rtx to
13588         const rtx_insn *.
13589         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13590         (try_replace_reg): Likewise.
13591         (find_avail_set): Likewise.
13592         (cprop_jump): Likewise for params "setcc", "jump".
13593         (constprop_register): Likewise for param "insn".
13594         (cprop_insn): Likewise.
13595         (do_local_cprop): Likewise.
13596         (local_cprop_pass): Likewise for local "insn".
13597         (bypass_block): Likewise for params "setcc" and "jump".
13598         (bypass_conditional_jumps): Likewise for locals "setcc" and
13599         "insn".
13600         (one_cprop_pass): Likewise for local "insn".
13602 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13604         * compare-elim.c (struct comparison_use): Strengthen field "insn"
13605         from rtx to rtx_insn *.
13606         (struct comparison): Likewise, also for field "prev_clobber".
13607         (conforming_compare): Likewise for param "insn".
13608         (arithmetic_flags_clobber_p): Likewise.
13609         (find_flags_uses_in_insn): Likewise.
13610         (find_comparison_dom_walker::before_dom_children): Likewise for
13611         locals "insn", "next", "last_clobber".
13612         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13614 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13616         * combine-stack-adj.c (struct csa_reflist): Strengthen field
13617         "insn" from rtx to rtx_insn *.
13618         (single_set_for_csa): Likewise for param "insn".
13619         (record_one_stack_ref): Likewise.
13620         (try_apply_stack_adjustment): Likewise.
13621         (struct record_stack_refs_data): Likewise for field "insn".
13622         (maybe_move_args_size_note): Likewise for params "last" and "insn".
13623         (prev_active_insn_bb): Likewise for return type and param "insn".
13624         (next_active_insn_bb): Likewise.
13625         (force_move_args_size_note): Likewise for params "prev" and "last"
13626         and locals "test", "next_candidate", "prev_candidate".
13627         (combine_stack_adjustments_for_block): Strengthen locals
13628         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13629         rtx_insn *.
13631 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13633         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13634         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13635         (subst_insn): Likewise for this variable.
13636         (added_links_insn): Likewise.
13637         (struct insn_link): Likewise for field "insn".
13638         (alloc_insn_link): Likewise for param "insn".
13639         (struct undobuf): Likewise for field "other_insn".
13640         (find_single_use): Likewise for param "insn" and local "next".
13641         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13642         (delete_noop_moves): Likewise for locals "insn", "next".
13643         (create_log_links): Likewise for locals "insn", "use_insn".
13644         Strengthen local "next_use" from rtx * to rtx_insn **.
13645         (insn_a_feeds_b): Likewise for params "a", "b".
13646         (combine_instructions): Likewise for param "f" and locals "insn",
13647         "next", "prev", "first", "last_combined_insn", "link", "link1",
13648         "temp".  Replace use of NULL_RTX with NULL when referring to
13649         insns.
13650         (setup_incoming_promotions): Likewise for param "first"
13651         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13652         (can_combine_p): Likewise for params "insn", "i3", "pred",
13653         "pred2", "succ", "succ2" and for local "p".
13654         (combinable_i3pat): Likewise for param "i3".
13655         (cant_combine_insn_p): Likewise for param "insn".
13656         (likely_spilled_retval_p): Likewise.
13657         (adjust_for_new_dest): Likewise.
13658         (update_cfg_for_uncondjump): Likewise, also for local "insn".
13659         (try_combine): Likewise for return type and for params "i3", "i2",
13660         "i1", "i0", "last_combined_insn", and for locals "insn",
13661         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13662         "i0_insn".  Eliminate local "tem" in favor of new locals
13663         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
13664         checked cast for now to rtx_insn * on the return type of
13665         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
13666         insns.
13667         (find_split_point): Strengthen param "insn" from rtx to
13668         rtx_insn *.
13669         (simplify_set): Likewise for local "other_insn".
13670         (recog_for_combine): Likewise for param "insn".
13671         (record_value_for_reg): Likewise.
13672         (record_dead_and_set_regs_1): Likewise for local
13673         "record_dead_insn".
13674         (record_dead_and_set_regs): Likewise for param "insn".
13675         (record_promoted_value): Likewise.
13676         (check_promoted_subreg): Likewise.
13677         (get_last_value_validate): Likewise.
13678         (reg_dead_at_p): Likewise.
13679         (move_deaths): Likewise for param "to_insn".
13680         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13681         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
13682         in favor of new locals "tem_note" and "tem_insn", the latter being
13683         an rtx_insn *.
13684         (distribute_links): Strengthen locals "place", "insn" from rtx to
13685         rtx_insn *.
13687 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13689         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13690         than a const_rtx.
13691         (can_delete_label_p): Require a const rtx_code_label * rather than
13692         a const_rtx.
13693         (delete_insn): Add checked cast to rtx_code_label * when we know
13694         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
13695         rtx to rtx_insn *.
13696         (delete_insn_chain): Strengthen locals "prev" and "current" from
13697         rtx to rtx_insn *.  Add a checked cast when assigning from
13698         "finish" (strengthening the params will come later).  Add a
13699         checked cast to rtx_note * in region where we know
13700         NOTE_P (current).
13701         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13702         rtx_insn *.
13703         (compute_bb_for_insn): Likewise.
13704         (free_bb_for_insn): Likewise for local "insn".
13705         (compute_bb_for_insn): Likewise.
13706         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13707         local "insn" from rtx to rtx_insn *
13708         (flow_active_insn_p): Require a const rtx_insn * rather than a
13709         const_rtx.
13710         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13711         rtx_insn *.
13712         (can_fallthru): Likewise for locals "insn" and "insn2".
13713         (bb_note): Likewise for local "note".
13714         (first_insn_after_basic_block_note): Likewise for local "note" and
13715         for return type.
13716         (rtl_split_block): Likewise for locals "insn" and "next".
13717         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13718         "end".
13719         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13720         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13721         "prev", "tmp".
13722         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13723         them), "kill_from", "barrier", "new_insn".
13724         (patch_jump_insn): Likewise for params "insn", "old_label".
13725         (redirect_branch_edge): Likewise for locals "old_label", "insn".
13726         (force_nonfallthru_and_redirect): Likewise for locals "insn",
13727         "old_label", "new_label".
13728         (rtl_tidy_fallthru_edge): Likewise for local "q".
13729         (rtl_split_edge): Likewise for locals "before", "last".
13730         (commit_one_edge_insertion): Likewise for locals "before",
13731         "after", "insns", "tmp", "last", adding a checked cast where
13732         currently necessary.
13733         (commit_edge_insertions): Likewise.
13734         (rtl_dump_bb): Likewise for locals "insn", "last".
13735         (print_rtl_with_bb): Likewise for local "x".
13736         (rtl_verify_bb_insns): Likewise for local "x".
13737         (rtl_verify_bb_pointers): Likewise for local "insn".
13738         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13739         "head", "end".
13740         (rtl_verify_fallthru): Likewise for local "insn".
13741         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13742         (purge_dead_edges): Likewise for local "insn".
13743         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13744         (skip_insns_after_block): Likewise for return type and for locals
13745         "insn", "last_insn", "next_head", "prev".
13746         (record_effective_endpoints): Likewise for locals "next_insn",
13747         "insn", "end".
13748         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13749         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13750         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13751         (duplicate_insn_chain): For now, add checked cast from rtx to
13752         rtx_insn * when returning insn.
13753         (cfg_layout_duplicate_bb): Likewise for local "insn".
13754         (cfg_layout_delete_block): Likewise for locals "insn", "next",
13755         "prev", "remaints".
13756         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13757         (rtl_block_empty_p): Likewise.
13758         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13759         "split_point", "last".
13760         (rtl_block_ends_with_call_p): Likewise for local "insn".
13761         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13762         const rtx_insn *.
13763         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13764         "split_at_insn" from rtx to rtx_insn *.
13765         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13766         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13767         to const rtx_insn *.
13768         (rtl_account_profile_record): Likewise.
13770 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13772         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13773         rtx to rtx_insn *.
13774         (average_num_loop_insns): Likewise.
13775         (init_set_costs): Likewise for local "seq".
13776         (seq_cost): Likewise for param "seq", from const_rtx to const
13777         rtx_insn *.
13779 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13781         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13782         rtx to rtx_insn *.
13784 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13786         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13787         "f1" and "f2" from rtx * to rtx_insn **.
13788         (flow_find_head_matching_sequence): Likewise.
13790         * cfgcleanup.c (try_simplify_condjump): Strengthen local
13791         "cbranch_insn" from rtx to rtx_insn *.
13792         (thread_jump): Likewise for local "insn".
13793         (try_forward_edges): Likewise for local "last".
13794         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13795         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13796         "real_b_end".
13797         (can_replace_by): Likewise for params "i1", "i2".
13798         (old_insns_match_p): Likewise.
13799         (merge_notes): Likewise.
13800         (walk_to_nondebug_insn): Likewise for param "i1".
13801         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13802         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
13803         "afterlast1", "afterlast2" from rtx to rtx_insn *.
13804         (flow_find_head_matching_sequence): Strengthen params "f1" and
13805         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
13806         "last1", "last2", "beforelast1", "beforelast2" from rtx to
13807         rtx_insn *.
13808         (outgoing_edges_match): Likewise for locals "last1", "last2".
13809         (try_crossjump_to_edge): Likewise for local "insn".
13810         Replace call to for_each_rtx with for_each_rtx_in_insn.
13812         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13813         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13814         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
13815         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13816         (try_optimize_cfg): Strengthen local "last" from rtx to
13817         rtx_insn *.
13818         (delete_dead_jumptables): Likewise for locals "insn", "next",
13819         "label".
13821         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13822         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13823         "rtx else_first_tail", to reflect the basic-block.h changes above.
13825 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13827         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13828         rtx_insn *.
13829         (purge_dead_tablejump_edges): Likewise.
13830         (find_bb_boundaries): Likewise for locals "insn", "end",
13831         "flow_transfer_insn".
13833 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13835         * caller-save.c (save_call_clobbered_regs): Strengthen locals
13836         "ins" and "prev" from rtx to rtx_insn *.
13838 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13840         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13841         rtx_insn *.
13842         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13843         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13844         "scan_start".
13845         (load_register_parameters): Likewise for local "before_arg".
13846         (check_sibcall_argument_overlap): Likewise for param "insn".
13847         (expand_call): Likewise for locals "normal_call_insns",
13848         "tail_call_insns", "insns", "before_call", "after_args",
13849         "before_arg", "last", "prev".  Strengthen one of the "last" from
13850         rtx to rtx_call_insn *.
13851         (fixup_tail_calls): Strengthen local "insn" from rtx to
13852         rtx_insn *.
13853         (emit_library_call_value_1): Likewise for locals "before_call" and
13854         "last".
13856 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13858         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13859         and "last" from rtx to rtx_insn *.
13860         (expand_builtin_nonlocal_goto): Likewise for local "insn".
13861         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13862         rtx_call_insn *.
13863         (expand_errno_check): Strengthen local "lab" from rtx to
13864         rtx_code_label *.
13865         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13866         rtx_insn *.
13867         (expand_builtin_mathfn_2): Likewise.
13868         (expand_builtin_mathfn_ternary): Likewise.
13869         (expand_builtin_mathfn_3): Likewise.
13870         (expand_builtin_interclass_mathfn): Likewise for local "last".
13871         (expand_builtin_int_roundingfn): Likewise for local "insns".
13872         (expand_builtin_int_roundingfn_2): Likewise.
13873         (expand_builtin_strlen): Likewise for local "before_strlen".
13874         (expand_builtin_strncmp): Likewise for local "seq".
13875         (expand_builtin_signbit): Likewise for local "last".
13876         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13877         from rtx to rtx_code_label *.
13878         (expand_stack_restore):  Strengthen local "prev" from rtx to
13879         rtx_insn *.
13881 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13883         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13884         to rtx_insn *.
13885         (struct btr_def_s): Likewise.
13886         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13887         const rtx_insn *.
13888         (add_btr_def): Likewise.
13889         (new_btr_user): Likewise.
13890         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13891         rtx to rtx_insn *.
13892         (link_btr_uses): Likewise.
13893         (move_btr_def): Likewise for locals "insp", "old_insn",
13894         "new_insn".  Add checked cast to rtx_insn * for now on result of
13895         gen_move_insn.
13896         (can_move_up): Strengthen param "insn" from const_rtx to
13897         const rtx_insn *.
13899 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13901         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13902         rtx_insn *.
13903         (get_uncond_jump_length): Likewise for locals "label", "jump".
13904         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13905         "jump", "insn".
13906         (add_labels_and_missing_jumps): Likewise for local "new_jump".
13907         (fix_up_fall_thru_edges): Likewise for local "old_jump".
13908         (find_jump_block): Likewise for local "insn".
13909         (fix_crossing_conditional_branches): Likewise for locals
13910         "old_jump", "new_jump".
13911         (fix_crossing_unconditional_branches): Likewise for locals
13912         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13913         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13915 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13917         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13918         rtx to rtx_insn *.
13919         (struct mem_insn): Likewise for field "insn".
13920         (reg_next_use): Strengthen from rtx * to rtx_insn **.
13921         (reg_next_inc_use): Likewise.
13922         (reg_next_def): Likewise.
13923         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13924         from rtx to rtx_insn *.
13925         (move_insn_before): Likewise for param "next_insn" and local "insns".
13926         (attempt_change): Likewise for local "mov_insn".
13927         (try_merge): Likewise for param "last_insn".
13928         (get_next_ref): Likewise for return type and local "insn".
13929         Strengthen param "next_array" from rtx * to rtx_insn **.
13930         (parse_add_or_inc): Strengthen param "insn" from rtx to
13931         rtx_insn *.
13932         (find_inc): Likewise for locals "insn" and "other_insn" (three of
13933         the latter).
13934         (merge_in_block): Likewise for locals "insn", "curr",
13935         "other_insn".
13936         (pass_inc_dec::execute): Update allocations of the arrays to
13937         reflect the stronger types.
13939 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13941         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13942         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
13943         from rtx to rtx_code_label *.
13945 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13947         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13948         to rtx_insn *.
13950 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13952         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13953         generated a warning and prevented bootstrapping the compiler.
13955 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13957         * rtl.h (delete_related_insns): Strengthen return type from rtx to
13958         rtx_insn *.
13960         * jump.c (delete_related_insns): Likewise, also for locals "next"
13961         and "prev".
13963 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13965         * genautomata.c (output_internal_insn_latency_func): When writing
13966         the function "internal_insn_latency" to insn-automata.c,
13967         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13968         allowing the optional guard function of (define_bypass) clauses to
13969         expect a pair of rtx_insn *, rather than a pair of rtx.
13970         (output_insn_latency_func): When writing the function
13971         "insn_latency", add an "uncast_" prefix to params "insn" and
13972         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13973         using checked casts from the params, thus enabling the above
13974         change to the generated "internal_insn_latency" function.
13976 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
13978         PR tree-optimization/62091
13979         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13980         handle correctly arrays.
13981         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13982         inheritance binfos.
13983         (record_known_type): Walk into inner type.
13984         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13985         condition on no type changes.
13987 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13989         * genattrtab.c (write_attr_get): Within the generated get_attr_
13990         functions, rename param "insn" to "uncast_insn" and reintroduce
13991         "insn" as an local rtx_insn * using a checked cast, so that "insn"
13992         is an rtx_insn * within insn-attrtab.c
13994 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13996         * output.h (peephole): Strengthen return type from rtx to
13997         rtx_insn *.
13998         * rtl.h (delete_for_peephole): Likewise for both params.
13999         * genpeep.c (main): In generated "peephole" function, strengthen
14000         return type and local "insn" from rtx to rtx_insn *.  For now,
14001         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14002         rtx_insn *, with a checked cast.
14003         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14004         locals "insn", "next", "prev" from rtx to rtx_insn *.
14006 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
14008         PR tree-optimization/62112
14009         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14010         * gimple-iterator.h (gsi_replace): Return bool.
14011         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14012         moved from ref_may_alias_global_p.
14013         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14014         New overloads.
14015         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14016         (stmt_kills_ref_p_1): Rename...
14017         (stmt_kills_ref_p): ... to this.
14018         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14019         stmt_kills_ref_p): Declare.
14020         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14021         Move the self-assignment case...
14022         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14024 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14026         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14028         * emit-rtl.c (try_split): Likewise, also for locals "before" and
14029         "after".  For now, don't strengthen param "trial", which requires
14030         adding checked casts when returning it.
14032 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14034         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14035         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
14036         "var_location" hook from rtx to rtx_insn *.
14037         (debug_nothing_rtx): Delete in favor of...
14038         (debug_nothing_rtx_code_label): New prototype.
14039         (debug_nothing_rtx_rtx): Delete unused prototype.
14040         (debug_nothing_rtx_insn): New prototype.
14042         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14043         invoking debug_hooks->var_location (in two places, one in a NOTE
14044         case of a switch statement, the other guarded by a CALL_P
14045         conditional.  Add checked cast to rtx_code_label * when invoking
14046         debug_hooks->label (within CODE_LABEL case of switch statement).
14048         * dbxout.c (dbx_debug_hooks): Update "label" hook from
14049         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14050         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14051         (xcoff_debug_hooks): Likewise.
14052         * debug.c (do_nothing_debug_hooks): Likewise.
14053         (debug_nothing_rtx): Delete in favor of...
14054         (debug_nothing_rtx_insn): New function.
14055         (debug_nothing_rtx_rtx): Delete unused function.
14056         (debug_nothing_rtx_code_label): New function.
14057         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14058         debug_nothing_rtx to debug_nothing_rtx_code_label.
14059         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14060         to rtx_insn *.
14061         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14062         debug_nothing_rtx to debug_nothing_rtx_insn.
14063         (sdbout_label): Strengthen param "insn" from rtx to
14064         rtx_code_label *.
14065         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14066         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14067         "var_location" hook from debug_nothing_rtx to
14068         debug_nothing_rtx_insn.
14070 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14072         * recog.h (insn_output_fn): Update this function typedef to match
14073         the changes below to the generated output functions, strengthening
14074         the 2nd param from rtx to rtx_insn *.
14076         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14077         insn when invoking an output function, to match the new signature
14078         of insn_output_fn with a stronger second param.
14080         * genconditions.c (write_header): In the generated code for
14081         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14082         to match the other changes in this patch.
14084         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14085         the generated "gen_" functions from rtx to rtx_insn * within their
14086         implementations.
14088         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14089         the subfunctions within the generated "recog_", "split", "peephole2"
14090         function trees from rtx to rtx_insn *.  For now, the top-level
14091         generated functions ("recog", "split", "peephole2") continue to
14092         take a plain rtx for "insn", to avoid introducing dependencies on
14093         other patches.  Rename this 2nd param from "insn" to
14094         "uncast_insn", and reintroduce "insn" as a local variable of type
14095         rtx_insn *, initialized at the top of the generated function with
14096         a checked cast on "uncast_insn".
14097         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14098         the generated "gen_" functions from rtx to rtx_insn * within their
14099         prototypes.
14101         * genoutput.c (process_template): Strengthen the 2nd param within
14102         the generated "output_" functions "insn" from rtx to rtx_insn *.
14104 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14106         * tree-profile.c (tree_profiling): Skip external functions
14107         when doing coverage instrumentation.
14108         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14110 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14112         * config/rs6000/altivec.h (vec_cpsgn): New #define.
14113         (vec_mergee): Likewise.
14114         (vec_mergeo): Likewise.
14115         (vec_cntlz): Likewise.
14116         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14117         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14118         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14119         VMRGEW, and VMRGOW.
14120         * doc/extend.texi: Document various forms of vec_cpsgn,
14121         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14122         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14123         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14124         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14125         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14127 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14129         * config/rs6000/rs6000.c (context.h): New include.
14130         (tree-pass.h): Likewise.
14131         (make_pass_analyze_swaps): New decl.
14132         (rs6000_option_override): Register pass_analyze_swaps.
14133         (swap_web_entry): New subsclass of web_entry_base (df.h).
14134         (special_handling_values): New enum.
14135         (union_defs): New function.
14136         (union_uses): Likewise.
14137         (insn_is_load_p): Likewise.
14138         (insn_is_store_p): Likewise.
14139         (insn_is_swap_p): Likewise.
14140         (rtx_is_swappable_p): Likewise.
14141         (insn_is_swappable_p): Likewise.
14142         (chain_purpose): New enum.
14143         (chain_contains_only_swaps): New function.
14144         (mark_swaps_for_removal): Likewise.
14145         (swap_const_vector_halves): Likewise.
14146         (adjust_subreg_index): Likewise.
14147         (permute_load): Likewise.
14148         (permute_store): Likewise.
14149         (handle_special_swappables): Likewise.
14150         (replace_swap_with_copy): Likewise.
14151         (dump_swap_insn_table): Likewise.
14152         (rs6000_analyze_swaps): Likewise.
14153         (pass_data_analyze_swaps): New pass_data.
14154         (pass_analyze_swaps): New rtl_opt_pass.
14155         (make_pass_analyze_swaps): New function.
14156         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14158 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14160         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14161         type from rtx to rtx_insn *.
14162         (create_copy_of_insn_rtx): Likewise.
14163         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14164         (create_copy_of_insn_rtx): Likewise, also for local "res".
14166 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14168         * rtl.h (find_first_parameter_load): Strengthen return type from
14169         rtx to rtx_insn *.
14170         * rtlanal.c (find_first_parameter_load): Strengthen return type
14171         from rtx to rtx_insn *.  Add checked cast for now, to postpone
14172         strengthening the params.
14174 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14176         PR fortran/44054
14177         * diagnostic.c: Set default caret.
14178         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14179         line is needed.
14180         * diagnostic.h (struct diagnostic_context):
14182 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14184         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14185         (sel_bb_head): Strengthen return type insn_t (currently just an
14186         rtx) to rtx_insn *.
14187         (sel_bb_end): Likewise.
14189         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14190         (sel_bb_head): Strengthen return type and local "head" from
14191         insn_t (currently just an rtx) to rtx_insn *.
14192         (sel_bb_end): Likewise for return type.
14193         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14194         working with insn.
14196 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14198         * basic-block.h (get_last_bb_insn): Strengthen return type from
14199         rtx to rtx_insn *.
14200         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14201         end".
14203 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14205         PR fortran/44054
14206         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14207         to here ...
14208         (diagnostic_report_diagnostic): ... from here.
14209         * toplev.c (general_init): Move code to c-family.
14211 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14213         * df.h (web_entry_base): Replace existing struct web_entry with a
14214         new class web_entry_base with only the predecessor member.
14215         (unionfind_root): Remove declaration and move to class member.
14216         (unionfind_union): Remove declaration and move to friend
14217         function.
14218         (union_defs): Remove declaration.
14219         * web.c (web_entry_base::unionfind_root): Modify to be member
14220         function and adjust accessors.
14221         (unionfind_union): Modify to be friend function and adjust
14222         accessors.
14223         (web_entry): New subclass of web_entry_base containing the reg
14224         member.
14225         (union_match_dups): Modify for struct -> class changes.
14226         (union_defs): Likewise.
14227         (entry_register): Likewise.
14228         (pass_web::execute): Likewise.
14230 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
14232         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14233         builtin define __VEC_ELEMENT_REG_ORDER__.
14235 2014-08-20  Martin Jambor  <mjambor@suse.cz>
14236             Wei Mi  <wmi@google.com>
14238         PR ipa/60449
14239         PR middle-end/61776
14240         * tree-ssa-operands.c (update_stmt_operands): Remove
14241         MODIFIED_NORETURN_CALLS.
14242         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14243         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14244         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14245         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14246         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14247         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14248         (gimple_call_set_ctrl_altering): New func.
14249         (gimple_call_ctrl_altering_p): Ditto.
14250         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14251         (make_blocks): Use gimple_call_initialize_ctrl_altering.
14252         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14253         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14254         remove MODIFIED_NORETURN_CALLS.
14256 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14258         * coverage.c (coverage_compute_profile_id): Return non-0;
14259         also handle symbols with unique name.
14260         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14262 2014-08-20  Steve Ellcey  <sellcey@mips.com>
14264         PR middle-end/49191
14265         * doc/sourcebuild.texi (non_strict_align): New.
14267 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14269         * cgraphunit.c (ipa_passes, compile): Reshedule
14270         symtab_remove_unreachable_nodes passes; update comments.
14271         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14272         TODO_remove_functions before the pass; the functions ought to be
14273         already removed.
14274         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14275         TODO_remove_functions.
14276         * passes.c (pass_data_early_local_passes): Do not schedule function
14277         removal.
14278         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14280 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14282         PR c/59304
14283         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14284         before setting the option.
14285         * diagnostic.c (diagnostic_classify_diagnostic): Record
14286         command-line status.
14288 2014-08-20  Richard Biener  <rguenther@suse.de>
14290         PR lto/62190
14291         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14292         to build uint{16,32,64}_type_node.
14294 2014-08-20  Terry Guo  <terry.guo@arm.com>
14296         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14297         with immediate_operand.
14299 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
14301         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14302         "insn" from an as_a to a safe_as_a, for the case when "insn" is
14303         NULL.
14305 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14307         PR preprocessor/51303
14308         * incpath.c (remove_duplicates): Use cpp_warning.
14310 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14312         PR c/60975
14313         PR c/53063
14314         * doc/options.texi (CPP): Document it.
14315         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14316         * optc-gen.awk: Handle CPP.
14317         * opth-gen.awk: Likewise.
14319 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14321         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14322         rtx_insn *.
14323         (duplicate_insn_chain): Likewise.
14324         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14325         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
14326         checked cast for now (until we can strengthen the params in the
14327         same way).
14328         (duplicate_insn_chain): Likewise.
14330 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14332         * rtl.h (next_cc0_user): Strengthen return type from rtx to
14333         rtx_insn *.
14334         (prev_cc0_setter): Likewise.
14336         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14337         rtx_insn *, adding checked casts for now as necessary.
14338         (prev_cc0_setter): Likewise.
14340 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14342         * expr.h (emit_move_insn): Strengthen return type from rtx to
14343         rtx_insn *.
14344         (emit_move_insn_1): Likewise.
14345         (emit_move_complex_push): Likewise.
14346         (emit_move_complex_parts): Likewise.
14348         * expr.c (emit_move_via_integer): Strengthen return type from rtx
14349         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
14350         with insns.
14351         (emit_move_complex_push): Strengthen return type from rtx to
14352         rtx_insn *.
14353         (emit_move_complex): Likewise, also for local "ret".
14354         (emit_move_ccmode): Likewise.
14355         (emit_move_multi_word): Likewise for return type and locals
14356         "last_insn", "seq".
14357         (emit_move_insn_1): Likewise for return type and locals "result",
14358         "ret".
14359         (emit_move_insn): Likewise for return type and local "last_insn".
14360         (compress_float_constant): Likewise.
14362 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14364         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14365         from rtx to rtx_insn *.
14367         * rtl.h (emit_insn_before): Likewise.
14368         (emit_insn_before_noloc): Likewise.
14369         (emit_insn_before_setloc): Likewise.
14370         (emit_jump_insn_before): Likewise.
14371         (emit_jump_insn_before_noloc): Likewise.
14372         (emit_jump_insn_before_setloc): Likewise.
14373         (emit_call_insn_before): Likewise.
14374         (emit_call_insn_before_noloc): Likewise.
14375         (emit_call_insn_before_setloc): Likewise.
14376         (emit_debug_insn_before): Likewise.
14377         (emit_debug_insn_before_noloc): Likewise.
14378         (emit_debug_insn_before_setloc): Likewise.
14379         (emit_label_before): Likewise.
14380         (emit_insn_after): Likewise.
14381         (emit_insn_after_noloc): Likewise.
14382         (emit_insn_after_setloc): Likewise.
14383         (emit_jump_insn_after): Likewise.
14384         (emit_jump_insn_after_noloc): Likewise.
14385         (emit_jump_insn_after_setloc): Likewise.
14386         (emit_call_insn_after): Likewise.
14387         (emit_call_insn_after_noloc): Likewise.
14388         (emit_call_insn_after_setloc): Likewise.
14389         (emit_debug_insn_after): Likewise.
14390         (emit_debug_insn_after_noloc): Likewise.
14391         (emit_debug_insn_after_setloc): Likewise.
14392         (emit_label_after): Likewise.
14393         (emit_insn): Likewise.
14394         (emit_debug_insn): Likewise.
14395         (emit_jump_insn): Likewise.
14396         (emit_call_insn): Likewise.
14397         (emit_label): Likewise.
14398         (gen_clobber): Likewise.
14399         (emit_clobber): Likewise.
14400         (gen_use): Likewise.
14401         (emit_use): Likewise.
14402         (emit): Likewise.
14404         (emit_barrier_before): Strengthen return type from rtx to
14405         rtx_barrier *.
14406         (emit_barrier_after): Likewise.
14407         (emit_barrier): Likewise.
14409         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
14410         from rtx to rtx_insn *.  Add checked casts for now when converting
14411         "last" from rtx to rtx_insn *.
14412         (emit_insn_before_noloc): Likewise for return type.
14413         (emit_jump_insn_before_noloc): Likewise.
14414         (emit_call_insn_before_noloc): Likewise.
14415         (emit_debug_insn_before_noloc): Likewise.
14416         (emit_barrier_before): Strengthen return type and local "insn"
14417         from rtx to rtx_barrier *.
14418         (emit_label_before): Strengthen return type from rtx to
14419         rtx_insn *.  Add checked cast for now when returning param
14420         (emit_pattern_after_noloc): Strengthen return type from rtx to
14421         rtx_insn *.  Add checked casts for now when converting "last" from
14422         rtx to rtx_insn *.
14423         (emit_insn_after_noloc): Strengthen return type from rtx to
14424         rtx_insn *.
14425         (emit_jump_insn_after_noloc): Likewise.
14426         (emit_call_insn_after_noloc): Likewise.
14427         (emit_debug_insn_after_noloc): Likewise.
14428         (emit_barrier_after): Strengthen return type from rtx to
14429         rtx_barrier *.
14430         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14431         Add checked cast for now when converting "label" from rtx to
14432         rtx_insn *.
14433         (emit_pattern_after_setloc): Strengthen return type from rtx to
14434         rtx_insn *.  Add checked casts for now when converting "last" from
14435         rtx to rtx_insn *.
14436         (emit_pattern_after): Strengthen return type from rtx to
14437         rtx_insn *.
14438         (emit_insn_after_setloc): Likewise.
14439         (emit_insn_after): Likewise.
14440         (emit_jump_insn_after_setloc): Likewise.
14441         (emit_jump_insn_after): Likewise.
14442         (emit_call_insn_after_setloc): Likewise.
14443         (emit_call_insn_after): Likewise.
14444         (emit_debug_insn_after_setloc): Likewise.
14445         (emit_debug_insn_after): Likewise.
14446         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
14447         when converting "last" from rtx to rtx_insn *.
14448         (emit_pattern_before): Strengthen return type from rtx to
14449         rtx_insn *.
14450         (emit_insn_before_setloc): Likewise.
14451         (emit_insn_before): Likewise.
14452         (emit_jump_insn_before_setloc): Likewise.
14453         (emit_jump_insn_before): Likewise.
14454         (emit_call_insn_before_setloc): Likewise.
14455         (emit_call_insn_before): Likewise.
14456         (emit_debug_insn_before_setloc): Likewise.
14457         (emit_debug_insn_before): Likewise.
14458         (emit_insn): Strengthen return type and locals "last", "insn",
14459         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
14460         within cases where we know we have an insn.
14461         (emit_debug_insn): Likewise.
14462         (emit_jump_insn): Likewise.
14463         (emit_call_insn): Strengthen return type and local "insn" from rtx
14464         to rtx_insn *.
14465         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
14466         a checked cast to rtx_insn * for now on "label".
14467         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14468         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14469         (emit_use): Likewise.
14470         (gen_use): Likewise, also for local "seq".
14471         (emit): Likewise for return type and local "insn".
14472         (rtx_insn): Likewise for return type and local "new_rtx".
14474         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14475         from rtx to rtx_barrier *.
14477         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14478         changed return type from rtx to rtx_insn *, we must update
14479         "emit_fn" type, and this in turn means updating...
14480         (frame_insn): ...this.  Strengthen return type from rtx to
14481         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
14483 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14485         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14486         rtx to rtx_jump_table_data *.  Also for local.
14487         * rtl.h (emit_jump_table_data): Likewise.
14489 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14491         * basic-block.h (create_basic_block_structure): Strengthen third
14492         param "bb_note" from rtx to rtx_note *.
14493         * rtl.h (emit_note_before): Strengthen return type from rtx to
14494         rtx_note *.
14495         (emit_note_after): Likewise.
14496         (emit_note): Likewise.
14497         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14498         * function.h (struct rtl_data): Strengthen field
14499         "x_stack_check_probe_note" from rtx to rtx_note *.
14501         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14502         from rtx to rtx_note *.
14503         * cfgrtl.c (create_basic_block_structure): Strengthen third param
14504         "bb_note" from rtx to rtx_note *.
14505         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
14506         when calling emit_note_copy.
14507         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14508         rtx_note *.
14509         (emit_note_after): Likewise.
14510         (emit_note_before): Likewise.
14511         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14512         (emit_note): Likewise.
14513         * except.c (emit_note_eh_region_end): Likewise for return type.
14514         Strengthen local "next" from rtx to rtx_insn *.
14515         (convert_to_eh_region_ranges): Strengthen local "note"
14516         from rtx to rtx_note *.
14517         * final.c (change_scope): Likewise.
14518         (reemit_insn_block_notes): Likewise, for both locals named "note".
14519         Also, strengthen local "insn" from rtx to rtx_insn *.
14520         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14521         rtx to rtx_note *.
14522         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14523         strengthen local "seq" from rtx to rtx_insn *.
14524         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14525         to rtx_note *.
14526         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14527         vec<rtx_note *>.
14528         (get_bb_note_from_pool): Strengthen return type from rtx to
14529         rtx_note *.
14530         (sel_create_basic_block): Strengthen local "new_bb_note" from
14531         insn_t to rtx_note *.
14532         * var-tracking.c (emit_note_insn_var_location): Strengthen local
14533         "note" from rtx to rtx_note *.
14534         (emit_notes_in_bb): Likewise.
14536 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14538         * function.h (struct rtl_data): Strengthen field
14539         "x_parm_birth_insn" from rtx to rtx_insn *.
14540         * function.c (struct assign_parm_data_all): Strengthen fields
14541         "first_conversion_insn" and "last_conversion_insn" from rtx to
14542         rtx_insn *.
14544 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14546         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14547         to rtx_insn *; also for local "var_end_seq".
14548         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14549         (maybe_cleanup_end_of_block): Likewise for param "last" and local
14550         "insn".
14551         (expand_gimple_cond): Likewise for locals "last2" and "last".
14552         (mark_transaction_restart_calls): Likewise for local "insn".
14553         (expand_gimple_stmt): Likewise for return type and locals "last"
14554         and "insn".
14555         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14556         (avoid_complex_debug_insns): Likewise for param "insn".
14557         (expand_debug_locations): Likewise for locals "insn", "last",
14558         "prev_insn" and "insn2".
14559         (expand_gimple_basic_block): Likewise for local "last".
14560         (construct_exit_block): Likewise for locals "head", "end",
14561         "orig_end".
14562         (pass_expand::execute): Likewise for locals "var_seq",
14563         "var_ret_seq", "next".
14565 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14567         * asan.h (asan_emit_stack_protection): Strengthen return type from
14568         rtx to rtx_insn *.
14569         * asan.c (asan_emit_stack_protection): Likewise.  Add local
14570         "insns" to hold the return value.
14572 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14574         * basic-block.h (bb_note): Strengthen return type from rtx to
14575         rtx_note *.
14576         * sched-int.h (bb_note): Likewise.
14577         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
14579 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14581         * rtl.h (make_insn_raw): Strengthen return type from rtx to
14582         rtx_insn *.
14584         * emit-rtl.c (make_insn_raw): Strengthen return type and local
14585         "insn" from rtx to rtx_insn *.
14586         (make_debug_insn_raw): Strengthen return type from rtx to
14587         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14588         (make_jump_insn_raw):  Strengthen return type from rtx to
14589         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14590         (make_call_insn_raw):  Strengthen return type from rtx to
14591         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14592         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14593         callback from rtx to rtx_insn *; likewise for local "insn" and
14594         "next", adding a checked cast to rtx_insn in the relevant cases of
14595         the switch statement.
14596         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14597         callback from rtx to rtx_insn *.
14598         (emit_pattern_after_setloc): Likewise.
14599         (emit_pattern_after): Likewise.
14600         (emit_pattern_before_setloc): Likewise.
14601         (emit_pattern_before): Likewise.
14603 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14605         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14606         rtx_call_insn *.
14607         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14608         accepting an rtx_insn *.
14609         (last_call_insn): Strengthen return type from rtx to
14610         rtx_call_insn *.
14612 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14614         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14615         "insns" from rtx to rtx_insn *.
14616         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14617         locals "insn" and "prev".
14619 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14621         * rtl.h (tablejump_p): Strengthen third param from rtx * to
14622         rtx_jump_table_data **.
14624         * cfgbuild.c (make_edges): Introduce local "table", using it in
14625         place of "tmp" for jump table data.
14626         (find_bb_boundaries): Strengthen local "table" from rtx to
14627         rtx_jump_table_data *.
14628         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14629         (outgoing_edges_match): Likewise for locals "table1" and "table2".
14630         (try_crossjump_to_edge): Likewise.
14631         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14632         "table".
14633         (patch_jump_insn): Introduce local "table", using it in place of
14634         "tmp" for jump table data.
14635         (force_nonfallthru_and_redirect): Introduce local "table", so that
14636         call to tablejump_p can receive an rtx_jump_table_data **.  Update
14637         logic around the call to overwrite "note" appropriately if
14638         tablejump_p returns non-zero.
14639         (get_last_bb_insn): Introduce local "table", using it in place of
14640         "tmp" for jump table data.
14641         * dwarf2cfi.c (create_trace_edges): Likewise.
14643         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14644         from rtx to rtx_jump_table_data *.
14645         (create_fix_barrier): Strengthen local "tmp" from rtx to
14646         rtx_jump_table_data *.
14647         (arm_reorg): Likewise for local "table".
14649         * config/s390/s390.c (s390_chunkify_start): Likewise.
14651         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14653         * jump.c (delete_related_insns): Strengthen local "lab_next" from
14654         rtx to rtx_jump_table_data *.
14656         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14657         rtx_jump_table_data **.  Add a checked cast when writing through
14658         the pointer: we know there that local "table" is non-NULL and that
14659         JUMP_TABLE_DATA_P (table) holds.
14660         (label_is_jump_target_p): Introduce local "table", using it in
14661         place of "tmp" for jump table data.
14663 2014-08-19  Marek Polacek  <polacek@redhat.com>
14665         PR c++/62153
14666         * doc/invoke.texi: Document -Wbool-compare.
14668 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14670         * rtl.h (entry_of_function): Strengthen return type from rtx to
14671         rtx_insn *.
14672         * cfgrtl.c (entry_of_function): Likewise.
14674 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14676         * emit-rtl.h (get_insns): Strengthen return type from rtx to
14677         rtx_insn *, adding a checked cast for now.
14678         (get_last_insn): Likewise.
14680 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14682         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14683         rtx_code_label *.
14685         * emit-rtl.c (gen_label_rtx): Likewise.
14687 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14689         * rtl.h (previous_insn): Strengthen return type from rtx to
14690         rtx_insn *.
14691         (next_insn): Likewise.
14692         (prev_nonnote_insn): Likewise.
14693         (prev_nonnote_insn_bb): Likewise.
14694         (next_nonnote_insn): Likewise.
14695         (next_nonnote_insn_bb): Likewise.
14696         (prev_nondebug_insn): Likewise.
14697         (next_nondebug_insn): Likewise.
14698         (prev_nonnote_nondebug_insn): Likewise.
14699         (next_nonnote_nondebug_insn): Likewise.
14700         (prev_real_insn): Likewise.
14701         (next_real_insn): Likewise.
14702         (prev_active_insn): Likewise.
14703         (next_active_insn): Likewise.
14705         * emit-rtl.c (next_insn): Strengthen return type from rtx to
14706         rtx_insn *, adding a checked cast.
14707         (previous_insn): Likewise.
14708         (next_nonnote_insn): Likewise.
14709         (next_nonnote_insn_bb): Likewise.
14710         (prev_nonnote_insn): Likewise.
14711         (prev_nonnote_insn_bb): Likewise.
14712         (next_nondebug_insn): Likewise.
14713         (prev_nondebug_insn): Likewise.
14714         (next_nonnote_nondebug_insn): Likewise.
14715         (prev_nonnote_nondebug_insn): Likewise.
14716         (next_real_insn): Likewise.
14717         (prev_real_insn): Likewise.
14718         (next_active_insn): Likewise.
14719         (prev_active_insn): Likewise.
14721         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14722         param "stepfunc" so that it returns an rtx_insn * rather than an
14723         rtx, to track the change to prev_nonnote_insn_bb, which is the
14724         only function this is called with.
14725         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14727 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
14729         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14730         assert.
14732 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14734         * coretypes.h (class rtx_debug_insn): Add forward declaration.
14735         (class rtx_nonjump_insn): Likewise.
14736         (class rtx_jump_insn): Likewise.
14737         (class rtx_call_insn): Likewise.
14738         (class rtx_jump_table_data): Likewise.
14739         (class rtx_barrier): Likewise.
14740         (class rtx_code_label): Likewise.
14741         (class rtx_note): Likewise.
14743         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14744         adding the invariant DEBUG_INSN_P (X).
14745         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14746         the invariant NONJUMP_INSN_P (X).
14747         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14748         the invariant JUMP_P (X).
14749         (class rtx_call_insn): New, a subclass of rtx_insn, adding
14750         the invariant CALL_P (X).
14751         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14752         invariant JUMP_TABLE_DATA_P (X).
14753         (class rtx_barrier): New, a subclass of rtx_insn, adding the
14754         invariant BARRIER_P (X).
14755         (class rtx_code_label): New, a subclass of rtx_insn, adding
14756         the invariant LABEL_P (X).
14757         (class rtx_note): New, a subclass of rtx_insn, adding
14758         the invariant NOTE_P(X).
14759         (is_a_helper <rtx_debug_insn *>::test): New.
14760         (is_a_helper <rtx_nonjump_insn *>::test): New.
14761         (is_a_helper <rtx_jump_insn *>::test): New.
14762         (is_a_helper <rtx_call_insn *>::test): New.
14763         (is_a_helper <rtx_jump_table_data *>::test): New functions,
14764         overloaded for both rtx and rtx_insn *.
14765         (is_a_helper <rtx_barrier *>::test): New.
14766         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14767         for both rtx and rtx_insn *.
14768         (is_a_helper <rtx_note *>::test): New.
14770 2014-08-19  Marek Polacek  <polacek@redhat.com>
14772         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14773         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14774         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14775         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14777 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14779         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14780         rtx_insn *.  To help with transition, for now, convert from an
14781         access macro into a pair of functions: BND_TO, returning an
14782         rtx_insn *, and...
14783         (SET_BND_TO): New function, for use where BND_TO is used as an
14784         lvalue.
14786         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14787         SET_BND_TO.
14788         (BND_TO): New function, adding a checked cast.
14789         (SET_BND_TO): New function.
14791         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14792         SET_BND_TO.
14793         (compute_av_set_on_boundaries): Likewise.
14795 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
14797         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14798         destination if it is used in source.
14799         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14800         (*popcount<mode>2_falsedep_1): Likewise.
14802 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
14804         PR other/62168
14805         * configure.ac: Set install_gold_as_default to no first.
14806         * configure: Regenerated.
14808 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14810         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14811         "note_list" field will eventually be an rtx_insn *.  To help with
14812         transition, for now, convert from an access macro into a pair of
14813         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14814         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14815         used as an lvalue.
14817         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14818         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14820         * sel-sched-ir.c (init_bb): Likewise.
14821         (sel_restore_notes): Likewise.
14822         (move_bb_info): Likewise.
14823         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14824         (SET_BB_NOTE_LIST): New function.
14826 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14828         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14829         field will eventually be an rtx_insn *.  To help with transition,
14830         for now, convert from an access macro into a pair of functions:
14831         VINSN_INSN_RTX, returning an rtx_insn *, and...
14832         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14833         is used as an lvalue.
14835         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14836         SET_VINSN_INSN_RTX where it's used as an lvalue.
14837         (VINSN_INSN_RTX): New function.
14838         (SET_VINSN_INSN_RTX): New function.
14840 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14842         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14843         eventually be rtx_insn *, but to help with transition, for now,
14844         convert from an access macro into a pair of functions: DEP_PRO
14845         returning an rtx_insn * and...
14846         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14847         lvalue, returning an rtx&.
14848         (DEP_CON): Analogous changes to DEP_PRO above.
14849         (SET_DEP_CON): Likewise.
14851         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14852         an lvalue to SET_DEP_CON.
14853         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14854         (sd_copy_back_deps): Likewise for DEP_CON.
14855         (DEP_PRO): New function, adding a checked cast for now.
14856         (DEP_CON): Likewise.
14857         (SET_DEP_PRO): New function.
14858         (SET_DEP_CON): Likewise.
14860 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
14862         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14863         (extra_options): Add i386/cygwin.opt.
14864         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14865         (CPP_SPEC): Accept -pthread.
14866         (LINK_SPEC): Ditto.
14867         (GOMP_SELF_SPECS): Update comment.
14868         * config/i386/cygwin.opt: New file for -pthread flag.
14870 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14872         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14873         * df.h (DF_REF_INSN): Convert from a macro to a function, so
14874         that we can return an rtx_insn *.
14876 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
14878         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14879         when building executables, not DLLs.  Add --large-address-aware
14880         under the same conditions.
14881         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14882         when building executables, not DLLs.  Add --large-address-aware
14883         under the same conditions when using -m32.
14885         * config/i386/cygwin-stdint.h: Throughout, make type
14886         definitions dependent on target architecture, not host.
14888 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14890         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
14891         the return type from rtx to rtx_insn *,  which will enable various
14892         conversions in followup patches.  For now this is is done by a
14893         checked cast.
14894         (NEXT_INSN): Likewise.
14895         (SET_PREV_INSN): Convert to an inline function.  This is intended
14896         for use as an lvalue, and so returns an rtx& to allow in-place
14897         modification.
14898         (SET_NEXT_INSN): Likewise.
14900 2014-07-08  Mark Wielaard  <mjw@redhat.com>
14902         PR debug/59051
14903         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14905 2014-08-19  Marek Polacek  <polacek@redhat.com>
14907         PR c/61271
14908         * cgraphunit.c (handle_alias_pairs): Fix condition.
14910 2014-08-19  Richard Biener  <rguenther@suse.de>
14912         * gimple-fold.c (fold_gimple_assign): Properly build a
14913         null-pointer constant when devirtualizing addresses.
14915 2014-07-07  Mark Wielaard  <mjw@redhat.com>
14917         * dwarf2out.c (decl_quals): New function.
14918         (modified_type_die): Take one cv_quals argument instead of two,
14919         one for const and one for volatile.
14920         (add_type_attribute): Likewise.
14921         (generic_parameter_die): Call add_type_attribute with one modifier
14922         argument.
14923         (base_type_for_mode): Likewise.
14924         (add_bounds_info): Likewise.
14925         (add_subscript_info): Likewise.
14926         (gen_array_type_die): Likewise.
14927         (gen_descr_array_type_die): Likewise.
14928         (gen_entry_point_die): Likewise.
14929         (gen_enumeration_type_die): Likewise.
14930         (gen_formal_parameter_die): Likewise.
14931         (gen_subprogram_die): Likewise.
14932         (gen_variable_die): Likewise.
14933         (gen_const_die): Likewise.
14934         (gen_field_die): Likewise.
14935         (gen_pointer_type_die): Likewise.
14936         (gen_reference_type_die): Likewise.
14937         (gen_ptr_to_mbr_type_die): Likewise.
14938         (gen_inheritance_die): Likewise.
14939         (gen_subroutine_type_die): Likewise.
14940         (gen_typedef_die): Likewise.
14941         (force_type_die): Likewise.
14943 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14945         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14946         if unset.
14947         * configure: Regenerate.
14949 2014-08-19  Richard Biener  <rguenther@suse.de>
14951         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14952         DECL_EXTERNALs in BLOCKs as non-references.
14953         * tree-streamer-out.c (streamer_write_chain): Likewise.
14955 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14956             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14957             Anna Tikhonova  <anna.tikhonova@intel.com>
14958             Ilya Tocar  <ilya.tocar@intel.com>
14959             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14960             Ilya Verbin  <ilya.verbin@intel.com>
14961             Kirill Yukhin  <kirill.yukhin@intel.com>
14962             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14964         * config/i386/sse.md
14965         (define_mode_iterator VI48_AVX512F): Delete.
14966         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14967         (define_mode_iterator VI2_AVX512VL): Ditto.
14968         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14969         Delete.
14970         (define_insn
14971         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14972         New.
14973         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14974         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14975         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14976         with VI48_AVX512F_AVX512VL): New.
14977         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14978         with VI2_AVX512VL): Ditto.
14980 2014-08-19  Marek Polacek  <polacek@redhat.com>
14982         * doc/invoke.texi: Document -Wc99-c11-compat.
14984 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14986         * rtl.h (PREV_INSN): Split macro in two: the existing one,
14987         for rvalues, and...
14988         (SET_PREV_INSN): New macro, for use as an lvalue.
14989         (NEXT_INSN, SET_NEXT_INSN): Likewise.
14991         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14992         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14993         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14994         (fixup_abnormal_edges): Likewise.
14995         (unlink_insn_chain): Likewise.
14996         (fixup_reorder_chain): Likewise.
14997         (cfg_layout_delete_block): Likewise.
14998         (cfg_layout_merge_blocks): Likewise.
14999         * combine.c (update_cfg_for_uncondjump): Likewise.
15000         * emit-rtl.c (link_insn_into_chain): Likewise.
15001         (remove_insn): Likewise.
15002         (delete_insns_since): Likewise.
15003         (reorder_insns_nobb): Likewise.
15004         (emit_insn_after_1): Likewise.
15005         * final.c (rest_of_clean_state): Likewise.
15006         (final_scan_insn): Likewise.
15007         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15008         * haifa-sched.c (concat_note_lists): Likewise.
15009         (remove_notes): Likewise.
15010         (restore_other_notes): Likewise.
15011         (move_insn): Likewise.
15012         (unlink_bb_notes): Likewise.
15013         (restore_bb_notes): Likewise.
15014         * jump.c (delete_for_peephole): Likewise.
15015         * optabs.c (emit_libcall_block_1): Likewise.
15016         * reorg.c (emit_delay_sequence): Likewise.
15017         (fill_simple_delay_slots): Likewise.
15018         * sel-sched-ir.c (sel_move_insn): Likewise.
15019         (sel_remove_insn): Likewise.
15020         (get_bb_note_from_pool): Likewise.
15021         * sel-sched.c (move_nop_to_previous_block): Likewise.
15023         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15024         * config/c6x/c6x.c (gen_one_bundle): Likewise.
15025         (c6x_gen_bundles): Likewise.
15026         (hwloop_optimize): Likewise.
15027         * config/frv/frv.c (frv_function_prologue): Likewise.
15028         (frv_register_nop): Likewise.
15029         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15030         (ia64_reorg): Likewise.
15031         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15032         (mep_make_bundle): Likewise.
15033         (mep_bundle_insns): Likewise.
15034         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15035         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15036         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15038 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15040         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
15041         return type from rtx to rtx_insn *.
15042         (BB_END): Likewise.
15043         (BB_HEADER): Likewise.
15044         (BB_FOOTER): Likewise.
15045         (SET_BB_HEAD): Convert to a function.
15046         (SET_BB_END): Likewise.
15047         (SET_BB_HEADER): Likewise.
15048         (SET_BB_FOOTER): Likewise.
15050         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15051         Strengthen the return type from rtx to rtx_insn *.  For now, this
15052         is done by adding a checked cast, but this will eventually
15053         become a field lookup.
15054         (BB_END): Likewise.
15055         (BB_HEADER): Likewise.
15056         (BB_FOOTER): Likewise.
15057         (SET_BB_HEAD): New function, from macro of same name.  This is
15058         intended for use as an lvalue, and so returns an rtx& to allow
15059         in-place modification.
15060         (SET_BB_END): Likewise.
15061         (SET_BB_HEADER): Likewise.
15062         (SET_BB_FOOTER): Likewise.
15064 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15066         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15067         for rvalues, and...
15068         (SET_BB_HEAD): New macro, for use as a lvalue.
15069         (BB_END, SET_BB_END): Likewise.
15070         (BB_HEADER, SET_BB_HEADER): Likewise.
15071         (BB_FOOTER, SET_BB_FOOTER): Likewise.
15073         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15074         of BB_* macros into SET_BB_* macros.
15075         (fix_crossing_unconditional_branches): Likewise.
15076         * caller-save.c (save_call_clobbered_regs): Likewise.
15077         (insert_one_insn): Likewise.
15078         * cfgbuild.c (find_bb_boundaries): Likewise.
15079         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15080         (outgoing_edges_match): Likewise.
15081         (try_optimize_cfg): Likewise.
15082         * cfgexpand.c (expand_gimple_cond): Likewise.
15083         (expand_gimple_tailcall): Likewise.
15084         (expand_gimple_basic_block): Likewise.
15085         (construct_exit_block): Likewise.
15086         * cfgrtl.c (delete_insn): Likewise.
15087         (create_basic_block_structure): Likewise.
15088         (rtl_delete_block): Likewise.
15089         (rtl_split_block): Likewise.
15090         (emit_nop_for_unique_locus_between): Likewise.
15091         (rtl_merge_blocks): Likewise.
15092         (block_label): Likewise.
15093         (try_redirect_by_replacing_jump): Likewise.
15094         (emit_barrier_after_bb): Likewise.
15095         (fixup_abnormal_edges): Likewise.
15096         (record_effective_endpoints): Likewise.
15097         (relink_block_chain): Likewise.
15098         (fixup_reorder_chain): Likewise.
15099         (fixup_fallthru_exit_predecessor): Likewise.
15100         (cfg_layout_duplicate_bb): Likewise.
15101         (cfg_layout_split_block): Likewise.
15102         (cfg_layout_delete_block): Likewise.
15103         (cfg_layout_merge_blocks): Likewise.
15104         * combine.c (update_cfg_for_uncondjump): Likewise.
15105         * emit-rtl.c (add_insn_after): Likewise.
15106         (remove_insn): Likewise.
15107         (reorder_insns): Likewise.
15108         (emit_insn_after_1): Likewise.
15109         * haifa-sched.c (get_ebb_head_tail): Likewise.
15110         (restore_other_notes): Likewise.
15111         (move_insn): Likewise.
15112         (sched_extend_bb): Likewise.
15113         (fix_jump_move): Likewise.
15114         * ifcvt.c (noce_process_if_block): Likewise.
15115         (dead_or_predicable): Likewise.
15116         * ira.c (update_equiv_regs): Likewise.
15117         * reg-stack.c (change_stack): Likewise.
15118         * sel-sched-ir.c (sel_move_insn): Likewise.
15119         * sel-sched.c (move_nop_to_previous_block): Likewise.
15121         * config/c6x/c6x.c (hwloop_optimize): Likewise.
15122         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15124 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15126         * rtl.h (for_each_rtx_in_insn): New function.
15127         * rtlanal.c (for_each_rtx_in_insn): Likewise.
15129 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15131         * coretypes.h (class rtx_insn): Add forward declaration.
15133         * rtl.h: Include is-a.h.
15134         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15135         workaround to ensure gengtype knows inheritance is occurring,
15136         whilst continuing to use the pre-existing special-casing for
15137         rtx_def.
15138         (class rtx_insn): New subclass of rtx_def, adding the
15139         invariant that we're dealing with something we can sanely use
15140         INSN_UID, NEXT_INSN, PREV_INSN on.
15141         (is_a_helper <rtx_insn *>::test): New.
15142         (is_a_helper <const rtx_insn *>::test): New.
15144 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15146         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15148 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15150         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15151         comdats as extern.
15153 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15155         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15156         to BUILT_IN_UNREACHABLE.
15158 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
15160         PR target/62011
15161         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15162         New tune flag.
15163         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15164         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15165         (ffs<mode>2): Do not expand with tzcnt for
15166         TARGET_AVOID_FALSE_DEP_FOR_BMI.
15167         (ffssi2_no_cmove): Ditto.
15168         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15169         (ctz<mode>2): New expander.
15170         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15171         (*ctz<mode>2_falsedep): New insn.
15172         (*ctz<mode>2): Rename from ctz<mode>2.
15173         (clz<mode>2_lzcnt): New expander.
15174         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15175         (*clz<mode>2_lzcnt_falsedep): New insn.
15176         (*clz<mode>2): Rename from ctz<mode>2.
15177         (popcount<mode>2): New expander.
15178         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15179         (*popcount<mode>2_falsedep): New insn.
15180         (*popcount<mode>2): Rename from ctz<mode>2.
15181         (*popcount<mode>2_cmp): Remove.
15182         (*popcountsi2_cmp_zext): Ditto.
15184 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
15186         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15187         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15188         * config/microblaze/microblaze.h
15189         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15191 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
15193         PR other/62168
15194         * configure.ac: Set install_gold_as_default to no for
15195         --enable-gold=no.
15196         * configure: Regenerated.
15198 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
15200         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15201         * config.in: Add undef of HAVE_isl.
15202         * configure: Regenerate.
15203         * configure.ac: Add definition of HAVE_isl.
15204         * graphite-blocking.c: Add checking of HAVE_isl.
15205         * graphite-dependences.c: Likewise.
15206         * graphite-interchange.c: Likewise.
15207         * graphite-isl-ast-to-gimple.c: Likewise.
15208         * graphite-optimize-isl.c: Likewise.
15209         * graphite-poly.c: Likewise.
15210         * graphite-scop-detection.c: Likewise.
15211         * graphite-sese-to-poly.c: Likewise.
15212         * graphite.c: Likewise.
15213         * toplev.c: Replace the checking of HAVE_cloog with the checking
15214         of HAVE_isl.
15216 2014-08-18  Richard Biener  <rguenther@suse.de>
15218         PR tree-optimization/62090
15219         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15220         (fold_builtin_3): Do not fold snprintf.
15221         (fold_builtin_4): Likewise.
15222         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15223         moved from builtins.c.
15224         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15225         (gimple_fold_builtin): Do not fold sprintf here.
15227 2014-08-18  Richard Biener  <rguenther@suse.de>
15229         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15230         code to ...
15231         (maybe_canonicalize_mem_ref_addr): ... this function.
15232         (fold_stmt_1): Apply it here before all simplification.
15234 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
15236         PR ipa/61800
15237         * cgraph.h (cgraph_node::create_indirect_edge): Add
15238         compute_indirect_info param.
15239         * cgraph.c (cgraph_node::create_indirect_edge): Compute
15240         indirect_info only when it is required.
15241         * cgraphclones.c (cgraph_clone_edge): Do not recompute
15242         indirect_info fore cloned indirect edge.
15244 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15245             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15246             Anna Tikhonova  <anna.tikhonova@intel.com>
15247             Ilya Tocar  <ilya.tocar@intel.com>
15248             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15249             Ilya Verbin  <ilya.verbin@intel.com>
15250             Kirill Yukhin  <kirill.yukhin@intel.com>
15251             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15253         * config/i386/sse.md
15254         (define_mode_iterator VI8_AVX2_AVX512BW): New.
15255         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15257 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15258             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15259             Anna Tikhonova  <anna.tikhonova@intel.com>
15260             Ilya Tocar  <ilya.tocar@intel.com>
15261             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15262             Ilya Verbin  <ilya.verbin@intel.com>
15263             Kirill Yukhin  <kirill.yukhin@intel.com>
15264             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15266         * config/i386/sse.md
15267         (define_mode_iterator VF1_AVX512VL): New.
15268         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15269         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15270         New.
15272 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15273             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15274             Anna Tikhonova  <anna.tikhonova@intel.com>
15275             Ilya Tocar  <ilya.tocar@intel.com>
15276             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15277             Ilya Verbin  <ilya.verbin@intel.com>
15278             Kirill Yukhin  <kirill.yukhin@intel.com>
15279             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15281         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15282         * config/i386/i386.md
15283         (define_code_iterator any_float): New.
15284         (define_code_attr floatsuffix): New.
15285         * config/i386/sse.md
15286         (define_mode_iterator VF1_128_256VL): New.
15287         (define_mode_iterator VF2_512_256VL): New.
15288         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15289         TARGET check.
15290         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15291         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15292         New.
15293         (define_mode_attr qq2pssuff): New.
15294         (define_mode_attr sselongvecmode): New.
15295         (define_mode_attr sselongvecmodelower): New.
15296         (define_mode_attr sseintvecmode3): New.
15297         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15298         New.
15299         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15300         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15301         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15302         (define_insn "ufloatv2siv2df2<mask_name>"): New.
15304 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15305             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15306             Anna Tikhonova  <anna.tikhonova@intel.com>
15307             Ilya Tocar  <ilya.tocar@intel.com>
15308             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15309             Ilya Verbin  <ilya.verbin@intel.com>
15310             Kirill Yukhin  <kirill.yukhin@intel.com>
15311             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15313         * config/i386/sse.md
15314         (define_mode_iterator VF2_AVX512VL): New.
15315         (define_mode_attr sseintvecmode2): New.
15316         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15317         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15318         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15319         (define_insn
15320         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15321         Ditto.
15322         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15323         Ditto.
15324         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15325         Ditto.
15327 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15328             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15329             Anna Tikhonova  <anna.tikhonova@intel.com>
15330             Ilya Tocar  <ilya.tocar@intel.com>
15331             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15332             Ilya Verbin  <ilya.verbin@intel.com>
15333             Kirill Yukhin  <kirill.yukhin@intel.com>
15334             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15336         * config/i386/i386.md
15337         (define_insn "*movoi_internal_avx"): Add evex version.
15338         (define_insn "*movti_internal"): Ditto.
15340 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15341             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15342             Anna Tikhonova  <anna.tikhonova@intel.com>
15343             Ilya Tocar  <ilya.tocar@intel.com>
15344             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15345             Ilya Verbin  <ilya.verbin@intel.com>
15346             Kirill Yukhin  <kirill.yukhin@intel.com>
15347             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15349         * config/i386/i386.md
15350         (define_attr "isa"): Add avx512dq, noavx512dq.
15351         (define_attr "enabled"): Ditto.
15352         * config/i386/sse.md
15353         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15355 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15356             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15357             Anna Tikhonova  <anna.tikhonova@intel.com>
15358             Ilya Tocar  <ilya.tocar@intel.com>
15359             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15360             Ilya Verbin  <ilya.verbin@intel.com>
15361             Kirill Yukhin  <kirill.yukhin@intel.com>
15362             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15364         * config/i386/i386.c
15365         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15366         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15367         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15368         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15369         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15370         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15371         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15372         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15373         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15374         * config/i386/sse.md
15375         (define_mode_iterator VMOVE): Allow V4TI mode.
15376         (define_mode_iterator V_AVX512VL): New.
15377         (define_mode_iterator V): New handling for AVX512VL.
15378         (define_insn "avx512f_load<mode>_mask"): Delete.
15379         (define_insn "<avx512>_load<mode>_mask"): New.
15380         (define_insn "avx512f_store<mode>_mask"): Delete.
15381         (define_insn "<avx512>_store<mode>_mask"): New.
15384 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
15386         PR sanitizer/62089
15387         * asan.c (instrument_derefs): Fix bitfield check.
15389 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15391         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15392         * config/rs6000/htm.md (ttest): Remove clobber.
15393         * config/rs6000/predicates.md (any_mask_operand): New predicate.
15394         (and_operand): Reformat.
15395         (and_2rld_operand): New predicate.
15396         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15397         parameter.
15398         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15399         parameter.  Handle AND directly.
15400         (rs6000_split_logical_di): Remove last parameter.
15401         (rs6000_split_logical): Remove last parameter.  Remove obsolete
15402         comment.
15403         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15404         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15405         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
15406         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15407         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15408         and 5 anonymous splitters):  Delete.
15409         (and<mode>3): New expander.
15410         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15411         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15412         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15413         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15414         (floatdisf2_internal1): Remove clobbers.
15415         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15416         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15417         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15418         (and<mode>3 for BOOL_128): Remove clobber.
15419         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
15420         rs6000_split_logical.
15421         (*bool<mode>3_internal for BOOL_128): Adjust call of
15422         rs6000_split_logical.
15423         (*boolc<mode>3_internal1 for BOOL_128,
15424         *boolc<mode>3_internal2 for BOOL_128,
15425         *boolcc<mode>3_internal1 for BOOL_128,
15426         *boolcc<mode>3_internal2 for BOOL_128,
15427         *eqv<mode>3_internal1 for BOOL_128,
15428         *eqv<mode>3_internal2 for BOOL_128,
15429         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15430         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15431         clobber.
15432         (*vec_reload_and_reg_<mptrsize>): Delete.
15434 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15436         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15437         and split, *boolccsi3_internal3 and split): Delete.
15438         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15439         *boolccdi3_internal3 and split): Delete.
15440         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15441         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
15443 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15445         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15446         and split, *boolcsi3_internal3 and split): Delete.
15447         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15448         *boolcdi3_internal3 and split): Delete.
15449         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15451 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15453         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15454         <'u'>: Also support printing the low-order 16 bits.
15455         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15456         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15457         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15458         *booldi3_internal3 and split): Delete.
15459         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15460         *bool<mode>3_dot2): New.
15461         (two anonymous define_splits for non_logical_cint_operand): Merge.
15463 2014-08-17  Marek Polacek  <polacek@redhat.com>
15464             Manuel López-Ibáñez  <manu@gcc.gnu.org>
15466         PR c/62059
15467         * diagnostic.c (adjust_line): Add gcc_checking_assert.
15468         (diagnostic_show_locus): Don't print caret diagnostic
15469         if a column is larger than the line_width.
15471 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
15473         * common.opt: Make the ISL AST generator to be the main code generator
15474         of Graphite.
15476 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
15478         * wide-int.h (generic_wide_int): Declare as class instead of struct.
15480 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
15482         PR target/61641
15483         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15484         Declare.
15485         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15486         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15487         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15488         Define.
15489         * config/pa/pa.md (begin_brtab): Delete insn.
15490         (end_brtab): Likewise.
15492 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15494         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15496 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
15498         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15499         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15500         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15501         (get_dynamic_type): Remove.
15502         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15503         (clear_speculation): Bring to ipa-deivrt.h
15504         (get_class_context): Rename to ...
15505         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15506         (contains_type_p): Update.
15507         (get_dynamic_type): Rename to ...
15508         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15509         (possible_polymorphic_call_targets): UPdate.
15510         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15511         * ipa-prop.c (ipa_analyze_call_uses): Update.
15513 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
15515         * doc/invoke.texi (SH options): Document missing processor variant
15516         options.  Remove references to Hitachi.  Undocument deprecated mspace
15517         option.
15519 2014-08-15  Jason Merrill  <jason@redhat.com>
15521         * tree.c (type_hash_canon): Uncomment assert.
15523 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15525         * input.h (in_system_header_at): Add comment.
15527 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15529         PR fortran/44054
15530         * diagnostic.c (build_message_string): Make it extern.
15531         * diagnostic.h (build_message_string): Make it extern.
15533 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
15535         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15536         load/store from/to non-floating class pseudo.
15538 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15540         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15542 2014-08-15  Richard Biener  <rguenther@suse.de>
15544         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15545         (get_constraint_for_ssa_var): Remove dead code.
15546         (get_constraint_for_1): Adjust.
15547         (find_what_var_points_to): Likewise.
15548         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
15550 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
15552         PR target/61878
15553         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15554         (_mm512_mask_cmpge_epu32_mask): Ditto.
15555         (_mm512_cmpge_epu32_mask): Ditto.
15556         (_mm512_mask_cmpge_epi64_mask): Ditto.
15557         (_mm512_cmpge_epi64_mask): Ditto.
15558         (_mm512_mask_cmpge_epu64_mask): Ditto.
15559         (_mm512_cmpge_epu64_mask): Ditto.
15560         (_mm512_mask_cmple_epi32_mask): Ditto.
15561         (_mm512_cmple_epi32_mask): Ditto.
15562         (_mm512_mask_cmple_epu32_mask): Ditto.
15563         (_mm512_cmple_epu32_mask): Ditto.
15564         (_mm512_mask_cmple_epi64_mask): Ditto.
15565         (_mm512_cmple_epi64_mask): Ditto.
15566         (_mm512_mask_cmple_epu64_mask): Ditto.
15567         (_mm512_cmple_epu64_mask): Ditto.
15568         (_mm512_mask_cmplt_epi32_mask): Ditto.
15569         (_mm512_cmplt_epi32_mask): Ditto.
15570         (_mm512_mask_cmplt_epu32_mask): Ditto.
15571         (_mm512_cmplt_epu32_mask): Ditto.
15572         (_mm512_mask_cmplt_epi64_mask): Ditto.
15573         (_mm512_cmplt_epi64_mask): Ditto.
15574         (_mm512_mask_cmplt_epu64_mask): Ditto.
15575         (_mm512_cmplt_epu64_mask): Ditto.
15576         (_mm512_mask_cmpneq_epi32_mask): Ditto.
15577         (_mm512_mask_cmpneq_epu32_mask): Ditto.
15578         (_mm512_cmpneq_epu32_mask): Ditto.
15579         (_mm512_mask_cmpneq_epi64_mask): Ditto.
15580         (_mm512_cmpneq_epi64_mask): Ditto.
15581         (_mm512_mask_cmpneq_epu64_mask): Ditto.
15582         (_mm512_cmpneq_epu64_mask): Ditto.
15583         (_mm512_castpd_ps): Ditto.
15584         (_mm512_castpd_si512): Ditto.
15585         (_mm512_castps_pd): Ditto.
15586         (_mm512_castps_si512): Ditto.
15587         (_mm512_castsi512_ps): Ditto.
15588         (_mm512_castsi512_pd): Ditto.
15589         (_mm512_castpd512_pd128): Ditto.
15590         (_mm512_castps512_ps128): Ditto.
15591         (_mm512_castsi512_si128): Ditto.
15592         (_mm512_castpd512_pd256): Ditto.
15593         (_mm512_castps512_ps256): Ditto.
15594         (_mm512_castsi512_si256): Ditto.
15595         (_mm512_castpd128_pd512): Ditto.
15596         (_mm512_castps128_ps512): Ditto.
15597         (_mm512_castsi128_si512): Ditto.
15598         (_mm512_castpd256_pd512): Ditto.
15599         (_mm512_castps256_ps512): Ditto.
15600         (_mm512_castsi256_si512): Ditto.
15601         (_mm512_cmpeq_epu32_mask): Ditto.
15602         (_mm512_mask_cmpeq_epu32_mask): Ditto.
15603         (_mm512_mask_cmpeq_epu64_mask): Ditto.
15604         (_mm512_cmpeq_epu64_mask): Ditto.
15605         (_mm512_cmpgt_epu32_mask): Ditto.
15606         (_mm512_mask_cmpgt_epu32_mask): Ditto.
15607         (_mm512_mask_cmpgt_epu64_mask): Ditto.
15608         (_mm512_cmpgt_epu64_mask): Ditto.
15609         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15610         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15611         * config/i386/i386.c (enum ix86_builtins): Add
15612         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15613         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15614         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15615         (bdesc_args): Add __builtin_ia32_si512_256si,
15616         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15617         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15618         __builtin_ia32_pd512_pd.
15619         (ix86_expand_args_builtin): Handle new FTYPEs.
15620         * config/i386/sse.md (castmode): Add 512-bit modes.
15621         (AVX512MODE2P): New.
15622         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15623         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15625 2014-08-15  Richard Biener  <rguenther@suse.de>
15627         * fold-const.c (tree_swap_operands_p): Put all constants
15628         last, also strip sign-changing NOPs when considering further
15629         canonicalization.  Canonicalize also when optimizing for size.
15631 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15633         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15634         one_match > zero_match case to just before simple_sequence.
15636 2014-08-15  Richard Biener  <rguenther@suse.de>
15638         * data-streamer.h (streamer_string_index, string_for_index):
15639         Remove.
15640         * data-streamer-out.c (streamer_string_index): Make static.
15641         * data-streamer-in.c (string_for_index): Likewise.
15642         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15643         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15645 2014-08-15  Richard Biener  <rguenther@suse.de>
15647         PR tree-optimization/62031
15648         * tree-data-ref.c (dr_analyze_indices): Do not set
15649         DR_UNCONSTRAINED_BASE.
15650         (dr_may_alias_p): All indirect accesses have to go the
15651         formerly DR_UNCONSTRAINED_BASE path.
15652         * tree-data-ref.h (struct indices): Remove
15653         unconstrained_base member.
15654         (DR_UNCONSTRAINED_BASE): Remove.
15656 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
15658         PR middle-end/62092
15659         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15660         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15661         in OMP_CLAUSE_MAP in some outer target region.
15663 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
15665         * tree-ssa-loop-ivopts.c (ivopts_data): New field
15666         name_expansion_cache.
15667         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15668         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15669         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15670         (difference_cannot_overflow_p): New parameter.  Use affine
15671         expansion for equality check.
15672         (iv_elimination_compare_lt): Pass new argument.
15674 2014-08-14  DJ Delorie  <dj@redhat.com>
15676         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15677         variables to the accumulator.
15679         * config/rl78/predicates.md (rl78_near_mem_operand): New.
15680         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15681         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15682         with far-far moves.
15684         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15685         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15686         (umulqihi3_virt): Likewise.
15687         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15688         (umulqihi3_real): Likewise.
15690         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15692 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
15694         PR tree-optimization/62091
15695         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15696         function_entry_reached.
15697         (walk_aliased_vdefs): Clear it here.
15698         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15700 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
15702         * ipa-utils.h (compare_virtual_tables): Declare.
15703         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15705 2014-08-14  Marek Polacek  <polacek@redhat.com>
15707         DR 458
15708         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15709         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15711 2014-08-14  Tom de Vries  <tom@codesourcery.com>
15713         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15715 2014-08-14  Tom de Vries  <tom@codesourcery.com>
15717         PR rtl-optimization/62004
15718         PR rtl-optimization/62030
15719         * ifcvt.c (rtx_interchangeable_p): New function.
15720         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15721         * emit-rtl.h (mem_attrs_eq_p): Declare.
15723 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
15725         * graphite-scop-detection.c:
15726         Add inclusion of cp-tree.h.
15727         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15728         in case they are pointers to object types
15730 2014-08-14  Richard Biener  <rguenther@suse.de>
15732         * BASE-VER: Change to 5.0.0
15734 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15735             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15736             Anna Tikhonova  <anna.tikhonova@intel.com>
15737             Ilya Tocar  <ilya.tocar@intel.com>
15738             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15739             Ilya Verbin  <ilya.verbin@intel.com>
15740             Kirill Yukhin  <kirill.yukhin@intel.com>
15741             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15743         * config/i386/sse.md (define_mode_attr avx512): New.
15744         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15745         V4DI modes.
15746         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15747         (define_mode_attr ssse3_avx2): Ditto.
15748         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15749         (define_mode_attr avx2_avx512bw): New.
15750         (define_mode_attr ssedoublemodelower): New.
15751         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15752         V32HI, V64QI modes.
15753         (define_mode_attr ssebytemode): Allow V8DI modes.
15754         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15755         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15756         (define_mode_attr ssePSmode2): New.
15757         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15758         V16HI, V32HI modes.
15759         (define_mode_attr dbpsadbwmode): New.
15760         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15761         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15762         (vi8_sse4_1_avx2_avx512): New.
15763         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15764         mode attribute.
15765         (define_mode_attr blendbits): Move before its immediate use.
15767 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15768             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15769             Anna Tikhonova  <anna.tikhonova@intel.com>
15770             Ilya Tocar  <ilya.tocar@intel.com>
15771             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15772             Ilya Verbin  <ilya.verbin@intel.com>
15773             Kirill Yukhin  <kirill.yukhin@intel.com>
15774             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15776         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15777         * config/i386/subst.md
15778         (define_mode_iterator SUBST_V): Update.
15779         (define_mode_iterator SUBST_A): Ditto.
15780         (define_subst_attr "mask_operand7"): New.
15781         (define_subst_attr "mask_operand10"): New.
15782         (define_subst_attr "mask_operand_arg34") : New.
15783         (define_subst_attr "mask_expand_op3"): New.
15784         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15785         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15786         (define_subst_attr "mask_avx512vl_condition"): New.
15787         (define_subst_attr "round_mask_operand4"): Ditto.
15788         (define_subst_attr "round_mask_scalar_op3"): Delete.
15789         (define_subst_attr "round_mask_op4"): New.
15790         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15791         V16SImode.
15792         (define_subst_attr "round_modev8sf_condition"): New.
15793         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15794         <MODE>mode.
15795         (define_subst_attr "round_saeonly_mask_operand4"): New.
15796         (define_subst_attr "round_saeonly_mask_op4"): New.
15797         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15798         V8DImode, V16SImode.
15799         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15800         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15801         (define_subst_attr "mask_expand4_args"): New.
15802         (define_subst "mask_expand4"): New.
15804 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15805             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15806             Anna Tikhonova  <anna.tikhonova@intel.com>
15807             Ilya Tocar  <ilya.tocar@intel.com>
15808             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15809             Ilya Verbin  <ilya.verbin@intel.com>
15810             Kirill Yukhin  <kirill.yukhin@intel.com>
15811             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15813         * config/i386/i386.md
15814         (define_attr "isa"): Add avx512bw,noavx512bw.
15815         (define_attr "enabled"): Ditto.
15816         (define_split): Add 32/64-bit mask logic.
15817         (define_insn "*k<logic>qi"): New.
15818         (define_insn "*k<logic>hi"): New.
15819         (define_insn "*anddi_1"): Add mask version.
15820         (define_insn "*andsi_1"): Ditto.
15821         (define_insn "*<code><mode>_1"): Ditto.
15822         (define_insn "*<code>hi_1"): Ditto.
15823         (define_insn "kxnor<mode>"): New.
15824         (define_insn "kunpcksi"): New.
15825         (define_insn "kunpckdi"): New.
15826         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15827         (define_insn "*one_cmplhi2_1"): Ditto.
15829 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15830             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15831             Anna Tikhonova  <anna.tikhonova@intel.com>
15832             Ilya Tocar  <ilya.tocar@intel.com>
15833             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15834             Ilya Verbin  <ilya.verbin@intel.com>
15835             Kirill Yukhin  <kirill.yukhin@intel.com>
15836             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15838         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15839         V32HImode.
15841 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15842             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15843             Anna Tikhonova  <anna.tikhonova@intel.com>
15844             Ilya Tocar  <ilya.tocar@intel.com>
15845             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15846             Ilya Verbin  <ilya.verbin@intel.com>
15847             Kirill Yukhin  <kirill.yukhin@intel.com>
15848             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15850         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
15851         registers.
15852         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15853         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15854         xmm/ymm16+ when availble.
15855         * config/i386/i386.h
15856         (HARD_REGNO_NREGS): Add mask regs.
15857         (VALID_AVX512F_REG_MODE): Ditto.
15858         (VALID_AVX512F_REG_MODE) : Define.
15859         (VALID_MASK_AVX512BW_MODE): Ditto.
15860         (reg_class) (MASK_REG_P(X)): Define.
15861         * config/i386/i386.md: Do not split long moves with mask register,
15862         use kmovb if avx512bw is availible.
15863         (movdi_internal): Handle mask registers.
15865 2014-08-14  Richard Biener  <rguenther@suse.de>
15867         PR tree-optimization/62081
15868         * tree-ssa-loop.c (pass_fix_loops): New pass.
15869         (pass_tree_loop::gate):  Do not fixup loops here.
15870         * tree-pass.h (make_pass_fix_loops): Declare.
15871         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15873 2014-08-14  Richard Biener  <rguenther@suse.de>
15875         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15876         (type_hash_canon): ... this and avoid 2nd lookup for the add.
15878 2014-08-14  Richard Biener  <rguenther@suse.de>
15880         PR tree-optimization/62090
15881         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15882         (fold_builtin_2): Do not fold sprintf.
15883         (fold_builtin_3): Likewise.
15884         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15885         moved from builtins.c.
15886         (gimple_fold_builtin): Fold sprintf.
15888 2014-08-14  Richard Biener  <rguenther@suse.de>
15890         PR rtl-optimization/62079
15891         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15892         run cleanup_cfg.
15894 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
15896         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15897         current_function_decl.
15899 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
15901         * cgraph.c (cgraph_node::function_symbol): Fix wrong
15902         cgraph_function_node to cgraph_node::function_symbol
15903         refactoring.
15905 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15907         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15908         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15910 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
15912         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15913         warning.
15915 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
15917         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15918         generator.
15920 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
15922         PR target/62025
15923         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15924         any registers that are used in mem_insn.
15926 2014-08-12  Steve Ellcey  <sellcey@mips.com>
15928         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15930 2014-08-12  Steve Ellcey  <sellcey@mips.com>
15932         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15933         (MULTILIB_DIRNAMES): Ditto.
15934         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15935         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15936         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15937         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15938         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15939         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15941 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15943         PR target/61413
15944         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15945         of __ARM_SIZEOF_WCHAR_T.
15947 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15949         PR target/62098
15950         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15951         Remove unnecessary attributes.
15953 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
15955         * internal-fn.c (init_internal_fns): Fix off-by-one.
15957 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15958             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15959             Anna Tikhonova  <anna.tikhonova@intel.com>
15960             Ilya Tocar  <ilya.tocar@intel.com>
15961             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15962             Ilya Verbin  <ilya.verbin@intel.com>
15963             Kirill Yukhin  <kirill.yukhin@intel.com>
15964             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15966         * config/i386/i386.c (standard_sse_constant_opcode): Use
15967         vpxord/vpternlog if avx512 is availible.
15969 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15971         PR middle-end/62103
15972         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15973         bitfields, that is when size doesn't match the size of type or the
15974         size of the constructor.
15976 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15978         * config/rs6000/constraints.md (wh constraint): New constraint,
15979         for FP registers if direct move is available.
15980         (wi constraint): New constraint, for VSX/FP registers that can
15981         handle 64-bit integers.
15982         (wj constraint): New constraint for VSX/FP registers that can
15983         handle 64-bit integers for direct moves.
15984         (wk constraint): New constraint for VSX/FP registers that can
15985         handle 64-bit doubles for direct moves.
15986         (wy constraint): Make documentation match implementation.
15988         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15989         scalar_in_vmx_p field to simplify tests of whether SFmode or
15990         DFmode can go in the Altivec registers.
15991         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15992         (rs6000_setup_reg_addr_masks): Likewise.
15993         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15994         field, and wh/wi/wj/wk constraints.
15995         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15996         the wh/wi/wj/wk constraints.
15997         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15998         upper registers, prefer VSX registers unless the operation is a
15999         memory operation with REG+OFFSET addressing.
16001         * config/rs6000/vsx.md (VSr mode attribute): Add support for
16002         DImode.  Change SFmode to use ww constraint instead of d to allow
16003         SF registers in the upper registers.
16004         (VSr2): Likewise.
16005         (VSr3): Likewise.
16006         (VSr5): Fix thinko in comment.
16007         (VSa): New mode attribute that is an alternative to wa, that
16008         returns the VSX register class that a mode can go in, but may not
16009         be the preferred register class.
16010         (VS_64dm): New mode attribute for appropriate register classes for
16011         referencing 64-bit elements of vectors for direct moves and normal
16012         moves.
16013         (VS_64reg): Likewise.
16014         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16015         register allocator to only registers the data type can handle.
16016         (vsx_le_perm_load_<mode>): Likewise.
16017         (vsx_le_perm_store_<mode>): Likewise.
16018         (vsx_xxpermdi2_le_<mode>): Likewise.
16019         (vsx_xxpermdi4_le_<mode>): Likewise.
16020         (vsx_lxvd2x2_le_<mode>): Likewise.
16021         (vsx_lxvd2x4_le_<mode>): Likewise.
16022         (vsx_stxvd2x2_le_<mode>): Likewise.
16023         (vsx_add<mode>3): Likewise.
16024         (vsx_sub<mode>3): Likewise.
16025         (vsx_mul<mode>3): Likewise.
16026         (vsx_div<mode>3): Likewise.
16027         (vsx_tdiv<mode>3_internal): Likewise.
16028         (vsx_fre<mode>2): Likewise.
16029         (vsx_neg<mode>2): Likewise.
16030         (vsx_abs<mode>2): Likewise.
16031         (vsx_nabs<mode>2): Likewise.
16032         (vsx_smax<mode>3): Likewise.
16033         (vsx_smin<mode>3): Likewise.
16034         (vsx_sqrt<mode>2): Likewise.
16035         (vsx_rsqrte<mode>2): Likewise.
16036         (vsx_tsqrt<mode>2_internal): Likewise.
16037         (vsx_fms<mode>4): Likewise.
16038         (vsx_nfma<mode>4): Likewise.
16039         (vsx_eq<mode>): Likewise.
16040         (vsx_gt<mode>): Likewise.
16041         (vsx_ge<mode>): Likewise.
16042         (vsx_eq<mode>_p): Likewise.
16043         (vsx_gt<mode>_p): Likewise.
16044         (vsx_ge<mode>_p): Likewise.
16045         (vsx_xxsel<mode>): Likewise.
16046         (vsx_xxsel<mode>_uns): Likewise.
16047         (vsx_copysign<mode>3): Likewise.
16048         (vsx_float<VSi><mode>2): Likewise.
16049         (vsx_floatuns<VSi><mode>2): Likewise.
16050         (vsx_fix_trunc<mode><VSi>2): Likewise.
16051         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16052         (vsx_x<VSv>r<VSs>i): Likewise.
16053         (vsx_x<VSv>r<VSs>ic): Likewise.
16054         (vsx_btrunc<mode>2): Likewise.
16055         (vsx_b2trunc<mode>2): Likewise.
16056         (vsx_floor<mode>2): Likewise.
16057         (vsx_ceil<mode>2): Likewise.
16058         (vsx_<VS_spdp_insn>): Likewise.
16059         (vsx_xscvspdp): Likewise.
16060         (vsx_xvcvspuxds): Likewise.
16061         (vsx_float_fix_<mode>2): Likewise.
16062         (vsx_set_<mode>): Likewise.
16063         (vsx_extract_<mode>_internal1): Likewise.
16064         (vsx_extract_<mode>_internal2): Likewise.
16065         (vsx_extract_<mode>_load): Likewise.
16066         (vsx_extract_<mode>_store): Likewise.
16067         (vsx_splat_<mode>): Likewise.
16068         (vsx_xxspltw_<mode>): Likewise.
16069         (vsx_xxspltw_<mode>_direct): Likewise.
16070         (vsx_xxmrghw_<mode>): Likewise.
16071         (vsx_xxmrglw_<mode>): Likewise.
16072         (vsx_xxsldwi_<mode>): Likewise.
16073         (vsx_xscvdpspn): Tighten constraints to only use register classes
16074         the types use.
16075         (vsx_xscvspdpn): Likewise.
16076         (vsx_xscvdpspn_scalar): Likewise.
16078         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16079         wj, and wk constraints.
16080         (GPR_REG_CLASS_P): New helper macro for register classes targeting
16081         general purpose registers.
16083         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16084         direct moves.
16085         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16086         DImode instead of wm.  Use wk constraint for direct move of DFmode
16087         instead of wm.
16088         (extendsidi2_lfiwax): Likewise.
16089         (lfiwax): Likewise.
16090         (lfiwzx): Likewise.
16091         (movdi_internal64): Likewise.
16093         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16094         wk constraints. Make the wy constraint documentation match them
16095         implementation.
16097 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
16099         Replacement of isl_int by isl_val
16100         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16101         (compute_bounds_for_param): use isl_val instead of isl_int
16102         (compute_bounds_for_loop): likewise
16103         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16104         (build_linearized_memory_access): use isl_val instead of isl_int
16105         (pdr_stride_in_loop): likewise
16106         * graphite-optimize-isl.c:
16107         (getPrevectorMap): use isl_val instead of isl_int
16108         * graphite-poly.c:
16109         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16110         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16111         (extern the_isl_ctx): declare
16112         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16113         (extract_affine_gmp): likewise
16114         (wrap): likewise
16115         (build_loop_iteration_domains): likewise
16116         (add_param_constraints): likewise
16118 2014-08-11  Richard Biener  <rguenther@suse.de>
16120         PR tree-optimization/62075
16121         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16122         handle uses in patterns.
16124 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16125             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16126             Anna Tikhonova  <anna.tikhonova@intel.com>
16127             Ilya Tocar  <ilya.tocar@intel.com>
16128             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16129             Ilya Verbin  <ilya.verbin@intel.com>
16130             Kirill Yukhin  <kirill.yukhin@intel.com>
16131             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16133         * common/config/i386/i386-common.c
16134         (OPTION_MASK_ISA_AVX512VL_SET): Define.
16135         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16136         (ix86_handle_option): Handle OPT_mavx512vl.
16137         * config/i386/cpuid.h (bit_AVX512VL): Define.
16138         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16139         set -mavx512vl accordingly.
16140         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16141         OPTION_MASK_ISA_AVX512VL.
16142         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16143         (ix86_option_override_internal): Define PTA_AVX512VL, handle
16144         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16145         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16146         * config/i386/i386.h (TARGET_AVX512VL): Define.
16147         (TARGET_AVX512VL_P(x)): Ditto.
16148         * config/i386/i386.opt: Add mavx512vl.
16150 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
16152         PR tree-optimization/62073
16153         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16154         a basic block.
16156 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16157             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16158             Anna Tikhonova  <anna.tikhonova@intel.com>
16159             Ilya Tocar  <ilya.tocar@intel.com>
16160             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16161             Ilya Verbin  <ilya.verbin@intel.com>
16162             Kirill Yukhin  <kirill.yukhin@intel.com>
16163             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16165         * common/config/i386/i386-common.c
16166         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16167         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16168         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16169         (ix86_handle_option): Handle OPT_mavx512bw.
16170         * config/i386/cpuid.h (bit_AVX512BW): Define.
16171         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16172         set -mavx512bw accordingly.
16173         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16174         OPTION_MASK_ISA_AVX512BW.
16175         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16176         (ix86_option_override_internal): Define PTA_AVX512BW, handle
16177         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16178         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16179         * config/i386/i386.h (TARGET_AVX512BW): Define.
16180         (TARGET_AVX512BW_P(x)): Ditto.
16181         * config/i386/i386.opt: Add mavx512bw.
16183 2014-08-11  Richard Biener  <rguenther@suse.de>
16185         PR tree-optimization/62070
16186         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16187         Remove SSA checking.
16189 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16191         * asan.c (asan_check_flags): New enum.
16192         (build_check_stmt_with_calls): Removed function.
16193         (build_check_stmt): Split inlining logic to
16194         asan_expand_check_ifn.
16195         (instrument_derefs): Rename parameter.
16196         (instrument_mem_region_access): Rename parameter.
16197         (instrument_strlen_call): Likewise.
16198         (asan_expand_check_ifn): New function.
16199         (asan_instrument): Remove old code.
16200         (pass_sanopt::execute): Change handling of
16201         asan-instrumentation-with-call-threshold.
16202         (asan_clear_shadow): Fix formatting.
16203         (asan_function_start): Likewise.
16204         (asan_emit_stack_protection): Likewise.
16205         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16206         Update description.
16207         * internal-fn.c (expand_ASAN_CHECK): New function.
16208         * internal-fn.def (ASAN_CHECK): New internal function.
16209         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16210         Update description.
16211         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16212         * tree.c: Small comment fix.
16214 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16216         * gimple.c (gimple_call_fnspec): Support internal functions.
16217         (gimple_call_return_flags): Use const.
16218         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16219         * internal-fn.def: Add fnspec information.
16220         * internal-fn.h (internal_fn_fnspec): New function.
16221         (init_internal_fns): Declare new function.
16222         * internal-fn.c (internal_fn_fnspec_array): New global variable.
16223         (init_internal_fns): New function.
16224         * tree-core.h: Update macro call.
16225         * tree.c (build_common_builtin_nodes): Initialize internal fns.
16227 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
16229         * lto-streamer.h (struct output_block::symbol): Change from
16230         struct symtab_node to plain symtab_node.
16231         (referenced_from_this_partition_p): Change first parameter
16232         from struct symtab_node to plain symtab_node.
16234 2014-08-10  Marek Polacek  <polacek@redhat.com>
16236         PR c/51849
16237         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16239 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
16241         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16242         DECL correctly; do not give up on types in static storage.
16244 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
16246         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16248 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
16250         * graphite-isl-ast-to-gimple.c:
16251         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16253         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16255 2014-08-08  Guozhi Wei  <carrot@google.com>
16257         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16259 2014-08-08  Cary Coutant  <ccoutant@google.com>
16261         * dwarf2out.c (get_skeleton_type_unit): Remove.
16262         (output_skeleton_debug_sections): Remove skeleton type units.
16263         (output_comdat_type_unit): Likewise.
16264         (dwarf2out_finish): Likewise.
16266 2014-08-07  Yi Yang  <ahyangyi@google.com>
16268         * predict.c (expr_expected_value_1): Remove the redundant assignment.
16270 2014-08-08  Richard Biener  <rguenther@suse.de>
16272         * lto-streamer.h (struct lto_input_block): Make it a class
16273         with a constructor.
16274         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16275         (struct lto_function_header, struct lto_simple_header,
16276         struct lto_simple_header_with_strings,
16277         struct lto_decl_header, struct lto_function_header): Make
16278         a simple inheritance hieararchy.  Remove unused fields.
16279         (struct lto_asm_header): Remove.
16280         * lto-streamer-out.c (produce_asm): Adjust.
16281         (lto_output_toplevel_asms): Likewise.
16282         (produce_asm_for_decls): Likewise.
16283         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16284         * data-streamer-in.c (string_for_index): Likewise.
16285         * ipa-inline-analysis.c (inline_read_section): Likewise.
16286         * ipa-prop.c (ipa_prop_read_section): Likewise.
16287         (read_replacements_section): Likewise.
16288         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16289         * lto-section-in.c (lto_create_simple_input_block): Likewise.
16290         (lto_destroy_simple_input_block): Likewise.
16291         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16292         (lto_input_toplevel_asms): Likewise.
16294 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16295             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16296             Anna Tikhonova  <anna.tikhonova@intel.com>
16297             Ilya Tocar  <ilya.tocar@intel.com>
16298             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16299             Ilya Verbin  <ilya.verbin@intel.com>
16300             Kirill Yukhin  <kirill.yukhin@intel.com>
16301             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16303         * common/config/i386/i386-common.c
16304         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16305         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16306         (ix86_handle_option): Handle OPT_mavx512dq.
16307         * config/i386/cpuid.h (bit_AVX512DQ): Define.
16308         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16309         set -mavx512dq accordingly.
16310         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16311         OPTION_MASK_ISA_AVX512DQ.
16312         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16313         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16314         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16315         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16316         * config/i386/i386.h (TARGET_AVX512DQ): Define.
16317         (TARGET_AVX512DQ_P(x)): Ditto.
16318         * config/i386/i386.opt: Add mavx512dq.
16320 2014-08-08  Richard Biener  <rguenther@suse.de>
16322         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16323         target_percent, target_percent_s): Export.
16324         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16325         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16326         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16327         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16328         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16329         Move to gimple-fold.c.
16330         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16331         strcat and strcpy.
16332         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16333         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16334         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16335         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16336         (rewrite_call_expr_array): Remove.
16337         (fold_builtin_sprintf_chk): Likewise.
16338         (fold_builtin_snprintf_chk): Likewise.
16339         (fold_builtin_varargs): Remove handling of sprintf_chk,
16340         vsprintf_chk, snprintf_chk and vsnprintf_chk.
16341         (gimple_fold_builtin_sprintf_chk): Remove.
16342         (gimple_fold_builtin_snprintf_chk): Likewise.
16343         (gimple_fold_builtin_varargs): Likewise.
16344         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16345         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16346         * gimple.c (gimple_seq_add_seq_without_update): New function.
16347         * gimple.h (gimple_seq_add_seq_without_update): Declare.
16348         * gimple-fold.c: Include output.h.
16349         (gsi_replace_with_seq_vops): New function, split out from ...
16350         (gimplify_and_update_call_from_tree): ... here.
16351         (replace_call_with_value): New function.
16352         (replace_call_with_call_and_fold): Likewise.
16353         (var_decl_component_p): Moved from builtins.c.
16354         (gimple_fold_builtin_memory_op): Moved from builtins.c
16355         fold_builtin_memory_op and rewritten to GIMPLE.
16356         (gimple_fold_builtin_memset): Likewise.
16357         (gimple_fold_builtin_strcpy): Likewise.
16358         (gimple_fold_builtin_strncpy): Likewise.
16359         (gimple_fold_builtin_strcat): Likewise.
16360         (gimple_fold_builtin_fputs): Likewise.
16361         (gimple_fold_builtin_memory_chk): Likewise.
16362         (gimple_fold_builtin_stxcpy_chk): Likewise.
16363         (gimple_fold_builtin_stxncpy_chk): Likewise.
16364         (gimple_fold_builtin_snprintf_chk): Likewise.
16365         (gimple_fold_builtin_sprintf_chk): Likewise.
16366         (gimple_fold_builtin_strlen): New function.
16367         (gimple_fold_builtin_with_strlen): New function split out from
16368         gimple_fold_builtin.
16369         (gimple_fold_builtin): Change signature and handle
16370         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16371         here.  Call gimple_fold_builtin_with_strlen.
16372         (gimple_fold_call): Adjust.
16374 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16376         * calls.c (precompute_arguments): Check
16377         promoted_for_signed_and_unsigned_p and set the promoted mode.
16378         (promoted_for_signed_and_unsigned_p): New function.
16379         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16380         and set the promoted mode.
16381         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16382         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16383         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16386 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16388         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16389         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16390         (expand_call): Likewise.
16391         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16392         to get promoted mode.
16393         * combine.c (record_promoted_value): Skip > 0 comparison with
16394         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16395         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16396         of SUBREG_PROMOTED_UNSIGNED_P.
16397         (convert_modes): Likewise.
16398         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16399         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16400         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16401         SUBREG_PROMOTED_UNSIGNED_SET.
16402         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16403         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16404         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16405         SUBREG_PROMOTED_SET.
16406         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16407         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16408         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16409         of SUBREG_PROMOTED_UNSIGNED_P.
16410         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16411         (SUBREG_PROMOTED_SET): New define.
16412         (SUBREG_PROMOTED_GET): Likewise.
16413         (SUBREG_PROMOTED_SIGN): Likewise.
16414         (SUBREG_PROMOTED_SIGNED_P): Likewise.
16415         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16416         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16417         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16418         instead of SUBREG_PROMOTED_UNSIGNED_GET.
16419         (nonzero_bits1): Skip > 0 comparison with the results as
16420         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16421         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16422         of !SUBREG_PROMOTED_UNSIGNED_P.
16423         * simplify-rtx.c (simplify_unary_operation_1): Use new
16424         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16425         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16426         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16427         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16429 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
16431         * ipa-devirt.c: Include gimple-pretty-print.h
16432         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16433         further tests.
16434         (decl_maybe_in_construction_p): Fix conditional on cdtor check
16435         (get_polymorphic_call_info): Fix return value
16436         (type_change_info): New sturcture based on ipa-prop
16437         variant.
16438         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16439         based on ipa-prop variant.
16440         (extr_type_from_vtbl_ptr_store): New function
16441         based on ipa-prop variant.
16442         (record_known_type): New function.
16443         (check_stmt_for_type_change): New function.
16444         (get_dynamic_type): New function.
16445         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16446         * tree-ssa-pre.c: ipa-utils.h
16447         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16448         machinery; sanity check with ipa-prop devirtualization.
16449         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16450         polymorphic flag.
16452 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16454         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16455         * alias.c, cfgexpand.c, cgraphbuild.c,
16456         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16457         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16458         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16459         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16460         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16461         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16462         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16463         dse.c, except.c, gengtype.c, gimple-expr.c,
16464         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16465         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16466         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16467         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16468         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16469         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16470         pointer-set.h.
16471         * pointer-set.c: Remove file.
16472         * pointer-set.h: Remove file.
16474 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16476         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16477         * config/arm/types.md (f_sels, f_seld): Delete.
16479 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16481         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16482         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16483         (aarch64_movdi_<mode>high): Likewise.
16484         (aarch64_mov<mode>high_di): Likewise.
16485         (aarch64_movdi_<mode>low): Likewise.
16486         (aarch64_mov<mode>low_di): Likewise.
16487         (aarch64_movtilow_tilow): Likewise.
16488         Add comment explaining usage of fp,simd attributes and of
16489         TARGET_FLOAT and TARGET_SIMD.
16491 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
16492             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16494         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16495         Use MOVN when one of the half-words is 0xffff.
16497 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16499         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16501 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16503         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
16504         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16505         (rfs_str): String corresponding to RFS_* constants.
16506         (rank_for_schedule_stats_t): New typedef.
16507         (rank_for_schedule_stats): New static variable.
16508         (rfs_result): New static function.
16509         (rank_for_schedule): Track statistics for deciding heuristics.
16510         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16511         static functions.
16512         (ready_sort): Use them for debug printouts.
16513         (schedule_block): Init statistics state.  Print statistics on
16514         rank_for_schedule decisions.
16516 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16518         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16520 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
16522         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16523         constraint.
16525 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16527         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16528         function to not conflict.
16529         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16530         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16531         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16532         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16533         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16534         of pointer_map.
16536 2014-08-07  Marek Polacek  <polacek@redhat.com>
16538         * fold-const.c (fold_binary_loc): Add folding of
16539         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16541 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
16543         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16544         instead of type size.
16545         (ASM_FINISH_DECLARE_OBJECT): Likewise.
16547 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16549         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16550         (*thumb1_movqi_insn): Likewise.
16551         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16553 2014-08-07  Tom de Vries  <tom@codesourcery.com>
16555         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16556         (glibc_2_11_or_earlier): Remove effective-target keywords.
16558 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
16560         * config/arm/arm.c (bdesc_2arg): Fix typo.
16561         (arm_atomic_assign_expand_fenv): Remove The default implementation.
16563 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16565         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16567 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
16569         PR debug/61923
16570         * haifa-sched.c (advance_one_cycle): Fix dump.
16571         (schedule_block): Don't advance cycle if we are already at the
16572         beginning of the cycle.
16574 2014-08-06  Martin Jambor  <mjambor@suse.cz>
16576         PR ipa/61393
16577         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16579 2014-08-06  Richard Biener  <rguenther@suse.de>
16581         PR lto/62034
16582         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16583         SCCs here.
16584         (lto_input_tree): Pop SCCs here.
16586 2014-08-06  Richard Biener  <rguenther@suse.de>
16588         PR tree-optimization/61320
16589         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16590         handle misaligned loads.
16592 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
16594         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16595         (aarch64_expand_vec_perm_const): Check for dup before zip.
16597 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16599         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16600         CONST_INT_P instead of GET_CODE and compare.
16601         (aarch64_select_cc_mode): Likewise.
16602         (aarch64_print_operand): Likewise.
16603         (aarch64_rtx_costs): Likewise.
16604         (aarch64_simd_valid_immediate): Likewise.
16605         (aarch64_simd_check_vect_par_cnst_half): Likewise.
16606         (aarch64_simd_emit_pair_result_insn): Likewise.
16608 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
16610         * gdbhooks.py (find_gcc_source_dir): New helper function.
16611         (class PassNames): New class, locating and parsing passes.def.
16612         (class BreakOnPass): New command "break-on-pass".
16614 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
16616         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16617         getting olde.
16619 2014-08-05  Richard Biener  <rguenther@suse.de>
16621         PR rtl-optimization/61672
16622         * emit-rtl.h (mem_attrs_eq_p): Declare.
16623         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
16624         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16625         * cfgcleanup.c (merge_memattrs): Likewise.
16626         Include emit-rtl.h.
16628 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16630         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16631         rather than singleton vectors.
16632         (vqdmlsls_lane_s32): Likewise.
16634 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16636         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16637         Use VSDQ_HSI mode iterator.
16638         (aarch64_sqrdmulh_laneq<mode>): Likewise.
16639         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16640         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16641         Use BUILTIN_VDQHS macro.
16642         (sqrdmulh_laneq): Likewise.
16643         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16644         (vqdmlals_laneq_s32): Likewise.
16645         (vqdmlslh_laneq_s16): Likewise.
16646         (vqdmlsls_laneq_s32): Likewise.
16647         (vqdmulhh_laneq_s16): Likewise.
16648         (vqdmulhs_laneq_s32): Likewise.
16649         (vqrdmulhh_laneq_s16): Likewise.
16650         (vqrdmulhs_laneq_s32): Likewise.
16652 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16654         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16655         (vmuld_laneq_f64): Likewise.
16656         (vmuls_laneq_f32): Likewise.
16657         (vmul_n_f64): Likewise.
16658         (vmuld_lane_f64): Reimplement in C.
16659         (vmuls_lane_f32): Likewise.
16661 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16663         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16664         to reservation.
16665         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16667 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16669         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16670         (rbitsi2): Likewise.
16671         (*arm_rev): Set predicable and predicable_short_it attributes.
16673 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16675         * convert.c (convert_to_integer): Guard transformation to lrint by
16676         -fno-math-errno.
16678 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
16680         * config/aarch64/aarch64-builtins.c
16681         (aarch64_simd_builtin_type_mode): Delete.
16682         (v8qi_UP): Remap to V8QImode.
16683         (v4hi_UP): Remap to V4HImode.
16684         (v2si_UP): Remap to V2SImode.
16685         (v2sf_UP): Remap to V2SFmode.
16686         (v1df_UP): Remap to V1DFmode.
16687         (di_UP): Remap to DImode.
16688         (df_UP): Remap to DFmode.
16689         (v16qi_UP):V16QImode.
16690         (v8hi_UP): Remap to V8HImode.
16691         (v4si_UP): Remap to V4SImode.
16692         (v4sf_UP): Remap to V4SFmode.
16693         (v2di_UP): Remap to V2DImode.
16694         (v2df_UP): Remap to V2DFmode.
16695         (ti_UP): Remap to TImode.
16696         (ei_UP): Remap to EImode.
16697         (oi_UP): Remap to OImode.
16698         (ci_UP): Map to CImode.
16699         (xi_UP): Remap to XImode.
16700         (si_UP): Remap to SImode.
16701         (sf_UP): Remap to SFmode.
16702         (hi_UP): Remap to HImode.
16703         (qi_UP): Remap to QImode.
16704         (aarch64_simd_builtin_datum): Make mode a machine_mode.
16705         (VAR1): Build builtin name.
16706         (aarch64_init_simd_builtins): Remove dead code.
16708 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
16710         * graphite-isl-ast-to-gimple.c:
16711         (set_options): New function.
16712         (scop_to_isl_ast): Add calling of set_options.
16714 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
16716         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16717         (analyze_iv_to_split_insn): Don't initialize them.
16718         (get_ivts_expr): Removed.
16719         (allocate_basic_variable, insert_base_initialization): Use
16720         SET_SRC instead of *get_ivts_expr.
16721         (split_iv): Use &SET_SRC instead of get_ivts_expr.
16723 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
16725         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16726         (translate_isl_ast_for_loop): Add checking of the
16727         flag_loop_parallelize_all.
16728         (ast_build_before_for): New function.
16729         (scop_to_isl_ast): Add checking of the
16730         flag_loop_parallelize_all.
16731         * graphite-dependences.c: Move the defenition of the
16732         scop_get_dependences from graphite-optimize-isl.c to this file.
16733         (apply_schedule_on_deps): Add checking of the ux's emptiness.
16734         (carries_deps): Add checking of the x's value.
16735         * graphite-optimize-isl.c: Move the defenition of the
16736         scop_get_dependences to graphite-dependences.c.
16737         * graphite-poly.h: Add declarations of scop_get_dependences
16738         and carries_deps.
16740 2014-08-04  Rohit  <rohitarulraj@freescale.com>
16742         PR target/60102
16743         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16744         names.
16745         (alt_reg_names): Likewise.
16746         (rs6000_dwarf_register_span): For SPE high registers, replace
16747         dwarf register numbers with GCC hard register numbers.
16748         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16749         (rs6000_dbx_register_number): For SPE high registers, return dwarf
16750         register number for the corresponding GCC hard register number.
16751         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16752         newly added GCC hard register numbers for SPE high registers.
16753         (DWARF_FRAME_REGISTERS):  Likewise.
16754         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16755         (DWARF_FRAME_REGNUM): Likewise.
16756         (FIXED_REGISTERS): Likewise.
16757         (CALL_USED_REGISTERS): Likewise.
16758         (CALL_REALLY_USED_REGISTERS): Likewise.
16759         (REG_ALLOC_ORDER): Likewise.
16760         (enum reg_class): Likewise.
16761         (REG_CLASS_NAMES): Likewise.
16762         (REG_CLASS_CONTENTS): Likewise.
16763         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16765 2014-08-04  Richard Biener  <rguenther@suse.de>
16767         * gimple-fold.h (gimple_fold_builtin): Remove.
16768         * gimple-fold.c (gimple_fold_builtin): Make static.
16769         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16770         fold_stmt, not gimple_fold_builtin.
16772 2014-08-04  Martin Liska <mliska@suse.cz>
16774         * cgraph.h (csi_end_p): Removed.
16775         (csi_next): Likewise.
16776         (csi_node): Likewise.
16777         (csi_start): Likewise.
16778         (cgraph_node_in_set_p): Likewise.
16779         (cgraph_node_set_size): Likewise.
16780         (vsi_end_p): Likewise.
16781         (vsi_next): Likewise.
16782         (vsi_node): Likewise.
16783         (vsi_start): Likewise.
16784         (varpool_node_set_size): Likewise.
16785         (cgraph_node_set_nonempty_p): Likewise.
16786         (varpool_node_set_nonempty_p): Likewise.
16787         * cgraphunit.c (cgraph_process_new_functions): vec replaces
16788         cgraph_node_set.
16789         * ipa-inline-transform.c: Likewise.
16790         * ipa-utils.c (cgraph_node_set_new): Removed.
16791         (cgraph_node_set_add): Likewise.
16792         (cgraph_node_set_remove): Likewise.
16793         (cgraph_node_set_find): Likewise.
16794         (dump_cgraph_node_set): Likewise.
16795         (debug_cgraph_node_set): Likewise.
16796         (free_cgraph_node_set): Likewise.
16797         (varpool_node_set_new): Likewise.
16798         (varpool_node_set_add): Likewise.
16799         (varpool_node_set_remove): Likewise.
16800         (varpool_node_set_find): Likewise.
16801         (dump_varpool_node_set): Likewise.
16802         (free_varpool_node_set): Likewise.
16803         (debug_varpool_node_set): Likewise.
16804         * tree-emutls.c (struct tls_var_data):
16805         (emutls_index): Removed.
16806         (emutls_decl): Likewise.
16807         (gen_emutls_addr): Function implementation uses newly added
16808         hash_map<varpool_node *, tls_var_data>.
16809         (clear_access_vars): Likewise.
16810         (create_emultls_var): Likewise.
16811         (ipa_lower_emutls): Likewise.
16812         (reset_access): New function.
16814 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
16816         * config/i386/i386.c (ix86_option_override_internal): Add
16817         PTA_RDRND and PTA_MOVBE for bdver4.
16819 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16820             James Greenhalgh  <james.greenhalgh@arm.com>
16822         * doc/md.texi (clrsb): Document.
16823         (clz): Change reference to x into operand 1.
16824         (ctz): Likewise.
16825         (popcount): Likewise.
16827 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16829         PR target/61713
16830         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16831         move to subtarget in serial version if result is ignored.
16833 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16834             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16836         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16837         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
16838         (sched_analyze_insn): Update use of try_group_insn to
16839         sched_macro_fuse_insns.
16840         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16841         arguments that are not conditional jumps.
16843 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
16845         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16846         family information. Handle BTVER2 cpu with cpuid family value.
16848 2014-08-04  Tom de Vries  <tom@codesourcery.com>
16850         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16851         (glibc_2_11_or_earlier): Document effective-target keywords.
16853 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
16855         * ipa-devirt.c (odr_type_warn_count): Add type.
16856         (possible_polymorphic_call_targets): Set it.
16857         (ipa_devirt): Use it.
16859 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
16861         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16862         Document.
16863         * ipa-devirt.c: Include hash-map.h
16864         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16865         (clear_speculation): Break out of ...
16866         (get_class_context): ... here; speed up handling obviously useless
16867         speculations.
16868         (odr_type_warn_count, decl_warn_count): New structures.
16869         (final_warning_record): New structure.
16870         (final_warning_records): New static variable.
16871         (possible_polymorphic_call_targets): Cleanup handling of
16872         speculative info; do not build speculation when user do not care;
16873         record info about warnings when asked for.
16874         (add_decl_warning): New function.
16875         (type_warning_cmp): New function.
16876         (decl_warning_cmp): New function.
16877         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16878         (gate): Enable pass when warnings are requested.
16879         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16880         options.
16882 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
16884         * hash-map.h (default_hashmap_traits::mark_key_deleted):
16885         Fix cast.
16886         (hash_map::remove): New method.
16887         (hash_map::traverse): New method.
16888         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16889         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16890         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16891         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16892         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16893         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16894         pointer_map.
16896 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
16898         * hash-set.h: new File.
16899         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16900         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16901         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16902         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16903         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16904         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16905         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16906         varpool.c: Use hash_set instead of pointer_set.
16908 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
16910         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16912 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16914         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16915         for frame access when strict_p is false.
16917 2014-08-01  Renlin Li <renlin.li@arm.com>
16918 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16920         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16921         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16922         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16923         Declaration.
16924         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16925         predicate.
16926         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16927         aarch64_mem_pair_offset.
16929 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16931         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16932         offset.
16933         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16934         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16936 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
16938         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16940 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
16942         PR regression/61510
16943         * cgraphunit.c (analyze_functions): Use get_create rather than get
16944         for decls which are clones of abstract functions.
16946 2014-08-01  Martin Liska  <mliska@suse.cz>
16948         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16949         * ipa-prop.h (count_formal_params): Global function created from static.
16950         * ipa-prop.c (count_formal_params): Likewise.
16951         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16952         profiles for semantically equivalent functions.
16953         * passes.c (do_per_function): If we load body of a function
16954         during WPA, this condition should behave same.
16955         * varpool.c (ctor_for_folding): More tolerant assert for variable
16956         aliases created during WPA.
16958 2014-08-01  Martin Liska  <mliska@suse.cz>
16960         * doc/invoke.texi (Options That Control Optimization): Documentation
16961         for -foptimize-strlen introduced. Optimization levels default options
16962         fixed.
16964 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16966         * opts.c (common_handle_option): Handle -fsanitize=alignment.
16967         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16968         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16969         type to bool.
16970         * stor-layout.h (min_align_of_type): New prototype.
16971         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16972         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
16973         check.
16974         * ubsan.c: Include builtins.h.
16975         (ubsan_expand_bounds_ifn): Change return type to bool,
16976         always return true.
16977         (ubsan_expand_null_ifn): Change return type to bool, change
16978         argument to gimple_stmt_iterator *.  Handle both null and alignment
16979         sanitization, take type from ckind argument's type rather than
16980         first argument.
16981         (instrument_member_call): Removed.
16982         (instrument_mem_ref): Remove t argument, add mem and base arguments.
16983         Handle both null and alignment sanitization, don't say whole
16984         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
16985         call instead of 2 argument.
16986         (instrument_null): Adjust instrument_mem_ref caller.  Don't
16987         instrument calls here.
16988         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16989         like SANITIZE_NULL.
16990         * stor-layout.c (min_align_of_type): New function.
16991         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16992         Or it into SANITIZE_UNDEFINED.
16993         * doc/invoke.texi (-fsanitize=alignment): Document.
16995 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16997         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16999 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17001         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17002         inchash.
17003         (vn_reference_compute_hash): Dito.
17004         (vn_nary_op_compute_hash): Dito.
17005         (vn_phi_compute_hash): Dito.
17006         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17008 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17010         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17011         Rename to inchash:add_expr_commutative. Convert to inchash.
17012         (iterative_hash_hashable_expr): Rename to
17013         inchash:add_hashable_expr. Convert to inchash.
17014         (avail_expr_hash): Dito.
17016 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17018         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17019         Convert to inchash.
17021 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17023         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17025 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17027         * Makefile.in (OBJS): Add rtlhash.o
17028         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17029         (loc_checksum): Dito.
17030         (loc_checksum_ordered): Dito.
17031         (hash_loc_operands): Dito.
17032         (hash_locs): Dito.
17033         (hash_loc_list): Dito.
17034         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17035         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17036         * rtlhash.c: New file.
17037         * rtlhash.h: New file.
17039 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17041         * inchash.h (inchash): Change inchash class to namespace.
17042         (class hash): ... Rename from inchash.
17043         (add_object): Move from macro to class template.
17044         * lto-streamer-out.c (hash_tree): Change inchash
17045         to inchash::hash.
17046         * tree.c (build_type_attribute_qual_variant): Dito.
17047         (type_hash_list): Dito.
17048         (attribute_hash_list): Dito.
17049         (iterative_hstate_expr): Rename to inchash::add_expr
17050         (build_range_type_1): Change inchash to inchash::hash
17051         and use hash::add_expr.
17052         (build_array_type_1): Dito.
17053         (build_function_type): Dito
17054         (build_method_type_directly): Dito.
17055         (build_offset_type): Dito.
17056         (build_complex_type): Dito.
17057         (make_vector_type): Dito.
17058         * tree.h (iterative_hash_expr): Dito.
17060 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
17062         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17064 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17066         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17067         correct alphabetical position.
17068         (vpaddd_f64): Rewrite using builtins.
17069         (vpaddd_s64): Move to correct alphabetical position.
17070         (vpaddd_u64): New.
17072 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
17074         PR target/61844
17075         * config/sh/sh.c (sh_legitimate_address_p,
17076         sh_legitimize_reload_address): Handle reg+reg address modes when
17077         ALLOW_INDEXED_ADDRESS is false.
17078         * config/sh/predicates.md (general_movsrc_operand,
17079         general_movdst_operand): Likewise.
17081 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17083         * config/aarch64/aarch64-builtins.c
17084         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17085         BYTES_BIG_ENDIAN.
17087 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17089         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17090         the generated mask based on BYTES_BIG_ENDIAN.
17091         (aarch64_simd_check_vect_par_cnst_half): New.
17092         * config/aarch64/aarch64-protos.h
17093         (aarch64_simd_check_vect_par_cnst_half): New.
17094         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17095         the check out to aarch64_simd_check_vect_par_cnst_half.
17096         (vect_par_cnst_lo_half): Likewise.
17097         * config/aarch64/aarch64-simd.md
17098         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17099         (move_hi_quad_<mode>): Always generate a low mask.
17101 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17103         * doc/invoke.texi (AVR Options): Add documentation about
17104         __AVR_DEVICE_NAME__ built-in macro.
17106 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
17108         PR target/61948
17109         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17110         constraints are satisfied.
17111         (<shift>di3_neon): Likewise.
17113 2014-07-31  Richard Biener  <rguenther@suse.de>
17115         PR tree-optimization/61964
17116         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17117         by structural equality.
17119 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
17121         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17122         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17123         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17124         New enums.
17125         * gcc.c (sanitize_spec_function): Support new option.
17126         (SANITIZER_SPEC): Remove now redundant check.
17127         * opts.c (common_handle_option): Support new option.
17128         (finish_options): Check for incompatibilities.
17129         * toplev.c (process_options): Split userspace-specific checks.
17131 2014-07-31  Richard Biener  <rguenther@suse.de>
17133         * lto-streamer.h (struct output_block): Remove global.
17134         (struct data_in): Remove labels, num_named_labels and
17135         num_unnamed_labels.
17136         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17137         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17139 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
17141         PR c++/60517
17142         * common.opt (-Wreturn-local-addr): Moved from c.opt.
17143         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17144         (isolate_path): New argument to avoid inserting a trap.
17145         (find_implicit_erroneous_behaviour): Handle returning the address
17146         of a local variable.
17147         (find_explicit_erroneous_behaviour): Likewise.
17149 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
17151         PR lto/61868
17152         * toplev.c (init_random_seed): Move piece of code never called to
17153         set_random_seed.
17154         (set_random_seed): see above.
17156 2014-07-31  Tom de Vries  <tom@codesourcery.com>
17158         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17160 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
17162         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17163         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17165 2014-07-31  Richard Biener  <rguenther@suse.de>
17167         * data-streamer.h (streamer_write_data_stream): Declare here,
17168         renamed from ...
17169         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
17170         * lto-cgraph.c (lto_output_node): Adjust.
17171         (lto_output_varpool_node): Likewise.
17172         * data-streamer-out.c (streamer_string_index): Likewise.
17173         (streamer_write_data_stream, lto_append_block): Move from ...
17174         * lto-section-out.c (lto_output_data_stream,
17175         lto_append_block): ... here.
17177 2014-07-30  Mike Stump  <mikestump@comcast.net>
17179         * configure.ac: Also check for popen.
17180         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17181         * configure: Regenerate.
17182         * config.in:  Regenerate.
17184 2014-07-30  Martin Jambor  <mjambor@suse.cz>
17186         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17187         parameter to gimple.
17189 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17191         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17192         address as second parameter to __tpf_eh_return routine.
17194 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
17196         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17197         Thumb2.
17199 2014-07-30  Tom Tromey  <tromey@redhat.com>
17201         PR c/59855
17202         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17203         * doc/extend.texi (Type Attributes): Document designated_init
17204         attribute.
17206 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
17208         * graphite-isl-ast-to-gimple.c:
17209         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17210         (gcc_expression_from_isl_expression): Pass type to
17211         gcc_expression_from_isl_ast_expr_id.
17213 2014-07-30  Richard Biener  <rguenther@suse.de>
17215         * lto-streamer.h (lto_write_data): New function.
17216         * langhooks.c (lhd_append_data): Do not free block.
17217         * lto-section-out.c (lto_write_data): New function writing
17218         raw data to the current section.
17219         (lto_write_stream): Adjust for langhook semantic change.
17220         (lto_destroy_simple_output_block): Write header directly.
17221         * lto-opts.c (lto_write_options): Write options directly.
17222         * lto-streamer-out.c (produce_asm): Write heaeder directly.
17223         (lto_output_toplevel_asms): Likewise.
17224         (copy_function_or_variable): Copy data directly.
17225         (write_global_references): Output index table directly.
17226         (lto_output_decl_state_refs): Likewise.
17227         (write_symbol): Write data directly.
17228         (produce_symtab): Adjust.
17229         (produce_asm_for_decls): Output header and refs directly.
17231 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17233         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17234         to speculative_targets
17235         (get_class_context): Fix handling of contextes without outer type;
17236         avoid matching non-polymorphic types in LTO.
17237         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17238         parameter to speculative_targetsp; handle speculation.
17239         (dump_possible_polymorphic_call_targets): Update dumping.
17241 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17243         * common.opt (Wodr): Enable by default.
17245 2014-07-29  Olivier Hainque  <hainque@adacore.com>
17247         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17249 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17251         PR bootstrap/61914
17252         * gengtype.c (strtoken): New function.
17253         (create_user_defined_type): Replace strtok with strtoken.
17255 2014-07-29  Nathan Sidwell  <nathan@acm.org>
17257         * gcov-io.c (gcov_var): Make hidden.
17258         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17259         (gcov_do_dump): Declare.
17260         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17262 2014-07-29  Martin Jambor  <mjambor@suse.cz>
17264         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17265         parameter to gimple.
17266         (sra_modify_assign): Likewise.
17268 2014-07-29  Richard Biener  <rguenther@suse.de>
17270         PR middle-end/52478
17271         * expr.c (expand_expr_real_2): Revert last change.
17273 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17275         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17276         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17277         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17278         call.
17279         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17280         (contains_type_p): Forward declare.
17281         (polymorphic_call_target_hasher::hash): Hash speculative info.
17282         (polymorphic_call_target_hasher::equal): Compare speculative info.
17283         (get_class_context): Handle speuclation.
17284         (contains_type_p): Update.
17285         (get_polymorphic_call_info_for_decl): Update.
17286         (walk_ssa_copies): Break out from ...
17287         (get_polymorphic_call_info): ... here; set speculative context
17288         before giving up.
17289         * ipa-prop.c (ipa_write_indirect_edge_info,
17290         ipa_read_indirect_edge_info): Stream speculative context.
17291         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17292         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17293         SPECULATIVE_MAYBE_DERIVED_TYPE).
17294         (possible_polymorphic_call_targets overriders): Update.
17295         (dump_possible_polymorphic_call_targets overriders): Update.
17296         (dump_possible_polymorphic_call_target_p overriders): Update.
17298 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17300         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17301         ipa-devirt path; fix thinko there.
17303 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
17305         * config/i386/i386.c (ix86_return_in_memory): Replace one
17306         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17308 2014-07-28  Marek Polacek  <polacek@redhat.com>
17310         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
17312 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
17314         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17315         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17316         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17317         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17318         (USE_LD_AS_NEEDED): Likewise.
17319         (ASM_APP_ON): Likewise.
17320         (ASM_APP_OFF): Likewise.
17321         (TARGET_POSIX_IO): Likewise.
17322         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17323         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17324         (USE_LD_AS_NEEDED): Likewise.
17325         (ASM_APP_ON): Likewise.
17326         (ASM_APP_OFF): Likewise.
17327         (TARGET_POSIX_IO): Likewise.
17329 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17331         PR middle-end/61734
17332         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17333         operators other than the equality operators.
17335 2014-07-28  Richard Biener  <rguenther@suse.de>
17337         PR middle-end/52478
17338         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17339         sure to register SImode ones, not only >= word_mode ones.
17340         * expr.c (expand_expr_real_2): When expanding -ftrapv
17341         binops do not use OPTAB_LIB_WIDEN.
17343 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
17345         PR middle-end/61919
17346         * tree-outof-ssa.c (insert_partition_copy_on_edge)
17347         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17348         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17349         inserting them in the insn stream.
17351 2014-07-28  Marek Polacek  <polacek@redhat.com>
17353         PR middle-end/61913
17354         * common.opt (Wodr): Add Var.
17356 2014-07-28  Richard Biener  <rguenther@suse.de>
17358         PR tree-optimization/61921
17359         * tree-ssa-structalias.c (create_variable_info_for_1): Check
17360         if there is a varpool node before dereferencing it.
17362 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17364         * graphite-sese-to-poly.c:
17365         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17366         id of the pbb), which contains pointer to the pbb1.
17368         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17370 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17372         * graphite-isl-ast-to-gimple.c:
17373         (graphite_create_new_guard): New function.
17374         (translate_isl_ast_node_if): New function.
17375         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17377         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17379 2014-07-27  Anthony Green  <green@moxielogic.com>
17381         * config.gcc: Add moxie-*-moxiebox* configuration.
17382         * config/moxie/moxiebox.h: New file.
17384 2014-07-26  Andrew Pinski  <apinski@cavium.com>
17386         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17387         from the read only register.
17389 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17391         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17392         as the allocation class if it isn't likely to be spilled.
17394 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17396         * rtl.h (tls_referenced_p): Declare.
17397         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17398         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17399         (mips_cannot_force_const_mem): Use tls_referenced_p.
17400         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17401         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17402         instead of pa_tls_referenced_p.
17403         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17404         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17405         (pa_legitimate_constant_p): Likewise.
17406         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17407         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17408         (rs6000_cannot_force_const_mem, rs6000_emit_move)
17409         (rs6000_address_for_altivec): Use tls_referenced_p instead of
17410         rs6000_tls_referenced_p.
17411         (rs6000_tls_symbol_ref_1): Delete.
17413 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
17415         PR target/44551
17416         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17417         Optimize inverse of a VEC_CONCAT.
17419 2014-07-25  Xinliang David Li  <davidxl@google.com>
17421         * params.def: New parameter.
17422         * coverage.c (get_coverage_counts): Check new flag.
17423         (coverage_compute_profile_id): Check new flag.
17424         (coverage_begin_function): Check new flag.
17425         (coverage_end_function): Check new flag.
17426         * value-prof.c (coverage_node_map_initialized_p): New function.
17427         (init_node_map): Populate map with all functions.
17428         * doc/invoke.texi: Document new parameter.
17430 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
17431             Richard Biener <rguenther@suse.de>
17433         * lto-streamer-out.c (struct sccs): Turn to ...
17434         (class DFS): ... this one; refactor the DFS walk so it can
17435         be re-done on per-SCC basis.
17436         (DFS::DFS): New constructor.
17437         (DFS::~DFS): New destructor.
17438         (hash_tree): Add new MAP argument holding in-SCC hash values;
17439         remove POINTER_TYPE hashing hack.
17440         (scc_entry_compare): Rename to ...
17441         (DFS::scc_entry_compare): ... this one.
17442         (hash_scc): Rename to ...
17443         (DFS::hash_scc): ... this one; pass output_block instead
17444         of streamer_cache; work harder to get unique and stable SCC
17445         hashes.
17446         (DFS_write_tree): Rename to ...
17447         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17448         (lto_output_tree): Update.
17450 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17452         * lto-streamer-out.c (hash_tree): Convert to inchash.
17454 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17456         * tree.c (build_type_attribute_qual_variant): Use inchash.
17457         (type_hash_list): Dito.
17458         (attribute_hash_list): Dito
17459         (iterative_hstate_expr): Dito.
17460         (iterative_hash_expr): Dito.
17461         (build_range_type_1): Dito.
17462         (build_array_type_1): Dito.
17463         (build_function_type): Dito.
17464         (build_method_type_directly): Dito.
17465         (build_offset_type): Dito.
17466         (build_complex_type): Dito.
17467         (make_vector_type): Dito.
17468         * tree.h (iterative_hash_expr): Add compat wrapper.
17469         (iterative_hstate_expr): Add.
17471 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17473         * Makefile.in (OBJS): Add inchash.o.
17474         (PLUGIN_HEADERS): Add inchash.h.
17475         * ipa-devirt.c: Include inchash.h.
17476         * lto-streamer-out.c: Dito.
17477         * tree-ssa-dom.c: Dito.
17478         * tree-ssa-pre.c: Dito.
17479         * tree-ssa-sccvn.c: Dito.
17480         * tree-ssa-tail-merge.c: Dito.
17481         * asan.c: Dito.
17482         * tree.c (iterative_hash_hashval_t): Move to ...
17483         (iterative_hash_host_wide_int): Move to ...
17484         * inchash.c: Here. New file.
17485         * tree.h (iterative_hash_hashval_t): Move to ...
17486         (iterative_hash_host_wide_int): Move to ...
17487         * inchash.h: Here. New file.
17489 2014-07-25  Richard Biener  <rguenther@suse.de>
17491         PR middle-end/61762
17492         PR middle-end/61894
17493         * fold-const.c (native_encode_int): Add and handle offset
17494         parameter to do partial encodings of expr.
17495         (native_encode_fixed): Likewise.
17496         (native_encode_real): Likewise.
17497         (native_encode_complex): Likewise.
17498         (native_encode_vector): Likewise.
17499         (native_encode_string): Likewise.
17500         (native_encode_expr): Likewise.
17501         * fold-const.c (native_encode_expr): Add offset parameter
17502         defaulting to -1.
17503         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17504         (fold_ctor_reference): Handle all reads from tcc_constant
17505         ctors.
17507 2014-07-25  Richard Biener  <rguenther@suse.de>
17509         * tree-inline.c (estimate_move_cost): Mark speed_p argument
17510         as possibly unused.
17512 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17514         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17516 2014-07-24  Kyle McMartin  <kyle@redhat.com>
17518         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17520 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17522         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17523         Add prototype.
17524         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17525         function.
17526         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17527         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17528         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17530 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17532         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17533         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17534         aggregate types.  Instead, *all* aggregate types, except for single-
17535         element or homogeneous float/vector aggregates, are quadword-aligned
17536         if required by their type alignment.  Issue -Wpsabi note when a type
17537         is now treated differently than before.
17539 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17541         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17542         does not fit fully into floating-point registers, and there is still
17543         space in the register parameter area, use GPRs to pass those parts
17544         of the argument.  Issue -Wpsabi note if any parameter is now treated
17545         differently than before.
17546         (rs6000_arg_partial_bytes): Update.
17548 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
17550         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17552 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17554         * rtl.h (target_rtl): Remove lang_dependent_initialized.
17555         * toplev.c (initialize_rtl): Don't use it.  Move previously
17556         "language-dependent" calls to...
17557         (backend_init): ...here.
17558         (lang_dependent_init_target): Don't set lang_dependent_initialized.
17559         Assert that RTL initialization hasn't happend yet.
17561 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17563         PR rtl-optimization/61629
17564         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17565         they have already been initialized.
17567 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17569         PR middle-end/61268
17570         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17571         DECL_INCOMING_RTL and entry_parm.
17572         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17573         * calls.c (load_register_parameters): Likewise argument values.
17574         (emit_library_call_value_1, store_one_arg): Likewise argument
17575         save areas.
17576         * config/i386/i386.c (assign_386_stack_local): Likewise the local
17577         stack slot.
17578         * explow.c (validize_mem): Modify the argument in-place.
17580 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17582         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17583         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17585 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17587         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17588         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17590 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17592         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17593         (aarch64_save_callee_saves): New parameter "skip_wb".
17594         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17596 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17598         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17599         "wb_candidate2".
17600         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17602 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
17604         * graphite-isl-ast-to-gimple.c:
17605         (graphite_create_new_loop): Add calling of isl_id_free to properly
17606         decrement reference counts.
17608         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17610 2014-07-24  Martin Liska  <mliska@suse.cz>
17611         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17612         function used.
17613         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17614         (rs6000_code_end): Likewise.
17616 2014-07-24  Martin Liska  <mliska@suse.cz>
17618         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17619         symtab_node funtion used.
17620         (rs6000_xcoff_declare_object_name): Likewise.
17622 2014-07-24  Martin Liska  <mliska@suse.cz>
17624         * cgraphunit.c (compile): Correct function used.
17626 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
17628         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17629         as non-indexable.
17631 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
17633         PR lto/61802
17634         * varasm.c (bss_initializer_p): Handle offlined ctors.
17635         (align_variable, get_variable_align): Likewise.
17636         (make_decl_one_only): Likewise.
17637         (default_binds_local_p_1): Likewise.
17638         (decl_binds_to_current_def_p): Likewise.
17639         (get_variable_section): Get constructor if it is offlined.
17640         (assemble_variable_contents): Sanity check that the caller
17641         streamed in the ctor in LTO.
17643 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
17645         * graphite-isl-ast-to-gimple.c:
17646         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17647         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17648         isl_ast_op_pdiv_r to the different case.
17650         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17652 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17654         PR middle-end/61876
17655         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17656         when flag_errno_math is on.
17658 2014-07-24  Martin Liska  <mliska@suse.cz>
17660         * cgraph.h (varpool_node):
17661         (availability get_availability (void)):
17662         created from cgraph_variable_initializer_availability
17663         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17664         created from: cgraph_variable_initializer_availability
17665         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17666         (void finalize_named_section_flags (void)):
17667         created from varpool_finalize_named_section_flags
17668         (bool assemble_decl (void)): created from varpool_assemble_decl
17669         (void analyze (void)): created from varpool_analyze_node
17670         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17671         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17672         (void remove_initializer (void)): created from varpool_remove_initializer
17673         (tree get_constructor (void)): created from varpool_get_constructor
17674         (bool externally_visible_p (void)): created from varpool_externally_visible_p
17675         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17676         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17677         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17678         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17679         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17680         (static bool output_variables (void)): created from varpool_output_variables
17681         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17682         created from varpool_extra_name_alias
17683         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17684         (static void dump_varpool (FILE *f)): created from dump_varpool
17685         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17686         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17687         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17688         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17689         (void assemble_aliases (void)): created from assemble_aliases
17691 2014-07-24  Martin Liska  <mliska@suse.cz>
17693         * cgraph.h (symtab_node):
17694         (void register_symbol (void)): created from symtab_register_node
17695         (void remove (void)): created from symtab_remove_node
17696         (void dump (FILE *f)): created from dump_symtab_node
17697         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17698         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17699         (struct ipa_ref *add_reference (symtab_node *referred_node,
17700         enum ipa_ref_use use_type)): created from add_reference
17701         (struct ipa_ref *add_reference (symtab_node *referred_node,
17702         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17703         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17704         gimple stmt)): created from maybe_add_reference
17705         (bool semantically_equivalent_p (symtab_node *target)): created from
17706         symtab_semantically_equivalent_p
17707         (void remove_from_same_comdat_group (void)): created from
17708         remove_from_same_comdat_group
17709         (void add_to_same_comdat_group (symtab_node *old_node)): created from
17710         symtab_add_to_same_comdat_group
17711         (void dissolve_same_comdat_group_list (void)): created from
17712         symtab_dissolve_same_comdat_group_list
17713         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17714         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17715         created from symtab_alias_ultimate_target
17716         (inline symtab_node *next_defined_symbol (void)): created from
17717         symtab_next_defined_symbol
17718         (bool resolve_alias (symtab_node *target)): created from
17719         symtab_resolve_alias
17720         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17721         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17722         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17723         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17724         (void set_section (const char *section)): created from set_section_1
17725         (enum availability get_availability (void)): created from symtab_node_availability
17726         (void make_decl_local (void)): created from symtab_make_decl_local
17727         (bool real_symbol_p (void)): created from symtab_read_node
17728         (can_be_discarded_p (void)): created from symtab_can_be_discarded
17729         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17730         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17731         symtab_in_same_comdat_p;
17732         (bool address_taken_from_non_vtable_p (void)): created from
17733         address_taken_from_non_vtable_p
17734         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17735         (static void dump_table (FILE *)): created from dump_symtab
17736         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17737         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17738         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17739         symtab_used_from_object_file_p
17740         (void dump_base (FILE *)): created from dump_symtab_base
17741         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17742         (void unregister (void)): created from symtab_unregister_node
17743         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17744         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17745         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17746         symtab_nonoverwritable_alias_1
17747         * cgraph.h (cgraph_node):
17748         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17749         created from cgraph_remove_node_and_inline_clones
17750         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17751         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17752         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17753         (cgraph_node *function_symbol (enum availability *avail = NULL)):
17754         created from cgraph_function_node
17755         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17756         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17757         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17758         created from cgraph_create_clone
17759         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17760         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17761         created from cgraph_create_virtual_clone
17762         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17763         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17764         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17765         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17766         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17767         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17768         created from cgraph_function_version_info
17769         (struct cgraph_function_version_info *insert_new_function_version (void)):
17770         created from insert_new_cgraph_node_version
17771         (struct cgraph_function_version_info *function_version (void)): created from
17772         get_cgraph_node_version
17773         (void analyze (void)): created from analyze_function
17774         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17775         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17776         tree real_alias) cgraph_add_thunk
17777         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17778         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17779         created from cgraph_function_or_thunk_node
17780         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17781         created from expand_thunk
17782         (void reset (void)): created from cgraph_reset_node
17783         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17784         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17785         (void remove (void)): created from cgraph_remove_node
17786         (void dump (FILE *f)): created from dump_cgraph_node
17787         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17788         (bool get_body (void)): created from cgraph_get_body
17789         (void release_body (void)): created from cgraph_release_function_body
17790         (void unnest (void)): created from cgraph_unnest_node
17791         (void make_local (void)): created from cgraph_make_node_local
17792         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17793         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17794         gcov_type count, int freq)): created from cgraph_create_edge
17795         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17796         gcov_type count, int freq)): created from cgraph_create_indirect_edge
17797         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17798         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17799         created from cgraph_create_edge_including_clones
17800         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17801         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17802         (void remove_callers (void)): created from cgraph_node_remove_callers
17803         (void remove_callees (void)): created from cgraph_node_remove_callees
17804         (enum availability get_availability (void)): created from cgraph_function_body_availability
17805         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17806         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17807         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17808         (void call_duplication_hooks (cgraph_node *node2)): created from
17809         cgraph_call_node_duplication_hooks
17810         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17811         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17812         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17813         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17814         (void call_function_insertion_hooks (void)):
17815         created from cgraph_call_function_insertion_hooks
17816         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17817         (bool local_p (void)): created from cgraph_local_node
17818         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17819         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17820         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17821         (inline bool only_called_directly_or_aliased_p (void)):
17822         created from cgraph_only_called_directly_or_aliased_p
17823         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17824         created from cgraph_will_be_removed_from_program_if_no_direct_calls
17825         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17826         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17827         (bool can_remove_if_no_direct_calls_p (void)):
17828         created from cgraph_can_remove_if_no_direct_calls_p
17829         (inline bool has_gimple_body_p (void)):
17830         created from cgraph_function_with_gimple_body_p
17831         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17832         (static void dump_cgraph (FILE *f)): created from dump_cgraph
17833         (static inline void debug_cgraph (void)): created from debug_cgraph
17834         (static void record_function_versions (tree decl1, tree decl2)):
17835         created from record_function_versions
17836         (static void delete_function_version (tree decl)):
17837         created from delete_function_version
17838         (static void add_new_function (tree fndecl, bool lowered)):
17839         created from cgraph_add_new_function
17840         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17841         (static cgraph_node * create (tree decl)): created from cgraph_create_node
17842         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17843         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17844         (static cgraph_node *get_for_asmname (tree asmname)):
17845         created from cgraph_node_for_asm
17846         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17847         created from cgraph_same_body_alias
17848         (static bool used_from_object_file_p_worker (cgraph_node *node,
17849         void *): new function
17850         (static bool non_local_p (cgraph_node *node, void *)):
17851         created from cgraph_non_local_node_p_1
17852         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17853         created from verify_cgraph
17854         (static bool make_local (cgraph_node *node, void *)):
17855         created from cgraph_make_node_local
17856         (static cgraph_node *create_alias (tree alias, tree target)):
17857         created from cgraph_create_function_alias
17858         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17859         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17860         created from cgraph_create_edge_1
17861         * cgraph.h (varpool_node):
17862         (void remove (void)): created from varpool_remove_node
17863         (void dump (FILE *f)): created from dump_varpool_node
17865 2014-07-24  Richard Biener  <rguenther@suse.de>
17867         PR ipa/61823
17868         * tree-ssa-structalias.c (create_variable_info_for_1):
17869         Use varpool_get_constructor.
17870         (create_variable_info_for): Likewise.
17872 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17874         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17875         subtract outgoing area size when restoring stack_pointer_rtx.
17877 2014-07-24  Nick Clifton  <nickc@redhat.com>
17879         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17880         that operations are taking place in parallel.
17881         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17883 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
17885         * omp-low.c (extract_omp_for_data): Add missing break statement.
17887 2014-07-24  Richard Biener  <rguenther@suse.de>
17889         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17890         * tree-inline.c (estimate_move_cost): Add speed_p parameter
17891         and adjust MOVE_RATIO query accordingly.
17892         (estimate_num_insns): Adjust callers.
17893         * ipa-prop.c (ipa_populate_param_decls): Likewise.
17894         * ipa-cp.c (gather_context_independent_values,
17895         estimate_local_effects): Likewise.
17896         * ipa-split.c (consider_split): Likewise.
17898 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
17900         * config/i386/driver-i386.c: Remove names of unused arguments and
17901         unnecessary unused attributes.
17902         * config/i386/host-mingw32.c: Likewise.
17903         * config/i386/i386.c: Likewise.
17904         * config/i386/winnt-stubs.c: Likewise.
17905         * config/i386/winnt.c: Likewise.
17907 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17909         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17910         (aarch64_gen_loadwb_pair): New helper function.
17911         (aarch64_expand_epilogue): Simplify code using new helper functions.
17912         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17914 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17916         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17917         (aarch64_gen_storewb_pair): New helper function.
17918         (aarch64_expand_prologue): Simplify code using new helper functions.
17919         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17921 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17923         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17924         Rename to aarch64_save_callee_saves, remove restore code.
17925         (aarch64_restore_callee_saves): New function.
17927 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17929         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17930         (aarch64_save_callee_saves): New function to handle reg save
17931         for both core and vectore regs.
17933 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17935         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17936         (aarch64_gen_store_pair): New helper function.
17937         (aarch64_save_or_restore_callee_save_registers)
17938         (aarch64_save_or_restore_fprs): Use new helper functions.
17940 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17942         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17943         (aarch64_save_or_restore_callee_save_registers)
17944         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17946 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17948         * config/aarch64/aarch64.c
17949         (aarch64_save_or_restore_callee_save_registers)
17950         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17952 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17954         * config/aarch64/aarch64.c
17955         (aarch64_save_or_restore_callee_save_registers)
17956         (aarch64_save_or_restore_fprs): Remove 'increment'.
17958 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17960         * config/aarch64/aarch64.c
17961         (aarch64_save_or_restore_callee_save_registers)
17962         (aarch64_save_or_restore_fprs): Use register offset in
17963         cfun->machine->frame.reg_offset.
17965 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17967         * config/aarch64/aarch64.c
17968         (aarch64_save_or_restore_callee_save_registers)
17969         (aarch64_save_or_restore_fprs): Remove base_rtx.
17971 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17973         * config/aarch64/aarch64.c
17974         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17975         to 'start_offset'.  Remove local variable 'start_offset'.
17977 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17979         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17980         type to HOST_WIDE_INT.
17982 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17984         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17985         (aarch64_save_or_restore_fprs)
17986         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17988 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17990         * config/arm/t-rtems-eabi: Add
17991         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17992         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17993         mbig-endian/mthumb/march=armv7-r, and
17994         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17995         multilibs.
17997 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17998             Chris Johns <chrisj@rtems.org>
17999             Joel Sherrill <joel.sherrill@oarcorp.com>
18001         * config.gcc: Add nios2-*-rtems*.
18002         * config/nios2/rtems.h: New file.
18003         * gcc/config/nios2/t-rtems: New file.
18005 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
18007         PR target/61396
18008         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18009         constant numbers, not general constants.
18010         (rs6000_expand_vector_init): Ditto.
18012 2014-07-23  Nathan Sidwell  <nathan@acm.org>
18014         * gcov-tool.c (gcov_list): Declare here.
18015         (set_gcov_list): Remove.
18016         (gcov_output_files): Set gcov_list directly.
18018 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
18020         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18022 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18024         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18025         callee-saved registers are available for padding purpose
18026         and r3 is not mandatory, then prefer use those callee-saved
18027         instead of r3.
18029 2014-07-23  Richard Biener  <rguenther@suse.de>
18031         * params.def (PARAM_MAX_COMBINE_INSNS): New.
18032         * combine.c: Include statistics.h and params.h.
18033         (combine_instructions): Guard three and four insn combines
18034         with max-combine-insns value.  Record statistics for combines
18035         performed.
18036         * doc/invoke.texi (max-combine-insns): Document new param.
18038 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18040         * graphite-isl-ast-to-gimple.c:
18041         (translate_isl_ast_node_block): New function.
18042         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18044         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18045         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18047 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18049         * graphite-isl-ast-to-gimple.c:
18050         (get_max_schedule_dimensions): New function.
18051         (extend_schedule): Likewise.
18052         (generate_isl_schedule): Add calling of extend_schedule and
18053         get_max_schedule_dimensions.
18055 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18057         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18058         (case UNSPEC): Handle UNSPEC_RBIT.
18060 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18062         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18063         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18065 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18067         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18069 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
18071         * graphite-isl-ast-to-gimple.c:
18072         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18073         (ivs_params_clear):
18074         (build_iv_mapping): New function.
18075         (translate_isl_ast_node_user): Likewise.
18076         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18078         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18079         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18080         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18082 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18084         PR target/55701
18085         * config/arm/arm.md (setmem): New pattern.
18086         * config/arm/arm-protos.h (struct tune_params): New fields.
18087         (arm_gen_setmem): New prototype.
18088         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18089         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18090         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18091         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18092         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18093         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18094         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18095         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18096         (arm_const_inline_cost): New function.
18097         (arm_block_set_max_insns): New function.
18098         (arm_block_set_non_vect_profit_p): New function.
18099         (arm_block_set_vect_profit_p): New function.
18100         (arm_block_set_unaligned_vect): New function.
18101         (arm_block_set_aligned_vect): New function.
18102         (arm_block_set_unaligned_non_vect): New function.
18103         (arm_block_set_aligned_non_vect): New function.
18104         (arm_block_set_vect, arm_gen_setmem): New functions.
18106 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18108         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18110 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
18112         PR target/61855
18113         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18114         out of #ifdef __OPTIMIZE__.
18116 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18118         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18119         different trapping status if -fnon-call-exceptions is enabled.
18121 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18123         * expr.c (store_field): Handle VOIDmode for calls that return values
18124         in multiple locations.
18126 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18128         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
18129         (altivec_vsldoi_<mode>): Likewise.
18131 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18133         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18134         to the number of characters in the line.
18136 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18138         * graphite-isl-ast-to-gimple.c: Add using of
18139         build_nonstandard_integer_type instead of int128_integer_type_node.
18141 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
18143         * toplev.c (output_stack_usage): Adjust the location of the warning.
18145 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
18147         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18148         (*membar_storeload): Disable for LEON3.
18150 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18152         PR rtl-optimization/61461
18153         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18155 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
18157         PR target/61794
18158         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18159         Fix instruction constraint.
18160         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18162 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
18164         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18166 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
18168         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18169         GNU coding standards.
18170         (nds32_register_move_cost): Likewise.
18171         (nds32_memory_move_cost): Likewise.
18172         (nds32_address_cost): Likewise.
18174 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18176         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18178 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
18180         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18181         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18182         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18183         (HAVE_sync_compare_and_swapqi): Define.
18184         (HAVE_sync_compare_and_swaphi): Likewise.
18185         (HAVE_sync_compare_and_swapsi): Likewise.
18187 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
18189         * config/mips/p5600.md: Add missing cpu tests.
18191 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18193         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18194         (vmla_f64): Likewise.
18195         (vfms_f64): Likewise.
18196         (vmls_f64): Likewise.
18198 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18200         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18201         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18203 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18205         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18206         (vmlal_high_lane_s32): Likewise.
18207         (vmlal_high_lane_u16): Likewise.
18208         (vmlal_high_lane_u32): Likewise.
18209         (vmlsl_high_lane_s16): Likewise.
18210         (vmlsl_high_lane_s32): Likewise.
18211         (vmlsl_high_lane_u16): Likewise.
18212         (vmlsl_high_lane_u32): Likewise.
18214 2014-07-17  Terry Guo  <terry.guo@arm.com>
18216         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18217         (alus_reg): Renamed to alus_sreg.
18218         * config/arm/arm-fixed.md: Change type of non-dsp instructions
18219         from alu_reg to alu_sreg.  Change type of dsp instructions from
18220         alu_reg to alu_dsp_reg.
18221         * config/arm/thumb1.md: Likewise.
18222         * config/arm/thumb2.md: Likewise.
18223         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18224         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18225         with alu_sreg and alus_sreg.
18226         * config/arm/arm1026ejs.md (alu_op): Likewise.
18227         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18228         * config/arm/arm926ejs.md (9_alu_op): Likewise.
18229         * config/arm/fa526.md (526_alu_op): Likewise.
18230         * config/arm/fa606te.md (606te_alu_op): Likewise.
18231         * config/arm/fa626te.md (626te_alu_op): Likewise.
18232         * config/arm/fa726te.md (726te_alu_op): Likewise.
18233         * config/arm/fmp626.md (mp626_alu_op): Likewise.
18234         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18235         alu_sreg, alu_dsp_reg and alus_sreg.
18236         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18237         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18238         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18239         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18240         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18241         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18242         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18243         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18244         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18245         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18246         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18247         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18248         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18249         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18250         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18251         alus_reg to alus_sreg.
18253 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
18255         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18256         infinity format.
18258 2014-07-17  Richard Biener  <rguenther@suse.de>
18260         PR rtl-optimization/61801
18261         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18262         don't set reg_pending_barrier if it appears in a debug-insn.
18264 2014-07-16  DJ Delorie  <dj@redhat.com>
18266         * config/rx/rx.c (rx_option_override): Fix alignment values.
18267         (rx_align_for_label): Likewise.
18269 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
18271         PR target/61737.
18272         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18273         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18274         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18275         functions.
18276         (cris_print_index, cris_print_operand, cris_constant_index_p)
18277         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18278         (cris_address_cost): Ditto last CONSTANT_P.
18279         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
18280         callers changed.  Yield cris_offsettable_symbol for non-PIC
18281         constant symbolic expressions including labels.  Yield cris_unspec
18282         for all unspecs.
18283         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
18284         target to pic_offset_table_rtx for calls that will likely go
18285         through PLT, const0_rtx when they can't.  All callers changed.
18286         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18287         symbolic expressions to be PICified.  Remove second, redundant,
18288         assert on can_create_pseudo_p returning non-zero.  Use
18289         replace_equiv_address_nv, not replace_equiv_address, for final
18290         operand update.
18291         * config/cris/cris.md ("movsi"): Move variable t to pattern
18292         toplevel. Adjust assert for new cris_symbol_type member.  Use
18293         CONSTANT_P instead of CONSTANT_ADDRESS_P.
18294         ("*movsi_internal") <case 9>: Make check for valid unspec operands
18295         for lapc stricter.
18296         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18297         ("call", "call_value"): Use second incoming operand as a marker
18298         for pic-offset-table-register being used.
18299         ("*expanded_call_non_v32", "*expanded_call_v32")
18300         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18301         second incoming operand to CALL, match cris_call_type_marker.
18302         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
18303         ("*expanded_call_side"): Ditto.  Fix typo in comment.
18304         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18305         CONSTANT_P.
18306         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18307         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18308         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
18309         users changed.  Add members cris_offsettable_symbol and cris_unspec.
18310         (cris_symbol_type): Rename from cris_pic_symbol_type.
18311         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18312         just CONSTANT_P.
18313         * config/cris/cris-protos.h (cris_symbol_type_of,
18314         cris_expand_pic_call_address): Adjust prototypes.
18315         (cris_legitimate_constant_p): New prototype.
18317         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18318         an existing tmake_file.  Don't add t-slibgcc and t-linux.
18320 2014-07-17  Jason Merrill  <jason@redhat.com>
18322         PR c++/61623
18323         * symtab.c (symtab_remove_from_same_comdat_group): Also
18324         set_comdat_group to NULL_TREE.
18325         (verify_symtab): Fix diagnostic.
18327 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
18329         PR target/61662
18330         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18332 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
18334         Support location tracking for built-in macro tokens
18335         * input.h (is_location_from_builtin_token): New function declaration.
18336         * input.c (is_location_from_builtin_token): New function definition.
18337         * toplev.c (general_init): Tell libcpp what the pre-defined
18338         spelling location for built-in tokens is.
18340 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
18342         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18343         on the FUNCTION_DECL.
18345 2014-07-16  Richard Biener  <rguenther@suse.de>
18347         PR other/61782
18348         * doc/extend.texi (always_inline): Clarify.
18350 2014-07-15  Eric Christopher  <echristo@gmail.com>
18352         * doc/invoke.texi (Link Options): Document -z option.
18354 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
18356         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18357         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18359 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
18361         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18363 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18365         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18366         varpool_assemble_decl.
18367         * varpool.c (varpool_assemble_decl): Assert that node->definition is
18368         true.
18370 2014-07-15  Michael Matz  <matz@suse.de>
18372         PR rtl-optimization/61772
18373         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18375 2014-07-15  Richard Biener  <rguenther@suse.de>
18377         * opts.c (default_options_table): Disable bit-ccp at -Og.
18379 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18381         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18383 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18385         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18386         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18387         call langhook for unknown declaration.
18388         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18389         * tree.h (DECL_ARGUMENTS): Update.
18390         * print-tree.c (print_node): Update.
18391         * tree-core.h (tree_decl_non_common): Remove arguments.
18392         (tree_function_decl): Add arguments.
18394 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
18396         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18398 2014-07-14  Richard Biener  <rguenther@suse.de>
18400         PR tree-optimization/61779
18401         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18402         simplifying a condition.
18404 2014-07-14  Richard Biener  <rguenther@suse.de>
18406         * builtins.c (c_strlen): Make only_value == 2 really only
18407         affect warning generation.
18409 2014-07-14  Richard Biener  <rguenther@suse.de>
18411         PR tree-optimization/61757
18412         PR tree-optimization/61783
18413         PR tree-optimization/61787
18414         * tree-ssa-dom.c (record_equality): Revert canonicalization
18415         change and add comment.
18416         (propagate_rhs_into_lhs): Revert previous fix, removing
18417         loop depth restriction again.
18419 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18421         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18422         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18423         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18424         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18425         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18426         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18427         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18429 2014-07-14  Richard Biener  <rguenther@suse.de>
18431         * cgraph.h (decl_in_symtab_p): Make inline.
18433 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
18435         PR middle-end/61294
18436         * doc/invoke.texi (-Wmemset-transposed-args): Document.
18438         PR target/61656
18439         * config/i386/i386.c (classify_argument): Don't merge classes above
18440         number of words.
18442 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
18444         * cgraph.h (symtab_node): Add nonzero_address.
18445         (decl_in_symtab_p): Break out from ...
18446         (symtab_get_node): ... here.
18447         * fold-const.c: Include cgraph.h
18448         (tree_single_nonzero_warnv_p): Use symtab to determine
18449         if symbol is non-zero.
18450         * symtab.c (symtab_node::nonzero_address): New method.
18452 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18454         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18455         forgotten in previous commit.
18457 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18459         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18460         on builtin types.
18461         * ipa-devirt.c: Include stor-layout.h and intl.h
18462         (odr_subtypes_equivalent_p): New function.
18463         (warn_odr): New function.
18464         (warn_type_mismatch): New function.
18465         (odr_types_equivalent_p): New function.
18466         (add_type_duplicate): Use it.
18467         * common.opt (Wodr): New flag.
18468         * doc/invoke.texi (Wodr): Document new warning.
18470 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18472         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18473         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18474         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18475         (varpool_get_constructor): Push CTORS_IN timevar.
18476         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18478 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
18480         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18481         Remove VOID_FTYPE_PUSHORT.
18482         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18483         Change code to USHORT_FTYPE_VOID.
18484         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18485         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18486         (ix86_atomic_assign_expand_fenv): Update for
18487         __builtin_ia32_fnstsw changes.
18488         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18489         (fnstsw): Change operand 0 to nonimmediate operand.
18491 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18493         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18494         (varpool_get_constructor): New function.
18495         (varpool_ctor_useable_for_folding_p): Break out from ...
18496         (ctor_for_folding): ... here; use varpool_get_constructor.
18497         (varpool_assemble_decl): Likewise.
18498         * lto-streamer.h (struct output_block): Turn cgraph_node
18499         to symbol filed.
18500         (lto_input_variable_constructor): Declare.
18501         * ipa-visibility.c (function_and_variable_visibility): Use
18502         varpool_get_constructor.
18503         * cgraph.h (varpool_get_constructor): Declare.
18504         (varpool_ctor_useable_for_folding_p): New function.
18505         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18506         parameter; return error_mark_node for non-trivial constructors.
18507         (lto_write_tree_1, DFS_write_tree): Update use of
18508         get_symbol_initial_value.
18509         (output_function): Update initialization of symbol.
18510         (output_constructor): New function.
18511         (copy_function): Rename to ..
18512         (copy_function_or_variable): ... this one; handle vars too.
18513         (lto_output): Output variable sections.
18514         * lto-streamer-in.c (input_constructor): New function.
18515         (lto_read_body): Rename from ...
18516         (lto_read_body_or_constructor): ... this one; handle vars too.
18517         (lto_input_variable_constructor): New function.
18518         * ipa-prop.c (ipa_prop_write_jump_functions,
18519         ipa_prop_write_all_agg_replacement): Update.
18520         * lto-cgraph.c (compute_ltrans_boundary): Use it.
18521         (output_cgraph_opt_summary): Set symbol to NULL.
18523 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18525         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18526         non-polymorphic types.
18527         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18528         * ipa-devirt.c (types_same_for_odr): Do not explode when one
18529         of types is not polymorphic.
18531 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
18533         * lra-constraints.c (remove_inheritance_pseudos): Process
18534         destination pseudo too.
18536 2014-07-11  Rong Xu  <xur@google.com>
18538         * gcov-tool.c (gcov_output_files): Fix build error introduced in
18539         commit r212448.
18541 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18543         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18544         * config/avr/avr-devices.c (AVR_MCU): Same.
18545         (avr_mcu_types): add text start value to end of device list.
18546         * config/avr/avr-mcus.def: Add text section start for all devices.
18547         (ata5782): Add new avr5 device.
18548         (ata5831): Same.
18549         * config/avr/avr-tables.opt: Regenerate.
18550         * config/avr/avr.h: Add declaration for text section start handler.
18551         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18552         SPEC functions.
18553         (LINK_SPEC): Include text section start handler to linker spec.
18554         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18555         pass -Ttext option to linker if the text section start for the device
18556         is not zero.
18557         * config/avr/t-multilib: Regenerate.
18558         * doc/avr-mmcu.texi: Regenerate.
18560 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
18562         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18563         * config/rs6000/aix52.h (LINK_SPEC): Same.
18564         * config/rs6000/aix53.h (LINK_SPEC): Same.
18565         * config/rs6000/aix61.h (LINK_SPEC): Same.
18566         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18568 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
18570         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18571         (graphite_verify): New function.
18572         (ivs_params_clear): New function.
18573         (gcc_expression_from_isl_ast_expr_id): New function.
18574         (gcc_expression_from_isl_expr_int): New function.
18575         (binary_op_to_tree): New function.
18576         (ternary_op_to_tree): New function.
18577         (unary_op_to_tree): New function.
18578         (nary_op_to_tree): New function.
18579         (gcc_expression_from_isl_expr_op): New function.
18580         (gcc_expression_from_isl_expression): New function.
18581         (graphite_create_new_loop): New function.
18582         (translate_isl_ast_for_loop): New function.
18583         (get_upper_bound): New function.
18584         (graphite_create_new_loop_guard): New function.
18585         (translate_isl_ast_node_for): New function.
18586         (translate_isl_ast): New function.
18587         (add_parameters_to_ivs_params): New function.
18588         (scop_to_isl_ast): New parameter ip.
18589         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18591 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18593         * config/xtensa/predicates.md (call expander): Update for
18594         DECL_SECTION_NAME being string.
18596 2014-07-11  Richard Biener  <rguenther@suse.de>
18598         PR middle-end/61473
18599         * builtins.c (fold_builtin_memory_op): Inline memory moves that
18600         can be implemented with a single load followed by a single store.
18601         (c_strlen): Only warn when only_value is not 2.
18603 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
18605         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18607 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
18609         PR target/61561
18610         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18611         (*movhi_bytes): Likewise.
18612         (*arm_movqi_insn): Likewise.
18614 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
18616         PR target/56858
18617         * config/alpha/alpha.c: Include tree-pass.h, context.h
18618         and pass_manager.h.
18619         (pass_data_handle_trap_shadows): New pass.
18620         (pass_handle_trap_shadows::gate): New pass gate function.
18621         (make_pass_handle_trap_shadows): New function.
18622         (rest_of_handle_trap_shadows): Ditto.
18624         (alpha_align_insns_1): Rename from alpha_align_insns.
18625         (pass_data_align_insns): New pass.
18626         (pass_align_insns::gate): New pass gate function.
18627         (make_pass_aling_insns): New function.
18628         (rest_of_align_insns): Ditto.
18629         (alpha_align_insns): Ditto.
18631         (alpha_option_override): Declare handle_trap_shadows info
18632         and align_insns_info.  Register handle_trap_shadows and align_insns
18633         passes here.
18634         (alpha_reorg): Do not call alpha_trap_shadows and
18635         alpha_align_insn from here.
18637         (alpha_pad_function_end): Do not skip BARRIERs.
18639 2014-07-10  Rong Xu  <xur@google.com>
18641         Add gcov-tool: an offline gcda profile processing tool support.
18642         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18643         (gcov_is_error): Ditto.
18644         (gcov_read_string): Ditto.
18645         (gcov_read_sync): Ditto.
18646         * gcov-io.h: Move counter defines to gcov-counter.def.
18647         * gcov-dump.c (tag_counters): Use gcov-counter.def.
18648         * coverage.c: Ditto.
18649         * gcov-tool.c: Offline gcda profile processing tool.
18650         (unlink_gcda_file): Remove one gcda file.
18651         (unlink_profile_dir): Remove gcda files from the profile path.
18652         (gcov_output_files): Output gcda files to an output dir.
18653         (profile_merge): Merge two profiles in directory.
18654         (print_merge_usage_message): Print merge usage.
18655         (merge_usage): Print merge usage and exit.
18656         (do_merge): Driver for profile merge sub-command.
18657         (profile_rewrite): Rewrite profile.
18658         (print_rewrite_usage_message): Print rewrite usage.
18659         (rewrite_usage): Print rewrite usage and exit.
18660         (do_rewrite): Driver for profile rewrite sub-command.
18661         (print_usage): Print gcov-info usage and exit.
18662         (print_version): Print gcov-info version.
18663         (process_args): Process arguments.
18664         (main): Main routine for gcov-tool.
18665         * Makefile.in: Build and install gcov-tool.
18666         * gcov-counter.def: New file split from gcov-io.h.
18667         * doc/gcc.texi: Include gcov-tool.texi.
18668         * doc/gcov-tool.texi: Document for gcov-tool.
18670 2014-07-10  Richard Biener  <rguenther@suse.de>
18672         PR tree-optimization/61757
18673         * tree-ssa-dom.c (loop_depth_of_name): Restore.
18674         (propagate_rhs_into_lhs): Revert part of last change.
18676 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
18678         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18679         FUNCTION_DECLs.
18681 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
18683         PR middle-end/53590
18684         * function.c (allocate_struct_function): Revert r188667 change.
18686         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18688 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
18690         * doc/install.texi: Remove links to defunct package providers for
18691         Solaris.
18693 2014-07-09  Tom de Vries  <tom@codesourcery.com>
18695         * final.c (get_call_fndecl): Declare.
18696         (self_recursive_call_p): New function.
18697         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18699 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18701         * ipa-devirt.c (record_node): Walk through aliases.
18703 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18705         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18707 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18709         Revert:
18710         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18712 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18714         * ipa-visibility.c (function_and_variable_visibility): Remove
18715         temporary hack disabling local aliases on AIX.
18717 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18719         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18720         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18722 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18724         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18725         * rs6000/rs6000.c: Inline output of .set instruction.
18726         (declare_alias_data): New struct.
18727         (rs6000_declare_alias): New function.
18728         (rs6000_xcoff_declare_function_name): Use it.
18729         (rs6000_xcoff_declare_object_name): New function.
18730         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18731         (ASM_OUTPUT_DEF): Turn to empty definition.
18733 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18735         PR bootstrap/61679
18736         * hash-table.h: use hash_table::value_type instead of
18737         Descriptor::value_type in the return types of several methods.
18739 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18741         * tree-pass.h (pass_data): Remove has_execute member.
18742         * passes.c (execute_one_pass): Don't check pass->has_execute.
18743         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18744         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18745         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18746         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18747         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18748         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18749         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18750         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18751         gimple-low.c, gimple-ssa-isolate-paths.c,
18752         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18753         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18754         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18755         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18756         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18757         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18758         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18759         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18760         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18761         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18762         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18763         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18764         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18765         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18766         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18767         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18768         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18769         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18770         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18771         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18772         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18773         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18774         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18775         web.c: Remove initializer for pass_data::has_execute.
18777 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18779         * graphite-htab.h: Use hash_map instead of hash_table.
18780         * graphite-clast-to-gimple.c: Adjust.
18781         * passes.c: Use hash_map instead of hash_table.
18782         * sese.c: Likewise.
18783         * sese.h: Remove now unused code.
18785 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
18787         PR target/61599
18788         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18789         than zero.
18791 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
18793         PR rtl-optimization/61673
18794         * combine.c (simplify_comparison): Test just mode's sign bit
18795         in tmode rather than the sign bit and any bits above it.
18797 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
18799         * graphite-isl-ast-to-gimple.c (generate_isl_context):
18800         Add __isl_give to the declaration.
18801         (generate_isl_schedule): Likewise.
18802         (scop_to_isl_ast): Likewise.
18804 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18806         * config/arm/arm.c (cortexa5_extra_costs): New table.
18807         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18809 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
18811         PR tree-optimization/61725
18812         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18813         range, use range_includes_zerop_p instead of integer_zerop on
18814         vr0->min, only use log2 of max if min is not negative.
18816 2014-07-08  Richard Biener  <rguenther@suse.de>
18818         * tree-ssa-dom.h (loop_depth_of_name): Remove.
18819         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18820         restriction on loop depth difference.
18821         (record_equality): Likewise.
18822         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
18823         (loop_depth_of_name): Remove.
18824         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18825         restriction on loop depth difference.
18826         (init_copy_prop): Likewise.
18828 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18830         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18831         parameter.
18832         (walk_aliased_vdefs): Likewise.
18833         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18834         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18835         (detect_type_change_from_memory_writes): Check if entry was reached.
18837 2014-07-08  Richard Biener  <rguenther@suse.de>
18839         PR tree-optimization/61681
18840         * tree-ssa-structalias.c (find_what_var_points_to): Expand
18841         NONLOCAL inside ESCAPED.
18843 2014-07-08  Richard Biener  <rguenther@suse.de>
18845         PR tree-optimization/61680
18846         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18847         Handle properly all read-write dependences with group accesses.
18849 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
18851         PR tree-optimization/61576
18852         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18853         block containing reduction statement is predecessor of phi basi block.
18855 2014-07-08  Marek Polacek  <polacek@redhat.com>
18857         PR c/60226
18858         * fold-const.c (round_up_loc): Change the parameter type.
18859         Remove assert.
18860         * fold-const.h (round_up_loc): Adjust declaration.
18861         * stor-layout.c (finalize_record_size): Check for too large types.
18863 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
18865         * symtab.c: Include calls.h.
18866         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18868 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
18870         * config/rs6000/rs6000.c (output_vec_const_move): Handle
18871         little-endian code generation.
18872         * config/rs6000/spe.md (spe_evmergehi): Rename to...
18873         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
18874         (spe_evmergehilo): Rename to...
18875         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
18876         (spe_evmergelo): Rename to...
18877         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
18878         (spe_evmergelohi): Rename to...
18879         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
18880         (spe_evmergehi, spe_evmergehilo): New expanders.
18881         (spe_evmergelo, spe_evmergelohi): Likewise.
18882         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18883         (*frob_tf_ti): Likewise.
18884         (*frob_<mode>_di_2): Likewise.
18885         (*frob_tf_di_8_2): Likewise.
18886         (*frob_di_<mode>): Likewise.
18887         (*frob_ti_tf): Likewise.
18888         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18889         (*frob_ti_<mode>_8_2): Likewise.
18890         (*frob_ti_tf_2): Likewise.
18891         (mov_si<mode>_e500_subreg0): Rename to...
18892         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
18893         endianness only.
18894         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18895         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18896         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
18897         the big endianness only.
18898         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18899         (*mov_si<mode>_e500_subreg0_2): Rename to...
18900         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
18901         big big endianness only.
18902         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18903         (*mov_si<mode>_e500_subreg4): Rename to...
18904         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
18905         endianness only.
18906         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18907         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18908         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
18909         the big endianness only.
18910         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18911         pattern.
18912         (*mov_si<mode>_e500_subreg4_2): Rename to...
18913         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
18914         endianness only.
18915         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18916         (*mov_sitf_e500_subreg8): Rename to...
18917         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
18918         endianness only.
18919         (*mov_sitf_e500_subreg8_le): New instruction pattern.
18920         (*mov_sitf_e500_subreg8_2): Rename to...
18921         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
18922         endianness only.
18923         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18924         (*mov_sitf_e500_subreg12): Rename to...
18925         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
18926         endianness only.
18927         (*mov_sitf_e500_subreg12_le): New instruction pattern.
18928         (*mov_sitf_e500_subreg12_2): Rename to...
18929         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
18930         endianness only.
18931         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18933 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
18935         * asan.c (instrument_strlen_call): Do not instrument first byte
18936         in strlen if already instrumented.
18938 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18940         * config/arm/arm.opt (mwords-little-endian): Delete.
18941         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18942         of TARGET_LITTLE_WORDS.
18943         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18944         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18945         warning.
18946         * doc/invoke.texi: Remove references to -mwords-little-endian.
18948 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
18950         * expmed.c (struct init_expmed_rtl): Change all fields but
18951         pow2 and cint from struct rtx_def to rtx.
18952         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18953         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
18954         at the end again.
18956 2014-07-06  Marek Polacek  <polacek@redhat.com>
18958         PR c/6940
18959         * doc/invoke.texi: Document -Wsizeof-array-argument.
18961 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
18963         * wide-int.h (wide_int_storage): Change declaration from struct
18964         to class.
18966 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
18968         * cgraph.c (cgraph_create_indirect_edge): Update call of
18969         get_polymorphic_call_info.
18970         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18971         (possible_polymorphic_call_targets): Add parameter call.
18972         (decl_maybe_in_construction_p): New predicate.
18973         (get_polymorphic_call_info): Add parameter call;
18974         use decl_maybe_in_construction_p.
18975         * gimple-fold.c (fold_gimple_assign): Update use of
18976         possible_polymorphic_call_targets.
18977         (gimple_fold_call): Likewise.
18978         * ipa-prop.c: Inlcude calls.h
18979         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18980         (param_type_may_change_p): New predicate.
18981         (detect_type_change_from_memory_writes): Break out from ...
18982         (detect_type_change): ... this one; use param_type_may_change_p.
18983         (detect_type_change_ssa): Use param_type_may_change_p.
18984         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18986 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
18988         PR target/49423
18989         * config/arm/arm-protos.h (arm_legitimate_address_p,
18990         arm_is_constant_pool_ref): Add prototypes.
18991         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18992         (arm_is_constant_pool_ref) New function.
18993         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18994         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18995         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18996         operand. Remove pool_range and neg_pool_range attributes.
18997         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18998         pool_range and neg_pool_range attributes.
18999         * config/arm/constraints.md (Uh): New constraint.
19000         (Uq): Don't allow constant pool references.
19002 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
19004         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19005         (move_lo_quad_internal_be_<mode>): Likewise.
19006         (move_lo_quad_<mode>): Convert to define_expand.
19007         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19008         (aarch64_simd_move_hi_quad_be_<mode>): New.
19009         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19010         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19011         (aarch64_combinez_be<mode>): New.
19012         (aarch64_combine<mode>): Convert to define_expand.
19013         (aarch64_combine_internal<mode>): New.
19014         (aarch64_simd_combine<mode>): Remove bogus RTL description.
19016 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19018         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19019         combination of earlyclobber and read/write modifiers.
19021 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19023         * config/aarch64/aarch64-simd.md
19024         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19026 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
19028         PR target/61714
19029         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19031 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
19033         PR middle-end/61654
19034         * cgraphunit.c (expand_thunk): Call free_dominance_info.
19036         PR tree-optimization/61684
19037         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19038         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19040 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19041             Kito Cheng  <kito@0xlab.org>
19042             Monk Chiang  <sh.chiang04@gmail.com>
19044         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19045         (nds32_symbol_load_store_p): Move to ...
19046         (nds32_fp_as_gp_check_available): Move to ...
19047         * config/nds32/nds32-fp-as-gp.c: ... here.
19048         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19049         extern declaration.
19051 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19052             Kito Cheng  <kito@0xlab.org>
19053             Monk Chiang  <sh.chiang04@gmail.com>
19055         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19056         (nds32_expand_store_multiple): Move to ...
19057         (nds32_expand_movmemqi): Move to ...
19058         * config/nds32/nds32-memory-manipulation.c: ... here.
19060 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19061             Kito Cheng  <kito@0xlab.org>
19062             Monk Chiang  <sh.chiang04@gmail.com>
19064         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19065         (nds32_output_casesi_pc_relative): Move to ...
19066         (nds32_output_casesi): Move to ...
19067         (nds32_mem_format): Move to ...
19068         (nds32_output_16bit_store): Move to ...
19069         (nds32_output_16bit_load): Move to ...
19070         (nds32_output_32bit_store): Move to ...
19071         (nds32_output_32bit_load): Move to ...
19072         (nds32_output_32bit_load_s): Move to ...
19073         (nds32_output_stack_push): Move to ...
19074         (nds32_output_stack_pop): Move to ...
19075         * config/nds32/nds32-md-auxiliary.c: ... here.
19077 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19078             Ling-Hua Tseng  <uranus@tinlans.org>
19080         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19081         the purpose of this file.
19083 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19084             Kito Cheng  <kito@0xlab.org>
19085             Monk Chiang  <sh.chiang04@gmail.com>
19087         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19088         (nds32_address_cost): Move implementation to ...
19089         * config/nds32/nds32-cost.c: ... here.
19090         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19091         (nds32_address_cost_impl): Declare.
19093 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19094             Kito Cheng  <kito@0xlab.org>
19095             Monk Chiang  <sh.chiang04@gmail.com>
19097         * config/nds32/nds32.c
19098         (nds32_consecutive_registers_load_store_p): Move to ...
19099         (nds32_valid_multiple_load_store): Move to ...
19100         (nds32_valid_stack_push_pop): Move to ...
19101         (nds32_can_use_bclr_p): Move to ...
19102         (nds32_can_use_bset_p): Move to ...
19103         (nds32_can_use_btgl_p): Move to ...
19104         (nds32_can_use_bitci_p): Move to ...
19105         * config/nds32/nds32-predicates.c: ... here.
19107 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19108             Kito Cheng  <kito@0xlab.org>
19109             Monk Chiang  <sh.chiang04@gmail.com>
19111         * config/nds32/nds32.c
19112         (nds32_expand_builtin_null_ftype_reg): Move to ...
19113         (nds32_expand_builtin_reg_ftype_imm): Move to ...
19114         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19115         (nds32_init_builtins): Move implementation to ...
19116         (nds32_expand_builtin): Move implementation to ...
19117         * config/nds32/nds32-intrinsic.c: ... here.
19118         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19119         (nds32_expand_builtin_impl): Declare.
19121 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19122             Kito Cheng  <kito@0xlab.org>
19123             Monk Chiang  <sh.chiang04@gmail.com>
19125         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19126         (nds32_emit_section_tail_template): Move to ...
19127         (nds32_emit_isr_jmptbl_section): Move to ...
19128         (nds32_emit_isr_vector_section): Move to ...
19129         (nds32_emit_isr_reset_conten): Move to ...
19130         (nds32_check_isr_attrs_conflict): Move to ...
19131         (nds32_construct_isr_vectors_information): Move to ...
19132         (nds32_asm_file_start): Move implementation to ...
19133         (nds32_asm_file_end): Move implementation to ...
19134         * config/nds32/nds32-isr.c: ... here.
19135         * config/nds32/nds32-protos.h
19136         (nds32_check_isr_attrs_conflict): Declare.
19137         (nds32_construct_isr_vectors_information): Declare.
19138         (nds32_asm_file_start_for_isr): Declare.
19139         (nds32_asm_file_end_for_isr): Declare.
19141 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19142             Kito Cheng  <kito@0xlab.org>
19143             Monk Chiang  <sh.chiang04@gmail.com>
19145         * config.gcc (nds32*): Add new modules to extra_objs.
19146         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19147         (nds32be-*-*): Likewise.
19148         * config/nds32/nds32-cost.c: New file.
19149         * config/nds32/nds32-fp-as-gp.c: New file.
19150         * config/nds32/nds32-intrinsic.c: New file.
19151         * config/nds32/nds32-isr.c: New file.
19152         * config/nds32/nds32-md-auxiliary.c: New file.
19153         * config/nds32/nds32-memory-manipulation.c: New file.
19154         * config/nds32/nds32-pipelines-auxiliary.c: New file.
19155         * config/nds32/nds32-predicates.c: New file.
19156         * config/nds32/t-nds32: New file.
19158 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19160         PR tree-optimization/61682
19161         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19162         using cases and when one of the operands is equal to 1.
19164 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
19166         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19167         ashr<mode>3): Correct mode of operands[2].
19168         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19169         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19170         Correct mode of operands[2].  Fix split condition.
19172 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
19174         * arm.md (arch): Add armv6_or_vfpv3.
19175         (arch_enabled): Add test for the above.
19176         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19177         on VFP9.
19178         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19180 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19182         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19183         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19184         HWI 1 and negate the unsigned value.
19185         * expmed.c (expand_sdiv_pow2): For modes wider than word always
19186         use AND instead of shift.
19187         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19189 2014-07-03  Marek Polacek  <polacek@redhat.com>
19191         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19192         (-fsanitize=float-divide-by-zero): Move to the table with
19193         -fsanitize=undefined suboptions.
19194         (-fsanitize=float-cast-overflow): Likewise.
19196 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
19198         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19199         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19200         endianness.
19202 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19204         * loop-invariant.c (struct invariant): Add a new member: eqno;
19205         (find_identical_invariants): Update eqno;
19206         (create_new_invariant): Init eqno;
19207         (get_inv_cost): Compute comp_cost with eqno;
19209 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
19211         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19212         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19213         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19214         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19215         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19217 2014-07-02  Christian Bruel  <christian.bruel@st.com>
19219         PR target/29349
19220         PR target/53513
19221         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19222         (make_preds_opaque): Delete.
19223         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19224         (commit_mode_sets): New function.
19225         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19226         Process all modes at once.
19227         * basic-block.h (pre_edge_lcm_avs): Declare.
19228         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19229         Call clear_aux_for_edges. Fix comments.
19230         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19231         (pre_edge_rev_lcm): Idem.
19232         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19233         parameter.
19234         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19235         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19236         Idem.
19237         * config/i386/i386.c (x96_emit_mode_set): Idem.
19238         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19239         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
19240         (fpscr_toggle) Disallow from delay slot.
19241         * target.def (emit_mode_set): Add prev_mode parameter.
19242         * doc/tm.texi: Regenerate.
19244 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19246         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19247         variable i.
19249 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19251         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19252         vtable_pointer_value_to_vtable): Constify.
19253         (contains_polymorphic_type_p): Declare.
19254         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19255         vtable_pointer_value_to_vtable): Constify.
19256         (contains_polymorphic_type_p): New predicate.
19257         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19258         polymorphic types.
19259         (ipa_set_ancestor_jf): Likewise.
19260         (detect_type_change): Return false in easy cases.
19261         (compute_complex_assign_jump_func): Require type to contain
19262         polymorphic type.
19263         (compute_known_type_jump_func): Likewise.
19265 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19267         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19268         Remove.
19269         (type_in_anonymous_namespace_p): Constify argument.
19270         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19271         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19272         (main_odr_variant): New function.
19273         (hash_type_name): Make static; update assert; do not ICE on
19274         non-records.
19275         (types_same_for_odr): Bring here from tree.c; simplify and remove
19276         old structural comparing code that doesn't work for templates.
19277         (odr_hasher::equal): Update assert.
19278         (add_type_duplicate): Return true when bases should be computed;
19279         replace incomplete loader by complete; do not output duplicated
19280         warnings; do not ICE on non-records; set odr_violated flag.
19281         (get_odr_type): Be ready to replace incomplete type by complete
19282         one; work on ODR variants instead of main variants; reorder item
19283         in array so bases have still smaller indexes.
19284         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19285         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19287 2014-07-01  Cary Coutant  <ccoutant@google.com>
19289         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19290         lookup.
19291         (resolve_addr_in_expr): When replacing the rtx in a location list
19292         entry, get a new address table entry.
19293         (dwarf2out_finish): Call index_location_lists even if there are no
19294         addr_index_table entries yet.
19296 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19298         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19299         change for not being obvious.
19301 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19303         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19304         unused argument.
19306 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19308         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19309         (vcagt_f64): Likewise.
19310         (vcale_f64): Likewise.
19311         (vcaled_f64): Likewise.
19312         (vcales_f32): Likewise.
19313         (vcalt_f64): Likewise.
19314         (vcaltd_f64): Likewise.
19315         (vcalts_f32): Likewise.
19317 2014-07-01  Marek Polacek  <polacek@redhat.com>
19319         * doc/invoke.texi: Document -Wint-conversion.
19321 2014-07-01  Marek Polacek  <polacek@redhat.com>
19323         PR c/58286
19324         * doc/invoke.texi: Document -Wincompatible-pointer-types.
19326 2014-07-01  Martin Liska  <mliska@suse.cz>
19328         IPA REF alias refactoring
19329         * cgraph.h (iterate_direct_aliases): New function.
19330         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19331         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19332         FOR_EACH_ALIAS added.
19333         (cgraph_for_node_and_aliases): Likewise.
19334         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19335         * ipa-inline.c (reset_edge_caches): Likewise.
19336         (update_caller_keys): Likewise.
19337         * trans-mem.c (ipa_tm_execute): Likewise.
19338         *varpool.c (varpool_analyze_node): Likewise.
19339         (varpool_for_node_and_aliases): Likewise.
19340         * ipa-ref.h (first_alias): New function.
19341         (last_alias): Likewise.
19342         (has_aliases_p): Likewise.
19343         * ipa-ref.c (ipa_ref::remove_reference): Removal function
19344         is sensitive to IPA_REF_ALIASes.
19345         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19346         are put at the beginning of the list.
19347         (symtab_node::iterate_direct_aliases): New function.
19349 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19351         Revert:
19352         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19353         type is complete.
19354         (write_ts_type_common_tree_pointers): Do not stream fields not set
19355         for incomplete types; do not stream duplicated fields for variants;
19356         sanity check that variant and type match.
19357         (write_ts_type_non_common_tree_pointers): Likewise.
19358         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19359         TYPE_SIZE whether type is complete.
19360         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19361         write_ts_type_common_tree_pointers
19362         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19364 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
19366         * var-tracking.c (add_stores): Return instead of asserting if old
19367         and new values for conditional store are the same.
19369 2014-06-30  Richard Henderson  <rth@redhat.com>
19371         PR rtl-opt/61608
19372         PR target/39284
19373         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19374         the cfg if there were any changes.
19375         * passes.def: Revert move of peephole2 after reorder_blocks;
19376         move duplicate_computed_gotos before peephole2.
19378 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
19380         * except.c (emit_note_eh_region_end): New helper function.
19381         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19382         emit EH_REGION_END note.
19383         * jump.c (cleanup_barriers): Do not split a call and its
19384         corresponding CALL_ARG_LOCATION note.
19386 2014-06-30  Jeff Law  <law@redhat.com>
19388         PR tree-optimization/61607
19389         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19390         deeper into the SSA_NAME_VALUE chain.
19392 2014-06-30  Marek Polacek  <polacek@redhat.com>
19394         * convert.c (convert_to_integer): Don't instrument conversions if the
19395         function has no_sanitize_undefined attribute.
19396         * ubsan.c: Don't run the ubsan pass if the function has
19397         no_sanitize_undefined attribute.
19399 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19401         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19402         -fsanitize=undefined suboptions.
19404 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
19406         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19407         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19408         against bigendian and adjust indices.
19410 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19412         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
19414 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19416         PR target/61633
19417         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19418         Add alternative; make early clobber.  Adjust both split patterns
19419         to use operand 0 as the working register.
19421 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19423         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19424         as ira_object_id_map might be NULL, or 1.
19426 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19428         * loop-invariant.c (get_inv_cost): Handle register class.
19429         (gain_for_invariant): Check the register pressure of the inv
19430         and its overlapped register class, other than all.
19432 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19434         * doc/invoke.texi (Optimize Options): Fix descriptions of
19435         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19437 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
19439         * doc/extend.texi (Function Attributes): Update 'naked' attribute
19440         documentation.
19442 2014-06-29  Tobias Grosser <tobias@grosser.es>
19444         PR bootstrap/61650
19445         * graphite-isl-ast-to-gimple.c: Add missing guards.
19447 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19449         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19450         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19451         * flag-types.h: Add new enum fgraphite_generator.
19452         * graphite-isl-ast-to-gimple.c: New.
19453         * graphite-isl-ast-to-gimple.h: New.
19454         * graphite.c (graphite_transform_loops): Add choice of Graphite
19455         code generator, which depends on flag_graphite_code_gen.
19457 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19459         * graphite-dependences.c (subtract_commutative_associative_deps):
19460         Add NULL checking of the following variables: must_raw_no_source,
19461         may_raw_no_source, must_war_no_source, may_war_no_source,
19462         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19463         must_war, may_war, must_waw, may_waw.
19465 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19467         * graphite-clast-to-gimple.c: gloog is renamed to
19468         graphite_regenerate_ast_cloog.  gloog_error is renamed to
19469         graphite_regenerate_error.
19470         * graphite-clast-to-gimple.h: The definition of the struct
19471         bb_pbb_def is moved to graphite-htab.h.
19472         Add inclusion of the hash-table.h.
19473         * graphite-htab.h: The declaration of the function gloog is moved
19474         to graphite-clast-to-gimple.h and renamed to
19475         graphite_regenerate_ast_cloog.
19476         * graphite.c (graphite_transform_loops): gloog is renamed
19477         to graphite_regenerate_ast_cloog.
19479 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19481         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19482         type is complete.
19483         (write_ts_type_common_tree_pointers): Do not stream fields not set
19484         for incomplete types; do not stream duplicated fields for variants;
19485         sanity check that variant and type match.
19486         (write_ts_type_non_common_tree_pointers): Likewise.
19487         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19488         TYPE_SIZE whether type is complete.
19489         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19490         write_ts_type_common_tree_pointers
19491         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19493 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19495         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19497 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19499         * tree-inline.c (remap_type_1): Do not duplicate fields
19500         that are shared in between type and its main variant.
19502 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19504         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19505         of the type.
19506         (ipa_set_ancestor_jf) Likewise.
19507         (check_stmt_for_type_change): Check that we work on main variant.
19508         (detect_type_change): Look into main variant.
19509         (compute_known_type_jump_func): Check that main variant has BINFO.
19511 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19513         * ipa-devirt.c (set_type_binfo): New function.
19514         (add_type_duplicate): Use it.
19515         (get_odr_type): Sanity check that binfos points to main variants.
19516         (get_class_context): Be sure the context's outer_type is main variant.
19517         (contains_type_p): Walk main variant.
19518         (get_polymorphic_call_info_for_decl): Set outer_type to be
19519         main variant.
19520         (get_polymorphic_call_info): Likewise.
19521         (possible_polymorphic_call_targets): Sanity check that we operate
19522         on main variant.
19524 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19526         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19528 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19530         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19531         accidental change due to wide-int branch merge.
19533 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19535         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19536         compressed debug support.
19537         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19538         * configure: Regenerate.
19539         * config.in: Regenerate.
19540         * common.opt (compressed_debug_sections): New enum.
19541         (gz, gz=): New options.
19542         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19543         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19544         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19545         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19546         LINK_COMPRESS_DEBUG_SPEC.
19547         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19548         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19549         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19550         (Debugging Options): Document -gz[=type].
19552 2014-06-27  Martin Jambor  <mjambor@suse.cz>
19554         PR ipa/61160
19555         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19556         args_to_skip, use those from node instead.  Copy args_to_skip and
19557         combined_args_to_skip from node to the new thunk.
19558         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19559         (cgraph_create_virtual_clone): Moved computation of
19560         combined_args_to_skip...
19561         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19563 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
19565         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19566         redundant diagnostic machinary.
19568 2014-06-27  Richard Biener  <rguenther@suse.de>
19570         * tree-ssa-math-opts.c (bswap_replace): Fix
19571         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19573 2014-06-27  Martin Liska  <mliska@suse.cz>
19575         * gimple.h (gimple_location_safe): New function introduced.
19576         * cgraphunit.c (walk_polymorphic_call_targets): Usage
19577         of gimple_location_safe replaces gimple_location.
19578         (gimple_fold_call): Likewise.
19579         * ipa-devirt.c (ipa_devirt): Likewise.
19580         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19581         * ipa.c (walk_polymorphic_call_targets): Likewise.
19582         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19584 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
19586         PR tree-optimization/57233
19587         PR tree-optimization/61299
19588         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19589         functions.
19590         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
19591         would be lowered to scalar shifts, check if corresponding
19592         shifts and vector BIT_IOR_EXPR are supported and don't lower
19593         or lower just to narrower vector type in that case.
19594         * expmed.c (expand_shift_1): Fix up handling of vector
19595         shifts and rotates.
19597 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
19599         PR target/61586
19600         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19602 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
19604         * doc/invoke.texi (-fsemantic-interposition): Document.
19605         * common.opt (fsemantic-interposition): New flag.
19606         * varasm.c (decl_replaceable_p): Use it.
19608 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19610         PR target/61542
19611         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19612         extraction other than index 3.
19614 2014-06-26  Teresa Johnson  <tejohnson@google.com>
19616         * doc/invoke.texi: Fix typo.
19617         * dumpfile.c: Add support for documented -fdump-* options
19618         optimized/missed/note/optall.
19620 2014-06-26  Martin Jambor  <mjambor@suse.cz>
19622         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19623         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19624         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19625         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19626         * opts.c (default_options_optimization): Set
19627         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19628         * doc/invoke.texi (allow-load-data-races)
19629         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19630         (allow-store-data-races): Document the new default.
19632 2014-06-26  Martin Jambor  <mjambor@suse.cz>
19634         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19635         renamed to ipa_impossible_devirt_target.  Fix typo.
19636         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19637         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19638         ipa_impossible_devirt_target.
19640 2014-06-26  Richard Biener  <rguenther@suse.de>
19642         PR tree-optimization/61607
19643         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19644         explaining why we restrict copies on loop depth.
19645         * tree-ssa-dom.c (cprop_operand): Remove restriction on
19646         on loop depth.
19647         (record_equivalences_from_phis): Instead add it here.
19649 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
19651         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19652         (LTO_WRAPPER_OBJS): New variable.
19653         (lto-wrapper$(exeext)): Use it.
19654         * collect2.c: Include "collect-utils.h".
19655         (verbose, debug): Remove variables.
19656         (at_file_supplied): No longer static.
19657         (tool_name): New variable.
19658         (do_wait, fork_execute, maybe_unlink): Don't declare.
19659         (tool_cleanup): No longer static.
19660         (notice): Remove function.
19661         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19662         fork_execute calls.
19663         (collect_wait, do_wait, collect_execute): Remove functions.
19664         (maybe_unlink): No longer static.
19665         * collect2.h (verbose, debug): Don't declare.
19666         (at_file_supplied): Declare.
19667         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
19668         changed.
19669         (collect_execute): Replace with implementation from collect2, plus a
19670         new arg use_atfile.  All callers changed.
19671         (collect_wait): Replace with implementation from collect2.
19672         (maybe_unlink_file): Remove function.
19673         (fork_execute): Replace with implementation from collect2, plus a
19674         new arg use_atfile.  All callers changed.
19675         (do_wait): Add call to utils_cleanup to the error path.
19676         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19677         (tool_cleanup): Adjust declarations.
19678         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19679         * tlink.c: Include "collect-utils.h".
19680         (tlink_execute): New arg use_atfile.  All callers changed.
19681         (tlink_init, tlink_execute): Remove declarations.
19683         * collect-utils.c (save_temps): New variable.
19684         (do_wait): Use it instead of debug.  Use fatal_error.
19685         * collect-utils.h (save_temps): Declare.
19686         * collect2.c (verbose): Rename from vflag.  All uses changed.
19687         (tool_cleanup): New function, copied from collect_atexit.
19688         (collect_atexit, handler): Just call it.
19689         * collect2.h (verbose): Declaration renamed from vflag.
19690         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19691         debug.
19693         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19694         (lto-wrapper$(exeext)): Link with collect-utils.o.
19695         * collect-utils.c: New file.
19696         * collect-utils.h: New file.
19697         * lto-wrapper.c: Include "collect-utils.h".
19698         (args_name): Delete variable.
19699         (tool_name): New variable.
19700         (tool_cleanup): New function.
19701         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
19702         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19703         (fork_execute): Remove functions.
19705 2014-06-26  Nick Clifton  <nickc@redhat.com>
19707         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19709         * doc/extend.texi (Function Attributes): Fix typo in description
19710         of RX vector attribute.
19712 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19714         * config.gcc (supported_defaults): Error when passing either
19715         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19717 2014-06-26  Richard Biener  <rguenther@suse.de>
19719         * tree-ssa-dom.c (cprop_operand): Remove restriction on
19720         propagating volatile pointers.
19722 2014-06-26  Richard Biener  <rguenther@suse.de>
19724         PR tree-optimization/61607
19725         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19726         loop if we redirected its latch edge.
19727         (thread_block_1): Do not cancel loops prematurely.
19729 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
19731         * toplev.c (backend_init_target): Move init_emit_regs and
19732         init_regs to...
19733         (backend_init) ... here; skip ira_init_once and backend_init_target.
19734         (target_reinit) ... and here; clear
19735         this_target_rtl->lang_dependent_initialized.
19736         (lang_dependent_init_target): Clear
19737         this_target_rtl->lang_dependent_initialized;
19738         break out rtl initialization to ...
19739         (initialize_rtl): ... here; call also backend_init_target
19740         and ira_init_once.
19741         * toplev.h (initialize_rtl): New function.
19742         * function.c: Include toplev.h
19743         (init_function_start): Call initialize_rtl.
19744         * rtl.h (target_rtl): Add target_specific_initialized,
19745         lang_dependent_initialized.
19747 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
19748             Jakub Jelinek  <jakub@redhat.com>
19750         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19752 2014-06-25  Tom de Vries  <tom@codesourcery.com>
19754         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19756 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19758         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19759         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19760         Issue a strict overflow warning if appropriate.
19762 2014-06-25  Martin Liska  <mliska@suse.cz>
19764         IPA REF refactoring
19765         * Makefile.in: Removed header file (ipa-ref-inline.h).
19766         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19767         called.
19768         (cgraph_speculative_call_info): Likewise.
19769         (cgraph_for_node_thunks_and_aliases): Likewise.
19770         (cgraph_for_node_and_aliases): Likewise.
19771         (verify_cgraph_node): Likewise.
19772         * cgraph.h: Batch of IPA REF functions become member functions of
19773         symtab_node: add_reference, maybe_add_reference, clone_references,
19774         clone_referring, clone_reference, find_reference,
19775         remove_stmt_references, remove_all_references,
19776         remove_all_referring, dump_references, dump_referring,
19777         has_alias_p, iterate_reference, iterate_referring.
19778         * cgraphbuild.c (record_reference): New IPA REF function used.
19779         (record_type_list): Likewise.
19780         (record_eh_tables): Likewise.
19781         (mark_address): Likewise.
19782         (mark_load): Likewise.
19783         (mark_store): Likewise.
19784         (pass_build_cgraph_edges): Likewise.
19785         (rebuild_cgraph_edge): Likewise.
19786         (cgraph_rebuild_references): Likewise.
19787         (pass_remove_cgraph_callee_edges): Likewise.
19788         * cgraphclones.c (cgraph_clone_node): Likewise.
19789         (cgraph_create_virtual_clone): Likewise.
19790         (cgraph_materialize_clone): Likewise.
19791         (cgraph_materialize_all_clones): Likewise.
19792         * cgraphunit.c (cgraph_reset_node): Likewise.
19793         (cgraph_reset_node): Likewise.
19794         (analyze_function): Likewise.
19795         (assemble_thunks_and_aliases): Likewise.
19796         (expand_function): Likewise.
19797         * ipa-comdats.c (propagate_comdat_group): Likewise.
19798         (enqueue_references): Likewise.
19799         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19800         (create_specialized_node): Likewise.
19801         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19802         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19803         * ipa-inline.c (reset_edge_caches): Likewise.
19804         (update_caller_keys): Likewise.
19805         (execute): Likewise.
19806         * ipa-prop.c (remove_described_reference): Likewise.
19807         (propagate_controlled_uses): Likewise.
19808         (ipa_edge_duplication_hook): Likewise.
19809         (ipa_modify_call_arguments): Likewise.
19810         * ipa-pure-const.c (propagate_pure_const): Likewise.
19811         * ipa-ref-inline.h: Header file removed, functions moved
19812         to symtab_node class.
19813         * ipa-ref.c (remove_reference): New class member function.
19814         (cannot_lead_to_return): New class member function.
19815         (referring_ref_list): Likewise.
19816         (referred_ref_list): Likewise.
19817         Rest of functions moved to symtab_node class.
19818         * ipa-ref.h: New member functions remove_reference,
19819         cannot_lead_to_return, referring_ref_list, referred_ref_list added
19820         to ipa_ref class.
19821         ipa_ref_list class has new member functions: first_reference,
19822         first_referring, clear, nreferences.
19823         * ipa-reference.c (analyze_function): New IPA REF function used.
19824         (write_node_summary_p): Likewise.
19825         (ipa_reference_write_optimization_summary): Likewise.
19826         * ipa-split.c (split_function): Likewise.
19827         * ipa-utils.c (ipa_reverse_postorder): Likewise.
19828         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19829         (function_and_variable_visibility): Likewise.
19830         * ipa.c (has_addr_references_p): Likewise.
19831         (process_references): Argument type changed.
19832         (symtab_remove_unreachable_nodes): New IPA REF function used.
19833         (process_references): Likewise.
19834         (set_writeonly_bit): Likewise.
19835         * lto-cgraph.c: Implementation of new symtab_node member functions
19836         that uses new IPA REF functions.
19837         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19838         function used.
19839         * lto-streamer-out.c (output_symbol_p): Likewise.
19840         * lto-streamer.h (referenced_from_this_partition_p): Argument type
19841         changed.
19842         * symtab.c: Implementation of new IPA REF API.
19843         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19844         (ipa_tm_create_version): Likewise.
19845         (ipa_tm_execute): Likewise.
19846         * tree-emutls.c (gen_emutls_addr): Likewise.
19847         * tree-inline.c (copy_bb): Likewise.
19848         (delete_unreachable_blocks_update_callgraph): Likewise.
19849         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19850         (varpool_for_node_and_aliases): Likewise.
19852 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
19854         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19856 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
19858         PR bootstrap/61598
19859         * fold-const.c (fold_checksum_tree): Use a hash_table of const
19860         tree_node * instead of tree_node *.
19861         (fold): Adjust.
19862         (print_fold_checksum): Likewise.
19863         (fold_check_failed): Likewise.
19864         (debug_fold_checksum): Likewise.
19865         (fold_build1_stat_loc): Likewise.
19866         (fold_build2_stat_loc): Likewise.
19867         (fold_build3_stat_loc): Likewise.
19868         (fold_build_call_array_loc): Likewise.
19870 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
19872         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19873         implementation with call to...
19874         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19875         function.
19876         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19877         Declare.
19879 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
19881         PR tree-optimization/57742
19882         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19883         after replacing the statement.
19885 2014-06-25  Nick Clifton  <nickc@redhat.com>
19887         * config/v850/v850.c (GHS_default_section_names): Change to const
19888         char * type.
19889         (GHS_current_section_names): Likewise.
19890         (v850_insert_attributes): Do not build strings, just assign the
19891         names directly.  Change the type of 'chosen_section' to const
19892         char*.
19893         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19894         directly to the array entry.
19895         * config/v850/v850.h (GHS_default_section_names): Change to const
19896         char * type.
19897         (GHS_current_section_names): Likewise.
19899 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
19901         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19902         (LANG_HOOKS_DECLS): Add it.
19903         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19904         has correct type.
19905         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19906         * langhooks.h (struct lang_hooks_for_decls): Add
19907         omp_clause_linear_ctor hook.
19908         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19909         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
19910         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
19911         combined simd loop use omp_clause_linear_ctor hook.
19913 2014-06-24  Cong Hou  <congh@google.com>
19915         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19916         pattern recognition.
19917         (type_conversion_p): PROMOTION is true if it's a type promotion
19918         conversion, and false otherwise.  Return true if the given expression
19919         is a type conversion one.
19920         * tree-vectorizer.h: Adjust the number of patterns.
19921         * tree.def: Add SAD_EXPR.
19922         * optabs.def: Add sad_optab.
19923         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19924         * expr.c (expand_expr_real_2): Likewise.
19925         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19926         * gimple.c (get_gimple_rhs_num_ops): Likewise.
19927         * optabs.c (optab_for_tree_code): Likewise.
19928         * tree-cfg.c (estimate_operator_cost): Likewise.
19929         * tree-ssa-operands.c (get_expr_operands): Likewise.
19930         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19931         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19932         * doc/generic.texi: Add document for SAD_EXPR.
19933         * doc/md.texi: Add document for ssad and usad.
19935 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19937         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19938         qualification in cast.
19940 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
19942         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19943         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19944         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19945         (tree_function_decl): ... here.
19946         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19947         streaming of vindex to ...
19948         (write_ts_function_decl_tree_pointers): ... here.
19949         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19950         Do not stream DECL_VINDEX.
19951         (lto_input_ts_function_decl_tree_pointers): Stream it here.
19953 2014-06-24  Catherine Moore  <clm@codesourcery.com>
19954             Sandra Loosemore  <sandra@codesourcery.com>
19956         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19957         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19958         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19960 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
19962         * doc/invoke.texi (Warning Options): Remove duplicated
19963         -Wmaybe-uninitialized.
19965 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
19967         PR tree-optimization/57742
19968         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19969         (handle_builtin_malloc, handle_builtin_memset): New functions.
19970         (strlen_optimize_stmt): Call them.
19971         * passes.def: Move strlen after loop+dom but before vrp.
19973 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
19975         PR target/61570
19976         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19977         model family 6 CPU with has_longmode never use a CPU without
19978         64-bit support.
19980 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19982         PR target/61570
19983         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19984         the last change.
19986 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19988         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19989         * dominance.c (iterate_fix_dominators): Use hash_map instead of
19990         pointer_map.
19991         * hash-map.h: New file.
19992         * ipa-comdats.c: Use hash_map instead of pointer_map.
19993         * ipa.c: Likewise.
19994         * lto-section-out.c: Adjust.
19995         * lto-streamer.h: Replace pointer_map with hash_map.
19996         * symtab.c (verify_symtab): Likewise.
19997         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19998         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19999         * tree-streamer.h: Likewise.
20000         * tree-streamer.c: Adjust.
20001         * pointer-set.h: Remove pointer_map.
20003 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20005         * hash-table.h: Add a template arg to choose between storing values
20006         and storing pointers to values, and then provide partial
20007         specializations for both.
20008         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20009         should store, not the type values should point to.
20010         * tree-into-ssa.c (var_info_hasher): Likewise.
20011         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20012         * tree-complex.c: Adjust.
20013         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20014         table instead of int_tree_map *.
20015         * tree-parloops.c: Adjust.
20016         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20017         type is being stored.
20018         * tree-vectorizer.c: Adjust.
20020 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20022         * hash-table.h: Remove a layer of indirection from hash_table so that
20023         it contains the hash table's data instead of a pointer to the data.
20024         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20025         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20026         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20027         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20028         fold-const.c, gcse.c, ggc-common.c,
20029         gimple-ssa-strength-reduction.c, gimplify.c,
20030         graphite-clast-to-gimple.c, graphite-dependences.c,
20031         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20032         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20033         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20034         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20035         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20036         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20037         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20038         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20039         tree-ssa-live.c, tree-ssa-loop-im.c,
20040         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20041         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20042         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20043         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20044         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20045         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20046         vtable-verify.c, vtable-verify.h: Adjust.
20048 2014-06-24  Richard Biener  <rguenther@suse.de>
20050         PR tree-optimization/61572
20051         * tree-ssa-sink.c (statement_sink_location): Do not sink
20052         loads from hard registers.
20054 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20056         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20057         not mentioned in clauses use private clause if the iterator is
20058         declared in #pragma omp for simd, and when adding lastprivate
20059         instead, add it to the outer #pragma omp for too.  Diagnose
20060         if the variable is private in outer context.  For simd collapse > 1
20061         loops, replace all iterators with temporaries.
20062         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20063         same even in collapse > 1 loops.
20065         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20066         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20067         non-NULL.
20068         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20069         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20070         non-NULL.
20071         (gimplify_adjust_omp_clauses): Likewise.
20072         * omp-low.c (lower_rec_simd_input_clauses,
20073         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20074         safelen the same as safelen(1).
20075         * tree-nested.c (convert_nonlocal_omp_clauses,
20076         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
20077         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20078         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20079         Fixup handling of GIMPLE_OMP_TARGET.
20080         (convert_tramp_reference_stmt, convert_gimple_call): Handle
20081         GIMPLE_OMP_TARGET.
20083 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
20085         PR tree-optimization/61554
20086         * tree-ssa-propagate.c: Include "bitmap.h".
20087         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20088         properly update constructor/destructor.
20089         (substitute_and_fold_dom_walker::before_dom_children):
20090         Remove call to gimple_purge_dead_eh_edges, add bb->index to
20091         need_eh_cleaup instead.
20092         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20093         need_eh_cleanup.
20095 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20097         * varpool.c (dump_varpool_node): Dump used_by_single_function.
20098         * tree-pass.h (make_pass_ipa_single_use): New pass.
20099         * cgraph.h (used_by_single_function): New flag.
20100         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20101         Stream it.
20102         * passes.def (pass_ipa_single_use): Scedule.
20103         * ipa.c (BOTTOM): New macro.
20104         (meet): New function
20105         (propagate_single_user): New function.
20106         (ipa_single_use): New function.
20107         (pass_data_ipa_single_use): New pass.
20108         (pass_ipa_single_use): New pass.
20109         (pass_ipa_single_use::gate): New gate.
20110         (make_pass_ipa_single_use): New function.
20112 2014-06-23  Kai Tietz  <ktietz@redhat.com>
20114         PR target/39284
20115         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20116         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20118 2014-06-23  Richard Biener  <rguenther@suse.de>
20120         * tree-ssa-loop.c (gate_loop): New function.
20121         (pass_tree_loop::gate): Call it.
20122         (pass_data_tree_no_loop, pass_tree_no_loop,
20123         make_pass_tree_no_loop): New.
20124         * tree-vectorizer.c: Include tree-scalar-evolution.c
20125         (pass_slp_vectorize::execute): Initialize loops and SCEV if
20126         required.
20127         (pass_slp_vectorize::clone): New method.
20128         * timevar.def (TV_TREE_NOLOOP): New.
20129         * tree-pass.h (make_pass_tree_no_loop): Declare.
20130         * passes.def (pass_tree_no_loop): New pass group with
20131         SLP vectorizer.
20133 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20135         PR target/61570
20136         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20137         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20139 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20141         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20142         "yes" where needed.
20144 2014-06-23  Alan Modra  <amodra@gmail.com>
20146         PR bootstrap/61583
20147         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20148         to zero on debug statements.
20150 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20152         PR target/60825
20153         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20154         Ignore third operand if present by marking qualifier_internal.
20156         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20158         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20159         vector extension.
20160         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20161         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20162         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20163         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20164         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20165         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20166         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20167         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20168         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20169         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20170         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20171         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20172         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20173         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20174         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20175         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20176         logic in GCC vector extensions
20178         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20179         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20180         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20181         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20182         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20183         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20184         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20185         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20186         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20187         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20189         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20191         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20192         extensions.
20194         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20195         (vget_low_s64): Use __GET_LOW macro.
20196         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20197         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20198         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20199         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20200         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20202         (vcombine_s64): Use GCC vector extensions; remove cast.
20203         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20204         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20205         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20206         Fix type signature; remove cast.
20208 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20210         PR target/60825
20211         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20212         V1DFmode.
20213         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20214         add V1DFmode
20215         (BUILTIN_VD1): New.
20216         (BUILTIN_VD_RE): Remove.
20217         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20218         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20219         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20220         variant but not df.
20221         (vreinterpretv1df*, vreinterpret*v1df): New.
20222         (vreinterpretdf*, vreinterpret*df): Remove.
20223         * config/aarch64/aarch64-simd.md (aarch64_create,
20224         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20225         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20226         (VD1): New.
20227         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20228         (vcreate_f64): Remove cast, use v1df builtin.
20229         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20230         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20231         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20232         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20233         vmov_n_f64, vst1_f64): Use gcc vector extensions.
20234         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20235         add range check using __builtin_aarch64_im_lane_boundsi.
20236         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20237         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20238         type signature, use gcc vector extensions.
20239         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20240         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20241         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20242         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20243         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20244         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20245         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20246         vreinterpret_u64_f64): Use v1df builtin not df.
20248 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20250         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20251         vector registers.
20253 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20255         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20256         priority directly.
20258 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20260         * loop-invariant.c (pre_check_invariant_p): New function.
20261         (find_invariant_insn): Call pre_check_invariant_p.
20263 2014-06-22  Richard Henderson  <rth@redhat.com>
20265         PR target/61565
20266         * compare-elim.c (struct comparison): Add eh_note.
20267         (find_comparison_dom_walker::before_dom_children): Don't eliminate
20268         a redundant comparison in a different EH region.  Purge EH edges if
20269         necessary.
20271 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20273         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20274         (var_shift): Use it.
20275         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20276         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20277         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20278         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20279         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20280         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20281         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20282         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20283         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20284         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20285         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20286         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20287         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20288         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20289         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20290         *rotldi3_internal15be): Use the new attribute.  Merge register and
20291         integer alternatives.
20293 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20295         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20296         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20297         split, *ashrdi3_internal3 and split): Delete, merge into...
20298         (ashr<mode>3): New expander.
20299         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20300         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
20302 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20304         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20305         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20306         *rotldi3_internal3 and split): Delete, merge into...
20307         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20308         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
20309         Use "rotlw" extended mnemonic.
20311 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20313         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20314         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20315         and split, *ashldi3_internal3 and split): Delete, merge into...
20316         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20317         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
20319 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20321         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20322         (lshrsi3, two anonymous define_insns and define_splits,
20323         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20324         *lshrdi3_internal3 and split): Delete, merge into...
20325         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20326         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
20328 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20330         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20331         Remove "O" alternative.
20333 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
20335         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20336         (mips_move_from_gpr_cost): Likewise.
20337         (mips_register_move_cost): Update accordingly.
20338         (mips_secondary_reload_class): Remove name of in_p.
20340 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
20342         PR target/61503
20343         * config/i386/i386.md (x86_64_shrd, x86_shrd,
20344         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20346 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20348         * config/nios2/nios2.c: Include "builtins.h".
20350 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20352         * cgraph.h (tls_model_names): New variable.
20353         * print-tree.c (print_node): Simplify.
20354         * varpool.c (tls_model_names): New variable.
20355         (dump_varpool_node): Output tls model.
20357 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20359         * ipa-visibility.c (function_and_variable_visibility): Disable
20360         temporarily local aliases for some targets.
20362 2014-06-20  Marek Polacek  <polacek@redhat.com>
20364         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20365         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20366         into SANITIZE_UNDEFINED.
20367         * doc/invoke.texi: Describe -fsanitize=bounds.
20368         * gimplify.c (gimplify_call_expr): Add gimplification of internal
20369         functions created in the FEs.
20370         * internal-fn.c: Move "internal-fn.h" after "tree.h".
20371         (expand_UBSAN_BOUNDS): New function.
20372         * internal-fn.def (UBSAN_BOUNDS): New internal function.
20373         * internal-fn.h: Don't define internal functions here.
20374         * opts.c (common_handle_option): Add -fsanitize=bounds.
20375         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20376         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20377         * tree-core.h: Define internal functions here.
20378         (struct tree_base): Add ifn field.
20379         * tree-pretty-print.c: Include "internal-fn.h".
20380         (dump_generic_node): Handle functions without CALL_EXPR_FN.
20381         * tree.c (get_callee_fndecl): Likewise.
20382         (build_call_expr_internal_loc): New function.
20383         * tree.def (CALL_EXPR): Update description.
20384         * tree.h (CALL_EXPR_IFN): Define.
20385         (build_call_expr_internal_loc): Declare.
20386         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20387         types.
20388         (ubsan_type_descriptor): Change bool parameter to enum
20389         ubsan_print_style.  Adjust the code.  Add handling of
20390         UBSAN_PRINT_ARRAY.
20391         (ubsan_expand_bounds_ifn): New function.
20392         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20393         (ubsan_build_overflow_builtin): Likewise.
20394         (instrument_bool_enum_load): Likewise.
20395         (ubsan_instrument_float_cast): Likewise.
20396         * ubsan.h (enum ubsan_print_style): New enum.
20397         (ubsan_expand_bounds_ifn): Declare.
20398         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
20400 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
20402         * config/rs6000/rs6000.md: Append `DONE' to preparation
20403         statements of `bswap' pattern splitters.
20405 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20407         * target.def (call_fusage_contains_non_callee_clobbers): Update
20408         definition.
20409         * doc/tm.texi: Regenerate.
20411 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20412             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20414         PR sanitizer/61547
20415         * asan.c (instrument_strlen_call): Fixed instrumentation of
20416         trailing byte.
20418 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20420         PR ipa/61540
20421         * ipa-prop.c (impossible_devirt_target): New function.
20422         (try_make_edge_direct_virtual_call): Use it, also instead of
20423         asserting.
20425 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20426             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20428         PR sanitizer/61530
20429         * asan.c (build_check_stmt): Add condition.
20431 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20433         PR ipa/61211
20434         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20435         expanded clones.
20437 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20439         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20440         Update comments.
20441         (VCONQ): Make comment more helpful.
20442         (VCON): Delete.
20443         * config/aarch64/aarch64-simd.md
20444         (aarch64_sqdmulh_lane<mode>):
20445         Use VCOND for operands 2.  Update lane checking and flipping logic.
20446         (aarch64_sqrdmulh_lane<mode>): Likewise.
20447         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20448         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20449         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20450         attribute of operand 3 to VCOND.
20451         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20452         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20453         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20454         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20455         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20456         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20457         define_insn.
20458         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20459         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20460         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20461         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20462         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20463         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20464         operand to VCOND.  Update lane flipping and bounds checking logic.
20465         (aarch64_sqdmlal2_lane<mode>): Likewise.
20466         (aarch64_sqdmlsl_lane<mode>): Likewise.
20467         (aarch64_sqdmull_lane<mode>): Likewise.
20468         (aarch64_sqdmull2_lane<mode>): Likewise.
20469         (aarch64_sqdmlal_laneq<mode>):
20470         Replace VCON usage with VCONQ.
20471         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20472         (aarch64_sqdmlal2_laneq<mode>): Emit
20473         aarch64_sqdmlal2_laneq<mode>_internal insn.
20474         Replace VCON with VCONQ.
20475         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20476         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20477         (aarch64_sqdmull_laneq<mode>): Emit
20478         aarch64_sqdmull_laneq<mode>_internal insn.
20479         Replace VCON with VCONQ.
20480         (aarch64_sqdmull2_laneq<mode>): Emit
20481         aarch64_sqdmull2_laneq<mode>_internal insn.
20482         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20483         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20484         of 3rd argument to int16x4_t.
20485         (vqdmlalh_lane_s16): Likewise.
20486         (vqdmlslh_lane_s16): Likewise.
20487         (vqdmull_high_lane_s16): Likewise.
20488         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20489         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20490         (vqdmlsl_lane_s16): Likewise.
20491         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20492         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20493         (vqdmlals_lane_s32): Likewise.
20494         (vqdmlsls_lane_s32): Likewise.
20495         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20496         (vqdmulls_lane_s32): Likewise.
20497         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20498         (vqdmlsl_lane_s32): Likewise.
20499         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20500         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20501         (vqrdmulhh_lane_s16): Likewise.
20502         (vqdmlsl_high_lane_s16): Likewise.
20503         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20504         (vqdmlsl_high_lane_s32): Likewise.
20505         (vqrdmulhs_lane_s32): Likewise.
20507 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20509         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20510         get_call_reg_set_usage.
20512 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20514         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20515         it contains all call_used_regs.
20517 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20519         * final.c (collect_fn_hard_reg_usage): Add and use variable
20520         function_used_regs.
20522 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20524         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20525         (set_init_priority, get_init_priority, set_fini_priority,
20526         get_fini_priority): New methods.
20527         * tree.c (init_priority_for_decl): Remove.
20528         (init_ttree): Do not initialize init priority.
20529         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20530         (decl_priority_info): Remove.
20531         (decl_init_priority_insert): Rewrite.
20532         (decl_fini_priority_insert): Rewrite.
20533         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20534         tree_priority_map_marked_p): Remove.
20535         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20536         * lto-streamer-out.c (hash_tree): Do not hash priorities.
20537         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20538         not output priorities.
20539         (pack_ts_function_decl_value_fields): Likewise.
20540         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20541         not input priorities.
20542         (unpack_ts_function_decl_value_fields): Likewise.
20543         * symtab.c (symbol_priority_map): Declare.
20544         (init_priority_hash): Declare.
20545         (symtab_unregister_node): Unregister from priority hash, too.
20546         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20547         New methods.
20548         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20549         (symbol_priority_info): New function.
20550         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20551         New methods.
20552         * tree-core.h (tree_priority_map): Remove.
20554 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
20556         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20557         0xff to uint64_t before shifting it up.
20559 2014-06-20  Julian Brown  <julian@codesourcery.com>
20560             Chung-Lin Tang  <cltang@codesourcery.com>
20562         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20563         TARGET_THUMB1_ONLY. Add comments.
20565 2014-06-19  Tom de Vries  <tom@codesourcery.com>
20567         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20568         return type to void.
20569         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20571 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20573         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20574         as "move", from depends_on.
20576 2014-06-19  Terry Guo  <terry.guo@arm.com>
20578         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20579         stage.
20581 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
20583         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20584         Remove cr5.
20585         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
20587 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
20589         PR target/61550
20590         * config/sh/sh.c (prepare_move_operands): Don't process TLS
20591         addresses here if reload in progress or completed.
20593 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20595         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20596         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20597         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20598         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20599         (mips_register_priority): New function that implements the target
20600         hook TARGET_REGISTER_PRIORITY.
20601         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20602         (mips_lra_p): Likewise for TARGET_LRA_P.
20603         (TARGET_REGISTER_PRIORITY): Define macro.
20604         (TARGET_SPILL_CLASS): Likewise.
20605         (TARGET_LRA_P): Likewise.
20606         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20607         classes.
20608         (REG_CLASS_NAMES): Likewise.
20609         (REG_CLASS_CONTENTS): Likewise.
20610         (BASE_REG_CLASS): Use M16_SP_REGS.
20611         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20612         New set attribute to enable alternatives depending on the register
20613         allocator used.
20614         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20615         (*lea64): Disable pattern for MIPS16.
20616         * config/mips/mips.opt (mlra): New option.
20618 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20620         * lra-constraints.c (base_to_reg): New function.
20621         (process_address): Use new function.
20623 2014-06-18  Tom de Vries  <tom@codesourcery.com>
20625         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20626         * config/aarch64/aarch64.c
20627         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20628         (aarch64_emit_call_insn): New function.
20629         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20630         of emit_call_insn.
20631         * config/aarch64/aarch64.md (define_expand "call_internal")
20632         (define_expand "call_value_internal", define_expand "sibcall_internal")
20633         (define_expand "sibcall_value_internal"): New.
20634         (define_expand "call", define_expand "call_value")
20635         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20636         expand variant and aarch64_emit_call_insn.
20638 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
20639             Tom de Vries  <tom@codesourcery.com>
20641         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20642         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20643         Redefine to true.
20644         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
20645         clobbers to CALL_INSN_FUNCTION_USAGE.
20646         (define_expand "sibcall_internal")
20647         (define_expand "sibcall_value_internal"): New.
20648         (define_expand "call", define_expand "call_value"): Add argument to
20649         arm_emit_call_insn.
20650         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20651         (define_expand "sibcall_value"): Use sibcall_value_internal and
20652         arm_emit_call_insn.
20654 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20656         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20658 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20660         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20661         __udivmoddi4.
20663 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20665         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20666         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20667         annotations. Fix DWARF information.
20669 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20671         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20672         __udivmoddi4, and fixups for negative operands.
20674 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20676         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20678 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20680         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20681         to __udivmoddi4.
20683 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20685         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20686         manipulation.
20688 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20690         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20691         describing register usage on function entry and exit.
20693 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20695         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20696         (__aeabi_ldivmod): Fix whitespace.
20698 2014-06-18  Andreas Schwab  <schwab@suse.de>
20700         * doc/md.texi (Standard Names): Use @itemx for grouped items.
20701         Remove blank line after @item.
20703 2014-06-18  Richard Henderson  <rth@redhat.com>
20705         PR target/61545
20706         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20708 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20710         * config/arm/arm.c (neon_vector_mem_operand): Allow register
20711         POST_MODIFY for neon loads and stores.
20712         (arm_print_operand): Output post-index register for neon loads and
20713         stores.
20715 2014-06-18  Richard Biener  <rguenther@suse.de>
20717         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20719 2014-06-18  Richard Biener  <rguenther@suse.de>
20721         * tree-pass.h (make_pass_dce_loop): Remove.
20722         * passes.def: Replace pass_dce_loop with pass_dce.
20723         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20724         changed free niter estimates and reset the scev cache.
20725         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20726         make_pass_dce_loop): Remove.
20727         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20728         (fini_copy_prop): Return whether something changed.  Always
20729         let substitute_and_fold perform DCE and free niter estimates
20730         and reset the scev cache if so.
20731         (execute_copy_prop): If sth changed schedule cleanup-cfg.
20732         (pass_data_copy_prop): Do not unconditionally schedule
20733         cleanup-cfg or update-ssa.
20735 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
20737         PR tree-optimization/61518
20738         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20739         reduction var is used in reduction stmt or phi-function only.
20741 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20743         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20745 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20747         PR tree-optimization/61517
20748         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20749         whose rhs's first tree is the source expression instead of the
20750         expression itself.
20751         (find_bswap_or_nop): Likewise.
20752         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20753         gimple stmt whose rhs's first tree is the source. In the memory source
20754         case, move the stmt to be replaced close to one of the original load to
20755         avoid the problem of a store between the load and the stmt's original
20756         location.
20757         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20758         signature.
20760 2014-06-18  Andreas Schwab  <schwab@suse.de>
20762         PR rtl-optimization/54555
20763         * postreload.c (move2add_use_add2_insn): Substitute
20764         STRICT_LOW_PART only if it is cheaper.
20766 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
20768         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20769         Do not use unspec as call operand.  Use memory_operand instead of
20770         memory_nox32_operand and add "m" operand constraint.  Disable
20771         pattern for TARGET_X32.
20772         (*sibcall_pop_memory): Ditto.
20773         (*sibcall_value_memory): Ditto.
20774         (*sibcall_value_pop_memory): Ditto.
20775         (sibcall peepholes): Merge SImode and DImode patterns using
20776         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
20777         Disable pattern for TARGET_X32.  Check if eliminated register is
20778         really dead after call insn.  Generate call RTX without unspec operand.
20779         (sibcall_value peepholes): Ditto.
20780         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
20781         instead of memory_nox32_operand.  Check if eliminated register is
20782         really dead after call insn. Generate call RTX without unspec operand.
20783         (sibcall_value_pop peepholes): Ditto.
20784         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20786 2014-06-18  Terry Guo  <terry.guo@arm.com>
20788         PR target/61544
20789         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20790         reach the head.
20792 2014-06-18  Olivier Hainque  <hainque@adacore.com>
20794         * tree-core.h (tree_block): Add an "end_locus" field, allowing
20795         memorization of the end of block source location.
20796         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20797         * gimplify.c (gimplify_bind_expr): Propagate the block start and
20798         end source location info we have on the block entry/exit code we
20799         generate.
20801 2014-06-18  Richard Biener  <rguenther@suse.de>
20803         * common.opt (fssa-phiopt): New option.
20804         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20805         but not with -Og.
20806         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20807         * doc/invoke.texi (-fssa-phiopt): Document.
20809 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20811         * genattrtab.c (n_bypassed): New variable.
20812         (process_bypasses): Initialise n_bypassed.
20813         Count number of bypassed reservations.
20814         (make_automaton_attrs): Allocate space for bypassed reservations
20815         rather than number of bypasses.
20817 2014-06-18  Richard Biener  <rguenther@suse.de>
20819         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20820         we propagated anything.
20821         (substitute_and_fold_dom_walker::before_dom_children): Something
20822         changed if we propagated into PHI arguments.
20823         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20824         we removed a stmt.
20826 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
20828         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20829         vector case.
20830         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20831         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20832         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20833         Introduces alternative way of loads group permutaions.
20834         (vect_transform_grouped_load): Try alternative way of permutations.
20836 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
20838         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20839         changed in ORT_TARGET region, don't jump to do_outer.
20840         (struct gimplify_adjust_omp_clauses_data): New type.
20841         (gimplify_adjust_omp_clauses_1): Adjust for data being
20842         a struct gimplify_adjust_omp_clauses_data pointer instead
20843         of tree *.  Pass pre_p as a new argument to
20844         lang_hooks.decls.omp_finish_clause hook.
20845         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20846         splay_tree_foreach to pass both list_p and pre_p.
20847         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20848         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20849         gimplify_adjust_omp_clauses callers.
20850         * langhooks.c (lhd_omp_finish_clause): New function.
20851         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20852         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20853         * langhooks.h (struct lang_hooks_for_decls): Add a new
20854         gimple_seq * argument to omp_finish_clause hook.
20855         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20856         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20857         (scan_omp_parallel, lower_omp_for): When adding
20858         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20859         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20860         * tree-nested.c (convert_nonlocal_omp_clauses,
20861         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20862         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20864 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
20866         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20867         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20869 2014-06-17  Xinliang David Li  <davidxl@google.com>
20871         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20872         * passes.c (pass_init_dump_file): Do not set initialize
20873         flag to false unconditionally.
20875 2014-06-17  Richard Biener  <rguenther@suse.de>
20877         * genopinit.c (main): Use vec<>::qsort method.
20878         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20879         Likewise.
20880         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20882 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
20884         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20885         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20886         (mips_move_to_gpr_cost): Remove ST_REGS case.
20887         (mips_move_from_gpr_cost): Likewise.
20888         (mips_register_move_cost): Likewise.
20889         (mips_secondary_reload_class): Likewise.
20891 2014-06-17  Richard Biener  <rguenther@suse.de>
20893         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20894         (pass_all_optimizations): Move 3rd copy-prop pass from after
20895         fre to before ifcombine/phiopt.
20897 2014-06-17  Richard Biener  <rguenther@suse.de>
20899         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20900         and allow all blocks to be forwarders.
20902 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
20904         PR target/61483
20905         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20906         variable 'size'; calculate 'size' right in the front; use
20907         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20908         pcum->aapcs_stack_words.
20910 2014-06-17  Nick Clifton  <nickc@redhat.com>
20912         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20913         (umulhi3, mulsidi3, umulsidi3): Likewise.
20915 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
20917         PR middle-end/61508
20918         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20919         check for section name.
20921 2014-06-17  Richard Biener  <rguenther@suse.de>
20923         * tree-ssa-propagate.c: Include domwalk.h.
20924         (substitute_and_fold): Outline main worker into a domwalker ...
20925         (substitute_and_fold_dom_walker::before_dom_children): ... here.
20926         Schedule stmts we can fully propagate for removal.  Remove
20927         poor-mans DCE.
20928         (substitute_and_fold): Apply a dominator walk to perform
20929         substitution.  Process stmts scheduled for removal here.
20931 2014-06-17  Richard Biener  <rguenther@suse.de>
20933         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20934         of PHI node moving.
20936 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
20938         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20939         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20940         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20941         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20942         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20943         TARGET_HARD_FLOAT.
20944         (get_fpscr) : Likewise.
20946 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
20948         PR rtl-optimization/61325
20949         * lra-constraints.c (valid_address_p): Add forward declaration.
20950         (simplify_operand_subreg): Check address validity before and after
20951         alter_reg of memory subreg.
20953 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
20955         * config/i386/i386.c (decide_alg): Correctly handle
20956         maximum size of stringop algorithm.
20958 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
20960         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20962 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
20964         PR rtl-optimization/61522
20965         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20967 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
20969         Revert:
20970         * symtab.c (symtab_node::reset_section): New method.
20971         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20972         for localization.
20973         * cgraph.h (reset_section): Declare.
20974         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20975         do not consider comdat locals.
20976         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20977         for new symbol.
20978         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20979         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20980         reset sections of symbols dragged out of the comdats.
20981         (function_and_variable_visibility): Reset sections of
20982         localized symbols.
20984 2014-06-16  Richard Biener  <rguenther@suse.de>
20986         PR tree-optimization/61482
20987         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20988         [-INF(OVF), +INF(OVF)] range.
20990 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20992         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20993         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20994         handling 32-bit multiplication.
20996 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
20998         PR middle-end/61430
20999         * lra-lives.c (process_bb_lives): Skip creating copy during
21000         insn scan when src/dest has constrained to same regno.
21002 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21004         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21005         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21007 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21009         * asan.c (check_func): New function.
21010         (maybe_create_ssa_name): Likewise.
21011         (build_check_stmt_with_calls): Likewise.
21012         (use_calls_p): Likewise.
21013         (report_error_func): Change interface.
21014         (build_check_stmt): Allow non-integer lengths; add support
21015         for new parameter.
21016         (asan_instrument): Likewise.
21017         (instrument_mem_region_access): Moved code to build_check_stmt.
21018         (instrument_derefs): Likewise.
21019         (instrument_strlen_call): Likewise.
21020         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21021         * doc/invoke.texi: Describe new parameter.
21022         * params.def: Define new parameter.
21023         * params.h: Likewise.
21024         * sanitizer.def: Describe new builtins.
21026 2014-06-16  Richard Biener  <rguenther@suse.de>
21028         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21029         Make all defs available at the end.
21030         (eliminate): If we remove a PHI node schedule cfg-cleanup.
21032 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21034         PR plugins/45078
21035         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21037 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
21039         PR bootstrap/61516
21040         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21041         initialization.  Replace remaining use of uid.
21043 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21045         * c-family/c-common.c (handle_tls_model_attribute): Use
21046         set_decl_tls_model.
21047         * c-family/c-common.c (handle_tls_model_attribute): Use
21048         set_decl_tls_model.
21049         * cgraph.h (struct varpool_node): Add tls_model.
21050         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21051         * tree.h (DECL_TLS_MODEL): Update.
21052         (DECL_THREAD_LOCAL_P): Check that variable is static.
21053         (decl_tls_model): Declare.
21054         (set_decl_tls_model): Declare.
21055         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21056         set symbol prorperties.
21057         (get_emutls_init_templ_addr): Cleanup.
21058         (new_emutls_decl): Update.
21059         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21060         (lto_input_varpool_node): Likewise.
21061         * lto-streamer-out.c (hash_tree): Likewise.
21062         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21063         not stream DECL_TLS_MODEL.
21064         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21065         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21067 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21069         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21071 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21073         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21074         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21075         lists.
21076         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21077         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21078         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21079         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21080         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21081         (df_get_artificial_defs, df_get_artificial_uses)
21082         (df_single_def, df_single_use): Update accordingly.
21083         (df_refs_chain_dump): Take the first element in a linked list as
21084         parameter, rather than a pointer to an array of pointers.
21085         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21086         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21087         (df_chain_create_bb_process_use): Likewise.
21088         (df_md_bb_local_compute_process_def): Likewise.
21089         * fwprop.c (process_defs, process_uses): Likewise.
21090         (register_active_defs, update_uses): Likewise.
21091         (forward_propagate_asm): Update for new df_ref linking.
21092         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21093         (df_null_ref_rec, df_null_mw_rec): Likewise.
21094         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21095         explicitly.
21096         (df_scan_free_bb_info): Remove check for null artificial_defs.
21097         (df_install_ref_incremental): Adjust for new df_ref linking.
21098         Use a single-element insertion rather than a full sort.
21099         (df_ref_chain_delete_du_chain): Take the first element
21100         in a linked list as parameter, rather than a pointer to an array of
21101         pointers.
21102         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21103         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21104         (df_insn_info_delete): Remove check for null defs and call to
21105         df_scan_free_mws_vec.
21106         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21107         null rather than df_null_*_rec.
21108         (df_insn_rescan_debug_internal): Likewise, and update null
21109         checks in the same way.  Remove check for null defs.
21110         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21111         Move a single element rather doing a full sort.
21112         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21113         linking.
21114         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
21115         Initialize df_ref and df_mw_hardreg lists to null rather than
21116         df_null_*_rec.
21117         (df_ref_compare): Take df_refs as parameter, transferring the
21118         old interface to...
21119         (df_ref_ptr_compare): ...this new function.
21120         (df_sort_and_compress_refs): Update accordingly.
21121         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21122         old interface to...
21123         (df_mw_ptr_compare): ...this new function.
21124         (df_sort_and_compress_mws): Update accordingly.
21125         (df_install_refs, df_install_mws): Return a linked list rather than
21126         an array of pointers.
21127         (df_refs_add_to_chains): Assert that old lists are empty rather
21128         than freeing them.
21129         (df_insn_refs_verify): Don't handle null defs speciailly.
21130         * web.c (union_match_dups): Update for new df_ref linking.
21132 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21134         * df.h (df_ref_create, df_ref_remove): Delete.
21135         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21136         (df_ref_remove): Likewise.
21138 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21140         * df.h (df_single_def, df_single_use): New functions.
21141         * ira.c (find_moveable_pseudos): Use them.
21143 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21145         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21146         * df-problems.c (df_note_bb_compute): Use it.
21147         * regstat.c (regstat_bb_compute_ri): Likewise.
21149 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21151         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21152         * cse.c (cse_extended_basic_block): Use them.
21153         * dce.c (mark_artificial_use): Likewise.
21154         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21155         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21156         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21157         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21158         (df_simulate_initialize_backwards): Likewise.
21159         (df_simulate_finalize_backwards): Likewise.
21160         (df_simulate_initialize_forwards): Likewise.
21161         (df_md_simulate_artificial_defs_at_top): Likewise.
21162         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21163         * regrename.c (init_rename_info): Likewise.
21164         * regstat.c (regstat_bb_compute_ri): Likewise.
21165         (regstat_bb_compute_calls_crossed): Likewise.
21167 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21169         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21170         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21171         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21172         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21173         * combine.c (create_log_links): Likewise.
21174         * compare-elim.c (find_flags_uses_in_insn): Likewise.
21175         (try_eliminate_compare): Likewise.
21176         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21177         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21178         (remove_reg_equal_equiv_notes_for_defs): Likewise.
21179         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21180         (word_dce_process_block, dce_process_block): Likewise.
21181         * ddg.c (def_has_ccmode_p): Likewise.
21182         * df-core.c (df_bb_regno_first_def_find): Likewise.
21183         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21184         * df-problems.c (df_rd_simulate_one_insn): Likewise.
21185         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21186         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21187         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21188         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21189         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21190         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21191         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21192         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21193         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21194         * fwprop.c (local_ref_killed_between_p): Likewise.
21195         (all_uses_available_at, free_load_extend): Likewise.
21196         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21197         * hw-doloop.c (scan_loop): Likewise.
21198         * ifcvt.c (dead_or_predicable): Likewise.
21199         * init-regs.c (initialize_uninitialized_regs): Likewise.
21200         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21201         (process_bb_node_lives): Likewise.
21202         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21203         (find_moveable_pseudos): Likewise.
21204         * loop-invariant.c (check_dependencies, record_uses): Likewise.
21205         * recog.c (peep2_find_free_register): Likewise.
21206         * ree.c (get_defs): Likewise.
21207         * regstat.c (regstat_bb_compute_ri): Likewise.
21208         (regstat_bb_compute_calls_crossed): Likewise.
21209         * sched-deps.c (find_inc, find_mem): Likewise.
21210         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21211         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21212         * shrink-wrap.c (requires_stack_frame_p): Likewise.
21213         (prepare_shrink_wrap): Likewise.
21214         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21215         * web.c (union_defs, pass_web::execute): Likewise.
21216         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21217         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21219 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
21221         * lra-assign.c (assign_by_spills): Add code to assign vector regs
21222         to inheritance pseudos.
21223         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21225 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
21227         PR target/61415
21228         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21229         (BU_MISC_2): Rename to ...
21230         (BU_LDBL128_2): ... this.
21231         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21232         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21233         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21234         RS6000_BTM_LDBL128.
21235         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21236         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21237         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21238         (unpacktf_1): Likewise.
21239         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21240         (__builtin_longdouble_dw1): Likewise.
21241         * doc/sourcebuild.texi (longdouble128): Document.
21243 2014-06-13  Jeff Law  <law@redhat.com>
21245         PR rtl-optimization/61094
21246         PR rtl-optimization/61446
21247         * ree.c (combine_reaching_defs): Get the mode for the copy from
21248         the extension insn rather than the defining insn.
21250 2014-06-13  Dehao Chen  <dehao@google.com>
21252         * dwarf2out.c (add_linkage_name): Emit more linkage name.
21254 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
21256         * doc/install.texi (--enable-linker-plugin-configure-flags)
21257         (--enable-linker-plugin-flags): Document new flags.
21259 2014-06-13  Martin Jambor  <mjambor@suse.cz>
21261         PR ipa/61186
21262         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21263         cache_token if returning early.
21265 2014-06-13  Nick Clifton  <nickc@redhat.com>
21267         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21268         requested alignment is active.
21269         (LABEL_ALIGN): Likewise.
21270         (LOOP_ALIGN): Likewise.
21272 2014-06-13  Richard Biener  <rguenther@suse.de>
21274         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21275         Rewrite to propagate the VN result into all uses where
21276         possible and to remove stmts becoming dead because of that.
21277         (eliminate): Generalize stmt removal handling, remove in
21278         reverse dominator order to support proper debug stmt
21279         generation.  Update stmts before removing stmts.
21280         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21282 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21284         PR tree-optimization/61375
21285         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21286         symbolic number cannot be represented in an uint64_t.
21287         (find_bswap_or_nop_1): Likewise.
21289 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21291         * symtab.c (symtab_node::reset_section): New method.
21292         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21293         for localization.
21294         * cgraph.h (reset_section): Declare.
21295         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21296         do not consider comdat locals.
21297         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21298         for new symbol.
21299         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21300         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21301         reset sections of symbols dragged out of the comdats.
21302         (function_and_variable_visibility): Reset sections of
21303         localized symbols.
21305 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21307         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21308         to use symtab and decl_binds_to_current_def_p
21309         * tree-vectorizer.c (increase_alignment): Increase alignment
21310         of alias target, too.
21312 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
21314         PR middle-end/61486
21315         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21316         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21317         if outer combined construct is distribute.
21318         (gimplify_omp_for): For OMP_DISTRIBUTE set
21319         gimplify_omp_ctxp->distribute.
21320         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21321         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21322         mapping into decl map.
21324 2014-06-12  Jason Merrill  <jason@redhat.com>
21326         * common.opt (fabi-version): Change default to 0.
21328 2014-06-12  Jason Merrill  <jason@redhat.com>
21330         * toplev.c (process_options): Reject -fabi-version=1.
21332 2014-06-12  Jeff Law  <law@redhat.com>
21334         PR tree-optimization/61009
21335         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21336         value when we stop processing a block due to problematic PHIs.
21338 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
21340         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21341         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21342         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21343         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21344         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21345         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21346         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21347         are not in the spec.
21349 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
21351         PR target/59843
21352         * config/aarch64/aarch64-modes.def: Add V1DFmode.
21353         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21354         Support V1DFmode.
21356 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
21358         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21360 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
21362         PR target/61443
21363         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21364         loading from address spaces.
21366 2014-06-12  Martin Liska  <mliska@suse.cz>
21368         PR ipa/61462
21369         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21370         statement is reachable.
21372 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21374         * symtab.c (section_hash): New hash.
21375         (symtab_unregister_node): Clear section before freeing.
21376         (hash_section_hash_entry): New haser.
21377         (eq_sections): New function.
21378         (symtab_node::set_section_for_node): New method.
21379         (set_section_1): Update.
21380         (symtab_node::set_section): Take string instead of tree as parameter.
21381         (symtab_resolve_alias): Update.
21382         * cgraph.h (section_hash_entry_d): New structure.
21383         (section_hash_entry): New typedef.
21384         (cgraph_node): Change comdat_group_ to x_comdat_group,
21385         change section_ to x_section and turn into section_hash_entry;
21386         update accestors; put set_section_for_node offline.
21387         * tree.c (decl_section_name): Turn into string.
21388         (set_decl_section_name): Change parameter to be string.
21389         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21390         * sdbout.c (sdbout_one_type): Update.
21391         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21392         * varasm.c (IN_NAMED_SECTION, get_named_section,
21393         resolve_unique_section, hot_function_section, get_named_text_section,
21394         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21395         make_decl_rtl, default_unique_section): Update.
21396         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21397         (c6x_elf_unique_section): Update.
21398         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21399         * config/pa/pa.c (pa_function_section): Update.
21400         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21401         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21402         * config/arc/arc.c (arc_in_small_data_p): Update.
21403         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21404         * config/mcore/mcore.c (mcore_unique_section): Update.
21405         * config/mips/mips.c (mips16_build_function_stub): Update.
21406         (mips16_build_call_stub): Update.
21407         (mips_function_rodata_section): Update.
21408         (mips_in_small_data_p): Update.
21409         * config/score/score.c (score_in_small_data_p): Update.
21410         * config/rx/rx.c (rx_in_small_data): Update.
21411         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21412         (rs6000_xcoff_asm_named_section): Update.
21413         (rs6000_xcoff_unique_section): Update.
21414         * config/frv/frv.c (frv_string_begins_with): Update.
21415         (frv_in_small_data_p): Update.
21416         * config/v850/v850.c (v850_encode_data_area): Update.
21417         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21418         (bfin_handle_l1_data_attribute): Update.
21419         (bfin_handle_l2_attribute): Update.
21420         * config/mep/mep.c (mep_unique_section): Update.
21421         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21422         Update.
21423         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21424         (h8300_handle_tiny_data_attribute): Update.
21425         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21426         (m32r_in_small_data_p): Update.
21427         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21428         * config/i386/i386.c (ix86_in_large_data_p): Update.
21429         * config/i386/winnt.c (i386_pe_unique_section): Update.
21430         * config/darwin.c (darwin_function_section): Update.
21431         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21432         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21433         (new_emutls_decl): Update.
21434         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21435         input_varpool_node): Update.
21436         (ead_string_cst): Turn to ...
21437         (read_string): ... this one.
21438         * dwarf2out.c (secname_for_decl): Update.
21439         * asan.c (asan_protect_global): Update.
21441 2014-06-11  DJ Delorie  <dj@redhat.com>
21443         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21444         cache lines.
21445         * config/rx/rx.c (rx_option_override): Likewise.
21446         (rx_align_for_label): Likewise.
21448         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21450 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
21452         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21453         prototype.
21455 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21457         * common.md: New file.
21458         * doc/md.texi: Update description of generic, machine-independent
21459         constraints.
21460         * config/s390/constraints.md (e): Delete.
21461         * Makefile.in (md_file): Include common.md.
21462         * config/m32c/t-m32c (md_file): Likewise.
21463         * genpreds.c (general_mem): New array.
21464         (generic_constraint_letters): Remove constraints now defined by
21465         common.md.
21466         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21467         Allow the first character to be '<' or '>' as well.
21468         * genoutput.c (general_mem): New array.
21469         (indep_constraints): Remove constraints now defined by common.md.
21470         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21471         Remove special handling of 'm'.
21472         * ira-costs.c (record_reg_classes): Remove special handling of
21473         constraints now defined by common.md.
21474         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21475         * ira-lives.c (single_reg_class): Likewise.
21476         (ira_implicitly_set_insn_hard_regs): Likewise.
21477         * lra-constraints.c (reg_class_from_constraints): Likewise.
21478         (process_alt_operands, process_address, curr_insn_transform): Likewise.
21479         * postreload.c (reload_cse_simplify_operands): Likewise.
21480         * reload.c (push_secondary_reload, scratch_reload_class)
21481         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21482         * reload1.c (maybe_fix_stack_asms): Likewise.
21483         * targhooks.c (default_secondary_reload): Likewise.
21484         * stmt.c (parse_output_constraint): Likewise.
21485         * recog.c (preprocess_constraints): Likewise.
21486         (constrain_operands, peep2_find_free_register): Likewise.
21487         (asm_operand_ok): Likewise, but add a comment saying why 'o'
21488         must be handled specially.
21490 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21492         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21493         * genpreds.c (have_const_dbl_constraints): Delete.
21494         (add_constraint): Don't set it.
21495         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21496         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21497         constraints using the lookup_constraint logic.
21498         * ira-lives.c (single_reg_class): Likewise.
21499         * ira.c (ira_setup_alts): Likewise.
21500         * lra-constraints.c (process_alt_operands): Likewise.
21501         * recog.c (asm_operand_ok, constrain_operands): Likewise.
21502         * reload.c (find_reloads): Likewise.
21504 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21506         * genpreds.c (const_int_start, const_int_end): New variables.
21507         (choose_enum_order): Output CONST_INT constraints before memory
21508         constraints.
21509         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21510         Add CT_CONST_INT.
21511         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21512         * ira.c (ira_setup_alts): Likewise.
21513         * lra-constraints.c (process_alt_operands): Likewise.
21514         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21515         * reload.c (find_reloads): Likewise.
21517 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21519         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21520         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
21521         * recog.c (preprocess_constraints): Update accordingly.
21523 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21525         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21526         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21527         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21528         * genpreds.c (print_type_tree): New function.
21529         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21530         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21531         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21532         Write out enum constraint_type and get_constraint_type.
21533         * lra-constraints.c (satisfies_memory_constraint_p): Take a
21534         constraint_num rather than a constraint string.
21535         (satisfies_address_constraint_p): Likewise.
21536         (reg_class_from_constraints): Avoid old constraint macros.
21537         (process_alt_operands, process_address_1): Likewise.
21538         (curr_insn_transform): Likewise.
21539         * ira-costs.c (record_reg_classes): Likewise.
21540         (record_operand_costs): Likewise.
21541         * ira-lives.c (single_reg_class): Likewise.
21542         (ira_implicitly_set_insn_hard_regs): Likewise.
21543         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21544         * postreload.c (reload_cse_simplify_operands): Likewise.
21545         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21546         (constrain_operands, peep2_find_free_register): Likewise.
21547         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21548         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21549         * reload1.c (maybe_fix_stack_asms): Likewise.
21550         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21551         * targhooks.c (default_secondary_reload): Likewise.
21552         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21553         to EXTRA_CONSTRAINT_STR.
21554         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21556 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21558         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21559         (write_constraint_satisfied_p_array): ...this new function.
21560         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21561         an array.
21562         (write_insn_preds_c): Update accordingly.
21564 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21566         * genpreds.c (write_lookup_constraint): Rename to...
21567         (write_lookup_constraint_1): ...this.
21568         (write_lookup_constraint_array): New function.
21569         (write_tm_preds_h): Define lookup_constraint as an inline function
21570         that uses write_lookup_constraint_array where possible.
21571         (write_insn_preds_c): Update for the changes above.
21573 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21575         * doc/md.texi (regclass_for_constraint): Rename to...
21576         (reg_class_for_constraint): ...this.
21577         * genpreds.c (num_constraints, enum_order, register_start)
21578         (register_end, satisfied_start, memory_start, memory_end)
21579         (address_start, address_end): New variables.
21580         (add_constraint): Count the number of constraints.
21581         (choose_enum_order): New function.
21582         (write_enum_constraint_num): Iterate over enum_order.
21583         (write_regclass_for_constraint): Rename to...
21584         (write_reg_class_for_constraint_1): ...this and update output
21585         accordingly.
21586         (write_constraint_satisfied_p): Rename to...
21587         (write_constraint_satisfied_p_1): ...this and update output
21588         accordingly.  Do nothing if all extra constraints are register
21589         constraints.
21590         (write_insn_extra_memory_constraint): Delete.
21591         (write_insn_extra_address_constraint): Delete.
21592         (write_range_function): New function.
21593         (write_tm_preds_h): Define constraint_satisfied_p and
21594         reg_class_for_constraint as inline functions that do a range check
21595         before calling the out-of-line function.  Use write_range_function
21596         to implement insn_extra_{register,memory,address}_constraint,
21597         the first of which is new.
21598         (write_insn_preds_c): Update after above changes to write_* functions.
21599         (main): Call choose_enum_order.
21601 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21603         PR tree-optimization/61306
21604         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21605         expression instead of its size.
21606         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21607         false to prevent optimization when the result is unpredictable due to
21608         arithmetic right shift of signed type with highest byte is set.
21609         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21610         (init_symbolic_number): Likewise.
21611         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21612         when the result is unpredictable due to sign extension.
21614 2014-06-11  Terry Guo  <terry.guo@arm.com>
21616         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21617         (*thumb1_addsi3): Ditto.
21618         (*thumb_subdi3): Ditto.
21619         (thumb1_subsi3_insn): Ditto.
21620         (*thumb_mulsi3): Ditto.
21621         (*thumb_mulsi3_v6): Ditto.
21622         (*thumb1_andsi3_insn): Ditto.
21623         (thumb1_bicsi3): Ditto.
21624         (*thumb1_iorsi3_insn): Ditto.
21625         (*thumb1_xorsi3_insn): Ditto.
21626         (*thumb1_ashlsi3): Ditto.
21627         (*thumb1_ashrsi3): Ditto.
21628         (*thumb1_lshrsi3): Ditto.
21629         (*thumb1_rotrsi3): Ditto.
21630         (*thumb1_negdi2): Ditto.
21631         (*thumb1_negsi2): Ditto.
21632         (*thumb1_abssi2): Ditto.
21633         (*thumb1_neg_abssi2): Ditto.
21634         (*thumb1_one_cmplsi2): Ditto.
21635         (*thumb1_zero_extendhisi2): Ditto.
21636         (*thumb1_zero_extendqisi2): Ditto.
21637         (*thumb1_zero_extendqisi2_v6): Ditto.
21638         (thumb1_extendhisi2): Ditto.
21639         (thumb1_extendqisi2): Ditto.
21640         (*thumb1_movdi_insn): Ditto.
21641         (*thumb1_movsi_insn): Ditto.
21642         (*thumb1_movhi_insn): Ditto.
21643         (thumb_movhi_clobber): Ditto.
21644         (*thumb1_movqi_insn): Ditto.
21645         (*thumb1_movhf): Ditto.
21646         (*thumb1_movsf_insn): Ditto.
21647         (*thumb_movdf_insn): Ditto.
21648         (movmem12b): Ditto.
21649         (movmem8b): Ditto.
21650         (cbranchqi4): Ditto.
21651         (cbranchsi4_insn): Ditto.
21652         (cbranchsi4_scratch): Ditto.
21653         (*negated_cbranchsi4): Ditto.
21654         (*tbit_cbranch): Ditto.
21655         (*tlobits_cbranch): Ditto.
21656         (*tstsi3_cbranch): Ditto.
21657         (*cbranchne_decr1): Ditto.
21658         (*addsi3_cbranch): Ditto.
21659         (*addsi3_cbranch_scratch): Ditto.
21660         (*thumb_cmpdi_zero): Ditto.
21661         (cstoresi_eq0_thumb1): Ditto.
21662         (cstoresi_ne0_thumb1): Ditto.
21663         (*cstoresi_eq0_thumb1_insn): Ditto.
21664         (*cstoresi_ne0_thumb1_insn): Ditto.
21665         (cstoresi_nltu_thumb1): Ditto.
21666         (cstoresi_ltu_thumb1): Ditto.
21667         (thumb1_addsi3_addgeu): Ditto.
21668         (*thumb_jump): Ditto.
21669         (*call_reg_thumb1_v5): Ditto.
21670         (*call_reg_thumb1): Ditto.
21671         (*call_value_reg_thumb1_v5): Ditto.
21672         (*call_value_reg_thumb1): Ditto.
21673         (*call_insn): Ditto.
21674         (*call_value_insn): Ditto.
21675         (thumb1_casesi_internal_pic): Ditto.
21676         (thumb1_casesi_dispatch): Ditto.
21677         (*thumb1_indirect_jump): Ditto.
21678         (prologue_thumb1_interwork): Ditto.
21679         (*epilogue_insns): Ditto.
21680         (consttable_1): Ditto.
21681         (consttable_2): Ditto.
21682         (tablejump): Ditto.
21683         (*thumb1_tablejump): Ditto.
21684         (thumb_eh_return): Ditto.
21685         (define_peephole2): Two of them are thumb1 only and got moved into
21686         new file thumb1.md.
21687         (define_split): Six of them are thumb1 only and got moved into new
21688         file thumb1.md.
21689         * config/arm/thumb1.md: New file comprised of above thumb1 only
21690         patterns.
21692 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21694         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21695         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21696         dependencies.
21697         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21698         (aarch64_crc_builtin_datum): New struct.
21699         (aarch64_crc_builtin_data): New.
21700         (aarch64_init_crc32_builtins): New function.
21701         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21702         (aarch64_crc32_expand_builtin): New.
21703         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21704         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21705         __ARM_FEATURE_CRC32 when appropriate.
21706         (TARGET_CRC32): Define.
21707         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21708         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21709         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21710         (aarch64_<crc_variant>): New pattern.
21711         * config/aarch64/arm_acle.h: New file.
21712         * config/aarch64/iterators.md (CRC): New int iterator.
21713         (crc_variant, crc_mode): New int attributes.
21714         * doc/aarch64-acle-intrinsics.texi: New file.
21715         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21716         Include aarch64-acle-intrinsics.texi.
21718 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
21720         * tree-vect-data-refs.c (vect_grouped_store_supported): New
21721         check for stores group of length 3.
21722         (vect_permute_store_chain): New permutations for stores group of
21723         length 3.
21724         * tree-vect-stmts.c (vect_model_store_cost): Change cost
21725         of vec_perm_shuffle for the new permutations.
21727 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21729         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21730         table rewriting temporarily on targets not supporting ONE_ONLY.
21732 2014-06-11  Richard Biener  <rguenther@suse.de>
21734         PR middle-end/61437
21735         Revert
21736         2014-06-04  Richard Biener  <rguenther@suse.de>
21738         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21739         TREE_PUBLIC and DECL_EXTERNAL decls.
21741 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
21743         * varasm.c (set_implicit_section): New function.
21744         (resolve_unique_section): Use it to set implicit section
21745         for aliases, too.
21746         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21747         (default_function_section): Likewise.
21748         (decl_binds_to_current_def_p): Constify argument.
21749         * varasm.h (decl_binds_to_current_def_p): Update prototype.
21750         * asan.c (asan_protect_global): Use
21751         symtab_get_node (decl)->implicit_section.
21752         * symtab.c (dump_symtab_base): Dump implicit sections.
21753         (verify_symtab_base): Verify sanity of sectoins and comdats.
21754         (symtab_resolve_alias): Alias share the section of its target.
21755         (set_section_1): New function.
21756         (symtab_node::set_section): Move here, recurse to aliases.
21757         (verify_symtab): Check for duplicated symtab lists.
21758         * tree-core.h (implicit_section_name_p): Remove.
21759         * tree-vect-data-refs.c: Include varasm.h.
21760         (vect_can_force_dr_alignment_p): Fix conditional on when
21761         decl bints to current definition; use
21762         symtab_get_node (decl)->implicit_section.
21763         * cgraph.c (cgraph_make_node_local_1): Fix section set.
21764         * cgraph.h (struct symtab_node): Add implicit_section.
21765         (set_section): Rename to ...
21766         (set_section_for_node): ... this one.
21767         (set_section): Declare.
21768         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21769         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21770         input_overwrite_node, input_varpool_node): Stream implicit_section.
21771         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21772         removal; it will fail in LTO.
21774 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21776         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21777         Change second alternative type to f_mcr.
21778         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21779         and 12th alternatives' types to f_mcr and f_mrc.
21780         (*movdi_aarch64): Same for 12th and 13th alternatives.
21781         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21782         (aarch64_movtilow_tilow): Change type to fmov.
21784 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
21786         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21787         (aarch64_save_or_restore_callee_save_registers): Fix layout.
21789 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21791         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21792         New expander.
21793         (aarch64_sqrdmulh_lane<mode>): Likewise.
21794         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21795         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21796         (aarch64_sqdmulh_laneq<mode>): New expander.
21797         (aarch64_sqrdmulh_laneq<mode>): Likewise.
21798         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21799         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21800         (aarch64_sqdmulh_lane<mode>): New expander.
21801         (aarch64_sqrdmulh_lane<mode>): Likewise.
21802         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21803         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21804         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21805         (aarch64_sqdmlal_laneq<mode>): Likewise.
21806         (aarch64_sqdmlsl_lane<mode>): Likewise.
21807         (aarch64_sqdmlsl_laneq<mode>): Likewise.
21808         (aarch64_sqdmlal2_lane<mode>): Likewise.
21809         (aarch64_sqdmlal2_laneq<mode>): Likewise.
21810         (aarch64_sqdmlsl2_lane<mode>): Likewise.
21811         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21812         (aarch64_sqdmull_lane<mode>): Likewise.
21813         (aarch64_sqdmull_laneq<mode>): Likewise.
21814         (aarch64_sqdmull2_lane<mode>): Likewise.
21815         (aarch64_sqdmull2_laneq<mode>): Likewise.
21817 2014-06-10  Richard Biener  <rguenther@suse.de>
21819         PR tree-optimization/61438
21820         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21821         (eliminate_dom_walker::before_dom_children): Only try to inhibit
21822         insertion of IVs if running PRE.
21823         (eliminate): Adjust.
21824         (pass_pre::execute): Likewise.
21825         (pass_fre::execute): Likewise.
21827 2014-06-10  Richard Biener  <rguenther@suse.de>
21829         PR middle-end/61456
21830         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21831         Do not use the main variant for the type comparison.
21832         (ncr_compar): Likewise.
21833         (nonoverlapping_component_refs_p): Likewise.
21835 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21837         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21838         REG_CFA_RESTORE mode.
21840 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
21842         * config/i386/i386.c (expand_vec_perm_pblendv): New.
21843         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21844         expand_vec_perm_pblendv.
21846 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21848         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21849         available.
21850         Simplify description of __crc32d and __crc32cd intrinsics.
21851         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21852         availability.
21854 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
21856         PR lto/61334
21857         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21858         * config.in: Regenerate.
21859         * configure: Likewise.
21861 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
21863         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21864         and public vars.
21865         (intersect_static_var_sets): Remove.
21866         (propagate): Do not prune local statics.
21868 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
21870         PR fortran/60928
21871         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21872         Set lastprivate_firstprivate even if omp_private_outer_ref
21873         langhook returns true.
21874         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21875         langhook, call unshare_expr on new_var and call
21876         build_outer_var_ref to get the last argument.
21878 2014-06-10  Marek Polacek  <polacek@redhat.com>
21880         PR c/60988
21881         * doc/extend.texi: Add cindex for transparent_union.
21883 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21885         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21886         init_symbolic_number ().
21888 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
21890         PR middle-end/61141
21891         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21892         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21893         (verify_rtl_sharing): Likewise.
21895 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
21897         PR c++/54442
21898         * tree.c (build_qualified_type): Use a canonical type for
21899         TYPE_CANONICAL.
21901 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21903         * config/arm/arm-modes.def: Remove XFmode.
21905 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
21907         PR target/61062
21908         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21909         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21910         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21911         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21912         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21913         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21914         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21915         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21916         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21918 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
21920         * tree-core.h (tree_decl_with_vis): Remove section_name.
21922 2014-06-09  Kito Cheng  <kito@0xlab.org>
21924         * ira.c (ira): Don't call init_caller_save if LRA enabled
21925         since LRA use its own infrastructure to handle that.
21927 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21929         * symtab.c (dump_symtab_base): Update dumping.
21930         (symtab_make_decl_local): Clear only DECL_COMDAT.
21931         * tree-vect-data-refs.c (Check that variable is static before
21932         tampering with sections.
21933         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21934         (cgraph_create_virtual_clone): Likewise.
21935         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21936         (decl_section_name, set_decl_section_name): New accessors.
21937         (find_decls_types_r): Do not walk section name
21938         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21939         (decl_comdat_group, decl_comdat_group_id): Constify.
21940         (decl_section_name, set_decl_section_name): Update.
21941         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21942         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21943         (cgraph_make_node_local_1): Clear section and comdat group.
21944         * cgraph.h (set_comdat_group): Sanity check.
21945         (get_section, set_section): New.
21946         * ipa-comdats.c (ipa_comdats): Use get_section.
21947         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21948         * lto-streamer-out.c: Do not follow section names.
21949         * c-family/c-common.c (handle_section_attribute): Update.
21950         * lto-cgraph.c (lto_output_node): Output section.
21951         (lto_output_varpool_node): Likewise.
21952         (read_comdat_group): Rename to ...
21953         (read_identifier): ... this one.
21954         (read_string_cst): New function.
21955         (input_node, input_varpool_node): Input section names.
21956         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21957         (new_emutls_decl): Update.
21958         (secname_for_decl): Check section names only of static vars.
21959         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21960         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21961         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21962         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21963         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21964         * config/mcore/mcore.c (mcore_unique_section): Likewise.
21965         * config/mips/mips.c (mips16_build_function_stub): Likewise.
21966         * config/v850/v850.c (v850_insert_attributes): Likewise.
21967         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21968         Likewise.
21969         (h8300_handle_tiny_data_attribute): Likewise.
21970         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21971         (bfin_handle_l2_attribute): Likewise.
21973 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21975         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21976         remove static initializer.
21978 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21980         * varasm.c (use_blocks_for_decl_p): Check symbol table
21981         instead of alias attribute.
21982         (place_block_symbol): Recurse on aliases.
21984 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21986         * ipa-visibility.c: Include varasm.h
21987         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21989 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21991         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21992         outputting aliases.
21994 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
21996         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21997         from test_insn into GGC space escape via SET_SRC.
21999 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
22001         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22002         call statement, if any.
22003         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22004         statements, if any.  Tidy up.
22006 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22008         PR target/61431
22009         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22010         iterators, VSX_D that handles 64-bit types, and VSX_LE that
22011         handles swapping the two 64-bit double words on little endian
22012         systems.  Include V1TImode and optionally TImode in VSX_LE so that
22013         these types are properly swapped.  Change all of the insns and
22014         splits that do the 64-bit swaps to use VSX_LE.
22015         (vsx_le_perm_load_<mode>): Likewise.
22016         (vsx_le_perm_store_<mode>): Likewise.
22017         (splitters for little endian memory operations): Likewise.
22018         (vsx_xxpermdi2_le_<mode>): Likewise.
22019         (vsx_lxvd2x2_le_<mode>): Likewise.
22020         (vsx_stxvd2x2_le_<mode>): Likewise.
22022 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
22024         PR target/61423
22025         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22026         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22027         and corresponding splitters.  Zero extend general register
22028         or memory input operand to XMM temporary.  Enable for
22029         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22030         (floatunssi<mode>2): Update expander predicate.
22032 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22034         PR rtl-optimization/61325
22035         * lra-constraints.c (process_address_1): Check scale equal to one
22036         to prevent transformation: base + scale * index => base + new_reg.
22038 2014-06-06  Richard Biener  <rguenther@suse.de>
22040         PR tree-optimization/59299
22041         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22042         a def operand.
22043         (nearest_common_dominator_of_uses): Likewise.
22044         (statement_sink_location): Adjust.  Support sinking loads.
22046 2014-06-06  Martin Jambor  <mjambor@suse.cz>
22048         * ipa-prop.c (get_place_in_agg_contents_list): New function.
22049         (build_agg_jump_func_from_list): Likewise.
22050         (determine_known_aggregate_parts): Renamed to
22051         determine_locally_known_aggregate_parts.  Moved some functionality
22052         to the two functions above, removed bound checks.
22054 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
22056         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22057         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22058         (aarch64_progress_pointer): Likewise.
22059         (aarch64_copy_one_part_and_move_pointers): Likewise.
22060         (aarch64_expand_movmen): Likewise.
22061         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22062         * config/aarch64/aarch64.md (movmem<mode>): New.
22064 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
22066         * targhooks.c (default_add_stmt_cost): Call target specific
22067         hook instead of default one.
22069 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22071         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22072         endianness instead of host endianness.
22073         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22074         comments.
22076 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22078         PR debug/53927
22079         * function.c (instantiate_decls): Process the saved static chain.
22080         (expand_function_start): If not optimizing, save the static chain
22081         onto the stack.
22082         * tree-nested.c (convert_all_function_calls): Always create the static
22083         chain for nested functions if not optimizing.
22085 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22087         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22089 2014-06-06  Richard Biener  <rguenther@suse.de>
22091         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22092         (construct_init_block): Likewise.
22093         (construct_exit_block): Likewise.
22094         (pass_expand::execute): Likewise.
22095         * graphite.c (graphite_transforms): Replace check for current_loops
22096         with a check for > 1 loops.
22097         (pass_graphite_transforms::execute): Adjust.
22098         * ipa-split.c (split_function): Remove check for current_loops.
22099         * omp-low.c (expand_parallel_call): Likewise.
22100         (expand_omp_for_init_counts): Likewise.
22101         (extract_omp_for_update_vars): Likewise.
22102         (expand_omp_for_generic): Likewise.
22103         (expand_omp_sections): Likewise.
22104         (expand_omp_target): Likewise.
22105         * tracer.c (tail_duplicate): Likewise.
22106         (pass_tracer::execute): Likewise.
22107         * trans-mem.c (expand_transaction): Likewise.
22108         * tree-complex.c (expand_complex_div_wide): Likewise.
22109         * tree-eh.c (lower_resx): Likewise.
22110         (cleanup_empty_eh_merge_phis): Likewise.
22111         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22112         current_loops with a check for > 1 loops.
22113         (pass_predcom::execute): Adjust.
22114         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22115         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22116         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22117         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22118         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22119         * tree-switch-conversion.c (process_switch): Likewise.
22120         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22121         * tree-vrp.c (vrp_visit_phi_node): Likewise.
22122         (execute_vrp): Likewise.
22123         * ubsan.c (ubsan_expand_null_ifn): Likewise.
22125 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22127         * rtl.h (insn_location): Declare.
22128         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22129         with UNKNOWN_LOCATION.
22130         * emit-rtl.c (insn_location): New function.
22131         * final.c (notice_source_line): Check that the instruction has a
22132         location before retrieving it and use insn_location.
22133         * modulo-sched.c (loop_single_full_bb_p): Likewise.
22134         * print-rtl.c (print_rtx): Likewise.
22136 2014-06-06  Richard Biener  <rguenther@suse.de>
22138         * passes.def: Move 2nd VRP pass before phi-only-cprop.
22140 2014-06-06  Christian Bruel  <christian.bruel@st.com>
22142         PR tree-optimization/43934
22143         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22144         cost.
22146 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
22148         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
22149         return NO_REGS for extra address and memory constraints.  Handle
22150         operands that match (or are equivalent to something that matches)
22151         extra constant constraints.  Ignore other non-register operands.
22153 2014-06-06  Alan Modra  <amodra@gmail.com>
22155         PR target/61300
22156         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22157         * doc/tm.texi: Regenerate.
22158         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22159         Use throughout in place of REG_PARM_STACK_SPACE.
22160         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22161         "incoming" param.  Pass to rs6000_function_parms_need_stack.
22162         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22163         prototype_p when incoming.  Use function decl when incoming
22164         to handle K&R style functions.
22165         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22166         (INCOMING_REG_PARM_STACK_SPACE): Define.
22168 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22170         PR target/52472
22171         * cfgexpand.c (expand_debug_expr): Use address space of nested
22172         TREE_TYPE for ADDR_EXPR and MEM_REF.
22174 2014-06-05  Jeff Law  <law@redhat.com>
22176         PR tree-optimization/61289
22177         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22178         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
22179         looking for those which match LHS.  All callers changed.
22180         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22181         parameters and code which manipulated them.  All callers changed.
22182         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22183         and DST_MAP parameters.  Simplify invalidation code by just calling
22184         invalidate_equivalences.  All callers changed.
22185         (thread_across_edge): Simplify now that we don't need to maintain
22186         the map of equivalences to invalidate.
22188 2014-06-05  Kai Tietz  <ktietz@redhat.com>
22189             Richard Henderson  <rth@redhat.com>
22191         PR target/46219
22192         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22193         checking for !TARGET_X32.
22194         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22195         (sibcall_intern): New define_insn, plus required peepholes.
22196         (sibcall_pop_intern): Likewise.
22197         (sibcall_value_intern): Likewise.
22198         (sibcall_value_pop_intern): Likewise.
22200 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
22202         * tree-inline.c (tree_function_versioning): Check DF info existence
22203         before accessing it.
22205 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22207         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22208         frame_size.
22209         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22210         aarch64_frame hard_fp_offset and frame_size.
22211         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22212         frame_size; remove original_frame_size.
22213         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22214         (aarch64_initial_elimination_offset): Remove frame_size and
22215         offset.  Use aarch64_frame frame_size.
22217 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22218             Jiong Wang  <jiong.wang@arm.com>
22219             Renlin  <renlin.li@arm.com>
22221         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22222         initialization of R30 offset.  Update offset.  Iterate core
22223         regisers upto X30.  Remove X29, X30 specific code.
22225 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22226             Jiong Wang  <jiong.wang@arm.com>
22228         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22229         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22230         (aarch64_register_saved_on_entry): Adjust test.
22232 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22234         * config/aarch64/aarch64.h (machine_function): Move
22235         saved_varargs_size from here...
22236         (aarch64_frame): ... to here.
22238         * config/aarch64/aarch64.c (aarch64_expand_prologue)
22239         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22240         (aarch64_initial_elimination_offset)
22241         (aarch64_setup_incoming_varargs): Adjust location of
22242         saved_varargs_size.
22244 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22246         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22247         layout comment.
22249 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
22250             Prachi Godbole  <Prachi.Godbole@imgtec.com>
22252         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
22253         mips32r5 entry to use PROCESSOR_P5600.
22254         * config/mips/mips-tables.opt: Regenerate.
22255         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22256         * config/mips/mips.c (mips_fmadd_bypass): New function.
22257         (mips_rtx_cost_data): Add costs for p5600.
22258         (mips_issue_rate): Add support for p5600.
22259         (mips_multipass_dfa_lookahead): Likewise.
22260         * config/mips/mips.h (TUNE_P5600): New define.
22261         (TUNE_MACC_CHAINS): Add TUNE_P5600.
22262         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22263         * config/mips/mips.md: Include p5600.md.
22264         (processor): Add p5600.
22265         * config/mips/p5600.md: New file.
22267 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
22269         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22270         * config/i386/predicates.md (palignr_operand): New.
22271         Indicates if permutation is suitable for palignr instruction.
22273 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
22275         PR tree-optimization/61319
22276         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22277         stmt belongs to loop.
22279 2014-06-05  Richard Biener  <rguenther@suse.de>
22281         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22282         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22283         (lookup_tmp_var): Adjust.
22284         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22286 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22288         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22290 2014-06-05  Marek Polacek  <polacek@redhat.com>
22292         PR c/49706
22293         * doc/invoke.texi: Document -Wlogical-not-parentheses.
22295 2014-06-04  Tom de Vries  <tom@codesourcery.com>
22297         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22298         CONST_INT.
22300 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
22302         PR tree-optimization/61385
22303         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22305 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22307         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
22308         changed to use fatal_error.
22309         (main): Ensure lto_wrapper_cleanup is run atexit.
22311 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22313         * lra-constraints.c (valid_address_p): Move earlier in file.
22314         (address_eliminator): New structure.
22315         (satisfies_memory_constraint_p): New function.
22316         (satisfies_address_constraint_p): Likewise.
22317         (process_alt_operands, process_address, curr_insn_transform): Use them.
22319 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22321         * lra-int.h (lra_static_insn_data): Make operand_alternative a
22322         const pointer.
22323         (target_lra_int, default_target_lra_int, this_target_lra_int)
22324         (op_alt_data): Delete.
22325         * lra.h (lra_init): Delete.
22326         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22327         (init_insn_code_data_once): Remove op_alt_data handling.
22328         (finish_insn_code_data_once): Likewise.
22329         (init_op_alt_data): Delete.
22330         (get_static_insn_data): Initialize operand_alternative to null.
22331         (free_insn_recog_data): Cast operand_alternative before freeing it.
22332         (setup_operand_alternative): Take the operand_alternative as
22333         parameter and assume it isn't already cached in the static
22334         insn data.
22335         (lra_set_insn_recog_data): Update accordingly.
22336         (lra_init): Delete.
22337         * ira.c (ira_init): Don't call lra_init.
22338         * target-globals.h (this_target_lra_int): Declare.
22339         (target_globals): Remove lra_int.
22340         (restore_target_globals): Update accordingly.
22341         * target-globals.c: Don't include lra-int.h.
22342         (default_target_globals, save_target_globals): Remove lra_int.
22344 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22346         * recog.h (operand_alternative): Convert reg_class, reject,
22347         matched and matches into bitfields.
22348         (preprocess_constraints): New overload.
22349         (preprocess_insn_constraints): New function.
22350         (preprocess_constraints): Take the insn as parameter.
22351         (recog_op_alt): Change into a pointer.
22352         (target_recog): Add x_op_alt.
22353         * recog.c (asm_op_alt): New variable.
22354         (recog_op_alt): Change into a pointer.
22355         (preprocess_constraints): New overload, replacing the old function
22356         definition with one that doesn't use global state.
22357         (preprocess_insn_constraints): New function.
22358         (preprocess_constraints): Use them.  Take the insn as parameter.
22359         Use asm_op_alt for asms.
22360         (recog_init): Free existing x_op_alt entries.
22361         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22362         pointer const.
22363         (make_early_clobber_and_input_conflicts): Likewise.
22364         (process_bb_node_lives): Pass the insn to process_constraints.
22365         * reg-stack.c (check_asm_stack_operands): Likewise.
22366         (subst_asm_stack_regs): Likewise.
22367         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22368         * regrename.c (build_def_use): Likewise.
22369         * sched-deps.c (sched_analyze_insn): Likewise.
22370         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22371         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22372         (note_invalid_constants): Likewise.
22373         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22374         (ix86_legitimate_combined_insn): Make operand_alternative pointer
22375         const.
22377 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22379         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22380         * ira-lives.c (check_and_make_def_conflict): Check for disabled
22381         alternatives.
22382         (make_early_clobber_and_input_conflicts): Likewise.
22383         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22385 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22387         * recog.h (alternative_class): New function.
22388         (which_op_alt): Return a const recog_op_alt.
22389         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22390         (subst_asm_stack_regs): Likewise.
22391         * config/arm/arm.c (note_invalid_constants): Likewise.
22392         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
22393         the operand_alternative; use alternative class instead.
22394         * sel-sched.c (get_reg_class): Likewise.
22395         * regrename.c (build_def_use): Likewise.
22396         (hide_operands, restore_operands, record_out_operands): Update type
22397         accordingly.
22399 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22401         * recog.h (recog_op_alt): Convert to a flat array.
22402         (which_op_alt): New function.
22403         * recog.c (recog_op_alt): Convert to a flat array.
22404         (preprocess_constraints): Update accordingly, grouping all
22405         operands of the same alternative together, rather than the
22406         other way around.
22407         * ira-lives.c (check_and_make_def_conflict): Likewise.
22408         (make_early_clobber_and_input_conflicts): Likewise.
22409         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22410         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22411         (subst_asm_stack_regs): Likewise.
22412         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22413         * regrename.c (hide_operands, record_out_operands): Likewise.
22414         (build_def_use): Likewise.
22415         * sel-sched.c (get_reg_class): Likewise.
22416         * config/arm/arm.c (note_invalid_constants): Likewise.
22418 2014-06-04  Jason Merrill  <jason@redhat.com>
22420         PR c++/51253
22421         PR c++/61382
22422         * gimplify.c (gimplify_arg): Non-static.
22423         * gimplify.h: Declare it.
22425 2014-06-04  Richard Biener  <rguenther@suse.de>
22427         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22428         TREE_PUBLIC and DECL_EXTERNAL decls.
22430 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
22432         * regcprop.c (copyprop_hardreg_forward_1): Account for
22433         HARD_REGNO_CALL_PART_CLOBBERED.
22435 2014-06-04  Richard Biener  <rguenther@suse.de>
22437         * configure.ac: Check whether the underlying type of int64_t
22438         is long or long long.
22439         * configure: Regenerate.
22440         * config.in: Likewise.
22441         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22442         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22444 2014-06-04  Richard Biener  <rguenther@suse.de>
22446         PR tree-optimization/60098
22447         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22448         we hit a kill.
22449         (dse_optimize_stmt): Simplify, now that we found a kill
22450         earlier.
22452 2014-06-04  Richard Biener  <rguenther@suse.de>
22454         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22455         of accesses with non-invariant address.
22457 2014-06-04  Martin Liska  <mliska@suse.cz>
22459         * cgraph.h (cgraph_make_wrapper): New function introduced.
22460         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22461         * ipa-inline.h (inline_analyze_function): The function is global.
22462         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22464 2014-06-04  Martin Liska  <mliska@suse.cz>
22466         * tree.h (private_lookup_attribute_starting): New function.
22467         (lookup_attribute_starting): Likewise.
22468         * tree.c (private_lookup_attribute_starting): Likewise.
22470 2014-06-04  Martin Liska  <mliska@suse.cz>
22472         * cgraph.h (expand_thunk): New argument added.
22473         (address_taken_from_non_vtable_p): New global function.
22474         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22475         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22476         * cgraphunit.c (analyze_function): Likewise.
22477         (assemble_thunks_and_aliases): Argument added to call.
22478         (expand_thunk): New argument forces to produce GIMPLE thunk.
22480 2014-06-04  Martin Liska  <mliska@suse.cz>
22482         * coverage.h (coverage_compute_cfg_checksum): Argument added.
22483         * coverage.c (coverage_compute_cfg_checksum): Likewise.
22484         * profile.c (branch_prob): Likewise.
22486 2014-06-04  Martin Jambor  <mjambor@suse.cz>
22488         PR ipa/61340
22489         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22490         handler for switch on an ipa_ref_use enum.
22491         * ipa-reference.c (analyze_function): Likewise.
22493 2014-06-04  Kai Tietz  <ktietz@redhat.com>
22495         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22496         from old call-instruction.
22498 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
22500         * config/aarch64/aarch64.c (aarch64_classify_address)
22501         (aarch64_legitimize_reload_address): Support full addressing modes
22502         for vector modes.
22503         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22504         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22506 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22508         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22509         for OP0.
22511 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22513         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22514         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22516 2014-06-03  Kai Tietz  <ktietz@redhat.com>
22518         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22519         for 64-bit ms-abi.
22521 2014-06-03  Dehao Chen  <dehao@google.com>
22523         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22524         the same loop.
22526 2014-06-03  Marek Polacek  <polacek@redhat.com>
22528         PR c/60439
22529         * doc/invoke.texi: Document -Wswitch-bool.
22530         * function.c (stack_protect_epilogue): Cast controlling expression of
22531         the switch to int.
22532         * gengtype.c (walk_type): Generate switch expression with its
22533         controlling expression cast to int.
22535 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
22537         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22538         and attiny841.
22539         * config/avr/avr-tables.opt: Regenerate.
22540         * config/avr/t-multilib: Regenerate.
22541         * doc/avr-mmcu.texi: Regenerate.
22543 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
22544             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22546         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22547         (ata6617c, ata664251): Add new avr35 devices.
22548         (ata6612c): Add new avr4 device.
22549         (ata6613c, ata6614q): Add new avr5 devices.
22550         * config/avr/avr-tables.opt: Regenerate.
22551         * config/avr/t-multilib: Regenerate.
22552         * doc/avr-mmcu.texi: Regenerate.
22554 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22556         * gcc/config/aarch64/aarch64-builtins.c
22557         (aarch64_types_binop_ssu_qualifiers): New static data.
22558         (TYPES_BINOP_SSU): Define.
22559         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22560         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22561         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22562         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22563         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22564         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22565         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22566         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22567         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22568         suffix to builtin function name, remove cast.
22569         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22570         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22571         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22573 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22575         * gcc/config/aarch64/aarch64-builtins.c
22576         (aarch64_types_binop_uus_qualifiers,
22577         aarch64_types_shift_to_unsigned_qualifiers,
22578         aarch64_types_unsigned_shiftacc_qualifiers): Define.
22579         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22580         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22581         sqshlu_n, uqshl_n): Update qualifiers.
22582         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22583         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22584         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22585         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22586         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22587         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22588         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22589         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22590         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22591         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22592         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22593         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22594         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22595         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22596         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22597         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22598         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22599         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22600         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22601         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22602         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22603         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22604         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22605         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22606         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22607         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22608         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22610 2014-06-03  Teresa Johnson  <tejohnson@google.com>
22612         * tree-sra.c (modify_function): Record caller nodes after rebuild.
22614 2014-06-02  Jason Merrill  <jason@redhat.com>
22616         PR c++/61020
22617         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22619 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22621         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22622         location == 0.
22624 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22626         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22627         New pattern.
22628         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22629         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22630         * config/aarch64/iterators.md (REVERSE): New iterator.
22631         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22632         (rev_op): New int_attribute.
22633         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22634         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22635         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22636         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22637         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22638         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22639         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22640         Replace temporary __asm__ with __builtin_shuffle.
22642 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22644         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22645         mips64r5.
22646         * config/mips/mips-tables.opt: Regenerate.
22647         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22648         to use mips_isa_rev rather than ISA_MIPS32R2.
22649         * config/mips/mips.h (ISA_MIPS32R3): New define.
22650         (ISA_MIPS32R5): New define.
22651         (ISA_MIPS64R3): New define.
22652         (ISA_MIPS64R5): New define.
22653         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22654         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22655         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22656         and mips64r5.
22657         (MIPS_ISA_SYNCI_SPEC): Likewise.
22658         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22659         (LINK_SPEC): Added mips32r3 and mips32r5.
22660         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22661         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22662         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22663         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22664         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22665         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22666         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22668 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22670         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22671         options.
22672         * config/mips/mips.opt (mxpa): New option.
22673         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22674         assembler.
22676 2014-06-03  Martin Jambor  <mjambor@suse.cz>
22678         PR ipa/61160
22679         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22680         thunks.
22682 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22684         PR tree-optimization/61328
22685         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22686         initialization from find_bswap_or_nop_1.
22687         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22688         in source_expr2 before using the size value the function sets. Also
22689         make use of init_symbolic_number () in both the old place and
22690         find_bswap_or_nop_load () to avoid reading uninitialized memory when
22691         doing recursion in the GIMPLE_BINARY_RHS case.
22693 2014-06-03  Richard Biener  <rguenther@suse.de>
22695         PR tree-optimization/61383
22696         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22697         stmts can't trap.
22699 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
22701         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22702         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22703         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22704         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22705         in this file.
22706         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22707         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22708         * system.h: ...here and make it unconditional.
22709         * target.def (conditional_register_usage): Mention
22710         define_register_constraint instead of old-style constraint macros.
22711         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22712         * doc/tm.texi: Regenerate.
22713         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22714         protected by !USE_MD_CONSTRAINTS.
22715         * config/frv/frv.md: Remove quote from old version of documentation.
22716         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22717         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22718         CONST_DOUBLE_OK_FOR_LETTER.
22719         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22721 2014-06-02  Andrew Pinski  <apinski@cavium.com>
22723         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22724         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22725         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22726         file whose name depends on -mabi= and -mbig-endian.
22727         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22728         Handle LP64 better and handle ilp32 too.
22729         (MULTILIB_OPTIONS): Delete.
22730         (MULTILIB_DIRNAMES): Delete.
22732 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
22734         * expr.h: Remove prototypes of functions defined in builtins.c.
22735         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22736         Remove prototypes of functions defined in builtins.c.
22737         * builtins.h: Update prototype list to include all exported functions.
22738         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22739         no_c99_libc_has_function): Move to targhooks.c
22740         (build_string_literal, build_call_expr_loc_array,
22741         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22742         to tree.c.
22743         (expand_builtin_object_size, fold_builtin_object_size): Make static.
22744         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22745         no_c99_libc_has_function): Relocate from builtins.c.
22746         * tree.c: Include builtins.h.
22747         (build_call_expr_loc_array, build_call_expr_loc_vec,
22748         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22749         from builtins.c.
22750         * fold-const.h (fold_fma): Move prototype to builtins.h.
22751         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22752         * asan.c: Include builtins.h.
22753         * cfgexpand.c: Likewise.
22754         * convert.c: Likewise.
22755         * emit-rtl.c: Likewise.
22756         * except.c: Likewise.
22757         * expr.c: Likewise.
22758         * fold-const.c: Likewise.
22759         * gimple-fold.c: Likewise.
22760         * gimple-ssa-strength-reduction.c: Likewise.
22761         * gimplify.c: Likewise.
22762         * ipa-inline.c: Likewise.
22763         * ipa-prop.c: Likewise.
22764         * lto-streamer-out.c: Likewise.
22765         * stmt.c: Likewise.
22766         * tree-inline.c: Likewise.
22767         * tree-object-size.c: Likewise.
22768         * tree-sra.c: Likewise.
22769         * tree-ssa-ccp.c: Likewise.
22770         * tree-ssa-forwprop.c: Likewise.
22771         * tree-ssa-loop-ivcanon.c: Likewise.
22772         * tree-ssa-loop-ivopts.c: Likewise.
22773         * tree-ssa-math-opts.c: Likewise.
22774         * tree-ssa-reassoc.c: Likewise.
22775         * tree-ssa-threadedge.c: Likewise.
22776         * tree-streamer-in.c: Likewise.
22777         * tree-vect-data-refs.c: Likewise.
22778         * tree-vect-patterns.c: Likewise.
22779         * tree-vect-stmts.c: Likewise.
22780         * config/aarch64/aarch64.c: Likewise.
22781         * config/alpha/alpha.c: Likewise.
22782         * config/arc/arc.c: Likewise.
22783         * config/arm/arm.c: Likewise.
22784         * config/avr/avr.c: Likewise.
22785         * config/bfin/bfin.c: Likewise.
22786         * config/c6x/c6x.c: Likewise.
22787         * config/cr16/cr16.c: Likewise.
22788         * config/cris/cris.c: Likewise.
22789         * config/epiphany/epiphany.c: Likewise.
22790         * config/fr30/fr30.c: Likewise.
22791         * config/frv/frv.c: Likewise.
22792         * config/h8300/h8300.c: Likewise.
22793         * config/i386/i386.c: Likewise.
22794         * config/i386/winnt.c: Likewise.
22795         * config/ia64/ia64.c: Likewise.
22796         * config/iq2000/iq2000.c: Likewise.
22797         * config/lm32/lm32.c: Likewise.
22798         * config/m32c/m32c.c: Likewise.
22799         * config/m32r/m32r.c: Likewise.
22800         * config/m68k/m68k.c: Likewise.
22801         * config/mcore/mcore.c: Likewise.
22802         * config/mep/mep.c: Likewise.
22803         * config/microblaze/microblaze.c: Likewise.
22804         * config/mips/mips.c: Likewise.
22805         * config/mmix/mmix.c: Likewise.
22806         * config/mn10300/mn10300.c: Likewise.
22807         * config/moxie/moxie.c: Likewise.
22808         * config/msp430/msp430.c: Likewise.
22809         * config/nds32/nds32.c: Likewise.
22810         * config/pa/pa.c: Likewise.
22811         * config/pdp11/pdp11.c: Likewise.
22812         * config/picochip/picochip.c: Likewise.
22813         * config/rl78/rl78.c: Likewise.
22814         * config/rs6000/rs6000.c: Likewise.
22815         * config/rx/rx.c: Likewise.
22816         * config/s390/s390.c: Likewise.
22817         * config/score/score.c: Likewise.
22818         * config/sh/sh.c: Likewise.
22819         * config/sparc/sparc.c: Likewise.
22820         * config/spu/spu.c: Likewise.
22821         * config/stormy16/stormy16.c: Likewise.
22822         * config/tilegx/tilegx.c: Likewise.
22823         * config/tilepro/tilepro.c: Likewise.
22824         * config/v850/v850.c: Likewise.
22825         * config/vax/vax.c: Likewise.
22826         * config/xtensa/xtensa.c: Likewise.
22828 2014-06-02  Jeff Law  <law@redhat.com>
22830         PR rtl-optimization/61094
22831         * ree.c (combine_reaching_defs): Do not reextend an insn if it
22832         was marked as do_no_reextend.  If a copy is needed to eliminate
22833         an extension, then mark it as do_not_reextend.
22835 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22837         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22839 2014-06-02  Richard Henderson  <rth@redhat.com>
22841         PR target/61336
22842         * config/alpha/alpha.c (print_operand_address): Allow symbolic
22843         addresses inside asms.  Use output_operand_lossage instead of
22844         gcc_unreachable.
22846 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
22848         PR target/61239
22849         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22850         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22852 2014-06-02  Tom de Vries  <tom@codesourcery.com>
22854         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22855         case that x has VOIDmode.
22857 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
22859         * varasm.c (copy_constant): Delete function.
22860         (build_constant_desc): Don't call it.
22862 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22864         PR target/61154
22865         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22866         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22867         with immediate_operand.
22869 2014-06-02  Andreas Schwab  <schwab@suse.de>
22871         * config/ia64/ia64.c
22872         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22873         pending_data_specs first.
22875 2014-06-02  Richard Biener  <rguenther@suse.de>
22877         PR tree-optimization/61378
22878         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22879         valueized_anything.
22881 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
22883         * config/i386/constraints.md (Bw): Rename from 'w'.
22884         (Bz): Rename from 'z'.
22885         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22887 2014-06-01  Kai Tietz  <ktietz@redhat.com>
22889         PR target/61377
22890         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22891         * config/i386/i386.md (sibcall_insn_operand): Use Bs
22892         instead of m constraint.
22894 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
22896         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22897         a separate alternative where the scratch operand 2 is marked as
22898         early clobber.
22900 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
22902         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22903         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22904         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22905         and __builtins_arm_get_fpscr.
22906         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22907         __builtins_arm_get_fpscr.
22908         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22909         __builtins_arm_ldfpscr.
22910         (arm_atomic_assign_expand_fenv): New function.
22911         * config/arm/vfp.md (set_fpscr): New pattern.
22912         (get_fpscr) : Likewise.
22913         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22914         VUNSPEC_SET_FPSCR.
22915         * doc/extend.texi (AARCH64 Built-in Functions) : Document
22916         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22918 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
22920         * asan.c (report_error_func): Add SLOW_P argument, use
22921         BUILT_IN_ASAN_*_N if set.
22922         (build_check_stmt): Likewise.
22923         (instrument_derefs): If T has insufficient alignment,
22924         force same handling as for odd sizes.
22926         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22927         BUILT_IN_ASAN_REPORT_STORE_N): New.
22928         * asan.c (struct asan_mem_ref): Change access_size type to
22929         HOST_WIDE_INT.
22930         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22931         update_mem_ref_hash_table): Likewise.
22932         (asan_mem_ref_hasher::hash): Hash in a HWI.
22933         (report_error_func): Change size_in_bytes argument to HWI.
22934         Use *_N builtins if size_in_bytes is larger than 16 or not power of
22935         two.
22936         (build_shadow_mem_access): New function.
22937         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
22938         Handle size_in_bytes not power of two or larger than 16.
22939         (instrument_derefs): Don't give up if size_in_bytes is not
22940         power of two or is larger than 16.
22942 2014-05-30  Kai Tietz  <ktietz@redhat.com>
22944         PR target/60104
22945         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22946         for sibling-tail-calls.
22947         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22948         to its use.
22949         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22950         (sibcall_insn_operand): Add check for sibcall_memory_operand.
22952 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22954         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22955         * config/avr/avr-tables.opt: Regenerate.
22956         * config/avr/t-multilib: Regenerate.
22957         * doc/avr-mmcu.texi: Regenerate.
22959 2014-05-30  Ian Lance Taylor  <iant@google.com>
22961         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22962         target("sse").
22964 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22966         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22967         Redefine as true.
22969 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22971         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22972         * lra.c (initialize_lra_reg_info_element): Add init of
22973         actual_call_used_reg_set field.
22974         (lra): Call lra_create_live_ranges before lra_inheritance for
22975         -fuse-caller-save.
22976         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22977         -fuse-caller-save.
22978         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22979         instead of call_used_reg_set for -fuse-caller-save.
22980         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22982 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22984         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22985         to mov_imm.
22986         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22988 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
22990         * ira.c (ira_get_dup_out_num): Check for output operands at
22991         the start of the loop.  Handle cases where an included alternative
22992         follows an excluded one.
22994 2014-05-29  Mike Stump  <mikestump@comcast.net>
22996         PR debug/61352
22997         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22998         post ld passes when lto is used.
23000 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
23002         PR rtl-optimization/61325
23003         * lra-constraints.c (process_address): Rename to process_address_1.
23004         (process_address): New function.
23006 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
23008         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23009         TYPES_BINOPV): New static data.
23010         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23011         New builtin.
23012         * config/aarch64/aarch64-simd.md (aarch64_ext,
23013         aarch64_im_lane_boundsi): New patterns.
23014         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23015         patterns for EXT.
23016         (aarch64_evpc_ext): New function.
23018         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23020         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23021         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23022         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23023         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23024         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23026 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23028         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23030 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
23031             Richard Sandiford  <rdsandiford@googlemail.com>
23033         * arm/iterators.md (shiftable_ops): New code iterator.
23034         (t2_binop0, arith_shift_insn): New code attributes.
23035         * arm/predicates.md (shift_nomul_operator): New predicate.
23036         * arm/arm.md (insn_enabled): Delete.
23037         (enabled): Remove insn_enabled test.
23038         (*arith_shiftsi): Delete.  Replace with ...
23039         (*<arith_shift_insn>_multsi): ... new pattern.
23040         (*<arith_shift_insn>_shiftsi): ... new pattern.
23041         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23043 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
23044             Tom de Vries  <tom@codesourcery.com>
23046         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23047         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23048         clobber.
23049         (mips_split_call): Use POST_CALL_TMP_REG.
23050         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23052 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23054         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23055         with #ifdef STACK_REGS.
23057 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
23059         * varasm.c (get_variable_section): Walk aliases.
23060         (place_block_symbol): Walk aliases.
23062 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23064         Revert:
23065         2014-05-28  Tom de Vries  <tom@codesourcery.com>
23067         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23068         * lra.c (initialize_lra_reg_info_element): Add init of
23069         actual_call_used_reg_set field.
23070         (lra): Call lra_create_live_ranges before lra_inheritance for
23071         -fuse-caller-save.
23072         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23073         -fuse-caller-save.
23074         * lra-constraints.c (need_for_call_save_p): Use
23075         actual_call_used_reg_set instead of call_used_reg_set for
23076         -fuse-caller-save.
23077         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23079 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23081         * doc/md.texi: Document that the % constraint character must
23082         be at the beginning of the string.
23083         * genoutput.c (validate_insn_alternatives): Check that '=',
23084         '+' and '%' only appear at the beginning of a constraint.
23085         * ira.c (commutative_constraint_p): Delete.
23086         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23087         at the start of the string.
23088         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23089         duplicate '='s.
23090         * config/arm/neon.md (bicdi3_neon): Likewise.
23091         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23092         (slt_si, sltu_si): Likewise.
23093         * config/vax/vax.md (sbcdi3): Likewise.
23094         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23095         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23096         (mul64): Move '%' to beginning of constraint.
23097         * config/arm/arm.md (*xordi3_insn): Likewise.
23098         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23099         (xorsi3): Likewise.
23101 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23103         * doc/md.texi: Document the restrictions on the "enabled" attribute.
23105 2014-05-28  Jason Merrill  <jason@redhat.com>
23107         PR c++/47202
23108         * cgraph.h (symtab_node::get_comdat_group_id): New.
23109         * cgraphunit.c (analyze_functions): Call it.
23110         * symtab.c (dump_symtab_node): Likewise.
23111         * tree.c (decl_comdat_group_id): New.
23112         * tree.h: Declare it.
23113         * lto-streamer-out.c (write_symbol): Use it.
23114         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23116 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23118         PR bootstrap/PR61146
23119         * wide-int.cc: Do not include longlong.h when compiling with clang.
23121 2014-05-28  Richard Biener  <rguenther@suse.de>
23123         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23124         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23125         (vrp_visit_assignment_or_call): Print less vertical space.
23126         (vrp_visit_stmt): Likewise.
23127         (vrp_visit_phi_node): Likewise.  For a PHI argument with
23128         VR_VARYING range consider recording it as copy.
23130 2014-05-28  Richard Biener  <rguenther@suse.de>
23132         Revert
23133         2014-05-28  Richard Biener  <rguenther@suse.de>
23135         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23137 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23139         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23140         sufficiently aligned and an offset is used at the same time.
23141         (expand_expr_real_1): Likewise.
23143 2014-05-28  Richard Biener  <rguenther@suse.de>
23145         PR middle-end/61045
23146         * fold-const.c (fold_comparison): When folding
23147         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23148         the sign of the remaining constant operand stays the same.
23150 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
23152         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23153         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23154         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23155         to the assembler.
23156         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23157         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23158         (m32bit-doubles) Likewise.
23159         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23160         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23161         option for RL78.
23163 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23165         * configure.ac ($gcc_cv_ld_clearcap): New test.
23166         * configure: Regenerate.
23167         * config.in: Regenerate.
23168         * config/sol2.opt (mclear-hwcap): New option.
23169         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23170         * config/sol2-clearcap.map: Moved here from
23171         testsuite/gcc.target/i386/clearcap.map.
23172         * config/sol2-clearcapv2.map: Move here from
23173         gcc.target/i386/clearcapv2.map.
23174         * config/t-sol2 (install): Depend on install-clearcap-map.
23175         (install-clearcap-map): New target.
23176         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23177         -mclear-hwcap.
23179 2014-05-28  Richard Biener  <rguenther@suse.de>
23181         * hwint.h (*_HALF_WIDE_INT*): Move to ...
23182         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23183         ... here and remove the rest.
23184         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23186 2014-05-28  Richard Biener  <rguenther@suse.de>
23188         PR tree-optimization/61335
23189         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23190         new range fails, drop to varying.
23192 2014-05-28  Olivier Hainque  <hainque@adacore.com>
23194         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23195         (CPP_SPEC): Add entry for -mcpu=8548.
23196         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23197         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23199 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23201         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23202         * lra.c (initialize_lra_reg_info_element): Add init of
23203         actual_call_used_reg_set field.
23204         (lra): Call lra_create_live_ranges before lra_inheritance for
23205         -fuse-caller-save.
23206         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23207         -fuse-caller-save.
23208         * lra-constraints.c (need_for_call_save_p): Use
23209         actual_call_used_reg_set instead of call_used_reg_set for
23210         -fuse-caller-save.
23211         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23213 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23214             Tom de Vries  <tom@codesourcery.com>
23216         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23217         to gccoptlist.
23218         (@item -fuse-caller-save): New item.
23220 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23221             Tom de Vries  <tom@codesourcery.com>
23223         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23224         OPT_fuse_caller_save.
23226 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23227             Tom de Vries  <tom@codesourcery.com>
23229         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23230         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23231         get_call_reg_set_usage.
23232         * resource.c (mark_set_resources, mark_target_live_regs): Use
23233         get_call_reg_set_usage.
23234         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23235         field.
23236         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23237         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23238         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23239         * ira-build.c (ira_create_allocno): Init
23240         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23241         (create_cap_allocno, propagate_allocno_info)
23242         (propagate_some_info_from_allocno)
23243         (copy_info_to_removed_store_destinations): Handle
23244         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23245         * ira-costs.c (ira_tune_allocno_costs): Use
23246         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23248 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23249             Tom de Vries  <tom@codesourcery.com>
23251         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23252         and function_used_regs_valid fields.
23253         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23254         find_all_hard_reg_sets.
23255         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23256         (get_call_reg_set_usage): New function.
23257         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23258         * regs.h (get_call_reg_set_usage): Declare.
23260 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23262         PR libgcc/61152
23263         * config/dbx.h (License): Add Runtime Library Exception.
23264         * config/newlib-stdint.h (License): Same.
23265         * config/rtems.h (License): Same
23266         * config/initfini-array.h (License): Same
23267         * config/v850/v850.h (License): Same.
23268         * config/v850/v850-opts.h (License): Same
23269         * config/v850/rtems.h (License): Same.
23271 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23273         PR target/61044
23274         * doc/extend.texi (Local Labels): Note that label differences are
23275         not supported for AVR.
23277 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23278             Olivier Hainque  <hainque@adacore.com>
23280         * rtl.h (set_for_reg_notes): Declare.
23281         * emit-rtl.c (set_for_reg_notes): New function.
23282         (set_unique_reg_note): Use it.
23283         * optabs.c (add_equal_note): Likewise
23285 2014-05-27  Andrew Pinski  <apinski@cavium.com>
23287         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23288         Use <w> for the register in assembly template.
23289         (stack_protect_test): Use the mode of operands[0] for the result.
23290         (stack_protect_test_<mode>): Use <w> for the register
23291         in assembly template.
23293 2014-05-27  DJ Delorie  <dj@redhat.com>
23295         * config/rx/rx.c (add_vector_labels): New.
23296         (rx_output_function_prologue): Call it.
23297         (rx_handle_func_attribute): Don't require empty arguments.
23298         (rx_handle_vector_attribute): New.
23299         (rx_attribute_table): Add "vector" attribute.
23300         * doc/extend.texi (interrupt, vector): Document new/changed
23301         RX-specific attributes.
23303         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23305 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23307         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23308         predicate to detect a negative quotient.
23310 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23312         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23313         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23314         Add X - Y CMP 0 to X CMP Y transformation.
23315         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23317 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
23319         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23320         before printing.
23322 2014-05-27  Steve Ellcey  <sellcey@mips.com>
23324         * config/mips/mips.c: Add include of cgraph.h.
23326 2014-05-27  Richard Biener  <rguenther@suse.de>
23328         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23330 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23332         PR libgcc/61152
23333         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23334         * config/arm/arm-cores.def (License): Same.
23335         * config/arm/arm-opts.h (License): Same.
23336         * config/arm/aout.h (License): Same.
23337         * config/arm/bpabi.h (License): Same.
23338         * config/arm/elf.h (License): Same.
23339         * config/arm/linux-elf.h (License): Same.
23340         * config/arm/linux-gas.h (License): Same.
23341         * config/arm/netbsd-elf.h (License): Same.
23342         * config/arm/uclinux-eabi.h (License): Same.
23343         * config/arm/uclinux-elf.h (License): Same.
23344         * config/arm/vxworks.h (License): Same.
23346 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23348         * config/arm/neon.md (neon_bswap<mode>): New pattern.
23349         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23350         (arm_init_neon_builtins): Handle NEON_BSWAP.
23351         Define required type nodes.
23352         (arm_expand_neon_builtin): Handle NEON_BSWAP.
23353         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23354         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23355         * config/arm/iterators.md (VDQHSD): New mode iterator.
23357 2014-05-27  Richard Biener  <rguenther@suse.de>
23359         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23360         Try using literal operands when comparing value-ranges failed.
23362 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23364         * ira.c (commutative_operand): Adjust for change to recog_data.
23365         [Missing from previous commit.]
23367 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23369         * system.h (TEST_BIT): New macro.
23370         * recog.h (alternative_mask): New type.
23371         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23372         (recog_data_d): Replace alternative_enabled_p array with
23373         enabled_alternatives.
23374         (target_recog): New structure.
23375         (default_target_recog, this_target_recog): Declare.
23376         (get_enabled_alternatives, recog_init): Likewise.
23377         * recog.c (default_target_recog, this_target_recog): New variables.
23378         (get_enabled_alternatives): New function.
23379         (extract_insn): Use it.
23380         (recog_init): New function.
23381         (preprocess_constraints, constrain_operands): Adjust for change to
23382         recog_data.
23383         * postreload.c (reload_cse_simplify_operands): Likewise.
23384         * reload.c (find_reloads): Likewise.
23385         * ira-costs.c (record_reg_classes): Likewise.
23386         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
23387         all alternatives after a disabled one would be skipped.
23388         (ira_implicitly_set_insn_hard_regs): Likewise.
23389         * ira.c (ira_setup_alts): Adjust for change to recog_data.
23390         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23391         with enabled_alternatives.
23392         * lra.c (free_insn_recog_data): Update accordingly.
23393         (lra_update_insn_recog_data): Likewise.
23394         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
23395         * lra-constraints.c (process_alt_operands): Likewise.  Handle
23396         only_alternative as part of the enabled mask.
23397         * target-globals.h (this_target_recog): Declare.
23398         (target_globals): Add a recog field.
23399         (restore_target_globals): Restore this_target_recog.
23400         * target-globals.c: Include recog.h.
23401         (default_target_globals): Initialize recog field.
23402         (save_target_globals): Likewise.
23403         * reginfo.c (reinit_regs): Call recog_init.
23404         * toplev.c (backend_init_target): Likewise.
23406 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23408         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23409         rather than any named insn's code.
23411 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23413         PR libgcc/61152
23414         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23415         * config/arm/arm-cores.def (License): Same.
23417 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
23419         * tree.h (decl_comdat_group): Declare.
23420         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23421         * tree.c (decl_comdat_group): Here.
23423 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
23425         PR rtl-optimization/61222
23426         * combine.c (simplify_shift_const_1): When moving a PLUS outside
23427         the shift, truncate the PLUS operand to the result mode.
23429 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
23431         PR target/61271
23432         * config/i386/i386.c (ix86_rtx_costs)
23433         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23434         Fix condition.
23436 2014-05-26  Martin Jambor  <mjambor@suse.cz>
23438         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23439         subreg uses.
23441 2014-05-26  Richard Biener  <rguenther@suse.de>
23443         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23444         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23445         Provide specializations.
23446         (wi::int_traits <HOST_WIDE_INT>,
23447         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23449 2014-05-26  Alan Modra  <amodra@gmail.com>
23451         PR target/61098
23452         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23453         params and return a bool.  Remove dead code.  Update comment.
23454         Assert we have a const_int source.  Remove bogus code from
23455         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
23456         handling of constants > 2G and reg_equal note, from..
23457         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
23458         return value.  Update comment.  If we can, use a new pseudo
23459         for intermediate calculations.
23460         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23461         prototype.
23462         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23463         call to rs6000_emit_set_const in splitter.
23464         (movdi_internal64+2, +3): Likewise.
23466 2014-05-26  Richard Biener  <rguenther@suse.de>
23468         * system.h: Define __STDC_FORMAT_MACROS before
23469         including inttypes.h.
23470         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23471         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23472         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23473         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23474         HOST_WIDEST_INT_C): Remove.
23475         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23476         if C99 inttypes.h is not available.
23477         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23478         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23479         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23480         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23481         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23482         (struct output_info): Likewise.
23483         (print_statistics): Adjust.
23484         (dump_bitmap_statistics): Likewise.
23485         * bt-load.c (migrate_btr_defs): Print with PRId64.
23486         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23487         (MAX_SAFE_MULTIPLIER): Adjust.
23488         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23489         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23490         dump_cgraph_node): Likewise.
23491         * final.c (dump_basic_block_info): Likewise.
23492         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23493         * gcov.c (format_gcov): Likewise.
23494         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
23495         for calculation.
23496         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23497         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23498         (inline_small_functions, dump_overall_stats, dump_inline_stats):
23499         Use PRId64 for dumping.
23500         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23501         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23502         (add_allocno_hard_regs): Adjust.
23503         * loop-doloop.c (doloop_modify): Print using PRId64.
23504         * loop-iv.c (inverse): Compute in uint64_t.
23505         (determine_max_iter, iv_number_of_iterations): Likewise.
23506         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23507         Print using PRId64.
23508         * lto-streamer-out.c (write_symbol): Use uint64_t.
23509         * mcf.c (CAP_INFINITY): Use int64_t maximum.
23510         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23511         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23512         * modulo-sched.c (const_iteration_count): Use int64_t.
23513         (sms_schedule): Dump using PRId64.
23514         * predict.c (dump_prediction): Likewise.
23515         * pretty-print.h (pp_widest_integer): Remove.
23516         * profile.c (get_working_sets, is_edge_inconsistent,
23517         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23518         * tree-pretty-print.c (pp_double_int): Remove case handling
23519         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23520         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23521         and adjust users.
23522         (pass_optimize_bswap::execute): Remove restriction on hosts.
23523         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23524         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23525         * tree.c (widest_int_cst_value): Remove.
23526         * tree.h (widest_int_cst_value): Likewise.
23527         * value-prof.c (dump_histogram_value): Print using PRId64.
23528         * gengtype.c (main): Also inject int64_t.
23529         * ggc-page.c (struct max_alignment): Use int64_t.
23530         * alloc-pool.c (struct allocation_object_def): Likewise.
23531         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23532         for computation.
23533         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23534         * doc/tm.texi: Regenerated.
23535         * gengtype-lex.l (IWORD): Handle [u]int64_t.
23536         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23537         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23538         mmix_output_register_setting): Use [u]int64_t in prototypes.
23539         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23540         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23541         mmix_output_octa, mmix_output_shifted_value): Adjust.
23542         (mmix_intval): Adjust.  Remove unreachable case.
23543         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23545 2014-05-26  Richard Biener  <rguenther@suse.de>
23547         * configure.ac: Drop __int64 type check.  Insist that we
23548         found uint64_t and int64_t.
23549         * hwint.h (HOST_BITS_PER___INT64): Remove.
23550         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23551         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23552         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23553         (HOST_WIDEST_FAST_INT): Remove __int64 case.
23554         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23555         for dst_q_src_df_rms_cdt.
23556         * configure: Regenerate.
23557         * config.in: Likewise.
23559 2014-05-26  Michael Tautschnig  <mt@debian.org>
23561         PR target/61249
23562         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23563         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23565 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23567         PR rtl-optimization/61278
23568         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23570 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23572         PR rtl-optimization/61220
23573         Part of PR rtl-optimization/61225
23574         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23575         insn; skip split_edge for a block with only one successor.
23577 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23579         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23580         for variables.
23582 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23584         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23585         (update_vtable_references): New function.
23586         (function_and_variable_visibility): Rewrite also vtable initializers.
23587         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23589 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23591         * ggc.h (ggc_grow): New function.
23592         * ggc-none.c (ggc_grow): New function.
23593         * ggc-page.c (ggc_grow): Likewise.
23595 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23597         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23598         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23599         comdat_can_be_unshared_p, cgraph_externally_visible_p,
23600         varpool_externally_visible_p, can_replace_by_local_alias,
23601         update_visibility_by_resolution_info, function_and_variable_visibility,
23602         pass_data_ipa_function_and_variable_visibility,
23603         make_pass_ipa_function_and_variable_visibility,
23604         whole_program_function_and_variable_visibility,
23605         pass_data_ipa_whole_program_visibility,
23606         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23607         * cgraph.h (cgraph_local_node_p): Declare.
23608         * ipa-visibility.c: New file.
23609         * Makefile.in (OBJS): Add ipa-visiblity.o
23611 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23613         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23614         that var decl is available.
23616 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23618         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23619         symtab_node pointer.
23620         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23621         (find_decls_types_r): Do not walk COMDAT_GROUP.
23622         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23623         * varasm.c (make_decl_one_only): Use set_comdat_group;
23624         create node if needed.
23625         * ipa-inline-transform.c (save_inline_function_body): Update
23626         way we decl->symtab mapping.
23627         * symtab.c (symtab_hash, hash_node, eq_node
23628         symtab_insert_node_to_hashtable): Remove.
23629         (symtab_register_node): Update.
23630         (symtab_unregister_node): Update.
23631         (symtab_get_node): Reimplement as inline function.
23632         (symtab_add_to_same_comdat_group): Update.
23633         (symtab_dissolve_same_comdat_group_list): Update.
23634         (dump_symtab_base): Update.
23635         (verify_symtab_base): Update.
23636         (symtab_make_decl_local): Update.
23637         (fixup_same_cpp_alias_visibility): Update.
23638         (symtab_nonoverwritable_alias): Update.
23639         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23640         * ipa.c (update_visibility_by_resolution_info): UPdate.
23641         * bb-reorder.c: Include cgraph.h
23642         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23643         with comdat groups.
23644         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23645         * cgraph.c (cgraph_get_create_node): Update.
23646         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23647         and comdat_group_.
23648         (symtab_get_node): Make inline.
23649         (symtab_insert_node_to_hashtable): Remove.
23650         (symtab_can_be_discarded): Update.
23651         (decl_comdat_group): New function.
23652         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23653         Update.
23654         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23655         comdat group name.
23656         (read_comdat_group): New function.
23657         (input_node, input_varpool_node): Use it.
23658         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23659         comdat groups.
23660         * mips.c (mips_start_unique_function): Likewise.
23661         (ix86_code_end): Likewise.
23662         (rs6000_code_end): Likweise.
23663         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23665 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23667         * gengtype-state.c (fatal_reading_state): Bring offline.
23668         * optabs.c (widening_optab_handler): Bring offline.
23669         * optabs.h (widening_optab_handler): Likewise.
23670         * final.c (get_attr_length_1): Likewise.
23672 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23674         * sched-int.h (sd_iterator_cond): Manually tail recurse.
23676 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23678         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23679         (ppc440-compare): Include shift with dot.
23680         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23681         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23682         without dot.
23683         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23684         without dot.
23685         (e6500_sfx2): Include it.
23686         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23687         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23688         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23689         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23690         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23691         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23692         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23693         *lshiftrt_internal1le, *lshiftrt_internal1be,
23694         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23695         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23696         *rotldi3_internal10le, *rotldi3_internal10be,
23697         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23698         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23699         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23700         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23701         define_insns): Use type "shift" in the appropriate alternatives.
23703 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23705         * config/rs6000/rs6000.md (type): Add "logical".  Delete
23706         "fast_compare".
23707         (dot): Adjust comment.
23708         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23709         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23710         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23711         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23712         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23713         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23714         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23715         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23717         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23718         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23719         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23720         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23721         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23722         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23723         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23724         * config/rs6000/8540.md (ppc8540_su): Adjust.
23725         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23726         cell-cmp-microcoded): Adjust.
23727         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23728         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23729         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23730         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23731         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23732         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23733         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23734         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23735         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23736         Adjust.
23737         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23738         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23739         Adjust.  Adjust comment.
23740         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23741         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23743 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23745         * config/rs6000/rs6000.md (type): Add "add".
23746         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23747         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23748         define_insns): Use it.
23749         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23751         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23752         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23753         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23754         * config/rs6000/601.md (ppc601-integer): Adjust.
23755         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23756         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23757         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23758         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23759         * config/rs6000/8540.md (ppc8540_su): Adjust.
23760         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23761         cell-cmp-microcoded): Adjust.
23762         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23763         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23764         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23765         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23766         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23767         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23768         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23769         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23770         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23771         Adjust.
23772         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23773         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23774         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23775         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23777 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23779         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23780         "delayed_compare", "var_delayed_compare".
23781         (var_shift): New attribute.
23782         (cell_micro): Adjust.
23783         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23784         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23785         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23786         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23787         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23788         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23789         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23790         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23791         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23792         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23793         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23794         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23795         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23796         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23797         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23798         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23799         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23800         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23801         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23802         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23803         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23804         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23805         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23806         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23807         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23809         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23810         * config/rs6000/440.md (ppc440-integer): Adjust.
23811         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23812         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23813         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23814         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23815         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23816         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23817         * config/rs6000/8540.md (ppc8540_su): Adjust.
23818         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23819         cell-cmp-microcoded): Adjust.
23820         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23821         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23822         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23823         e500mc64_delayed): Adjust.
23824         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23825         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23826         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23827         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23828         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23829         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23830         power6-delayed-compare, power6-var-delayed-compare): Adjust.
23831         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23832         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23833         Adjust comment.
23834         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23835         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23837 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23839         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
23840         (bits): New mode_attr.
23841         (idiv_ldiv): Delete mode_attr.
23842         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23843         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23844         rs6000_adjust_priority, is_nonpipeline_insn,
23845         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23847         * config/rs6000/40x.md (ppc403-idiv): Adjust.
23848         * config/rs6000/440.md (ppc440-idiv): Adjust.
23849         * config/rs6000/476.md (ppc476-idiv): Adjust.
23850         * config/rs6000/601.md (ppc601-idiv): Adjust.
23851         * config/rs6000/603.md (ppc603-idiv): Adjust.
23852         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23853         ppc620-ldiv): Adjust.
23854         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23855         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23856         * config/rs6000/8540.md (ppc8540_divide): Adjust.
23857         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23858         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23859         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23860         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23861         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23862         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23863         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23864         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23865         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23866         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23867         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23868         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23869         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23870         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23871         * config/rs6000/titan.md (titan_fxu_div): Adjust.
23873 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23875         * config/rs6000/rs6000.md (type): Delete "insert_word",
23876         "insert_dword".  Add "insert".
23877         (size): Update comment.
23878         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23879         insn_must_be_first_in_group): Adjust.
23880         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23881         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23882         *insvsi_internal6, insvdi_internal): Adjust.
23884         * config/rs6000/40x.md (ppc403-integer): Adjust.
23885         * config/rs6000/440.md (ppc440-integer): Adjust.
23886         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23887         * config/rs6000/601.md (ppc601-integer): Adjust.
23888         * config/rs6000/603.md (ppc603-integer): Adjust.
23889         * config/rs6000/6xx.md (ppc604-integer): Adjust.
23890         * config/rs6000/7450.md (ppc7450-integer): Adjust.
23891         * config/rs6000/7xx.md (ppc750-integer): Adjust.
23892         * config/rs6000/8540.md (ppc8540_su): Adjust.
23893         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23894         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23895         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23896         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23897         * config/rs6000/e5500.md (e5500_sfx): Adjust.
23898         * config/rs6000/e6500.md (e6500_sfx): Adjust.
23899         * config/rs6000/mpc.md (mpccore-integer): Adjust.
23900         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23901         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23902         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23903         * config/rs6000/power7.md (power7-integer): Adjust.
23904         * config/rs6000/power8.md (power8-1cyc): Adjust.
23905         * config/rs6000/rs64.md (rs64a-integer): Adjust.
23906         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23908 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23910         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
23911         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23912         (size): New attribute.
23913         (dot): New attribute.
23914         (cell_micro): Adjust.
23915         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23916         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23917         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23918         umuldi3_highpart): Adjust.
23919         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23920         rs6000_adjust_priority, is_nonpipeline_insn,
23921         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23923         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23924         ppc405-imul3): Adjust.
23925         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23926         * config/rs6000/476.md (ppc476-imul): Adjust.
23927         * config/rs6000/601.md (ppc601-imul): Adjust.
23928         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23929         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23930         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23931         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23932         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23933         Adjust.
23934         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23935         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23936         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23937         cell-imul): Adjust.
23938         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23939         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23940         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23941         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23942         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23943         * config/rs6000/mpc.md (mpccore-imul): Adjust.
23944         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23945         power4-lmul, power4-imul, power4-imul3): Adjust.
23946         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23947         power5-lmul, power5-imul, power5-imul3): Adjust.
23948         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23949         power6-lmul, power6-imul, power6-imul3): Adjust.
23950         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23951         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23953         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23954         rs64a-lmul): Adjust.
23955         * config/rs6000/titan.md (titan_imul): Adjust.
23957 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23959         * config/rs6000/rs6000.md (type): Add new value "halfmul".
23960         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23961         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23962         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23963         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23964         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23965         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23966         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23967         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23968         * config/rs6000/titan.md: Delete nonsensical comment.
23969         (titan_imul): Add type imul3.
23970         (titan_mulhw): Remove type imul3; add type halfmul.
23972 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23974         * config/rs6000/rs6000.md (type): Reorder, reformat.
23976 2014-05-23  Martin Jambor  <mjambor@suse.cz>
23978         PR tree-optimization/53787
23979         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23980         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23981         analysis_done, update all uses.
23982         * ipa-prop.c: Include domwalk.h
23983         (param_analysis_info): Removed.
23984         (param_aa_status): New type.
23985         (ipa_bb_info): Likewise.
23986         (func_body_info): Likewise.
23987         (ipa_get_bb_info): New function.
23988         (aa_overwalked): Likewise.
23989         (find_dominating_aa_status): Likewise.
23990         (parm_bb_aa_status_for_bb): Likewise.
23991         (parm_preserved_before_stmt_p): Changed to use new param AA info.
23992         (load_from_unmodified_param): Accept func_body_info as a parameter
23993         instead of parms_ainfo.
23994         (parm_ref_data_preserved_p): Changed to use new param AA info.
23995         (parm_ref_data_pass_through_p): Likewise.
23996         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
23997         (compute_complex_assign_jump_func): Changed to use new param AA info.
23998         (compute_complex_ancestor_jump_func): Likewise.
23999         (ipa_compute_jump_functions_for_edge): Likewise.
24000         (ipa_compute_jump_functions): Removed.
24001         (ipa_compute_jump_functions_for_bb): New function.
24002         (ipa_analyze_indirect_call_uses): Likewise, moved variable
24003         declarations down.
24004         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24005         and info, moved variable declarations down.
24006         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24007         node and info.
24008         (ipa_analyze_stmt_uses): Likewise.
24009         (ipa_analyze_params_uses): Removed.
24010         (ipa_analyze_params_uses_in_bb): New function.
24011         (ipa_analyze_controlled_uses): Likewise.
24012         (free_ipa_bb_info): Likewise.
24013         (analysis_dom_walker): New class.
24014         (ipa_analyze_node): Handle node-specific forbidden analysis,
24015         initialize and free func_body_info, use dominator walker.
24016         (ipcp_modif_dom_walker): New class.
24017         (ipcp_transform_function): Create and free func_body_info, use
24018         ipcp_modif_dom_walker, moved a lot of functionality there.
24020 2014-05-23  Marek Polacek  <polacek@redhat.com>
24021             Jakub Jelinek  <jakub@redhat.com>
24023         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24024         * gcc.c (sanitize_spec_function): Likewise.
24025         * convert.c (convert_to_integer): Include "ubsan.h".  Add
24026         floating-point to integer instrumentation.
24027         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24028         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24029         SANITIZE_NONDEFAULT.
24030         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24031         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24032         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24033         * ubsan.c: Include "realmpfr.h" and "dfp.h".
24034         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24035         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24036         float/double/long double.
24037         (ubsan_instrument_float_cast): New function.
24038         * ubsan.h (ubsan_instrument_float_cast): Declare.
24040 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
24042         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24043         predicate.
24044         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
24045         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24046         Adjust for tailcalling through registers.
24047         * config/aarch64/aarch64.h (enum reg_class): New caller save
24048         register class.
24049         (REG_CLASS_NAMES): Likewise.
24050         (REG_CLASS_CONTENTS): Likewise.
24051         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24052         Allow tailcalling without decls.
24054 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24056         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24057         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24059         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24060         gsi, and variables v_* to v*.
24062 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
24064         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24066 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24068         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24069         * omp-low.c: Update accordingly.
24071         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24072         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24073         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24074         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24075         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24076         GF_OMP_TARGET_KIND_UPDATE.
24078         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24079         Explicitly enumerate the expected region types.
24081 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
24083         PR other/56955
24084         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
24085         documentation; the old documentation didn't clearly state the
24086         constraints on the contents of the pointed-to storage.
24088 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24090         Fix bootstrap error on ia64
24091         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24092         Return default value.
24094 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24096         PR tree-optimization/54733
24097         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24098         (CMPNOP): Define.
24099         (find_bswap_or_nop_load): New.
24100         (find_bswap_1): Renamed to ...
24101         (find_bswap_or_nop_1): This. Also add support for memory source.
24102         (find_bswap): Renamed to ...
24103         (find_bswap_or_nop): This. Also add support for memory source and
24104         detection of bitwise operations equivalent to load in target
24105         endianness.
24106         (execute_optimize_bswap): Likewise. Also move its leading comment back
24107         in place and split statement transformation into ...
24108         (bswap_replace): This.
24110 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24112         PR rtl-optimization/61215
24113         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24114         simplify_gen_subreg until final substitution.
24116 2014-05-23  Alan Modra  <amodra@gmail.com>
24118         PR target/61231
24119         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24120         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24121         Use "Y" constraint rather than "m".
24123 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24125         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24126         define.
24127         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24128         New function declaration.
24129         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24130         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24131         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24132         (aarch64_init_builtins) : Initialize builtins
24133         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24134         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24135         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24136         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24137         and __builtins_aarch64_set_fpsr.
24138         (aarch64_atomic_assign_expand_fenv): New function.
24139         * config/aarch64/aarch64.md (set_fpcr): New pattern.
24140         (get_fpcr) : Likewise.
24141         (set_fpsr) : Likewise.
24142         (get_fpsr) : Likewise.
24143         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24144         and UNSPECV_SET_FPSR.
24145         * doc/extend.texi (AARCH64 Built-in Functions) : Document
24146         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24147         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24149 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24151         PR rtl-optimization/60969
24152         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24153         constraints.  Set up mem cost for NO_REGS case.
24155 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
24157         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24159 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
24161         * config/darwin.c: Include "lto-section-names.h".
24162         (LTO_SEGMENT_NAME): Don't define.
24163         * config/i386/winnt.c: Include "lto-section-names.h".
24164         * lto-streamer.c: Include "lto-section-names.h".
24165         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24166         * lto-wrapper.c: Include "lto-section-names.h".
24167         (LTO_SECTION_NAME_PREFIX): Don't define.
24168         * lto-section-names.h: New file.
24169         * cgraphunit.c: Include "lto-section-names.h".
24171 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
24173         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24175 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
24177         PR target/61208
24178         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24180 2014-05-22  Nick Clifton  <nickc@redhat.com>
24182         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24184 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
24186         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24187         -> (T)A transformation to integer types.
24189 2014-05-22  Teresa Johnson  <tejohnson@google.com>
24191         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24192         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24193         (gcov_rewrite): Use gcov_nonruntime_assert.
24194         (gcov_open): Ditto.
24195         (gcov_write_words): Ditto.
24196         (gcov_write_length): Ditto.
24197         (gcov_read_words): Use gcov_nonruntime_assert, and remove
24198         gcc_assert from IN_LIBGCOV code.
24199         (gcov_read_summary): Use gcov_error to flag profile corruption.
24200         (gcov_sync): Use gcov_nonruntime_assert.
24201         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24202         (gcov_histo_index): Use gcov_nonruntime_assert.
24203         (static void gcov_histogram_merge): Ditto.
24204         (compute_working_sets): Ditto.
24205         * gcov-io.h (gcov_nonruntime_assert): Define.
24206         (gcov_error): Define for !IN_LIBGCOV
24208 2014-05-22  Richard Biener  <rguenther@suse.de>
24210         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24211         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24212         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24213         and deallocation site.
24214         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24215         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24216         passing through the incoming points-to set.
24217         (handle_lhs_call): Use flags argument instead of recomputing it.
24218         (find_func_aliases_for_call): Call handle_lhs_call with proper
24219         call return flags.
24221 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
24223         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24224         all padding bits in REAL_VALUE_TYPE are cleared.
24226 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24228         Cleanup and improve multipass_dfa_lookahead_guard
24229         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24230         (core2i7_first_cycle_multipass_begin,)
24231         (core2i7_first_cycle_multipass_issue,)
24232         (core2i7_first_cycle_multipass_backtrack): Update signature.
24233         * config/ia64/ia64.c
24234         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24235         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24236         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24237         hook definition.
24238         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24239         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
24240         values.
24241         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24242         return values.
24243         * doc/tm.texi: Regenerate.
24244         * doc/tm.texi.in
24245         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24246         * haifa-sched.c (ready_try): Make signed to allow negative values.
24247         (rebug_ready_list_1): Update.
24248         (choose_ready): Simplify.
24249         (sched_extend_ready_list): Update.
24251 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24253         Remove IA64 speculation tweaking flags
24254         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24255         speculation tuning flags.
24256         (msched-prefer-non-data-spec-insns,)
24257         (msched-prefer-non-control-spec-insns): Obsolete options.
24258         * haifa-sched.c (choose_ready): Remove handling of
24259         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24260         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24261         and PREFER_NON_DATA_SPEC.
24262         * sel-sched.c (process_spec_exprs): Remove handling of
24263         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24265 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24267         Improve scheduling debug output
24268         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24269         (advance_one_cycle): Update.
24270         (schedule_insn, queue_to_ready): Add debug printouts.
24271         (debug_ready_list_1): New static function.
24272         (debug_ready_list): Update.
24273         (max_issue): Add debug printouts.
24274         (dump_insn_stream): New static function.
24275         (schedule_block): Use it.  Also better indent printouts.
24277 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24279         Fix sched_insn debug counter
24280         * haifa-sched.c (schedule_insn): Update.
24281         (struct haifa_saved_data): Add nonscheduled_insns_begin.
24282         (save_backtrack_point, restore_backtrack_point): Update.
24283         (first_nonscheduled_insn): New static function.
24284         (queue_to_ready, choose_ready): Use it.
24285         (schedule_block): Init nonscheduled_insns_begin.
24286         (sched_emit_insn): Update.
24289 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
24291         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24292         to GENERAL_REGS.
24293         (aarch64_secondary_reload) : LikeWise.
24294         (aarch64_class_max_nregs) : Remove CORE_REGS.
24295         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24296         (REG_CLASS_NAMES) : Likewise.
24297         (REG_CLASS_CONTENTS) : LikeWise.
24298         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24300 2014-05-21  Guozhi Wei  <carrot@google.com>
24302         PR target/61202
24303         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24304         constraint.
24305         (vqdmulhq_n_s16): Likewise.
24307 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
24309         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24311 2014-05-21  Marek Polacek  <polacek@redhat.com>
24313         PR sanitizer/61272
24314         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24316 2014-05-21  Martin Jambor  <mjambor@suse.cz>
24318         * doc/invoke.texi (Optimize Options): Document parameters
24319         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24320         ipa-cp-array-index-hint-bonus.
24322 2014-05-21  Mark Wielaard  <mjw@redhat.com>
24324         PR debug/16063
24325         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24326         version >= 3 or not strict DWARF.
24327         * langhooks.h (struct lang_hooks_for_types): Add
24328         enum_underlying_base_type.
24329         * langhooks.c (lhd_enum_underlying_base_type): New function.
24330         * gcc/langhooks.h (struct lang_hooks_for_types): Add
24331         enum_underlying_base_type.
24332         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24333         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24334         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24336 2014-05-21  Richard Biener  <rguenther@suse.de>
24338         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24340 2014-05-21  John Marino  <gnugcc@marino.st>
24342         * config.gcc (*-*-dragonfly*): New target.
24343         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24344         * configure: Regenerate.
24345         * config/dragonfly-stdint.h: New.
24346         * config/dragonfly.h: New.
24347         * config/dragonfly.opt: New.
24348         * config/i386/dragonfly.h: New.
24349         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24351 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24353         * tree.def (VOID_CST): New.
24354         * tree-core.h (TI_VOID): New.
24355         * tree.h (void_node): New.
24356         * tree.c (tree_node_structure_for_code, tree_code_size)
24357         (iterative_hash_expr): Handle VOID_CST.
24358         (build_common_tree_nodes): Initialize void_node.
24360 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
24362         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24363         functions.
24364         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24366         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24367         more places.
24369         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24370         flag_reorder_blocks_and_partition.
24371         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24373 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
24375         PR target/54236
24376         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
24377         constraints.
24378         (*addc_r_t): Add new insn_and_split.
24380 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
24382         PR middle-end/61252
24383         * omp-low.c (handle_simd_reference): New function.
24384         (lower_rec_input_clauses): Use it.  Defer adding reference
24385         initialization even for reduction without placeholder if in simd,
24386         handle it properly later on.
24388 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24390         PR tree-optimization/60899
24391         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24392         assume all static symbols will have definition wile parsing and
24393         check the do have definition later in compilation; check that
24394         variable referring symbol will be output before concluding that
24395         reference is safe; be conservative for referring local statics;
24396         be more precise about when comdat is output in other partition.
24398 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24400         PR bootstrap/60984
24401         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24402         parameter.
24403         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24404         (ipa_inline): Loop inline_to_all_callers until no more aliases
24405         are removed.
24407 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24409         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24410         set writeonly flag only for vars actually written to.
24412 2014-05-20  Dehao Chen  <dehao@google.com>
24414         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24415         and callee count to get clone count.
24416         * tree-inline.c (expand_call_inline): Use callee count instead of bb
24417         count in copy_body.
24419 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24421         PR rtl-optimization/61243
24422         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24424 2014-05-20  Xinliang David Li  <davidxl@google.com>
24426         * cgraphunit.c (walk_polymorphic_call_targets): Add
24427         dbgcnt and fopt-info support.
24428         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24429         * ipa-devirt.c (ipa_devirt): Ditto.
24430         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24431         * ipa.c (walk_polymorphic_call_targets): Ditto.
24432         * gimple-fold.c (fold_gimple_assign): Ditto.
24433         (gimple_fold_call): Ditto.
24434         * dbgcnt.def: New counter.
24436 2014-05-20  DJ Delorie  <dj@redhat.com>
24438         * config/msp430/msp430.md (split): Don't allow subregs when
24439         splitting SImode adds.
24440         (andneghi): Fix subtraction logic.
24441         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24443 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24445         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24446         symbols.
24447         * except.c (switch_to_exception_section, resolve_unique_section,
24448         get_named_text_section, default_function_rodata_section,
24449         align_variable, get_block_for_decl, default_section_type_flags):
24450         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24451         * symtab.c (symtab_add_to_same_comdat_group,
24452         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24453         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24454         Likewise.
24455         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24456         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24457         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24458         (c6x_function_in_section_p): Likewise.
24459         * config/darwin.c (machopic_select_section): Likewise.
24460         * config/arm/arm.c (arm_function_in_section_p): Likewise.
24461         * config/mips/mips.c (mips_function_rodata_section): Likewise.
24462         * config/mep/mep.c (mep_select_section): LIkewise.
24463         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24465 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
24467         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24468         EH region of calls to pure functions that can throw an exception.
24469         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24470         (copy_reference_ops_from_call): Also copy the EH region of the call if
24471         it can throw an exception.
24473 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24475         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24476         nested VEC_SELECTs that are inverses of each other.
24478 2014-05-20  Richard Biener  <rguenther@suse.de>
24480         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24481         (extract_and_process_scc_for_name): not here.
24482         (cond_dom_walker::before_dom_children): Only process
24483         stmts that end the BB in interesting ways.
24484         (run_scc_vn): Mark param uses as visited.
24486 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24488         * config/arm/arm.md (arith_shiftsi): Do not predicate for
24489         arm_restrict_it.
24491 2014-05-20  Nick Clifton  <nickc@redhat.com>
24493         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24494         (msp430_gimplify_va_arg_expr): New function.
24495         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24497         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24498         operand 0 in order to prevent confusion about the number of
24499         registers involved.
24501 2014-05-20  Richard Biener  <rguenther@suse.de>
24503         PR tree-optimization/61221
24504         * tree-ssa-pre.c (el_to_update): Remove.
24505         (eliminate_dom_walker::before_dom_children): Handle released
24506         VDEFs by value-numbering them to the associated VUSE.  Update
24507         stmt immediately for substituted call address.
24508         (eliminate): Remove delayed stmt updating code.
24509         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24510         possibly late re-numbered vuses.
24511         (vn_reference_lookup_2): Adjust.
24512         (vn_reference_lookup_pieces): Likewise.
24513         (vn_reference_lookup): Likewise.
24515 2014-05-20  Richard Biener  <rguenther@suse.de>
24517         * config.gcc: Remove need_64bit_hwint.
24518         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24519         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24520         it to be true.
24521         * config.in: Regenerate.
24522         * configure: Likewise.
24524 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
24526         * doc/extend.texi: Create Label Attributes section,
24527         move all label attributes into it and reference it.
24529 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
24531         * arm.c (thumb1_reorg): When scanning backwards skip anything
24532         that's not a proper insn.
24534 2014-05-19  Richard Biener  <rguenther@suse.de>
24536         PR tree-optimization/61221
24537         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24538         Do nothing for unreachable blocks.
24539         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24540         Improve unreachability detection.
24542 2014-05-19  Richard Biener  <rguenther@suse.de>
24544         PR tree-optimization/61209
24545         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24547 2014-05-19  Nick Clifton  <nickc@redhat.com>
24549         * except.c (init_eh): Fix computation of builtin setjmp buffer
24550         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24552 2014-05-19  Richard Biener  <rguenther@suse.de>
24554         PR tree-optimization/61184
24555         * tree-vrp.c (is_negative_overflow_infinity): Use
24556         TREE_OVERFLOW_P and do that check first.
24557         (is_positive_overflow_infinity): Likewise.
24558         (is_overflow_infinity): Likewise.
24559         (vrp_operand_equal_p): Properly treat operands with
24560         differing overflow as not equal.
24562 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
24564         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24565         shift simplification where it was intended.
24567 2014-05-19  Christian Bruel  <christian.bruel@st.com>
24569         PR target/61195
24570         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24572 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
24574         PR target/61084
24575         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24576         than wide_int.
24578 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24580         * reg-notes.def (CROSSING_JUMP): Likewise.
24581         * rtl.h (rtx_def): Update comment for jump flag.
24582         (CROSSING_JUMP_P): Define.
24583         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24584         of a REG_CROSSING_JUMP note.
24585         * cfghooks.c (tidy_fallthru_edges): Likewise.
24586         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24587         * emit-rtl.c (try_split): Likewise.
24588         * haifa-sched.c (sched_create_recovery_edges): Likewise.
24589         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24590         * jump.c (redirect_jump_2): Likewise.
24591         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24592         (relax_delay_slots): Likewise.
24593         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24594         (bbit_di): Likewise.
24595         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24596         * config/sh/sh.md (jump_compact): Likewise.
24597         * bb-reorder.c (rotate_loop): Likewise.
24598         (pass_duplicate_computed_gotos::execute): Likewise.
24599         (add_reg_crossing_jump_notes): Rename to...
24600         (update_crossing_jump_flags): ...this.
24601         (pass_partition_blocks::execute): Update accordingly.
24603 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24605         * tree.h: Remove extraneous template <>.
24607 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24609         * ipa.c (symtab_remove_unreachable_nodes): Remove
24610         symbol from comdat group if its body was eliminated.
24611         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24612         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24613         (symtab_unregister_node): ... this one.
24614         (verify_symtab_base): More strict checking of comdats.
24615         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24617 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24619         * tree-pass.h (make_pass_ipa_comdats): New pass.
24620         * timevar.def (TV_IPA_COMDATS): New timevar.
24621         * passes.def (pass_ipa_comdats): Add.
24622         * Makefile.in (OBJS): Add ipa-comdats.o
24623         * ipa-comdats.c: New file.
24625 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24627         * ipa.c (update_visibility_by_resolution_info): New function.
24628         (function_and_variable_visibility): Use it.
24630 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24632         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24633         New functions.
24634         (FOR_EACH_DEFINED_SYMBOL): New macro.
24635         (varpool_first_static_initializer, varpool_next_static_initializer,
24636         varpool_first_defined_variable, varpool_next_defined_variable):
24637         Fix comments.
24638         (symtab_in_same_comdat_p): Correctly deal with inline functions.
24640 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24642         * ggc-page.c (ggc_handle_finalizers): Add comment.
24644 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24646         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24647         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24648         (ggc_internal_cleared_alloc): Likewise.
24649         * ggc-page.c (finalizer): New class.
24650         (vec_finalizer): Likewise.
24651         (globals::finalizers): New member.
24652         (globals::vec_finalizers): Likewise.
24653         (ggc_internal_alloc): Record the finalizer if any for the block being
24654         allocated.
24655         (ggc_handle_finalizers): New function.
24656         (ggc_collect): Call ggc_handle_finalizers.
24657         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24658         finalizer.
24659         (ggc_internal_cleared_alloc): Likewise.
24660         (finalize): New function.
24661         (need_finalization_p): Likewise.
24662         (ggc_alloc): Install the type's destructor as the finalizer if it
24663         might do something.
24664         (ggc_cleared_alloc): Likewise.
24665         (ggc_vec_alloc): Likewise.
24666         (ggc_cleared_vec_alloc): Likewise.
24668 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24670         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24672 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24674         * alias.c (record_alias_subset): Adjust.
24675         * bitmap.c (bitmap_element_allocate): Likewise.
24676         (bitmap_gc_alloc_stat): Likewise.
24677         * cfg.c (init_flow): Likewise.
24678         (alloc_block): Likewise.
24679         (unchecked_make_edge): Likewise.
24680         * cfgloop.c (alloc_loop): Likewise.
24681         (flow_loops_find): Likewise.
24682         (rescan_loop_exit): Likewise.
24683         * cfgrtl.c (init_rtl_bb_info): Likewise.
24684         * cgraph.c (insert_new_cgraph_node_version): Likewise.
24685         (cgraph_allocate_node): Likewise.
24686         (cgraph_create_edge_1): Likewise.
24687         (cgraph_allocate_init_indirect_info): Likewise.
24688         * cgraphclones.c (cgraph_clone_edge): Likewise.
24689         * cgraphunit.c (add_asm_node): Likewise.
24690         (init_lowered_empty_function): Likewise.
24691         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24692         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24693         (alpha_use_linkage): Likewise.
24694         * config/arc/arc.c (arc_init_machine_status): Likewise.
24695         * config/arm/arm.c (arm_init_machine_status): Likewise.
24696         * config/avr/avr.c (avr_init_machine_status): Likewise.
24697         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24698         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24699         * config/cris/cris.c (cris_init_machine_status): Likewise.
24700         * config/darwin.c (machopic_indirection_name): Likewise.
24701         (darwin_build_constant_cfstring): Likewise.
24702         (darwin_enter_string_into_cfstring_table): Likewise.
24703         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24704         * config/frv/frv.c (frv_init_machine_status): Likewise.
24705         * config/i386/i386.c (get_dllimport_decl): Likewise.
24706         (ix86_init_machine_status): Likewise.
24707         (assign_386_stack_local): Likewise.
24708         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24709         (i386_pe_maybe_record_exported_symbol): Likewise.
24710         (i386_pe_record_stub): Likewise.
24711         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24712         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24713         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24714         (m32c_note_pragma_address): Likewise.
24715         * config/mep/mep.c (mep_init_machine_status): Likewise.
24716         (mep_note_pragma_flag): Likewise.
24717         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24718         (mips16_local_alias): Likewise.
24719         (mips_init_machine_status): Likewise.
24720         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24721         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24722         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24723         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24724         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24725         * config/pa/pa.c (pa_init_machine_status): Likewise.
24726         (pa_get_deferred_plabel): Likewise.
24727         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24728         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24729         (rs6000_init_machine_status): Likewise.
24730         (output_toc): Likewise.
24731         * config/s390/s390.c (s390_init_machine_status): Likewise.
24732         * config/score/score.c (score_output_external): Likewise.
24733         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24734         * config/spu/spu.c (spu_init_machine_status): Likewise.
24735         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24736         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24737         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24738         * coverage.c (coverage_end_function): Likewise.
24739         * dbxout.c (dbxout_init): Likewise.
24740         * doc/gty.texi: Don't mention variable_size attribute.
24741         * dwarf2cfi.c (new_cfi): Adjust.
24742         (new_cfi_row): Likewise.
24743         (copy_cfi_row): Likewise.
24744         (create_cie_data): Likewise.
24745         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24746         (new_loc_descr): Likewise.
24747         (find_AT_string_in_table): Likewise.
24748         (add_addr_table_entry): Likewise.
24749         (new_die): Likewise.
24750         (add_var_loc_to_decl): Likewise.
24751         (clone_die): Likewise.
24752         (clone_as_declaration): Likewise.
24753         (break_out_comdat_types): Likewise.
24754         (new_loc_list): Likewise.
24755         (add_loc_descr_to_each): Likewise.
24756         (add_location_or_const_value_attribute): Likewise.
24757         (add_linkage_name): Likewise.
24758         (lookup_filename): Likewise.
24759         (dwarf2out_var_location): Likewise.
24760         (new_line_info_table): Likewise.
24761         (dwarf2out_init): Likewise.
24762         (mem_loc_descriptor): Likewise.
24763         (loc_descriptor): Likewise.
24764         (add_const_value_attribute): Likewise.
24765         (tree_add_const_value_attribute): Likewise.
24766         (comp_dir_string): Likewise.
24767         (dwarf2out_vms_debug_main_pointer): Likewise.
24768         (string_cst_pool_decl): Likewise.
24769         * emit-rtl.c (set_mem_attrs): Likewise.
24770         (get_reg_attrs): Likewise.
24771         (start_sequence): Likewise.
24772         (init_emit): Likewise.
24773         (init_emit_regs): Likewise.
24774         * except.c (init_eh_for_function): Likewise.
24775         (gen_eh_region): Likewise.
24776         (gen_eh_region_catch): Likewise.
24777         (gen_eh_landing_pad): Likewise.
24778         (add_call_site): Likewise.
24779         * function.c (add_frame_space): Likewise.
24780         (insert_temp_slot_address): Likewise.
24781         (assign_stack_temp_for_type): Likewise.
24782         (get_hard_reg_initial_val): Likewise.
24783         (allocate_struct_function): Likewise.
24784         (prepare_function_start): Likewise.
24785         (types_used_by_var_decl_insert): Likewise.
24786         * gengtype.c (variable_size_p): Remove function.
24787         (enum alloc_quantity): Remove enum.
24788         (write_typed_alloc_def): Remove function.
24789         (write_typed_struct_alloc_def): Likewise.
24790         (write_typed_typedef_alloc_def): Likewise.
24791         (write_typed_alloc_defns): Likewise.
24792         (main): Adjust.
24793         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24794         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24795         * ggc.h (ggc_alloc): new function.
24796         (ggc_cleared_alloc): Likewise.
24797         (ggc_vec_alloc): Template on type of vector element, and remove
24798         element size argument.
24799         (ggc_cleared_vec_alloc): Likewise.
24800         * gimple.c (gimple_build_omp_for): Adjust.
24801         (gimple_copy): Likewise.
24802         * ipa-cp.c (get_replacement_map): Likewise.
24803         (find_aggregate_values_for_callers_subset): Likewise.
24804         (known_aggs_to_agg_replacement_list): Likewise.
24805         * ipa-devirt.c (get_odr_type): Likewise.
24806         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24807         (read_agg_replacement_chain): Likewise.
24808         * loop-iv.c (get_simple_loop_desc): Likewise.
24809         * lto-cgraph.c (input_node_opt_summary): Likewise.
24810         * lto-section-in.c (lto_new_in_decl_state): Likewise.
24811         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24812         (input_eh_region): Likewise.
24813         (input_eh_lp): Likewise.
24814         (input_cfg): Likewise.
24815         * optabs.c (set_optab_libfunc): Likewise.
24816         (init_tree_optimization_optabs): Likewise.
24817         (set_conv_libfunc): Likewise.
24818         * passes.c (do_per_function_toporder): Likewise.
24819         * rtl.h: Don't use variable_size gty attribute.
24820         * sese.c (if_region_set_false_region): Adjust.
24821         * stringpool.c (gt_pch_save_stringpool): Likewise.
24822         * target-globals.c (save_target_globals): Likewise.
24823         * toplev.c (general_init): Likewise.
24824         * trans-mem.c (record_tm_replacement): Likewise.
24825         (split_bb_make_tm_edge): Likewise.
24826         * tree-cfg.c (move_sese_region_to_fn): Likewise.
24827         * tree-data-ref.h (lambda_vector_new): Likewise.
24828         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24829         * tree-iterator.c (tsi_link_before): Likewise.
24830         (tsi_link_after): Likewise.
24831         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24832         * tree-ssa-loop-niter.c (record_estimate): Likewise.
24833         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24834         * tree-ssa-operands.h: Don't use variable_size gty attribute.
24835         * tree-ssa.c (init_tree_ssa): Adjust.
24836         * tree-ssanames.c (set_range_info): Likewise.
24837         (get_ptr_info): Likewise.
24838         (duplicate_ssa_name_ptr_info): Likewise.
24839         (duplicate_ssa_name_range_info): Likewise.
24840         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24841         (unpack_ts_fixed_cst_value_fields): Likewise.
24842         * tree.c (build_fixed): Likewise.
24843         (build_real): Likewise.
24844         (build_string): Likewise.
24845         (decl_priority_info): Likewise.
24846         (decl_debug_expr_insert): Likewise.
24847         (decl_value_expr_insert): Likewise.
24848         (decl_debug_args_insert): Likewise.
24849         (type_hash_add): Likewise.
24850         (build_omp_clause): Likewise.
24851         * ubsan.c (decl_for_type_insert): Likewise.
24852         * varasm.c (get_unnamed_section): Likewise.
24853         (get_noswitch_section): Likewise.
24854         (get_section): Likewise.
24855         (get_block_for_section): Likewise.
24856         (create_block_symbol): Likewise.
24857         (build_constant_desc): Likewise.
24858         (create_constant_pool): Likewise.
24859         (force_const_mem): Likewise.
24860         (record_tm_clone_pair): Likewise.
24861         * varpool.c (varpool_create_empty_node): Likewise.
24863 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24865         * dwarf2out.c (tree_add_const_value_attribute): Call
24866         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24867         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24868         instead of ggc_internal_<x>alloc_stat.
24869         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24870         (ggc_realloc): Likewise.
24871         * ggc-none.c (ggc_internal_alloc): Likewise.
24872         (ggc_internal_cleared_alloc): Likewise.
24873         * ggc-page.c: Likewise.
24874         * ggc.h (ggc_internal_alloc_stat): Likewise.
24875         (ggc_internal_alloc): Remove macro.
24876         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24877         (ggc_internal_cleared_alloc): Remove macro.
24878         (GGC_RESIZEVEC): Adjust.
24879         (ggc_resizevar): Remove macro.
24880         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24881         (ggc_internal_cleared_vec_alloc_stat): Likewise.
24882         (ggc_internal_vec_cleared_alloc): Remove macro.
24883         (ggc_alloc_atomic_stat): Drop _stat suffix.
24884         (ggc_alloc_atomic): Remove macro.
24885         (ggc_alloc_cleared_atomic): Remove macro.
24886         (ggc_alloc_string_stat): Drop _stat suffix.
24887         (ggc_alloc_string): Remove macro.
24888         (ggc_alloc_rtx_def_stat): Adjust.
24889         (ggc_alloc_tree_node_stat): Likewise.
24890         (ggc_alloc_cleared_tree_node_stat): Likewise.
24891         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24892         (ggc_alloc_cleared_simd_clone_stat): Likewise.
24893         * gimple.c (gimple_build_omp_for): Likewise.
24894         (gimple_copy): Likewise.
24895         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24896         * toplev.c (realloc_for_line_map): Adjust.
24897         * tree-data-ref.h (lambda_vector_new): Likewise.
24898         * tree-phinodes.c (allocate_phi_node): Likewise.
24899         * tree.c (grow_tree_vec_stat): Likewise.
24900         * vec.h (va_gc::reserve): Adjust.
24902 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
24904         * config/microblaze/microblaze.c (break_handler): New Declaration.
24905         (microblaze_break_function_p,microblaze_is_break_handler): New.
24906         (compute_frame_size): Use microblaze_break_function_p.
24907         Add the test of break_handler.
24908         (microblaze_function_prologue) : Add the test of variable
24909         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
24910         (microblaze_function_epilogue) : Add the test of break_handler.
24911         (microblaze_globalize_label) : Add the test of break_handler.
24912         Check the name by BREAK_HANDLER_NAME.
24914         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24916         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24917         microblaze_is_break_handler test.
24918         (call_internal1,call_value_intern): Use microblaze_break_function_p.
24919         Use SYMBOL_REF_DECL.
24921         * config/microblaze/microblaze-protos.h
24922         (microblaze_break_function_p,microblaze_is_break_handler):
24923         New Declaration.
24925         * doc/extend.texi (MicroBlaze break_handler Functions): Document
24926         new MicroBlaze break_handler functions.
24928 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
24930         * doc/extend.texi (Size of an asm): Move node text according
24931         to its @menu entry position.
24933 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
24935         PR tree-optimization/61140
24936         PR tree-optimization/61150
24937         PR tree-optimization/61197
24938         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24940 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
24942         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
24944 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
24946         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24947         __SIZEOF_INT128__ is defined.
24949 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
24951         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24952         (rs6000_delegitimize_address): Use it.
24954 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
24956         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24957         inplace argument.  Store the new address in the original MEM when true.
24958         * emit-rtl.c (change_address_1): Likewise.
24959         (adjust_address_1, adjust_automodify_address_1, offset_address):
24960         Update accordingly.
24961         * rtl.h (plus_constant): Add an inplace argument.
24962         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
24963         when true.  Avoid generating (plus X (const_int 0)).
24964         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24965         in-place.  Pass true to plus_constant.
24966         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24968 2014-05-16  Dehao Chen  <dehao@google.com>
24970         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24972 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24974         PR target/54089
24975         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24976         patterns.
24977         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24979 2014-05-16  Dehao Chen  <dehao@google.com>
24981         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24982         optimize_function_for_size_p.
24983         * regs.h (REG_FREQ_FROM_BB): Likewise.
24985 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24987         PR target/51244
24988         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24989         negt_reg_operand cases.
24990         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24991         predicate.
24992         * config/sh/predicates.md (cbranch_treg_value): Simplify.
24994 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24996         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24997         target variants.
24999 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
25001         Revert:
25002         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25004         * tree-cfg.c (dump_function_to_file): Dump the return type of
25005         functions, in a line to itself before the function body, mimicking
25006         the layout of a C function.
25008 2014-05-16  Dehao Chen  <dehao@google.com>
25010         * cfghooks.c (make_forwarder_block): Use direct computation to
25011         get fall-through edge's count and frequency.
25013 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
25015         * config/arc/arc.c (arc_init): Fix typo in error message.
25016         * config/i386/i386.c (ix86_expand_builtin): Likewise.
25017         (split_stack_prologue_scratch_regno): Likewise.
25018         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25019         word from error message.
25021 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25023         * ira-costs.c: Fix typo in comment.
25025 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
25027         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25029 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
25031         * varpool.c (dump_varpool_node): Dump write-only flag.
25032         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25033         write-only flag.
25034         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25035         write-only variables.
25036         * ipa.c (process_references): New function.
25037         (set_readonly_bit): New function.
25038         (set_writeonly_bit): New function.
25039         (clear_addressable_bit): New function.
25040         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25041         fix handling of aliases.
25042         * cgraph.h (struct varpool_node): Add writeonly flag.
25044 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
25046         PR rtl-optimization/60969
25047         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25048         Calculate costs for this case.
25050 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25052         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25053         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25055 2014-05-16  Richard Biener  <rguenther@suse.de>
25057         PR tree-optimization/61194
25058         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25059         bool patterns ending in a COND_EXPR.
25061 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25063         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25065 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25067         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25068         where we were unable to cost an RTX.
25070 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25072         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25073         HIGH, LO_SUM.
25075 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25076             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25078         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
25080 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25081             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25083         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
25084         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25086 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25087             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25089         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25090         operators.
25092 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25093             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25095         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25096         DIV/MOD.
25098 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25099             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25101         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25102         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25104 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25105             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25107         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25108         rotates and shifts.
25110 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25111             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25113         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25114         ZERO_EXTEND and SIGN_EXTEND better.
25116 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25117             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25119         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25120         logical operations.
25122 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25123             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25125         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25126         costs when costing loads and stores to memory.
25128 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25129             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
25131         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25132         for SET RTX.
25134 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25136         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25138 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25139             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25141         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25142         to...
25143         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25144         well formed.
25145         (aarch64_rtx_mult_cost): New.
25146         (aarch64_rtx_costs): Use it, refactor as appropriate.
25148 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25149             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25151         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25152         emit instructions, return number of instructions which would
25153         be emitted.
25154         (aarch64_add_constant): Update call to aarch64_build_constant.
25155         (aarch64_output_mi_thunk): Likewise.
25156         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25157         a CONST_DOUBLE.
25159 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25161         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25162         (TARGET_RTX_COSTS): Call it.
25164 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25166         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25167         (cortexa57_vector_cost): Likewise.
25168         (cortexa57_tunings): Use them.
25170 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25172         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25173         (cpu_addrcost_table): Use it.
25174         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25175         (aarch64_address_cost): Rewrite using aarch64_classify_address,
25176         move it.
25178 2014-05-16  Richard Biener  <rguenther@suse.de>
25180         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25181         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25182         (visit_phi): Ignore edges marked as not executable.
25183         (class cond_dom_walker): New.
25184         (cond_dom_walker::before_dom_children): Value-number
25185         control statements and mark successor edges as not
25186         executable if possible.
25187         (run_scc_vn): First walk all control statements in
25188         dominator order, marking edges as not executable.
25189         * tree-inline.c (copy_edges_for_bb): Be not confused
25190         about random edge flags.
25192 2014-05-16  Richard Biener  <rguenther@suse.de>
25194         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25196 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
25198         PR target/61193
25199         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25200         (__TM_simple_begin): Use it.
25201         (__TM_begin): Likewise.
25203 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25205         PR ipa/61085
25206         * ipa-prop.c (update_indirect_edges_after_inlining): Check
25207         type_preserved flag when the indirect edge is polymorphic.
25209 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25211         PR tree-optimization/61090
25212         * tree-sra.c (sra_modify_expr): Pass the current gsi to
25213         build_ref_for_model.
25215 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25217         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25218         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25220 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
25222         PR tree-optimization/61158
25223         * fold-const.c (fold_binary_loc): If X is zero-extended and
25224         shiftc >= prec, make sure zerobits is all ones instead of
25225         invoking undefined behavior.
25227 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25229         * regcprop.h: New file.
25230         * regcprop.c (skip_debug_insn_p): New decl.
25231         (replace_oldest_value_reg): Check skip_debug_insn_p.
25232         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25233         * shrink-wrap.c: Include regcprop.h.
25234         (prepare_shrink_wrap): Call
25235         copyprop_hardreg_forward_bb_without_debug_insn.
25237 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25239         * shrink-wrap.h: Update comment.
25240         * shrink-wrap.c: Update comment.
25241         (next_block_for_reg): Rename to live_edge_for_reg.
25242         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25243         (move_insn_for_shrink_wrap): Split live_edge.
25244         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25246 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25248         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25249         Delete.
25250         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25251         * config/sparc/sparc.md (fptype_ut699): New attribute.
25252         (in_branch_delay): Return false if -mfix-ut699 is specified and
25253         fptype_ut699 is set to single.
25254         (truncdfsf2): Add fptype_ut699 attribute.
25255         (fix_truncdfsi2): Likewise.
25256         (floatsisf2): Change fptype attribute.
25257         (fix_truncsfsi2): Likewise.
25258         (negtf2_notv9): Delete.
25259         (negtf2_v9): Likewise.
25260         (negtf2_hq): New instruction.
25261         (negtf2): New instruction and splitter.
25262         (negdf2_notv9): Rewrite.
25263         (abstf2_notv9): Delete.
25264         (abstf2_hq_v9): Likewise.
25265         (abstf2_v9): Likewise.
25266         (abstf2_hq): New instruction.
25267         (abstf2): New instruction and splitter.
25268         (absdf2_notv9): Rewrite.
25270 2014-05-14  Cary Coutant  <ccoutant@google.com>
25272         PR debug/61013
25273         * opts.c (common_handle_option): Don't special-case "-g".
25274         (set_debug_level): Default to at least level 2 with "-g".
25276 2014-05-14  DJ Delorie  <dj@redhat.com>
25278         * config/msp430/msp430.c (msp430_builtin): Add
25279         MSP430_BUILTIN_DELAY_CYCLES.
25280         (msp430_init_builtins): Register void __delay_cycles(long long).
25281         (msp430_builtin_decl): Add it.
25282         (cg_magic_constant): New.
25283         (msp430_expand_delay_cycles): New.
25284         (msp430_expand_builtin): Call it.
25285         (msp430_print_operand_raw): Change integer printing from "int" to
25286         HOST_WIDE_INT.
25287         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25288         (delay_cycles_start): New.
25289         (delay_cycles_end): New.
25290         (delay_cycles_32): New.
25291         (delay_cycles_32x): New.
25292         (delay_cycles_16): New.
25293         (delay_cycles_16x): New.
25294         (delay_cycles_2): New.
25295         (delay_cycles_1): New.
25296         * doc/extend.texi: Document __delay_cycles().
25298 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
25300         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25301         length attribute computation.
25303 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
25305         PR debug/61188
25306         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25308 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
25310         PR target/61084
25311         * config/sparc/sparc.md: Fix types of low and high in DI constant
25312         splitter.  Use gen_int_mode in some other splitters.
25314 2014-05-14  Martin Jambor  <mjambor@suse.cz>
25316         PR ipa/60897
25317         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25319 2014-05-14  James Norris  <jnorris@codesourcery.com>
25321         * omp-low.c (expand_parallel_call): Remove shadow variable.
25322         (expand_omp_taskreg): Likewise.
25324 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
25326         * common/config/i386/i386-common.c
25327         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25328         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25329         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25330         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25331         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25332         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25333         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25334         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25335         xsavecintrin.h, xsavesintrin.h.
25336         (x86_64-*-*): Ditto.
25337         * config/i386/clflushoptintrin.h: New.
25338         * config/i386/xsavecintrin.h: Ditto.
25339         * config/i386/xsavesintrin.h: Ditto.
25340         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25341         (bit_XSAVES): Ditto.
25342         (bit_XSAVES): Ditto.
25343         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25344         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25345         -mno-clflushopt.
25346         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25347         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25348         OPTION_MASK_ISA_XSAVES.
25349         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25350         -mxsavec, -mxsaves.
25351         (PTA_CLFLUSHOPT) Define.
25352         (PTA_XSAVEC): Ditto.
25353         (PTA_XSAVES): Ditto.
25354         (ix86_option_override_internal): Handle new options.
25355         (ix86_valid_target_attribute_inner_p): Ditto.
25356         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25357         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25358         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25359         (bdesc_special_args): Add __builtin_ia32_xsaves,
25360         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25361         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25362         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25363         (ix86_expand_builtin): Handle new builtins.
25364         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25365         (TARGET_CLFLUSHOPT_P): Ditto.
25366         (TARGET_XSAVEC): Ditto.
25367         (TARGET_XSAVEC_P): Ditto.
25368         (TARGET_XSAVES): Ditto.
25369         (TARGET_XSAVES_P): Ditto.
25370         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25371         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25372         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25373         (ANY_XRSTOR): New.
25374         (ANY_XRSTOR64): Ditto.
25375         (xrstor): Ditto.
25376         (xrstor): Change into <xrstor>.
25377         (xrstor_rex64): Change into <xrstor>_rex64.
25378         (xrstor64): Change into <xrstor>64
25379         (clflushopt): New.
25380         * config/i386/i386.opt (mclflushopt): New.
25381         (mxsavec): Ditto.
25382         (mxsaves): Ditto.
25383         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25384         xsavecintrin.h.
25385         * doc/invoke.texi: Document new options.
25387 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25389         PR rtl-optimization/60866
25390         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25391         Default it to -1.  Pass it down to init_simplejump_data.
25392         (init_simplejump_data): New parameter old_seqno.  Pass it down
25393         to get_seqno_for_a_jump.
25394         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
25395         initializing new jump seqno as a last resort.  Add comment.
25396         (sel_redirect_edge_and_branch): Save old seqno of the conditional
25397         jump and pass it down to sel_init_new_insn.
25398         (sel_redirect_edge_and_branch_force): Likewise.
25400 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
25402         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25403         shifted values to avoid build warning.
25405 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25407         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25408         * cfgrtl.c (rtl_merge_blocks): Fix comment.
25409         (cfg_layout_merge_blocks): Likewise.
25410         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25412 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25414         PR rtl-optimization/60901
25415         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25416         bb predecessor belongs to the same scheduling region.  Adjust comment.
25418 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
25420         * doc/sourcebuild.texi: (dfp_hw): Document.
25421         (p8vector_hw): Likewise.
25422         (powerpc_eabi_ok): Likewise.
25423         (powerpc_elfv2): Likewise.
25424         (powerpc_htm_ok): Likewise.
25425         (ppc_recip_hw): Likewise.
25426         (vsx_hw): Likewise.
25428 2014-05-13  Cary Coutant  <ccoutant@google.com>
25430         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25432 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
25434         * gengtype-parse.c (require3): Eliminate in favor of...
25435         (require4): New.
25436         (require_template_declaration): Update to support optional single *
25437         on a type.
25439         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25440         (create_user_defined_type): Handle a single level of explicit
25441         pointerness within template arguments.
25442         (struct write_types_data): Add field "kind".
25443         (filter_type_name): Handle "*" character.
25444         (write_user_func_for_structure_ptr): Require a write_types_data
25445         rather than just a prefix string, so that we can look up the kind
25446         of the wtd and use it as an index into wrote_user_func_for_ptr,
25447         ensuring that such functions are written at most once.  Support
25448         subclasses by invoking the marking function of the ultimate base class.
25449         (write_user_func_for_structure_body): Require a write_types_data
25450         rather than just a prefix string, so that we can pass this to
25451         write_user_func_for_structure_ptr.
25452         (write_func_for_structure): Likewise.
25453         (ggc_wtd): Add initializer of new "kind" field.
25454         (pch_wtd): Likewise.
25456         * gengtype.h (enum write_types_kinds): New.
25457         (struct type): Add field wrote_user_func_for_ptr to the "s"
25458         union member.
25460 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25462         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25463         instead of const_binop.
25464         (fold_binary_loc): Likewise.
25466 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25468         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25469         calculation to match get_ref_base_and_extent.
25471 2014-05-13  Catherine Moore  <clm@codesourcery.com>
25472             Sandra Loosemore  <sandra@codesourcery.com>
25474         * configure.ac: Fix assembly for explicit JALR relocation check.
25475         * configure: Regenerate.
25477 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25479         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25480         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25481         Remove associated type declarations and initialisations.
25482         (arm_expand_neon_builtin): Likewise.
25483         (neon_emit_pair_result_insn): Delete.
25484         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25485         * config/arm/neon.md (neon_vtrn<mode>): Delete.
25486         (neon_vzip<mode>): Likewise.
25487         (neon_vuzp<mode>): Likewise.
25489 2014-05-13  Richard Biener  <rguenther@suse.de>
25491         PR ipa/60973
25492         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25493         it needs revisiting whether the call still may be tail-called.
25495 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25497         * rtl.def (SYMBOL_REF): Remove middle "0" field.
25498         * rtl.h (block_symbol): Reduce number of fields to 2.
25499         (rtx_def): Add u2.symbol_ref_flags.
25500         (SYMBOL_REF_FLAGS): Use it.
25501         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25502         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25503         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25504         Lower index of SYMBOL_REF_DATA.
25505         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25506         Print SYMBOL_REF_FLAGS at the same time.
25507         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25509 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25511         * rtl.def (VAR_LOCATION): Remove "i" field.
25512         * rtl.h (rtx_def): Add u2.var_location_status.
25513         (PAT_VAR_LOCATION_STATUS): Use it.
25514         (gen_rtx_VAR_LOCATION): Declare.
25515         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25516         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25517         * var-tracking.c (emit_note_insn_var_location): Remove casts.
25519 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25521         * rtl.def (scratch): Fix outdated comment and remove "0" field.
25522         * gengtype.c (adjust_field_rtx_def): Update accordingly.
25524 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25526         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25527         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25528         * rtl.h (rtx_def): Add insn_uid to u2 field.
25529         (RTX_FLAG_CHECK8): Delete in favor of...
25530         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25531         (INSN_DELETED_P): Update accordingly.
25532         (INSN_UID): Use u2.insn_uid.
25533         (INSN_CHAIN_CODE_P): Define.
25534         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25535         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25536         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25537         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25538         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25539         indices accordingly.
25540         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25541         Update indices for insn-chain rtxes.
25542         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25543         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25544         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25545         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25546         * combine.c (try_combine): Likewise.
25547         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25549 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25551         * rtl.def (REG): Remove middle field.
25552         * rtl.h (rtx_def): Add orignal_regno to u2.
25553         (ORIGINAL_REGNO): Use it instead of field 1.
25554         (REG_ATTRS): Lower field index accordingly.
25555         * gengtype.c (adjust_field_rtx_def): Remove handling of
25556         ORIGINAL_REGNO.  Move REG_ATTRS index down.
25557         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25558         code that prints the REGNO.
25560 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25562         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25563         GENERATOR_FILE.
25565 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25567         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25569 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
25571         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25572         (alloc_iv): Lower base expressions containing ADDR_EXPR.
25574 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
25576         * config/aarch64/aarch64-protos.h
25577         (aarch64_hard_regno_caller_save_mode): New prototype.
25578         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25579         New function.
25580         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25582 2014-05-13  Christian Bruel  <christian.bruel@st.com>
25584         * target.def (mode_switching): New hook vector.
25585         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25586         (mode_exit, modepriority_to_mode): Likewise.
25587         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25588         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25589         * target.h: Include tm.h and hard-reg-set.h.
25590         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25591         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25592         * doc/tm.texi Regenerate.
25593         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25594         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25595         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25596         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25597         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25598         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25599         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25600         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25601         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25602         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25603         (ix86_emit_mode_set): Hookify.
25604         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25605         Delete.
25606         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25607         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25608         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25609         (epiphany_mode_priority_to_mode): Remove declaration.
25610         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25611         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25612         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25613         Likewise.
25614         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
25615         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25616         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25618 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
25620         PR target/61060
25621         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25622         is const0_rtx, return immediately.  Don't test count == 0 when
25623         it is always true.
25625 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25627         * Makefile.in: add shrink-wrap.o.
25628         * config/i386/i386.c: include "shrink-wrap.h"
25629         * function.c: Likewise.
25630         (requires_stack_frame_p, next_block_for_reg,
25631         move_insn_for_shrink_wrap, prepare_shrink_wrap,
25632         dup_block_and_redirect): Move to shrink-wrap.c
25633         (thread_prologue_and_epilogue_insns): Extract three code segments
25634         as functions in shrink-wrap.c
25635         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25636         shrink-wrap.h
25637         * shrink-wrap.c: New file.
25638         * shrink-wrap.h: New file.
25640 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
25642         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
25643         reference to Solaris.
25645 2014-05-12  Mike Stump  <mikestump@comcast.net>
25647         PR other/31778
25648         * genattrtab.c (filename): Add.
25649         (convert_set_attr_alternative): Improve error message.
25650         (check_defs): Restore read_md_filename for error messages.
25651         (gen_insn): Save filename.
25653 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
25655         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25656         -fno-local-ivars and -fivar-visibility.
25657         * c-family/c.opt: Make -Wshadow also implicitly enable
25658         -Wshadow-ivar.
25660 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
25662         * doc/tm.texi: Remove reference to deleted macro.
25663         * doc/tm.texi.in: Likewise.
25665 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25667         PR target/60991
25668         * config/avr/avr.c (avr_out_store_psi): Use correct constant
25669         to restore Y.
25671 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
25673         PR libgcc/61152
25674         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25675         * config/arm/aout.h (License): Same.
25676         * config/arm/bpabi.h (License): Same.
25677         * config/arm/elf.h (License): Same.
25678         * config/arm/linux-elf.h (License): Same.
25679         * config/arm/linux-gas.h (License): Same.
25680         * config/arm/netbsd-elf.h (License): Same.
25681         * config/arm/uclinux-eabi.h (License): Same.
25682         * config/arm/uclinux-elf.h (License): Same.
25683         * config/arm/vxworks.h (License): Same.
25685 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
25687         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25688         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25689         number of operands to 3.
25690         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25691         * tree-nested.c (convert_nonlocal_omp_clauses,
25692         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25693         * gimplify.c (gimplify_scan_omp_clauses): Handle
25694         OMP_CLAUSE_LINEAR_STMT.
25695         * omp-low.c (lower_rec_input_clauses): Fix typo.
25696         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25697         cast between Fortran boolean_type_node and C _Bool if
25698         needed.
25700 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
25702         PR tree-optimization/61136
25703         * wide-int.h (multiple_of_p): Define a version that doesn't return
25704         the quotient.
25705         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25706         integer_zerop/const_binop pair.
25707         (multiple_of_p): Likewise, converting both operands to widest_int
25708         precision.
25710 2014-05-09  Teresa Johnson  <tejohnson@google.com>
25712         * cgraphunit.c (analyze_functions): Use correct dump file.
25714 2014-05-09  Florian Weimer  <fweimer@redhat.com>
25716         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25717         expand_used_vars.
25718         (stack_protect_return_slot_p): New function.
25719         (expand_used_vars): Call stack_protect_decl_p and
25720         stack_protect_return_slot_p for -fstack-protector-strong.
25722 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
25723         Andrew Haley <aph@redhat.com>
25724         Richard Sandiford <rdsandiford@googlemail.com>
25726         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25727         pages.
25729 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
25731         PR middle-end/61111
25732         * fold-const.c (fold_binary_loc): Changed width of mask.
25734 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
25736         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25737         unsigned int initializers for regno_in, regno_out.
25739 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
25741         PR target/61055
25742         * config/avr/avr.md (cc): Add new attribute set_vzn.
25743         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25744         Set cc insn attribute to set_vzn instead of set_zn for alternatives
25745         with INC, DEC or NEG.
25746         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25747         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25748         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25750 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25752         Revert:
25753         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25755         * wide-int.cc (UTItype): Define.
25756         (UDWtype): Define for appropriate W_TYPE_SIZE.
25758 2014-05-09  Richard Biener  <rguenther@suse.de>
25760         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25761         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25762         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25763         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25764         ssa_propagate): Adjust.
25766 2014-05-08  Jeff Law  <law@redhat.com>
25768         PR tree-optimization/61009
25769         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25770         tri-state rather than a boolean.  When a block is too big to
25771         thread through, inform caller via negative return value.
25772         (thread_across_edge): If a block was too big for normal threading,
25773         then it's too big for a joiner too, so remove temporary equivalences
25774         and return immediately.
25776 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25777             Matthias Klose  <doko@ubuntu.com>
25779         PR driver/61106
25780         * optc-gen.awk: Fix option handling for -Wunused-parameter.
25782 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
25784         PR target/59952
25785         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25787 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
25789         PR target/61092
25790         * config/alpha/alpha.c: Include gimple-iterator.h.
25791         (alpha_gimple_fold_builtin): New function.  Move
25792         ALPHA_BUILTIN_UMULH folding from ...
25793         (alpha_fold_builtin): ... here.
25794         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25796 2014-05-08  Wei Mi  <wmi@google.com>
25798         PR target/58066
25799         * config/i386/i386.c (ix86_compute_frame_layout): Update
25800         preferred_stack_boundary for call, expanded from tls descriptor.
25801         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25802         to depend on SP register.
25803         (*tls_local_dynamic_base_32_gnu): Ditto.
25804         (*tls_local_dynamic_32_once): Ditto.
25805         (tls_global_dynamic_64_<mode>): Set
25806         ix86_tls_descriptor_calls_expanded_in_cfun.
25807         (tls_local_dynamic_base_64_<mode>): Ditto.
25808         (tls_global_dynamic_32): Set
25809         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25810         to depend on SP register.
25811         (tls_local_dynamic_base_32): Ditto.
25813 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25815         * config/arm/arm_neon.h: Update comment.
25816         * config/arm/neon-docgen.ml: Delete.
25817         * config/arm/neon-gen.ml: Delete.
25818         * doc/arm-neon-intrinsics.texi: Update comment.
25820 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25822         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25823         and v4sf versions.
25824         (vand, vorr, veor, vorn, vbic): Remove.
25825         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25826         iterator.
25827         (neon_vsub_unspec): Likewise.
25828         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25830 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25832         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25833         (vadd_s16): Likewise.
25834         (vadd_s32): Likewise.
25835         (vadd_f32): Likewise.
25836         (vadd_u8): Likewise.
25837         (vadd_u16): Likewise.
25838         (vadd_u32): Likewise.
25839         (vadd_s64): Likewise.
25840         (vadd_u64): Likewise.
25841         (vaddq_s8): Likewise.
25842         (vaddq_s16): Likewise.
25843         (vaddq_s32): Likewise.
25844         (vaddq_s64): Likewise.
25845         (vaddq_f32): Likewise.
25846         (vaddq_u8): Likewise.
25847         (vaddq_u16): Likewise.
25848         (vaddq_u32): Likewise.
25849         (vaddq_u64): Likewise.
25850         (vmul_s8): Likewise.
25851         (vmul_s16): Likewise.
25852         (vmul_s32): Likewise.
25853         (vmul_f32): Likewise.
25854         (vmul_u8): Likewise.
25855         (vmul_u16): Likewise.
25856         (vmul_u32): Likewise.
25857         (vmul_p8): Likewise.
25858         (vmulq_s8): Likewise.
25859         (vmulq_s16): Likewise.
25860         (vmulq_s32): Likewise.
25861         (vmulq_f32): Likewise.
25862         (vmulq_u8): Likewise.
25863         (vmulq_u16): Likewise.
25864         (vmulq_u32): Likewise.
25865         (vsub_s8): Likewise.
25866         (vsub_s16): Likewise.
25867         (vsub_s32): Likewise.
25868         (vsub_f32): Likewise.
25869         (vsub_u8): Likewise.
25870         (vsub_u16): Likewise.
25871         (vsub_u32): Likewise.
25872         (vsub_s64): Likewise.
25873         (vsub_u64): Likewise.
25874         (vsubq_s8): Likewise.
25875         (vsubq_s16): Likewise.
25876         (vsubq_s32): Likewise.
25877         (vsubq_s64): Likewise.
25878         (vsubq_f32): Likewise.
25879         (vsubq_u8): Likewise.
25880         (vsubq_u16): Likewise.
25881         (vsubq_u32): Likewise.
25882         (vsubq_u64): Likewise.
25883         (vand_s8): Likewise.
25884         (vand_s16): Likewise.
25885         (vand_s32): Likewise.
25886         (vand_u8): Likewise.
25887         (vand_u16): Likewise.
25888         (vand_u32): Likewise.
25889         (vand_s64): Likewise.
25890         (vand_u64): Likewise.
25891         (vandq_s8): Likewise.
25892         (vandq_s16): Likewise.
25893         (vandq_s32): Likewise.
25894         (vandq_s64): Likewise.
25895         (vandq_u8): Likewise.
25896         (vandq_u16): Likewise.
25897         (vandq_u32): Likewise.
25898         (vandq_u64): Likewise.
25899         (vorr_s8): Likewise.
25900         (vorr_s16): Likewise.
25901         (vorr_s32): Likewise.
25902         (vorr_u8): Likewise.
25903         (vorr_u16): Likewise.
25904         (vorr_u32): Likewise.
25905         (vorr_s64): Likewise.
25906         (vorr_u64): Likewise.
25907         (vorrq_s8): Likewise.
25908         (vorrq_s16): Likewise.
25909         (vorrq_s32): Likewise.
25910         (vorrq_s64): Likewise.
25911         (vorrq_u8): Likewise.
25912         (vorrq_u16): Likewise.
25913         (vorrq_u32): Likewise.
25914         (vorrq_u64): Likewise.
25915         (veor_s8): Likewise.
25916         (veor_s16): Likewise.
25917         (veor_s32): Likewise.
25918         (veor_u8): Likewise.
25919         (veor_u16): Likewise.
25920         (veor_u32): Likewise.
25921         (veor_s64): Likewise.
25922         (veor_u64): Likewise.
25923         (veorq_s8): Likewise.
25924         (veorq_s16): Likewise.
25925         (veorq_s32): Likewise.
25926         (veorq_s64): Likewise.
25927         (veorq_u8): Likewise.
25928         (veorq_u16): Likewise.
25929         (veorq_u32): Likewise.
25930         (veorq_u64): Likewise.
25931         (vbic_s8): Likewise.
25932         (vbic_s16): Likewise.
25933         (vbic_s32): Likewise.
25934         (vbic_u8): Likewise.
25935         (vbic_u16): Likewise.
25936         (vbic_u32): Likewise.
25937         (vbic_s64): Likewise.
25938         (vbic_u64): Likewise.
25939         (vbicq_s8): Likewise.
25940         (vbicq_s16): Likewise.
25941         (vbicq_s32): Likewise.
25942         (vbicq_s64): Likewise.
25943         (vbicq_u8): Likewise.
25944         (vbicq_u16): Likewise.
25945         (vbicq_u32): Likewise.
25946         (vbicq_u64): Likewise.
25947         (vorn_s8): Likewise.
25948         (vorn_s16): Likewise.
25949         (vorn_s32): Likewise.
25950         (vorn_u8): Likewise.
25951         (vorn_u16): Likewise.
25952         (vorn_u32): Likewise.
25953         (vorn_s64): Likewise.
25954         (vorn_u64): Likewise.
25955         (vornq_s8): Likewise.
25956         (vornq_s16): Likewise.
25957         (vornq_s32): Likewise.
25958         (vornq_s64): Likewise.
25959         (vornq_u8): Likewise.
25960         (vornq_u16): Likewise.
25961         (vornq_u32): Likewise.
25962         (vornq_u64): Likewise.
25964 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25966         * wide-int.cc (UTItype): Define.
25967         (UDWtype): Define for appropriate W_TYPE_SIZE.
25969 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
25971         PR tree-optimization/59100
25972         * tree-ssa-phiopt.c: Include tree-inline.h.
25973         (neutral_element_p, absorbing_element_p): New functions.
25974         (value_replacement): Handle conditional binary operations with a
25975         neutral or absorbing element.
25977 2014-05-08  Richard Biener  <rguenther@suse.de>
25979         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25980         folding the expression.
25981         (valueize_expr): Remove.
25982         (visit_reference_op_load): Do not valueize the result of
25983         vn_get_expr_for.
25984         (simplify_binary_expression): Likewise.
25985         (simplify_unary_expression): Likewise.
25987 2014-05-08  Richard Biener  <rguenther@suse.de>
25989         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25990         looking at TYPE_ARG_TYPES.
25992 2014-05-08  Richard Biener  <rguenther@suse.de>
25994         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25995         pointer propagation special-case.
25997 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
25999         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26000         core part of address expressions.
26002 2014-05-08  Alan Modra  <amodra@gmail.com>
26004         PR target/60737
26005         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26006         loads and stores when -mno-strict-align at any alignment.
26007         (expand_block_clear): Similarly.  Also correct calculation of
26008         instruction count.
26010 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26012         PR middle-end/39246
26013         * tree-complex.c (expand_complex_move): Keep line info when expanding
26014         complex move.
26015         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26016         of complex expression. Use new argument to display correct location
26017         for values coming from phi statement.
26018         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26019         (warn_uninitialized_phi): Pass location of phi argument to
26020         warn_uninit.
26021         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26022         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26024 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
26026         * config/rs6000/predicates.md (indexed_address_mem): New.
26027         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26028         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26029         fpstore_ux, fpstore_u.
26030         (sign_extend, indexed, update): New.
26031         (cell_micro): Adjust.
26032         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26033         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26034         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26035         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26036         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26037         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26038         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26039         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26040         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26041         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26042         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26043         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26044         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26045         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26046         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26048         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26049         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26050         *vsx_extract_<mode>_store): Adjust.
26051         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26052         is_cracked_insn, insn_must_be_first_in_group,
26053         insn_must_be_last_in_group): Adjust.
26055         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26056         Adjust.
26057         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26058         ppc440-fpstore): Adjust.
26059         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26060         ppc476-fpstore): Adjust.
26061         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26062         ppc601-fpstore): Adjust.
26063         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26064         Adjust.
26065         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26066         Adjust.
26067         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26068         ppc7450-fpstore): Adjust.
26069         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26070         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26071         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26072         Adjust.
26073         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26074         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26075         cell-fpstore, cell-fpstore-update): Adjust.
26076         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26077         ppce300c3_store, ppce300c3_fpstore): Adjust.
26078         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26079         e500mc_fpstore): Adjust.
26080         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26081         e500mc64_store, e500mc64_fpstore): Adjust.
26082         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26083         e5500_fpstore): Adjust.
26084         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26085         e6500_fpstore): Adjust.
26086         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26087         Adjust.
26088         * config/rs6000/power4.md (power4-load, power4-load-ext,
26089         power4-load-ext-update, power4-load-ext-update-indexed,
26090         power4-load-update-indexed, power4-load-update, power4-fpload,
26091         power4-fpload-update, power4-store, power4-store-update,
26092         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26093         Adjust.
26094         * config/rs6000/power5.md (power5-load, power5-load-ext,
26095         power5-load-ext-update, power5-load-ext-update-indexed,
26096         power5-load-update-indexed, power5-load-update, power5-fpload,
26097         power5-fpload-update, power5-store, power5-store-update,
26098         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26099         Adjust.
26100         * config/rs6000/power6.md (power6-load, power6-load-ext,
26101         power6-load-update, power6-load-update-indexed,
26102         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26103         power6-fpload-update, power6-store, power6-store-update,
26104         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26105         Adjust.
26106         * config/rs6000/power7.md (power7-load, power7-load-ext,
26107         power7-load-update, power7-load-update-indexed,
26108         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26109         power7-fpload-update, power7-store, power7-store-update,
26110         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26111         Adjust.
26112         * config/rs6000/power8.md (power8-load, power8-load-update,
26113         power8-load-ext, power8-load-ext-update, power8-fpload,
26114         power8-fpload-update, power8-store, power8-store-update-indexed,
26115         power8-fpstore, power8-fpstore-update): Adjust.
26116         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26117         Adjust.
26118         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26119         titan_lsu_store, titan_lsu_fpstore): Adjust.
26120         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26122 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
26124         PR target/60884
26125         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26126         unrolled byte insns.  Emit address increments after move insns.
26128 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
26130         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26131         const_gimple, rather than a gimple.
26132         (gimple_call_builtin_p): Likewise, for the three variants.
26134         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26135         (gimple_call_builtin_p): Likewise, for the three variants.
26137 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26139         PR tree-optimization/61095
26140         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26142 2014-05-07  Richard Biener  <rguenther@suse.de>
26144         PR tree-optimization/61034
26145         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26146         (maybe_skip_until): Use translate to take into account
26147         lattices when trying to do disambiguations.
26148         (get_continuation_for_phi_1): Likewise.
26149         (get_continuation_for_phi): Adjust for added translate arguments.
26150         (walk_non_aliased_vuses): Likewise.
26151         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26152         (walk_non_aliased_vuses): Likewise.
26153         (call_may_clobber_ref_p_1): Declare.
26154         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26155         calls.  Stop early if we are only supposed to disambiguate.
26156         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26158 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
26160         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26161         Emit an error when the function has arguments.
26163 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26165         * cfgloop.h (unswitch_loops): Remove.
26166         * doc/passes.texi: Remove references to loop-unswitch.c
26167         * timevar.def (TV_LOOP_UNSWITCH): Remove.
26169 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
26171         * tree-vect-data-refs.c (vect_grouped_load_supported): New
26172         check for loads group of length 3.
26173         (vect_permute_load_chain): New permutations for loads group of
26174         length 3.
26175         * tree-vect-stmts.c (vect_model_load_cost): Change cost
26176         of vec_perm_shuffle for the new permutations.
26178 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
26180         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26181         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26182         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26183         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26184         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26185         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26186         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26187         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26189 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26191         * loop-unswitch.c: Delete.
26193 2014-05-07  Richard Biener  <rguenther@suse.de>
26195         * config.gcc: Always set need_64bit_hwint to yes.
26197 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
26199         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26200         of using optimize_size.
26202 2014-05-06  Mike Stump  <mikestump@comcast.net>
26204         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26206 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
26208         * config/i386/sse.md (*mov<mode>_internal)
26209         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26210         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26211         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26212         (*<code><mode>3, *andnot<mode>3<mask_name>)
26213         (<mask_codefor><code><mode>3<mask_name>): Only consider
26214         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26216 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26218         Revert:
26219         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26221         * lra-constraints.c (valid_address_p): Move earlier in file.
26222         Add a constraint argument to the address_info version.
26223         (satisfies_memory_constraint_p): New function.
26224         (satisfies_address_constraint_p): Likewise.
26225         (process_alt_operands, curr_insn_transform): Use them.
26226         (process_address): Pass the constraint to valid_address_p when
26227         checking address operands.
26229 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
26231         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26232         to their respective blocks.  Fix inadvertent use of "node".
26234 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26236         * emit-rtl.c (init_derived_machine_modes): New functionm, split
26237         out from...
26238         (init_emit_once): ...here.
26239         * rtl.h (init_derived_machine_modes): Declare.
26240         * toplev.c (do_compile): Call it even if no_backend.
26242 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
26243             Mike Stump  <mikestump@comcast.net>
26244             Richard Sandiford  <rdsandiford@googlemail.com>
26245             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26247         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26248         (rtx_equal_for_memref_p): Update comment.
26249         (adjust_offset_for_component_ref): Use wide-int interfaces.
26250         * builtins.c (get_object_alignment_2): Likewise.
26251         (c_readstr): Likewise.
26252         (target_char_cast): Add comment.
26253         (determine_block_size): Use wide-int interfaces.
26254         (expand_builtin_signbit): Likewise.
26255         (fold_builtin_int_roundingfn): Likewise.
26256         (fold_builtin_bitop): Likewise.
26257         (fold_builtin_bswap): Likewise.
26258         (fold_builtin_logarithm): Use signop.
26259         (fold_builtin_pow): Likewise.
26260         (fold_builtin_memory_op): Use wide-int interfaces.
26261         (fold_builtin_object_size): Likewise.
26262         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26263         nb_iterations_estimate.
26264         (record_niter_bound): Use wide-int interfaces.
26265         (get_estimated_loop_iterations_int): Likewise.
26266         (get_estimated_loop_iterations): Likewise.
26267         (get_max_loop_iterations): Likewise.
26268         * cfgloop.h: Include wide-int.h.
26269         (struct nb_iter_bound): Change bound to widest_int.
26270         (struct loop): Change nb_iterations_upper_bound and
26271         nb_iterations_estimate to widest_int.
26272         (record_niter_bound): Switch to use widest_int.
26273         (get_estimated_loop_iterations): Likewise.
26274         (get_max_loop_iterations): Likewise.
26275         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26276         update for wide-int.
26277         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26278         * combine.c (try_combine): Likewise.
26279         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26280         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26281         interfaces.
26282         (aarch64_float_const_representable_p): Likewise.
26283         * config/arc/arc.c: Include wide-int.h.
26284         (arc_can_use_doloop_p): Use wide-int interfaces.
26285         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26286         (vfp3_const_double_index): Likewise.
26287         * config/avr/avr.c (avr_out_round): Likewise.
26288         (avr_fold_builtin): Likewise.
26289         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26290         (bfin_can_use_doloop_p): Likewise.
26291         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26292         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26293         * config/i386/i386.c: Include wide-int.h.
26294         (ix86_data_alignment): Use wide-int interfaces.
26295         (ix86_local_alignment): Likewise.
26296         (ix86_emit_swsqrtsf): Update real_from_integer.
26297         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26298         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26299         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26300         (zero_constant): Likewise.
26301         (input_operand): Likewise.
26302         (splat_input_operand): Likewise.
26303         (non_logical_cint_operand): Change const_double to const_wide_int.
26304         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26305         (easy_altivec_constant): Remove comment.
26306         (paired_expand_vector_init): Use CONSTANT_P.
26307         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26308         (rs6000_emit_move): Update checks.
26309         (rs6000_aggregate_candidate): Use wide-int interfaces.
26310         (rs6000_expand_ternop_builtin): Likewise.
26311         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26312         (rs6000_assemble_integer): Likewise.
26313         (rs6000_hash_constant): Likewise.
26314         (output_toc): Likewise.
26315         (rs6000_rtx_costs): Likewise.
26316         (rs6000_emit_swrsqrt); Update call to real_from_integer.
26317         * config/rs6000/rs6000-c.c: Include wide-int.h.
26318         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26319         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26320         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26321         Handle CONST_WIDE_INT.
26322         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26323         Use tree_fits_uhwi_p.
26324         * config/sparc/sparc.c: Include wide-int.h.
26325         (sparc_fold_builtin): Use wide-int interfaces.
26326         * config/vax/vax.c: Include wide-int.h.
26327         (vax_float_literal): Use real_from_integer.
26328         * coretypes.h (struct hwivec_def): New.
26329         (hwivec): New.
26330         (const_hwivec): New.
26331         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26332         (equiv_constant): Handle CONST_WIDE_INT.
26333         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26334         (cselib_hash_rtx): Handle CONST_WIDE_INT.
26335         * dbxout.c (stabstr_U): Use wide-int interfaces.
26336         (dbxout_type): Update to use cst_fits_shwi_p.
26337         * defaults.h (LOG2_BITS_PER_UNIT): Define.
26338         (TARGET_SUPPORTS_WIDE_INT): Add default.
26339         * dfp.c: Include wide-int.h.
26340         (decimal_real_to_integer2): Use wide-int interfaces and rename to
26341         decimal_real_to_integer.
26342         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26343         decimal_real_to_integer.
26344         * doc/generic.texi (Constant expressions): Update for wide_int.
26345         * doc/rtl.texi (const_double): Likewise.
26346         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26347         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26348         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26349         (REAL_VALUE_FROM_INT): Remove.
26350         (TARGET_SUPPORTS_WIDE_INT): New.
26351         * doc/tm.texi: Regenerate.
26352         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26353         * double-int.h: Include wide-int.h.
26354         (struct wi::int_traits): New.
26355         * dwarf2out.c (get_full_len): New.
26356         (dw_val_equal_p): Add case dw_val_class_wide_int.
26357         (size_of_loc_descr): Likewise.
26358         (output_loc_operands): Likewise.
26359         (insert_double): Remove.
26360         (insert_wide_int): New.
26361         (add_AT_wide): New.
26362         (print_die): Add case dw_val_class_wide_int.
26363         (attr_checksum): Likewise.
26364         (attr_checksum_ordered): Likewise.
26365         (same_dw_val_p): Likewise.
26366         (size_of_die): Likewise.
26367         (value_format): Likewise.
26368         (output_die): Likewise.
26369         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26370         Use wide-int.
26371         (clz_loc_descriptor): Use wide-int interfaces.
26372         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
26373         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
26374         (round_up_to_align): Use wide-int interfaces.
26375         (field_byte_offset): Likewise.
26376         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
26377         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
26378         CONST_DOUBLE handling.  Use wide-int interfaces.
26379         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
26380         (gen_enumeration_type_die): Use add_AT_wide.
26381         (hash_loc_operands): Add case dw_val_class_wide_int.
26382         (compare_loc_operands): Likewise.
26383         * dwarf2out.h: Include wide-int.h.
26384         (wide_int_ptr): New.
26385         (enum dw_val_class): Add dw_val_class_wide_int.
26386         (struct dw_val_struct): Add val_wide.
26387         * emit-rtl.c (const_wide_int_htab): New.
26388         (const_wide_int_htab_hash): New.
26389         (const_wide_int_htab_eq): New.
26390         (lookup_const_wide_int): New.
26391         (const_double_htab_hash): Use wide-int interfaces.
26392         (const_double_htab_eq): Likewise.
26393         (rtx_to_double_int): Conditionally compile for wide-int.
26394         (immed_double_int_const): Rename to immed_wide_int_const and
26395         update for wide-int.
26396         (immed_double_const): Conditionally compile for wide-int.
26397         (init_emit_once): Use wide-int interfaces.
26398         * explow.c (plus_constant): Likewise.
26399         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
26400         (lshift_value): Use wide-int interfaces.
26401         (expand_mult): Likewise.
26402         (choose_multiplier): Likewise.
26403         (expand_smod_pow2): Likewise.
26404         (make_tree): Likewise.
26405         * expr.c (convert_modes): Consolidate handling of constants.
26406         Use wide-int interfaces.
26407         (emit_group_load_1): Add note.
26408         (store_expr): Update comment.
26409         (get_inner_reference): Use wide-int interfaces.
26410         (expand_constructor): Update comment.
26411         (expand_expr_real_2): Use wide-int interfaces.
26412         (expand_expr_real_1): Likewise.
26413         (reduce_to_bit_field_precision): Likewise.
26414         (const_vector_from_tree): Likewise.
26415         * final.c: Include wide-int-print.h.
26416         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
26417         * fixed-value.c: Include wide-int.h.
26418         (fixed_from_string): Use wide-int interfaces.
26419         (fixed_to_decimal): Likewise.
26420         (fixed_convert_from_real): Likewise.
26421         (real_convert_from_fixed): Likewise.
26422         * fold-const.h (mem_ref_offset): Return an offset_int.
26423         (div_if_zero_remainder): Remove code parameter.
26424         * fold-const.c (div_if_zero_remainder): Remove code parameter.
26425         Use wide-int interfaces.
26426         (may_negate_without_overflow_p): Use wide-int interfaces.
26427         (negate_expr_p): Likewise.
26428         (fold_negate_expr): Likewise.
26429         (int_const_binop_1): Likewise.
26430         (const_binop): Likewise.
26431         (fold_convert_const_int_from_int): Likewise.
26432         (fold_convert_const_int_from_real): Likewise.
26433         (fold_convert_const_int_from_fixed): Likewise.
26434         (fold_convert_const_fixed_from_int): Likewise.
26435         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
26436         (sign_bit_p): Use wide-int interfaces.
26437         (make_range_step): Likewise.
26438         (build_range_check): Likewise.  Pass an integer of the correct type
26439         instead of using integer_one_node.
26440         (range_predecessor): Pass an integer of the correct type instead
26441         of using integer_one_node.
26442         (range_successor): Likewise.
26443         (merge_ranges): Likewise.
26444         (unextend): Use wide-int interfaces.
26445         (extract_muldiv_1): Likewise.
26446         (fold_div_compare): Likewise.
26447         (fold_single_bit_test): Likewise.
26448         (fold_sign_changed_comparison): Likewise.
26449         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26450         (fold_plusminus_mult_expr): Use wide-int interfaces.
26451         (native_encode_int): Likewise.
26452         (native_interpret_int): Likewise.
26453         (fold_unary_loc): Likewise.
26454         (pointer_may_wrap_p): Likewise.
26455         (size_low_cst): Likewise.
26456         (mask_with_tz): Likewise.
26457         (fold_binary_loc): Likewise.
26458         (fold_ternary_loc): Likewise.
26459         (multiple_of_p): Likewise.
26460         (tree_call_nonnegative_warnv_p): Update calls to
26461         tree_int_cst_min_precision and real_from_integer.
26462         (fold_negate_const): Use wide-int interfaces.
26463         (fold_abs_const): Likewise.
26464         (fold_relational_const): Use tree_int_cst_lt.
26465         (round_up_loc): Use wide-int interfaces.
26466         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26467         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26468         * gengtype.c: Remove include of double-int.h.
26469         (do_typedef): Use wide-int interfaces.
26470         (open_base_files): Add wide-int.h.
26471         (main): Add offset_int and widest_int typedefs.
26472         * gengtype-lex.l: Handle "^".
26473         (CXX_KEYWORD): Add "static".
26474         * gengtype-parse.c (require3): New.
26475         (require_template_declaration): Handle constant template arguments
26476         and nested templates.
26477         * gengtype-state.c: Don't include "double-int.h".
26478         * genpreds.c (write_one_predicate_function): Update comment.
26479         (write_tm_constrs_h): Add check for hval and lval use in
26480         CONST_WIDE_INT.
26481         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26482         (add_to_sequence): Likewise.
26483         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26484         and const_double_operand.
26485         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26486         interfaces.
26487         * gimple-fold.c (get_base_constructor): Likewise.
26488         (fold_array_ctor_reference): Likewise.
26489         (fold_nonarray_ctor_reference): Likewise.
26490         (fold_const_aggregate_ref_1): Likewise.
26491         (gimple_val_nonnegative_real_p): Likewise.
26492         (gimple_fold_indirect_ref): Likewise.
26493         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26494         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26495         (struct slsr_cand_d): Change index to be widest_int.
26496         (struct incr_info_d): Change incr to be widest_int.
26497         (alloc_cand_and_find_basis): Use wide-int interfaces.
26498         (slsr_process_phi): Likewise.
26499         (backtrace_base_for_ref): Likewise.  Return a widest_int.
26500         (restructure_reference): Take a widest_int instead of a double_int.
26501         (slsr_process_ref): Use wide-int interfaces.
26502         (create_mul_ssa_cand): Likewise.
26503         (create_mul_imm_cand): Likewise.
26504         (create_add_ssa_cand): Likewise.
26505         (create_add_imm_cand): Take a widest_int instead of a double_int.
26506         (slsr_process_add): Use wide-int interfaces.
26507         (slsr_process_cast): Likewise.
26508         (slsr_process_copy): Likewise.
26509         (dump_candidate): Likewise.
26510         (dump_incr_vec): Likewise.
26511         (replace_ref): Likewise.
26512         (cand_increment): Likewise.  Return a widest_int.
26513         (cand_abs_increment): Likewise.
26514         (replace_mult_candidate): Take a widest_int instead of a double_int.
26515         (replace_unconditional_candidate): Use wide-int interfaces.
26516         (incr_vec_index): Take a widest_int instead of a double_int.
26517         (create_add_on_incoming_edge): Likewise.
26518         (create_phi_basis): Use wide-int interfaces.
26519         (replace_conditional_candidate): Likewise.
26520         (record_increment): Take a widest_int instead of a double_int.
26521         (record_phi_increments): Use wide-int interfaces.
26522         (phi_incr_cost): Take a widest_int instead of a double_int.
26523         (lowest_cost_path): Likewise.
26524         (total_savings): Likewise.
26525         (analyze_increments): Use wide-int interfaces.
26526         (ncd_with_phi): Take a widest_int instead of a double_int.
26527         (ncd_of_cand_and_phis): Likewise.
26528         (nearest_common_dominator_for_cands): Likewise.
26529         (insert_initializers): Use wide-int interfaces.
26530         (all_phi_incrs_profitable): Likewise.
26531         (replace_one_candidate): Likewise.
26532         (replace_profitable_candidates): Likewise.
26533         * godump.c: Include wide-int-print.h.
26534         (go_output_typedef): Use wide-int interfaces.
26535         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26536         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26537         (build_loop_iteration_domains): Likewise.
26538         * hooks.h: Include wide-int.h rather than double-int.h.
26539         (hook_bool_dint_dint_uint_bool_true): Delete.
26540         (hook_bool_wint_wint_uint_bool_true): Declare.
26541         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26542         (hook_bool_wint_wint_uint_bool_true): New.
26543         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26544         interfaces.
26545         (ubsan_expand_si_overflow_mul_check): Likewise.
26546         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26547         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26548         (get_ancestor_addr_info): Likewise.
26549         (ipa_modify_call_arguments): Likewise.
26550         * loop-doloop.c (doloop_modify): Likewise.
26551         (doloop_optimize): Likewise.
26552         * loop-iv.c (iv_number_of_iterations): Likewise.
26553         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26554         (unroll_loop_constant_iterations): Likewise.
26555         (decide_unroll_runtime_iterations): Likewise.
26556         (unroll_loop_runtime_iterations): Likewise.
26557         (decide_peel_simple): Likewise.
26558         (decide_unroll_stupid): Likewise.
26559         * lto-streamer-in.c (streamer_read_wi): Add.
26560         (input_cfg): Use wide-int interfaces.
26561         (lto_input_tree_1): Likewise.
26562         * lto-streamer-out.c (streamer_write_wi): Add.
26563         (hash_tree): Use wide-int interfaces.
26564         (output_cfg): Likewise.
26565         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26566         (GTFILES): Add wide-int.h and signop.h.
26567         (TAGS): Look for .cc files too.
26568         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26569         * optabs.c (expand_subword_shift): Likewise.
26570         (expand_doubleword_shift): Likewise.
26571         (expand_absneg_bit): Likewise.
26572         (expand_copysign_absneg): Likewise.
26573         (expand_copysign_bit): Likewise.
26574         * postreload.c (reload_cse_simplify_set): Likewise.
26575         * predict.c (predict_iv_comparison): Likewise.
26576         * pretty-print.h: Include wide-int-print.h.
26577         (pp_wide_int) New.
26578         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26579         * print-tree.c: Include wide-int-print.h.
26580         (print_node_brief): Use wide-int interfaces.
26581         (print_node): Likewise.
26582         * read-rtl.c (validate_const_wide_int): New.
26583         (read_rtx_code): Add CONST_WIDE_INT case.
26584         * real.c: Include wide-int.h.
26585         (real_to_integer2): Delete.
26586         (real_to_integer): New function, returning a wide_int.
26587         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26588         (ten_to_ptwo): Update call to real_from_integer.
26589         (real_digit): Likewise.
26590         * real.h: Include signop.h, wide-int.h and insn-modes.h.
26591         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26592         (REAL_VALUE_TO_INT): Delete.
26593         (real_to_integer): Declare a wide-int form.
26594         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26595         * recog.c (const_int_operand): Improve comment.
26596         (const_scalar_int_operand): New.
26597         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26598         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26599         (split_double): Likewise.
26600         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26601         (rtx_size): Likewise.
26602         (rtx_alloc_stat_v): New.
26603         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26604         (cwi_output_hex): New.
26605         (iterative_hash_rtx): Handle CONST_WIDE_INT.
26606         (cwi_check_failed_bounds): New.
26607         * rtl.def (CONST_WIDE_INT): New.
26608         * rtl.h: Include <utility> and wide-int.h.
26609         (struct hwivec_def): New.
26610         (CWI_GET_NUM_ELEM): New.
26611         (CWI_PUT_NUM_ELEM): New.
26612         (struct rtx_def): Add num_elem and hwiv.
26613         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26614         (CASE_CONST_UNIQUE): Likewise.
26615         (CASE_CONST_ANY): Likewise.
26616         (CONST_SCALAR_INT_P): Likewise.
26617         (CONST_WIDE_INT_P): New.
26618         (CWI_ELT): New.
26619         (HWIVEC_CHECK): New.
26620         (cwi_check_failed_bounds): New.
26621         (CWI_ELT): New.
26622         (HWIVEC_CHECK): New.
26623         (CONST_WIDE_INT_VEC) New.
26624         (CONST_WIDE_INT_NUNITS) New.
26625         (CONST_WIDE_INT_ELT) New.
26626         (rtx_mode_t): New type.
26627         (wi::int_traits <rtx_mode_t>): New.
26628         (wi::shwi): New.
26629         (wi::min_value): New.
26630         (wi::max_value): New.
26631         (rtx_alloc_v) New.
26632         (const_wide_int_alloc): New.
26633         (immed_wide_int_const): New.
26634         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26635         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26636         * signop.h: New file.
26637         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26638         (simplify_const_unary_operation): Use wide-int interfaces.
26639         (simplify_binary_operation_1): Likewise.
26640         (simplify_const_binary_operation): Likewise.
26641         (simplify_const_relational_operation): Likewise.
26642         (simplify_immed_subreg): Likewise.
26643         * stmt.c (expand_case): Likewise.
26644         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26645         signop rather than a bool.
26646         * stor-layout.c (layout_type): Use wide-int interfaces.
26647         (initialize_sizetypes): Update calls to
26648         set_min_and_max_values_for_integral_type.
26649         (set_min_and_max_values_for_integral_type): Take a signop rather
26650         than a bool.  Use wide-int interfaces.
26651         (fixup_signed_type): Update accordingly.  Remove
26652         HOST_BITS_PER_DOUBLE_INT limit.
26653         (fixup_unsigned_type): Likewise.
26654         * system.h (STATIC_CONSTANT_P): New.
26655         (STATIC_ASSERT): New.
26656         * target.def (can_use_doloop_p): Take widest_ints rather than
26657         double_ints.
26658         * target.h: Include wide-int.h rather than double-int.h.
26659         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26660         than double_ints.
26661         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26662         rather than INT_CST_LT_UNSIGNED.
26663         (can_use_doloop_if_innermost): Take widest_ints rather than
26664         double_ints.
26665         * tree-affine.c: Include wide-int-print.h.
26666         (double_int_ext_for_comb): Delete.
26667         (wide_int_ext_for_comb): New.
26668         (aff_combination_zero): Use wide-int interfaces.
26669         (aff_combination_const): Take a widest_int instead of a double_int.
26670         (aff_combination_elt): Use wide-int interfaces.
26671         (aff_combination_scale): Take a widest_int instead of a double_int.
26672         (aff_combination_add_elt): Likewise.
26673         (aff_combination_add_cst): Likewise.
26674         (aff_combination_add): Use wide-int interfaces.
26675         (aff_combination_convert): Likewise.
26676         (tree_to_aff_combination): Likewise.
26677         (add_elt_to_tree): Take a widest_int instead of a double_int.
26678         (aff_combination_to_tree): Use wide-int interfaces.
26679         (aff_combination_remove_elt): Likewise.
26680         (aff_combination_add_product): Take a widest_int instead of
26681         a double_int.
26682         (aff_combination_mult): Use wide-int interfaces.
26683         (aff_combination_expand): Likewise.
26684         (double_int_constant_multiple_p): Delete.
26685         (wide_int_constant_multiple_p): New.
26686         (aff_combination_constant_multiple_p): Take a widest_int pointer
26687         instead of a double_int pointer.
26688         (print_aff): Use wide-int interfaces.
26689         (get_inner_reference_aff): Take a widest_int pointer
26690         instead of a double_int pointer.
26691         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26692         * tree-affine.h: Include wide-int.h.
26693         (struct aff_comb_elt): Change type of coef to widest_int.
26694         (struct affine_tree_combination): Change type of offset to widest_int.
26695         (double_int_ext_for_comb): Delete.
26696         (wide_int_ext_for_comb): New.
26697         (aff_combination_const): Use widest_int instead of double_int.
26698         (aff_combination_scale): Likewise.
26699         (aff_combination_add_elt): Likewise.
26700         (aff_combination_constant_multiple_p): Likewise.
26701         (get_inner_reference_aff): Likewise.
26702         (aff_comb_cannot_overlap_p): Likewise.
26703         (aff_combination_zero_p): Use wide-int interfaces.
26704         * tree.c: Include tree.h.
26705         (init_ttree): Use make_int_cst.
26706         (tree_code_size): Removed code for INTEGER_CST case.
26707         (tree_size): Add INTEGER_CST case.
26708         (make_node_stat): Update comment.
26709         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26710         (build_int_cst_type): Use wide-int interfaces.
26711         (double_int_to_tree): Likewise.
26712         (double_int_fits_to_tree_p): Delete.
26713         (force_fit_type_double): Delete.
26714         (force_fit_type): New.
26715         (int_cst_hash_hash): Use wide-int interfaces.
26716         (int_cst_hash_eq): Likewise.
26717         (build_int_cst_wide): Delete.
26718         (wide_int_to_tree): New.
26719         (cache_integer_cst): Use wide-int interfaces.
26720         (build_low_bits_mask): Likewise.
26721         (cst_and_fits_in_hwi): Likewise.
26722         (real_value_from_int_cst): Likewise.
26723         (make_int_cst_stat): New.
26724         (integer_zerop): Use wide_int interfaces.
26725         (integer_onep): Likewise.
26726         (integer_all_onesp): Likewise.
26727         (integer_pow2p): Likewise.
26728         (integer_nonzerop): Likewise.
26729         (tree_log2): Likewise.
26730         (tree_floor_log2): Likewise.
26731         (tree_ctz): Likewise.
26732         (int_size_in_bytes): Likewise.
26733         (mem_ref_offset): Return an offset_int rather than a double_int.
26734         (build_type_attribute_qual_variant): Use wide_int interfaces.
26735         (type_hash_eq): Likewise
26736         (tree_int_cst_equal): Likewise.
26737         (tree_int_cst_lt): Delete.
26738         (tree_int_cst_compare): Likewise.
26739         (tree_fits_shwi_p): Use wide_int interfaces.
26740         (tree_fits_uhwi_p): Likewise.
26741         (tree_int_cst_sign_bit): Likewise.
26742         (tree_int_cst_sgn): Likewise.
26743         (tree_int_cst_min_precision): Take a signop rather than a bool.
26744         (simple_cst_equal): Use wide_int interfaces.
26745         (compare_tree_int): Likewise.
26746         (iterative_hash_expr): Likewise.
26747         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
26748         INT_CST_LT.
26749         (get_type_static_bounds): Use wide_int interfaces.
26750         (tree_int_cst_elt_check_failed): New.
26751         (build_common_tree_nodes): Reordered to set prec before filling in
26752         value.
26753         (int_cst_value): Check cst_and_fits_in_hwi.
26754         (widest_int_cst_value): Use wide_int interfaces.
26755         (upper_bound_in_type): Likewise.
26756         (lower_bound_in_type): Likewise.
26757         (num_ending_zeros): Likewise.
26758         (drop_tree_overflow): Likewise.
26759         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26760         (gen_conditions_for_pow_cst_base): Likewise.
26761         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26762         (group_case_labels_stmt): Use wide-int interfaces.
26763         (verify_gimple_assign_binary): Likewise.
26764         (print_loop): Likewise.
26765         * tree-chrec.c (tree_fold_binomial): Likewise.
26766         * tree-core.h (struct tree_base): Add int_length.
26767         (struct tree_int_cst): Change rep of value.
26768         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26769         (dr_may_alias_p): Likewise.
26770         (max_stmt_executions_tree): Likewise.
26771         * tree.def (INTEGER_CST): Update comment.
26772         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26773         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26774         * tree-dump.c: Include wide-int.h and wide-int-print.h.
26775         (dequeue_and_dump): Use wide-int interfaces.
26776         * tree.h: Include wide-int.h.
26777         (NULL_TREE): Moved to earlier loc in file.
26778         (TREE_INT_CST_ELT_CHECK): New.
26779         (tree_int_cst_elt_check_failed): New.
26780         (TYPE_SIGN): New.
26781         (TREE_INT_CST): Delete.
26782         (TREE_INT_CST_LOW): Use wide-int interfaces.
26783         (TREE_INT_CST_HIGH): Delete.
26784         (TREE_INT_CST_NUNITS): New.
26785         (TREE_INT_CST_EXT_NUNITS): Likewise.
26786         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26787         (TREE_INT_CST_ELT): Likewise.
26788         (INT_CST_LT): Delete.
26789         (tree_int_cst_elt_check): New (two forms).
26790         (type_code_size): Update comment.
26791         (make_int_cst_stat, make_int_cst): New.
26792         (tree_to_double_int): Delete.
26793         (double_int_fits_to_tree_p): Delete.
26794         (force_fit_type_double): Delete.
26795         (build_int_cstu): Replace with out-of-line function.
26796         (build_int_cst_wide): Delete.
26797         (tree_int_cst_lt): Define inline.
26798         (tree_int_cst_le): New.
26799         (tree_int_cst_compare): Define inline.
26800         (tree_int_cst_min_precision): Take a signop rather than a bool.
26801         (wi::int_traits <const_tree>): New.
26802         (wi::int_traits <tree>): New.
26803         (wi::extended_tree): New.
26804         (wi::int_traits <wi::extended_tree>): New.
26805         (wi::to_widest): New.
26806         (wi::to_offset): New.
26807         (wi::fits_to_tree_p): New.
26808         (wi::min_value): New.
26809         (wi::max_value): New.
26810         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26811         (copy_tree_body_r): Likewise.
26812         * tree-object-size.c (compute_object_offset): Likewise.
26813         (addr_object_size): Likewise.
26814         * tree-predcom.c: Include wide-int-print.h.
26815         (struct dref_d): Change type of offset to widest_int.
26816         (dump_dref): Call wide-int printer.
26817         (aff_combination_dr_offset): Use wide-int interfaces.
26818         (determine_offset): Take a widest_int pointer rather than a
26819         double_int pointer.
26820         (split_data_refs_to_components): Use wide-int interfaces.
26821         (suitable_component_p): Likewise.
26822         (order_drefs): Likewise.
26823         (add_ref_to_chain): Likewise.
26824         (valid_initializer_p): Likewise.
26825         (determine_roots_comp): Likewise.
26826         * tree-pretty-print.c: Include wide-int-print.h.
26827         (dump_generic_node): Use wide-int interfaces.
26828         * tree-sra.c (sra_ipa_modify_expr): Likewise.
26829         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26830         (move_fixed_address_to_symbol): Likewise.
26831         (move_hint_to_base): Likewise.
26832         (move_pointer_to_base): Likewise.
26833         (move_variant_to_index): Likewise.
26834         (most_expensive_mult_to_index): Likewise.
26835         (addr_to_parts): Likewise.
26836         (copy_ref_info): Likewise.
26837         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26838         (indirect_refs_may_alias_p): Likewise.
26839         (stmt_kills_ref_p_1): Likewise.
26840         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26841         * tree-ssa-ccp.c: Update comment at top of file.  Include
26842         wide-int-print.h.
26843         (struct prop_value_d): Change type of mask to widest_int.
26844         (extend_mask): New function.
26845         (dump_lattice_value): Use wide-int interfaces.
26846         (get_default_value): Likewise.
26847         (set_constant_value): Likewise.
26848         (set_value_varying): Likewise.
26849         (valid_lattice_transition): Likewise.
26850         (set_lattice_value): Likewise.
26851         (value_to_double_int): Delete.
26852         (value_to_wide_int): New.
26853         (get_value_from_alignment): Use wide-int interfaces.
26854         (get_value_for_expr): Likewise.
26855         (do_dbg_cnt): Likewise.
26856         (ccp_finalize): Likewise.
26857         (ccp_lattice_meet): Likewise.
26858         (bit_value_unop_1): Use widest_ints rather than double_ints.
26859         (bit_value_binop_1): Likewise.
26860         (bit_value_unop): Use wide-int interfaces.
26861         (bit_value_binop): Likewise.
26862         (bit_value_assume_aligned): Likewise.
26863         (evaluate_stmt): Likewise.
26864         (ccp_fold_stmt): Likewise.
26865         (visit_cond_stmt): Likewise.
26866         (ccp_visit_stmt): Likewise.
26867         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26868         (constant_pointer_difference): Likewise.
26869         (associate_pointerplus): Likewise.
26870         (combine_conversions): Likewise.
26871         * tree-ssa-loop.h: Include wide-int.h.
26872         (struct tree_niter_desc): Change type of max to widest_int.
26873         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26874         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26875         (remove_redundant_iv_tests): Likewise.
26876         (canonicalize_loop_induction_variables): Likewise.
26877         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26878         (constant_multiple_of): Take a widest_int pointer instead of
26879         a double_int pointer.
26880         (get_computation_aff): Use wide-int interfaces.
26881         (ptr_difference_cost): Likewise.
26882         (difference_cost): Likewise.
26883         (get_loop_invariant_expr_id): Likewise.
26884         (get_computation_cost_at): Likewise.
26885         (iv_elimination_compare_lt): Likewise.
26886         (may_eliminate_iv): Likewise.
26887         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26888         instead of double_int.
26889         (max_loop_iterations): Likewise.
26890         (max_stmt_executions): Likewise.
26891         (estimated_stmt_executions): Likewise.
26892         * tree-ssa-loop-niter.c: Include wide-int-print.h.
26893         (split_to_var_and_offset): Use wide-int interfaces.
26894         (determine_value_range): Likewise.
26895         (bound_difference_of_offsetted_base): Likewise.
26896         (bounds_add): Take a widest_int instead of a double_int.
26897         (number_of_iterations_ne_max): Use wide-int interfaces.
26898         (number_of_iterations_ne): Likewise.
26899         (number_of_iterations_lt_to_ne): Likewise.
26900         (assert_loop_rolls_lt): Likewise.
26901         (number_of_iterations_lt): Likewise.
26902         (number_of_iterations_le): Likewise.
26903         (number_of_iterations_cond): Likewise.
26904         (number_of_iterations_exit): Likewise.
26905         (finite_loop_p): Likewise.
26906         (derive_constant_upper_bound_assign): Likewise.
26907         (derive_constant_upper_bound): Return a widest_int.
26908         (derive_constant_upper_bound_ops): Likewise.
26909         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26910         (record_estimate): Take a widest_int rather than a double_int.
26911         (record_nonwrapping_iv): Use wide-int interfaces.
26912         (double_int_cmp): Delete.
26913         (wide_int_cmp): New.
26914         (bound_index): Take a widest_int rather than a double_int.
26915         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26916         (maybe_lower_iteration_bound): Likewise.
26917         (estimate_numbers_of_iterations_loop): Likewise.
26918         (estimated_loop_iterations): Take a widest_int pointer than than
26919         a double_int pointer.
26920         (estimated_loop_iterations_int): Use wide-int interfaces.
26921         (max_loop_iterations): Take a widest_int pointer than than
26922         a double_int pointer.
26923         (max_loop_iterations_int): Use wide-int interfaces.
26924         (max_stmt_executions): Take a widest_int pointer than than
26925         a double_int pointer.
26926         (estimated_stmt_executions): Likewise.
26927         (n_of_executions_at_most): Use wide-int interfaces.
26928         (scev_probably_wraps_p): Likewise.
26929         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26930         to real_to_integer.
26931         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26932         interfaces.
26933         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26934         double_ints.  Adjust for trailing_wide_ints <3> representation.
26935         (set_nonzero_bits): Likewise.
26936         (get_range_info): Return wide_ints rather than double_ints.
26937         Adjust for trailing_wide_ints <3> representation.
26938         (get_nonzero_bits): Likewise.
26939         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26940         representation.
26941         * tree-ssanames.h (struct range_info_def): Replace min, max and
26942         nonzero_bits with a trailing_wide_ints <3>.
26943         (set_range_info): Use wide_int_refs rather than double_ints.
26944         (set_nonzero_bits): Likewise.
26945         (get_range_info): Return wide_ints rather than double_ints.
26946         (get_nonzero_bits): Likewise.
26947         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26948         * tree-ssa-pre.c (phi_translate_1): Likewise.
26949         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26950         (acceptable_pow_call): Likewise.
26951         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26952         interfaces.
26953         (vn_reference_fold_indirect): Likewise.
26954         (vn_reference_maybe_forwprop_address): Likewise.
26955         (valueize_refs_1): Likewise.
26956         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26957         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26958         tree_int_cst_lt and tree_int_cst_le.
26959         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26960         interfaces.
26961         (streamer_alloc_tree): Likewise.
26962         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26963         (streamer_write_tree_header): Likewise.
26964         (streamer_write_integer_cst): Likewise.
26965         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26966         (build_constructors): Likewise.
26967         (array_value_type): Likewise.
26968         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26969         (vect_check_gather): Likewise.
26970         * tree-vect-generic.c (build_replicated_const): Likewise.
26971         (expand_vector_divmod): Likewise.
26972         * tree-vect-loop.c (vect_transform_loop): Likewise.
26973         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26974         (vect_do_peeling_for_alignment): Likewise.
26975         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26976         * tree-vrp.c: Include wide-int.h.
26977         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26978         (extract_range_from_assert): Use wide-int interfaces.
26979         (vrp_int_const_binop): Likewise.
26980         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26981         double_int pointers.
26982         (ranges_from_anti_range): Use wide-int interfaces.
26983         (quad_int_cmp): Delete.
26984         (quad_int_pair_sort): Likewise.
26985         (extract_range_from_binary_expr_1): Use wide-int interfaces.
26986         (extract_range_from_unary_expr_1): Likewise.
26987         (adjust_range_with_scev): Likewise.
26988         (masked_increment): Take and return wide_ints rather than double_ints.
26989         (register_edge_assert_for_2): Use wide-int interfaces.
26990         (check_array_ref): Likewise.
26991         (search_for_addr_array): Likewise.
26992         (maybe_set_nonzero_bits): Likewise.
26993         (union_ranges): Pass an integer of the correct type instead of
26994         using integer_one_node.
26995         (intersect_ranges): Likewise.
26996         (simplify_truth_ops_using_ranges): Likewise.
26997         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26998         (range_fits_type_p): Likewise.
26999         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
27000         a bool.
27001         (simplify_conversion_using_ranges): Use wide-int interfaces.
27002         (simplify_float_conversion_using_ranges): Likewise.
27003         (vrp_finalize): Likewise.
27004         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27005         (gimple_stringops_transform): Likewise.
27006         * varasm.c (decode_addr_const): Likewise.
27007         (const_hash_1): Likewise.
27008         (const_rtx_hash_1): Likewise
27009         (output_constant): Likewise.
27010         (array_size_for_constructor): Likewise.
27011         (output_constructor_regular_field): Likewise.
27012         (output_constructor_bitfield): Likewise.
27013         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27014         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27015         GENERATOR_FILEs.
27016         * gencheck.c: Define BITS_PER_UNIT.
27017         * wide-int.cc: New.
27018         * wide-int.h: New.
27019         * wide-int-print.cc: New.
27020         * wide-int-print.h: New.
27022 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27024         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27026 2014-05-06  Richard Biener  <rguenther@suse.de>
27028         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27029         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27030         (TODO_verify_all): Adjust.
27031         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27032         TODO_verify_stmts and TODO_verify_rtl_sharing.
27033         * bb-reorder.c: Likewise.
27034         * cfgexpand.c: Likewise.
27035         * cprop.c: Likewise.
27036         * cse.c: Likewise.
27037         * function.c: Likewise.
27038         * fwprop.c: Likewise.
27039         * gcse.c: Likewise.
27040         * gimple-ssa-isolate-paths.c: Likewise.
27041         * gimple-ssa-strength-reduction.c: Likewise.
27042         * ipa-split.c: Likewise.
27043         * loop-init.c: Likewise.
27044         * loop-unroll.c: Likewise.
27045         * lower-subreg.c: Likewise.
27046         * modulo-sched.c: Likewise.
27047         * postreload-gcse.c: Likewise.
27048         * predict.c: Likewise.
27049         * recog.c: Likewise.
27050         * sched-rgn.c: Likewise.
27051         * store-motion.c: Likewise.
27052         * tracer.c: Likewise.
27053         * trans-mem.c: Likewise.
27054         * tree-call-cdce.c: Likewise.
27055         * tree-cfg.c: Likewise.
27056         * tree-cfgcleanup.c: Likewise.
27057         * tree-complex.c: Likewise.
27058         * tree-eh.c: Likewise.
27059         * tree-emutls.c: Likewise.
27060         * tree-if-conv.c: Likewise.
27061         * tree-into-ssa.c: Likewise.
27062         * tree-loop-distribution.c: Likewise.
27063         * tree-object-size.c: Likewise.
27064         * tree-parloops.c: Likewise.
27065         * tree-pass.h: Likewise.
27066         * tree-sra.c: Likewise.
27067         * tree-ssa-ccp.c: Likewise.
27068         * tree-ssa-copy.c: Likewise.
27069         * tree-ssa-copyrename.c: Likewise.
27070         * tree-ssa-dce.c: Likewise.
27071         * tree-ssa-dom.c: Likewise.
27072         * tree-ssa-dse.c: Likewise.
27073         * tree-ssa-forwprop.c: Likewise.
27074         * tree-ssa-ifcombine.c: Likewise.
27075         * tree-ssa-loop-ch.c: Likewise.
27076         * tree-ssa-loop-ivcanon.c: Likewise.
27077         * tree-ssa-loop.c: Likewise.
27078         * tree-ssa-math-opts.c: Likewise.
27079         * tree-ssa-phiopt.c: Likewise.
27080         * tree-ssa-phiprop.c: Likewise.
27081         * tree-ssa-pre.c: Likewise.
27082         * tree-ssa-reassoc.c: Likewise.
27083         * tree-ssa-sink.c: Likewise.
27084         * tree-ssa-strlen.c: Likewise.
27085         * tree-ssa-tail-merge.c: Likewise.
27086         * tree-ssa-uncprop.c: Likewise.
27087         * tree-switch-conversion.c: Likewise.
27088         * tree-tailcall.c: Likewise.
27089         * tree-vect-generic.c: Likewise.
27090         * tree-vectorizer.c: Likewise.
27091         * tree-vrp.c: Likewise.
27092         * tsan.c: Likewise.
27093         * var-tracking.c: Likewise.
27094         * bt-load.c: Likewise.
27095         * cfgcleanup.c: Likewise.
27096         * combine-stack-adj.c: Likewise.
27097         * combine.c: Likewise.
27098         * compare-elim.c: Likewise.
27099         * config/epiphany/resolve-sw-modes.c: Likewise.
27100         * config/i386/i386.c: Likewise.
27101         * config/mips/mips.c: Likewise.
27102         * config/s390/s390.c: Likewise.
27103         * config/sh/sh_treg_combine.cc: Likewise.
27104         * config/sparc/sparc.c: Likewise.
27105         * dce.c: Likewise.
27106         * dse.c: Likewise.
27107         * final.c: Likewise.
27108         * ifcvt.c: Likewise.
27109         * mode-switching.c: Likewise.
27110         * passes.c: Likewise.
27111         * postreload.c: Likewise.
27112         * ree.c: Likewise.
27113         * reg-stack.c: Likewise.
27114         * regcprop.c: Likewise.
27115         * regrename.c: Likewise.
27116         * web.c: Likewise.
27118 2014-05-06  Richard Biener  <rguenther@suse.de>
27120         PR middle-end/61070
27121         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27122         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27124 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
27126         PR ipa/60965
27127         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27129 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
27130             Tom de Vries  <tom@codesourcery.com>
27132         * target.def (call_fusage_contains_non_callee_clobbers): New
27133         DEFHOOKPOD.
27134         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27135         Hooks to @menu.
27136         (@node Miscellaneous Register Hooks): New node.
27137         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27138         * doc/tm.texi: Regenerate.
27140 2014-05-05  Marek Polacek  <polacek@redhat.com>
27142         PR driver/61065
27143         * opts.c (common_handle_option): Call error_at instead of warning_at.
27145 2014-05-05  Richard Biener  <rguenther@suse.de>
27147         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27148         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
27149         under the TODO_verify_il umbrella.
27151 2014-05-05  Richard Biener  <rguenther@suse.de>
27153         * passes.c (execute_function_todo): Move TODO_verify_flow under
27154         the TODO_verify_ul umbrella.
27156 2014-05-05  Richard Biener  <rguenther@suse.de>
27158         PR middle-end/61010
27159         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27160         X & CST away from a CST that is the mask of a mode.
27162 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27164         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27165         int argument to enum machine_mode.
27166         (picochip_class_max_nregs): Ditto.
27167         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27168         (picochip_class_max_nregs): Ditto.
27170 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27172         * target.def: Add new target hook.
27173         * doc/tm.texi: Regenerate.
27174         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27175         * targhooks.c (default_keep_leaf_when_profiled): New function.
27177         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27178         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27180 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
27182         PR tree-optimization/60363
27183         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27184         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
27185         (update_destination_phis): New parameter.
27186         (create_edge_and_update_destination_phis): Ditto.
27187         (ssa_fix_duplicate_block_edges): Pass new arguments.
27188         (thread_single_edge): Ditto.
27190 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
27192         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27193         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27194         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27195         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27196         Use RS6000_BTM_HARD_FLOAT.
27197         (BU_MISC_2): Likewise.
27198         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27199         RS6000_BTM_HARD_FLOAT.
27200         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27201         is explicitly used.
27202         (rs6000_invalid_builtin): Add hard floating builtin support.
27203         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27204         hard float builtins.
27205         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27207 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27209         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27210         Add missing function* argument.
27212 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27214         * lra-constraints.c (valid_address_p): Move earlier in file.
27215         Add a constraint argument to the address_info version.
27216         (satisfies_memory_constraint_p): New function.
27217         (satisfies_address_constraint_p): Likewise.
27218         (process_alt_operands, curr_insn_transform): Use them.
27219         (process_address): Pass the constraint to valid_address_p when
27220         checking address operands.
27222 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27224         * config/mips/mips.c (mips_isa_rev): New variable.
27225         (mips_set_architecture): Set it.
27226         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27227         from mips_isa_rev.
27228         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27229         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27230         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27231         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27232         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27233         conditions in terms of mips_isa_rev.
27234         (mips_isa_rev): Declare.
27236 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27238         * config/sh/sh-mem.cc: Use tabs instead of spaces.
27239         (prob_unlikely, prob_likely): Make variables const.
27241 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
27243         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27245 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27247         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27249 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27251         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27252         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27253         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27254         functions.
27255         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27256         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27257         sh_pass_in_reg_p.
27258         Replace usage of ROUND_REG with sh_round_reg.
27259         Use CEIL instead of ROUND_ADVANCE.
27261 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27263         PR target/61026
27264         * config/sh/sh.c: Include stdlib headers before everything else.
27266 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
27268         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27269         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27270         (gimplify_adjust_omp_clauses): Simd region is never
27271         directly nested in combined parallel.  Instead, for linear
27272         with copyin/copyout, if in combined for simd loop, make decl
27273         firstprivate/lastprivate on OMP_FOR.
27274         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27275         expand_omp_for_static_chunk): When setting endvar, also set
27276         fd->loop.v to the same value.
27278 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27280         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27282 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
27284         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27285         expression.
27287 2014-05-02  Marek Polacek  <polacek@redhat.com>
27289         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27291 2014-05-02  Kito Cheng  <kito@0xlab.org>
27293         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27294         to a C expression marco.
27295         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27296         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27297         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27298         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27299         HONOR_REG_ALLOC_ORDER.
27300         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27302 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27304         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27306 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27308         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27310 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27312         * tree-if-conv.c (is_cond_scalar_reduction): New function.
27313         (convert_scalar_cond_reduction): Likewise.
27314         (predicate_scalar_phi): Add recognition and transformation
27315         of simple conditioanl reduction to be vectorizable.
27317 2014-05-01  Marek Polacek  <polacek@redhat.com>
27319         PR c/43245
27320         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27322 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
27324         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27325         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27326         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27327         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27328         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27329         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27330         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27331         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27333 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
27335         * config/arc/arc.opt (mlra): Move comment above option name
27336         to avoid mis-parsing as language options.
27338 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27340         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27341         * config/sol2.h: ... here.
27342         * config/sol2-10.h: Remove.
27344         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27345         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27346         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27347         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27348         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27349         * config/sol2.h: ... here.
27350         (SECTION_NAME_FORMAT): Don't redefine.
27351         (STARTFILE_ARCH32_SPEC): Rename to ...
27352         (STARTFILE_ARCH_SPEC): ... this.
27353         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27354         * config/sparc/sol2.h: ... here.
27355         (SECTION_NAME_FORMAT): Don't undef.
27356         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27357         (SUBTARGET_EXTRA_SPECS): Remove.
27358         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27360         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27361         (MD_STARTFILE_PREFIX): Remove.
27362         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27363         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27364         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27365         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27366         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27367         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27368         * config/i386/sol2.h: ... here.
27369         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27370         * config/i386/sol2-bi.h: Remove.
27371         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27372         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27374         * config/i386/t-sol2-64: Rename to ...
27375         * config/i386/t-sol2: ... this.
27376         * config/sparc/t-sol2-64: Rename to ...
27377         * config/sparc/t-sol2: ... this.
27379         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27380         sol2_tm_file_head, sol2_tm_file_tail.
27381         Include ${cpu_type}/sol2.h before sol2.h.
27382         Remove sol2-10.h.
27383         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27384         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27385         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27386         Reflect i386/t-sol2-64 renaming.
27387         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27388         Reflect sparc/t-sol2-64 renaming.
27390 2014-04-30  Richard Biener  <rguenther@suse.de>
27392         * passes.c (execute_function_todo): Move TODO_verify_stmts
27393         and TODO_verify_ssa under the TODO_verify_il umbrella.
27394         * tree-ssa.h (verify_ssa): Adjust prototype.
27395         * tree-ssa.c (verify_ssa): Add parameter to tell whether
27396         we should verify SSA operands.
27397         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27398         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27399         whether we should verify whether not throwing stmts have EH info.
27400         * graphite-scop-detection.c (create_sese_edges): Adjust.
27401         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27402         * tree-eh.c (lower_try_finally_switch): Do not add the
27403         default case label twice.
27405 2014-04-30  Marek Polacek  <polacek@redhat.com>
27407         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27408         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27409         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27410         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27412 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27414         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27415         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27416         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27417         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27418         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27419         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27420         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27421         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27423 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
27425         * tree-cfg.c (dump_function_to_file): Dump the return type of
27426         functions, in a line to itself before the function body, mimicking
27427         the layout of a C function.
27429 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
27431         PR tree-optimization/60971
27432         * tree-tailcall.c (process_assignment): Reject conversions which
27433         reduce precision.
27435 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27437         * calls.c (initialize_argument_information): Always treat
27438         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27439         (expand_call): Likewise.
27440         (emit_library_call_calue_1): Likewise.
27441         * expr.c (PUSH_ARGS_REVERSED): Do not define.
27442         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27443         code accordingly.
27445 2014-04-29  Nick Clifton  <nickc@redhat.com>
27447         * config/msp430/msp430.md (umulsidi): Fix typo.
27448         (mulhisi3): Enable even inside interrupt handlers.
27449         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27450         bigger return address pushed in large mode.
27452 2014-04-29  Nick Clifton  <nickc@redhat.com>
27454         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27455         (arc_init_reg_tables): Use a machine_mode enum to iterate over
27456         available modes.
27457         * config/m32r/m32r.c (init_reg_tables): Likewise.
27458         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27459         enum to hold the modes.
27461 2014-04-29  Richard Biener  <rguenther@suse.de>
27463         * dominance.c (free_dominance_info): Add overload with
27464         function parameter.
27465         (dom_info_state): Likewise.
27466         (dom_info_available_p): Likewise.
27467         * basic-block.h (free_dominance_info, dom_info_state,
27468         dom_info_available_p): Declare overloads.
27469         * passes.c (execute_function_todo): Verify that verifiers
27470         don't change dominator info state.  Drop dominator info
27471         for IPA pass invocations.
27472         * cgraph.c (release_function_body): Restore asserts that
27473         dominator information is released.
27475 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
27477         * doc/invoke.texi: Fix typo.
27478         * tree-vrp.c: Fix typos.
27479         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27481 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27483         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27485 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27487         * config/aarch64/aarch64-builtins.c
27488         (aarch64_types_storestruct_lane_qualifiers): New.
27489         (TYPES_STORESTRUCT_LANE): Likewise.
27490         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27491         (st3_lane): Likewise.
27492         (st4_lane): Likewise.
27493         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27494         (vec_store_lanesci_lane<mode>): Likewise.
27495         (vec_store_lanesxi_lane<mode>): Likewise.
27496         (aarch64_st2_lane<VQ:mode>): Likewise.
27497         (aarch64_st3_lane<VQ:mode>): Likewise.
27498         (aarch64_st4_lane<VQ:mode>): Likewise.
27499         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27500         * config/aarch64/arm_neon.h
27501         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27502         use new macro arguments.
27503         (__ST3_LANE_FUNC): Likewise.
27504         (__ST4_LANE_FUNC): Likewise.
27505         * config/aarch64/iterators.md (V_TWO_ELEM): New.
27506         (V_THREE_ELEM): Likewise.
27507         (V_FOUR_ELEM): Likewise.
27509 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
27511         * doc/gimple.texi: Replace the description of the now-defunct
27512         union gimple_statement_d with a diagram showing the
27513         gimple_statement_base class hierarchy and its relationships to
27514         the GSS_ and GIMPLE_ enums.
27516 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27518         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27519         * config/aarch64/aarch64.c
27520         (aarch64_cannot_change_mode_class): Weaken conditions.
27521         (aarch64_modes_tieable_p): New.
27522         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27524 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
27526         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27527         (loadsync_<mode>): Change mode.
27528         (load_quadpti, store_quadpti): New.
27529         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27530         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27532 2014-04-28  Martin Jambor  <mjambor@suse.cz>
27534         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27535         same alias type as the original statement.
27536         (subreplacement_assignment_data): New type.
27537         (handle_unscalarized_data_in_subtree): New type of parameter,
27538         generate new memory accesses with same alias type as the original
27539         statement.
27540         (load_assign_lhs_subreplacements): Likewise.
27541         (sra_modify_constructor_assign): Generate new memory accesses with
27542         same alias type as the original statement.
27544 2014-04-28  Richard Biener  <rguenther@suse.de>
27546         * tree-pass.h (TODO_verify_il): Define.
27547         (TODO_verify_all): Complete properly.
27548         * passes.c (execute_function_todo): Move existing loop-closed
27549         SSA verification under TODO_verify_il.
27550         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27551         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27552         Fix tree sharing issue.
27554 2014-04-28  Richard Biener  <rguenther@suse.de>
27556         PR middle-end/60092
27557         * builtins.def (DEF_C11_BUILTIN): Add.
27558         (BUILT_IN_ALIGNED_ALLOC): Likewise.
27559         * coretypes.h (enum function_class): Add function_c11_misc.
27560         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27561         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27562         (call_may_clobber_ref_p_1): Likewise.
27563         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27564         (mark_all_reaching_defs_necessary_1): Likewise.
27565         (propagate_necessity): Likewise.
27566         (eliminate_unnecessary_stmts): Likewise.
27567         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27569 2014-04-28  Richard Biener  <rguenther@suse.de>
27571         * tree-vrp.c (vrp_var_may_overflow): Remove.
27572         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27573         with overflow immediately bump to one before that value and
27574         let iteration figure out overflow status.
27576 2014-04-28  Richard Biener  <rguenther@suse.de>
27578         * configure.ac: Do valgrind header checks unconditionally.
27579         Add --enable-valgrind-annotations.
27580         * system.h: Guard valgrind header inclusion with
27581         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27582         * alloc-pool.c (pool_alloc, pool_free): Use
27583         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27584         to guard possibly dead code.
27585         * config.in: Regenerated.
27586         * configure: Likewise.
27588 2014-04-28  Jeff Law  <law@redhat.com>
27590         PR tree-optimization/60902
27591         * tree-ssa-threadedge.c
27592         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27593         over real defs when invalidating outputs from statements that do not
27594         produce useful outputs for threading.
27596 2014-04-28  Richard Biener  <rguenther@suse.de>
27598         PR tree-optimization/60979
27599         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27600         SCOPs that end in a block with a successor with abnormal
27601         predecessors.
27603 2014-04-28  Richard Biener  <rguenther@suse.de>
27605         * tree-pass.h (execute_pass_list): Adjust prototype.
27606         * passes.c (pass_manager::execute_early_local_passes): Adjust.
27607         (do_per_function): Change callback signature, push all actual
27608         work to the callbals.
27609         (do_per_function_toporder): Likewise.
27610         (execute_function_dump): Adjust.
27611         (execute_function_todo): Likewise.
27612         (clear_last_verified): Likewise.
27613         (verify_curr_properties): Likewise.
27614         (update_properties_after_pass): Likewise.
27615         (execute_pass_list_1): Split out from ...
27616         (execute_pass_list): ... here.  Adjust.
27617         (execute_ipa_pass_list): Likewise.
27618         * cgraphunit.c (cgraph_add_new_function): Adjust.
27619         (analyze_function): Likewise.
27620         (expand_function): Likewise.
27621         * cgraph.c (release_function_body): Free dominance info
27622         here instead of asserting it was magically freed elsewhere.
27624 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27626         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27627         * configure: Regenerate.
27628         * config/sparc/sparc.opt (muser-mode): New option.
27629         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27630         for LEON3.
27631         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27632         * doc/invoke.texi (SPARC options): Document -muser-mode.
27634 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
27636         * cselib.c (find_slot_memmode): Delete.
27637         (cselib_hasher): Change compare_type to a struct.
27638         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
27639         constants.
27640         (preserve_constants_and_equivs): Adjust for new compare_type.
27641         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
27642         (wrap_constant): Delete.
27643         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27645 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27647         * doc/install.texi (Building with profile feedback): Remove
27648         outdated sentence.
27650 2014-04-26  Tom de Vries  <tom@codesourcery.com>
27652         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27653         array accesses.
27655 2014-04-25  Cary Coutant  <ccoutant@google.com>
27657         PR debug/60929
27658         * dwarf2out.c (should_move_die_to_comdat): A type definition
27659         can contain a subprogram definition, but don't move it to a
27660         comdat unit.
27661         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27662         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27663         from original DIE.
27664         (clone_tree_hash): Rename to...
27665         (clone_tree_partial): ...this; change callers.  Copy
27666         DW_TAG_subprogram DIEs as declarations.
27667         (copy_decls_walk): Don't copy children of a declaration into a
27668         type unit.
27670 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
27672         PR target/60969
27673         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27674         alternative 12.
27676 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
27678         * config/arm/predicates.md (call_insn_operand): Add long_call check.
27679         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27680         reg for long_call.
27681         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27682         restriction.
27684 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27686         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27688 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27690         PR tree-optimization/60930
27691         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
27692         creating a multiply candidate by folding two constant
27693         multiplicands when the result overflows.
27695 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
27697         PR tree-optimization/60960
27698         * tree-vect-generic.c (expand_vector_operation): Only call
27699         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27701 2014-04-25  Tom de Vries  <tom@codesourcery.com>
27703         * expr.c (clobber_reg_mode): New function.
27704         * expr.h (clobber_reg): New function.
27706 2014-04-25  Tom de Vries  <tom@codesourcery.com>
27708         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27709         clobbers.
27711 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
27712             Tom de Vries  <tom@codesourcery.com>
27714         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27715         handle.
27716         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27717         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27718         new argument to find_all_hard_reg_sets call.
27720 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27722         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27723         Use HOST_WIDE_INT_C for mask literal.
27724         (aarch_rev16_shleft_mask_imm_p): Likewise.
27726 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
27728         PR target/60941
27729         * config/sparc/sparc.md (ashlsi3_extend): Delete.
27731 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
27733         PR preprocessor/56540
27734         * config/i386/i386-c.c (ix86_target_macros): Define
27735         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27737 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27739         * configure.ac (tga_func): Remove.
27740         (LIB_TLS_SPEC): Remove.
27741         * configure: Regenerate.
27742         * config.in: Regenerate.
27743         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27745 2014-04-25  Richard Biener  <rguenther@suse.de>
27747         PR ipa/60912
27748         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27749         call stmt use/clobber sets during stmt walk instead of
27750         walking the possibly incomplete set of caller edges.
27752 2014-04-25  Richard Biener  <rguenther@suse.de>
27754         PR ipa/60911
27755         * passes.c (apply_ipa_transforms): Inline into only caller ...
27756         (execute_one_pass): ... here.  Properly bring in function
27757         bodies for nodes we want to apply IPA transforms to.
27759 2014-04-24  Cong Hou  <congh@google.com>
27761         PR tree-optimization/60896
27762         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27763         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27764         (vect_mark_pattern_stmts): Set the def type of all statements in
27765         PATTERN_DEF_SEQ as vect_internal_def.
27767 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27769         * doc/extend.texi (PowerPC Built-in Functions): Document new
27770         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27771         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27773         * config/rs6000/predicates.md (const_0_to_3_operand): New
27774         predicate to match 0..3 integer constants.
27776         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27777         to support adding miscellaneous builtin functions.
27778         (BU_DFP_MISC_2): Likewise.
27779         (BU_P7_MISC_1): Likewise.
27780         (BU_P7_MISC_2): Likewise.
27781         (BU_P8V_MISC_3): Likewise.
27782         (BU_MISC_1): Likewise.
27783         (BU_MISC_2): Likewise.
27784         (DIVWE): Add extended divide builtin functions.
27785         (DIVWEO): Likewise.
27786         (DIVWEU): Likewise.
27787         (DIVWEUO): Likewise.
27788         (DIVDE): Likewise.
27789         (DIVDEO): Likewise.
27790         (DIVDEU): Likewise.
27791         (DIVDEUO): Likewise.
27792         (DXEX): Add decimal floating-point builtin functions.
27793         (DXEXQ): Likewise.
27794         (DDEDPD): Likewise.
27795         (DDEDPDQ): Likewise.
27796         (DENBCD): Likewise.
27797         (DENBCDQ): Likewise.
27798         (DIEX): Likewise.
27799         (DIEXQ): Likewise.
27800         (DSCLI): Likewise.
27801         (DSCLIQ): Likewise.
27802         (DSCRI): Likewise.
27803         (DSCRIQ): Likewise.
27804         (CDTBCD): Add new BCD builtin functions.
27805         (CBCDTD): Likewise.
27806         (ADDG6S): Likewise.
27807         (BCDADD): Likewise.
27808         (BCDADD_LT): Likewise.
27809         (BCDADD_EQ): Likewise.
27810         (BCDADD_GT): Likewise.
27811         (BCDADD_OV): Likewise.
27812         (BCDSUB): Likewise.
27813         (BCDSUB_LT): Likewise.
27814         (BCDSUB_EQ): Likewise.
27815         (BCDSUB_GT): Likewise.
27816         (BCDSUB_OV): Likewise.
27817         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27818         (UNPACK_TD): Likewise.
27819         (PACK_TF): Likewise.
27820         (UNPACK_TF): Likewise.
27821         (UNPACK_TF_0): Likewise.
27822         (UNPACK_TF_1): Likewise.
27823         (PACK_V1TI): Likewise.
27824         (UNPACK_V1TI): Likewise.
27826         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27827         support for decimal floating point builtin functions.
27828         (rs6000_expand_ternop_builtin): Add checks for the new builtin
27829         functions that take constant arguments.
27830         (rs6000_invalid_builtin): Add decimal floating point builtin support.
27831         (rs6000_init_builtins): Setup long double, _Decimal64, and
27832         _Decimal128 types for new builtin functions.
27833         (builtin_function_type): Set the unsigned flags appropriately for
27834         the new builtin functions.
27835         (rs6000_opt_masks): Add support for decimal floating point builtin
27836         functions.
27838         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27839         floating point builtin functions.
27840         (RS6000_BTM_COMMON): Likewise.
27841         (RS6000_BTI_long_double): Likewise.
27842         (RS6000_BTI_dfloat64): Likewise.
27843         (RS6000_BTI_dfloat128): Likewise.
27844         (long_double_type_internal_node): Likewise.
27845         (dfloat64_type_internal_node): Likewise.
27846         (dfloat128_type_internal_node): Likewise.
27848         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27849         2.07 bcd arithmetic instructions.
27850         (UNSPEC_BCDSUB): Likewise.
27851         (UNSPEC_BCD_OVERFLOW): Likewise.
27852         (UNSPEC_BCD_ADD_SUB): Likewise.
27853         (bcd_add_sub): Likewise.
27854         (BCD_TEST): Likewise.
27855         (bcd<bcd_add_sub>): Likewise.
27856         (bcd<bcd_add_sub>_test): Likewise.
27857         (bcd<bcd_add_sub>_test2): Likewise.
27858         (bcd<bcd_add_sub>_<code>): Likewise.
27859         (peephole2 for combined bcd ops): Likewise.
27861         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27862         decimal floating point builtin functions.
27863         (UNSPEC_DENBCD): Likewise.
27864         (UNSPEC_DXEX): Likewise.
27865         (UNSPEC_DIEX): Likewise.
27866         (UNSPEC_DSCLI): Likewise.
27867         (UNSPEC_DSCRI): Likewise.
27868         (D64_D128): Likewise.
27869         (dfp_suffix): Likewise.
27870         (dfp_ddedpd_<mode>): Likewise.
27871         (dfp_denbcd_<mode>): Likewise.
27872         (dfp_dxex_<mode>): Likewise.
27873         (dfp_diex_<mode>): Likewise.
27874         (dfp_dscli_<mode>): Likewise.
27875         (dfp_dscri_<mode>): Likewise.
27877         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27878         builtin functions.
27879         (UNSPEC_CDTBCD): Likewise.
27880         (UNSPEC_CBCDTD): Likewise.
27881         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27882         (UNSPEC_DIVEO): Likewise.
27883         (UNSPEC_DIVEU): Likewise.
27884         (UNSPEC_DIVEUO): Likewise.
27885         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27886         pack/unpack 128-bit types.
27887         (UNSPEC_PACK_128BIT): Likewise.
27888         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27889         (udiv<mode>3): Use idiv_ldiv mode attribute.
27890         (div<mode>3): Likewise.
27891         (addg6s): Add new BCD builtin functions.
27892         (cdtbcd): Likewise.
27893         (cbcdtd): Likewise.
27894         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27895         (div_extend): Likewise.
27896         (div<div_extend>_<mode>"): Likewise.
27897         (FP128_64): Add support for new builtin functions to pack/unpack
27898         128-bit types.
27899         (unpack<mode>): Likewise.
27900         (unpacktf_0): Likewise.
27901         (unpacktf_1): Likewise.
27902         (unpack<mode>_dm): Likewise.
27903         (unpack<mode>_nodm): Likewise.
27904         (pack<mode>): Likewise.
27905         (unpackv1ti): Likewise.
27906         (packv1ti): Likewise.
27908 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
27910         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27911         is disabled.
27913 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
27915         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27916         * gimplify.c (omp_is_private): Change last argument's type to int.
27917         Only diagnose lastprivate if the simd argument is 1, only diagnose
27918         linear if the simd argument is 2.
27919         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
27920         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
27921         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
27922         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27923         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27924         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27925         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27926         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27927         * tree-nested.c (convert_nonlocal_omp_clauses,
27928         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27930 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
27932         PR target/60822
27933         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27934         operand 1.
27936 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
27938         * flag-types.h (enum ivar_visibility): Add.
27940 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
27942         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27943         function * argument.
27945 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
27947         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27949 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
27950             Tom de Vries  <tom@codesourcery.com>
27952         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27953         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27954         reg-note.
27955         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27956         * emit-rtl.c (try_split): Same.
27958 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
27959             Tom de Vries  <tom@codesourcery.com>
27961         * common.opt (fuse-caller-save): New option.
27963 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
27965         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27966         elements for big-endian.
27968 2014-04-24  Richard Biener  <rguenther@suse.de>
27970         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27971         during TER and instead use the sepops interface for expanding
27972         non-GIMPLE_SINGLE_RHS.
27974 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27976         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27977         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27979 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27981         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27982         assembler 64-bit option.
27983         * configure: Regenerate.
27985 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27987         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27988         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27989         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27990         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27991         (TARGET_CRYPTO): Take TARGET_SIMD into account.
27993 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27995         * config/aarch64/aarch64-builtins.c
27996         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27997         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27998         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27999         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28000         builtins.
28001         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28002         (Vrevsuff): New mode attribute.
28004 2014-04-24  Terry Guo  <terry.guo@arm.com>
28006         * config/arm/arm.h (machine_function): Define variable
28007         after_arm_reorg here.
28008         * config/arm/arm.c (after_arm_reorg): Remove the definition.
28009         (arm_split_constant): Update the way to access variable
28010         after_arm_reorg.
28011         (arm_reorg): Ditto.
28012         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28014 2014-04-23  Tom de Vries  <tom@codesourcery.com>
28016         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28018 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
28020         * is-a.h: Update comments to reflect the following changes to the
28021         "pointerness" of the API, making the template parameter match the
28022         return type, allowing use of is-a.h with typedefs of pointers.
28023         (is_a_helper::cast): Return a T rather then a pointer to a T, so
28024         that the return type matches the parameter to the is_a_helper.
28025         (as_a): Likewise.
28026         (dyn_cast): Likewise.
28028         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28029         pointer from the is-a.h API.
28031         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28032         (is_a_helper <cgraph_node *>::test): ...this, matching change to
28033         is-a.h API.
28034         (is_a_helper <varpool_node>::test): Likewise, convert to...
28035         (is_a_helper <varpool_node *>::test): ...this.
28037         (varpool_first_variable): Update for removal of implicit pointer
28038         from the is-a.h API.
28039         (varpool_next_variable): Likewise.
28040         (varpool_first_static_initializer): Likewise.
28041         (varpool_next_static_initializer): Likewise.
28042         (varpool_first_defined_variable): Likewise.
28043         (varpool_next_defined_variable): Likewise.
28044         (cgraph_first_defined_function): Likewise.
28045         (cgraph_next_defined_function): Likewise.
28046         (cgraph_first_function): Likewise.
28047         (cgraph_next_function): Likewise.
28048         (cgraph_first_function_with_gimple_body): Likewise.
28049         (cgraph_next_function_with_gimple_body): Likewise.
28050         (cgraph_alias_target): Likewise.
28051         (varpool_alias_target): Likewise.
28052         (cgraph_function_or_thunk_node): Likewise.
28053         (varpool_variable_node): Likewise.
28054         (symtab_real_symbol_p): Likewise.
28055         * cgraphunit.c (referred_to_p): Likewise.
28056         (analyze_functions): Likewise.
28057         (handle_alias_pairs): Likewise.
28058         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28059         * gimple-ssa.h (gimple_vuse_op): Likewise.
28060         (gimple_vdef_op): Likewise.
28061         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28062         * gimple.c (gimple_build_asm_1): Likewise.
28063         (gimple_build_try): Likewise.
28064         (gimple_build_resx): Likewise.
28065         (gimple_build_eh_dispatch): Likewise.
28066         (gimple_build_omp_for): Likewise.
28067         (gimple_omp_for_set_clauses): Likewise.
28069         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28070         (is_a_helper <gimple_statement_asm *>::test): ...this.
28071         (is_a_helper <gimple_statement_bind>::test): Convert to...
28072         (is_a_helper <gimple_statement_bind *>::test): ...this.
28073         (is_a_helper <gimple_statement_call>::test): Convert to...
28074         (is_a_helper <gimple_statement_call *>::test): ...this.
28075         (is_a_helper <gimple_statement_catch>::test): Convert to...
28076         (is_a_helper <gimple_statement_catch *>::test): ...this.
28077         (is_a_helper <gimple_statement_resx>::test): Convert to...
28078         (is_a_helper <gimple_statement_resx *>::test): ...this.
28079         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28080         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28081         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28082         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28083         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28084         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28085         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28086         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28087         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28088         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28089         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28090         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28091         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28092         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28093         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28094         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28095         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28096         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28097         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28098         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28099         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28100         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28101         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28102         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28103         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28104         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28105         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28106         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28107         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28108         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28109         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28110         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28111         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28112         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28113         (is_a_helper <gimple_statement_phi>::test): Convert to...
28114         (is_a_helper <gimple_statement_phi *>::test): ...this.
28115         (is_a_helper <gimple_statement_transaction>::test): Convert to...
28116         (is_a_helper <gimple_statement_transaction *>::test): ...this.
28117         (is_a_helper <gimple_statement_try>::test): Convert to...
28118         (is_a_helper <gimple_statement_try *>::test): ...this.
28119         (is_a_helper <gimple_statement_wce>::test): Convert to...
28120         (is_a_helper <gimple_statement_wce *>::test): ...this.
28121         (is_a_helper <const gimple_statement_asm>::test): Convert to...
28122         (is_a_helper <const gimple_statement_asm *>::test): ...this.
28123         (is_a_helper <const gimple_statement_bind>::test): Convert to...
28124         (is_a_helper <const gimple_statement_bind *>::test): ...this.
28125         (is_a_helper <const gimple_statement_call>::test): Convert to...
28126         (is_a_helper <const gimple_statement_call *>::test): ...this.
28127         (is_a_helper <const gimple_statement_catch>::test): Convert to...
28128         (is_a_helper <const gimple_statement_catch *>::test): ...this.
28129         (is_a_helper <const gimple_statement_resx>::test): Convert to...
28130         (is_a_helper <const gimple_statement_resx *>::test): ...this.
28131         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28132         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28133         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28134         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28135         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28136         Convert to...
28137         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28138         ...this.
28139         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28140         Convert to...
28141         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28142         ...this.
28143         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28144         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28145         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28146         to...
28147         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28148         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28149         to...
28150         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28151         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28152         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28153         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28154         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28155         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28156         to...
28157         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28158         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28159         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28160         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28161         to...
28162         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28163         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28164         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28165         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28166         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28167         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28168         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28169         (is_a_helper <const gimple_statement_phi>::test): Convert to...
28170         (is_a_helper <const gimple_statement_phi *>::test): ...this.
28171         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28172         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28173         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28174         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28175         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28176         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28177         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28178         to...
28179         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28180         ...this.
28181         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28182         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28184         (gimple_use_ops): Update for removal of implicit pointer from the
28185         is-a.h API.
28186         (gimple_set_use_ops): Likewise.
28187         (gimple_vuse): Likewise.
28188         (gimple_vdef): Likewise.
28189         (gimple_vuse_ptr): Likewise.
28190         (gimple_vdef_ptr): Likewise.
28191         (gimple_set_vuse): Likewise.
28192         (gimple_set_vdef): Likewise.
28193         (gimple_omp_return_set_lhs): Likewise.
28194         (gimple_omp_return_lhs): Likewise.
28195         (gimple_omp_return_lhs_ptr): Likewise.
28196         (gimple_call_fntype): Likewise.
28197         (gimple_call_set_fntype): Likewise.
28198         (gimple_call_set_internal_fn): Likewise.
28199         (gimple_call_use_set): Likewise.
28200         (gimple_call_clobber_set): Likewise.
28201         (gimple_bind_vars): Likewise.
28202         (gimple_bind_set_vars): Likewise.
28203         (gimple_bind_body_ptr): Likewise.
28204         (gimple_bind_set_body): Likewise.
28205         (gimple_bind_add_stmt): Likewise.
28206         (gimple_bind_block): Likewise.
28207         (gimple_bind_set_block): Likewise.
28208         (gimple_asm_ninputs): Likewise.
28209         (gimple_asm_noutputs): Likewise.
28210         (gimple_asm_nclobbers): Likewise.
28211         (gimple_asm_nlabels): Likewise.
28212         (gimple_asm_input_op): Likewise.
28213         (gimple_asm_input_op_ptr): Likewise.
28214         (gimple_asm_output_op): Likewise.
28215         (gimple_asm_output_op_ptr): Likewise.
28216         (gimple_asm_set_output_op): Likewise.
28217         (gimple_asm_clobber_op): Likewise.
28218         (gimple_asm_set_clobber_op): Likewise.
28219         (gimple_asm_label_op): Likewise.
28220         (gimple_asm_set_label_op): Likewise.
28221         (gimple_asm_string): Likewise.
28222         (gimple_catch_types): Likewise.
28223         (gimple_catch_types_ptr): Likewise.
28224         (gimple_catch_handler_ptr): Likewise.
28225         (gimple_catch_set_types): Likewise.
28226         (gimple_catch_set_handler): Likewise.
28227         (gimple_eh_filter_types): Likewise.
28228         (gimple_eh_filter_types_ptr): Likewise.
28229         (gimple_eh_filter_failure_ptr): Likewise.
28230         (gimple_eh_filter_set_types): Likewise.
28231         (gimple_eh_filter_set_failure): Likewise.
28232         (gimple_eh_must_not_throw_fndecl): Likewise.
28233         (gimple_eh_must_not_throw_set_fndecl): Likewise.
28234         (gimple_eh_else_n_body_ptr): Likewise.
28235         (gimple_eh_else_e_body_ptr): Likewise.
28236         (gimple_eh_else_set_n_body): Likewise.
28237         (gimple_eh_else_set_e_body): Likewise.
28238         (gimple_try_eval_ptr): Likewise.
28239         (gimple_try_cleanup_ptr): Likewise.
28240         (gimple_try_set_eval): Likewise.
28241         (gimple_try_set_cleanup): Likewise.
28242         (gimple_wce_cleanup_ptr): Likewise.
28243         (gimple_wce_set_cleanup): Likewise.
28244         (gimple_phi_capacity): Likewise.
28245         (gimple_phi_num_args): Likewise.
28246         (gimple_phi_result): Likewise.
28247         (gimple_phi_result_ptr): Likewise.
28248         (gimple_phi_set_result): Likewise.
28249         (gimple_phi_arg): Likewise.
28250         (gimple_phi_set_arg): Likewise.
28251         (gimple_resx_region): Likewise.
28252         (gimple_resx_set_region): Likewise.
28253         (gimple_eh_dispatch_region): Likewise.
28254         (gimple_eh_dispatch_set_region): Likewise.
28255         (gimple_omp_critical_name): Likewise.
28256         (gimple_omp_critical_name_ptr): Likewise.
28257         (gimple_omp_critical_set_name): Likewise.
28258         (gimple_omp_for_clauses): Likewise.
28259         (gimple_omp_for_clauses_ptr): Likewise.
28260         (gimple_omp_for_set_clauses): Likewise.
28261         (gimple_omp_for_collapse): Likewise.
28262         (gimple_omp_for_index): Likewise.
28263         (gimple_omp_for_index_ptr): Likewise.
28264         (gimple_omp_for_set_index): Likewise.
28265         (gimple_omp_for_initial): Likewise.
28266         (gimple_omp_for_initial_ptr): Likewise.
28267         (gimple_omp_for_set_initial): Likewise.
28268         (gimple_omp_for_final): Likewise.
28269         (gimple_omp_for_final_ptr): Likewise.
28270         (gimple_omp_for_set_final): Likewise.
28271         (gimple_omp_for_incr): Likewise.
28272         (gimple_omp_for_incr_ptr): Likewise.
28273         (gimple_omp_for_set_incr): Likewise.
28274         (gimple_omp_for_pre_body_ptr): Likewise.
28275         (gimple_omp_for_set_pre_body): Likewise.
28276         (gimple_omp_parallel_clauses): Likewise.
28277         (gimple_omp_parallel_clauses_ptr): Likewise.
28278         (gimple_omp_parallel_set_clauses): Likewise.
28279         (gimple_omp_parallel_child_fn): Likewise.
28280         (gimple_omp_parallel_child_fn_ptr): Likewise.
28281         (gimple_omp_parallel_set_child_fn): Likewise.
28282         (gimple_omp_parallel_data_arg): Likewise.
28283         (gimple_omp_parallel_data_arg_ptr): Likewise.
28284         (gimple_omp_parallel_set_data_arg): Likewise.
28285         (gimple_omp_task_clauses): Likewise.
28286         (gimple_omp_task_clauses_ptr): Likewise.
28287         (gimple_omp_task_set_clauses): Likewise.
28288         (gimple_omp_task_child_fn): Likewise.
28289         (gimple_omp_task_child_fn_ptr): Likewise.
28290         (gimple_omp_task_set_child_fn): Likewise.
28291         (gimple_omp_task_data_arg): Likewise.
28292         (gimple_omp_task_data_arg_ptr): Likewise.
28293         (gimple_omp_task_set_data_arg): Likewise.
28294         (gimple_omp_taskreg_clauses): Likewise.
28295         (gimple_omp_taskreg_clauses_ptr): Likewise.
28296         (gimple_omp_taskreg_set_clauses): Likewise.
28297         (gimple_omp_taskreg_child_fn): Likewise.
28298         (gimple_omp_taskreg_child_fn_ptr): Likewise.
28299         (gimple_omp_taskreg_set_child_fn): Likewise.
28300         (gimple_omp_taskreg_data_arg): Likewise.
28301         (gimple_omp_taskreg_data_arg_ptr): Likewise.
28302         (gimple_omp_taskreg_set_data_arg): Likewise.
28303         (gimple_omp_task_copy_fn): Likewise.
28304         (gimple_omp_task_copy_fn_ptr): Likewise.
28305         (gimple_omp_task_set_copy_fn): Likewise.
28306         (gimple_omp_task_arg_size): Likewise.
28307         (gimple_omp_task_arg_size_ptr): Likewise.
28308         (gimple_omp_task_set_arg_size): Likewise.
28309         (gimple_omp_task_arg_align): Likewise.
28310         (gimple_omp_task_arg_align_ptr): Likewise.
28311         (gimple_omp_task_set_arg_align): Likewise.
28312         (gimple_omp_single_clauses): Likewise.
28313         (gimple_omp_single_clauses_ptr): Likewise.
28314         (gimple_omp_single_set_clauses): Likewise.
28315         (gimple_omp_target_clauses): Likewise.
28316         (gimple_omp_target_clauses_ptr): Likewise.
28317         (gimple_omp_target_set_clauses): Likewise.
28318         (gimple_omp_target_child_fn): Likewise.
28319         (gimple_omp_target_child_fn_ptr): Likewise.
28320         (gimple_omp_target_set_child_fn): Likewise.
28321         (gimple_omp_target_data_arg): Likewise.
28322         (gimple_omp_target_data_arg_ptr): Likewise.
28323         (gimple_omp_target_set_data_arg): Likewise.
28324         (gimple_omp_teams_clauses): Likewise.
28325         (gimple_omp_teams_clauses_ptr): Likewise.
28326         (gimple_omp_teams_set_clauses): Likewise.
28327         (gimple_omp_sections_clauses): Likewise.
28328         (gimple_omp_sections_clauses_ptr): Likewise.
28329         (gimple_omp_sections_set_clauses): Likewise.
28330         (gimple_omp_sections_control): Likewise.
28331         (gimple_omp_sections_control_ptr): Likewise.
28332         (gimple_omp_sections_set_control): Likewise.
28333         (gimple_omp_for_set_cond): Likewise.
28334         (gimple_omp_for_cond): Likewise.
28335         (gimple_omp_atomic_store_set_val): Likewise.
28336         (gimple_omp_atomic_store_val): Likewise.
28337         (gimple_omp_atomic_store_val_ptr): Likewise.
28338         (gimple_omp_atomic_load_set_lhs): Likewise.
28339         (gimple_omp_atomic_load_lhs): Likewise.
28340         (gimple_omp_atomic_load_lhs_ptr): Likewise.
28341         (gimple_omp_atomic_load_set_rhs): Likewise.
28342         (gimple_omp_atomic_load_rhs): Likewise.
28343         (gimple_omp_atomic_load_rhs_ptr): Likewise.
28344         (gimple_omp_continue_control_def): Likewise.
28345         (gimple_omp_continue_control_def_ptr): Likewise.
28346         (gimple_omp_continue_set_control_def): Likewise.
28347         (gimple_omp_continue_control_use): Likewise.
28348         (gimple_omp_continue_control_use_ptr): Likewise.
28349         (gimple_omp_continue_set_control_use): Likewise.
28350         (gimple_transaction_body_ptr): Likewise.
28351         (gimple_transaction_label): Likewise.
28352         (gimple_transaction_label_ptr): Likewise.
28353         (gimple_transaction_set_body): Likewise.
28354         (gimple_transaction_set_label): Likewise.
28356         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28357         * ipa-inline-analysis.c (inline_write_summary): Likewise.
28358         * ipa-ref.c (ipa_record_reference): Likewise.
28359         * ipa-reference.c (analyze_function): Likewise.
28360         (ipa_reference_write_optimization_summary): Likewise.
28361         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28362         (address_taken_from_non_vtable_p): Likewise.
28363         (comdat_can_be_unshared_p_1): Likewise.
28364         * lto-cgraph.c (lto_output_ref): Likewise.
28365         (add_references): Likewise.
28366         (compute_ltrans_boundary): Likewise.
28367         (output_symtab): Likewise.
28368         (input_ref): Likewise.
28369         (input_cgraph_1): Likewise.
28370         (output_cgraph_opt_summary): Likewise.
28371         * lto-streamer-out.c (lto_output): Likewise.
28372         (output_symbol_p): Likewise.
28373         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28374         (lsei_start_function_in_partition): Likewise.
28375         (lsei_next_variable_in_partition): Likewise.
28376         (lsei_start_variable_in_partition): Likewise.
28377         * symtab.c (insert_to_assembler_name_hash): Likewise.
28378         (unlink_from_assembler_name_hash): Likewise.
28379         (symtab_unregister_node): Likewise.
28380         (symtab_remove_node): Likewise.
28381         (dump_symtab_node): Likewise.
28382         (verify_symtab_base): Likewise.
28383         (verify_symtab_node): Likewise.
28384         (symtab_make_decl_local): Likewise.
28385         (symtab_alias_ultimate_target): Likewise.
28386         (symtab_resolve_alias): Likewise.
28387         (symtab_get_symbol_partitioning_class): Likewise.
28388         * tree-phinodes.c (allocate_phi_node): Likewise.
28389         (reserve_phi_args_for_new_edge): Likewise.
28390         (remove_phi_args): Likewise.
28391         * varpool.c (varpool_node_for_asm): Likewise.
28392         (varpool_remove_unreferenced_decls): Likewise.
28394 2014-04-23  Jeff Law  <law@redhat.com>
28396         PR tree-optimization/60902
28397         * tree-ssa-threadedge.c
28398         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28399         invalidate outputs from statements that do not produce useful
28400         outputs for threading.
28402 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
28404         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28405         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28406         machine descriptions for Stack Smashing Protector.
28408 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
28410         * aarch64.md (<optab>_rol<mode>3): New pattern.
28411         (<optab>_rolsi3_uxtw): Likewise.
28412         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28414 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
28416         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28417         (arm_cortex_a12_tune): Likewise.
28419 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28421         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28423 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28425         * config/arm/arm.md (arm_rev16si2): New pattern.
28426         (arm_rev16si2_alt): Likewise.
28427         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28429 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28431         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28432         (rev16<mode>2_alt): Likewise.
28433         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28434         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28435         (aarch_rev16_shleft_mask_imm_p): Likewise.
28436         (aarch_rev16_p_1): Likewise.
28437         (aarch_rev16_p): Likewise.
28438         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28439         (aarch_rev16_shright_mask_imm_p): Likewise.
28440         (aarch_rev16_shleft_mask_imm_p): Likewise.
28442 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28444         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28445         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28446         rev cost.
28447         (cortex_a53_extra_costs): Likewise.
28448         (cortex_a57_extra_costs): Likewise.
28449         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28450         (cortexa7_extra_costs): Likewise.
28451         (cortexa8_extra_costs): Likewise.
28452         (cortexa12_extra_costs): Likewise.
28453         (cortexa15_extra_costs): Likewise.
28454         (v7m_extra_costs): Likewise.
28455         (arm_new_rtx_costs): Handle BSWAP.
28457 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28459         * config/arm/arm.c (cortexa8_extra_costs): New table.
28460         (arm_cortex_a8_tune): New tuning struct.
28461         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28463 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28465         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28467 2014-04-23  Richard Biener  <rguenther@suse.de>
28469         * Makefile.in (OBJS): Remove loop-unswitch.o.
28470         * tree-pass.h (make_pass_rtl_unswitch): Remove.
28471         * passes.def (pass_rtl_unswitch): Likewise.
28472         * loop-init.c (gate_rtl_unswitch): Likewise.
28473         (rtl_unswitch): Likewise.
28474         (pass_data_rtl_unswitch): Likewise.
28475         (pass_rtl_unswitch): Likewise.
28476         (make_pass_rtl_unswitch): Likewise.
28477         * rtl.h (reversed_condition): Likewise.
28478         (compare_and_jump_seq): Likewise.
28479         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28480         and make static.
28481         * loop-unroll.c (compare_and_jump_seq): Likewise.
28483 2014-04-23  Richard Biener  <rguenther@suse.de>
28485         PR tree-optimization/60903
28486         * tree-ssa-loop-im.c (analyze_memory_references): Remove
28487         commented code block.
28488         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28489         loop flags to newly created BBs and edges.
28491 2014-04-23  Nick Clifton  <nickc@redhat.com>
28493         * config/msp430/msp430.c (msp430_handle_option): Move function
28494         to msp430-common.c
28495         (msp430_option_override): Simplify mcu and mcpu option handling.
28496         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
28497         support for -mhwmult command line option.
28498         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
28499         -mhwmult command line option.
28500         (msp430_hwmult_enabled): Delete.
28501         (msp43o_output_labelref): Add support for -mhwmult command line option.
28502         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28503         (umulsidi3): Likewise.
28504         * config/msp430/msp430.opt (mmcu): Add Report attribute.
28505         (mcpu, mlarge, msmall): Likewise.
28506         (mhwmult): New option.
28507         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28508         prototype.
28509         (msp430_is_f5_mcu): Remove prototype.
28510         (msp430_use_f5_series_hwmult): Add prototype.
28511         * config/msp430/msp430-opts.h: New file.
28512         * common/config/msp430: New directory.
28513         * common/config/msp430/msp430-common.c: New file.
28514         * config.gcc (msp430): Remove target_has_targetm_common.
28515         * doc/invoke.texi: Document -mhwmult command line option.
28517 2014-04-23  Nick Clifton  <nickc@redhat.com>
28519         * config/i386/cygwin.h (ENDFILE_SPEC): Include
28520         default-manifest.o if it can be found in the search path.
28521         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28523 2014-04-23  Terry Guo  <terry.guo@arm.com>
28525         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28527 2014-04-23  Richard Biener  <rguenther@suse.de>
28529         PR middle-end/60895
28530         * tree-inline.c (declare_return_variable): Use mark_addressable.
28532 2014-04-23  Richard Biener  <rguenther@suse.de>
28534         PR middle-end/60891
28535         * loop-init.c (loop_optimizer_init): Make sure to apply
28536         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28538 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28540         PR sanitizer/60275
28541         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28542         New options.
28543         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28544         if flag_sanitize_undefined_trap_on_error.
28545         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28546         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28547         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28548         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28549         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28550         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28551         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28552         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28553         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28554         * ubsan.c (ubsan_instrument_unreachable): Return
28555         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28556         (ubsan_expand_null_ifn): Emit __builtin_trap ()
28557         if flag_sanitize_undefined_trap_on_error and
28558         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28559         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28560         instrument_bool_enum_load): Emit __builtin_trap () if
28561         flag_sanitize_undefined_trap_on_error and
28562         __builtin_handle_*_abort () if !flag_sanitize_recover.
28563         * doc/invoke.texi (-fsanitize-recover,
28564         -fsanitize-undefined-trap-on-error): Document.
28566 2014-04-22  Christian Bruel  <christian.bruel@st.com>
28568         * config/sh/sh.md (mov<mode>): Replace movQIHI.
28569         Force immediates to SImode.
28571 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
28573         * config/nios2/nios2.md (UNSPEC_ROUND): New.
28574         (lroundsfsi2): New.
28575         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28576         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28577         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28578         (nios2_fpu_insn): Add entry for round.
28579         (N2FPU_NO_ERRNO_P): Define.
28580         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28581         flag_errno_math.
28582         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28584 2014-04-22  Richard Henderson  <rth@redhat.com>
28586         * config/aarch64/aarch64 (addti3, subti3): New expanders.
28587         (add<GPI>3_compare0): Remove leading * from name.
28588         (add<GPI>3_carryin): Likewise.
28589         (sub<GPI>3_compare0): Likewise.
28590         (sub<GPI>3_carryin): Likewise.
28591         (<su_optab>mulditi3): New expander.
28592         (multi3): New expander.
28593         (madd<GPI>): Remove leading * from name.
28595 2014-04-22  Martin Jambor  <mjambor@suse.cz>
28597         * cgraphclones.c (cgraph_function_versioning): Copy
28598         ipa_transforms_to_apply instead of asserting it is empty.
28600 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
28602         PR target/60868
28603         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28604         on count_exp to get mode.
28606 2014-04-22  Andrew Pinski  <apinski@cavium.com>
28608         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28609         Handle TLS for ILP32.
28610         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28611         (tlsie_small_<mode>): this and handle PTR.
28612         (tlsie_small_sidi): New pattern.
28613         (tlsle_small): Change to an expand to handle ILP32.
28614         (tlsle_small_<mode>): New pattern.
28615         (tlsdesc_small): Rename to ...
28616         (tlsdesc_small_<mode>): this and handle PTR.
28618 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28620         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28622 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28624         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28625         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28626         (aarch64_types_signed_poly_qualifiers): Likewise.
28627         (aarch64_types_unsigned_signed_qualifiers): Likewise.
28628         (aarch64_types_poly_signed_qualifiers): Likewise.
28629         (TYPES_REINTERP_SS): Type macro added.
28630         (TYPES_REINTERP_SU): Likewise.
28631         (TYPES_REINTERP_SP): Likewise.
28632         (TYPES_REINTERP_US): Likewise.
28633         (TYPES_REINTERP_PS): Likewise.
28634         (aarch64_fold_builtin): New expression folding added.
28635         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28636         Declarations removed.
28637         (REINTERP_SS): Declarations added.
28638         (REINTERP_US): Likewise.
28639         (REINTERP_PS): Likewise.
28640         (REINTERP_SU): Likewise.
28641         (REINTERP_SP): Likewise.
28642         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28643         (vreinterpretq_p8_f64): Likewise.
28644         (vreinterpret_p16_f64): Likewise.
28645         (vreinterpretq_p16_f64): Likewise.
28646         (vreinterpret_f32_f64): Likewise.
28647         (vreinterpretq_f32_f64): Likewise.
28648         (vreinterpret_f64_f32): Likewise.
28649         (vreinterpret_f64_p8): Likewise.
28650         (vreinterpret_f64_p16): Likewise.
28651         (vreinterpret_f64_s8): Likewise.
28652         (vreinterpret_f64_s16): Likewise.
28653         (vreinterpret_f64_s32): Likewise.
28654         (vreinterpret_f64_s64): Likewise.
28655         (vreinterpret_f64_u8): Likewise.
28656         (vreinterpret_f64_u16): Likewise.
28657         (vreinterpret_f64_u32): Likewise.
28658         (vreinterpret_f64_u64): Likewise.
28659         (vreinterpretq_f64_f32): Likewise.
28660         (vreinterpretq_f64_p8): Likewise.
28661         (vreinterpretq_f64_p16): Likewise.
28662         (vreinterpretq_f64_s8): Likewise.
28663         (vreinterpretq_f64_s16): Likewise.
28664         (vreinterpretq_f64_s32): Likewise.
28665         (vreinterpretq_f64_s64): Likewise.
28666         (vreinterpretq_f64_u8): Likewise.
28667         (vreinterpretq_f64_u16): Likewise.
28668         (vreinterpretq_f64_u32): Likewise.
28669         (vreinterpretq_f64_u64): Likewise.
28670         (vreinterpret_s64_f64): Likewise.
28671         (vreinterpretq_s64_f64): Likewise.
28672         (vreinterpret_u64_f64): Likewise.
28673         (vreinterpretq_u64_f64): Likewise.
28674         (vreinterpret_s8_f64): Likewise.
28675         (vreinterpretq_s8_f64): Likewise.
28676         (vreinterpret_s16_f64): Likewise.
28677         (vreinterpretq_s16_f64): Likewise.
28678         (vreinterpret_s32_f64): Likewise.
28679         (vreinterpretq_s32_f64): Likewise.
28680         (vreinterpret_u8_f64): Likewise.
28681         (vreinterpretq_u8_f64): Likewise.
28682         (vreinterpret_u16_f64): Likewise.
28683         (vreinterpretq_u16_f64): Likewise.
28684         (vreinterpret_u32_f64): Likewise.
28685         (vreinterpretq_u32_f64): Likewise.
28687 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28689         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28690         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28691         (vreinterpret_p8_s8): Likewise.
28692         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28693         (vreinterpret_p8_s16): Likewise.
28694         (vreinterpret_p8_s32): Likewise.
28695         (vreinterpret_p8_s64): Likewise.
28696         (vreinterpret_p8_f32): Likewise.
28697         (vreinterpret_p8_u8): Likewise.
28698         (vreinterpret_p8_u16): Likewise.
28699         (vreinterpret_p8_u32): Likewise.
28700         (vreinterpret_p8_u64): Likewise.
28701         (vreinterpret_p8_p16): Likewise.
28702         (vreinterpretq_p8_s8): Likewise.
28703         (vreinterpretq_p8_s16): Likewise.
28704         (vreinterpretq_p8_s32): Likewise.
28705         (vreinterpretq_p8_s64): Likewise.
28706         (vreinterpretq_p8_f32): Likewise.
28707         (vreinterpretq_p8_u8): Likewise.
28708         (vreinterpretq_p8_u16): Likewise.
28709         (vreinterpretq_p8_u32): Likewise.
28710         (vreinterpretq_p8_u64): Likewise.
28711         (vreinterpretq_p8_p16): Likewise.
28712         (vreinterpret_p16_s8): Likewise.
28713         (vreinterpret_p16_s16): Likewise.
28714         (vreinterpret_p16_s32): Likewise.
28715         (vreinterpret_p16_s64): Likewise.
28716         (vreinterpret_p16_f32): Likewise.
28717         (vreinterpret_p16_u8): Likewise.
28718         (vreinterpret_p16_u16): Likewise.
28719         (vreinterpret_p16_u32): Likewise.
28720         (vreinterpret_p16_u64): Likewise.
28721         (vreinterpret_p16_p8): Likewise.
28722         (vreinterpretq_p16_s8): Likewise.
28723         (vreinterpretq_p16_s16): Likewise.
28724         (vreinterpretq_p16_s32): Likewise.
28725         (vreinterpretq_p16_s64): Likewise.
28726         (vreinterpretq_p16_f32): Likewise.
28727         (vreinterpretq_p16_u8): Likewise.
28728         (vreinterpretq_p16_u16): Likewise.
28729         (vreinterpretq_p16_u32): Likewise.
28730         (vreinterpretq_p16_u64): Likewise.
28731         (vreinterpretq_p16_p8): Likewise.
28732         (vreinterpret_f32_s8): Likewise.
28733         (vreinterpret_f32_s16): Likewise.
28734         (vreinterpret_f32_s32): Likewise.
28735         (vreinterpret_f32_s64): Likewise.
28736         (vreinterpret_f32_u8): Likewise.
28737         (vreinterpret_f32_u16): Likewise.
28738         (vreinterpret_f32_u32): Likewise.
28739         (vreinterpret_f32_u64): Likewise.
28740         (vreinterpret_f32_p8): Likewise.
28741         (vreinterpret_f32_p16): Likewise.
28742         (vreinterpretq_f32_s8): Likewise.
28743         (vreinterpretq_f32_s16): Likewise.
28744         (vreinterpretq_f32_s32): Likewise.
28745         (vreinterpretq_f32_s64): Likewise.
28746         (vreinterpretq_f32_u8): Likewise.
28747         (vreinterpretq_f32_u16): Likewise.
28748         (vreinterpretq_f32_u32): Likewise.
28749         (vreinterpretq_f32_u64): Likewise.
28750         (vreinterpretq_f32_p8): Likewise.
28751         (vreinterpretq_f32_p16): Likewise.
28752         (vreinterpret_s64_s8): Likewise.
28753         (vreinterpret_s64_s16): Likewise.
28754         (vreinterpret_s64_s32): Likewise.
28755         (vreinterpret_s64_f32): Likewise.
28756         (vreinterpret_s64_u8): Likewise.
28757         (vreinterpret_s64_u16): Likewise.
28758         (vreinterpret_s64_u32): Likewise.
28759         (vreinterpret_s64_u64): Likewise.
28760         (vreinterpret_s64_p8): Likewise.
28761         (vreinterpret_s64_p16): Likewise.
28762         (vreinterpretq_s64_s8): Likewise.
28763         (vreinterpretq_s64_s16): Likewise.
28764         (vreinterpretq_s64_s32): Likewise.
28765         (vreinterpretq_s64_f32): Likewise.
28766         (vreinterpretq_s64_u8): Likewise.
28767         (vreinterpretq_s64_u16): Likewise.
28768         (vreinterpretq_s64_u32): Likewise.
28769         (vreinterpretq_s64_u64): Likewise.
28770         (vreinterpretq_s64_p8): Likewise.
28771         (vreinterpretq_s64_p16): Likewise.
28772         (vreinterpret_u64_s8): Likewise.
28773         (vreinterpret_u64_s16): Likewise.
28774         (vreinterpret_u64_s32): Likewise.
28775         (vreinterpret_u64_s64): Likewise.
28776         (vreinterpret_u64_f32): Likewise.
28777         (vreinterpret_u64_u8): Likewise.
28778         (vreinterpret_u64_u16): Likewise.
28779         (vreinterpret_u64_u32): Likewise.
28780         (vreinterpret_u64_p8): Likewise.
28781         (vreinterpret_u64_p16): Likewise.
28782         (vreinterpretq_u64_s8): Likewise.
28783         (vreinterpretq_u64_s16): Likewise.
28784         (vreinterpretq_u64_s32): Likewise.
28785         (vreinterpretq_u64_s64): Likewise.
28786         (vreinterpretq_u64_f32): Likewise.
28787         (vreinterpretq_u64_u8): Likewise.
28788         (vreinterpretq_u64_u16): Likewise.
28789         (vreinterpretq_u64_u32): Likewise.
28790         (vreinterpretq_u64_p8): Likewise.
28791         (vreinterpretq_u64_p16): Likewise.
28792         (vreinterpret_s8_s16): Likewise.
28793         (vreinterpret_s8_s32): Likewise.
28794         (vreinterpret_s8_s64): Likewise.
28795         (vreinterpret_s8_f32): Likewise.
28796         (vreinterpret_s8_u8): Likewise.
28797         (vreinterpret_s8_u16): Likewise.
28798         (vreinterpret_s8_u32): Likewise.
28799         (vreinterpret_s8_u64): Likewise.
28800         (vreinterpret_s8_p8): Likewise.
28801         (vreinterpret_s8_p16): Likewise.
28802         (vreinterpretq_s8_s16): Likewise.
28803         (vreinterpretq_s8_s32): Likewise.
28804         (vreinterpretq_s8_s64): Likewise.
28805         (vreinterpretq_s8_f32): Likewise.
28806         (vreinterpretq_s8_u8): Likewise.
28807         (vreinterpretq_s8_u16): Likewise.
28808         (vreinterpretq_s8_u32): Likewise.
28809         (vreinterpretq_s8_u64): Likewise.
28810         (vreinterpretq_s8_p8): Likewise.
28811         (vreinterpretq_s8_p16): Likewise.
28812         (vreinterpret_s16_s8): Likewise.
28813         (vreinterpret_s16_s32): Likewise.
28814         (vreinterpret_s16_s64): Likewise.
28815         (vreinterpret_s16_f32): Likewise.
28816         (vreinterpret_s16_u8): Likewise.
28817         (vreinterpret_s16_u16): Likewise.
28818         (vreinterpret_s16_u32): Likewise.
28819         (vreinterpret_s16_u64): Likewise.
28820         (vreinterpret_s16_p8): Likewise.
28821         (vreinterpret_s16_p16): Likewise.
28822         (vreinterpretq_s16_s8): Likewise.
28823         (vreinterpretq_s16_s32): Likewise.
28824         (vreinterpretq_s16_s64): Likewise.
28825         (vreinterpretq_s16_f32): Likewise.
28826         (vreinterpretq_s16_u8): Likewise.
28827         (vreinterpretq_s16_u16): Likewise.
28828         (vreinterpretq_s16_u32): Likewise.
28829         (vreinterpretq_s16_u64): Likewise.
28830         (vreinterpretq_s16_p8): Likewise.
28831         (vreinterpretq_s16_p16): Likewise.
28832         (vreinterpret_s32_s8): Likewise.
28833         (vreinterpret_s32_s16): Likewise.
28834         (vreinterpret_s32_s64): Likewise.
28835         (vreinterpret_s32_f32): Likewise.
28836         (vreinterpret_s32_u8): Likewise.
28837         (vreinterpret_s32_u16): Likewise.
28838         (vreinterpret_s32_u32): Likewise.
28839         (vreinterpret_s32_u64): Likewise.
28840         (vreinterpret_s32_p8): Likewise.
28841         (vreinterpret_s32_p16): Likewise.
28842         (vreinterpretq_s32_s8): Likewise.
28843         (vreinterpretq_s32_s16): Likewise.
28844         (vreinterpretq_s32_s64): Likewise.
28845         (vreinterpretq_s32_f32): Likewise.
28846         (vreinterpretq_s32_u8): Likewise.
28847         (vreinterpretq_s32_u16): Likewise.
28848         (vreinterpretq_s32_u32): Likewise.
28849         (vreinterpretq_s32_u64): Likewise.
28850         (vreinterpretq_s32_p8): Likewise.
28851         (vreinterpretq_s32_p16): Likewise.
28852         (vreinterpret_u8_s8): Likewise.
28853         (vreinterpret_u8_s16): Likewise.
28854         (vreinterpret_u8_s32): Likewise.
28855         (vreinterpret_u8_s64): Likewise.
28856         (vreinterpret_u8_f32): Likewise.
28857         (vreinterpret_u8_u16): Likewise.
28858         (vreinterpret_u8_u32): Likewise.
28859         (vreinterpret_u8_u64): Likewise.
28860         (vreinterpret_u8_p8): Likewise.
28861         (vreinterpret_u8_p16): Likewise.
28862         (vreinterpretq_u8_s8): Likewise.
28863         (vreinterpretq_u8_s16): Likewise.
28864         (vreinterpretq_u8_s32): Likewise.
28865         (vreinterpretq_u8_s64): Likewise.
28866         (vreinterpretq_u8_f32): Likewise.
28867         (vreinterpretq_u8_u16): Likewise.
28868         (vreinterpretq_u8_u32): Likewise.
28869         (vreinterpretq_u8_u64): Likewise.
28870         (vreinterpretq_u8_p8): Likewise.
28871         (vreinterpretq_u8_p16): Likewise.
28872         (vreinterpret_u16_s8): Likewise.
28873         (vreinterpret_u16_s16): Likewise.
28874         (vreinterpret_u16_s32): Likewise.
28875         (vreinterpret_u16_s64): Likewise.
28876         (vreinterpret_u16_f32): Likewise.
28877         (vreinterpret_u16_u8): Likewise.
28878         (vreinterpret_u16_u32): Likewise.
28879         (vreinterpret_u16_u64): Likewise.
28880         (vreinterpret_u16_p8): Likewise.
28881         (vreinterpret_u16_p16): Likewise.
28882         (vreinterpretq_u16_s8): Likewise.
28883         (vreinterpretq_u16_s16): Likewise.
28884         (vreinterpretq_u16_s32): Likewise.
28885         (vreinterpretq_u16_s64): Likewise.
28886         (vreinterpretq_u16_f32): Likewise.
28887         (vreinterpretq_u16_u8): Likewise.
28888         (vreinterpretq_u16_u32): Likewise.
28889         (vreinterpretq_u16_u64): Likewise.
28890         (vreinterpretq_u16_p8): Likewise.
28891         (vreinterpretq_u16_p16): Likewise.
28892         (vreinterpret_u32_s8): Likewise.
28893         (vreinterpret_u32_s16): Likewise.
28894         (vreinterpret_u32_s32): Likewise.
28895         (vreinterpret_u32_s64): Likewise.
28896         (vreinterpret_u32_f32): Likewise.
28897         (vreinterpret_u32_u8): Likewise.
28898         (vreinterpret_u32_u16): Likewise.
28899         (vreinterpret_u32_u64): Likewise.
28900         (vreinterpret_u32_p8): Likewise.
28901         (vreinterpret_u32_p16): Likewise.
28902         (vreinterpretq_u32_s8): Likewise.
28903         (vreinterpretq_u32_s16): Likewise.
28904         (vreinterpretq_u32_s32): Likewise.
28905         (vreinterpretq_u32_s64): Likewise.
28906         (vreinterpretq_u32_f32): Likewise.
28907         (vreinterpretq_u32_u8): Likewise.
28908         (vreinterpretq_u32_u16): Likewise.
28909         (vreinterpretq_u32_u64): Likewise.
28910         (vreinterpretq_u32_p8): Likewise.
28911         (vreinterpretq_u32_p16): Likewise.
28913 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28915         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28916         Pattern extended.
28917         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28918         (sqabs): Likewise.
28919         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28920         (vqnegd_s64): Likewise.
28921         (vqabs_s64): Likewise.
28922         (vqabsd_s64): Likewise.
28924 2014-04-22  Richard Henderson  <rth@redhat.com>
28926         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28927         computation to the top of the loop.
28929 2014-04-22  Renlin  <renlin.li@arm.com>
28930             Jiong Wang  <jiong.wang@arm.com>
28932         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28933         * config/aarch64/aarch64.c (aarch64_layout_frame)
28934         (aarch64_initial_elimination_offset): Likewise.
28936 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28938         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28939         Fix indentation.
28941 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
28943         * machmode.h (bitwise_mode_for_mode): Declare.
28944         * stor-layout.h (bitwise_type_for_mode): Likewise.
28945         * stor-layout.c (bitwise_mode_for_mode): New function.
28946         (bitwise_type_for_mode): Likewise.
28947         * builtins.c (fold_builtin_memory_op): Use it instead of
28948         int_mode_for_mode and build_nonstandard_integer_type.
28950 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28952         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28953         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28954         (*-*-solaris2*): Simplify.
28955         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28956         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28957         *-*-solaris2.9* handling.
28959         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28960         as bug.
28961         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28962         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28963         handling, simplify.
28964         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28965         * configure: Regenerate.
28967         * config/i386/sol2-9.h: Remove.
28969         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28970         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28971         Remove Solaris 9 references.
28973 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
28975         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28976         (floatuns<GPI:mode><GPF:mode>2): Remove.
28977         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28978         and floatuns conversions.
28979         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28980         and floatuns conversions.
28981         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28982         (w1,w2): New mode attributes for inequal width conversions.
28984 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
28986         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28987         the output asm format.
28989 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28991         * config/aarch64/aarch64-simd.md
28992         (aarch64_cm<optab>di): Always split.
28993         (*aarch64_cm<optab>di): New.
28994         (aarch64_cmtstdi): Always split.
28995         (*aarch64_cmtstdi): New.
28997 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28999         PR tree-optimization/60823
29000         * omp-low.c (ipa_simd_modify_function_body): Go through
29001         all SSA_NAMEs and for those refering to vector arguments
29002         which are going to be replaced adjust SSA_NAME_VAR and,
29003         if it is a default definition, change it into a non-default
29004         definition assigned at the beginning of function from new_decl.
29005         (ipa_simd_modify_stmt_ops): Rewritten.
29006         * tree-dfa.c (set_ssa_default_def): When removing default def,
29007         check for NULL loc instead of NULL *loc.
29009 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29011         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29012         restrictions on core registers for DImode values in Thumb2.
29014 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29016         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29017         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29019 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29021         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29022         (*iordi_notzesidi_di): Likewise.
29023         (*iordi_notsesidi_di): Likewise.
29025 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29027         * config/arm/arm-protos.h (tune_params): New struct members.
29028         * config/arm/arm.c: Initialise tune_params per processor.
29029         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29030         for speed, based on new tune_params.
29032 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29034         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29035         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29036         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29037         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29038         * config/aarch64/arm_neon.h (vrnd_f64): Added.
29039         (vrnda_f64): Likewise.
29040         (vrndi_f64): Likewise.
29041         (vrndm_f64): Likewise.
29042         (vrndn_f64): Likewise.
29043         (vrndp_f64): Likewise.
29044         (vrndx_f64): Likewise.
29046 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29048         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29049         GET_MODE_SIZE argument is enum machine_mode.
29051 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29053         PR target/60910
29054         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29055         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29057 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
29059         PR middle-end/60281
29060         * asan.c (asan_emit_stack_protection): Force the base to align to
29061         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
29062         appropriate bits if STRICT_ALIGNMENT.
29063         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29064         when asan is on.
29065         (expand_used_vars): Leave a space in the stack frame for alignment
29066         if STRICT_ALIGNMENT.
29068 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
29070         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29071         than a gimple.
29072         (gimple_store_p): Likewise.
29073         (gimple_assign_load_p): Likewise.
29074         (gimple_assign_cast_p): Likewise.
29075         (gimple_clobber_p): Likewise.
29077         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29078         rather than a gimple.
29079         (gimple_assign_cast_p): Likewise.
29081 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29083         PR target/60735
29084         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29085         If mode is DDmode and TARGET_E500_DOUBLE allow move.
29087         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29088         more debug information for E500 if -mdebug=reg.
29090 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
29092         PR target/60909
29093         * config/i386/i386.c (ix86_expand_builtin)
29094         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29095         register for target RTX.
29096         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29098 2014-04-18  Cong Hou  <congh@google.com>
29100         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29101         the widen-mult pattern by handling two operands with different sizes,
29102         and operands whose size is smaller than half of the result type.
29104 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29106         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29107         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29108         (do_estimate_edge_time): Compute it.
29109         * ipa-inline.c (want_inline_small_function_p): Bypass
29110         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29112 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29114         * ipa-inline.c (spec_rem): New static variable.
29115         (dump_overall_stats): New function.
29116         (dump_inline_stats): New function.
29118 2014-04-18  Richard Henderson  <rth@redhat.com>
29120         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29121         to GET_MODE_SIZE, not a reg_class_t.
29123 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29125         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29126         (vsx_xxmrglw_<mode>): Likewise.
29128 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
29130         PR target/60876
29131         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29132         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29133         (rs6000_init_hard_regno_mode_ok): Likewise.
29135 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
29137         * ipa-inline.c (inline_small_functions): Account only non-cold
29138         functions.
29139         * doc/invoke.texi (inline-unit-growth): Update documentation.
29141 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
29143         * config/rs6000/rs6000.md (addti3, subti3): New.
29145 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29147         PR target/60863
29148         * config/i386/i386.c (ix86_expand_clear): Remove outdated
29149         comment.  Check optimize_insn_for_size_p instead of
29150         optimize_insn_for_speed_p.
29152 2014-04-17  Martin Jambor  <mjambor@suse.cz>
29154         * gimple-iterator.c (gsi_start_edge): New function.
29155         * gimple-iterator.h (gsi_start_edge): Declare.
29156         * tree-sra.c (single_non_eh_succ): New function.
29157         (disqualify_ops_if_throwing_stmt): Renamed to
29158         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
29159         having one non-EH successor BB.
29160         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29161         generate loads into replacements.
29162         (sra_modify_assign): Likewise and and also use the simple path for
29163         such statements.
29164         (sra_modify_function_body): Commit statements on edges.
29166 2014-04-17  Richard Biener  <rguenther@suse.de>
29168         PR middle-end/60849
29169         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29170         comparison results and add clarifying comment.
29172 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29174         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29175         (blank_mode): Initialize it.
29176         (emit_mode_size_inline, emit_mode_nunits_inline,
29177         emit_mode_inner_inline): New functions.
29178         (emit_insn_modes_h): Call them and surround their output with
29179         #if GCC_VERSION >= 4001 ... #endif.
29180         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29181         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29182         mode_* arrays if the argument is __builtin_constant_p.
29183         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29184         is enum machine_mode.
29186 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29188         * passes.c (opt_pass::execute): Adjust.
29189         (pass_manager::execute_pass_mode_switching): Likewise.
29190         (early_local_passes::execute): Likewise.
29191         (execute_one_pass): Pass cfun to the pass's execute method.
29192         * tree-pass.h (opt_pass::execute): Add function * argument.
29193         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29194         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29195         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29196         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29197         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29198         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29199         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29200         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29201         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29202         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29203         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29204         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29205         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29206         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29207         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29208         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29209         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29210         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29211         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29212         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29213         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29214         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29215         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29216         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29217         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29218         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29219         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29220         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29221         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29222         Adjust.
29224 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29226         * passes.c (opt_pass::gate): Take function * argument.
29227         (gate_all_early_local_passes): Merge into
29228         (early_local_passes::gate): this.
29229         (gate_all_early_optimizations): Merge into
29230         (all_early_optimizations::gate): this.
29231         (gate_all_optimizations): Mege into
29232         (all_optimizations::gate): this.
29233         (gate_all_optimizations_g): Merge into
29234         (all_optimizations_g::gate): this.
29235         (gate_rest_of_compilation): Mege into
29236         (rest_of_compilation::gate): this.
29237         (gate_postreload): Merge into
29238         (postreload::gate): this.
29239         (dump_one_pass): Pass cfun to the pass's gate method.
29240         (execute_ipa_summary_passes): Likewise.
29241         (execute_one_pass): Likewise.
29242         (ipa_write_summaries_2): Likewise.
29243         (ipa_write_optimization_summaries_1): Likewise.
29244         (ipa_read_summaries_1): Likewise.
29245         (ipa_read_optimization_summaries_1): Likewise.
29246         (execute_ipa_stmt_fixups): Likewise.
29247         * tree-pass.h (opt_pass::gate): Add function * argument.
29248         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29249         combine-stack-adj.c, combine.c, compare-elim.c,
29250         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29251         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29252         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29253         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
29254         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29255         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29256         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29257         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29258         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29259         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29260         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29261         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29262         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29263         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29264         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29265         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29266         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29267         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29268         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29269         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29270         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29271         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29272         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29273         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29274         var-tracking.c, vtable-verify.c, web.c: Adjust.
29276 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29278         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29279         * configure: Regenerate.
29281 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29283         * passes.c (dump_one_pass): don't check pass->has_gate.
29284         (execute_ipa_summary_passes): Likewise.
29285         (execute_one_pass): Likewise.
29286         (ipa_write_summaries_2): Likewise.
29287         (ipa_write_optimization_summaries_1): Likewise.
29288         (ipa_read_optimization_summaries_1): Likewise.
29289         (execute_ipa_stmt_fixups): Likewise.
29290         * tree-pass.h (pass_data::has_gate): Remove.
29291         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29292         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29293         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29294         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29295         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29296         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29297         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29298         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29299         gimple-low.c, gimple-ssa-isolate-paths.c,
29300         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29301         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29302         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29303         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29304         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29305         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29306         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29307         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29308         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29309         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29310         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29311         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29312         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29313         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29314         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29315         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29316         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29317         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29318         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29319         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29320         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29321         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29322         Adjust.
29324 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29326         * pass_manager.h (pass_manager::register_dump_files_1): Remove
29327         declaration.
29328         * passes.c (pass_manager::register_dump_files_1): Merge into
29329         (pass_manager::register_dump_files): this, and remove its handling of
29330         properties since the pass always has the properties anyway.
29331         (pass_manager::pass_manager): Adjust.
29333 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29335         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29336         * passes.c (pass_manager::register_dump_files_1): Remove dead code
29337         dealing with properties.
29338         (pass_manager::register_dump_files): Adjust.
29340 2014-03-20  Mark Wielaard  <mjw@redhat.com>
29342         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29343         then represent the bound as normal constant value.
29345 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29347         PR target/60847
29348         Forward port from 4.8 branch
29349         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
29351         * config/i386/bmiintrin.h (_blsi_u32): New.
29352         (_blsi_u64): Ditto.
29353         (_blsr_u32): Ditto.
29354         (_blsr_u64): Ditto.
29355         (_blsmsk_u32): Ditto.
29356         (_blsmsk_u64): Ditto.
29357         (_tzcnt_u32): Ditto.
29358         (_tzcnt_u64): Ditto.
29360 2014-04-17  Kito Cheng  <kito@0xlab.org>
29362         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29364 2014-04-17  Richard Biener  <rguenther@suse.de>
29366         PR middle-end/60849
29367         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29368         boolean results for comparisons.
29370 2014-04-17  Richard Biener  <rguenther@suse.de>
29372         PR tree-optimization/60836
29373         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29374         initial PHI args to be gimple values.
29376 2014-04-17  Richard Biener  <rguenther@suse.de>
29378         PR tree-optimization/60841
29379         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29380         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29381         of stmts to SLP build.
29382         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29383         (vect_analyze_slp): Likewise.
29384         (vect_analyze_slp_instance): Likewise.
29385         (vect_build_slp_tree): Limit overall SLP tree growth.
29386         * tree-vectorizer.h (vect_analyze_data_refs,
29387         vect_analyze_slp): Adjust prototypes.
29389 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29391         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29392         Silvermont.
29394 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29396         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29397         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29398         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29399         for TARGET_SLOW_PSHUFB
29401 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29403         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29404         * config/i386/i386.c (intel_cost): Ditto.
29406 2014-04-17  Joey Ye  <joey.ye@arm.com>
29408         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29410 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29412         * opts.c (common_handle_option): Disable -fipa-reference coorectly
29413         with -fuse-profile.
29415 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29417         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29418         (type_all_derivations_known_p): New predicate.
29419         (type_all_ctors_visible_p): New predicate.
29420         (type_possibly_instantiated_p): New predicate.
29421         (get_odr_type): Compute all_derivations_known.
29422         (dump_odr_type): Dump the flag.
29423         (maybe_record_type): Cleanup.
29424         (record_target_from_binfo): Add bases_to_consider array;
29425         record bases for types w/o instances and skip CXX destructor.
29426         (possible_polymorphic_call_targets_1): Add bases_to_consider
29427         and consider_construction parameters; check if type may have instance.
29428         (get_polymorphic_call_info): Set maybe_in_construction to true
29429         when we know nothing.
29430         (record_targets_from_bases): Skip CXX destructors; they are
29431         never called for types in construction.
29432         (possible_polymorphic_call_targets): Do not record target when
29433         type may not have instance.
29435 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29437         PR ipa/60854
29438         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29439         external aliases alive, too.
29441 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
29443         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29444         definition.
29446 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29448         * final.c (compute_alignments): Do not apply loop alignment to a block
29449         falling through to the exit.
29451 2014-04-16  Catherine Moore  <clm@codesourcery.com>
29453         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29454         Adjust constraints for microMIPS store patterns.
29456 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29458         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29460 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29462         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29463         (append_use): Run at -O0.
29464         (append_vdef): Likewise.
29465         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29466         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29468 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
29470         PR tree-optimization/60844
29471         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29472         (propagate_op_to_single_use, remove_visited_stmt_chain,
29473         linearize_expr, repropagate_negates, reassociate_bb): Use it
29474         instead of gsi_remove.
29476 2014-04-16  Martin Jambor  <mjambor@suse.cz>
29478         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29479         ipa_transforms_to_apply.
29480         (cgraph_function_versioning): Assert that old_node has empty
29481         ipa_transforms_to_apply.
29482         * trans-mem.c (ipa_tm_create_version): Likewise.
29483         * tree-inline.c (tree_function_versioning): Do not duplicate
29484         ipa_transforms_to_apply.
29486 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29488         PR target/60817
29489         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29490         x86_64-*-* cases.
29491         Pass necessary as flags on 64-bit Solaris/x86.
29492         Use lowercase relocs for x86_64-*-*.
29493         * configure: Regenerate.
29495 2014-04-15  Jan Hubicka  <jh@suse.cz>
29497         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29498         (maybe_record_node, likely_target_p): Use it.
29500 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29502         PR target/60839
29503         Revert following patch
29505         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29507         PR target/60735
29508         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29509         software floating point or no floating point registers, do not
29510         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
29511         in GPRs that occurs after we tested for GPRs that would never be
29512         true.
29514         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29515         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29516         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
29517         specifically allow DDmode, since that does not use the SPE SIMD
29518         instructions.
29520 2014-03-21  Mark Wielaard  <mjw@redhat.com>
29522         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29523         as unsigned or int depending on type and value used.
29525 2014-04-15  Richard Biener  <rguenther@suse.de>
29527         PR rtl-optimization/56965
29528         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29529         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29530         ... here.
29531         * alias.c (true_dependence_1): Do not call
29532         nonoverlapping_component_refs_p.
29533         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29534         nonoverlapping_component_refs_p.
29535         (indirect_refs_may_alias_p): Likewise.
29537 2014-04-15  Teresa Johnson  <tejohnson@google.com>
29539         * cfg.c (dump_bb_info): Fix flags check.
29540         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29542 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29544         PR rtl-optimization/60663
29545         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29546         avoid 0 cost.
29548 2014-04-15  Richard Biener  <rguenther@suse.de>
29550         * lto-streamer.h (LTO_major_version): Bump to 4.
29552 2014-04-15  Richard Biener  <rguenther@suse.de>
29554         * common.opt (lto_partition_model): New enum.
29555         (flto-partition=): Merge separate options with a single with argument,
29556         add -flto-partition=one support.
29557         * flag-types.h (enum lto_partition_model): Declare.
29558         * opts.c (finish_options): Remove duplicate -flto-partition=
29559         option check.
29560         * lto-wrapper.c (run_gcc): Adjust.
29562 2014-04-15  Richard Biener  <rguenther@suse.de>
29564         * alias.c (ncr_compar): New function.
29565         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29567 2014-04-15  Richard Biener  <rguenther@suse.de>
29569         * alias.c (record_component_aliases): Do not walk BINFOs.
29571 2014-04-15  Richard Biener  <rguenther@suse.de>
29573         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29574         Add struct function argument and adjust.
29575         (find_func_aliases_for_call): Likewise.
29576         (find_func_aliases): Likewise.
29577         (find_func_clobbers): Likewise.
29578         (intra_create_variable_infos): Likewise.
29579         (compute_points_to_sets): Likewise.
29580         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
29582 2014-04-15  Richard Biener  <rguenther@suse.de>
29584         * tree.c (iterative_hash_expr): Use enum tree_code_class
29585         to store TREE_CODE_CLASS.
29586         (tree_block): Likewise.
29587         (tree_set_block): Likewise.
29588         * tree.h (fold_build_pointer_plus_loc): Use
29589         convert_to_ptrofftype_loc.
29591 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
29593         PR plugins/59335
29594         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29595         added in 4.9.
29597 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29599         * cfgloop.h (struct loop): Move force_vectorize down.
29600         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29601         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29602         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29603         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29604         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29605         * tree-core.h (enum annot_expr_kind): Add new kind values.
29606         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29607         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29608         kinds.
29609         * tree.def (ANNOTATE_EXPR): Tweak comment.
29611 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29613         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29614         cxa_pure_virtual).
29616 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
29618         * tree.h (TYPE_IDENTIFIER): Declare.
29619         * tree.c (subrange_type_for_debug_p): Use it.
29620         * godump.c (go_format_type): Likewise.
29621         * dwarf2out.c (is_cxx_auto, modified_type_die,
29622         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29623         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29625 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29627         PR lto/60820
29628         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29630 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
29632         * config/i386/i386.c (examine_argument): Return bool.  Return true if
29633         parameter should be passed in memory.
29634         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29635         (construct_container): Update calls to examine_argument.
29636         (function_arg_advance_64): Ditto.
29637         (return_in_memory_32): Merge with ix86_return_in_memory.
29638         (return_in_memory_64): Ditto.
29639         (return_in_memory_ms_64): Ditto.
29641 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29643         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29644         * coverage.c (coverage_compute_profile_id): Handle externally visible
29645         symbols.
29647 2014-04-14  Martin Jambor  <mjambor@suse.cz>
29649         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29650         DECL_DISREGARD_INLINE_LIMITS functions.
29652 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
29654         PR target/60827
29655         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29657 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
29659         PR target/60827
29660         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29661         optimize_insn_for_speed_p instead of
29662         optimize_function_for_speed_p.
29664 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
29666         * doc/invoke.texi (free): Document AArch64.
29668 2014-04-14  Richard Biener  <rguenther@suse.de>
29670         PR tree-optimization/60042
29671         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29672         (insert_into_preds_of_block): Do not prevent PHI insertion
29673         for REFERENCE exprs here ...
29674         (eliminate_dom_walker::before_dom_children): ... but prevent
29675         their use here under similar conditions when applied to the
29676         IL after PRE optimizations.
29678 2014-04-14  Richard Biener  <rguenther@suse.de>
29680         * passes.def: Move early points-to after early SRA.
29682 2014-04-14  Richard Biener  <rguenther@suse.de>
29684         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29685         check for which sign-changes we allow when forwarding
29686         a converted value into a switch.
29688 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29690         * stor-layout.c (place_field): Finalize non-constant offset for the
29691         field, if any.
29693 2014-04-14  Richard Biener  <rguenther@suse.de>
29695         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29696         as argument.
29697         (expand_switch_using_bit_tests_p): Likewise.
29698         (process_switch): Compute and pass on speed_p based on the
29699         switch stmt.
29700         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29701         optimize_bb_for_speed_p.
29703 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29705         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29706         * function.h (struct function): Rename has_force_vect_loops into
29707         has_force_vectorize_loops.
29708         * lto-streamer-in.c (input_cfg): Adjust for renaming.
29709         (input_struct_function_base): Likewise.
29710         * lto-streamer-out.c (output_cfg): Likewise.
29711         (output_struct_function_base): Likewise.
29712         * omp-low.c (expand_omp_simd): Likewise.
29713         * tree-cfg.c (move_sese_region_to_fn): Likewise.
29714         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29715         (version_loop_for_if_conversion): Likewise.
29716         (tree_if_conversion): Likewise.
29717         (main_tree_if_conversion): Likewise.
29718         (gate_tree_if_conversion): Likewise.
29719         * tree-inline.c (copy_loops): Likewise.
29720         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29721         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29722         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29723         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29724         * tree-vectorizer.c (vectorize_loops): Likewise.
29725         * tree-vectorizer.h (unlimited_cost_model): Likewise.
29727 2014-04-14  Richard Biener  <rguenther@suse.de>
29729         PR lto/60720
29730         * lto-streamer-out.c (wrap_refs): New function.
29731         (lto_output): Wrap symbol references in global initializes in
29732         type-preserving MEM_REFs.
29734 2014-04-14  Christian Bruel  <christian.bruel@st.com>
29736         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29738 2014-04-14  Christian Bruel  <christian.bruel@st.com>
29740         * config/sh/sh.md (setmemqi): New expand pattern.
29741         * config/sh/sh.h (CLEAR_RATIO): Define.
29742         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29743         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29745 2014-04-14  Richard Biener  <rguenther@suse.de>
29747         PR middle-end/55022
29748         * fold-const.c (negate_expr_p): Don't negate directional rounding
29749         division.
29750         (fold_negate_expr): Likewise.
29752 2014-04-14  Richard Biener  <rguenther@suse.de>
29754         PR tree-optimization/59817
29755         PR tree-optimization/60453
29756         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29757         recursion to catch all CHRECs in the scalar evolution and restrict
29758         the predicate for the remains appropriately.
29760 2014-04-12  Catherine Moore  <clm@codesourcery.com>
29762         * config/mips/constraints.md: Add new register constraint "kb".
29763         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29764         (*movhi_internal): Likewise.
29765         (*movqi_internal): Likewise.
29766         * config/mips/mips.h (M16_STORE_REGS): New register class.
29767         (REG_CLASS_NAMES): Add M16_STORE_REGS.
29768         (REG_CLASS_CONTENTS): Likewise.
29769         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29771 2014-04-11  Tobias Burnus  <burnus@net-b.de>
29773         PR c/60194
29774         * doc/invoke.texi (-Wformat-signedness): Document it.
29775         (Wformat=2): Mention that this enables -Wformat-signedness.
29777 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29779         * common/config/epiphany/epiphany-common.c
29780         (epiphany_option_optimization_table): Enable section anchors by
29781         default at -O1 or higher.
29782         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29783         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29784         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29785         carries no extra cost.
29786         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29787         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29788         * config/epiphany/predicates.md (memclob_operand): New predicate.
29789         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29790         Use memclob_operand predicate and X constraint for operand 3.
29792 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29794         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29795         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29796         its operands.
29798 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29800         PR rtl-optimization/60651
29801         * mode-switching.c (optimize_mode_switching): Make sure to emit
29802         sets of a lower numbered entity before sets of a higher numbered
29803         entity to a mode of the same or lower priority.
29804         When creating a seginfo for a basic block that starts with a code
29805         label, move the insertion point past the code label.
29806         (new_seginfo): Document and enforce requirement that
29807         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29808         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29809         * doc/tm.texi: Regenerate.
29811 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29813         PR target/60811
29814         * config/arc/arc.c (arc_save_restore): Fix assert typo.
29816 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29818         * BASE-VER: Set to 4.10.0.
29820 2014-04-11  Tobias Burnus  <burnus@net-b.de>
29822         PR other/59055
29823         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29824         * doc/gcc.texi (Service): Update description in the @menu
29825         * doc/invoke.texi (Option Summary): Remove misplaced and
29826         duplicated @menu.
29828 2014-04-11  Steve Ellcey  <sellcey@mips.com>
29829             Jakub Jelinek  <jakub@redhat.com>
29831         PR middle-end/60556
29832         * expr.c (convert_move): Use emit_store_flag_force instead of
29833         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
29834         argument to it.
29836 2014-04-11  Richard Biener  <rguenther@suse.de>
29838         PR middle-end/60797
29839         * varasm.c (assemble_alias): Avoid endless error reporting
29840         recursion by setting TREE_ASM_WRITTEN.
29842 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29844         * config/s390/s390.md: Add a splitter for NOT rtx.
29846 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
29848         PR rtl-optimization/60663
29849         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29851 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
29852             Jakub Jelinek  <jakub@redhat.com>
29854         PR lto/60567
29855         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29856         flag from decl_node to node.
29858 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29860         PR debug/60655
29861         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29862         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29863         ameliorating the cases where it can be.
29865 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
29867         Revert
29868         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
29870         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29871         (loadsync_<mode>): Change mode.
29872         (load_quadpti, store_quadpti): New.
29873         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29874         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29875         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29877 2014-04-09  Cong Hou  <congh@google.com>
29879         PR testsuite/60773
29880         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29881         documentation.
29883 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29885         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29886         instead of vnor to exploit possible fusion opportunity in the
29887         future.
29888         (altivec_expand_vec_perm_const_le): Likewise.
29890 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
29892         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29893         (loadsync_<mode>): Change mode.
29894         (load_quadpti, store_quadpti): New.
29895         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29896         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29898 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
29900         PR target/60763
29901         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29902         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29903         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29905 2014-04-08  Richard Biener  <rguenther@suse.de>
29907         PR middle-end/60706
29908         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29909         a 64bit widest int print double-int similar to on HWI64 hosts.
29911 2014-04-08  Richard Biener  <rguenther@suse.de>
29913         PR tree-optimization/60785
29914         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29915         default defs properly.
29917 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
29919         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29920         (Weffc++): Likewise.
29922 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
29924         * ipa-devirt.c (maybe_record_node): When node is not recorded,
29925         set completep to false rather than true.
29927 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
29929         PR target/60504
29930         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29931         ARM_TARGET2_DWARF_FORMAT.
29933 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
29935         PR target/60609
29936         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29937         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29938         ADDR_DIFF_VEC.
29940 2014-04-07  Richard Biener  <rguenther@suse.de>
29942         PR tree-optimization/60766
29943         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29944         (may_eliminate_iv): Convert cand_value_at result to desired type.
29946 2014-04-07  Jason Merrill  <jason@redhat.com>
29948         PR c++/60731
29949         * common.opt (-fno-gnu-unique): Add.
29950         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29952 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29954         * haifa-sched.c: Fix outdated function reference and minor
29955         grammar errors in introductory comment.
29957 2014-04-07  Richard Biener  <rguenther@suse.de>
29959         PR middle-end/60750
29960         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29961         for noreturn calls.
29962         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29964 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
29966         PR debug/55794
29967         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29968         size accounting for thunks.
29969         (pa_asm_output_mi_thunk): Use final_start_function() and
29970         final_end_function() to output function start and end directives.
29972 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29974         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29975         device specific ISA/ feature information. Remove short_sp and
29976         errata_skip ds.  Add avr_device_specific_features enum to have device
29977         specific info.
29978         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29979         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29980         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29981         updated device specific info.
29982         * config/avr/avr-mcus.def: Merge device specific details to
29983         dev_attribute field.
29984         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29985         errata_skip.
29986         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29987         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29988         assembler if RMW isa supported by current device.
29989         * config/avr/genmultilib.awk: Update as device info structure changed.
29990         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29992 2014-04-04  Cong Hou  <congh@google.com>
29994         PR tree-optimization/60656
29995         * tree-vect-stmts.c (supportable_widening_operation):
29996         Fix a bug that elements in a vector with vect_used_by_reduction
29997         property are incorrectly reordered when the operation on it is not
29998         consistant with the one in reduction operation.
30000 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
30002         PR rtl-optimization/60155
30003         * gcse.c (record_set_data): New function.
30004         (single_set_gcse): New function.
30005         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30006         (hoist_code): Likewise.
30007         (get_pressure_class_and_nregs): Likewise.
30009 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
30011         * explow.c (probe_stack_range): Emit a final optimization blockage.
30013 2014-04-04  Anthony Green  <green@moxielogic.com>
30015         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30016         typos.
30018 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
30020         PR ipa/59626
30021         * lto-cgraph.c (input_overwrite_node): Check that partitioning
30022         flags are set only during streaming.
30023         * ipa.c (process_references, walk_polymorphic_call_targets,
30024         symtab_remove_unreachable_nodes): Drop bodies of always inline
30025         after early inlining.
30026         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30028 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
30029         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30031         PR debug/60655
30032         * dwarf2out.c (const_ok_for_output_1): Reject expressions
30033         containing a NOT.
30035 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30037         PR bootstrap/60743
30038         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30039         duration.
30040         (cortex_a53_fdivd): Likewise.
30042 2014-04-04  Martin Jambor  <mjambor@suse.cz>
30044         PR ipa/60640
30045         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30046         Adjust all callers.
30047         * cgraph.c (clone_of_p): Also return true if thunks match.
30048         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30049         cgraph_function_or_thunk_node and an obsolete comment.
30050         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30051         file.
30052         (build_function_decl_skip_args): Likewise.
30053         (set_new_clone_decl_and_node_flags): New function.
30054         (duplicate_thunk_for_node): Likewise.
30055         (redirect_edge_duplicating_thunks): Likewise.
30056         (cgraph_clone_node): New parameter args_to_skip, pass it to
30057         redirect_edge_duplicating_thunks which is called instead of
30058         cgraph_redirect_edge_callee.
30059         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30060         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30062 2014-04-04  Jeff Law  <law@redhat.com>
30064         PR target/60657
30065         * config/arm/predicates.md (const_int_I_operand): New predicate.
30066         (const_int_M_operand): Similarly.
30067         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30068         const_int_operand.
30069         (insv_t2, extv_reg, extzv_t2): Likewise.
30070         (load_multiple_with_writeback): Similarly for const_int_I_operand.
30071         (pop_multiple_with_writeback_and_return): Likewise.
30072         (vfp_pop_multiple_with_writeback): Likewise
30074 2014-04-04  Richard Biener  <rguenther@suse.de>
30076         PR ipa/60746
30077         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30078         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30079         non-GIMPLE_LABELs.
30080         * gimplify.h (gimple_add_tmp_var_fn): Declare.
30081         * gimplify.c (gimple_add_tmp_var_fn): New function.
30082         * gimple-expr.h (create_tmp_reg_fn): Declare.
30083         * gimple-expr.c (create_tmp_reg_fn): New function.
30084         * gimple-low.c (record_vars_into): Don't change cfun.
30085         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30086         code generation without cfun.
30088 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
30090         PR bootstrap/60719
30091         * Makefile.in (install-driver): Fix shell scripting.
30093 2014-04-03  Cong Hou  <congh@google.com>
30095         PR tree-optimization/60505
30096         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30097         threshold of number of iterations below which no vectorization
30098         will be done.
30099         * tree-vect-loop.c (new_loop_vec_info):
30100         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30101         * tree-vect-loop.c (vect_analyze_loop_operations):
30102         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30103         * tree-vect-loop.c (vect_transform_loop):
30104         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30105         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30106         of iterations of the loop and see if we should build the epilogue.
30108 2014-04-03  Richard Biener  <rguenther@suse.de>
30110         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30111         (streamer_tree_cache_create): Adjust.
30112         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30113         to allow optional nodes array.
30114         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30115         (streamer_tree_cache_append): Likewise.
30116         (streamer_tree_cache_create): Create nodes array optionally
30117         as specified by parameter.
30118         * lto-streamer-out.c (create_output_block): Avoid maintaining
30119         the node array in the writer cache.
30120         (DFS_write_tree): Remove assertion.
30121         (produce_asm_for_decls): Free the out decl state hash table early.
30122         * lto-streamer-in.c (lto_data_in_create): Adjust for
30123         streamer_tree_cache_create prototype change.
30125 2014-04-03  Richard Biener  <rguenther@suse.de>
30127         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30128         set TREE_CHAIN to NULL_TREE.
30130 2014-04-03  Richard Biener  <rguenther@suse.de>
30132         PR tree-optimization/60740
30133         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30134         over all GIMPLE_COND operands.
30136 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
30138         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30139         (Weffc++): Remove Scott's numbering, merge lists and reference
30140         Wnon-virtual-dtor.
30142 2014-04-03  Nick Clifton  <nickc@redhat.com>
30144         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30145         properly.
30147 2014-04-03  Martin Jambor  <mjambor@suse.cz>
30149         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30150         mention gcc_unreachable before failing.
30151         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30152         removed symbols.
30154 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
30156         PR ipa/60659
30157         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30158         inconsistent code and instead mark the context inconsistent.
30159         (possible_polymorphic_call_targets): For inconsistent contexts
30160         return empty complete list.
30162 2014-04-02  Anthony Green  <green@moxielogic.com>
30164         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30165         (extendqisi2, extendhisi2): Define.
30166         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30167         (WCHAR_TYPE): Change to unsigned int.
30169 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30171         PR tree-optimization/60733
30172         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30173         insertion point for PHI candidates to be the end of the feeding
30174         block for the PHI argument.
30176 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
30178         PR rtl-optimization/60650
30179         * lra-constraints.c (process_alt_operands): Decrease reject for
30180         earlyclobber matching.
30182 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30184         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30186 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30188         * config/spu/spu.c (pad_bb): Do not crash when the last
30189         insn is CODE_FOR_blockage.
30191 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30193         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30194         lies outside the target mode.
30196 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30198         PR target/60735
30199         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30200         software floating point or no floating point registers, do not
30201         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30202         in GPRs that occurs after we tested for GPRs that would never be
30203         true.
30205         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30206         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30207         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30208         specifically allow DDmode, since that does not use the SPE SIMD
30209         instructions.
30211 2014-04-02  Richard Biener  <rguenther@suse.de>
30213         PR middle-end/60729
30214         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30215         MODE_INTs.  Properly use negv_optab.
30216         (expand_abs): Likewise.
30218 2014-04-02  Richard Biener  <rguenther@suse.de>
30220         PR bootstrap/60719
30221         * Makefile.in (install-driver): Guard extra installs with special
30222         names properly.
30224 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
30226         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30227         Document vec_vgbbd.
30229 2014-04-01  Richard Henderson  <rth@redhat.com>
30231         PR target/60704
30232         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30233         alternative enabled before register allocation.
30235 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
30237         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30238         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30239         typo.
30240         (nios2_large_got_address): Remove unneeded 'sym' parameter.
30241         (nios2_got_address): Update nios2_large_got_address call site.
30242         (nios2_delegitimize_address): New function.
30243         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30244         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30245         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30247 2014-04-01  Martin Husemann  <martin@duskware.de>
30249         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30250         for -mabi=32.
30252 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
30254         PR rtl-optimization/60604
30255         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30256         check from register_operand.
30257         (register_operand): Redefine in terms of general_operand.
30258         (nonmemory_operand): Use register_operand for the non-constant cases.
30260 2014-04-01  Richard Biener  <rguenther@suse.de>
30262         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30264 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30266         * doc/invoke.texi (mapp-regs): Clarify.
30268 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
30270         * config/i386/avx512fintrin.h (__v32hi): Define type.
30271         (__v64qi): Likewise.
30272         (_mm512_set1_epi8): Define.
30273         (_mm512_set1_epi16): Define.
30274         (_mm512_set4_epi32): Define.
30275         (_mm512_set4_epi64): Define.
30276         (_mm512_set4_pd): Define.
30277         (_mm512_set4_ps): Define.
30278         (_mm512_setr4_epi64): Define.
30279         (_mm512_setr4_epi32): Define.
30280         (_mm512_setr4_pd): Define.
30281         (_mm512_setr4_ps): Define.
30282         (_mm512_setzero_epi32): Define.
30284 2014-03-31  Martin Jambor  <mjambor@suse.cz>
30286         PR middle-end/60647
30287         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30288         callsite_arguments_match_p.  Updated all callers.  Also check types of
30289         corresponding formal parameters and actual arguments.
30290         (not_all_callers_have_enough_arguments_p) Renamed to
30291         some_callers_have_mismatched_arguments_p.
30293 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
30295         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30297 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
30299         PR target/60034
30300         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30301         section anchor.
30303 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
30305         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30306         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30307         Split out
30308         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30309         Use FMAMODE_NOVF512 mode iterator.
30310         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30311         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30312         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30313         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30314         Split out
30315         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30316         Use VF_128_256 mode iterator.
30317         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30318         Ditto.
30320 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30322         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30323         static chain if needed.
30325 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30327         PR target/60697
30328         * lra-constraints.c (index_part_to_reg): New.
30329         (process_address): Use it.
30331 2014-03-27  Jeff Law  <law@redhat.com>
30332             Jakub Jelinek  <jakub@redhat.com>
30334         PR target/60648
30335         * expr.c (do_tablejump): Use simplify_gen_binary rather than
30336         gen_rtx_{PLUS,MULT} to build up the address expression.
30338         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30339         creating non-canonical RTL.
30341 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30343         PR ipa/60243
30344         * ipa-inline.c (want_inline_small_function_p): Short circuit large
30345         functions; reorganize to make cheap checks first.
30346         (inline_small_functions): Do not estimate growth when dumping;
30347         it is expensive.
30348         * ipa-inline.h (inline_summary): Add min_size.
30349         (growth_likely_positive): New function.
30350         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30351         (set_cond_stmt_execution_predicate): Cleanup.
30352         (estimate_edge_size_and_time): Compute min_size.
30353         (estimate_calls_size_and_time): Likewise.
30354         (estimate_node_size_and_time): Likewise.
30355         (inline_update_overall_summary): Update min_size.
30356         (do_estimate_edge_time): Likewise.
30357         (do_estimate_edge_size): Update.
30358         (do_estimate_edge_hints): Update.
30359         (growth_likely_positive): New function.
30361 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
30363         PR target/60693
30364         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30365         also if addr has VOIDmode.
30367 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30369         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30370         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30371         Declare extern.
30372         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30373         instructions as well as AdvancedSIMD loads.
30375 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30377         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30378         Use crypto_aese type.
30379         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30380         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30381         crypto_aese, crypto_aesmc.  Move to types.md.
30382         * config/arm/types.md (crypto_aes): Split into crypto_aese,
30383         crypto_aesmc.
30384         * config/arm/iterators.md (crypto_type): Likewise.
30386 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30388         * cgraph.c: Include expr.h and tree-dfa.h.
30389         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30390         remove LHS.
30392 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30394         PR target/60675
30395         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30396         regs from checking multi-reg pseudos.
30398 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30400         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30402 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30404         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30405         if it would clobber the stack pointer, even temporarily.
30407 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30409         * mode-switching.c: Make small adjustments to the top comment.
30411 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
30413         * config/rs6000/constraints.md (wD constraint): New constraint to
30414         match the constant integer to get the top DImode/DFmode out of a
30415         vector in a VSX register.
30417         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30418         match the constant integer to get the top DImode/DFmode out of a
30419         vector in a VSX register.
30421         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30422         for ISA 2.07.
30424         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30425         vbpermq builtins.
30427         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30428         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30430         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30431         Optimize vec_extract of 64-bit values, where the value being
30432         extracted is in the top word, where we can use scalar
30433         instructions.  Add direct move and store support.  Combine the big
30434         endian/little endian vector select load support into a single insn.
30435         (vsx_extract_<mode>_internal1): Likewise.
30436         (vsx_extract_<mode>_internal2): Likewise.
30437         (vsx_extract_<mode>_load): Likewise.
30438         (vsx_extract_<mode>_store): Likewise.
30439         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30440         combined into vsx_extract_<mode>_load.
30441         (vsx_extract_<mode>_one_le): Likewise.
30443         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30444         define the top 64-bit vector element.
30446         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30447         constraint.
30449         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30450         Document vec_vbpermq builtin.
30452         PR target/60672
30453         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30454         enable use of xxsldwi and xxpermdi builtin functions.
30455         (vec_xxpermdi): Likewise.
30457         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30458         Document use of vec_xxsldwi and vec_xxpermdi builtins.
30460 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30462         PR rtl-optimization/60650
30463         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30464         first_p.  Use it.
30465         (find_spills_for): New.
30466         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30467         Spill all pseudos on the second iteration.
30469 2014-03-27  Marek Polacek  <polacek@redhat.com>
30471         PR c/50347
30472         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30473         types.
30475 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30477         * config/s390/s390.c (s390_can_use_return_insn): Check for
30478         call-saved FPRs on 31 bit.
30480 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
30482         PR middle-end/60682
30483         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30484         if they need regimplification, just drop them instead of
30485         calling gimple_regimplify_operands on them.
30487 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30489         PR target/60580
30490         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30491         (aarch64_frame_pointer_required): Adjust logic.
30492         (aarch64_can_eliminate): Adjust logic.
30493         (aarch64_override_options_after_change): Adjust logic.
30495 2014-03-27  Dehao Chen  <dehao@google.com>
30497         * ipa-inline.c (early_inliner): Update node's inline info.
30499 2014-03-26  Dehao Chen  <dehao@google.com>
30501         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30502         compiler inserted conditional jumps for NAN float check.
30504 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30506         * ubsan.h (ubsan_create_data): Change second argument's type
30507         to const location_t *.
30508         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30509         _("<unknown>").
30510         (ubsan_create_data): Change second argument to const location_t *PLOC.
30511         Create Loc field whenever PLOC is non-NULL.
30512         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30513         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30514         callers.
30516         PR other/59545
30517         * real.c (real_to_integer2): Change type of low to UHWI.
30519 2014-03-26  Tobias Burnus  <burnus@net-b.de>
30521         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30522         (CILK_SELF_SPECS): New define.
30523         (driver_self_specs): Use it.
30525 2014-03-26  Richard Biener  <rguenther@suse.de>
30527         * tree-pretty-print.c (percent_K_format): Implement special
30528         case for LTO and its stripped down BLOCK tree.
30530 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30532         PR sanitizer/60636
30533         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30535         * tree-vrp.c (simplify_internal_call_using_ranges): If only
30536         one range is range_int_cst_p, but not both, at least optimize
30537         addition/subtraction of 0 and multiplication by 0 or 1.
30538         * gimple-fold.c (gimple_fold_call): Fold
30539         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30540         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30541         INTEGER_CSTs, try to fold at least x * 0 and y - y.
30543 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30545         PR rtl-optimization/60452
30546         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30547         <case REG>: Return 1 for invalid offsets from the frame pointer.
30549 2014-03-26  Marek Polacek  <polacek@redhat.com>
30551         PR c/37428
30552         * doc/extend.texi (C Extensions): Mention variable-length arrays in
30553         a structure/union.
30555 2014-03-26  Marek Polacek  <polacek@redhat.com>
30557         PR c/39525
30558         * doc/extend.texi (Designated Inits): Describe what happens to omitted
30559         field members.
30561 2014-03-26  Marek Polacek  <polacek@redhat.com>
30563         PR other/59545
30564         * ira-color.c (update_conflict_hard_regno_costs): Perform the
30565         multiplication in unsigned type.
30567 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30569         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30571 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30573         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30575 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30577         PR ipa/60315
30578         * cif-code.def (UNREACHABLE) New code.
30579         * ipa-inline.c (inline_small_functions): Skip edges to
30580         __builtlin_unreachable.
30581         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30582         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30583         predicate to __bulitin_unreachable.
30584         (set_cond_stmt_execution_predicate): Fix issue when
30585         invert_tree_comparison returns ERROR_MARK.
30586         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30587         propagate to inline clones.
30588         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30589         to unreachable.
30590         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30591         * cgraphclones.c (cgraph_clone_node): If call destination is already
30592         ureachable, do not redirect it back.
30593         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30594         unreachable.
30596 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30598         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30599         Do not modify inline clones.
30601 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
30603         * config/i386/i386.md (general_sext_operand): New mode attr.
30604         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30605         don't generate (sign_extend (const_int)).
30606         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30607         operands[2].  Use We constraint instead of <i> and
30608         <general_sext_operand> predicate instead of <general_operand>.
30609         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30610         * config/i386/constraints.md (We): New constraint.
30611         * config/i386/predicates.md (x86_64_sext_operand,
30612         sext_operand): New predicates.
30614 2014-03-25  Martin Jambor  <mjambor@suse.cz>
30616         PR ipa/60600
30617         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30618         inconsistent devirtualizations to __builtin_unreachable.
30620 2014-03-25  Marek Polacek  <polacek@redhat.com>
30622         PR c/35449
30623         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30625 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
30627         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30628         order of elements for big-endian.
30630 2014-03-25  Richard Biener  <rguenther@suse.de>
30632         PR middle-end/60635
30633         * gimplify-me.c (gimple_regimplify_operands): Update the
30634         re-gimplifed stmt.
30636 2014-03-25  Martin Jambor  <mjambor@suse.cz>
30638         PR ipa/59176
30639         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30640         (lto_output_varpool_node): Likewise.
30641         (input_overwrite_node): Likewise.
30642         (input_varpool_node): Likewise.
30644 2014-03-25  Richard Biener  <rguenther@suse.de>
30646         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30647         (run_gcc): Likewise.
30649 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
30651         * combine.c (simplify_compare_const): Add MODE argument.
30652         Handle mode_width 0 as very large mode_width.
30653         (try_combine, simplify_comparison): Adjust callers.
30655         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30656         type to avoid signed integer overflow.
30657         * explow.c (plus_constant): Likewise.
30659 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30661         * doc/generic.texi: Correct typos.
30663 2014-03-24  Tobias Burnus  <burnus@net-b.de>
30665         * doc/invoke.texi (-flto): Expand section about
30666         using static libraries with LTO.
30668 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30670         PR rtl-optimization/60501
30671         * optabs.def (addptr3_optab): New optab.
30672         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30673         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30674         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30676         * lra.c (emit_add3_insn): Use the addptr pattern if available.
30678         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30680 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
30682         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30683         _mm512_set1_pd.
30685         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30686         (_mm256_undefined_ps): Define.
30687         (_mm256_undefined_pd): Define.
30688         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30689         (_mm_undefined_pd): Define.
30690         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30691         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30692         (_mm512_undefined_ps): Define.
30693         (_mm512_undefined_pd): Define.
30694         Use _mm*_undefined_*.
30695         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30697 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
30699         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30700         (lshr_simd): DI mode added.
30701         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30702         (aarch64_ushr_simddi): Likewise.
30703         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30704         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30705         (vshrd_n_u64): Likewise.
30707 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30709         * Makefile.in (s-macro_list): Depend on cc1.
30711 2014-03-23  Teresa Johnson  <tejohnson@google.com>
30713         * ipa-utils.c (ipa_print_order): Use specified dump file.
30715 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30717         PR rtl-optimization/60601
30718         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30720         * gcc.c (eval_spec_function): Initialize save_growing_value.
30722 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
30724         PR sanitizer/60613
30725         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30726         code == MINUS_EXPR, never swap op0 with op1.
30728         * toplev.c (init_local_tick): Avoid signed integer multiplication
30729         overflow.
30730         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30731         shift by first operand's bitsize.
30733 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
30735         PR target/60610
30736         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30737         redefine to 1 or 0.
30738         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30739         TARGET_ISA_64BIT_P(x).
30741 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30743         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30744         pattern for vector nor instead of subtract from splat(-1).
30745         (altivec_expand_vec_perm_const_le): Likewise.
30747 2014-03-21  Richard Henderson  <rth@twiddle.net>
30749         PR target/60598
30750         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30751         related insns after epilogue_completed.
30753 2014-03-21  Martin Jambor  <mjambor@suse.cz>
30755         PR ipa/59176
30756         * cgraph.h (symtab_node): New flag body_removed.
30757         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30758         when removing bodies.
30759         * symtab.c (dump_symtab_base): Dump body_removed flag.
30760         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30761         had their bodies removed.
30763 2014-03-21  Martin Jambor  <mjambor@suse.cz>
30765         PR ipa/60419
30766         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30767         in the border.
30769 2014-03-21  Richard Biener  <rguenther@suse.de>
30771         PR tree-optimization/60577
30772         * tree-core.h (struct tree_base): Document nothrow_flag use
30773         in DECL_NONALIASED.
30774         * tree.h (DECL_NONALIASED): New.
30775         (may_be_aliased): Adjust.
30776         * coverage.c (build_var): Set DECL_NONALIASED.
30778 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30780         * expr.c (expand_expr_real_1): Remove outdated comment.
30782 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
30784         PR middle-end/60597
30785         * ira.c (adjust_cleared_regs): Call copy_rtx on
30786         *reg_equiv[REGNO (loc)].src_p before passing it to
30787         simplify_replace_fn_rtx.
30789         PR target/60568
30790         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30791         into CONST, put pic register as first operand of PLUS.  Use
30792         gen_const_mem for both 32-bit and 64-bit PIC got loads.
30794 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30796         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30798 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30800         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30801         around for store forwarding issue in the FPU on the UT699.
30802         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30803         loads and operations if -mfix-ut699 is specified.
30804         (divtf3_hq): Tweak attribute.
30805         (sqrttf2_hq): Likewise.
30807 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30809         * calls.c (store_one_arg): Remove incorrect const qualification on the
30810         type of the temporary.
30811         * cfgexpand.c (expand_return): Likewise.
30812         * expr.c (expand_constructor): Likewise.
30813         (expand_expr_real_1): Likewise.
30815 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30817         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30818         of parts.
30820 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
30822         PR target/60039
30823         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30825 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
30827         * config/arm/aarch-common-protos.h
30828         (alu_cost_table): Fix spelling of "extend".
30829         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30831 2014-03-19  Richard Biener  <rguenther@suse.de>
30833         PR middle-end/60553
30834         * tree-core.h (tree_type_common): Re-order pointer members
30835         to reduce recursion depth during GC walks.
30837 2014-03-19  Marek Polacek  <polacek@redhat.com>
30839         PR sanitizer/60569
30840         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30841         before accessing it.
30843 2014-03-19  Richard Biener  <rguenther@suse.de>
30845         PR lto/59543
30846         * lto-streamer-in.c (input_function): In WPA stage do not drop
30847         debug stmts.
30849 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
30851         PR tree-optimization/60559
30852         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30853         with build_zero_cst assignment.
30855 2014-03-18  Kai Tietz  <ktietz@redhat.com>
30857         PR rtl-optimization/56356
30858         * sdbout.c (sdbout_parms): Verify that parms'
30859         incoming argument is valid.
30860         (sdbout_reg_parms): Likewise.
30862 2014-03-18  Richard Henderson  <rth@redhat.com>
30864         PR target/60562
30865         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30866         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
30867         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30869 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
30871         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30872         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30873         Italicize plugin event names in description.  Explain that
30874         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
30875         Remind that no GCC functions should be called after PLUGIN_FINISH.
30876         Explain what pragmas with expansion are.
30878 2014-03-18  Martin Liska  <mliska@suse.cz>
30880         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30881         gimple call statement is update.
30882         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30883         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30885 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
30887         PR sanitizer/60557
30888         * ubsan.c (ubsan_instrument_unreachable): Call
30889         initialize_sanitizer_builtins.
30890         (ubsan_pass): Likewise.
30892         PR sanitizer/60535
30893         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30894         varpool_finalize_decl instead of rest_of_decl_compilation.
30896 2014-03-18  Richard Biener  <rguenther@suse.de>
30898         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30899         by using bitmap_and_compl instead of bitmap_and_compl_into.
30900         (df_rd_transfer_function): Likewise.
30902 2014-03-18  Richard Biener  <rguenther@suse.de>
30904         * doc/lto.texi (fresolution): Fix typo.
30906 2014-03-18  Richard Biener  <rguenther@suse.de>
30908         * doc/invoke.texi (flto): Update for changes in 4.9.
30910 2014-03-18  Richard Biener  <rguenther@suse.de>
30912         * doc/loop.texi: Remove section on the removed lambda framework.
30913         Update loop docs with recent changes in preserving loop structure.
30915 2014-03-18  Richard Biener  <rguenther@suse.de>
30917         * doc/lto.texi (-fresolution): Document.
30919 2014-03-18  Richard Biener  <rguenther@suse.de>
30921         * doc/contrib.texi: Adjust my name.
30923 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
30925         PR ipa/58721
30926         * internal-fn.c: Include diagnostic-core.h.
30927         (expand_BUILTIN_EXPECT): New function.
30928         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30929         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30930         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30931         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30932         IFN_BUILTIN_EXPECT.
30933         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30934         Revert 3 argument __builtin_expect code.
30935         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30936         * gimple-fold.c (gimple_fold_call): Likewise.
30937         * tree.h (fold_builtin_expect): New prototype.
30938         * builtins.c (build_builtin_expect_predicate): Add predictor
30939         argument, if non-NULL, create 3 argument __builtin_expect.
30940         (fold_builtin_expect): No longer static.  Add ARG2 argument,
30941         pass it through to build_builtin_expect_predicate.
30942         (fold_builtin_2): Adjust caller.
30943         (fold_builtin_3): Handle BUILT_IN_EXPECT.
30944         * internal-fn.def (BUILTIN_EXPECT): New.
30946 2014-03-18  Tobias Burnus  <burnus@net-b.de>
30948         PR ipa/58721
30949         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30950         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30951         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30953 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
30955         PR ipa/58721
30956         * predict.c (combine_predictions_for_bb): Fix up formatting.
30957         (expr_expected_value_1, expr_expected_value): Add predictor argument,
30958         fill what it points to if non-NULL.
30959         (tree_predict_by_opcode): Adjust caller, use the predictor.
30960         * predict.def (PRED_COMPARE_AND_SWAP): Add.
30962 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
30964         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30965         proper constant for the store mode.
30967 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
30969         * symtab.c (change_decl_assembler_name): Fix transparent alias
30970         chain construction.
30972 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
30974         * config/aarch64/aarch64.c: Correct the comments about the
30975         aarch64 stack layout.
30977 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
30979         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30980         check for GF_OMP_FOR_KIND_FOR.
30982 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
30984         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30985         ymm and zmm register names.
30987 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
30989         PR target/60516
30990         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30991         note creation for the 2010-08-31 changes.
30993 2014-03-17  Marek Polacek  <polacek@redhat.com>
30995         PR middle-end/60534
30996         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30997         as -fno-tree-loop-vectorize.
30998         (expand_omp_simd): Likewise.
31000 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
31002         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31003         (eligible_for_call_delay): New prototype.
31004         * config/sparc/sparc.c (tls_call_delay): Rename into...
31005         (eligible_for_call_delay): ...this.  Return false if the instruction
31006         cannot be put in the delay slot of a branch.
31007         (eligible_for_restore_insn): Simplify.
31008         (eligible_for_return_delay): Return false if the instruction cannot be
31009         put in the delay slot of a branch and simplify.
31010         (eligible_for_sibcall_delay): Return false if the instruction cannot be
31011         put in the delay slot of a branch.
31012         * config/sparc/sparc.md (fix_ut699): New attribute.
31013         (tls_call_delay): Delete.
31014         (in_call_delay): Reimplement.
31015         (eligible_for_sibcall_delay): Rename into...
31016         (in_sibcall_delay): ...this.
31017         (eligible_for_return_delay): Rename into...
31018         (in_return_delay): ...this.
31019         (in_branch_delay): Reimplement.
31020         (in_uncond_branch_delay): Delete.
31021         (in_annul_branch_delay): Delete.
31023 2014-03-14  Richard Henderson  <rth@redhat.com>
31025         PR target/60525
31026         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31027         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31028         (*floathi<X87MODEF>2_i387_with_temp): Remove.
31029         (floathi splitters): Remove.
31030         (float<SWI48x>xf2): New pattern.
31031         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
31032         code that tried to handle DImode for 32-bit, but which was excluded
31033         by the pattern's condition.  Drop allocation of stack temporary.
31034         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31035         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31036         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31037         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31038         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31039         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31040         (*float<SWI48><MODEF>2_sse_interunit): Remove.
31041         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31042         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31043         (*float<SWI48x><X87MODEF>2_i387): Remove.
31044         (all float _with_temp splitters): Remove.
31045         (*float<SWI48x><MODEF>2_i387): New pattern.
31046         (*float<SWI48><MODEF>2_sse): New pattern.
31047         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31048         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31050 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
31051             Marek Polacek  <polacek@redhat.com>
31053         PR middle-end/60484
31054         * common.opt (dump_base_name_prefixed): New Variable.
31055         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31056         if x_dump_base_name_prefixed is already set, set it at the end.
31058 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
31060         PR rtl-optimization/60508
31061         * lra-constraints.c (get_reload_reg): Add new parameter
31062         in_subreg_p.
31063         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31064         Pass the new parameter values.
31066 2014-03-14  Richard Biener  <rguenther@suse.de>
31068         * common.opt: Revert unintented changes from r205065.
31069         * opts.c: Likewise.
31071 2014-03-14  Richard Biener  <rguenther@suse.de>
31073         PR middle-end/60518
31074         * cfghooks.c (split_block): Properly adjust all loops the
31075         block was a latch of.
31077 2014-03-14  Martin Jambor  <mjambor@suse.cz>
31079         PR lto/60461
31080         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31081         and simplify it.
31083 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
31085         PR target/59396
31086         * config/avr/avr.c (avr_set_current_function): Pass function name
31087         through default_strip_name_encoding before sanity checking instead
31088         of skipping the first char of the assembler name.
31090 2014-03-13  Richard Henderson  <rth@redhat.com>
31092         PR debug/60438
31093         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31094         (ix86_force_to_memory, ix86_free_from_memory): Remove.
31095         * config/i386/i386-protos.h: Likewise.
31096         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31097         in the expander instead of a splitter.
31098         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31099         any possibility of requiring a memory.
31100         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31101         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31102         (fp branch splitters): Update for ix86_split_fp_branch.
31103         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31104         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31105         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31106         (*fop_<MODEF>_2_i387): Remove f/r alternative.
31107         (*fop_<MODEF>_3_i387): Likewise.
31108         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31109         (splitters for the fop_* register patterns): Remove.
31110         (fscalexf4_i387): Rename from *fscalexf4_i387.
31111         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31113 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31115         PR tree-optimization/59779
31116         * tree-dfa.c (get_ref_base_and_extent): Use double_int
31117         type for bitsize and maxsize instead of HOST_WIDE_INT.
31119 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
31121         PR rtl-optimization/57320
31122         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31123         the CFG after thread_prologue_and_epilogue_insns.
31125 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
31127         PR rtl-optimization/57189
31128         * lra-constraints.c (process_alt_operands): Disfavor spilling
31129         vector pseudos.
31131 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
31133         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31135 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31137         PR tree-optimization/59025
31138         PR middle-end/60418
31139         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31140         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31142 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
31144         PR target/60486
31145         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31146         calls of avr_out_plus_1.
31148 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
31150         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31151         BB's single pred and update the father loop's latch info later.
31153 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
31155         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31156         (VEC_M): Likewise.
31157         (VEC_N): Likewise.
31158         (VEC_R): Likewise.
31159         (VEC_base): Likewise.
31160         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31161         registers, we need to swap double words in little endian mode.
31163         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31164         to be a container mode for 128-bit integer operations added in ISA
31165         2.07.  Unlike TImode and PTImode, the preferred register set is
31166         the Altivec/VMX registers for the 128-bit operations.
31168         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31169         declarations.
31170         (rs6000_split_128bit_ok_p): Likewise.
31172         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31173         macros for creating ISA 2.07 normal and overloaded builtin
31174         functions with 3 arguments.
31175         (BU_P8V_OVERLOAD_3): Likewise.
31176         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31177         for use as overloaded functions.
31178         (VPERM_1TI_UNS): Likewise.
31179         (VSEL_1TI): Likewise.
31180         (VSEL_1TI_UNS): Likewise.
31181         (ST_INTERNAL_1ti): Likewise.
31182         (LD_INTERNAL_1ti): Likewise.
31183         (XXSEL_1TI): Likewise.
31184         (XXSEL_1TI_UNS): Likewise.
31185         (VPERM_1TI): Likewise.
31186         (VPERM_1TI_UNS): Likewise.
31187         (XXPERMDI_1TI): Likewise.
31188         (SET_1TI): Likewise.
31189         (LXVD2X_V1TI): Likewise.
31190         (STXVD2X_V1TI): Likewise.
31191         (VEC_INIT_V1TI): Likewise.
31192         (VEC_SET_V1TI): Likewise.
31193         (VEC_EXT_V1TI): Likewise.
31194         (EQV_V1TI): Likewise.
31195         (NAND_V1TI): Likewise.
31196         (ORC_V1TI): Likewise.
31197         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31198         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
31199         overloaded builtin.
31200         (VADDUQM): Likewise.
31201         (VSUBCUQ): Likewise.
31202         (VADDEUQM): Likewise.
31203         (VADDECUQ): Likewise.
31204         (VSUBEUQM): Likewise.
31205         (VSUBECUQ): Likewise.
31207         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31208         __int128_t and __uint128_t types.
31209         (__uint128_type): Likewise.
31210         (altivec_categorize_keyword): Add support for vector __int128_t,
31211         vector __uint128_t, vector __int128, and vector unsigned __int128
31212         as a container type for TImode operations that need to be done in
31213         VSX/Altivec registers.
31214         (rs6000_macro_to_expand): Likewise.
31215         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31216         to support 128-bit integer instructions vaddcuq, vadduqm,
31217         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31218         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31220         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31221         for V1TImode, and set up preferences to use VSX/Altivec registers.
31222         Setup VSX reload handlers.
31223         (rs6000_debug_reg_global): Likewise.
31224         (rs6000_init_hard_regno_mode_ok): Likewise.
31225         (rs6000_preferred_simd_mode): Likewise.
31226         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31227         (easy_altivec_constant): Likewise.
31228         (output_vec_const_move): Likewise.
31229         (rs6000_expand_vector_set): Convert V1TImode set and extract to
31230         simple move.
31231         (rs6000_expand_vector_extract): Likewise.
31232         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31233         addressing.
31234         (rs6000_const_vec): Add support for V1TImode.
31235         (rs6000_emit_le_vsx_load): Swap double words when loading or
31236         storing TImode/V1TImode.
31237         (rs6000_emit_le_vsx_store): Likewise.
31238         (rs6000_emit_le_vsx_move): Likewise.
31239         (rs6000_emit_move): Add support for V1TImode.
31240         (altivec_expand_ld_builtin): Likewise.
31241         (altivec_expand_st_builtin): Likewise.
31242         (altivec_expand_vec_init_builtin): Likewise.
31243         (altivec_expand_builtin): Likewise.
31244         (rs6000_init_builtins): Add support for V1TImode type.  Add
31245         support for ISA 2.07 128-bit integer builtins.  Define type names
31246         for the VSX/Altivec vector types.
31247         (altivec_init_builtins): Add support for overloaded vector
31248         functions with V1TImode type.
31249         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31250         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31251         external function.
31252         (rs6000_split_128bit_ok_p): Likewise.
31253         (rs6000_handle_altivec_attribute): Create V1TImode from vector
31254         __int128_t and vector __uint128_t.
31256         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31257         and mode attributes.
31258         (VSX_M): Likewise.
31259         (VSX_M2): Likewise.
31260         (VSm): Likewise.
31261         (VSs): Likewise.
31262         (VSr): Likewise.
31263         (VSv): Likewise.
31264         (VS_scalar): Likewise.
31265         (VS_double): Likewise.
31266         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31268         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31269         we support the ISA 2.07 128-bit integer arithmetic instructions.
31270         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31271         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31272         and TImode types for use with the builtin functions.
31273         (V1TI_type_node): Likewise.
31274         (unsigned_V1TI_type_node): Likewise.
31275         (intTI_type_internal_node): Likewise.
31276         (uintTI_type_internal_node): Likewise.
31278         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31279         128-bit builtin functions.
31280         (UNSPEC_VADDEUQM): Likewise.
31281         (UNSPEC_VADDECUQ): Likewise.
31282         (UNSPEC_VSUBCUQ): Likewise.
31283         (UNSPEC_VSUBEUQM): Likewise.
31284         (UNSPEC_VSUBECUQ): Likewise.
31285         (VM): Add V1TImode to vector mode iterators.
31286         (VM2): Likewise.
31287         (VI_unit): Likewise.
31288         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31289         (altivec_vaddcuq): Likewise.
31290         (altivec_vsubuqm): Likewise.
31291         (altivec_vsubcuq): Likewise.
31292         (altivec_vaddeuqm): Likewise.
31293         (altivec_vaddecuq): Likewise.
31294         (altivec_vsubeuqm): Likewise.
31295         (altivec_vsubecuq): Likewise.
31297         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31298         mode iterators.
31299         (BOOL_128): Likewise.
31300         (BOOL_REGS_OUTPUT): Likewise.
31301         (BOOL_REGS_OP1): Likewise.
31302         (BOOL_REGS_OP2): Likewise.
31303         (BOOL_REGS_UNARY): Likewise.
31304         (BOOL_REGS_AND_CR0): Likewise.
31306         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31307         128-bit integer builtin support.
31308         (vec_vadduqm): Likewise.
31309         (vec_vaddecuq): Likewise.
31310         (vec_vaddeuqm): Likewise.
31311         (vec_vsubecuq): Likewise.
31312         (vec_vsubeuqm): Likewise.
31313         (vec_vsubcuq): Likewise.
31314         (vec_vsubuqm): Likewise.
31316         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31317         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31318         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31319         128-bit integer add/subtract to ISA 2.07.
31321 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
31323         * config/arc/arc.c (arc_predicate_delay_insns):
31324         Fix third argument passed to conditionalize_nonjump.
31326 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
31328         * config/aarch64/aarch64-builtins.c
31329         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31330         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31331         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31332         instead of __builtin_lfloor.
31333         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31335 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31337         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31338         (tree_ssa_ifcombine_bb_1): New function.
31339         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
31340         is an empty forwarder block to then_bb or vice versa and then_bb
31341         and else_bb are effectively swapped.
31343 2014-03-12  Christian Bruel  <christian.bruel@st.com>
31345         PR target/60264
31346         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31347         REG_CFA_DEF_CFA note.
31348         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31349         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31351 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31353         PR tree-optimization/60454
31354         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31356 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31358         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31359         Do not define target_cpu_default2 to generic.
31360         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31361         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31362         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31364 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31365             Marc Glisse  <marc.glisse@inria.fr>
31367         PR tree-optimization/60502
31368         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31369         instead of build_low_bits_mask.
31371 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31373         PR middle-end/60482
31374         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31375         if there are multiple uses, but op doesn't live on E edge.
31376         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31377         clobber stmts before __builtin_unreachable.
31379 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
31381         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31382         hard_frame_pointer_rtx.
31383         * cse.c (cse_insn): Remove volatile check.
31384         * cselib.c (cselib_process_insn): Likewise.
31385         * dse.c (scan_insn): Likewise.
31387 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31389         * config/arc/arc.c (conditionalize_nonjump): New function,
31390         broken out of ...
31391         (arc_ifcvt): ... this.
31392         (arc_predicate_delay_insns): Use it.
31394 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31396         * config/arc/predicates.md (extend_operand): During/after reload,
31397         allow const_int_operand.
31398         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31399         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
31400         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31401         to "i".
31402         (umulsi3_highpart_i): Likewise.
31404 2014-03-11  Richard Biener  <rguenther@suse.de>
31406         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31407         Add asserts to guard possible wrong-code bugs.
31409 2014-03-11  Richard Biener  <rguenther@suse.de>
31411         PR tree-optimization/60429
31412         PR tree-optimization/60485
31413         * tree-ssa-structalias.c (set_union_with_increment): Properly
31414         take into account all fields that overlap the shifted vars.
31415         (do_sd_constraint): Likewise.
31416         (do_ds_constraint): Likewise.
31417         (get_constraint_for_ptr_offset): Likewise.
31419 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
31421         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31422         (nios2_compute_frame_layout):
31423         Add calculation of cfun->machine->fp_save_offset.
31424         (nios2_expand_prologue): Correct setting of frame pointer register
31425         in prologue.
31426         (nios2_expand_epilogue): Update recovery of stack pointer from
31427         frame pointer accordingly.
31428         (nios2_initial_elimination_offset): Update calculation of offset
31429         for eliminating to HARD_FRAME_POINTER_REGNUM.
31431 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
31433         PR ipa/60457
31434         * ipa.c (symtab_remove_unreachable_nodes): Don't call
31435         cgraph_get_create_node on VAR_DECLs.
31437 2014-03-10  Richard Biener  <rguenther@suse.de>
31439         PR middle-end/60474
31440         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31442 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
31444         * config/vms/vms.opt (vms_float_format): New variable.
31446 2014-03-08  Tobias Burnus  <burnus@net-b.de>
31448         * doc/invoke.texi (-fcilkplus): Update implementation status.
31450 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
31451             Richard Biener  <rguenther@suse.de>
31453         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31454         consistently accross all TUs.
31455         (run_gcc): Enable -fshort-double automatically at link at link-time
31456         and disallow override.
31458 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
31460         PR target/58271
31461         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31462         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31463         if they can't be used.
31465 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31467         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31468         for Solaris 11/x86 ld.
31469         * configure: Regenerate.
31471 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31473         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31474         (LIB_TLS_SPEC): Save as ld_tls_libs.
31475         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31476         (HAVE_AS_IX86_TLSLDM): New test.
31477         * configure, config.in: Regenerate.
31478         * config/i386/i386.c (legitimize_tls_address): Fall back to
31479         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31480         cannot support TLS_MODEL_LOCAL_DYNAMIC.
31481         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31482         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31484 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
31486         * common.opt (fira-loop-pressure): Mark as optimization.
31488 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
31490         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31491         an OpenMP mappable type.
31493 2014-03-06  Matthias Klose  <doko@ubuntu.com>
31495         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31496         MULTILIB_OSDIRNAMES is not defined.
31498 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
31499             Meador Inge  <meadori@codesourcery.com>
31501         PR target/58595
31502         * config/arm/arm.c (arm_tls_symbol_p): Remove.
31503         (arm_legitimize_address): Call legitimize_tls_address for any
31504         arm_tls_referenced_p expression, handle constant addend.  Call it
31505         before testing for !TARGET_ARM.
31506         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31508 2014-03-06  Richard Biener  <rguenther@suse.de>
31510         PR middle-end/60445
31511         PR lto/60424
31512         PR lto/60427
31513         Revert
31514         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31516         * tree-streamer.c (record_common_node): Assert we don't record
31517         nodes with type double.
31518         (preload_common_node): Skip type double, complex double and double
31519         pointer since it is now frontend dependent due to fshort-double option.
31521 2014-03-06  Richard Biener  <rguenther@suse.de>
31523         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31524         or -fno-lto is specified and the linker has full plugin support.
31525         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31526         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31527         * lto-wrapper.c (merge_and_complain): Merge compile-time
31528         optimization levels.
31529         (run_gcc): And pass it through to the link options.
31531 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
31533         PR debug/60381
31534         Revert:
31535         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31536         PR debug/59992
31537         * cselib.c (remove_useless_values): Skip to avoid quadratic
31538         behavior if the condition moved from...
31539         (cselib_process_insn): ... here holds.
31541 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31543         PR plugins/59335
31544         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31545         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31547         PR plugins/59335
31548         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31549         (TM_H): Add x86-tune.def.
31551 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31553         * config/aarch64/aarch64.c (generic_tunings):
31554         Use cortexa57_extra_costs.
31556 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31558         PR lto/60404
31559         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31560         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31561         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31562         cost for in_lto_p.
31564 2014-03-04  Heiher  <r@hev.cc>
31566         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31567         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31569 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
31571         * config/i386/predicates.md (const2356_operand): Change to ...
31572         (const2367_operand): ... this.
31573         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31574         const2367_operand.
31575         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31576         (*avx512pf_scatterpf<mode>sf): Ditto.
31577         (avx512pf_scatterpf<mode>df): Ditto.
31578         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31579         (*avx512pf_scatterpf<mode>df): Ditto.
31580         * config/i386/i386.c (ix86_expand_builtin): Update
31581         incorrect hint operand error message.
31583 2014-03-04  Richard Biener  <rguenther@suse.de>
31585         * lto-section-in.c (lto_get_section_data): Fix const cast.
31587 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31589         * tree-streamer.c (record_common_node): Assert we don't record
31590         nodes with type double.
31591         (preload_common_node): Skip type double, complex double and double
31592         pointer since it is now frontend dependent due to fshort-double option.
31594 2014-03-04  Richard Biener  <rguenther@suse.de>
31596         PR lto/60405
31597         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31598         (lto_input_toplevel_asms): Likewise.
31599         * lto-section-in.c (lto_get_section_data): Instead do it here
31600         for every section.
31602 2014-03-04  Richard Biener  <rguenther@suse.de>
31604         PR tree-optimization/60382
31605         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31606         dead PHIs a reduction.
31608 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
31610         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31611         hint value.
31612         (_mm_prefetch): Move out of GCC target("sse") pragma.
31613         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31614         GCC target("prfchw") pragma.
31615         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31616         for locality <= 2.
31617         * config/i386/i386.c (ix86_option_override_internal): Enable
31618         -mprfchw with -mprefetchwt1.
31620 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
31622         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31623         Mark as varying.
31625 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
31627         * opts.h (CL_PCH_IGNORE): Define.
31628         * targhooks.c (option_affects_pch_p):
31629         Return false for options that have CL_PCH_IGNORE set.
31630         * opt-functions.awk: Process PchIgnore.
31631         * doc/options.texi: Document PchIgnore.
31633         * config/arc/arc.opt (misize): Add PchIgnore property.
31635 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31637         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31638         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31639         constraint on constants to permit them being loaded into
31640         GENERAL_REGS or BASE_REGS.
31642 2014-03-03  Nick Clifton  <nickc@redhat.com>
31644         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31645         anti-cacnonical alternatives.
31646         (negandhi3_real): New pattern.
31647         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31649 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
31651         * config/avr/avr-mcus.def: Remove atxmega16x1.
31652         * config/avr/avr-tables.opt: Regenerate.
31653         * config/avr/t-multilib: Regenerate.
31654         * doc/avr-mmcu.texi: Regenerate.
31656 2014-03-03  Tobias Grosser  <tobias@grosser.es>
31657             Mircea Namolaru  <mircea.namolaru@inria.fr>
31659         PR tree-optimization/58028
31660         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31661         scalar dimensions.
31663 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31665         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31666         not handled by recognizers.
31668 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
31670         PR middle-end/60175
31671         * function.c (expand_function_end): Don't emit
31672         clobber_return_register sequence if clobber_after is a BARRIER.
31673         * cfgexpand.c (construct_exit_block): Append instructions before
31674         return_label to prev_bb.
31676 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31678         * config/rs6000/constraints.md: Document reserved use of "wc".
31680 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
31682         PR ipa/60150
31683         * ipa.c (function_and_variable_visibility): When dissolving comdat
31684         group, also set all symbols to local.
31686 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
31688         PR ipa/60306
31690         Revert:
31691         2013-12-14  Jan Hubicka  <jh@suse.cz>
31692         PR middle-end/58477
31693         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31695 2014-03-02  Jon Beniston  <jon@beniston.com>
31697         PR bootstrap/48230
31698         PR bootstrap/50927
31699         PR bootstrap/52466
31700         PR target/46898
31701         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31702         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31703         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31704         (simple_return, *simple_return): New patterns
31705         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31706         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31708 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
31710         * dwarf2out.c (gen_subprogram_die): Tidy.
31712 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
31714         PR target/60071
31715         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31716         (*mov_t_msb_neg_negc): ... this new insn.
31718 2014-02-28  Jason Merrill  <jason@redhat.com>
31720         PR c++/58678
31721         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31722         function.
31724 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
31726         PR c++/60314
31727         * dwarf2out.c (decltype_auto_die): New static.
31728         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31729         (gen_type_die_with_usage): Handle 'decltype(auto)'.
31730         (is_cxx_auto): Likewise.
31732 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
31734         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31735         we are not using general regs only.
31737 2014-02-28  Richard Biener  <rguenther@suse.de>
31739         PR target/60280
31740         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31741         previous fix and only allow to remove trivial pre-headers
31742         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31743         (remove_forwarder_block): Properly update the latch of a loop.
31745 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31747         PR debug/59992
31748         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31749         (cselib_preserved_hash_table): New.
31750         (preserve_constants_and_equivs): Move preserved vals to it.
31751         (cselib_find_slot): Look it up first.
31752         (cselib_init): Initialize it.
31753         (cselib_finish): Release it.
31754         (dump_cselib_table): Dump it.
31756 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31758         PR debug/59992
31759         * cselib.c (remove_useless_values): Skip to avoid quadratic
31760         behavior if the condition moved from...
31761         (cselib_process_insn): ... here holds.
31763 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31765         PR debug/57232
31766         * var-tracking.c (vt_initialize): Apply the same condition to
31767         preserve the CFA base value.
31769 2014-02-28  Joey Ye  <joey.ye@arm.com>
31771         PR target/PR60169
31772         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31773         if reload in progress or completed.
31775 2014-02-28  Tobias Burnus  <burnus@net-b.de>
31777         PR middle-end/60147
31778         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31779         NAMELIST_DECL.
31781 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31783         * doc/tm.texi.in (Condition Code Status): Update documention for
31784         relative locations of cc0-setter and cc0-user.
31786 2014-02-27  Jeff Law  <law@redhat.com>
31788         PR rtl-optimization/52714
31789         * combine.c (try_combine): When splitting an unrecognized PARALLEL
31790         into two independent simple sets, if I3 is a jump, ensure the
31791         pattern we place into I3 is a (set (pc) ...).
31793 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
31794             Jeff Law  <law@redhat.com>
31796         PR rtl-optimization/49847
31797         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31798         are in different blocks.
31799         * doc/tm.texi (Condition Code Status): Update documention for
31800         relative locations of cc0-setter and cc0-user.
31802 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31804         PR target/59222
31805         * lra.c (lra_emit_add): Check SUBREG too.
31807 2014-02-27  Andreas Schwab  <schwab@suse.de>
31809         * config/m68k/m68k.c (m68k_option_override): Disable
31810         -flive-range-shrinkage for classic m68k.
31811         (m68k_override_options_after_change): Likewise.
31813 2014-02-27  Marek Polacek  <polacek@redhat.com>
31815         PR middle-end/59223
31816         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31817         -Wmaybe-uninitialized.
31819 2014-02-27  Alan Modra  <amodra@gmail.com>
31821         PR target/57936
31822         * reload1.c (emit_input_reload_insns): When reload_override_in,
31823         set old to rl->in_reg when rl->in_reg is a subreg.
31825 2014-02-26  Richard Biener  <rguenther@suse.de>
31827         PR bootstrap/60343
31828         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31830 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
31832         * common/config/i386/predicates.md (const1256_operand): Remove.
31833         (const2356_operand): New.
31834         (const_1_to_2_operand): Remove.
31835         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31836         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31837         (*avx512pf_gatherpf<mode>sf): Ditto.
31838         (avx512pf_gatherpf<mode>df): Ditto.
31839         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31840         (*avx512pf_gatherpf<mode>df): Ditto.
31841         (avx512pf_scatterpf<mode>sf): Ditto.
31842         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31843         (*avx512pf_scatterpf<mode>sf): Ditto.
31844         (avx512pf_scatterpf<mode>df): Ditto.
31845         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31846         (*avx512pf_scatterpf<mode>df): Ditto.
31847         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31849 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
31851         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31852         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31853         (_mm512_mask_testn_epi64_mask): Move to ...
31854         * config/i386/avx512cdintrin.h: Here.
31855         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31856         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31857         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31858         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31859         TARGET_AVX512F from TARGET_AVX512CD.
31861 2014-02-26  Richard Biener  <rguenther@suse.de>
31863         PR ipa/60327
31864         * ipa.c (walk_polymorphic_call_targets): Properly guard
31865         call to inline_update_overall_summary.
31867 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
31869         PR target/60280
31870         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31871         and latches only if requested.  Fix latch if it is removed.
31872         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31873         LOOPS_HAVE_PREHEADERS.
31875 2014-02-25  Andrew Pinski  <apinski@cavium.com>
31877         * builtins.c (expand_builtin_thread_pointer): Create a new target
31878         when the target is NULL.
31880 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
31882         PR rtl-optimization/60317
31883         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31884         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31885         * lra-assigns.c: Include params.h.
31886         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31887         other reload pseudos considerations.
31889 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31891         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31892         to use canonical form for nor<mode>3.
31894 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31896         PR target/55426
31897         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31898         conversions.
31900 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
31902         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31903         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31904         (ix86_handle_option): Handle OPT_mprefetchwt1.
31905         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31906         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31907         PREFETCHWT1 CPUID.
31908         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31909         OPTION_MASK_ISA_PREFETCHWT1.
31910         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31911         (PTA_PREFETCHWT1): New.
31912         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31913         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31914         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31915         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31916         (*prefetch_avx512pf_<mode>_: Change into ...
31917         (*prefetch_prefetchwt1_<mode>: This.
31918         * config/i386/i386.opt (mprefetchwt1): New.
31919         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31920         (_mm_prefetch): Handle intent to write.
31921         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31923 2014-02-25  Richard Biener  <rguenther@suse.de>
31925         PR middle-end/60291
31926         * emit-rtl.c (mem_attrs_htab): Remove.
31927         (mem_attrs_htab_hash): Likewise.
31928         (mem_attrs_htab_eq): Likewise.
31929         (set_mem_attrs): Always allocate new mem-attrs when something changed.
31930         (init_emit_once): Do not allocate mem_attrs_htab.
31932 2014-02-25  Richard Biener  <rguenther@suse.de>
31934         PR lto/60319
31935         * lto-opts.c (lto_write_options): Output non-explicit conservative
31936         -fwrapv, -fno-trapv and -fno-strict-overflow.
31937         * lto-wrapper.c (merge_and_complain): Handle merging those options.
31938         (run_gcc): And pass them through.
31940 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
31942         * sel-sched.c (calculate_new_fences): New parameter ptime.
31943         Calculate it as a maximum over all fence cycles.
31944         (sel_sched_region_2): Adjust the call to calculate_new_fences.
31945         Print the final schedule timing when sched_verbose.
31947 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
31949         PR rtl-optimization/60292
31950         * sel-sched.c (fill_vec_av_set): Do not reset target availability
31951         bit fot the fence instruction.
31953 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
31955         * calls.h: Fix typo in comment.
31957 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
31959         * config/pa/pa.c (pa_output_move_double): Don't valididate when
31960         adjusting offsetable addresses.
31962 2014-02-24  Guozhi Wei  <carrot@google.com>
31964         * sparseset.h (sparseset_pop): Fix the wrong index.
31966 2014-02-24  Walter Lee  <walt@tilera.com>
31968         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31969         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31970         triplet.
31971         * common/config/tilegx/tilegx-common.c
31972         (TARGET_DEFAULT_TARGET_FLAGS): Define.
31973         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31974         (LINK_SPEC): Ditto.
31975         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31976         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31977         (tilegx_gimplify_va_arg_expr): Handle big endian.
31978         (tilegx_expand_unaligned_load): Ditto.
31979         (tilegx_expand_unaligned_store): Ditto.
31980         (TARGET_RETURN_IN_MSB): New.
31981         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31982         (TARGET_ENDIAN_DEFAULT): New.
31983         (TARGET_BIG_ENDIAN): Handle big endian.
31984         (BYTES_BIG_ENDIAN): Ditto.
31985         (WORDS_BIG_ENDIAN): Ditto.
31986         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31987         (ENDIAN_SPEC): New.
31988         (EXTRA_SPECS): New.
31989         * config/tilegx/tilegx.md (extv): Handle big endian.
31990         (extzv): Ditto.
31991         (insn_st<n>): Ditto.
31992         (insn_st<n>_add<bitsuffix>): Ditto.
31993         (insn_stnt<n>): Ditto.
31994         (insn_stnt<n>_add<bitsuffix>):Ditto.
31995         (vec_interleave_highv8qi): Handle big endian.
31996         (vec_interleave_highv8qi_be): New.
31997         (vec_interleave_highv8qi_le): New.
31998         (insn_v1int_h): Handle big endian.
31999         (vec_interleave_lowv8qi): Handle big endian.
32000         (vec_interleave_lowv8qi_be): New.
32001         (vec_interleave_lowv8qi_le): New.
32002         (insn_v1int_l): Handle big endian.
32003         (vec_interleave_highv4hi): Handle big endian.
32004         (vec_interleave_highv4hi_be): New.
32005         (vec_interleave_highv4hi_le): New.
32006         (insn_v2int_h): Handle big endian.
32007         (vec_interleave_lowv4hi): Handle big endian.
32008         (vec_interleave_lowv4hi_be): New.
32009         (vec_interleave_lowv4hi_le): New.
32010         (insn_v2int_l): Handle big endian.
32011         (vec_interleave_highv2si): Handle big endian.
32012         (vec_interleave_highv2si_be): New.
32013         (vec_interleave_highv2si_le): New.
32014         (insn_v4int_h): Handle big endian.
32015         (vec_interleave_lowv2si): Handle big endian.
32016         (vec_interleave_lowv2si_be): New.
32017         (vec_interleave_lowv2si_le): New.
32018         (insn_v4int_l): Handle big endian.
32019         * config/tilegx/tilegx.opt (mbig-endian): New option.
32020         (mlittle-endian): New option.
32021         * doc/install.texi: Document tilegxbe-linux.
32022         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32024 2014-02-24  Martin Jambor  <mjambor@suse.cz>
32026         PR ipa/60266
32027         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32028         there are no parameter descriptors.
32030 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
32032         PR rtl-optimization/60268
32033         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32034         initialization to ...
32035         (sched_rgn_init): ... here.
32036         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32038 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32040         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32041         names.
32043 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32045         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32046         definition.
32048 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32050         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32051         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32053 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32055         * config/microblaze/predicates.md: Add cmp_op predicate.
32056         * config/microblaze/microblaze.md: Add branch_compare instruction
32057         which uses cmp_op predicate and emits cmp insn before branch.
32058         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32059         to microblaze_expand_conditional_branch and consolidate logic.
32060         (microblaze_expand_conditional_branch): emit branch_compare
32061         insn instead of handling cmp op separate from branch insn.
32063 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32065         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32066         to permit subregs.
32068 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32070         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32071         define_insn with define_expand and new define_insn
32072         *altivec_lve<VI_char>x_internal.
32073         (altivec_stve<VI_char>x): Replace define_insn with define_expand
32074         and new define_insn *altivec_stve<VI_char>x_internal.
32075         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32076         prototype.
32077         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32078         lve*x built-ins.
32079         (altivec_expand_stvex_be): New function.
32081 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
32083         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32084         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32085         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32086         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32088 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
32090         PR target/60298
32091         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32092         instead of emit_move_insn.
32094 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32096         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32097         vspltw with vsldoi.
32098         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32099         gen_altivec_vsumsws.
32101 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32103         * config/rs6000/altivec.md (altivec_lvxl): Rename as
32104         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32105         (altivec_lvxl_<mode>): New define_expand incorporating
32106         -maltivec=be semantics where needed.
32107         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32108         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32109         semantics where needed.
32110         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32111         (altivec_stvx_<mode>): New define_expand incorporating
32112         -maltivec=be semantics where needed.
32113         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32114         VM2 iterator instead of V4SI.
32115         (altivec_stvxl_<mode>): New define_expand incorporating
32116         -maltivec=be semantics where needed.
32117         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32118         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32119         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32120         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32121         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32122         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32123         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32124         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32125         ALTIVEC_BUILTIN_STVXL.
32126         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32127         (altivec_expand_stvx_be): Likewise.
32128         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32129         (altivec_expand_lvx_be): Likewise.
32130         (altivec_expand_stvx_be): Likewise.
32131         (altivec_expand_builtin): Add cases for
32132         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32133         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32134         (altivec_init_builtins): Add definitions for
32135         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32136         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32138 2014-02-21  Catherine Moore  <clm@codesourcery.com>
32140         * doc/invoke.texi (mvirt, mno-virt): Document.
32141         * config/mips/mips.opt (mvirt): New option.
32142         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32144 2014-02-21  Richard Biener  <rguenther@suse.de>
32146         PR tree-optimization/60276
32147         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32148         (STMT_VINFO_MIN_NEG_DIST): New macro.
32149         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32150         STMT_VINFO_MIN_NEG_DIST.
32151         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32152         made for negative dependence distances still hold.
32154 2014-02-21  Richard Biener  <rguenther@suse.de>
32156         PR middle-end/60291
32157         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32158         DECL_INITIAL for globals not in the current function context.
32160 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32162         PR tree-optimization/56490
32163         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32164         * tree-ssa-uninit.c: Include params.h.
32165         (compute_control_dep_chain): Add num_calls argument, return false
32166         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32167         num_calls to recursive call.
32168         (find_predicates): Change dep_chain into normal array,
32169         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32170         variable and adjust compute_control_dep_chain caller.
32171         (find_def_preds): Likewise.
32173 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
32175         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32176         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32178 2014-02-21  Nick Clifton  <nickc@redhat.com>
32180         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32181         (pushhi1): Likewise.
32182         (popqi1): Add mode to pre_dec.
32183         (pophi1): Likewise.
32185 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32187         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32188         mode for mask of V8SFmode permutation.
32190 2014-02-20  Richard Henderson  <rth@redhat.com>
32192         PR c++/60272
32193         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32194         a new pseudo for OLDVAL.
32196 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
32198         PR target/57896
32199         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32200         gen_reg_rtx if d->testing_p.
32201         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32202         if d->testing_p and we will certainly return true.
32203         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
32204         if d->testing_p.
32206 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
32208         * emit-rtl.c (gen_reg_rtx): Assert that
32209         crtl->emit.regno_pointer_align_length is non-zero.
32211 2014-02-20  Richard Henderson  <rth@redhat.com>
32213         PR c++/60272
32214         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32215         on failure the store back into EXPECT.
32217 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
32218             Sandra Loosemore  <sandra@codesourcery.com>
32220         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32221         * config/nios2/nios2.c (nios2_function_profiler): Add
32222         -fPIC (flag_pic == 2) support.
32223         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32224         (nios2_large_offset_p): New function.
32225         (nios2_unspec_reloc_p): Move up position, update to use
32226         nios2_large_offset_p.
32227         (nios2_unspec_address): Remove function.
32228         (nios2_unspec_offset): New function.
32229         (nios2_large_got_address): New function.
32230         (nios2_got_address): Add large offset support.
32231         (nios2_legitimize_tls_address): Update usage of removed and new
32232         functions.
32233         (nios2_symbol_binds_local_p): New function.
32234         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32235         (nios2_legitimize_address): Update to use nios2_large_offset_p.
32236         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32237         (nios2_print_operand): Merge H/L processing, add hiadj/lo
32238         processing for (const (unspec ...)).
32239         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32241 2014-02-20  Richard Biener  <rguenther@suse.de>
32243         * tree-cfg.c (replace_uses_by): Mark altered BBs before
32244         doing the substitution.
32245         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32247 2014-02-20  Martin Jambor  <mjambor@suse.cz>
32249         PR ipa/55260
32250         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32251         info when checking whether lattices are bottom.
32253 2014-02-20  Richard Biener  <rguenther@suse.de>
32255         PR middle-end/60221
32256         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32257         regions at -O0.
32259 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
32261         PR ipa/58555
32262         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32263         parameter specifying the scaling.
32264         (inline_call): Update.
32265         (want_inline_recursively): Guard division by zero.
32266         (recursive_inlining): Update.
32267         * ipa-inline.h (clone_inlined_nodes): Update.
32269 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32271         PR target/60204
32272         * config/i386/i386.c (classify_argument): Pass structures of size
32273         64 bytes or less in register.
32275 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32276             Kirill Yukhin  <kirill.yukhin@intel.com>
32278         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32279         (_mm_rcp28_round_ss): Ditto.
32280         (_mm_rsqrt28_round_sd): Ditto.
32281         (_mm_rsqrt28_round_ss): Ditto.
32282         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32283         (_mm_rcp14_round_ss): Ditto.
32284         (_mm_rsqrt14_round_sd): Ditto.
32285         (_mm_rsqrt14_round_ss): Ditto.
32286         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32287         the first input operand, get rid of match_dup.
32288         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32289         attribute to sse.
32290         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32291         Ditto.
32292         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32293         operand as the first input operand, set type attribute.
32294         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32295         Set type attribute.
32296         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32297         operand as the first input operand, set type attribute.
32299 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32301         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32302         bit of zero.
32304 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32306         PR target/60207
32307         * config/i386/i386.c (construct_container): Remove TFmode check
32308         for X86_64_INTEGER_CLASS.
32310 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
32312         PR target/59794
32313         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32314         only when -Wpsabi is enabled.
32316 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
32318         PR target/59799
32319         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32320         passing arrays in registers are the same as for structs, so remove the
32321         special case for them.
32323 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32325         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32326         destination type, extract only the valid bits if the source type is not
32327         integral and has a different mode.
32329 2014-02-19  Richard Biener  <rguenther@suse.de>
32331         PR ipa/60243
32332         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32333         for all calls.
32335 2014-02-19  Richard Biener  <rguenther@suse.de>
32337         PR ipa/60243
32338         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32339         (ipa_modify_call_arguments): Emit an argument load explicitely and
32340         preserve virtual SSA form there and for the replacement call.
32341         Do not update SSA form nor free dominance info.
32343 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32345         * ipa.c (function_and_variable_visibility): Also clear WEAK
32346         flag when disolving COMDAT_GROUP.
32348 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32350         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32351         * ipa-prop.c (ipa_set_jf_known_type): Return early when
32352         not devirtualizing.
32353         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32354         do more sanity checks.
32355         (detect_type_change): Return true when giving up early.
32356         (compute_complex_assign_jump_func): Fix type parameter of
32357         ipa_set_ancestor_jf.
32358         (compute_complex_ancestor_jump_func): Likewise.
32359         (update_jump_functions_after_inlining): Fix updating of
32360         ancestor function.
32361         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32363 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32365         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32366         inline clones when edge disappears.
32368 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
32370         PR target/60203
32371         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32372         Split 64-bit moves into 2 patterns.  Do not allow the use of
32373         direct move for TDmode in little endian, since the decimal value
32374         has little endian bytes within a word, but the 64-bit pieces are
32375         ordered in a big endian fashion, and normal subreg's of TDmode are
32376         not allowed.
32377         (mov<mode>_64bit_dm): Likewise.
32378         (movtd_64bit_nodm): Likewise.
32380 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32382         PR tree-optimization/60174
32383         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32384         statement of an SSA_NAME that occurs in an abnormal PHI node.
32386 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32388         PR sanitizer/60142
32389         * final.c (SEEN_BB): Remove.
32390         (SEEN_NOTE, SEEN_EMITTED): Renumber.
32391         (final_scan_insn): Don't force_source_line on second
32392         NOTE_INSN_BASIC_BLOCK.
32394 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
32396         PR target/60205
32397         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32398         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32399         (type_natural_mode): Warn ABI change when %zmm register is not
32400         available for AVX512F vector value passing.
32402 2014-02-18  Kai Tietz  <ktietz@redhat.com>
32404         PR target/60193
32405         * config/i386/i386.c (ix86_expand_prologue): Use value in
32406         rax register as displacement when restoring %r10 or %rax.
32407         Fix wrong offset when restoring both registers.
32409 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32411         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32412         assertion with conditional return.
32414 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32415             Uros Bizjak  <ubizjak@gmail.com>
32417         PR driver/60233
32418         * config/i386/driver-i386.c (host_detect_local_cpu): If
32419         YMM state is not saved by the OS, also clear has_f16c.  Move
32420         CPUID 0x80000001 handling before YMM state saving checking.
32422 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
32424         PR rtl-optimization/58960
32425         * haifa-sched.c (alloc_global_sched_pressure_data): New,
32426         factored out from ...
32427         (sched_init): ... here.
32428         (free_global_sched_pressure_data): New, factored out from ...
32429         (sched_finish): ... here.
32430         * sched-int.h (free_global_sched_pressure_data): Declare.
32431         * sched-rgn.c (nr_regions_initial): New static global.
32432         (haifa_find_rgns): Initialize it.
32433         (schedule_region): Disable sched-pressure for the newly
32434         generated regions.
32436 2014-02-17  Richard Biener  <rguenther@suse.de>
32438         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32439         release SSA defs of pattern stmts.
32441 2014-02-17  Richard Biener  <rguenther@suse.de>
32443         * tree-inline.c (expand_call_inline): Release the virtual
32444         operand defined by the call we are about to inline.
32446 2014-02-17  Richard Biener  <rguenther@suse.de>
32448         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32450 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
32451             Ilya Tocar  <ilya.tocar@intel.com>
32453         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32454         arguments order in builtin.
32455         (_mm512_permutexvar_epi64): Ditto.
32456         (_mm512_mask_permutexvar_epi64): Ditto
32457         (_mm512_maskz_permutexvar_epi32): Ditto
32458         (_mm512_permutexvar_epi32): Ditto
32459         (_mm512_mask_permutexvar_epi32): Ditto
32461 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32463         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32464         (p8_vmrgow): Likewise.
32466 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32468         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32469         endian targets.
32471 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
32473         PR target/60203
32474         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32475         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32476         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
32477         using direct move instructions on ISA 2.07.  Also adjust
32478         instruction length for 64-bit.
32479         (mov<mode>_64bit, TFmode/TDmode): Likewise.
32480         (mov<mode>_32bit, TFmode/TDmode): Likewise.
32482 2014-02-15  Alan Modra  <amodra@gmail.com>
32484         PR target/58675
32485         PR target/57935
32486         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32487         find_replacement on parts of insn rtl that might be reloaded.
32489 2014-02-15  Richard Biener  <rguenther@suse.de>
32491         PR tree-optimization/60183
32492         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32493         (tree_ssa_phiprop): Calculate and free post-dominators.
32495 2014-02-14  Jeff Law  <law@redhat.com>
32497         PR rtl-optimization/60131
32498         * ree.c (get_extended_src_reg): New function.
32499         (combine_reaching_defs): Use it rather than assuming location of REG.
32500         (find_and_remove_re): Verify first operand of extension is
32501         a REG before adding the insns to the copy list.
32503 2014-02-14  Roland McGrath  <mcgrathr@google.com>
32505         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32506         * configure: Regenerated.
32507         * config.in: Regenerated.
32508         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32509         instead of ASM_SHORT.
32511 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
32512             Richard Earnshaw  <rearnsha@arm.com>
32514         PR rtl-optimization/59535
32515         * lra-constraints.c (process_alt_operands): Encourage alternative
32516         when unassigned pseudo class is superset of the alternative class.
32517         (inherit_reload_reg): Don't inherit when optimizing for code size.
32518         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32519         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32520         modes not less than 4 for Thumb1.
32522 2014-02-14  Kyle McMartin  <kyle@redhat.com>
32524         PR pch/60010
32525         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32527 2014-02-14  Richard Biener  <rguenther@suse.de>
32529         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32530         (get_frame_arg): Drop the assert with langhook types_compatible_p.
32531         Do not strip INDIRECT_REFs.
32533 2014-02-14  Richard Biener  <rguenther@suse.de>
32535         PR lto/60179
32536         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32537         DECL_FUNCTION_SPECIFIC_TARGET.
32538         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32539         * tree-streamer-out.c (pack_ts_target_option): Remove.
32540         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32541         (write_ts_function_decl_tree_pointers): Do not stream
32542         DECL_FUNCTION_SPECIFIC_TARGET.
32543         * tree-streamer-in.c (unpack_ts_target_option): Remove.
32544         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32545         (lto_input_ts_function_decl_tree_pointers): Do not stream
32546         DECL_FUNCTION_SPECIFIC_TARGET.
32548 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
32550         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32551         (get_initial_def_for_induction, vectorizable_induction): Ignore
32552         debug stmts when looking for exit_phi.
32553         (vectorizable_live_operation): Fix up condition.
32555 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32557         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32558         nreverse() because it changes the content of original tree list.
32560 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32562         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32563         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32565 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32567         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32568         GNU coding standards.
32570 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32572         PR debug/60152
32573         * dwarf2out.c (gen_subprogram_die): Don't call
32574         add_calling_convention_attribute if subr_die is old_die.
32576 2014-02-13  Sharad Singhai  <singhai@google.com>
32578         * doc/optinfo.texi: Fix order of nodes.
32580 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
32582         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32583         operands[2], not operands[3].
32585 2014-02-13  Richard Biener  <rguenther@suse.de>
32587         PR bootstrap/59878
32588         * doc/install.texi (ISL): Update recommended version to 0.12.2,
32589         mention the possibility of an in-tree build.
32590         (CLooG): Update recommended version to 0.18.1, mention the
32591         possibility of an in-tree build and clarify that the ISL
32592         bundled with CLooG does not work.
32594 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32596         PR target/43546
32597         * expr.c (compress_float_constant): If x is a hard register,
32598         extend into a pseudo and then move to x.
32600 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32602         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32603         caused by bad second argument to warning_at() with -mhotpatch and
32604         nested functions (e.g. with gfortran).
32606 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
32608         * opts.c (option_name): Remove "enabled by default" rider.
32610 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
32612         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32614 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32615             Uros Bizjak  <ubizjak@gmail.com>
32617         PR target/60151
32618         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32619         * configure: Regenerated.
32621 2014-02-12  Richard Biener  <rguenther@suse.de>
32623         * vec.c (vec_prefix::calculate_allocation): Move as
32624         inline variant to vec.h.
32625         (vec_prefix::calculate_allocation_1): New out-of-line version.
32626         * vec.h (vec_prefix::calculate_allocation_1): Declare.
32627         (vec_prefix::m_has_auto_buf): Rename to ...
32628         (vec_prefix::m_using_auto_storage): ... this.
32629         (vec_prefix::calculate_allocation): Inline the easy cases
32630         and dispatch to calculate_allocation_1 which doesn't need the
32631         prefix address.
32632         (va_heap::reserve): Use gcc_checking_assert.
32633         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32634         m_using_auto_storage.
32635         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32636         member and adjust.
32637         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32638         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32639         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32641 2014-02-12  Richard Biener  <rguenther@suse.de>
32643         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32644         when we found a dependence.
32646 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
32648         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32649         common code...
32650         (maybe_fold_stmt): ... into this new function.
32651         * omp-low.c (lower_omp): Update comment.
32653         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32654         last use.
32656         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32657         dereference.
32659 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
32661         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32662         identifiers in comments.
32663         (cortexa53_extra_costs): Likewise.
32664         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32665         (cortexa7_extra_costs): Likewise.
32666         (cortexa12_extra_costs): Likewise.
32667         (cortexa15_extra_costs): Likewise.
32668         (v7m_extra_costs): Likewise.
32670 2014-02-12  Richard Biener  <rguenther@suse.de>
32672         PR middle-end/60092
32673         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32674         of posix_memalign being successful.
32675         (lower_stmt): Restrict lowering of posix_memalign to when
32676         -ftree-bit-ccp is enabled.
32678 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32680         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32681         arg_loc.
32682         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32684 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
32686         PR rtl-optimization/60116
32687         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32688         other_insn once the combination has been validated.
32690 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
32692         PR lto/59468
32693         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32694         and wrapper.
32695         * ipa-devirt.c: Include demangle.h
32696         (odr_violation_reported): New static variable.
32697         (add_type_duplicate): Update odr_violations.
32698         (maybe_record_node): Add completep parameter; update it.
32699         (record_target_from_binfo): Add COMPLETEP parameter;
32700         update it as needed.
32701         (possible_polymorphic_call_targets_1): Likewise.
32702         (struct polymorphic_call_target_d): Add nonconstruction_targets;
32703         rename FINAL to COMPLETE.
32704         (record_targets_from_bases): Sanity check we found the binfo;
32705         fix COMPLETEP updating.
32706         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32707         parameter, fix computing of COMPLETEP.
32708         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32709         at LTO time do demangling.
32710         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32711         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32712         parameter.
32713         (gimple_get_virt_method_for_binfo): Likewise.
32714         * gimple-fold.h (gimple_get_virt_method_for_binfo,
32715         gimple_get_virt_method_for_vtable): Update prototypes.
32717 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
32719         PR target/49008
32720         * genautomata.c (add_presence_absence): Fix typo with
32721         {final_}presence_list.
32723 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
32725         PR target/60137
32726         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32727         for VSX/Altivec vectors that land in GPR registers.
32729 2014-02-11  Richard Henderson  <rth@redhat.com>
32730             Jakub Jelinek  <jakub@redhat.com>
32732         PR debug/59776
32733         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32734         around drhs if type conversion to lacc->type is not useless.
32736 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32738         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32739         tuning struct.
32740         (cortex-a57.cortex-a53): Likewise.
32741         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32743 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32745         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32746         arm_restrict_it.
32748 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
32750         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32751         add_options_for_arm_vfp3.
32753 2014-02-11  Jeff Law  <law@redhat.com>
32755         PR middle-end/54041
32756         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32757         object with an undesirable mode.
32759 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32761         PR libgomp/60107
32762         * config/i386/sol2-9.h: New file.
32763         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32764         *-*-solaris2.9*): Use it.
32766 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
32768         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32769         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32771 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
32773         * config/microblaze/microblaze.c: Extend mcpu version format
32775 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
32777         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32779 2014-02-10  Richard Henderson  <rth@redhat.com>
32781         PR target/59927
32782         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32783         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32784         ms-abi vs -mno-accumulate-outgoing-args.
32785         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32786         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32787         respect to ms-abi.
32789 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32791         PR middle-end/60080
32792         * cfgexpand.c (expand_asm_operands): Attach source location to
32793         ASM_INPUT rtx objects.
32794         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32796 2014-02-10  Nick Clifton  <nickc@redhat.com>
32798         * config/mn10300/mn10300.c (popcount): New function.
32799         (mn10300_expand_prologue): Include saved registers in stack usage
32800         count.
32802 2014-02-10  Jeff Law  <law@redhat.com>
32804         PR middle-end/52306
32805         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32806         when changing the SET_DEST of a prior insn to avoid an input reload.
32808 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32810         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32811         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32812         -mcall-openbsd, or -mcall-linux.
32813         (CC1_ENDIAN_BIG_SPEC): Remove.
32814         (CC1_ENDIAN_LITTLE_SPEC): Remove.
32815         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32816         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32817         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32818         and %cc1_endian_default.
32819         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32821 2014-02-10  Richard Biener  <rguenther@suse.de>
32823         PR tree-optimization/60115
32824         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32825         MEM_REF handling.  Properly verify that the accesses are not
32826         out of the objects bound.
32828 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32830         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32831         coretex to cortex.
32833 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
32835         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32836         proper constants and fix formatting.
32837         (possible_polymorphic_call_targets): Fix formatting.
32839 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
32840             Ilya Tocar  <ilya.tocar@intel.com>
32842         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32843         (_mm512_loadu_epi32): Renamed into...
32844         (_mm512_loadu_si512): This.
32845         (_mm512_storeu_epi32): Renamed into...
32846         (_mm512_storeu_si512): This.
32847         (_mm512_maskz_ceil_ps): Removed.
32848         (_mm512_maskz_ceil_pd): Ditto.
32849         (_mm512_maskz_floor_ps): Ditto.
32850         (_mm512_maskz_floor_pd): Ditto.
32851         (_mm512_floor_round_ps): Ditto.
32852         (_mm512_floor_round_pd): Ditto.
32853         (_mm512_ceil_round_ps): Ditto.
32854         (_mm512_ceil_round_pd): Ditto.
32855         (_mm512_mask_floor_round_ps): Ditto.
32856         (_mm512_mask_floor_round_pd): Ditto.
32857         (_mm512_mask_ceil_round_ps): Ditto.
32858         (_mm512_mask_ceil_round_pd): Ditto.
32859         (_mm512_maskz_floor_round_ps): Ditto.
32860         (_mm512_maskz_floor_round_pd): Ditto.
32861         (_mm512_maskz_ceil_round_ps): Ditto.
32862         (_mm512_maskz_ceil_round_pd): Ditto.
32863         (_mm512_expand_pd): Ditto.
32864         (_mm512_expand_ps): Ditto.
32865         * config/i386/i386.c (ix86_builtins): Remove
32866         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32867         (bdesc_args): Ditto.
32868         * config/i386/predicates.md (const1256_operand): New.
32869         (const_1_to_2_operand): Ditto.
32870         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32871         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32872         (*avx512pf_gatherpf<mode>sf): Ditto.
32873         (avx512pf_gatherpf<mode>df): Ditto.
32874         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32875         (*avx512pf_gatherpf<mode>df): Ditto.
32876         (avx512pf_scatterpf<mode>sf): Ditto.
32877         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32878         (*avx512pf_scatterpf<mode>sf): Ditto.
32879         (avx512pf_scatterpf<mode>df): Ditto.
32880         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32881         (*avx512pf_scatterpf<mode>df): Ditto.
32882         (avx512f_expand<mode>): Removed.
32883         (<shift_insn><mode>3<mask_name>): Change predicate type.
32885 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
32887         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32888         not at the end of datarefs vector use ordered_remove to avoid
32889         reordering datarefs vector.
32891         PR c/59984
32892         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32893         mark local addressable non-static vars as GOVD_PRIVATE
32894         instead of GOVD_LOCAL.
32895         * omp-low.c (lower_omp_for): Move gimple_bind_vars
32896         and BLOCK_VARS of gimple_bind_block to new_stmt rather
32897         than copying them.
32899         PR middle-end/60092
32900         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32901         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32902         assume_aligned or alloc_align attributes.
32903         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32904         arguments.  Handle also assume_aligned and alloc_align attributes.
32905         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
32906         calls to functions with assume_aligned or alloc_align attributes.
32907         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32909 2014-02-08  Terry Guo  <terry.guo@arm.com>
32911         * doc/invoke.texi: Document ARM -march=armv7e-m.
32913 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
32915         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32916         flag on __cilkrts_rethrow builtin.
32918         PR ipa/60026
32919         * ipa-cp.c (determine_versionability): Fail at -O0
32920         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32921         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32923         Revert:
32924         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
32926         PR ipa/60026
32927         * tree-inline.c (copy_forbidden): Fail for
32928         __attribute__((optimize (0))) functions.
32930 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
32932         * varpool.c: Include pointer-set.h.
32933         (varpool_remove_unreferenced_decls): Variables in other partitions
32934         will not be output; be however careful to not lose information
32935         about partitioning.
32937 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
32939         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32940         lookup in the vtable constructor.
32942 2014-02-07  Jeff Law  <law@redhat.com>
32944         PR target/40977
32945         * config/m68k/m68k.md (ashldi_extsi): Turn into a
32946         define_insn_and_split.
32948         * ipa-inline.c (inline_small_functions): Fix typos.
32950 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32952         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32953         (s390_can_use_return_insn): Declare.
32954         * config/s390/s390.h (EPILOGUE_USES): Define.
32955         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32956         instructions.
32957         (s390_chunkify_start): Handle return JUMP_LABELs.
32958         (s390_early_mach): Emit a main_pool instruction on the entry edge.
32959         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32960         (s390_can_use_return_insn): New functions.
32961         (s390_fix_long_loop_prediction): Handle conditional returns.
32962         (TARGET_SET_UP_BY_PROLOGUE): Define.
32963         * config/s390/s390.md (ANY_RETURN): New code iterator.
32964         (*creturn, *csimple_return, return, simple_return): New patterns.
32966 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32968         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32969         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
32970         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
32971         REG_CFA_RESTORE list when deciding not to restore a register.
32973 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32975         * config/s390/s390.c: Include tree-pass.h and context.h.
32976         (s390_early_mach): New function, split out from...
32977         (s390_emit_prologue): ...here.
32978         (pass_data_s390_early_mach): New pass structure.
32979         (pass_s390_early_mach): New class.
32980         (s390_option_override): Create and register early_mach pass.
32981         Move to end of file.
32983 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32985         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32986         to match for the exit block.
32988 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32990         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32991         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32992         Reject misaligned operands.
32994 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32996         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32998 2014-02-07  Richard Biener  <rguenther@suse.de>
33000         PR middle-end/60092
33001         * gimple-low.c (lower_builtin_posix_memalign): New function.
33002         (lower_stmt): Call it to lower posix_memalign in a way
33003         to make alignment info accessible.
33005 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
33007         PR c++/60082
33008         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33009         __builtin_setjmp_receiver.
33011 2014-02-07  Richard Biener  <rguenther@suse.de>
33013         PR middle-end/60092
33014         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33015         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33016         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33017         Handle BUILT_IN_POSIX_MEMALIGN.
33018         (find_func_clobbers): Likewise.
33019         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33020         (call_may_clobber_ref_p_1): Likewise.
33022 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33024         PR ipa/59918
33025         * ipa-devirt.c (record_target_from_binfo): Remove overactive
33026         sanity check.
33028 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33030         PR ipa/59469
33031         * lto-cgraph.c (lto_output_node): Use
33032         symtab_get_symbol_partitioning_class.
33033         (lto_output_varpool_node): likewise.
33034         (symtab_get_symbol_partitioning_class): Move here from
33035         lto/lto-partition.c
33036         * cgraph.h (symbol_partitioning_class): Likewise.
33037         (symtab_get_symbol_partitioning_class): Declare.
33039 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33041         * ggc.h (ggc_internal_cleared_alloc): New macro.
33042         * vec.h (vec_safe_copy): Handle memory stats.
33043         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33044         * target-globals.c (save_target_globals): Likewise.
33046 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33048         PR target/60077
33049         * expr.c (emit_move_resolve_push): Export; be bit more selective
33050         on when to clear alias set.
33051         * expr.h (emit_move_resolve_push): Declare.
33052         * function.h (struct function): Add tail_call_marked.
33053         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33054         * config/i386/i386-protos.h (ix86_expand_push): Remove.
33055         * config/i386/i386.md (TImode move expander): De not call
33056         ix86_expand_push.
33057         (FP push expanders): Preserve memory attributes.
33058         * config/i386/sse.md (push<mode>1): Remove.
33059         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33060         (ix86_expand_push): Remove.
33061         * config/i386/mmx.md (push<mode>1): Remove.
33063 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33065         PR rtl-optimization/60030
33066         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33067         lopart with paradoxical subreg before shifting it up by hprec.
33069 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33071         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33072         Remove extra newline at end of file.
33073         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33074         (arm_issue_rate): Handle cortexa57.
33075         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33076         (cortex-a57.cortex-a53): Likewise.
33078 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33080         PR target/59575
33081         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33082         don't record in REG_FRAME_RELATED_EXPR registers not set in that
33083         bitmask.
33084         (arm_expand_prologue): Adjust all callers.
33085         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33086         info, registers also at the lowest numbered registers side.  Use
33087         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33088         XEXP.
33090         PR debug/59992
33091         * var-tracking.c (adjust_mems): Before adding a SET to
33092         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33094 2014-02-06  Alan Modra  <amodra@gmail.com>
33096         PR target/60032
33097         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33098         change SDmode to DDmode when lra_in_progress.
33100 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33102         PR middle-end/59150
33103         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33104         free_data_ref on the dr first, and before goto again also set dr
33105         to the next dr.  For simd_lane_access, free old datarefs[i] before
33106         overwriting it.  For get_vectype_for_scalar_type failure, don't
33107         free_data_ref if simd_lane_access.
33109         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33111         PR target/60062
33112         * tree.h (opts_for_fn): New inline function.
33113         (opt_for_fn): Define.
33114         * config/i386/i386.c (ix86_function_regparm): Use
33115         opt_for_fn (decl, optimize) instead of optimize.
33117 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33119         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33120         for SYMBOL_REF in large memory model.
33122 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33124         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33125         and crypto support.
33126         (cortex-a57): Likewise.
33127         (cortex-a57.cortex-a53): Likewise.
33129 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
33130             Kugan Vivekanandarajah  <kuganv@linaro.org>
33132         * config/arm/arm.c (arm_vector_alignment_reachable): Check
33133         unaligned_access.
33134         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33136 2014-02-06  Richard Biener  <rguenther@suse.de>
33138         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33139         set_loop_copy and initialize_original_copy_tables.
33141 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
33143         * config/aarch64/aarch64-simd.md
33144         (aarch64_ashr_simddi): Change QI to SI.
33146 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33147             Jakub Jelinek  <jakub@redhat.com>
33149         PR middle-end/60013
33150         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33151         of the dataflow.
33153 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33155         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33156         CODE_FOR_altivec_vpku[hw]um to
33157         CODE_FOR_altivec_vpku[hw]um_direct.
33158         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33159         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33160         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33161         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33163 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33165         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33166         generation for -maltivec=be.
33167         (altivec_vsumsws): Simplify redundant test.
33169 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33171         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33172         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33173         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33174         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33175         gen_altivec_vpkuwum.
33176         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33177         BYTES_BIG_ENDIAN.
33178         (altivec_vpks<VI_char>ss): Likewise.
33179         (altivec_vpks<VI_char>us): Likewise.
33180         (altivec_vpku<VI_char>us): Likewise.
33181         (altivec_vpku<VI_char>um): Likewise.
33182         (altivec_vpku<VI_char>um_direct): New (copy of
33183         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33184         internal use).
33185         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33186         target is little endian and -maltivec=be is not specified.
33187         (*altivec_vupkhs<VU_char>_direct): New (copy of
33188         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33189         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33190         target is little endian and -maltivec=be is not specified.
33191         (*altivec_vupkls<VU_char>_direct): New (copy of
33192         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33193         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33194         little endian and -maltivec=be is not specified.
33195         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33196         little endian and -maltivec=be is not specified.
33198 2014-02-05  Richard Henderson  <rth@redhat.com>
33200         PR debug/52727
33201         * combine-stack-adj.c: Revert r206943.
33202         * sched-int.h (struct deps_desc): Add last_args_size.
33203         * sched-deps.c (init_deps): Initialize it.
33204         (sched_analyze_insn): Add OUTPUT dependencies between insns that
33205         contain REG_ARGS_SIZE notes.
33207 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33209         * lto-cgraph.c (asm_nodes_output): Make global.
33210         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33211         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33212         (driver_handle_option): Handle OPT_fwpa.
33214 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
33216         PR ipa/59947
33217         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33218         a comment typo and formatting issue.  If odr_hash hasn't been
33219         created, return vNULL and set *completep to false.
33221         PR middle-end/57499
33222         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33223         bb with no successors.
33225 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
33227         PR target/59718
33228         * doc/invoke.texi (-march): Clarify documentation for ARM.
33229         (-mtune): Likewise.
33230         (-mcpu): Likewise.
33232 2014-02-05  Richard Biener  <rguenther@suse.de>
33234         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33235         when not vectorizing because of too many alias checks.
33236         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33237         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33239 2014-02-05  Nick Clifton  <nickc@redhat.com>
33241         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33242         accept extended registers in any mode when compiling for the MN10300.
33244 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
33246         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33247         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33248         sanitization attributes.
33249         (can_inline_edge_p): Likewise.
33250         (sanitize_attrs_match_for_inline_p): New function.
33252 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33254         * ipa-prop.c (detect_type_change): Shor circuit testing of
33255         type changes on THIS pointer.
33257 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
33259         PR target/59777
33260         * config/pa/pa.c (legitimize_tls_address): Return original address
33261         if not passed a SYMBOL_REF rtx.
33262         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33263         addresses.
33264         (pa_emit_move_sequence): Simplify TLS source operands.
33265         (pa_legitimate_constant_p): Reject all TLS constants.
33266         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33267         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33269 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33271         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33272         groups when we know they are controlled by LTO.
33273         * varasm.c (default_binds_local_p_1): If object is in other partition,
33274         it will be resolved locally.
33276 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33278         * config/host-linux.c (linux_gt_pch_use_address): Don't
33279         use SSIZE_MAX because it is not always defined.
33281 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
33283         PR bootstrap/59913
33284         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33285         threshold for pseudo splitting.
33286         (update_ebb_live_info): Process call argument hard registers and
33287         hard registers from insn definition too.
33288         (max_small_class_regs_num): New constant.
33289         (inherit_in_ebb): Update live hard regs through EBBs.  Update
33290         reloads_num only for small register classes.  Don't split for
33291         outputs of jumps.
33293 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
33295         PR ipa/60058
33296         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33297         is non-null.
33299 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33301         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33302         visibility is safe.
33304 2014-02-04  Marek Polacek  <polacek@redhat.com>
33306         * gdbinit.in (pel): Define.
33308 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33310         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33311         behavior.
33313 2014-02-04  Richard Biener  <rguenther@suse.de>
33315         PR lto/59723
33316         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33317         in function context local.
33318         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33319         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33320         similar to LTO_imported_decl_ref.
33322 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33324         PR tree-optimization/60002
33325         * cgraphclones.c (build_function_decl_skip_args): Clear
33326         DECL_LANG_SPECIFIC.
33328         PR tree-optimization/60023
33329         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33330         false to gsi_replace.
33331         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33332         has been in some EH region and vec_stmt could throw, add
33333         vec_stmt into the same EH region.
33334         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33335         has no lhs, ignore it.
33336         * internal-fn.c (expand_MASK_LOAD): Likewise.
33338         PR ipa/60026
33339         * tree-inline.c (copy_forbidden): Fail for
33340         __attribute__((optimize (0))) functions.
33342         PR other/58712
33343         * omp-low.c (simd_clone_struct_copy): If from->inbranch
33344         is set, copy one less argument.
33345         (expand_simd_clones): Don't subtract clone_info->inbranch
33346         from simd_clone_struct_alloc argument.
33348         PR rtl-optimization/57915
33349         * recog.c (simplify_while_replacing): If all unary/binary/relational
33350         operation arguments are constant, attempt to simplify those.
33352         PR middle-end/59261
33353         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33354         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33356 2014-02-04  Richard Biener  <rguenther@suse.de>
33358         PR tree-optimization/60012
33359         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33360         TBAA disambiguation to all DDRs.
33362 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33364         PR target/59788
33365         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33366         (LINK_SPEC): Use it for -shared, -shared-libgcc.
33368 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33370         PR ipa/59882
33371         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33373 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33375         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33376         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33378 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33380         PR ipa/59831
33381         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33382         to figure out targets of polymorphic calls with known decl.
33383         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33384         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33385         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33386         (get_polymorphic_call_info): ... here.
33387         (get_polymorphic_call_info_from_invariant): New function.
33389 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33391         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33392         lookup via vtable pointer; check for type consistency
33393         and turn inconsitent facts into UNREACHABLE.
33394         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33395         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33396         type inconsistent querries; return UNREACHABLE instead.
33398 2014-02-03  Richard Henderson  <rth@twiddle.net>
33400         PR tree-opt/59924
33401         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33402         already processed this node.
33403         (normalize_one_pred_1): Pass along mark_set.
33404         (normalize_one_pred): Create and destroy a pointer_set_t.
33405         (normalize_one_pred_chain): Likewise.
33407 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
33409         PR gcov-profile/58602
33410         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33412 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33414         PR ipa/59831
33415         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33416         -fno-devirtualize; try to devirtualize by the knowledge of
33417         virtual table pointer given by aggregate propagation.
33418         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33419         (ipa_print_node_jump_functions): Dump also offset that
33420         is relevant for polymorphic calls.
33421         (determine_known_aggregate_parts): Add arg_type parameter; use it
33422         instead of determining the type from pointer type.
33423         (ipa_compute_jump_functions_for_edge): Update call of
33424         determine_known_aggregate_parts.
33425         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33426         (gimple_get_virt_method_for_binfo): ... here; simplify using
33427         vtable_pointer_value_to_vtable.
33428         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33429         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33430         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33431         (vtable_pointer_value_to_vtable): Break out from ...; handle also
33432         POINTER_PLUS_EXPR.
33433         (vtable_pointer_value_to_binfo): ... here.
33434         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33436 2014-02-03  Teresa Johnson  <tejohnson@google.com>
33438         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33439         redef of outer loop index variable.
33441 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
33443         PR c++/53017
33444         PR c++/59211
33445         * doc/extend.texi (Function Attributes): Typo.
33447 2014-02-03  Cong Hou  <congh@google.com>
33449         PR tree-optimization/60000
33450         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33451         if the vectorized statement is a store.  A store statement can only
33452         appear at the end of pattern statements.
33454 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33456         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33457         (ix86_option_override_internal): Default long double to 64-bit for
33458         32-bit Bionic and to 128-bit for 64-bit Bionic.
33460         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33461         TARGET_LONG_DOUBLE_128 is true.
33462         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33464         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33465         (mlong-double-64): Negate -mlong-double-128.
33466         (mlong-double-128): New option.
33468         * config/i386/i386-c.c (ix86_target_macros): Define
33469         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33471         * doc/invoke.texi: Document -mlong-double-128.
33473 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33475         PR rtl-optimization/60024
33476         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33478 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
33480         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33482 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33484         PR rtl-optimization/57662
33485         * sel-sched.c (code_motion_path_driver): Do not mark already not
33486         existing blocks in the visiting bitmap.
33488 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33490         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33491         on the insn being emitted.
33493 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
33494             Will Deacon  <will.deacon@arm.com>
33496         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33498 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33500         * config/arm/arm-tables.opt: Regenerate.
33502 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33504         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33505         for vector types other than V16QImode.
33506         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33507         define_expand, and call altivec_expand_vec_perm_le when producing
33508         code with little endian element order.
33509         (*altivec_vperm_<mode>_internal): New insn having previous
33510         behavior of altivec_vperm_<mode>.
33511         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33512         altivec_expand_vec_perm_le when producing code with little endian
33513         element order.
33514         (*altivec_vperm_<mode>_uns_internal): New insn having previous
33515         behavior of altivec_vperm_<mode>_uns.
33517 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33519         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33520         (altivec_vsumsws): Add handling for -maltivec=be with a little
33521         endian target.
33522         (altivec_vsumsws_direct): New.
33523         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33524         gen_altivec_vsumsws.
33526 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33528         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33529         vtable_pointer_value_to_binfo): New functions.
33530         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33531         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33533 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
33535         * config/nios2/nios2.md (load_got_register): Initialize GOT
33536         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33537         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33539 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33541         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33542         preserverd by passthrough, do not propagate the type.
33544 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33546         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33547         (mips_atomic_assign_expand_fenv): New function.
33548         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33550 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33552         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33553         (__builtin_mips_set_fcsr): Likewise.
33554         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33555         MIPS_USI_FTYPE_VOID.
33556         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33557         (mips16_expand_set_fcsr): Likewise.
33558         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33559         (mips16_set_fcsr_stub): Likewise.
33560         (mips16_get_fcsr_one_only_stub): New class.
33561         (mips16_set_fcsr_one_only_stub): Likewise.
33562         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33563         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33564         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33565         (hard_float): New availability predicate.
33566         (mips_builtins): Add get_fcsr and set_fcsr.
33567         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33568         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33569         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33570         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33571         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33572         patterns.
33574 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33576         * config/mips/mips.c (mips_one_only_stub): New class.
33577         (mips_need_mips16_rdhwr_p): Replace with...
33578         (mips16_rdhwr_stub): ...this new variable.
33579         (mips16_stub_call_address): New function.
33580         (mips16_rdhwr_one_only_stub): New class.
33581         (mips_expand_thread_pointer): Use mips16_stub_call_address.
33582         (mips_output_mips16_rdhwr): Delete.
33583         (mips_finish_stub): New function.
33584         (mips_code_end): Use it to handle rdhwr stubs.
33586 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
33588         PR target/60017
33589         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33590         when calculating size of integer atomic types.
33592 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
33594         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33596 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
33598         PR tree-optimization/60003
33599         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33600         * profile.c (branch_prob): Use gimple_call_builtin_p
33601         to check for BUILT_IN_SETJMP_RECEIVER.
33602         * tree-inline.c (copy_bb): Call notice_special_calls.
33604 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
33606         PR bootstrap/59985
33607         * lra-constraints.c (process_alt_operands): Update reload_sum only
33608         on the first pass.
33610 2014-01-31  Richard Henderson  <rth@redhat.com>
33612         PR middle-end/60004
33613         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33614         until after else_eh is processed.
33616 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
33618         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33619         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33620         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33621         in smmintrin.h, remove them.
33622         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33623         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33624         * config/i386/i386.md (ROUND_SAE): Fix value.
33625         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33626         (const48_operand): New.
33627         * config/i386/subst.md (round), (round_expand): Use
33628         const_4_or_8_to_11_operand.
33629         (round_saeonly), (round_saeonly_expand): Use const48_operand.
33631 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
33633         * config/i386/constraints.md (Yk): Swap meaning with k.
33634         * config/i386/i386.md (movhi_internal): Change Yk to k.
33635         (movqi_internal): Ditto.
33636         (*k<logic><mode>): Ditto.
33637         (*andhi_1): Ditto.
33638         (*andqi_1): Ditto.
33639         (kandn<mode>): Ditto.
33640         (*<code>hi_1): Ditto.
33641         (*<code>qi_1): Ditto.
33642         (kxnor<mode>): Ditto.
33643         (kortestzhi): Ditto.
33644         (kortestchi): Ditto.
33645         (kunpckhi): Ditto.
33646         (*one_cmplhi2_1): Ditto.
33647         (*one_cmplqi2_1): Ditto.
33648         * config/i386/sse.md (): Change k to Yk.
33649         (avx512f_load<mode>_mask): Ditto.
33650         (avx512f_blendm<mode>): Ditto.
33651         (avx512f_store<mode>_mask): Ditto.
33652         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33653         (avx512f_storedqu<mode>_mask): Ditto.
33654         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33655         Ditto.
33656         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33657         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33658         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33659         (avx512f_maskcmp<mode>3): Ditto.
33660         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33661         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33662         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33663         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33664         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33665         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33666         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33667         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33668         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33669         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33670         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33671         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33672         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33673         (vec_extract_lo_<mode>_maskm): Ditto.
33674         (vec_extract_hi_<mode>_maskm): Ditto.
33675         (avx512f_vternlog<mode>_mask): Ditto.
33676         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33677         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33678         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33679         (avx512f_<code>v8div16qi2_mask): Ditto.
33680         (avx512f_<code>v8div16qi2_mask_store): Ditto.
33681         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33682         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33683         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33684         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33685         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33686         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33687         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33688         (*avx512pf_scatterpf<mode>df_mask): Ditto.
33689         (avx512cd_maskb_vec_dupv8di): Ditto.
33690         (avx512cd_maskw_vec_dupv16si): Ditto.
33691         (avx512f_vpermi2var<mode>3_maskz): Ditto.
33692         (avx512f_vpermi2var<mode>3_mask): Ditto.
33693         (avx512f_vpermi2var<mode>3_mask): Ditto.
33694         (avx512f_vpermt2var<mode>3_maskz): Ditto.
33695         (*avx512f_gathersi<mode>): Ditto.
33696         (*avx512f_gathersi<mode>_2): Ditto.
33697         (*avx512f_gatherdi<mode>): Ditto.
33698         (*avx512f_gatherdi<mode>_2): Ditto.
33699         (*avx512f_scattersi<mode>): Ditto.
33700         (*avx512f_scatterdi<mode>): Ditto.
33701         (avx512f_compress<mode>_mask): Ditto.
33702         (avx512f_compressstore<mode>_mask): Ditto.
33703         (avx512f_expand<mode>_mask): Ditto.
33704         * config/i386/subst.md (mask): Change k to Yk.
33705         (mask_scalar_merge): Ditto.
33706         (sd): Ditto.
33708 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
33710         * doc/extend.texi (Vector Extensions): Document ?: in C++.
33712 2014-01-31  Richard Biener  <rguenther@suse.de>
33714         PR middle-end/59990
33715         * builtins.c (fold_builtin_memory_op): Make sure to not
33716         use a floating-point mode or a boolean or enumeral type for
33717         the copy operation.
33719 2014-01-30  DJ Delorie  <dj@redhat.com>
33721         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33722         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33723         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33724         whenever main() has an epilogue.
33726 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33728         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33729         unused variable "field".
33730         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33731         (vsx_mergeh_<mode>): Likewise.
33732         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33733         (altivec_vmrghh): Likewise.
33734         (altivec_vmrghw): Likewise.
33735         (altivec_vmrglb): Likewise.
33736         (altivec_vmrglh): Likewise.
33737         (altivec_vmrglw): Likewise.
33738         (altivec_vspltb): Add missing uses.
33739         (altivec_vsplth): Likewise.
33740         (altivec_vspltw): Likewise.
33741         (altivec_vspltsf): Likewise.
33743 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
33745         PR target/59923
33746         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33747         frame related instructions.
33749 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33751         PR rtl-optimization/59959
33752         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33753         any reload of register whose subreg is invalid.
33755 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
33757         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33758         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33759         Add missing return type - void.
33761 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33763         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33764         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33765         remove element index adjustment for endian (now handled in vsx.md
33766         and altivec.md).
33767         (altivec_expand_vec_perm_const): Use
33768         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33769         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33770         (vsx_xxspltw_<mode>): Adjust element index for little endian.
33771         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33772         define_expand and a new define_insn *altivec_vspltb_internal;
33773         adjust for -maltivec=be on a little endian target.
33774         (altivec_vspltb_direct): New.
33775         (altivec_vsplth): Divide into a define_expand and a new
33776         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33777         little endian target.
33778         (altivec_vsplth_direct): New.
33779         (altivec_vspltw): Divide into a define_expand and a new
33780         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33781         little endian target.
33782         (altivec_vspltw_direct): New.
33783         (altivec_vspltsf): Divide into a define_expand and a new
33784         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33785         a little endian target.
33787 2014-01-30  Richard Biener  <rguenther@suse.de>
33789         PR tree-optimization/59993
33790         * tree-ssa-forwprop.c (associate_pointerplus): Check we
33791         can propagate form the earlier stmt and avoid the transform
33792         when the intermediate result is needed.
33794 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
33796         * README.Portability: Fix typo.
33798 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
33800         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33801         comparison_operator with ordered_comparison_operator.
33803 2014-01-30  Nick Clifton  <nickc@redhat.com>
33805         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33806         Rename to mn10300_store_multiple_regs.
33807         * config/mn10300/mn10300.c: Likewise.
33808         * config/mn10300/mn10300.md (store_movm): Fix typo: call
33809         store_multiple_regs.
33810         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33811         Call mn10300_store_multiple_regs.
33813 2014-01-30  Nick Clifton  <nickc@redhat.com>
33814             DJ Delorie  <dj@redhat.com>
33816         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33817         %fp 2 to keep registers after it properly word-aligned.
33818         (rl78_alloc_physical_registers_umul): Handle the case where both
33819         input operands are the same.
33821 2014-01-30  Richard Biener  <rguenther@suse.de>
33823         PR tree-optimization/59903
33824         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33825         check properly.
33827 2014-01-30  Jason Merrill  <jason@redhat.com>
33829         PR c++/59633
33830         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33832         PR c++/59645
33833         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33835 2014-01-30  Richard Biener  <rguenther@suse.de>
33837         PR tree-optimization/59951
33838         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33840 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
33842         PR target/59784
33843         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33844         SFmode to DFmode case.
33846 2014-01-29  DJ Delorie  <dj@redhat.com>
33848         * config/msp430/msp430.opt (-minrt): New.
33849         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33850         if -minrt given.
33851         (ENDFILE_SPEC): Likewise.
33853 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
33855         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33856         (estimate_function_body_sizes): Use it.
33858 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
33860         PR c++/58561
33861         * dwarf2out.c (is_cxx_auto): New.
33862         (is_base_type): Use it.
33863         (gen_type_die_with_usage): Likewise.
33865 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33867         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
33868         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33869         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33870         -maltivec=be with LE targets.
33871         (vsx_mergeh_<mode>): Likewise.
33872         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33873         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33874         (altivec_vmrghb): Replace with define_expand and new
33875         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33876         (altivec_vmrghb_direct): New define_insn.
33877         (altivec_vmrghh): Replace with define_expand and new
33878         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33879         (altivec_vmrghh_direct): New define_insn.
33880         (altivec_vmrghw): Replace with define_expand and new
33881         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33882         (altivec_vmrghw_direct): New define_insn.
33883         (*altivec_vmrghsf): Adjust for endianness.
33884         (altivec_vmrglb): Replace with define_expand and new
33885         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33886         (altivec_vmrglb_direct): New define_insn.
33887         (altivec_vmrglh): Replace with define_expand and new
33888         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33889         (altivec_vmrglh_direct): New define_insn.
33890         (altivec_vmrglw): Replace with define_expand and new
33891         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33892         (altivec_vmrglw_direct): New define_insn.
33893         (*altivec_vmrglsf): Adjust for endianness.
33894         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33895         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33896         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33897         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33898         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33899         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33900         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33901         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33903 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33905         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33906         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33907         whitespace.
33909 2014-01-29  Richard Biener  <rguenther@suse.de>
33911         PR tree-optimization/58742
33912         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33913         associate_pointerplus_align.
33914         (associate_pointerplus_diff): New function.
33915         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
33916         and associate_pointerplus_diff.
33918 2014-01-29  Richard Biener  <rguenther@suse.de>
33920         * lto-streamer.h (LTO_major_version): Bump to 3.
33921         (LTO_minor_version): Reset to 0.
33923 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
33925         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33926         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33927         (arm_file_start): Generate correct asm header for armv7ve.
33928         * config/arm/bpabi.h: Add multilib support for armv7ve.
33929         * config/arm/driver-arm.c: Change the architectures of cortex-a7
33930         and cortex-a15 to armv7ve.
33931         * config/arm/t-aprofile: Add multilib support for armv7ve.
33932         * doc/invoke.texi: Document -march=armv7ve.
33934 2014-01-29  Richard Biener  <rguenther@suse.de>
33936         PR tree-optimization/58742
33937         * tree-ssa-forwprop.c (associate_plusminus): Return true
33938         if we changed sth, defer EH cleanup to ...
33939         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
33940         (simplify_mult): New function.
33942 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
33944         PR middle-end/59917
33945         PR tree-optimization/59920
33946         * tree.c (build_common_builtin_nodes): Remove
33947         __builtin_setjmp_dispatcher initialization.
33948         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33949         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33950         instead of gsi_after_labels + manually skipping debug stmts.
33951         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33952         ignore bbs with IFN_ABNORMAL_DISPATCHER.
33953         * tree-inline.c (copy_edges_for_bb): Remove
33954         can_make_abnormal_goto argument, instead add abnormal_goto_dest
33955         argument.  Ignore computed_goto_p stmts.  Don't call
33956         make_abnormal_goto_edges.  If a call might need abnormal edges
33957         for non-local gotos, see if it already has an edge to
33958         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33959         with true argument, don't do anything then, otherwise add
33960         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33961         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33962         caller.
33963         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33964         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33965         (lower_stmt): Don't set data->calls_builtin_setjmp.
33966         (lower_builtin_setjmp): Adjust comment.
33967         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33968         * tree-cfg.c (found_computed_goto): Remove.
33969         (factor_computed_gotos): Remove.
33970         (make_goto_expr_edges): Return bool, true for computed gotos.
33971         Don't call make_abnormal_goto_edges.
33972         (build_gimple_cfg): Don't set found_computed_goto, don't call
33973         factor_computed_gotos.
33974         (computed_goto_p): No longer static.
33975         (make_blocks): Don't set found_computed_goto.
33976         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33977         (make_edges): If make_goto_expr_edges returns true, push bb
33978         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33979         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33980         vector.  Record mapping between bbs and OpenMP regions if there
33981         are any, adjust make_gimple_omp_edges caller.  Call
33982         handle_abnormal_edges.
33983         (make_abnormal_goto_edges): Remove.
33984         * tree-cfg.h (make_abnormal_goto_edges): Remove.
33985         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33986         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33987         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33988         * internal-fn.def (ABNORMAL_DISPATCHER): New.
33989         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33990         filling *region also set *region_idx to (*region)->entry->index.
33992         PR other/58712
33993         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33994         For REGs set ORIGINAL_REGNO.
33996 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
33998         * doc/md.texi: Mention that a target shouldn't implement
33999         vec_widen_(s|u)mul_even/odd pair if it is less efficient
34000         than hi/lo pair.
34002 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34004         PR tree-optimization/59594
34005         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34006         a copy of the datarefs vector rather than the vector itself.
34008 2014-01-28  Jason Merrill  <jason@redhat.com>
34010         PR c++/53756
34011         * dwarf2out.c (auto_die): New static.
34012         (gen_type_die_with_usage): Handle C++1y 'auto'.
34013         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34014         on definition.
34016 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
34018         PR target/59672
34019         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34020         (SPEC_X32): Likewise.
34021         (SPEC_64): Likewise.
34022         * config/i386/i386.c (ix86_option_override_internal): Turn off
34023         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34024         for TARGET_16BIT.
34025         (x86_file_start): Output .code16gcc for TARGET_16BIT.
34026         * config/i386/i386.h (TARGET_16BIT): New macro.
34027         (TARGET_16BIT_P): Likewise.
34028         * config/i386/i386.opt: Add m16.
34029         * doc/invoke.texi: Document -m16.
34031 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
34033         PR preprocessor/59935
34034         * input.c (location_get_source_line): Bail out on when line number
34035         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34037 2014-01-28  Richard Biener  <rguenther@suse.de>
34039         PR tree-optimization/58742
34040         * tree-ssa-forwprop.c (associate_plusminus): Handle
34041         pointer subtraction of the form (T)(P + A) - (T)P.
34043 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34045         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34046         at const_int_cost.
34048 2014-01-28  Richard Biener  <rguenther@suse.de>
34050         Revert
34051         2014-01-28  Richard Biener  <rguenther@suse.de>
34053         PR rtl-optimization/45364
34054         PR rtl-optimization/59890
34055         * var-tracking.c (local_get_addr_clear_given_value): Handle
34056         already cleared slot.
34057         (val_reset): Handle not allocated local_get_addr_cache.
34058         (vt_find_locations): Use post-order on the inverted CFG.
34060 2014-01-28  Richard Biener  <rguenther@suse.de>
34062         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34064 2014-01-28  Richard Biener  <rguenther@suse.de>
34066         PR rtl-optimization/45364
34067         PR rtl-optimization/59890
34068         * var-tracking.c (local_get_addr_clear_given_value): Handle
34069         already cleared slot.
34070         (val_reset): Handle not allocated local_get_addr_cache.
34071         (vt_find_locations): Use post-order on the inverted CFG.
34073 2014-01-28  Alan Modra  <amodra@gmail.com>
34075         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34076         * configure.ac <recursive call for build != host>: Define
34077         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34078         and LD_FOR_BUILD too.
34079         * configure: Regenerate.
34081 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
34083         * config/i386/i386.c (get_builtin_code_for_version): Separate
34084         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34085         Broadwell from Haswell.
34087 2014-01-27  Steve Ellcey  <sellcey@mips.com>
34089         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34090         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34091         * config/mips/mips.c (mips_option_override): Change setting
34092         of TARGET_DSP.
34093         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34094         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34095         Change from Mask to Var.
34097 2014-01-27  Jeff Law  <law@redhat.com>
34099         * ipa-inline.c (inline_small_functions): Fix typo.
34101 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
34103         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34104         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34105         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34106         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34107         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34108         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34109         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34110         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34111         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34112         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34113         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34114         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34115         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34116         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34117         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34118         (_mm512_storeu_epi64): Ditto.
34119         (_mm512_cmpge_epi32_mask): Ditto.
34120         (_mm512_cmpge_epu32_mask): Ditto.
34121         (_mm512_cmpge_epi64_mask): Ditto.
34122         (_mm512_cmpge_epu64_mask): Ditto.
34123         (_mm512_cmple_epi32_mask): Ditto.
34124         (_mm512_cmple_epu32_mask): Ditto.
34125         (_mm512_cmple_epi64_mask): Ditto.
34126         (_mm512_cmple_epu64_mask): Ditto.
34127         (_mm512_cmplt_epi32_mask): Ditto.
34128         (_mm512_cmplt_epu32_mask): Ditto.
34129         (_mm512_cmplt_epi64_mask): Ditto.
34130         (_mm512_cmplt_epu64_mask): Ditto.
34131         (_mm512_cmpneq_epi32_mask): Ditto.
34132         (_mm512_cmpneq_epu32_mask): Ditto.
34133         (_mm512_cmpneq_epi64_mask): Ditto.
34134         (_mm512_cmpneq_epu64_mask): Ditto.
34135         (_mm512_expand_pd): Ditto.
34136         (_mm512_expand_ps): Ditto.
34137         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34138         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34139         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34140         * config/i386/i386.c (ix86_builtins): Add
34141         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34142         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34143         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34144         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34145         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34146         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34147         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34148         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34149         IX86_BUILTIN_PMOVUSQW512_MEM.
34150         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34151         __builtin_ia32_pmovsqd512mem_mask,
34152         __builtin_ia32_pmovqd512mem_mask,
34153         __builtin_ia32_pmovusqw512mem_mask,
34154         __builtin_ia32_pmovsqw512mem_mask,
34155         __builtin_ia32_pmovqw512mem_mask,
34156         __builtin_ia32_pmovusdw512mem_mask,
34157         __builtin_ia32_pmovsdw512mem_mask,
34158         __builtin_ia32_pmovdw512mem_mask,
34159         __builtin_ia32_pmovqb512mem_mask,
34160         __builtin_ia32_pmovusqb512mem_mask,
34161         __builtin_ia32_pmovsqb512mem_mask,
34162         __builtin_ia32_pmovusdb512mem_mask,
34163         __builtin_ia32_pmovsdb512mem_mask,
34164         __builtin_ia32_pmovdb512mem_mask.
34165         (bdesc_args): Add __builtin_ia32_expanddf512,
34166         __builtin_ia32_expandsf512.
34167         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34168         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34169         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34170         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34171         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34172         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34173         (avx512f_<code>v8div16qi2_mask_store): This.
34174         (avx512f_expand<mode>): New.
34176 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
34178         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34179         New.
34180         (_mm512_mask_prefetch_i64gather_pd): Ditto.
34181         (_mm512_prefetch_i32scatter_pd): Ditto.
34182         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34183         (_mm512_prefetch_i64scatter_pd): Ditto.
34184         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34185         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34186         (_mm512_mask_prefetch_i64gather_ps): Ditto.
34187         (_mm512_prefetch_i32scatter_ps): Ditto.
34188         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34189         (_mm512_prefetch_i64scatter_ps): Ditto.
34190         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34191         * config/i386/i386-builtin-types.def: Define
34192         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34193         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34194         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34195         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34196         IX86_BUILTIN_SCATTERPFQPD.
34197         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34198         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34199         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34200         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34201         __builtin_ia32_scatterpfqps.
34202         (ix86_expand_builtin): Expand new built-ins.
34203         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34204         fix memory access data type.
34205         (*avx512pf_gatherpf<mode>_mask): Ditto.
34206         (*avx512pf_gatherpf<mode>): Ditto.
34207         (avx512pf_scatterpf<mode>): Ditto.
34208         (*avx512pf_scatterpf<mode>_mask): Ditto.
34209         (*avx512pf_scatterpf<mode>): Ditto.
34210         (GATHER_SCATTER_SF_MEM_MODE): New.
34211         (avx512pf_gatherpf<mode>df): Ditto.
34212         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34213         (*avx512pf_scatterpf<mode>df): Ditto.
34215 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
34217         PR bootstrap/59934
34218         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34219         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34220         reached.
34222 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34224         * common/config/arm/arm-common.c
34225         (arm_rewrite_mcpu): Handle multiple names.
34226         * config/arm/arm.h
34227         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34229 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34231         * gimple-builder.h (create_gimple_tmp): Delete.
34233 2014-01-27  Christian Bruel  <christian.bruel@st.com>
34235         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34236         words comparisons.
34238 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
34240         * config/pa/pa.md (call): Generate indirect long calls to non-local
34241         functions when outputing 32-bit code.
34242         (call_value): Likewise except for special call to buggy powf function.
34244         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34245         portable runtime and PIC indirect calls.
34246         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34247         and PIC call sequences.  Use ldo instead of blr to set return register
34248         in PIC call sequence.
34250 2014-01-25  Walter Lee  <walt@tilera.com>
34252         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34253         avoid clobbering a live register.
34255 2014-01-25  Walter Lee  <walt@tilera.com>
34257         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34258         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34259         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34260         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34262 2014-01-25  Walter Lee  <walt@tilera.com>
34264         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34265         arguments on even registers.
34266         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34267         STACK_BOUNDARY.
34268         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34269         (BIGGEST_ALIGNMENT): Ditto.
34270         (BIGGEST_FIELD_ALIGNMENT): Ditto.
34272 2014-01-25  Walter Lee  <walt@tilera.com>
34274         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34275         insns before bundling.
34276         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34278 2014-01-25  Walter Lee  <walt@tilera.com>
34280         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34281         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34282         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34284 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34286         * config/mips/constraints.md (kl): Delete.
34287         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34288         define expands, using...
34289         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34290         instructions for MIPS16.
34291         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34292         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34294 2014-01-25  Walter Lee  <walt@tilera.com>
34296         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34297         (clzdi2): Ditto.
34298         (ffsdi2): Ditto.
34300 2014-01-25  Walter Lee  <walt@tilera.com>
34302         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34303         (TARGET_EXPAND_TO_RTL_HOOK): Define.
34305 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34307         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34308         Handle XOR.
34310 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
34312         * print-rtl.c (in_call_function_usage): New var.
34313         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34314         EXPR_LIST mode as mode and not as reg note name.
34316         PR middle-end/59561
34317         * cfgloopmanip.c (copy_loop_info): If
34318         loop->warned_aggressive_loop_optimizations, make sure
34319         the flag is set in target loop too.
34321 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
34323         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34324         flag_cilkplus.
34325         * builtins.def: Likewise.
34326         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34327         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34328         * ira.c (ira_setup_eliminable_regset): Likewise.
34329         * omp-low.c (gate_expand_omp): Likewise.
34330         (execute_lower_omp): Likewise.
34331         (diagnose_sb_0): Likewise.
34332         (gate_diagnose_omp_blocks): Likewise.
34333         (simd_clone_clauses_extract): Likewise.
34334         (gate): Likewise.
34336 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34338         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34339         correction for little endian...
34340         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34341         here.
34343 2014-01-24  Jeff Law  <law@redhat.com>
34345         PR tree-optimization/59919
34346         * tree-vrp.c (find_assert_locations_1): Do not register asserts
34347         for non-returning calls.
34349 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
34351         * common/config/aarch64/aarch64-common.c
34352         (aarch64_rewrite_mcpu): Handle multiple names.
34353         * config/aarch64/aarch64.h
34354         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34356 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
34358         * input.c (add_file_to_cache_tab): Handle the case where fopen
34359         returns NULL.
34361 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34363         PR target/59929
34364         * config/i386/i386.md (pushsf splitter): Get stack adjustment
34365         from push operand if code of push isn't PRE_DEC.
34367 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
34369         PR target/59909
34370         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34371         -mquad-memory-atomic.  Update -mquad-memory documentation to say
34372         it is only used for non-atomic loads/stores.
34374         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34375         -mquad-memory or -mquad-memory-atomic switches.
34377         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34378         -mquad-memory-atomic to ISA 2.07 support.
34380         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34381         to separate support of normal quad word memory operations (ldq, stq)
34382         from the atomic quad word memory operations.
34384         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34385         support to separate non-atomic quad word operations from atomic
34386         quad word operations.  Disable non-atomic quad word operations in
34387         little endian mode so that we don't have to swap words after the
34388         load and before the store.
34389         (quad_load_store_p): Add comment about atomic quad word support.
34390         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34391         options printed with -mdebug=reg.
34393         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34394         -mquad-memory-atomic as the test for whether we have quad word
34395         atomic instructions.
34396         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34397         or -mp8-vector are used, allow byte/half-word atomic operations.
34399         * config/rs6000/sync.md (load_lockedti): Insure that the address
34400         is a proper indexed or indirect address for the lqarx instruction.
34401         On little endian systems, swap the hi/lo registers after the lqarx
34402         instruction.
34403         (load_lockedpti): Use indexed_or_indirect_operand predicate to
34404         insure the address is valid for the lqarx instruction.
34405         (store_conditionalti): Insure that the address is a proper indexed
34406         or indirect address for the stqcrx. instruction.  On little endian
34407         systems, swap the hi/lo registers before doing the stqcrx.
34408         instruction.
34409         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34410         insure the address is valid for the stqcrx. instruction.
34412         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34413         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34414         type of quad memory support is available.
34416 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34418         PR regression/59915
34419         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34420         there is a danger of looping.
34422 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
34424         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34425         force flag_ira_loop_pressure if set via command line.
34427 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34429         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34430         (ashr_simd): New builtin handling DI mode.
34431         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34432         (aarch64_sshr_simddi): New match pattern.
34433         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34434         (vshrd_n_s64): Likewise.
34435         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34437 2014-01-23  Nick Clifton  <nickc@redhat.com>
34439         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34440         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34441         favour of mcu specific scripts.
34442         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34443         430x multilibs.
34445 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34446             Alex Velenko  <Alex.Velenko@arm.com>
34448         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34449         (vaddv_s16): Likewise.
34450         (vaddv_s32): Likewise.
34451         (vaddv_u8): Likewise.
34452         (vaddv_u16): Likewise.
34453         (vaddv_u32): Likewise.
34454         (vaddvq_s8): Likewise.
34455         (vaddvq_s16): Likewise.
34456         (vaddvq_s32): Likewise.
34457         (vaddvq_s64): Likewise.
34458         (vaddvq_u8): Likewise.
34459         (vaddvq_u16): Likewise.
34460         (vaddvq_u32): Likewise.
34461         (vaddvq_u64): Likewise.
34462         (vaddv_f32): Likewise.
34463         (vaddvq_f32): Likewise.
34464         (vaddvq_f64): Likewise.
34465         (vmaxv_f32): Likewise.
34466         (vmaxv_s8): Likewise.
34467         (vmaxv_s16): Likewise.
34468         (vmaxv_s32): Likewise.
34469         (vmaxv_u8): Likewise.
34470         (vmaxv_u16): Likewise.
34471         (vmaxv_u32): Likewise.
34472         (vmaxvq_f32): Likewise.
34473         (vmaxvq_f64): Likewise.
34474         (vmaxvq_s8): Likewise.
34475         (vmaxvq_s16): Likewise.
34476         (vmaxvq_s32): Likewise.
34477         (vmaxvq_u8): Likewise.
34478         (vmaxvq_u16): Likewise.
34479         (vmaxvq_u32): Likewise.
34480         (vmaxnmv_f32): Likewise.
34481         (vmaxnmvq_f32): Likewise.
34482         (vmaxnmvq_f64): Likewise.
34483         (vminv_f32): Likewise.
34484         (vminv_s8): Likewise.
34485         (vminv_s16): Likewise.
34486         (vminv_s32): Likewise.
34487         (vminv_u8): Likewise.
34488         (vminv_u16): Likewise.
34489         (vminv_u32): Likewise.
34490         (vminvq_f32): Likewise.
34491         (vminvq_f64): Likewise.
34492         (vminvq_s8): Likewise.
34493         (vminvq_s16): Likewise.
34494         (vminvq_s32): Likewise.
34495         (vminvq_u8): Likewise.
34496         (vminvq_u16): Likewise.
34497         (vminvq_u32): Likewise.
34498         (vminnmv_f32): Likewise.
34499         (vminnmvq_f32): Likewise.
34500         (vminnmvq_f64): Likewise.
34502 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34504         * config/aarch64/aarch64-simd.md
34505         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34506         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34507         (*aarch64_mul3_elt<mode>): Likewise.
34508         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34509         (*aarch64_mul3_elt_to_64v2df): Likewise.
34510         (*aarch64_mla_elt<mode>): Likewise.
34511         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34512         (*aarch64_mls_elt<mode>): Likewise.
34513         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34514         (*aarch64_fma4_elt<mode>): Likewise.
34515         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34516         (*aarch64_fma4_elt_to_64v2df): Likewise.
34517         (*aarch64_fnma4_elt<mode>): Likewise.
34518         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34519         (*aarch64_fnma4_elt_to_64v2df): Likewise.
34520         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34521         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34522         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34523         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34524         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34525         (aarch64_sqdmull_lane<mode>_internal): Likewise.
34526         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34528 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34530         * config/aarch64/aarch64-simd.md
34531         (aarch64_be_checked_get_lane<mode>): New define_expand.
34532         * config/aarch64/aarch64-simd-builtins.def
34533         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34534         New builtin definition.
34535         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34536         Use new safe be builtin.
34538 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34540         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34541         New define_insn.
34542         (aarch64_be_st1<mode>): Likewise.
34543         (aarch_ld1<VALL:mode>): Define_expand modified.
34544         (aarch_st1<VALL:mode>): Likewise.
34545         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34546         (UNSPEC_ST1): Likewise.
34548 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
34550         * config/microblaze/microblaze.md: Add trap insn and attribute
34552 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
34554         PR preprocessor/58580
34555         * input.h (location_get_source_line): Take an additional line_size
34556         parameter.
34557         (void diagnostics_file_cache_fini): Declare new function.
34558         * input.c (struct fcache): New type.
34559         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34560         New static constants.
34561         (diagnostic_file_cache_init, total_lines_num)
34562         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34563         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34564         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34565         (get_next_line, read_next_line, goto_next_line, read_line_num):
34566         New static function definitions.
34567         (diagnostic_file_cache_fini): New function.
34568         (location_get_source_line): Take an additional output line_len
34569         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
34570         read_line_num.
34571         * diagnostic.c (diagnostic_finish): Call
34572         diagnostic_file_cache_fini.
34573         (adjust_line): Take an additional input parameter for the length
34574         of the line, rather than calculating it with strlen.
34575         (diagnostic_show_locus): Adjust the use of
34576         location_get_source_line and adjust_line with respect to their new
34577         signature.  While displaying a line now, do not stop at the first
34578         null byte.  Rather, display the zero byte as a space and keep
34579         going until we reach the size of the line.
34580         * Makefile.in: Add vec.o to OBJS-libcommon
34582 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34583             Ilya Tocar  <ilya.tocar@intel.com>
34585         * config/i386/avx512fintrin.h (_mm512_kmov): New.
34586         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34587         (__builtin_ia32_kmov16): Ditto.
34588         * config/i386/i386.md (UNSPEC_KMOV): New.
34589         (kmovw): Ditto.
34591 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34593         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34594         (_mm512_storeu_si512): Ditto.
34596 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
34598         PR target/52125
34599         * rtl.h (get_referenced_operands): Declare.
34600         * recog.c (get_referenced_operands): New function.
34601         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34602         operands have been referenced when recording LO_SUM references.
34604 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
34606         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34608 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
34610         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34611         Enable for generic and recent AMD targets.
34613 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
34615         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34616         ARG_SIZE note when adjustment was eliminated.
34618 2014-01-22  Jeff Law  <law@redhat.com>
34620         PR tree-optimization/59597
34621         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34622         in file.  Accept new argument REGISTERING and use it to modify
34623         dump output appropriately.
34624         (register_jump_thread): Corresponding changes.
34625         (mark_threaded_blocks): Reinstate code to cancel unprofitable
34626         thread paths involving joiner blocks.  Add code to dump cancelled
34627         jump threading paths.
34629 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
34631         PR rtl-optimization/59477
34632         * lra-constraints.c (inherit_in_ebb): Process call for living hard
34633         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
34635 2014-01-22  Tom Tromey  <tromey@redhat.com>
34637         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34638         PARAMS.
34639         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34641 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
34643         PR rtl-optimization/59896
34644         * lra-constraints.c (process_alt_operands): Check unused note for
34645         matched operands of insn with no output reloads.
34647 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
34649         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34650         (mips_move_from_gpr_cost): Likewise.
34652 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
34654         PR rtl-optimization/59858
34655         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34656         ira_class_hard_regs_num.
34657         (process_alt_operands): Increase reject for dying matched operand.
34659 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
34661         PR target/59003
34662         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34663         smaller than size, perform several stores or loads and stores
34664         at dst + count - size to store or copy all of size bytes, rather
34665         than just last modesize bytes.
34667 2014-01-20  DJ Delorie  <dj@redhat.com>
34669         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34670         that CLOBBERs are REGs before propogating their values.
34672 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
34674         PR middle-end/59789
34675         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34676         (cgraph_inline_failed_type): New function.
34677         * cgraph.h (DEFCIFCODE): Add type.
34678         (cgraph_inline_failed_type_t): New enum.
34679         (cgraph_inline_failed_type): New prototype.
34680         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34681         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34682         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34683         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34684         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34685         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34686         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34687         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34688         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34689         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34690         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34691         OPTIMIZATION_MISMATCH.
34692         * tree-inline.c (expand_call_inline): Emit errors during
34693         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34695 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
34697         PR target/59685
34698         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34699         mode attribute in insn output.
34701 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
34703         * output.h (output_constant): Delete.
34704         * varasm.c (output_constant): Make private.
34706 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
34708         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34710 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
34712         PR middle-end/59860
34713         * tree.h (fold_builtin_strcat): New prototype.
34714         * builtins.c (fold_builtin_strcat): No longer static.  Add len
34715         argument, if non-NULL, don't call c_strlen.  Optimize
34716         directly into __builtin_memcpy instead of __builtin_strcpy.
34717         (fold_builtin_2): Adjust fold_builtin_strcat caller.
34718         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34720 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
34722         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34723         for SImode_address_operand operands, having only a REG argument.
34725 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34727         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34728         loader name using mbig-endian.
34729         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34731 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
34733         * doc/invoke.texi (-march): Clarify documentation for AArch64.
34734         (-mtune): Likewise.
34735         (-mcpu): Likewise.
34737 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
34739         * config/aarch64/aarch64-protos.h
34740         (aarch64_cannot_change_mode_class_ptr): Declare.
34741         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34742         aarch64_cannot_change_mode_class_ptr): New.
34743         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34744         backend hook aarch64_cannot_change_mode_class.
34746 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
34748         * common/config/aarch64/aarch64-common.c
34749         (aarch64_handle_option): Don't handle any option order logic here.
34750         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34751         selected_cpu, warn on architecture version mismatch.
34752         (aarch64_override_options): Fix parsing order for option strings.
34754 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34755             Iain Sandoe  <iain@codesourcery.com>
34757         PR bootstrap/59496
34758         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34759         warning.  Amend comment to reflect current functionality.
34761 2014-01-20  Richard Biener  <rguenther@suse.de>
34763         PR middle-end/59860
34764         * builtins.c (fold_builtin_strcat): Remove case better handled
34765         by tree-ssa-strlen.c.
34767 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
34769         * config/aarch64/aarch64.opt
34770         (mcpu, march, mtune): Make case-insensitive.
34772 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
34774         PR target/59880
34775         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34776         if operands[1] is a REG or ZERO_EXTEND of a REG.
34778 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
34780         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34782 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
34784         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34785         long non-pic millicode calls.
34787 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34789         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34791 2014-01-19  Kito Cheng  <kito@0xlab.org>
34793         * builtins.c (expand_movstr): Check movstr expand done or fail.
34795 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34796             H.J. Lu  <hongjiu.lu@intel.com>
34798         PR target/59379
34799         * config/i386/i386.md (*lea<mode>): Zero-extend return register
34800         to DImode for zero-extended addresses.
34802 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
34804         PR rtl-optimization/57763
34805         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34806         on the new indirect jump_insn and increment LABEL_NUSES (label).
34808 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
34810         PR bootstrap/59580
34811         PR bootstrap/59583
34812         * config.gcc (x86_archs): New variable.
34813         (x86_64_archs): Likewise.
34814         (x86_cpus): Likewise.
34815         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34816         --with-arch/--with-cpu= options.
34817         Support --with-arch=/--with-cpu={nehalem,westmere,
34818         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34820 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34822         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34823         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
34825 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34827         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34829 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
34831         PR target/58944
34832         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34833         clear cpp_get_options (parse_in)->warn_unused_macros for
34834         ix86_target_macros_internal with cpp_define.
34836 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
34838         * jump.c (delete_related_insns): Keep (use (insn))s.
34839         * reorg.c (redundant_insn): Check for barriers too.
34841 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34843         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34845 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
34847         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34848         call to $$dyncall when TARGET_LONG_CALLS is true.
34850 2014-01-17  Jeff Law  <law@redhat.com>
34852         * ree.c (combine_set_extension): Temporarily disable test for
34853         changing number of hard registers.
34855 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
34857         PR middle-end/58125
34858         * ipa-inline-analysis.c (inline_free_summary):
34859         Do not free summary of aliases.
34861 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
34863         PR middle-end/59706
34864         * gimplify.c (gimplify_expr): Use create_tmp_var
34865         instead of create_tmp_var_raw.  If cond doesn't have
34866         integral type, don't add the IFN_ANNOTATE builtin at all.
34868 2014-01-17  Martin Jambor  <mjambor@suse.cz>
34870         PR ipa/59736
34871         * ipa-cp.c (prev_edge_clone): New variable.
34872         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34873         Also resize prev_edge_clone vector.
34874         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34875         (ipcp_edge_removal_hook): New function.
34876         (ipcp_driver): Register ipcp_edge_removal_hook.
34878 2014-01-17  Andrew Pinski  <apinski@cavium.com>
34879             Steve Ellcey  <sellcey@mips.com>
34881         PR target/59462
34882         * config/mips/mips.c (mips_print_operand): Check operand mode instead
34883         of operator mode.
34885 2014-01-17  Jeff Law  <law@redhat.com>
34887         PR middle-end/57904
34888         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34889         so that pass_ccp runs first.
34891 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34893         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34894         (ix86_adjust_cost): Use !TARGET_XXX.
34895         (do_reorder_for_imul): Likewise.
34896         (swap_top_of_ready_list): Likewise.
34897         (ix86_sched_reorder): Likewise.
34899 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34901         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34902         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
34903         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
34904         (intel_memset): New.  Duplicate slm_memset.
34905         (intel_cost): New.  Duplicate slm_cost.
34906         (m_INTEL): New macro.
34907         (processor_target_table): Add "intel".
34908         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34909         with PROCESSOR_INTEL for "intel".
34910         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
34911         PROCESSOR_SILVERMONT.
34912         (ix86_issue_rate): Likewise.
34913         (ix86_adjust_cost): Likewise.
34914         (ia32_multipass_dfa_lookahead): Likewise.
34915         (swap_top_of_ready_list): Likewise.
34916         (ix86_sched_reorder): Likewise.
34917         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34918         instead of TARGET_OPT_AGU.
34919         * config/i386/i386.h (TARGET_INTEL): New.
34920         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34921         (processor_type): Add PROCESSOR_INTEL.
34922         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34923         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34925 2014-01-17  Marek Polacek  <polacek@redhat.com>
34927         PR c/58346
34928         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34929         size is zero.
34931 2014-01-17  Richard Biener  <rguenther@suse.de>
34933         PR tree-optimization/46590
34934         * opts.c (default_options_table): Add entries for
34935         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34936         all enabled at -O1 but not for -Og.
34937         * common.opt (fbranch-count-reg): Remove Init(1).
34938         (fmove-loop-invariants): Likewise.
34939         (ftree-pta): Likewise.
34941 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
34943         * config/i386/i386.c (ix86_data_alignment): For compatibility with
34944         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34945         decls to at least the GCC 4.8 used alignments.
34947         PR fortran/59440
34948         * tree-nested.c (convert_nonlocal_reference_stmt,
34949         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34950         of GIMPLE_BIND stmts, adjust associated decls.
34952 2014-01-17  Richard Biener  <rguenther@suse.de>
34954         PR tree-optimization/46590
34955         * vec.h (vec<>::bseach): New member function implementing
34956         binary search according to C89 bsearch.
34957         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34958         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34959         bitmap pointer again.  Make accesses_in_loop a flat array.
34960         (mem_ref_obstack): New global.
34961         (outermost_indep_loop): Adjust for mem_ref->stored changes.
34962         (mark_ref_stored): Likewise.
34963         (ref_indep_loop_p_2): Likewise.
34964         (set_ref_stored_in_loop): New helper function.
34965         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34966         (memref_free): Adjust.
34967         (record_mem_ref_loc): Simplify.
34968         (gather_mem_refs_stmt): Adjust.
34969         (sort_locs_in_loop_postorder_cmp): New function.
34970         (analyze_memory_references): Sort accesses_in_loop after
34971         loop postorder number.
34972         (find_ref_loc_in_loop_cmp): New function.
34973         (for_all_locs_in_loop): Find relevant cluster of locs in
34974         accesses_in_loop and iterate without recursion.
34975         (execute_sm): Avoid uninit warning.
34976         (struct ref_always_accessed): Simplify.
34977         (ref_always_accessed::operator ()): Likewise.
34978         (ref_always_accessed_p): Likewise.
34979         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34980         loop postorder numbers here.
34981         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34982         numbers.
34984 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
34986         PR c++/57945
34987         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34988         on decls for which assemble_alias has been called.
34990 2014-01-17  Nick Clifton  <nickc@redhat.com>
34992         * config/msp430/msp430.opt: (mcpu): New option.
34993         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34994         (msp430_option_override): Parse target_cpu.  If the MCU name
34995         matches a generic string, clear target_mcu.
34996         (msp430_attr): Allow numeric interrupt values up to 63.
34997         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34998         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34999         option.
35000         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35001         Add mcpu matches.
35002         * config/msp430/msp430.md (popm): Use %J rather than %I.
35003         (addsi3): Use msp430_nonimmediate_operand for operand 2.
35004         (addhi_cy_i): Use immediate_operand for operand 2.
35005         * doc/invoke.texi: Document -mcpu option.
35007 2014-01-17  Richard Biener  <rguenther@suse.de>
35009         PR rtl-optimization/38518
35010         * df.h (df_analyze_loop): Declare.
35011         * df-core.c: Include cfgloop.h.
35012         (df_analyze_1): Split out main part of df_analyze.
35013         (df_analyze): Adjust.
35014         (loop_inverted_post_order_compute): New function.
35015         (loop_post_order_compute): Likewise.
35016         (df_analyze_loop): New function avoiding whole-function
35017         postorder computes.
35018         * loop-invariant.c (find_defs): Use df_analyze_loop.
35019         (find_invariants): Adjust.
35020         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35022 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
35024         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35025         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35027 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35029         * ipa-ref.c (ipa_remove_stmt_references): Fix references
35030         traversal when removing references.
35032 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
35034         PR ipa/59775
35035         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35037 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
35039         PR middle-end/56791
35040         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35041         pushing a reload for an autoinc when we had previously reloaded an
35042         inner part of the address.
35044 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
35046         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35047         field.
35048         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35049         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35050         when not giving up or versioning for alias only because of
35051         loop->safelen.
35052         (vect_analyze_data_ref_dependences): Set to true.
35053         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35054         is a GIMPLE_PHI.
35055         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35056         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35057         to the condition.
35059         PR middle-end/58344
35060         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35062         PR target/59839
35063         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35064         operand 0 predicate for gathers, use a new pseudo as subtarget.
35066 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35068         PR middle-end/59609
35069         * lra-constraints.c (process_alt_operands): Add printing debug info.
35070         Check absence of input/output reloads for matched operands too.
35072 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35074         PR rtl-optimization/59835
35075         * ira.c (ira_init_register_move_cost): Increase cost for
35076         impossible modes.
35078 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
35080         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35082 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
35084         PR target/59780
35085         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35086         non-register objects.  Use gen_(high/low)part more consistently.
35087         Fix assertions.
35089 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
35091         PR target/59844
35092         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35093         endian support, remove tests for WORDS_BIG_ENDIAN.
35094         (p8_mfvsrd_3_<mode>): Likewise.
35095         (reload_gpr_from_vsx<mode>): Likewise.
35096         (reload_gpr_from_vsxsf): Likewise.
35097         (p8_mfvsrd_4_disf): Likewise.
35099 2014-01-16  Richard Biener  <rguenther@suse.de>
35101         PR rtl-optimization/46590
35102         * lcm.c (compute_antinout_edge): Use postorder iteration.
35103         (compute_laterin): Use inverted postorder iteration.
35105 2014-01-16  Nick Clifton  <nickc@redhat.com>
35107         PR middle-end/28865
35108         * varasm.c (output_constant): Return the number of bytes actually
35109         emitted.
35110         (output_constructor_array_range): Update the field size with the
35111         number of bytes emitted by output_constant.
35112         (output_constructor_regular_field): Likewise.  Also do not
35113         complain if the total number of bytes emitted is now greater
35114         than the expected fieldpos.
35115         * output.h (output_constant): Update prototype and descriptive comment.
35117 2014-01-16  Marek Polacek  <polacek@redhat.com>
35119         PR middle-end/59827
35120         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35121         it is error_mark_node.
35123 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
35125         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35126         VALID_AVX256_REG_OR_OI_MODE.
35128 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
35130         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35131         current procedure should be profiled.
35133 2014-01-15  Andrew Pinski  <apinski@cavium.com>
35135         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35136         of moving from/to the STACK_REG register class.
35138 2014-01-15  Richard Henderson  <rth@redhat.com>
35140         PR debug/54694
35141         * reginfo.c (global_regs_decl): Globalize.
35142         * rtl.h (global_regs_decl): Declare.
35143         * ira.c (do_reload): Diagnose frame_pointer_needed and it
35144         reserved via global_regs.
35146 2014-01-15  Teresa Johnson  <tejohnson@google.com>
35148         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35150 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
35152         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35153         and vmulosh rather than call gen_vec_widen_smult_*.
35154         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35155         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35156         (vec_widen_smult_even_v16qi): Likewise.
35157         (vec_widen_umult_even_v8hi): Likewise.
35158         (vec_widen_smult_even_v8hi): Likewise.
35159         (vec_widen_umult_odd_v16qi): Likewise.
35160         (vec_widen_smult_odd_v16qi): Likewise.
35161         (vec_widen_umult_odd_v8hi): Likewise.
35162         (vec_widen_smult_odd_v8hi): Likewise.
35163         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35164         vmuloub rather than call gen_vec_widen_umult_*.
35165         (vec_widen_umult_lo_v16qi): Likewise.
35166         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35167         vmulosb rather than call gen_vec_widen_smult_*.
35168         (vec_widen_smult_lo_v16qi): Likewise.
35169         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35170         rather than call gen_vec_widen_umult_*.
35171         (vec_widen_umult_lo_v8hi): Likewise.
35172         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35173         rather than call gen_vec_widen_smult_*.
35174         (vec_widen_smult_lo_v8hi): Likewise.
35176 2014-01-15  Jeff Law  <law@redhat.com>
35178         PR tree-optimization/59747
35179         * ree.c (find_and_remove_re): Properly handle case where a second
35180         eliminated extension requires widening a copy created for elimination
35181         of a prior extension.
35182         (combine_set_extension): Ensure that the number of hard regs needed
35183         for a destination register does not change when we widen it.
35185 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35187         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35188         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35189         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35190         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35191         (avr-*-rtems*): Likewise.
35192         (bfin*-rtems*): Likewise.
35193         (moxie-*-rtems*): Likewise.
35194         (h8300-*-rtems*): Likewise.
35195         (i[34567]86-*-rtems*): Likewise.
35196         (lm32-*-rtems*): Likewise.
35197         (m32r-*-rtems*): Likewise.
35198         (m68k-*-rtems*): Likewise.
35199         (microblaze*-*-rtems*): Likewise.
35200         (mips*-*-rtems*): Likewise.
35201         (powerpc-*-rtems*): Likewise.
35202         (sh-*-rtems*): Likewise.
35203         (sparc-*-rtems*): Likewise.
35204         (sparc64-*-rtems*): Likewise.
35205         (v850-*-rtems*): Likewise.
35206         (m32c-*-rtems*): Likewise.
35208 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35210         PR rtl-optimization/59511
35211         * ira.c (ira_init_register_move_cost): Use memory costs for some
35212         cases of register move cost calculations.
35213         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35214         instead of BB frequency.
35215         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35216         * lra-assigns.c (find_hard_regno_for): Ditto.
35218 2014-01-15  Richard Biener  <rguenther@suse.de>
35220         PR tree-optimization/59822
35221         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35222         (vectorizable_load): Use it to hoist defs of uses of invariant
35223         loads out of the loop.
35225 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
35226             Kugan Vivekanandarajah  <kuganv@linaro.org>
35228         PR target/59695
35229         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35230         truncation.
35232 2014-01-15  Richard Biener  <rguenther@suse.de>
35234         PR rtl-optimization/59802
35235         * lcm.c (compute_available): Use inverted postorder to seed
35236         the initial worklist.
35238 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35240         PR target/59803
35241         * config/s390/s390.c (s390_preferred_reload_class): Don't return
35242         ADDR_REGS for invalid symrefs in non-PIC code.
35244 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
35246         PR other/58712
35247         * builtins.c (determine_block_size): Initialize *probable_max_size
35248         even if len_rtx is CONST_INT.
35250 2014-01-14  Andrew Pinski  <apinski@cavium.com>
35252         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35253         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35254         (cortexa53_tunings): Likewise.
35255         (aarch64_sched_issue_rate): New function.
35256         (TARGET_SCHED_ISSUE_RATE): Define.
35258 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35260         * ira-costs.c (find_costs_and_classes): Add missed
35261         ira_init_register_move_cost_if_necessary.
35263 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35265         PR target/59787
35266         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35268 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
35270         PR target/59794
35271         * config/i386/i386.c (type_natural_mode): Add a bool parameter
35272         to indicate if type is used for function return value.  Warn ABI
35273         change if the vector mode isn't available for function return value.
35274         (ix86_function_arg_advance): Pass false to type_natural_mode.
35275         (ix86_function_arg): Likewise.
35276         (ix86_gimplify_va_arg): Likewise.
35277         (function_arg_32): Don't warn ABI change.
35278         (ix86_function_value): Pass true to type_natural_mode.
35279         (ix86_return_in_memory): Likewise.
35280         (ix86_struct_value_rtx): Removed.
35281         (TARGET_STRUCT_VALUE_RTX): Likewise.
35283 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35285         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35286         converting a conditional jump into a conditional return.
35288 2014-01-14  Richard Biener  <rguenther@suse.de>
35290         PR tree-optimization/58921
35291         PR tree-optimization/59006
35292         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35293         hoisting invariant stmts.
35294         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35295         invariant loads on the preheader edge if possible.
35297 2014-01-14  Joey Ye  <joey.ye@arm.com>
35299         * doc/plugin.texi (Building GCC plugins): Update to C++.
35301 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
35303         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35304         (_mm_rcp28_round_ss): Ditto.
35305         (_mm_rsqrt28_round_sd): Ditto.
35306         (_mm_rsqrt28_round_ss): Ditto.
35307         (_mm_rcp28_sd): Ditto.
35308         (_mm_rcp28_ss): Ditto.
35309         (_mm_rsqrt28_sd): Ditto.
35310         (_mm_rsqrt28_ss): Ditto.
35311         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35312         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35313         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35314         (IX86_BUILTIN_RCP28SD): Ditto.
35315         (IX86_BUILTIN_RCP28SS): Ditto.
35316         (IX86_BUILTIN_RSQRT28SD): Ditto.
35317         (IX86_BUILTIN_RSQRT28SS): Ditto.
35318         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35319         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35320         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35321         (ix86_expand_special_args_builtin): Expand new FTYPE.
35322         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35323         (srcp14<mode>): Make insn unary.
35324         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35325         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35326         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35327         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35328         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35329         Fix rounding: make it SAE only.
35330         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35331         Ditto.
35332         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35333         Ditto.
35334         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35335         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35336         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35337         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35338         (round_saeonly_mask_scalar_operand4): Ditto.
35339         (round_saeonly_mask_scalar_op3): Ditto.
35340         (round_saeonly_mask_scalar_op4): Ditto.
35342 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35344         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35345         Implement -maltivec=be for vec_insert and vec_extract.
35347 2014-01-10  DJ Delorie  <dj@redhat.com>
35349         * config/msp430/msp430.md (call_internal): Don't allow memory
35350         references with SP as the base register.
35351         (call_value_internal): Likewise.
35352         * config/msp430/constraints.md (Yc): New.  For memory references
35353         that don't use SP as a base register.
35355         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35356         "an integer without a # prefix"
35357         * config/msp430/msp430.md (epilogue_helper): Use it.
35359 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35361         PR target/59617
35362         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35363         AVX512F gather builtins.
35364         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35365         on gather decls with INTEGER_TYPE masktype.
35366         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35367         directly into the builtin rather than hoisting it before loop.
35369         PR tree-optimization/59387
35370         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35371         (scev_const_prop): If folded_casts and type has undefined overflow,
35372         use force_gimple_operand instead of force_gimple_operand_gsi and
35373         for each added stmt if it is assign with
35374         arith_code_with_undefined_signed_overflow, call
35375         rewrite_to_defined_overflow.
35376         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35377         gimple-fold.h instead.
35378         (arith_code_with_undefined_signed_overflow,
35379         rewrite_to_defined_overflow): Moved to ...
35380         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35381         rewrite_to_defined_overflow): ... here.  No longer static.
35382         Include gimplify-me.h.
35383         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35384         rewrite_to_defined_overflow): New prototypes.
35386 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35388         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35390 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
35392         * builtins.c (get_object_alignment_2): Minor tweak.
35393         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35395 2014-01-13  Christian Bruel  <christian.bruel@st.com>
35397         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35398         optimized non constant lengths.
35400 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35402         PR libgomp/59194
35403         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35404         load as __atomic_load_N if possible.
35406 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35408         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35409         target parameter.
35410         (rs6000_expand_builtin): Adjust call.
35412 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35414         PR target/58115
35415         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35416         * config/rs6000/rs6000.c: Include target-globals.h.
35417         (rs6000_set_current_function): Instead of doing target_reinit
35418         unconditionally, use save_target_globals_default_opts and
35419         restore_target_globals.
35421         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35422         FPSCR.
35423         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35424         (rs6000_expand_builtin): Handle mffs and mtfsf.
35425         (rs6000_init_builtins): Define mffs and mtfsf.
35426         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35427         (rs6000_mffs): New pattern.
35428         (rs6000_mtfsf): New pattern.
35430 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
35432         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35433         Start narrowing with START.  Apply candidate-use pair
35434         and check overall cost in narrowing.
35435         (iv_ca_prune): Pass new argument.
35437 2014-01-10  Jeff Law  <law@redhat.com>
35439         PR middle-end/59743
35440         * ree.c (combine_reaching_defs): Ensure the defining statement
35441         occurs before the extension when optimizing extensions with
35442         different source and destination hard registers.
35444 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35446         PR ipa/58585
35447         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35448         vtables into the type inheritance graph.
35450 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35452         PR rtl-optimization/59754
35453         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35454         modes in the REGNO != REGNO case.
35456 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35458         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35460 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35462         PR tree-optimization/59745
35463         * tree-predcom.c (tree_predictive_commoning_loop): Call
35464         free_affine_expand_cache if giving up because components is NULL.
35466         * target-globals.c (save_target_globals): Allocate < 4KB structs using
35467         GC in payload of target_globals struct instead of allocating them on
35468         the heap and the larger structs separately using GC.
35469         * target-globals.h (struct target_globals): Make regs, hard_regs,
35470         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35471         of GTY((skip)) and change type to void *.
35472         (reset_target_globals): Cast loads from those fields to corresponding
35473         types.
35475 2014-01-10  Steve Ellcey  <sellcey@mips.com>
35477         PR plugins/59335
35478         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35479         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35480         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35482 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
35484         PR target/59744
35485         * aarch64-modes.def (CC_Zmode): New flags mode.
35486         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35487         represents an equality.
35488         (aarch64_get_condition_code): Handle CC_Zmode.
35489         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35491 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35493         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35494         extraction in good case.
35496 2014-01-10  Richard Biener  <rguenther@suse.de>
35498         PR tree-optimization/59374
35499         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35500         checking after SLP discovery.  Mark stmts not participating
35501         in any SLP instance properly.
35503 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35505         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35506         when handling a SET rtx.
35508 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35510         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35511         (cortex-a57): Likewise.
35512         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35514 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35516         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35517         non-iwmmxt builtins.
35519 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35521         PR ipa/58252
35522         PR ipa/59226
35523         * ipa-devirt.c record_target_from_binfo): Take as argument
35524         stack of binfos and lookup matching one for virtual inheritance.
35525         (possible_polymorphic_call_targets_1): Update.
35527 2014-01-10  Huacai Chen  <chenhc@lemote.com>
35529         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35530         kernel strings for Loongson-2E/2F/3A.
35532 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35534         PR middle-end/59670
35535         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35536         is_gimple_call before calling gimple_call_internal_p.
35538 2014-01-09  Steve Ellcey  <sellcey@mips.com>
35540         * Makefile.in (TREE_FLOW_H): Remove.
35541         (TREE_SSA_H): Add file names from tree-flow.h.
35542         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35543         * tree.h: Remove tree-flow.h reference.
35544         * hash-table.h: Remove tree-flow.h reference.
35545         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35546         reference with tree-ssa-loop.h.
35548 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35550         * doc/invoke.texi: Add -maltivec={be,le} options, and document
35551         default element-order behavior for -maltivec.
35552         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35553         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35554         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35555         when targeting big endian, at least for now.
35556         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35558 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35560         PR middle-end/47735
35561         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35562         var satisfies use_register_for_decl, just take into account type
35563         alignment, rather than decl alignment.
35565         PR tree-optimization/59622
35566         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
35567         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35568         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35569         Don't devirtualize for inplace at all.  For targets.length () == 1,
35570         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35572 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35574         * config/i386/i386.md (cpu): Remove the unused btver1.
35576 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35578         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35580 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35582         PR target/58115
35583         * tree-core.h (struct target_globals): New forward declaration.
35584         (struct tree_target_option): Add globals field.
35585         * tree.h (TREE_TARGET_GLOBALS): Define.
35586         (prepare_target_option_nodes_for_pch): New prototype.
35587         * target-globals.h (struct target_globals): Define even if
35588         !SWITCHABLE_TARGET.
35589         * tree.c (prepare_target_option_node_for_pch,
35590         prepare_target_option_nodes_for_pch): New functions.
35591         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35592         * config/i386/i386.c: Include target-globals.h.
35593         (ix86_set_current_function): Instead of doing target_reinit
35594         unconditionally, use save_target_globals_default_opts and
35595         restore_target_globals.
35597 2014-01-09  Richard Biener  <rguenther@suse.de>
35599         PR tree-optimization/59715
35600         * tree-cfg.h (split_critical_edges): Declare.
35601         * tree-cfg.c (split_critical_edges): Export.
35602         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35604 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35606         * cfgexpand.c (expand_stack_vars): Optionally disable
35607         asan stack protection.
35608         (expand_used_vars): Likewise.
35609         (partition_stack_vars): Likewise.
35610         * asan.c (asan_emit_stack_protection): Optionally disable
35611         after return stack usage.
35612         (instrument_derefs): Optionally disable memory access instrumentation.
35613         (instrument_builtin_call): Likewise.
35614         (instrument_strlen_call): Likewise.
35615         (asan_protect_global): Optionally disable global variables protection.
35616         * doc/invoke.texi: Added doc for new options.
35617         * params.def: Added new options.
35618         * params.h: Likewise.
35620 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35622         PR rtl-optimization/59724
35623         * ifcvt.c (cond_exec_process_if_block): Don't call
35624         flow_find_head_matching_sequence with 0 longest_match.
35625         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35626         non-active insns if !stop_after.
35627         (try_head_merge_bb): Revert 2014-01-07 changes.
35629 2014-01-08  Jeff Law  <law@redhat.com>
35631         * ree.c (get_sub_rtx): New function, extracted from...
35632         (merge_def_and_ext): Here.
35633         (combine_reaching_defs): Use get_sub_rtx.
35635 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
35637         * cgraph.h (varpool_variable_node): Do not choke on null node.
35639 2014-01-08  Catherine Moore  <clm@codesourcery.com>
35641         * config/mips/mips.md (simple_return): Attempt to use JRC
35642         for microMIPS.
35643         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35645 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
35647         PR rtl-optimization/59137
35648         * reorg.c (steal_delay_list_from_target): Call update_block for
35649         elided insns.
35650         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35652 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35654         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35655         two duplicate entries.
35657 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
35659         Revert:
35660         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
35662         * config/mips/mips.c (mips_truncated_op_cost): New function.
35663         (mips_rtx_costs): Adjust test for BADDU.
35664         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35666         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
35668         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35669         (*baddu_si): ...this new pattern.
35671 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
35673         PR ipa/59722
35674         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35676 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35678         PR middle-end/57748
35679         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35680         inner_reference_p.
35681         (expand_expr, expand_normal): Adjust.
35682         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35683         inner_reference_p. Use inner_reference_p to expand inner references.
35684         (store_expr): Adjust.
35685         * cfgexpand.c (expand_call_stmt): Adjust.
35687 2014-01-08  Rong Xu  <xur@google.com>
35689         * gcov-io.c (gcov_var): Move from gcov-io.h.
35690         (gcov_position): Ditto.
35691         (gcov_is_error): Ditto.
35692         (gcov_rewrite): Ditto.
35693         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35694         only part to libgcc/libgcov.h.
35696 2014-01-08  Marek Polacek  <polacek@redhat.com>
35698         PR middle-end/59669
35699         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35701 2014-01-08  Marek Polacek  <polacek@redhat.com>
35703         PR sanitizer/59667
35704         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35706 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
35708         PR rtl-optimization/59649
35709         * stor-layout.c (get_mode_bounds): For BImode return
35710         0 and STORE_FLAG_VALUE.
35712 2014-01-08  Richard Biener  <rguenther@suse.de>
35714         PR middle-end/59630
35715         * gimple.h (is_gimple_builtin_call): Remove.
35716         (gimple_builtin_call_types_compatible_p): New.
35717         (gimple_call_builtin_p): New overload.
35718         * gimple.c (is_gimple_builtin_call): Remove.
35719         (validate_call): Rename to ...
35720         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
35721         check return types.
35722         (validate_type): New static function.
35723         (gimple_call_builtin_p): New overload and adjust.
35724         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35725         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
35726         (gimple_fold_stmt_to_constant_1): Likewise.
35727         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35729 2014-01-08  Richard Biener  <rguenther@suse.de>
35731         PR middle-end/59471
35732         * gimplify.c (gimplify_expr): Gimplify register-register type
35733         VIEW_CONVERT_EXPRs to separate stmts.
35735 2014-01-07  Jeff Law  <law@redhat.com>
35737         PR middle-end/53623
35738         * ree.c (combine_set_extension): Handle case where source
35739         and destination registers in an extension insn are different.
35740         (combine_reaching_defs): Allow source and destination registers
35741         in extension to be different under limited circumstances.
35742         (add_removable_extension): Remove restriction that the
35743         source and destination registers in the extension are the same.
35744         (find_and_remove_re): Emit a copy from the extension's
35745         destination to its source after the defining insn if
35746         the source and destination registers are different.
35748         PR middle-end/59285
35749         * ifcvt.c (merge_if_block): If we are merging a block with more than
35750         one successor with a block with no successors, remove any BARRIER
35751         after the second block.
35753 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
35755         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35757 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
35759         PR target/59652
35760         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35761         for 14-bit register offsets when INT14_OK_STRICT is false.
35763 2014-01-07  Roland Stigge  <stigge@antcom.de>
35764             Michael Meissner  <meissner@linux.vnet.ibm.com>
35766         PR 57386/target
35767         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35768         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
35770 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35772         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35773         -mcpu.
35775 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
35777         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35778         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35779         rtx is const0_rtx or not.
35781 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
35783         PR target/58115
35784         * target-globals.c (save_target_globals): Remove this_fn_optab
35785         handling.
35786         * toplev.c: Include optabs.h.
35787         (target_reinit): Temporarily restore the global options if another
35788         set of options are in force.
35790 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
35792         PR rtl-optimization/58668
35793         * cfgcleanup.c (flow_find_cross_jump): Don't count
35794         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
35795         to determine what is counted.
35796         (flow_find_head_matching_sequence): Use active_insn_p to determine
35797         what is counted.
35798         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35799         counting change.
35800         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35801         determine what is counted.
35803         PR tree-optimization/59643
35804         * tree-predcom.c (split_data_refs_to_components): If one dr is
35805         read and one write, determine_offset fails and the write isn't
35806         in the bad component, just put the read into the bad component.
35808 2014-01-07  Mike Stump  <mikestump@comcast.net>
35809             Jakub Jelinek  <jakub@redhat.com>
35811         PR pch/59436
35812         * tree-core.h (struct tree_optimization_option): Change optabs
35813         type from unsigned char * to void *.
35814         * optabs.c (init_tree_optimization_optabs): Adjust
35815         TREE_OPTIMIZATION_OPTABS initialization.
35817 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
35819         PR target/59644
35820         * config/i386/i386.h (struct machine_function): Add
35821         no_drap_save_restore field.
35822         * config/i386/i386.c (ix86_save_reg): Use
35823         !cfun->machine->no_drap_save_restore instead of
35824         crtl->stack_realign_needed.
35825         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35826         this function clears frame_pointer_needed.  Set
35827         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35828         and DRAP reg is needed.
35830 2014-01-06  Marek Polacek  <polacek@redhat.com>
35832         PR c/57773
35833         * doc/implement-c.texi: Mention that other integer types are
35834         permitted as bit-field types in strictly conforming mode.
35836 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
35838         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35839         is newly allocated.
35841 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
35843         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35845 2014-01-06  Martin Jambor  <mjambor@suse.cz>
35847         PR ipa/59008
35848         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35849         to int.
35850         * ipa-prop.c (ipa_print_node_params): Fix indentation.
35852 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
35854         PR debug/59350
35855         PR debug/59510
35856         * var-tracking.c (add_stores): Preserve the value of the source even if
35857         we don't record the store.
35859 2014-01-06  Terry Guo  <terry.guo@arm.com>
35861         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35863 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
35865         PR bootstrap/59541
35866         * config/darwin.c (darwin_function_section): Adjust return values to
35867         correspond to optimisation changes made in r206070.
35869 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
35871         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35872         from prefetch_block tune setting.
35873         (nocona_cost): Correct size of prefetch block to 64.
35875 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
35877         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35878         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35879         used to save the static chain register in the computation of the offset
35880         from which the FP registers need to be restored.
35882 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
35884         PR tree-optimization/59519
35885         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35886         ICE if get_current_def (current_new_name) is already non-NULL, as long
35887         as it is a phi result of some other phi in *new_exit_bb that has
35888         the same argument.
35890         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35891         or vmovdqu* for misaligned_operand.
35892         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35893         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35894         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35895         aligned_mem for AVX512F masked aligned load and store builtins and for
35896         non-temporal moves.
35898 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
35900         PR tree-optimization/59651
35901         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35902         Address range for negative step should be added by TYPE_SIZE_UNIT.
35904 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
35906         * config/m68k/m68k.c (handle_move_double): Handle pushes with
35907         overlapping registers also for registers other than the stack pointer.
35909 2014-01-03  Marek Polacek  <polacek@redhat.com>
35911         PR other/59661
35912         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35913         __builtin_FILE.
35915 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
35917         PR target/59625
35918         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35919         asm goto as jump.
35921         * config/i386/i386.md (MODE_SIZE): New mode attribute.
35922         (push splitter): Use <P:MODE_SIZE> instead of
35923         GET_MODE_SIZE (<P:MODE>mode).
35924         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35925         (mov -1, reg peephole2): Likewise.
35926         * config/i386/sse.md (*mov<mode>_internal,
35927         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35928         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35929         *<code><mode>3, *andnot<mode>3<mask_name>,
35930         <mask_codefor><code><mode>3<mask_name>): Likewise.
35931         * config/i386/subst.md (mask_mode512bit_condition,
35932         sd_mask_mode512bit_condition): Likewise.
35934 2014-01-02  Xinliang David Li  <davidxl@google.com>
35936         PR tree-optimization/59303
35937         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35938         (dump_predicates): Better output format.
35939         (pred_equal_p): New function.
35940         (is_neq_relop_p): Ditto.
35941         (is_neq_zero_form_p): Ditto.
35942         (pred_expr_equal_p): Ditto.
35943         (pred_neg_p): Ditto.
35944         (simplify_pred): Ditto.
35945         (simplify_preds_2): Ditto.
35946         (simplify_preds_3): Ditto.
35947         (simplify_preds_4): Ditto.
35948         (simplify_preds): Ditto.
35949         (push_pred): Ditto.
35950         (push_to_worklist): Ditto.
35951         (get_pred_info_from_cmp): Ditto.
35952         (is_degenerated_phi): Ditto.
35953         (normalize_one_pred_1): Ditto.
35954         (normalize_one_pred): Ditto.
35955         (normalize_one_pred_chain): Ditto.
35956         (normalize_preds): Ditto.
35957         (normalize_cond_1): Remove function.
35958         (normalize_cond): Ditto.
35959         (is_gcond_subset_of): Ditto.
35960         (is_subset_of_any): Ditto.
35961         (is_or_set_subset_of): Ditto.
35962         (is_and_set_subset_of): Ditto.
35963         (is_norm_cond_subset_of): Ditto.
35964         (pred_chain_length_cmp): Ditto.
35965         (convert_control_dep_chain_into_preds): Type change.
35966         (find_predicates): Ditto.
35967         (find_def_preds): Ditto.
35968         (destroy_predicates_vecs): Ditto.
35969         (find_matching_predicates_in_rest_chains): Ditto.
35970         (use_pred_not_overlap_with_undef_path_pred): Ditto.
35971         (is_pred_expr_subset): Ditto.
35972         (is_pred_chain_subset_of): Ditto.
35973         (is_included_in): Ditto.
35974         (is_superset_of): Ditto.
35976 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35978         Update copyright years.
35980 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35982         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35983         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35984         config/arc/arc.md, config/arc/arc.opt,
35985         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35986         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35987         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35988         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35989         config/linux-protos.h, config/linux.c, config/winnt-c.c,
35990         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35991         vtable-verify.c, vtable-verify.h: Use the standard form for the
35992         copyright notice.
35994 2014-01-02  Tobias Burnus  <burnus@net-b.de>
35996         * gcc.c (process_command): Update copyright notice dates.
35997         * gcov-dump.c: Ditto.
35998         * gcov.c: Ditto.
35999         * doc/cpp.texi: Bump @copying's copyright year.
36000         * doc/cppinternals.texi: Ditto.
36001         * doc/gcc.texi: Ditto.
36002         * doc/gccint.texi: Ditto.
36003         * doc/gcov.texi: Ditto.
36004         * doc/install.texi: Ditto.
36005         * doc/invoke.texi: Ditto.
36007 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36009         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36011 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
36013         * config/i386/sse.md (*mov<mode>_internal): Guard
36014         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36016         PR rtl-optimization/59647
36017         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36018         new_rtx into UNSIGNED_FLOAT rtxes.
36020 Copyright (C) 2014 Free Software Foundation, Inc.
36022 Copying and distribution of this file, with or without modification,
36023 are permitted in any medium without royalty provided the copyright
36024 notice and this notice are preserved.